Ñò ›ˆQc@s©dZddklZddkZddklZeiZdeifd„ƒYZ de fd„ƒYZ d e fd „ƒYZ d e ei fd „ƒYZ d „ZdS(s?Commands for interacting with Google Compute Engine operations.iÿÿÿÿ(t appcommandsN(t command_basetOperationCommandcBsSeZdZeiiZeiiZeii Z dZ d„Z d„Z d„ZRS(stBase command for working with the operations collection. Attributes: default_sort_field: The json field name used to sort list output for the command. summary_fields: A set of tuples of (json field name, human readable name) used to generate a pretty-printed summary description of a list of operation resources. detail_fields: A set of tuples of (json field name, human readable name) used to generate a pretty-printed detailed description of an operation resource. resource_collection_name: The name of the REST API collection handled by this command type. t operationscCs=tt|ƒi||ƒtidddtid|ƒdS(Ntzones=The name of the operation zone or '%s' for global operations.t flag_values(tsuperRt__init__tflagst DEFINE_stringtNoneRtGLOBAL_ZONE_NAME(tselftnameR((sc/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/operation_cmds.pyR3s   cCsT|iƒ|_|idƒo"|iƒ|_|iƒ|_n|iƒ|_dS(sSet the Google Compute Engine API for the command. Args: api: The Google Compute Engine API used by this command. tv1beta14N(tzonest _zones_apit_IsUsingAtLeastApiVersiontzoneOperationst_zone_operations_apitglobalOperationst_global_operations_apiR(R tapi((sc/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/operation_cmds.pytSetApi;s cKs‰h|id6|i|ƒd6}|idƒo.|iitijo|ii|dcCsjt|i_|i|ƒ}|ii}|idƒod|jo|ii}n||}|iƒS(sÊGet the specified operation. Args: operation_name: The name of the operation to get. Returns: The json formatted object resulting from retrieving the operation resource. RR( tFalseRtsynchronous_modeR#RtgetRRtexecute(R RR tmethodtrequest((sc/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/operation_cmds.pytHandlegs   (R$R%R&tpositional_argsR6(((sc/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/operation_cmds.pyR/bstDeleteOperationcBs#eZdZdZdZd„ZRS(sDelete one or more operations.s) ... sDelete operationcGs‘g}xi|D]a}|i|ƒ}|ii}|idƒod|jo|ii}n|i||ƒq W|i|ƒ\}}d|fS(sÅDelete the specified operations. Args: *operation_names: The names of the operations to delete. Returns: Tuple (results, exceptions) - results of deleting the operations. RRt(R#RtdeleteRRtappendtExecuteRequests(R toperation_namestrequestsRR R4t_t exceptions((sc/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/operation_cmds.pyR6…s  (R$R%R&R7t safety_promptR6(((sc/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/operation_cmds.pyR8stListOperationscBs5eZdZeZeZd„Zd„Zd„ZRS(s"List the operations for a project.cCs6tt|ƒi||ƒtidddd|ƒdS(NRsThe zone to list.R(RRRRR R (R R R((sc/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/operation_cmds.pyR s  cCs |iiS(s3Returns the function for listing global operations.(Rtlist(R ((sc/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/operation_cmds.pytListFunc§scCs%|idƒo |iiS|iiS(s6Returns the function for listing operations in a zone.R(RRRCR(R ((sc/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/operation_cmds.pyt ListZoneFunc«s ( R$R%R&tTruetis_global_level_collectiontis_zone_level_collectionRRDRE(((sc/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/operation_cmds.pyRBšs   cCs4tidtƒtidtƒtidtƒdS(Nt getoperationtdeleteoperationtlistoperations(RtAddCmdR/R8RB(((sc/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/operation_cmds.pyt AddCommands²s(R&tgoogle.apputilsRtgflagsRtgcutilRtFLAGSR'RR/R8tGoogleComputeListCommandRBRM(((sc/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/operation_cmds.pyts  F