/usr/lib/python2.6/site-packages/openstack/image/v2
NameSizeModeActions
image.py39600644editdlrm
image.pyc20950644editdlrm
member.py15440644editdlrm
member.pyc10480644editdlrm
tag.py18730644editdlrm
tag.pyc19630644editdlrm
_proxy.py108290644editdlrm
_proxy.pyc116110644editdlrm
__init__.py00644editdlrm
__init__.pyc1520644editdlrm
Edit: /usr/lib/python2.6/site-packages/openstack/image/v2/_proxy.pyc (11611B)
5 Wc@smddklZddklZddklZddklZddkl Z dei fdYZ dS( i(timage(tmember(ttag(tproxy(tresourcetProxycBseZdZedZedZdZdZdZdZ dedZ edZ dd Z d Zdd Zd Zed ZRS(cKsA|id}|iti|}||_|i|i|S(srUpload a new image from attributes :param dict attrs: Keyword arguments which will be used to create a :class:`~openstack.image.v2.image.Image`, comprised of the properties on the Image class. :returns: The results of image creation :rtype: :class:`~openstack.image.v2.image.Image` tdata(tpopt_createt_imagetImageRt upload_imagetsession(tselftattrsRtimg((s?/tmp/pip-build-wCUybK/openstacksdk/openstack/image/v2/_proxy.pyR 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.image.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`` tignore_missingN(t_deleteR R (R RR((s?/tmp/pip-build-wCUybK/openstacksdk/openstack/image/v2/_proxy.pyt delete_image)s 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.image.v2.image.Image` or None R(t_findR R (R t name_or_idR((s?/tmp/pip-build-wCUybK/openstacksdk/openstack/image/v2/_proxy.pyt find_image8s cCs|iti|S(sTGet a single image :param image: The value can be the ID of a image or a :class:`~openstack.image.v2.image.Image` instance. :returns: One :class:`~openstack.image.v2.image.Image` :raises: :class:`~openstack.exceptions.ResourceNotFound` when no resource can be found. (t_getR R (R R((s?/tmp/pip-build-wCUybK/openstacksdk/openstack/image/v2/_proxy.pyt get_imageFs cKs|itidt|S(sReturn a generator of images :param kwargs \*\*query: Optional query parameters to be sent to limit the resources being returned. :returns: A generator of image objects :rtype: :class:`~openstack.image.v2.image.Image` t paginated(t_listR R tTrue(R tquery((s?/tmp/pip-build-wCUybK/openstacksdk/openstack/image/v2/_proxy.pytimagesRs cKs|iti||S(saUpdate a image :param image: Either the ID of a image or a :class:`~openstack.image.v2.image.Image` instance. :attrs kwargs: The attributes to update on the image represented by ``value``. :returns: The updated image :rtype: :class:`~openstack.image.v2.image.Image` (t_updateR R (R RR((s?/tmp/pip-build-wCUybK/openstacksdk/openstack/image/v2/_proxy.pyt update_image]s cKs2tii|}|itidh|d6|S(s:Create a new member from attributes :param image: The value can be the ID of a image or a :class:`~openstack.image.v2.image.Image` instance that the member will be created for. :param dict attrs: Keyword arguments which will be used to create a :class:`~openstack.image.v2.member.Member`, comprised of the properties on the Member class. :returns: The results of member creation :rtype: :class:`~openstack.image.v2.member.Member` t path_argstimage_id(RtResourcetget_idRt_membertMember(R RRR ((s?/tmp/pip-build-wCUybK/openstacksdk/openstack/image/v2/_proxy.pyt create_memberjs cCs\t|tio |i}ntii|}|iti|dh|d6d|dS(s7Delete a member :param member: The value can be either the ID of a member or a :class:`~openstack.image.v2.member.Member` instance. :param image: This is the image that the member belongs to, this parameter need to be specified when member ID is given as value. The value can be the ID of a image or a :class:`~openstack.image.v2.image.Image` instance. :param bool ignore_missing: When set to ``False`` :class:`~openstack.exceptions.ResourceNotFound` will be raised when the member does not exist. When set to ``True``, no exception will be set when attempting to delete a nonexistent member. :returns: ``None`` RR RN(t isinstanceR#R$R RR!R"R(R RRRR ((s?/tmp/pip-build-wCUybK/openstacksdk/openstack/image/v2/_proxy.pyt delete_member{s   cCs8tii|}|iti|dh|d6d|S(sFind a single member :param name_or_id: The name or ID of a member. :param image: This is the image that the member belongs to, the value can be the ID of a image or a :class:`~openstack.image.v2.image.Image` instance. :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.image.v2.member.Member` or None RR R(RR!R"RR#R$(R RRRR ((s?/tmp/pip-build-wCUybK/openstacksdk/openstack/image/v2/_proxy.pyt find_members cCsRt|tio |i}ntii|}|iti|dh|d6S(sGet a single member :param member: The value can be the ID of a member or a :class:`~openstack.image.v2.member.Member` instance. :param image: This is the image that the member belongs to, this parameter need to be specified when member ID is given as value. The value can be the ID of a image or a :class:`~openstack.image.v2.image.Image` instance. :returns: One :class:`~openstack.image.v2.member.Member` :raises: :class:`~openstack.exceptions.ResourceNotFound` when no resource can be found. RR (R&R#R$R RR!R"R(R RRR ((s?/tmp/pip-build-wCUybK/openstacksdk/openstack/image/v2/_proxy.pyt get_members  cKs8tii|}|itidtdh|d6|S(sReturn a generator of members :param image: This is the image that the member belongs to, the value can be the ID of a image or a :class:`~openstack.image.v2.image.Image` instance. :param kwargs \*\*query: Optional query parameters to be sent to limit the resources being returned. :returns: A generator of member objects :rtype: :class:`~openstack.image.v2.member.Member` RRR (RR!R"RR#R$tFalse(R RRR ((s?/tmp/pip-build-wCUybK/openstacksdk/openstack/image/v2/_proxy.pytmemberss  cKsUt|tio |i}ntii|}|iti|dh|d6|S(sUpdate a member :param member: Either the ID of a member or a :class:`~openstack.image.v2.member.Member` instance. :param image: This is the image that the member belongs to, this parameter need to be specified when member ID is given as value. The value can be the ID of a image or a :class:`~openstack.image.v2.image.Image` instance. :attrs kwargs: The attributes to update on the member represented by ``value``. :returns: The updated member :rtype: :class:`~openstack.image.v2.member.Member` RR (R&R#R$R RR!R"R(R RRRR ((s?/tmp/pip-build-wCUybK/openstacksdk/openstack/image/v2/_proxy.pyt update_members  cKs|iti|S(sdCreate a new tag from attributes :param dict attrs: Keyword arguments which will be used to create a :class:`~openstack.image.v2.tag.Tag`, comprised of the properties on the Tag class. :returns: The results of tag creation :rtype: :class:`~openstack.image.v2.tag.Tag` (Rt_tagtTag(R R((s?/tmp/pip-build-wCUybK/openstacksdk/openstack/image/v2/_proxy.pyt create_tags cCs|iti|d|dS(sDelete a tag :param tag: The value can be either the ID of a tag or a :class:`~openstack.image.v2.tag.Tag` instance. :param bool ignore_missing: When set to ``False`` :class:`~openstack.exceptions.ResourceNotFound` will be raised when the tag does not exist. When set to ``True``, no exception will be set when attempting to delete a nonexistent tag. :returns: ``None`` RN(RR-R.(R RR((s?/tmp/pip-build-wCUybK/openstacksdk/openstack/image/v2/_proxy.pyt delete_tags N(t__name__t __module__R RRRRRRR%tNoneR'R(R)R+R,R/R0(((s?/tmp/pip-build-wCUybK/openstacksdk/openstack/image/v2/_proxy.pyRs         N( topenstack.image.v2RR RR#RR-t openstackRRt BaseProxyR(((s?/tmp/pip-build-wCUybK/openstacksdk/openstack/image/v2/_proxy.pyt s