
                         b    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j                        Zy)	*Cloud Backup and DR Service Config client.    )absolute_import)division)unicode_literals)utilc                   (     e Zd ZdZ fdZd Z xZS )ServiceConfigClientr   c                 `    t         t        |           | j                  j                  | _        y )N)superr	   __init__client projects_locations_serviceConfigservice)self	__class__s    5lib/googlecloudsdk/api_lib/backupdr/service_config.pyr   zServiceConfigClient.__init__   s"    	
t-/;;??DL    c                     | d}| j                   j                  || j                   j                  |            }| j                  j	                  |      S )zCalls the Backup and DR Initialize service.

    Args:
      location: location of the service config.
      resource_type: resource type for which the service config is being
        initialized.

    Returns:
      A long running operation
    z/serviceConfig)resourceType)nameinitializeServiceRequest)messages7BackupdrProjectsLocationsServiceConfigInitializeRequestInitializeServiceRequestr   
Initialize)r   locationresource_typer   requests        r   InitzServiceConfigClient.Init   sb     Z~&DMM%)]]%K%K* &L & 	N 	
  <<""7++r   )__name__
__module____qualname____doc__r   r   __classcell__)r   s   @r   r	   r	      s    2@,r   r	   N)	r#   
__future__r   r   r   googlecloudsdk.api_lib.backupdrr   BackupDrClientBaser	    r   r   <module>r)      s(    1 &  ' 0,$11 ,r   