ó
    €ÏF  ã                   óf  • S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr	  S S jr
S S	 jrS
 rS rS rS rS rS r\	R$                  " SS\R&                  SSSSS9r\	R$                  " SS\R&                  SSSS\	R*                  R,                  S9r\	R$                  " SS\R0                  SSSSS9rg)!z5Flags and helpers for the compute snapshots commands.é    )Úabsolute_import)Údivision)Úunicode_literals)Ú
completers)ÚflagsFc                 óN   • [         R                  " SS[        R                  U SS9$ )NÚsnapshotÚsnapshot_nameúcompute.snapshots)Úresource_nameÚnameÚ	completerÚpluralÚglobal_collection©Úcompute_flagsÚResourceArgumentÚcompute_completersÚRoutesCompleter©r   s    Ú9lib/googlecloudsdk/command_lib/compute/snapshots/flags.pyÚMakeSnapshotArgr      s*   € Ü	×	'Ò	'ØØÜ"×2Ñ2ØØ+ñ
ð ó    c           	      óP   • [         R                  " SS[        R                  U SSS9$ )Nr	   r
   zcompute.regionSnapshotsr   )r   r   r   r   Úregional_collectionr   r   r   s    r   Ú#MakeSnapshotArgForRegionalSnapshotsr   #   s-   € Ü	×	'Ò	'ØØÜ"×2Ñ2ØØ3Ø+ñ
ð r   c                 ó„   • U R                  SSS9nUR                  SSSS9  UR                  SS	[        R                  S
9  g)zSAdds scope flag to the parser.

Args:
  parser: parser for command line arguments.
TzScope for snapshot.)ÚmutexÚhelpz--globalÚ
store_truez8If set, the snapshot will be created in the global scope)Úactionr   z--regionz:If set, the snapshot will be created in the regional scope)r   r   N)Ú	add_groupÚadd_argumentr   ÚRegionsCompleter)ÚparserÚgroups     r   ÚAddScopeArgr'   .   sa   € ð ×
Ñ
ØØ ð ð €%ð
 ×ÑØØØEð ñ ð ×ÑØØGÜ"×3Ñ3ð ò r   c                 ó$   • U R                  SSS9  g )Nz--chain-namea³  Create the new snapshot in the snapshot chain labeled with the specified name.
          The chain name must be 1-63 characters long and comply with RFC1035.
          Use this flag only if you are an advanced service owner who needs
          to create separate snapshot chains, for example, for chargeback tracking.
          When you describe your snapshot resource, this field is visible only
          if it has a non-empty value.©r   ©r#   ©r%   s    r   ÚAddChainArgr,   F   s   € Ø×ÑØð*ð ò 
r   c                 ó&   • U R                  SSSS9  g )Nz--source-disk-key-fileÚFILEzª
      Path to the customer-supplied encryption key of the source disk.
      Required if the source disk is protected by a customer-supplied
      encryption key.
      ©Úmetavarr   r*   r+   s    r   ÚAddSourceDiskCsekKeyr1   T   s    € Ø×ÑØØð
ð ò r   c                 ó&   • U R                  SSSS9  g )Nz"--source-instant-snapshot-key-filer.   zÂ
      Path to the customer-supplied encryption key of the source instant snapshot.
      Required if the source instant snapshot is protected by a customer-supplied
      encryption key.
      r/   r*   r+   s    r   ÚAddSourceInstantSnapshotCsekKeyr3   `   s    € Ø×ÑØ*Øð
ð ò r   c                 ó@   • [        SS/5      nU R                  SUSS9  g )NÚSTANDARDÚARCHIVEz--snapshot-typezv
              Type of snapshot. If a snapshot type is not specified, a STANDARD snapshot will be created.
           )Úchoicesr   )Úsortedr#   )r%   Úsnapshot_type_choicess     r   ÚAddSnapshotTyper:   l   s0   € Ü  *¨iÐ!8Ó9ÐØ×ÑØØ#ðð ò r   c                 ó$   • U R                  SSS9  g )Nz--max-retention-daysz†
    Days for snapshot to live before being automatically deleted. If unspecified, the snapshot will live until manually deleted.
    r)   r*   r+   s    r   ÚAddMaxRetentionDaysr<   w   s   € Ø×ÑØðð ò r   zsource diskz--source-diska  
    Source disk used to create the snapshot. To create a snapshot from a source
    disk in a different project, specify the full path to the source disk.
    For example:
    https://www.googleapis.com/compute/v1/projects/MY-PROJECT/zones/MY-ZONE/disks/MY-DISK
    zcompute.diskszcompute.regionDisks)r   r   r   Ú
short_helpÚzonal_collectionr   Úrequiredz#source disk for recovery checkpointz%--source-disk-for-recovery-checkpointa  
    Source disk whose recovery checkpoint used to create the snapshot. To create a snapshot from the recovery
    checkpoint of a source disk in a different project, specify the full path to the source disk.
    For example:
    projects/MY-PROJECT/regions/MY-REGION/disks/MY-DISK
    )r   r   r   r=   r   r   r?   Úscope_flags_usagezsource instant snapshotz--source-instant-snapshota÷  
    The name or URL of the source instant snapshot. If the name is provided, the instant snapshot's zone
or region must be specified with --source-instant-snapshot-zone or --source-instant-snapshot-region accordingly.
    To create a snapshot from an instant snapshot in a different project, specify the full path to the instant snapshot.
    If the URL is provided, format should be:
    https://www.googleapis.com/compute/v1/projects/MY-PROJECT/zones/MY-ZONE/instantSnapshots/MY-INSTANT-SNAPSHOT
    zcompute.instantSnapshotszcompute.regionInstantSnapshotsN)F)Ú__doc__Ú
__future__r   r   r   Ú"googlecloudsdk.command_lib.computer   r   r   r   r   r   r'   r,   r1   r3   r:   r<   r   ÚDisksCompleterÚSOURCE_DISK_ARGÚScopeFlagsUsageÚGENERATE_DEDICATED_SCOPE_FLAGSÚ'SOURCE_DISK_FOR_RECOVERY_CHECKPOINT_ARGÚInstantSnapshotsCompleterÚSOURCE_INSTANT_SNAPSHOT_ARG© r   r   Ú<module>rL      så   ðñ <å &Ý Ý 'å OÝ Eôôòò0ò	ò	òòð  ×0Ò0ØØ	Ø ×/Ñ/ðð %Ø-Øñ€ð +8×*HÒ*HØ7Ø	0Ø ×/Ñ/ðð .ØØØ#×3Ñ3×RÑRñ+Ð 'ð  ,×<Ò<Ø+Ø	$Ø ×:Ñ:ðð 0Ø8ØñÑ r   