
                         n    d Z ddlmZ ddlmZ ddlmZ  G d de      Z G d de      Z G d	 d
e      Zy)z7Base template using which the apis_map.py is generated.    )absolute_import)division)unicode_literalsc                   :    e Zd ZdZ	 	 	 	 	 ddZd Zd Zd Zd Zy)	APIDefa  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                 J    || _         || _        || _        || _        || _        y 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__zAPIDef.__init__#   s*     DMDJ*D"D"8D    c                 d    t        || j                        xr | j                  |j                  k(  S r	   
isinstance	__class____dict__r   others     r   __eq__zAPIDef.__eq__/   *    udnn- ,MMU^^+-r   c                 &    | j                  |       S r	   r   r   s     r   __ne__zAPIDef.__ne__3       {{5!!!r   c                     d}|j                  | j                  | j                  | j                  | j                  | j
                        S )Nz!APIDef({0}, {1}, {2}, {3}, "{4}"))formatr
   r   r   r   r   r   src_fmts     r   get_init_sourcezAPIDef.get_init_source6   s@    1G>>$--..**D,G,GI Ir   c                 "    | j                         S r	   r$   r   s    r   __repr__zAPIDef.__repr__<       !!r   )NNFT )	__name__
__module____qualname____doc__r   r   r   r$   r(    r   r   r   r      s2    
 $&(
9-"I"r   r   c                   N    e Zd ZdZd Zed        Zed        Zd Zd Z	d Z
d Zy	)
ApitoolsClientDefaR  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                 <    || _         || _        || _        || _        y r	   )
class_pathclient_classpathmessages_modulepathbase_url)r   r3   r4   r5   r6   s        r   r   zApitoolsClientDef.__init__O   s"    
 !DO,D2DDMr   c                 :    | j                   dz   | j                  z   S N.)r3   r4   r'   s    r   client_full_classpathz'ApitoolsClientDef.client_full_classpathY   s    ??S 4#8#888r   c                 :    | j                   dz   | j                  z   S r8   )r3   r5   r'   s    r   messages_full_modulepathz*ApitoolsClientDef.messages_full_modulepath]   s    ??S 4#;#;;;r   c                 d    t        || j                        xr | j                  |j                  k(  S r	   r   r   s     r   r   zApitoolsClientDef.__eq__a   r   r   c                 &    | j                  |       S r	   r   r   s     r   r   zApitoolsClientDef.__ne__e   r   r   c                 ~    d}|j                  | j                  | j                  | j                  | j                        S )Nz-ApitoolsClientDef("{0}", "{1}", "{2}", "{3}"))r!   r3   r4   r5   r6   r"   s     r   r$   z!ApitoolsClientDef.get_init_sourceh   s7    =G>>$//4+@+@22DMMC Cr   c                 "    | j                         S r	   r&   r'   s    r   r(   zApitoolsClientDef.__repr__m   r)   r   N)r+   r,   r-   r.   r   propertyr:   r<   r   r   r$   r(   r/   r   r   r1   r1   @   sI     9 9 < <-"C
"r   r1   c                   ^    e Zd ZdZd Zed        Zed        Zed        Zd Z	d Z
d Zd	 Zy
)GapicClientDefa  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                     || _         y r	   r3   )r   r3   s     r   r   zGapicClientDef.__init__~   s	     DOr   c                      | j                   dz   S )Nz.client.GapicWrapperClientrE   r'   s    r   r:   z$GapicClientDef.client_full_classpath   s    ??999r   c                      | j                   dz   S )Nz .async_client.GapicWrapperClientrE   r'   s    r   async_client_full_classpathz*GapicClientDef.async_client_full_classpath   s    ?????r   c                      | j                   dz   S )Nz.rest_client.GapicWrapperClientrE   r'   s    r   rest_client_full_classpathz)GapicClientDef.rest_client_full_classpath   s    ??>>>r   c                 d    t        || j                        xr | j                  |j                  k(  S r	   r   r   s     r   r   zGapicClientDef.__eq__   r   r   c                 &    | j                  |       S r	   r   r   s     r   r   zGapicClientDef.__ne__   r   r   c                 <    d}|j                  | j                        S )NzGapicClientDef("{0}"))r!   r3   r"   s     r   r$   zGapicClientDef.get_init_source   s    %G>>$//**r   c                 "    | j                         S r	   r&   r'   s    r   r(   zGapicClientDef.__repr__   r)   r   N)r+   r,   r-   r.   r   rA   r:   rH   rJ   r   r   r$   r(   r/   r   r   rC   rC   q   s^    
! : : @ @ ? ?-"+"r   rC   N)	r.   
__future__r   r   r   objectr   r1   rC   r/   r   r   <module>rQ      s9    > &  ''"V '"T." ."b)"V )"r   