ó
    €Ï*	  ã                   ó\   • 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 jrg	)zHFunctions related to resource validation for Binary Authorization's CLI.é    )Úabsolute_import)Údivision)Úunicode_literals)Úattestations)Úlog)Ú
console_ioc                 óP  • [         R                  " U5      nUR                  X5      nUR                  UR                  R
                  R                  R                  :X  a  [        R                  " S5        gUR                  UR                  R
                  R                  R                  :X  a0  [        R                  " SR                  UR                  5      5        O[        R                  " S5        [        R                   " SR                  UR#                  5       5      SS9  g)a·  Returns the passed `image_url` with the scheme replaced.

Args:
  occurrence: The AttestationOccurrence-kind Occurrence to be validated.
    (grafeas.v1.Occurrence)
  attestor_ref: The Attestor to validate the Attestation against. (Resource)
  api_version: The version of the Binary Authorization API to use. (string)
  action: The name of the action included in the confirmation prompt if the
    Attestation can't be validated. (string)
z&Attestation was successfully validatedNz(Attestation could not be validated! ({})z9Attestation could not be validated! (Reason not provided)z{} Attestation anyway?T)Úprompt_stringÚcancel_on_no)r   ÚClientÚTestÚresultÚmessagesÚ%ValidateAttestationOccurrenceResponseÚResultValueValuesEnumÚVERIFIEDr   ÚinfoÚATTESTATION_NOT_VERIFIABLEÚwarningÚformatÚdenialReasonÚerrorr   ÚPromptContinueÚ
capitalize)Ú
occurrenceÚattestor_refÚapi_versionÚactionÚclientÚvalidation_responses         Ú?lib/googlecloudsdk/command_lib/container/binauthz/validation.pyÚvalidate_attestationr"      sÞ   € ô ×Ò˜{Ó+€&ØŸ™ JÓ=ÐØ×Ñ 6§?¡?×#XÑ#X×#nÑ#n×#wÑ#wÓwÜ‡H‚HÐ5Ô6Ø
Ø×!Ñ! V§_¡_×%ZÑ%Z×%pÑ%p÷  &Lñ  &Ló  LÜ‡K‚KÐ:×AÑAØ×(Ñ(ó*õ +ô ‡I‚IÐIÔJä×ÒØ,×3Ñ3°F×4EÑ4EÓ4GÓHØóó    N)Úcreate)Ú__doc__Ú
__future__r   r   r   Ú)googlecloudsdk.api_lib.container.binauthzr   Úgooglecloudsdk.corer   Úgooglecloudsdk.core.consoler   r"   © r#   r!   Ú<module>r+      s'   ðñ Oå &Ý Ý 'å BÝ #Ý 2ð !)õr#   