
    	                     B    S r SSKJr  SSKJr  SSKJr   " S S\5      rg)z Encapsulation of a docker image.    )absolute_import)division)unicode_literalsc                   v    \ rS rSrSr  SS jr\S 5       r\S 5       r\S 5       r	\S 5       r
\S	 5       rS
rg)Image   zEDocker image that requires building and should be removed afterwards.Nc                 N    Xl         X l        X0l        X@l        XPl        SU l        g)a*  Initializer for Image.

Args:
  dockerfile_dir: str, Path to the directory with the Dockerfile.
  repo: str, Repository name to be applied to the image in case of
      successful build.
  tag: str, Repository tag to be applied to the image in case of successful
      build.
  nocache: boolean, True if cache should not be used when building the
      image.
  rm: boolean, True if intermediate images should be removed after a
      successful build. Default value is set to True because this is the
      default value used by "docker build" command.
N)_dockerfile_dir_repo_tag_nocache_rm_id)selfdockerfile_dirrepotagnocacherms         .lib/googlecloudsdk/api_lib/app/docker_image.py__init__Image.__init__   s%      *JIMHDH    c                     U R                   $ )z4Returns the directory the image is to be built from.)r
   r   s    r   r   Image.dockerfile_dir2   s     r   c                     U R                   $ )z:Returns 64 hexadecimal digit string identifying the image.)r   r   s    r   idImage.id7   s     88Or   c                     U R                   $ )zReturns image repo string.)r   r   s    r   r   
Image.repo=   s     ::r   c                     U R                   $ )zReturns image tag string.)r   r   s    r   r   	Image.tagB   s     99r   c                     U R                   (       a&  SR                  U R                  U R                   5      $ U R                  $ )z1Returns image repo string with tag, if it exists.z{0}:{1})r   formatr   r   s    r   tagged_repoImage.tagged_repoG   s.     59HH9DIItxx0K$))Kr   )r
   r   r   r   r   r   )NNNFT)__name__
__module____qualname____firstlineno____doc__r   propertyr   r   r   r   r&   __static_attributes__ r   r   r   r      sv    MGL0      
     L Lr   r   N)r,   
__future__r   r   r   objectr   r/   r   r   <module>r2      s!     ' &  '3LF 3Lr   