
    	                        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K	J
r
  SSKJr  S	S
S.r\R                  \R                  " \R                   R"                  5       " S S\R$                  5      5       5       r\\l        g)z>Bare Metal Solution snapshot schedule policies create command.    )absolute_import)division)unicode_literals)	BmsClient)base)flags)labels_utilzJ
          Create a Bare Metal Solution snapshot schedule policy.
        a  
          To create a policy called ``my-policy'' in project ``my-project''
          with description ``my-description'' a schedule that runs every 3
          hours and labels 'key1=value1' and 'key2=value2', run:

          $ {command} my-policy --project=my-project --description=my-description --schedule="crontab_spec=0 */3 * * *,retention_count=10,prefix=example" --labels=key1=value1,key2=value2
    )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)Create*   z6Create a Bare Metal Solution snapshot schedule policy.c                     [         R                  " U SS9  [         R                  " U 5        [        R                  " U 5        U R                  SSS9  g)z Register flags for this command.T)
positionalz--descriptionzDescription of the policy.)helpN)r   $AddSnapshotSchedulePolicyArgToParser"AddSnapshotScheduleArgListToParserr	   AddCreateLabelsFlagsadd_argument)parsers    4lib/surface/bms/snapshot_schedule_policies/create.pyArgsCreate.Args/   sK     
..4!	,,V4$$V,
9  ;    c                    UR                   R                  R                  5       nUR                  n[	        5       nUR                  U[        R                  " XR                  R                  R                  5      UUR                  S9$ )N)policy_resourcelabelsdescription	schedules)CONCEPTSsnapshot_schedule_policyParser   r   CreateSnapshotSchedulePolicyr	   ParseCreateArgsmessagesSnapshotSchedulePolicyLabelsValueschedule)selfargspolicyr   clients        r   Run
Create.Run9   ss    ]]3399;F""K[F..**//88DDF-- / ! !r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r-   __static_attributes__r/   r   r   r   r   *   s     ?; ;	!r   r   N)r4   
__future__r   r   r   %googlecloudsdk.api_lib.bms.bms_clientr   googlecloudsdk.callioper   googlecloudsdk.command_lib.bmsr   $googlecloudsdk.command_lib.util.argsr	   DETAILED_HELPHiddenReleaseTracksReleaseTrackALPHACreateCommandr   detailed_helpr/   r   r   <module>rC      s    E &  ' ; ( 0 <		  D%%++,!T ! - !2 % r   