
    	                     Z    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\	5      r
g	)
z.API helpers for interacting with attestations.    )absolute_import)division)unicode_literals)encoding)apisc                   (    \ rS rSrSrSS jrS rSrg)Client   z+A client for interacting with attestations.Nc                 |    [         R                  " U5      U l        [         R                  " U5      U l        Xl        g N)r   GetClientInstanceclientGetMessagesModulemessagesapi_version)selfr   s     =lib/googlecloudsdk/api_lib/container/binauthz/attestations.py__init__Client.__init__   s,    ((5DK**;7DM"    c                    [         R                  " U R                  R                  [         R                  " UR
                  5      5      nU R                  R                  UUR                  UR                  S9nU R                  R                  UR                  5       US9nU R                  R                  R                  U5      nU$ )zKValidates a v1 Occurrence using the TestAttestationOccurrence RPC endpoint.)attestationoccurrenceNoteoccurrenceResourceUri)attestor$validateAttestationOccurrenceRequest)r   JsonToMessager   AttestationOccurrenceMessageToJsonr   $ValidateAttestationOccurrenceRequestnoteNameresourceUriHBinaryauthorizationProjectsAttestorsValidateAttestationOccurrenceRequestRelativeNamer   projects_attestorsValidateAttestationOccurrence)r   
occurrenceattestor_refbinauthz_attestationtest_attestation_requestvalidation_requestvalidation_responses          r   TestClient.Test!   s     $11++z5568  $}}QQ(!**(44  R  
 oo**,-E p G ++88VV r   )r   r   r   r   )__name__
__module____qualname____firstlineno____doc__r   r-   __static_attributes__ r   r   r	   r	      s    3#
r   r	   N)r3   
__future__r   r   r   apitools.base.pyr   )googlecloudsdk.api_lib.container.binauthzr   objectr	   r5   r   r   <module>r:      s%    5 &  ' % :V r   