/usr/lib/python2.6/site-packages/glanceclient/v2
NameSizeModeActions
client.py25250644editdlrm
client.pyc20220644editdlrm
images.py145030644editdlrm
images.pyc130050644editdlrm
image_members.py20060644editdlrm
image_members.pyc25590644editdlrm
image_schema.py71970644editdlrm
image_schema.pyc36430644editdlrm
image_tags.py17060644editdlrm
image_tags.pyc19890644editdlrm
metadefs.py179570644editdlrm
metadefs.pyc197790644editdlrm
schemas.py42390644editdlrm
schemas.pyc55140644editdlrm
shell.py388400644editdlrm
shell.pyc393420644editdlrm
tasks.py41900644editdlrm
tasks.pyc39060644editdlrm
versions.py9450644editdlrm
versions.pyc9030644editdlrm
__init__.py6330644editdlrm
__init__.pyc2250644editdlrm
Edit: /usr/lib/python2.6/site-packages/glanceclient/v2/shell.pyc (39342B)
dd?dd@dddAdBdgeidCddDddEeidFddGddddHeidIdgdddJe iddKeidLdgdddJe iddMeidNddOddddPdQie idRZeid&dd'ddSeidTdd#deddUeidVddWddXddYdZZeid[dd'd\edd]d^Zeid_dd'dd`eidaddbddcddZ eid_dd'ddeeidaddbddfeidgdd9dJe ddhdQidie DdjZ!eid_dd'ddkeidaddbddldmZ"eidnddoddpdqZ#eiddd ddreid&dd'ddseid"dd#deddtduZ$eiddd ddveidwddxd0eddyddeid"dd#dedd$eid&dd'ddzd{Z%eid&dd'dd|d}Z&eid_dd'dd~eiddddddZ'eid_dd'ddeiddddddZ(eidddd\eddeidddddddeid&dddddZ)eidddddd\eddeid&dddddZ*eidddd\eddeidddddddeid&dddddZ+da,dZ-ddZ.eidddddeie-d dddBdd)dddgdZ/eiddddddZ0eid&ddddeie-d ddBdd)ddddgdZ1eidddddeidddddddeidVddWddXddYdZ2eidddddddeid5dd6ddeid2dd3ddd0edddZ3eiddddddZ4da5dZ6eidddddeie6dZ7eidddddeiddddddZ8dZ9eiddddddZ:eidddddeidddd\eddeidddd\eddeidddd\edddZ;eidddddeidddddeidddddddeidddddddeiddddddddZ<eidddddeidddddeidVddWddXddYdZ=eidddddeiddddddZ>eiddddddZ?eiddddddZ@ddZAeidddddeidddd\eddeidddd\edddZBeidddddeidddddeidddddddeiddddddddZCeidddddeidddddeidVddWddXddYdZDeidddddeidddddeidddddeidVddWddXddYdZEeidddddeiddddddZFeiddddddZGeiddddddZHddZIeidddddeidddd\edddZJeidddddeidddd\eddeidddd\edddZKeidddddeidddGddeidddddd\edddZLeidddddeidddGdddZMeidddddeidddGdddZNeiddddddZOeiddddddZPeidIdddJe iddeidLdddJe iddeid2dd3ddd0eddeidddddeiddddddZQeid&dddddZReidddddeiddddddddZSdS( iN(t progressbar(tutils(texc(t image_members(t image_schema(timages(ttaskstlocationt copy_fromtfilecCstdjo{tiid}tii|oKt|dii}z(|~}|i }t i |aWdQXqt i SntS(Ns!~/.glanceclient/image_schema.jsontr(t IMAGE_SCHEMAtNonetostpatht expandusertisfiletopent__exit__t __enter__treadtjsontloadsRt _BASE_SCHEMA(t schema_patht_[1]tft schema_raw((sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pytget_image_schema!s &  tomitt created_att updated_attchecksumt virtual_sizetsizetstatustschemat direct_urlt locationss --propertytmetavars tactiontappendtdefaultthelpsGArbitrary property to associate with image. May be used multiple times.s--filessLocal file that contains disk image to be uploaded during creation. Must be present if images are not passed to the client via stdin.s --progresst store_truesShow upload progress bar.c s|iidg}t|iD]'}||didd|dfq)~}ttfd|}|idg}x0|D](}|idd\}} | ||@sR0t=R sBFile %s does not exist or user does not have read privileges to ittidN(tschemastgettvarstitemstreplacetdicttfiltertpoptsplitR R taccesstR_OKtFalseRtexitRtcreatet get_data_fileR5R"tdo_image_uploadt print_image( tgctargsRR2t_argstfieldstraw_propertiestdatumtkeytvaluet file_nameR-((R$sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pytdo_image_create.s*G )     R5s sID of image to update.ttagss--remove-propertyRMs4Name of arbitrary property to remove from the image.c s|iidg}t|iD]'}||didd|dfq)~}ttfd|}|idg}x0|D](}|idd\}} | ||R RtupdateRRF( RGRHRR2RIRJRKRLRMRNtremove_propertiestimage_idR-((R$sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pytdo_image_updateYs G s--limitsttypes Maximum number of images to get.s --page-sizess6Number of images to request in each paginated request.s --visibilitys s(The visibility of the images to display.s--member-statusss The status of images to display.s--ownerss Display images owned by .s--property-filters s/Filter images by a user-defined image property.tdestt propertiess --checksums s(Displays images that match the checksum.s--tagss$Filter images by a user-defined tag.s --sort-keytchoicess$Sort image list by specified fields.s --sort-dirs(Sort image list in specified directions.s--sorts[:]smComma-separated list of sort keys and directions in the form of [:]. Valid keys: %s. OPTIONAL.s, c Csdddddg}g}|D]}||t||fq ~}|iofg}|iD]}||iddq]~}td|Dotid n||7}ntg} |D]"} | ddj o | | qq~ } h| d 6} |idj o|i| d s sFArgument --property-filter expected properties in the format KEY=VALUEtfilterstlimitt page_sizetsort_keytsort_dirtsorttnametasctIDtNamet Disk_formattContainer_formattSizetStatustOwnerN(tgetattrRYR>tanyRRBR;R RcRdReRfRgtverboseRtlistt print_list(RGRHt filter_keysRRMt filter_itemst_[2]tproptfilter_propertiest_[3]titemRbtkwargstcolumnsR((sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt do_image_listxs80 0<      sID of image to describe.s--human-readables,Print image size in a human-friendly format.s--max-column-widths iPs*The max column width of the printed table.cCs8|ii|i}ti||it|idS(sDescribe a specific image.N(RR7R5RRFthuman_readabletinttmax_column_width(RGRHR-((sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt do_image_showss --image-idtrequiredsImage to display members of.cCs8|ii|i}dddg}ti||dS(s&Describe sharing permissions by image.sImage IDs Member IDRoN(RRtRURRu(RGRHtmembersR~((sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pytdo_member_listsRUs"Image from which to remove member.t member_ids sTenant to remove as member.cCsB|io|iptidn|ii|i|idS(sDelete image member.s7Unable to delete member. Specify image_id and member_idN(RURRRBRtdelete(RGRH((sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pytdo_member_deletess"Image from which to update member.sTenant to update.R\s*Updated status of member. Valid Values: %sccsx|]}t|VqWdS(N(tstr(R`tval((sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pys s cCs||io|io|iptidnJ|ii|i|i|i}|g}dddg}ti||dS(s0Update the status of a member for a given image.sFUnable to update member. Specify image_id, member_id and member_statussImage IDs Member IDRoN(RURR\RRBRRSRu(RGRHtmemberR~((sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pytdo_member_updates   s"Image with which to create member.sTenant to add as member.cCsl|io|iptidnD|ii|i|i}|g}dddg}ti||dS(s Create member for a given image.s7Unable to create member. Specify image_id and member_idsImage IDs Member IDRoN(RURRRBRRCRu(RGRHRR~((sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pytdo_member_creates  tmodelssName of model to describe.cCs|y|ii|i}Wn*tij otid|in4Xhdd6}ddg}ti|i||dS(sDescribe a specific model.s#Unable to find requested model '%s'cSs|iS((Rh(tm((sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyR3st Attributet DescriptionN( R6R7RRt HTTPNotFoundRRBRuRY(RGRHR$t formattersR~((sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt do_explains sLocal file to save downloaded image data to. If this is not specified and there is no redirection the image data will be not be saved.sID of image to download.sShow download progress bar.cCs|ii|i}|ioti|t|}ntii o |i djpt i ||i nd}t i|dS(sDownload a specific image.sNo redirection or local file specified for downloaded image data. Please specify a local file with --file to save downloaded image or redirect output to another source.N(RtdataR5tprogressRtVerboseIteratorWrapperR_tsyststdouttisattyR R Rt save_imageRB(RGRHtbodytmsg((sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pytdo_image_download s   spLocal file that contains disk image to be uploaded. Alternatively, images can be passed to the client via stdin.s--sizes sSize in bytes of image to be uploaded. Default is to get size from provided data object but this is supported in case where size cannot be inferred.sID of image to upload data to.cCsoti|}|io6ti|}|dj oti||}qOn|ii|i ||i dS(s!Upload data for a specific image.N( RRDRt get_file_sizeR RtVerboseFileWrapperRtuploadR5R"(RGRHt image_datatfilesize((sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyRE!s   sID of image to delete.cCsa|ii|i}|o.|idjod|i}ti|n|ii|idS(sDelete specified image.tdeleteds#No image with an ID of '%s' exists.N(RR7R5R#RRBR(RGRHR-R((sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pytdo_image_delete:s  s'Image to be updated with the given tag.t tag_values sValue of the tag.cCs||io|iptidnT|ii|i|i|ii|i}|g}ddg}ti||dS(s#Update an image with the given tag.s4Unable to update tag. Specify image_id and tag_valueRjtTagsN( RURRRBt image_tagsRSRR7Ru(RGRHR-R~((sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pytdo_image_tag_updateDs  s)ID of the image from which to delete tag.cCsB|io|iptidn|ii|i|idS(s/Delete the tag associated with the given image.s4Unable to delete tag. Specify image_id and tag_valueN(RURRRBRR(RGRH((sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pytdo_image_tag_deleteTss--urlssURL of location to add.s --metadatass{}sYMetadata associated with the location. Must be a valid JSON object (default: %(default)s)ss1ID of image to which the location is to be added.cCshyti|i}Wn tj otidn-X|ii|i|i |}ti |dS(s2Add a location (and related metadata) to an image.s$Metadata is not a valid JSON object.N( RRtmetadatat ValueErrorRRBRt add_locationR5turlt print_dict(RGRHRR-((sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pytdo_location_add`s s6URL of location to remove. May be used multiple times.s.ID of image whose locations are to be removed.cCs#|ii|it|idS(s6Remove locations (and related metadata) from an image.N(Rtdelete_locationsR5tsetR(RGRH((sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pytdo_location_deleterssURL of location to update.s,ID of image whose location is to be updated.cCshyti|i}Wn tj otidn-X|ii|i|i |}ti |dS(s'Update metadata of an image's location.s$Metadata is not a valid JSON object.N( RRRRRRBRtupdate_locationR5RR(RGRHRR-((sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pytdo_location_update{s cCstdjottiid}tii|oKt|dii}z(|~}|i }t i |aWdQXqntS(Ns%~/.glanceclient/namespace_schema.jsonR ( tNAMESPACE_SCHEMAR R RRRRRRRRR(RRRR((sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pytget_namespace_schemas & c CsDt|}d|jo3g}|dD] }||q(~}||dsName of the namespace.tproperty_countt tag_countt object_countRtresource_typescs|iidg}t|iD]'}||didd|dfq)~}ttfd|}|ii|}t |dS(s,Create a new metadata definitions namespace.smetadefs/namespaceiR.R/ics"|ddj oi|dS(iiN(R R1(R2(R$(sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyR3sN( R6R7R8R9R:R;R<tmetadefs_namespaceRCR(RGRHRR2RIRJR((R$sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pytdo_md_namespace_creates G s suPath to file with namespace schema to import. Alternatively, namespaces schema can be passed to the client via stdin.cCs}ti|}|ptidnyti|}Wn tj otidnX|ii|}t|dS(sDImport a metadata definitions namespace from file or standard input.sENo metadata definition namespace passed via stdin or --file argument.s"Schema is not a valid JSON object.N( RRDRBRtloadRRRCR(RGRHtnamespace_datatnamespace_jsonR((sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pytdo_md_namespace_importssName of namespace to update.Rcs|iidg}t|iD]'}||didd|dfq)~}ttfd|}|ii|i |}t |dS(s2Update an existing metadata definitions namespace.smetadefs/namespaceiR.R/ics"|ddj oi|dS(iiN(R R1(R2(R$(sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyR3sN( R6R7R8R9R:R;R<RRSR5R(RGRHRR2RIRJR((R$sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pytdo_md_namespace_updates G sName of namespace to describe.s--resource-typessaApplies prefix of given resource type associated to a namespace to all properties of a namespace.cCsSh}|io|i|ds#Resource type to filter namespaces.s*Visibility parameter to filter namespaces.s:Number of namespaces to request in each paginated request.c Csddg}g}|D]}||t||dfq~}tg}|D]"}|ddj o ||qMqM~}h|d6} |idj o|i| dAssociate resource type with a metadata definitions namespace.smetadefs/resource_typeiR.R/ics"|ddj oi|dS(iiN(R R1(R2(R$(sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyR33sN( R6R7R8R9R:R;R<tmetadefs_resource_typet associateRRR(RGRHRR2RIRJR((R$sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pytdo_md_resource_type_associate-sG  RsName of resource type.cCs|ii|i|idS(s@Deassociate resource type with a metadata definitions namespace.N(Rt deassociateRR(RGRH((sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pytdo_md_resource_type_deassociate;scCs&|ii}ti|dgdS(s#List available resource type names.RhN(RRtRRu(RGRHR((sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pytdo_md_resource_type_listCscCs2|ii|i}ti|dddgdS(s5List resource types associated to specific namespace.Rhtprefixtproperties_targetN(RR7RRRu(RGRHR((sB/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt"do_md_namespace_resource_type_listIss+Name of namespace the property will belong.s--namessInternal name of a property.s--titless$���Property name displayed to the user.s���--schemas���<SCHEMA>s ���Valid JSON schema of a property.c���������C���s���y�t��i�|�i��}�Wn �t�j �o�t�i�d��nN�Xh�|�i�d�6|�i�d�6}�|�i�|��|��i �i �|�i �|��}�t�i �|��d�S(���s>���Create a new metadata definitions property inside a namespace.s"���Schema is not a valid JSON object.Rh���t���titleN( ���R���R���R$���R���R���RB���Rh���R���RS���t���metadefs_propertyRC���R���R���(���RG���RH���R$���RJ���t ���new_property(����(����sB���/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt���do_md_property_createP��s����  s'���Name of namespace the property belongs.R0���s ���<PROPERTY>s���Name of a property.s���New name of a property.c���������C���s���h��}�|�i��o�|�i��|�d�<n�|�i�o�|�i�|�d�<n�|�i�oJ�y�t�i�|�i��}�Wn �t�j �o�t�i�d��q�X|�i�|��n�|��i �i�|�i �|�i �|��}�t�i �|��d�S(���s8���Update metadata definitions property inside a namespace.Rh���R���s"���Schema is not a valid JSON object.N( ���Rh���R���R$���R���R���R���R���RB���RS���R���R���R0���R���(���RG���RH���RJ���R$���R���(����(����sB���/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt���do_md_property_updatee��s����     c���������C���s8���|��i��i�|�i�|�i��}�t�i�|�t�|�i���d�S(���sE���Describe a specific metadata definitions property inside a namespace.N(���R���R7���R���R0���R���R���R���R���(���RG���RH���Ry���(����(����sB���/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt���do_md_property_show��s����c���������C���s���|��i��i�|�i�|�i��d�S(���sC���Delete a specific metadata definitions property inside a namespace.N(���R���R���R���R0���(���RG���RH���(����(����sB���/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt���do_md_property_delete��s����c���������C���s���|��i��i�|�i��d�S(���sE���Delete all metadata definitions property inside a specific namespace.N(���R���t ���delete_allR���(���RG���RH���(����(����sB���/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt!���do_md_namespace_properties_delete��s����c���������C���s8���|��i��i�|�i��}�d�d�d�g�}�t�i�|�|��d�S(���sA���List metadata definitions properties inside a specific namespace.Rh���R���RW���N(���R���Rt���R���R���Ru���(���RG���RH���RY���R~���(����(����sB���/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt���do_md_property_list��s����c���������C���sx���t��|���}��d�|��j�o3�g��}�|��d�D] �}�|�|�q(�~�}�|�|��d�<n�|�o�t�i�|��|��n�t�i�|���d��S(���NRY���(���R;���R���R���(���R���R���R���R���R���(����(����sB���/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt ���_object_show��s����  %s)���Name of namespace the object will belong.s���Internal name of an object.s���Valid JSON schema of an object.c���������C���s|���y�t��i�|�i��}�Wn �t�j �o�t�i�d��nA�Xh�|�i�d�6}�|�i�|��|��i�i �|�i �|��}�t �|��d�S(���s<���Create a new metadata definitions object inside a namespace.s"���Schema is not a valid JSON object.Rh���N( ���R���R���R$���R���R���RB���Rh���RS���t���metadefs_objectRC���R���R���(���RG���RH���R$���RJ���t ���new_object(����(����sB���/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt���do_md_object_create��s���� s%���Name of namespace the object belongs.t���objects���<OBJECT>s���Name of an object.s���New name of an object.c���������C���s���h��}�|�i��o�|�i��|�d�<n�|�i�oJ�y�t�i�|�i��}�Wn �t�j �o�t�i�d��qu�X|�i�|��n�|��i�i�|�i �|�i �|��}�t �|��d�S(���s6���Update metadata definitions object inside a namespace.Rh���s"���Schema is not a valid JSON object.N( ���Rh���R$���R���R���R���R���RB���RS���R���R���R���R���(���RG���RH���RJ���R$���R���(����(����sB���/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt���do_md_object_update��s����    c���������C���s5���|��i��i�|�i�|�i��}�t�|�t�|�i���d�S(���sC���Describe a specific metadata definitions object inside a namespace.N(���R���R7���R���R���R���R���R���(���RG���RH���R���(����(����sB���/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt���do_md_object_show��s����c���������C���s���|��i��i�|�i�|�i��}�y"�|�d�|�i�}�|�i�|�d�<Wn0�t�j �o$�t�i�d�|�i�|�i�f��n�Xt�i�|�t �|�i ���d�S(���sC���Describe a specific metadata definitions property inside an object.RY���Rh���s#���Property %s not found in object %s.N( ���R���R7���R���R���R0���t���KeyErrorR���RB���R���R���R���(���RG���RH���R���Ry���(����(����sB���/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt���do_md_object_property_show��s����c���������C���s���|��i��i�|�i�|�i��d�S(���sA���Delete a specific metadata definitions object inside a namespace.N(���R���R���R���R���(���RG���RH���(����(����sB���/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt���do_md_object_delete��s����c���������C���s���|��i��i�|�i��d�S(���sD���Delete all metadata definitions objects inside a specific namespace.N(���R���R���R���(���RG���RH���(����(����sB���/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt���do_md_namespace_objects_delete��s����c���������C���sV���|��i��i�|�i��}�d�d�g�}�h�h�d�d�6d�d�6d�6}�t�i�|�|�d�|�d�S( ���s>���List metadata definitions objects inside a specific namespace.Rh���t ���descriptioni2���t ���max_widtht���lt���alignt���field_settingsN(���R���Rt���R���R���Ru���(���RG���RH���R���R~���t���column_settings(����(����sB���/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt���do_md_object_list��s���� c���������C���s8���t��|���}��|�o�t�i�|��|��n�t�i�|���d��S(���N(���R;���R���R���(���R^���R���(����(����sB���/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt ���_tag_show��s���� s-���Name of the namespace the tag will belong to.s���The name of the new tag to add.c���������C���sM���|�i��i���}�|�o&�|��i�i�|�i�|��}�t�|��n�t�i�d��d�S(���s6���Add a new metadata definitions tag inside a namespace.s.���Please supply at least one non-blank tag name.N(���Rh���t���stript ���metadefs_tagRC���R���R���R���RB���(���RG���RH���Rh���t���new_tag(����(����sB���/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt���do_md_tag_create��s ����s.���Name of the namespace the tags will belong to.s���--namess���<NAMES>s$���A comma separated list of tag names.s���--delims���<DELIM>s[���The delimiter used to separate the names (if none is provided then the default is a comma).c��� ������C���s���|�i��p�d�}�g��}�|�i�i�|��}�x2�|�D]*�}�|�i���}�|�o�|�i�|��q/�q/�W|�p�t�i�d��n�h�|�d�6}�|��i�i�|�i �|��}�d�g�}�h�h�d�d�6d�d�6d �6} �t�i �|�|�d �| �d �S( ���s8���Create new metadata definitions tags inside a namespace.t���,s>���Please supply at least one tag name. For example: --names Tag1RQ���Rh���i2���R���R���R���R���R���N( ���t���delimt���namesR>���R���R)���R���RB���R���t���create_multipleR���Ru���( ���RG���RH���R���RQ���t ���names_listRh���RJ���t���new_tagsR~���R���(����(����sB���/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt���do_md_tag_create_multiple+��s$���� �   s/���Name of the namespace to which the tag belongs.R^���s���Name of the old tag.s���New name of the new tag.c���������C���s`���|�i��i���}�|�o9�h�|�d�6}�|��i�i�|�i�|�i�|��}�t�|��n�t�i�d��d�S(���s5���Rename a metadata definitions tag inside a namespace.Rh���s.���Please supply at least one non-blank tag name.N( ���Rh���R���R���RS���R���R^���R���R���RB���(���RG���RH���Rh���RJ���R���(����(����sB���/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt���do_md_tag_updateM��s����  s���Name of the tag.c���������C���s)���|��i��i�|�i�|�i��}�t�|��d�S(���s@���Describe a specific metadata definitions tag inside a namespace.N(���R���R7���R���R^���R���(���RG���RH���R^���(����(����sB���/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt���do_md_tag_show^��s����c���������C���s���|��i��i�|�i�|�i��d�S(���s>���Delete a specific metadata definitions tag inside a namespace.N(���R���R���R���R^���(���RG���RH���(����(����sB���/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt���do_md_tag_deleteg��s����c���������C���s���|��i��i�|�i��d�S(���sA���Delete all metadata definitions tags inside a specific namespace.N(���R���R���R���(���RG���RH���(����(����sB���/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt���do_md_namespace_tags_deleteo��s����c���������C���sS���|��i��i�|�i��}�d�g�}�h�h�d�d�6d�d�6d�6}�t�i�|�|�d�|�d�S( ���s;���List metadata definitions tags inside a specific namespace.Rh���i2���R���R���R���R���R���N(���R���Rt���R���R���Ru���(���RG���RH���RQ���R~���R���(����(����sB���/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt���do_md_tag_listu��s���� s"���Sort task list by specified field.t���descs&���Sort task list in specified direction.s5���Number of tasks to request in each paginated request.s���--types���<TYPE>s*���Filter tasks to those that have this type.s���--statuss���<STATUS>s,���Filter tasks to those that have this status.c��� ������C���s���d�d�g�}�g��}�|�D]�}�|�|�t��|�|��f�q�~�}�t�g��}�|�D]"�}�|�d�d �j �o �|�|�qJ�qJ�~��}�h�|�d�6} �|�i�d �j �o�|�i�| �d�<n�|�i�| �d�<|�i�| �d�<|��i�i�| ���} �d�d �d �d �g�} �t�i �| �| ��d �S( ���s���List tasks you can access.RW���R#���i���Rb���Rd���Re���Rf���Rj���t���TypeRo���Rp���N( ���Rq���R;���R ���Rd���Re���Rf���R���Rt���R���Ru���( ���RG���RH���Rv���R���RM���Rw���Rx���R|���Rb���R}���R���R~���(����(����sB���/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt ���do_task_list��s���� 0<   s ���<TASK_ID>s���ID of task to describe.c���������C���st���|��i��i�|�i��}�d�d�g�}�t�g��}�|�i���D]"�}�|�d�|�j�o �|�|�q5�q5�~��}�t�i�|��d�S(���s���Describe a specific task.t���selfR$���i����N(���R���R7���R5���R;���t ���iteritemsR���R���(���RG���RH���t���taskt���ignoreR���R|���(����(����sB���/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt ���do_task_show��s���� Bs^���Type of Task. Please refer to Glance schema or documentation to see which tasks are supported.s���--inputs%���Parameters of the task to be launchedc���������C���s���|�i��o�|�i�p�t�i�d��n�y�t�i�|�i��}�Wn �t�j �o�t�i�d��n�Xh�|�i��d�6|�d�6}�|��i�i�|���}�d�d�g�}�t �g��}�|�i ���D]"�}�|�d�|�j�o �|�|�q�q�~��}�t�i �|��d�S( ���s���Create a new task.s3���Unable to create task. Specify task type and input.sC���Failed to parse the "input" parameter. Must be a valid JSON object.RW���t���inputR��R$���i����N( ���RW���R��R���RB���R���R���R���R���RC���R;���R��R���(���RG���RH���R��t ���task_valuesR��R��R���R|���(����(����sB���/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt���do_task_create��s���� ((���s���locationR���s���file(T���R���t���glanceclient.commonR����R���t ���glanceclientR���t���glanceclient.v2R���R���R���R���R���R ���t���MEMBER_STATUS_VALUESR ���R ���t ���DATA_FIELDSR���t ���schema_argst���argRA���t���on_data_require_fieldsRP���RV���R���t���SORT_KEY_VALUESt���SORT_DIR_VALUESt���joinR���R���t���TrueR���R���R���R���R���R���RE���R���R���R���R���R���R���R���R���R���R���R���R���R���R���R���R���R���R���R���R���R���R���R���R���R���R���R���R���R���R���R���R���R���R���R���R���R���R��R��R��R��R ��R ��R ��R��R��(����(����(����sB���/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/v2/shell.pyt���<module>���s��         $     ='  , $  $          $'$$  '$$   ''$$  $