ó
    €Ïæ	  ã                   ó\   • 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 rS	 rg
)z0Attachment utils for Artifact Registry commands.é    )Úabsolute_import)Údivision)Úunicode_literals)Ú
exceptions)Údocker_util)Úrequestsc                 ór  • U R                   (       d-  [        U R                  R                  R	                  5       5      $ [
        R                  " U R                   5      n[        R                  " 5       n[        R                  " 5       nUR                  UR                  R                  R                  5       S9nSR                  UR                  5       S9Ul        UR"                  R%                  U5      nUR&                  (       dV  [(        R*                  " SR                  UR                  5       UR                  R                  R                  5       5      5      e[-        UR&                  5      S:w  a3  [(        R*                  " SR                  UR                  5       5      5      eUR&                  S   $ )ú%Get the artifact registry Attachment.)Úparentzoci_version_name="{name}"©Únamez2OCI version name {} is not found in repository {}.é   z7OCI version name {} points to more than one attachment.r   )Úoci_version_nameÚGetAttachmentÚCONCEPTSÚ
attachmentÚParser   ÚParseDockerVersionStrr   Ú	GetClientÚGetMessagesÚCArtifactregistryProjectsLocationsRepositoriesAttachmentsListRequestÚimageÚdocker_repoÚGetRepositoryNameÚformatÚGetVersionNameÚfilterÚ+projects_locations_repositories_attachmentsÚListÚattachmentsÚar_exceptionsÚInvalidInputValueErrorÚlen)ÚargsÚoci_versionÚclientÚmessagesÚrequestÚresponses         Ú;lib/googlecloudsdk/command_lib/artifacts/attachment_util.pyÚGetAttachmentToDownloadr+      si  € à	×	×	Ü˜Ÿ™×1Ñ1×7Ñ7Ó9Ó:Ð:ä×1Ò1°$×2GÑ2GÓH€+Ü×ÒÓ€&Ü×!Ò!Ó#€(Ø×XÑXØ×Ñ×*Ñ*×<Ñ<Ó>ð Yð €'ð /×5Ñ5Ø×%Ñ%Ó'ð 6ð €'„.ð ×?Ñ?×DÑDÀWÓM€(Ø	×	×	Ü
×
.Ò
.Ø<×CÑCØ×&Ñ&Ó(Ø×Ñ×)Ñ)×;Ñ;Ó=ó	
óð ô 	ˆ×	Ñ	Ó !Ó#Ü
×
.Ò
.ØA×HÑHØ×&Ñ&Ó(ó	
óð ð
 
×	Ñ	˜aÑ	 Ð ó    c                 óÊ   • [         R                  " 5       n[         R                  " 5       nUR                  U R	                  5       S9nUR
                  R                  U5      nU$ )r
   r   )r   r   r   ÚBArtifactregistryProjectsLocationsRepositoriesAttachmentsGetRequestÚRelativeNamer   ÚGet)Úattachment_refr&   r'   r(   r   s        r*   r   r   9   s^   € ä×ÒÓ€&Ü×!Ò!Ó#€(Ø×WÑWØ×&Ñ&Ó(ð Xð €'ð ×AÑA×EÑEÀgÓN€*Ø	Ðr,   N)Ú__doc__Ú
__future__r   r   r   Ú googlecloudsdk.api_lib.artifactsr   r!   Ú$googlecloudsdk.command_lib.artifactsr   r   r+   r   © r,   r*   Ú<module>r7      s&   ðñ 7å &Ý Ý 'å HÝ <Ý 9ò!ó>r,   