
                             S r SSKJr  SSKJr  SSKJr  SSK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                   " S S\
R                  5      5       r\\l        g)zCreate Attestor command.    )absolute_import)division)unicode_literalsN)apis)	attestors)base)flagsz!
        Create an Attestor.
    z
  To create an Attestor with an existing Note `projects/my_proj/notes/my_note`:

    $ {command}         my_new_attestor
        --attestation-authority-note=my_note         --attestation-authority-note-project=my_proj     )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)Create.   zCreate an Attestor.
  c                     [         R                  " U[         R                  " SSS9[         R                  " SSS[        R
                  " S5      S95        UR                  SSS	S
9  g )NTzThe attestor to be created.)
positional
group_helpzattestation-authority-noteFa5                  The Container Analysis Note to which the created attestor will
                be bound.

                For the attestor to be able to access and use the Note,
                the Note must exist and the active gcloud account (core/account)
                must have the `containeranalysis.notes.listOccurrences` permission
                for the Note. This can be achieved by granting the
                `containeranalysis.notes.occurrences.viewer` role to the active
                account for the Note resource in question.

                )	base_namerequiredr   r   z--descriptionzA description for the attestor)r   help)r	   AddConceptsGetAttestorPresentationSpecGetNotePresentationSpectextwrapdedentadd_argument)clsparsers     2lib/surface/container/binauthz/attestors/create.pyArgsCreate.Args3   so    	))4	
 	%%2 ( 		
0 %.N  P    c                 6   UR                   R                  R                  5       nUR                   R                  R                  5       n[        R
                  " U R                  5       5      n[        R                  " U5      R                  X#UR                  S9$ )N)description)CONCEPTSattestorParseattestation_authority_noter   GetApiVersionReleaseTrackr   Clientr   r"   )selfargsattestor_refnote_refapi_versions        r   Run
Create.RunP   sy    ==))//1L}}77==?H$$T%6%6%89KK(//D,<,< 0 > >r     N)	__name__
__module____qualname____firstlineno____doc__classmethodr   r/   __static_attributes__r1   r    r   r   r   .   s"     P P8>r    r   )r6   
__future__r   r   r   r   )googlecloudsdk.api_lib.container.binauthzr   r   googlecloudsdk.callioper   -googlecloudsdk.command_lib.container.binauthzr	   DETAILED_HELPDefaultUniverseOnlyCreateCommandr   detailed_helpr1   r    r   <module>rA      se     &  '  : ? ( ?
		" '>T '> '>V % r    