/usr/lib/python2.6/site-packages/openstack/compute/v2
NameSizeModeActions
availability_zone.py11130644editdlrm
availability_zone.pyc8890644editdlrm
extension.py16490644editdlrm
extension.pyc10650644editdlrm
flavor.py23490644editdlrm
flavor.pyc16060644editdlrm
hypervisor.py11620644editdlrm
hypervisor.pyc9000644editdlrm
image.py23800644editdlrm
image.pyc16320644editdlrm
keypair.py19970644editdlrm
keypair.pyc18290644editdlrm
limits.py44970644editdlrm
limits.pyc33210644editdlrm
metadata.py34690644editdlrm
metadata.pyc32420644editdlrm
server.py64840644editdlrm
server.pyc55040644editdlrm
server_group.py13080644editdlrm
server_group.pyc9680644editdlrm
server_interface.py15000644editdlrm
server_interface.pyc11380644editdlrm
server_ip.py19600644editdlrm
server_ip.pyc15780644editdlrm
_proxy.py351200644editdlrm
_proxy.pyc384310644editdlrm
__init__.py00644editdlrm
__init__.pyc1540644editdlrm
Edit: /usr/lib/python2.6/site-packages/openstack/compute/v2/_proxy.pyc (38431B)
5 Wc@sddklZddklZddklZddklZddklZddkl Z ddkl Z ddkl Z dd klZdd klZdd klZdd klZdd klZdeifdYZdS(i(tavailability_zone(t extension(tflavor(t hypervisor(timage(tkeypair(tlimits(tserver(t server_group(tserver_interface(t server_ip(tproxy(tresourcetProxycBs*eZedZdZedZdZedZdZedZ dZ edZ ed Z d Z ed Zd Zd ZdZdZdZedZdZedZdZdZdZdZedZedZdZedZdZddgdd d!Z d"Z!d8ed#Z#d8d$Z$d%Z%ed&Z&d'Z'd(Z(d)Z)d*Z*d8d8d+Z+d,Z,d-Z-d.Z.d/Z/d0Z0ed1Z1ed2Z2d3Z3d4Z4d5Z5ed6Z6d7Z7RS(9cCs|iti|d|S(sFind a single extension :param name_or_id: The name or ID of an extension. :param bool ignore_missing: When set to ``False`` :class:`~openstack.exceptions.ResourceNotFound` will be raised when the resource does not exist. When set to ``True``, None will be returned when attempting to find a nonexistent resource. :returns: One :class:`~openstack.compute.v2.extension.Extension` or None tignore_missing(t_findRt Extension(tselft name_or_idR((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pytfind_extensions cKs|itidt|S(s4Retrieve a generator of extensions :param kwargs \*\*query: Optional query parameters to be sent to limit the resources being returned. :returns: A generator of extension instances. :rtype: :class:`~openstack.compute.v2.extension.Extension` t paginated(t_listRRtFalse(Rtquery((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pyt extensions-s cCs|iti|d|S(sFind a single flavor :param name_or_id: The name or ID of a flavor. :param bool ignore_missing: When set to ``False`` :class:`~openstack.exceptions.ResourceNotFound` will be raised when the resource does not exist. When set to ``True``, None will be returned when attempting to find a nonexistent resource. :returns: One :class:`~openstack.compute.v2.flavor.Flavor` or None R(Rt_flavortFlavor(RRR((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pyt find_flavor8s cKs|iti|S(s}Create a new flavor from attributes :param dict attrs: Keyword arguments which will be used to create a :class:`~openstack.compute.v2.flavor.Flavor`, comprised of the properties on the Flavor class. :returns: The results of flavor creation :rtype: :class:`~openstack.compute.v2.flavor.Flavor` (t_createRR(Rtattrs((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pyt create_flavorFs cCs|iti|d|dS(sDelete a flavor :param flavor: The value can be either the ID of a flavor or a :class:`~openstack.compute.v2.flavor.Flavor` instance. :param bool ignore_missing: When set to ``False`` :class:`~openstack.exceptions.ResourceNotFound` will be raised when the flavor does not exist. When set to ``True``, no exception will be set when attempting to delete a nonexistent flavor. :returns: ``None`` RN(t_deleteRR(RRR((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pyt delete_flavorRs cCs|iti|S(s`Get a single flavor :param flavor: The value can be the ID of a flavor or a :class:`~openstack.compute.v2.flavor.Flavor` instance. :returns: One :class:`~openstack.compute.v2.flavor.Flavor` :raises: :class:`~openstack.exceptions.ResourceNotFound` when no resource can be found. (t_getRR(RR((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pyt get_flavoras cKs0|o tinti}|i|dt|S(sReturn a generator of flavors :param bool details: When ``True``, returns :class:`~openstack.compute.v2.flavor.FlavorDetail` objects, otherwise :class:`~openstack.compute.v2.flavor.Flavor`. *Default: ``True``* :param kwargs \*\*query: Optional query parameters to be sent to limit the flavors being returned. :returns: A generator of flavor objects R(Rt FlavorDetailRRtTrue(RtdetailsRtflv((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pytflavorsms cKs|iti||S(snUpdate a flavor :param flavor: Either the ID of a flavor or a :class:`~openstack.compute.v2.flavor.Flavor` instance. :attrs kwargs: The attributes to update on the flavor represented by ``value``. :returns: The updated flavor :rtype: :class:`~openstack.compute.v2.flavor.Flavor` (t_updateRR(RRR((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pyt update_flavor|s cCs|iti|d|dS(s Delete an image :param image: The value can be either the ID of an image or a :class:`~openstack.compute.v2.image.Image` instance. :param bool ignore_missing: When set to ``False`` :class:`~openstack.exceptions.ResourceNotFound` will be raised when the image does not exist. When set to ``True``, no exception will be set when attempting to delete a nonexistent image. :returns: ``None`` RN(Rt_imagetImage(RRR((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pyt delete_images cCs|iti|d|S(sFind a single image :param name_or_id: The name or ID of a image. :param bool ignore_missing: When set to ``False`` :class:`~openstack.exceptions.ResourceNotFound` will be raised when the resource does not exist. When set to ``True``, None will be returned when attempting to find a nonexistent resource. :returns: One :class:`~openstack.compute.v2.image.Image` or None R(RR*R+(RRR((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pyt find_images cCs|iti|S(sYGet a single image :param image: The value can be the ID of an image or a :class:`~openstack.compute.v2.image.Image` instance. :returns: One :class:`~openstack.compute.v2.image.Image` :raises: :class:`~openstack.exceptions.ResourceNotFound` when no resource can be found. (R!R*R+(RR((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pyt get_images cKs0|o tinti}|i|dt|S(sReturn a generator of images :param bool details: When ``True``, returns :class:`~openstack.compute.v2.image.ImageDetail` objects, otherwise :class:`~openstack.compute.v2.image.Image`. *Default: ``True``* :param kwargs \*\*query: Optional query parameters to be sent to limit the resources being returned. :returns: A generator of image objects R(R*t ImageDetailR+RR$(RR%Rtimg((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pytimagess cCs*t||o|S|h|d6SdS(Ntid(t isinstance(Rtrestbase((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pyt_get_base_resourcescCsI|i|ti}|i|i}tiid|id|}|S(sReturn a dictionary of metadata for an image :param image: Either the ID of an image or a :class:`~openstack.compute.v2.image.Image` or :class:`~openstack.compute.v2.image.ImageDetail` instance. :returns: A :class:`~openstack.compute.v2.image.Image` with only the image's metadata. All keys and values are Unicode text. :rtype: :class:`~openstack.compute.v2.image.Image` R2tmetadata(R6R*R+t get_metadatatsessiontexistingR2(RRR4R7tresult((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pytget_image_metadatas cKsL|i|ti}|i|i|}tiid|id|}|S(sUpdate metadata for an image :param image: Either the ID of an image or a :class:`~openstack.compute.v2.image.Image` or :class:`~openstack.compute.v2.image.ImageDetail` instance. :param kwargs metadata: Key/value pairs to be updated in the image's metadata. No other metadata is modified by this call. All keys and values are stored as Unicode. :returns: A :class:`~openstack.compute.v2.image.Image` with only the image's metadata. All keys and values are Unicode text. :rtype: :class:`~openstack.compute.v2.image.Image` R2R7(R6R*R+t set_metadataR9R:R2(RRR7R4R;((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pytset_image_metadatascCs(|i|ti}|i|i|S(sDelete metadata for an image Note: This method will do a HTTP DELETE request for every key in keys. :param image: Either the ID of an image or a :class:`~openstack.compute.v2.image.Image` or :class:`~openstack.compute.v2.image.ImageDetail` instance. :param list keys: The keys to delete. :rtype: ``None`` (R6R*R+tdelete_metadataR9(RRtkeysR4((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pytdelete_image_metadatas cKs|iti|S(sCreate a new keypair from attributes :param dict attrs: Keyword arguments which will be used to create a :class:`~openstack.compute.v2.keypair.Keypair`, comprised of the properties on the Keypair class. :returns: The results of keypair creation :rtype: :class:`~openstack.compute.v2.keypair.Keypair` (Rt_keypairtKeypair(RR((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pytcreate_keypairs cCs|iti|d|dS(s2Delete a keypair :param keypair: The value can be either the ID of a keypair or a :class:`~openstack.compute.v2.keypair.Keypair` instance. :param bool ignore_missing: When set to ``False`` :class:`~openstack.exceptions.ResourceNotFound` will be raised when the keypair does not exist. When set to ``True``, no exception will be set when attempting to delete a nonexistent keypair. :returns: ``None`` RN(RRBRC(RRR((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pytdelete_keypair scCs|iti|S(sGet a single keypair :param keypair: The value can be the ID of a keypair or a :class:`~openstack.compute.v2.keypair.Keypair` instance. :returns: One :class:`~openstack.compute.v2.keypair.Keypair` :raises: :class:`~openstack.exceptions.ResourceNotFound` when no resource can be found. (R!RBRC(RR((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pyt get_keypairs cCs|iti|d|S(sFind a single keypair :param name_or_id: The name or ID of a keypair. :param bool ignore_missing: When set to ``False`` :class:`~openstack.exceptions.ResourceNotFound` will be raised when the resource does not exist. When set to ``True``, None will be returned when attempting to find a nonexistent resource. :returns: One :class:`~openstack.compute.v2.keypair.Keypair` or None R(RRBRC(RRR((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pyt find_keypair)s cKs|itidt|S(s'Return a generator of keypairs :param kwargs \*\*query: Optional query parameters to be sent to limit the resources being returned. :returns: A generator of keypair objects :rtype: :class:`~openstack.compute.v2.keypair.Keypair` R(RRBRCR(RR((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pytkeypairs7s cKs|iti||S(sUpdate a keypair :param keypair: Either the ID of a keypair or a :class:`~openstack.compute.v2.keypair.Keypair` instance. :attrs kwargs: The attributes to update on the keypair represented by ``keypair``. :returns: The updated keypair :rtype: :class:`~openstack.compute.v2.keypair.Keypair` (R(RBRC(RRR((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pytupdate_keypairBs cCs|itiS(s@Retrieve limits that are applied to the project's account :returns: A Limits object, including both :class:`~openstack.compute.v2.limits.AbsoluteLimits` and :class:`~openstack.compute.v2.limits.RateLimits` :rtype: :class:`~openstack.compute.v2.limits.Limits` (R!RtLimits(R((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pyt get_limitsPscKs|iti|S(s}Create a new server from attributes :param dict attrs: Keyword arguments which will be used to create a :class:`~openstack.compute.v2.server.Server`, comprised of the properties on the Server class. :returns: The results of server creation :rtype: :class:`~openstack.compute.v2.server.Server` (Rt_servertServer(RR((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pyt create_serverZs cCs|iti|d|dS(sDelete a server :param server: The value can be either the ID of a server or a :class:`~openstack.compute.v2.server.Server` instance. :param bool ignore_missing: When set to ``False`` :class:`~openstack.exceptions.ResourceNotFound` will be raised when the server does not exist. When set to ``True``, no exception will be set when attempting to delete a nonexistent server. :returns: ``None`` RN(RRLRM(RRR((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pyt delete_serverfs cCs|iti|d|S(sFind a single server :param name_or_id: The name or ID of a server. :param bool ignore_missing: When set to ``False`` :class:`~openstack.exceptions.ResourceNotFound` will be raised when the resource does not exist. When set to ``True``, None will be returned when attempting to find a nonexistent resource. :returns: One :class:`~openstack.compute.v2.server.Server` or None R(RRLRM(RRR((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pyt find_serverus cCs|iti|S(s`Get a single server :param server: The value can be the ID of a server or a :class:`~openstack.compute.v2.server.Server` instance. :returns: One :class:`~openstack.compute.v2.server.Server` :raises: :class:`~openstack.exceptions.ResourceNotFound` when no resource can be found. (R!RLRM(RR((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pyt get_servers cKsT|o tinti}d|jo|id|dRARDRERFRGRHRIRKRNRORPRQRVRWR_RftNoneRgRhRiRkRlRoRqRsRyR{R|R}R~RRRRRRRR(((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pyR sl                .              N(topenstack.compute.v2RRRRRRRR*RRBRRRLRRR RdR t openstackR R t BaseProxyR (((sA/tmp/pip-build-wCUybK/openstacksdk/openstack/compute/v2/_proxy.pyt s