
                         n    S r SSKJr  SSKJr  SSKJr   " S S\5      r " S S\5      r " S	 S
\5      rg)z7Base template using which the apis_map.py is generated.    )absolute_import)division)unicode_literalsc                   D    \ rS rSrSr     S
S jrS rS rS rS r	S	r
g)APIDef   a  Struct for info required to instantiate clients/messages for API versions.

Attributes:
  apitools: ApitoolsClientDef for this API version.
  gapic: GapicClientDef for this API version.
  default_version: bool, Whether this API version is the default version for
    the API.
  enable_mtls: bool, Whether this API version supports mTLS.
  mtls_endpoint_override: str, The mTLS endpoint for this API version. If
    empty, the MTLS_BASE_URL in the API client will be used.
Nc                 @    Xl         X l        X0l        X@l        XPl        g N)apitoolsgapicdefault_versionenable_mtlsmtls_endpoint_override)selfr   r   r   r   r   s         +lib/googlecloudsdk/api_lib/regen/api_def.py__init__APIDef.__init__#   s      MJ*""8    c                 l    [        XR                  5      =(       a    U R                  UR                  :H  $ r
   
isinstance	__class____dict__r   others     r   __eq__APIDef.__eq__/   (    unn- ,MMU^^+-r   c                 .    U R                  U5      (       + $ r
   r   r   s     r   __ne__APIDef.__ne__3       {{5!!!r   c                     SnUR                  U R                  U R                  U R                  U R                  U R
                  5      $ )Nz!APIDef({0}, {1}, {2}, {3}, "{4}"))formatr   r   r   r   r   r   src_fmts     r   get_init_sourceAPIDef.get_init_source6   s@    1G>>$--..**D,G,GI Ir   c                 "    U R                  5       $ r
   r(   r   s    r   __repr__APIDef.__repr__<       !!r   )r   r   r   r   r   )NNFT )__name__
__module____qualname____firstlineno____doc__r   r   r!   r(   r-   __static_attributes__ r   r   r   r      s2    
 $&(
9-"I"r   r   c                   V    \ rS rSrSrS r\S 5       r\S 5       rS r	S r
S rS	 rS
rg)ApitoolsClientDef@   a<  Struct for info required to instantiate clients/messages for API versions.

Attributes:
  class_path: str, Path to the package containing api related modules.
  client_classpath: str, Relative path to the client class for an API version.
  client_full_classpath: str, Full path to the client class for an API
    version.
  messages_modulepath: str, Relative path to the messages module for an API
    version.
  messages_full_modulepath: str, Full path to the messages module for an API
    version.
  base_url: str, The base_url used for the default version of the API.
c                 4    Xl         X l        X0l        X@l        g r
   )
class_pathclient_classpathmessages_modulepathbase_url)r   r<   r=   r>   r?   s        r   r   ApitoolsClientDef.__init__O   s    
 !O,2Mr   c                 :    U R                   S-   U R                  -   $ N.)r<   r=   r,   s    r   client_full_classpath'ApitoolsClientDef.client_full_classpathY   s    ??S 4#8#888r   c                 :    U R                   S-   U R                  -   $ rB   )r<   r>   r,   s    r   messages_full_modulepath*ApitoolsClientDef.messages_full_modulepath]   s    ??S 4#;#;;;r   c                 l    [        XR                  5      =(       a    U R                  UR                  :H  $ r
   r   r   s     r   r   ApitoolsClientDef.__eq__a   r   r   c                 .    U R                  U5      (       + $ r
   r    r   s     r   r!   ApitoolsClientDef.__ne__e   r#   r   c                 ~    SnUR                  U R                  U R                  U R                  U R                  5      $ )Nz-ApitoolsClientDef("{0}", "{1}", "{2}", "{3}"))r%   r<   r=   r>   r?   r&   s     r   r(   !ApitoolsClientDef.get_init_sourceh   s7    =G>>$//4+@+@22DMMC Cr   c                 "    U R                  5       $ r
   r+   r,   s    r   r-   ApitoolsClientDef.__repr__m   r/   r   )r?   r<   r=   r>   N)r1   r2   r3   r4   r5   r   propertyrD   rG   r   r!   r(   r-   r6   r7   r   r   r9   r9   @   sI     9 9 < <-"C
"r   r9   c                   f    \ rS rSrSrS r\S 5       r\S 5       r\S 5       r	S r
S rS	 rS
 rSrg)GapicClientDefq   a  Struct for info required to instantiate clients/messages for API versions.

Attributes:
  class_path: str, Path to the package containing api related modules.
  client_full_classpath: str, Full path to the client class for an API
    version.
  async_client_full_classpath: str, Full path to the async client class for an
    API version.
  rest_client_full_classpath: str, Full path to the rest client class for an
    API version.
c                     Xl         g r
   r<   )r   r<   s     r   r   GapicClientDef.__init__~   s     Or   c                      U R                   S-   $ )Nz.client.GapicWrapperClientrV   r,   s    r   rD   $GapicClientDef.client_full_classpath   s    ??999r   c                      U R                   S-   $ )Nz .async_client.GapicWrapperClientrV   r,   s    r   async_client_full_classpath*GapicClientDef.async_client_full_classpath   s    ?????r   c                      U R                   S-   $ )Nz.rest_client.GapicWrapperClientrV   r,   s    r   rest_client_full_classpath)GapicClientDef.rest_client_full_classpath   s    ??>>>r   c                 l    [        XR                  5      =(       a    U R                  UR                  :H  $ r
   r   r   s     r   r   GapicClientDef.__eq__   r   r   c                 .    U R                  U5      (       + $ r
   r    r   s     r   r!   GapicClientDef.__ne__   r#   r   c                 <    SnUR                  U R                  5      $ )NzGapicClientDef("{0}"))r%   r<   r&   s     r   r(   GapicClientDef.get_init_source   s    %G>>$//**r   c                 "    U R                  5       $ r
   r+   r,   s    r   r-   GapicClientDef.__repr__   r/   r   rV   N)r1   r2   r3   r4   r5   r   rQ   rD   r[   r^   r   r!   r(   r-   r6   r7   r   r   rS   rS   q   s^    
! : : @ @ ? ?-"+"r   rS   N)	r5   
__future__r   r   r   objectr   r9   rS   r7   r   r   <module>rj      s9    > &  ''"V '"T." ."b)"V )"r   