
                         N    d Z ddlmZ ddlmZ ddlmZ ddlmZ  G d de      Zy)	zInterconnect Remote Location.    )absolute_import)division)unicode_literals)path_simplifierc                   L    e Zd ZdZd	dZed        Zed        Zd Zd Z	d
dZ
y)InterconnectRemoteLocationz0Abstracts Interconnect Remote Location resource.Nc                      || _         || _        y N)ref_compute_client)selfr   compute_clients      Klib/googlecloudsdk/api_lib/compute/interconnects/remote_locations/client.py__init__z#InterconnectRemoteLocation.__init__   s    DH)D    c                 .    | j                   j                  S r
   )r   apitools_clientr   s    r   _clientz"InterconnectRemoteLocation._client   s    ///r   c                 .    | j                   j                  S r
   )r   messagesr   s    r   	_messagesz$InterconnectRemoteLocation._messages#   s    (((r   c                 R    d }|j                   D cg c]
  } ||       c}S c c}w )Nc                 D    dt        j                  | j                        iS )NinterconnectLocation)r   Namer   )permitted_connections    r   PermittedConnectionzYInterconnectRemoteLocation._MapInterconnectLocationUrlToName.<locals>.PermittedConnection)   s$    
 ""#7#L#LM r   )permittedConnections)r   resourcer   r   s       r   !_MapInterconnectLocationUrlToNamez<InterconnectRemoteLocation._MapInterconnectLocationUrlToName'   s;     %-$A$A$A  	01$A  s   $c                     | j                   j                  d| j                  j                  | j                  j
                  | j                  j                               fS )NGet)projectinterconnectRemoteLocation)r   interconnectRemoteLocationsr   ,ComputeInterconnectRemoteLocationsGetRequestr   r$   r   r   s    r   _MakeDescribeRequestTuplez4InterconnectRemoteLocation._MakeDescribeRequestTuple4   sM    LL44eNNGG((+/88==? H <= =r   c                     | j                         g}|sD| j                  j                  |      }|d   }|j                  r| j	                  |      |_        |S |S )Nr   )r(   r   MakeRequestsr   r!   )r   only_generate_requestrequests	resourcesr    s        r   Describez#InterconnectRemoteLocation.Describe:   s^    ..01H &&33H=i1h		&	&(,(N(N)%oOr   r
   )F)__name__
__module____qualname____doc__r   propertyr   r   r!   r(   r.    r   r   r   r      sA    8* 0 0 ) )=	r   r   N)	r2   
__future__r   r   r   googlecloudsdk.api_lib.computer   objectr   r4   r   r   <module>r8      s"    $ &  ' :+ +r   