Ñò ›ˆQc@sÕdZddklZddkZddklZeiZdeifd„ƒYZ de fd„ƒYZ d e fd „ƒYZ d e fd „ƒYZ d e ei fd„ƒYZde fd„ƒYZd„ZdS(sCCommands for interacting with Google Compute Engine machine images.iÿÿÿÿ(t appcommandsN(t command_baset ImageCommandcBsPeZdZdZd d d d fZddddfZdZd„Zd „ZRS(s4Base command for working with the images collection.tnamet descriptions creation-timetcreationTimestamptkerneltpreferredKerneltimagescCstt|ƒi||ƒdS(N(tsuperRt__init__(tselfRt flag_values((s_/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/image_cmds.pyR /scCs"|iƒ|_|iƒ|_dS(s›Set the Google Compute Engine API for the command. Args: api: The Google Compute Engine API used by this command. Returns: None. N(Rt _images_apitkernelst _kernels_api(R tapi((s_/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/image_cmds.pytSetApi2s (snamesname(s descriptions description(s creation-timescreationTimestamp(skernelR(snamesname(s descriptions description(s creation-timescreationTimestamp(skernelR( t__name__t __module__t__doc__tdefault_sort_fieldtsummary_fieldst detail_fieldstresource_collection_nameR R(((s_/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/image_cmds.pyRs   tAddImagecBs&eZdZdZd„Zd„ZRS(s¦Create a new machine image. The root_source_tarball parameter must point to a tar file of the contents of the desired root directory stored in Google Storage. s" cCsOtt|ƒi||ƒtidddd|ƒtidddd|ƒdS(NRtsImage descriptionR tpreferred_kernels Kernel name(R RR tflagst DEFINE_stringtNone(R RR ((s_/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/image_cmds.pyR Hs  cCs|idƒod|tdƒ}nh|idƒd6|i|ƒd6|iid6dd6h|d 6d d 6d 6}|iio&|i|id |iiƒ|dcCstt|ƒi||ƒdS(N(R R<R (R RR ((s_/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/image_cmds.pyR scCs1|iid|id|i|ƒƒ}|iƒS(sŽGSet the specified image. Args: image_name: The name of the image to get. Returns: The result of getting the image. R)R(R tgetR1R.R5(R R6R9((s_/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/image_cmds.pyR:‚s  (RRRR;R R:(((s_/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/image_cmds.pyR<zs t DeleteImagecBs,eZdZdZdZd„Zd„ZRS(swDelete one or more machine images. If multiple image names are specified, the images will be deleted in parallel. s! ... s Delete imagecCstt|ƒi||ƒdS(N(R R>R (R RR ((s_/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/image_cmds.pyR ›scGspg}x<|D]4}|i|iid|id|i|ƒƒƒq W|i|ƒ\}}|i|dƒ|fS(sµDelete the specified images. Args: *image_names: The names of the images to delete. Returns: Tuple (results, exceptions) - results of deleting the images. R)Rt operationList(tappendR tdeleteR1R.tExecuteRequeststMakeListResult(R t image_namestrequestsRtresultst exceptions((s_/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/image_cmds.pyR:žs  (RRRR;t safety_promptR R:(((s_/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/image_cmds.pyR>’s  t ListImagescBseZdZd„ZRS(sList the images for a project.cCs |iiS(s(Returns the function for listing images.(R tlist(R ((s_/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/image_cmds.pytListFunc³s(RRRRK(((s_/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/image_cmds.pyRI°st DeprecatecBs/eZdZdZd„Zd„Zd„ZRS(s)Sets the deprecation status for an image.s cCs¦tt|ƒi||ƒtidddddgdd|ƒtidddd|ƒtid dd d|ƒtid dd d|ƒtid ddd|ƒdS(Ntstatet DEPRECATEDtOBSOLETEtDELETEDsÞThe new deprecation state for this image. Valid values are DEPRECATED, OBSOLETE, and DELETED. DEPRECATED resources will generate a warning when new uses occur, OBSOLETE and DELETED resources generate an error on new uses.R t replacementsxA valid full URL to a compute engine image. Users of the deprecated image will be advised to switch to this replacement.t deprecated_ons´A valid RFC 3339 full-date or date-time on which the state of this resource became or will become DEPRECATED. For example: 2020-01-02T00:00:00Z for midnight on January 2nd, 2020.t obsolete_ons²A valid RFC 3339 full-date or date-time on which the state of this resource became or will become OBSOLETE. For example: 2020-01-02T00:00:00Z for midnight on January 2nd, 2020.t deleted_ons±A valid RFC 3339 full-date or date-time on which the state of this resource became or will become DELETED. For example: 2020-01-02T00:00:00Z for midnight on January 2nd, 2020.(R RLR Rt DEFINE_enumRR(R RR ((s_/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/image_cmds.pyR ½s,      cCs„h|iid6|i|id|iiƒd6|iid6|iid6|iid6}|ii d|id|i |ƒd |ƒS( s>Build a request to set deprecation status for the given image.RMRRQt deprecatedtobsoletetdeletedR)RR*( R/RMR0R1RQRRRSRTR t deprecateR.(R R6tdeprecation_status((s_/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/image_cmds.pyt _BuildRequestås     cCs|i|ƒ}|iƒS(sªSets deprecation status on an image. Args: image_name: the name of the image for which deprecation will be set. Returns: An operation resource. (R[R5(R R6tset_deprecation_request((s_/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/image_cmds.pyR:ôs (RRRR;R R[R:(((s_/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/image_cmds.pyRL¸s  ( cCsTtidtƒtidtƒtidtƒtidtƒtidtƒdS(Ntaddimagetgetimaget deleteimaget listimagestdeprecateimage(RtAddCmdRR<R>RIRL(((s_/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/image_cmds.pyt AddCommandss (Rtgoogle.apputilsRtgflagsRtgcutilRtFLAGStGoogleComputeCommandRRR<R>tGoogleComputeListCommandRIRLRc(((s_/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_compute_engine/gcutil/image_cmds.pyts   ;I