
                         V    d Z ddlmZ ddlmZ ddlmZ  G d dej                        Z	y)z=Generated client library for bigquerydatatransfer version v1.    )absolute_import)base_api) bigquerydatatransfer_v1_messagesc                       e Zd ZdZeZdZdZdZg dZ	dZ
dZdZd	Zd ZdZd
Z	 	 	 	 	 d  fd	Z G d dej&                        Z G d dej&                        Z G d dej&                        Z G d dej&                        Z G d dej&                        Z G d dej&                        Z G d dej&                        Z G d dej&                        Z G d dej&                        Z G d dej&                        Z xZS )!BigquerydatatransferV1zEGenerated client library for service bigquerydatatransfer version v1.z,https://bigquerydatatransfer.googleapis.com/z1https://bigquerydatatransfer.mtls.googleapis.com/bigquerydatatransfer)z(https://www.googleapis.com/auth/bigqueryz.https://www.googleapis.com/auth/cloud-platformz8https://www.googleapis.com/auth/cloud-platform.read-onlyv1	CLIENT_IDCLIENT_SECRETzgoogle-cloud-sdkNc                    |xs | j                   }t        t        |   |||||||||	|
|       | j	                  |       | _        | j                  |       | _        | j                  |       | _	        | j                  |       | _        | j                  |       | _        | j                  |       | _        | j!                  |       | _        | j%                  |       | _        | j)                  |       | _        | j-                  |       | _        y)z)Create a new bigquerydatatransfer handle.)
credentialsget_credentialshttpmodellog_requestlog_responsecredentials_argsdefault_global_paramsadditional_http_headersresponse_encodingN)BASE_URLsuperr   __init__ProjectsDataSourcesServiceprojects_dataSources#ProjectsLocationsDataSourcesServiceprojects_locations_dataSources7ProjectsLocationsTransferConfigsRunsTransferLogsService4projects_locations_transferConfigs_runs_transferLogs+ProjectsLocationsTransferConfigsRunsService'projects_locations_transferConfigs_runs'ProjectsLocationsTransferConfigsService"projects_locations_transferConfigsProjectsLocationsServiceprojects_locations.ProjectsTransferConfigsRunsTransferLogsService*projects_transferConfigs_runs_transferLogs"ProjectsTransferConfigsRunsServiceprojects_transferConfigs_runsProjectsTransferConfigsServiceprojects_transferConfigsProjectsServiceprojects)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               clib/googlecloudsdk/generated_clients/apis/bigquerydatatransfer/v1/bigquerydatatransfer_v1_client.pyr   zBigquerydatatransferV1.__init__   s    
C	
 $0'd%l)3 7+ 1 - !% ? ? ED*.*R*RSW*XD'@D@|@|  ~B  ACD=373c3cdh3iD0.2.Z.Z[_.`D+";;DAD6:6i6ijn6oD3)-)P)PQU)VD&$($G$G$MD!((.DM    c                   n     e Zd ZdZdZ fdZd
dZd e_        d
dZd e_        d
dZ	d	 e	_         xZ
S )1BigquerydatatransferV1.ProjectsDataSourcesServicez4Service class for the projects_dataSources resource.r   c                 N    t         t        j                  |   |       i | _        y N)r   r   r   r   _upload_configsr.   clientr0   s     r1   r   z:BigquerydatatransferV1.ProjectsDataSourcesService.__init__:   s#    "==tMfUdr2   c                 L    | j                  d      }| j                  |||      S )aa  Returns true if valid credentials exist for the given data source and requesting user.

      Args:
        request: (BigquerydatatransferProjectsDataSourcesCheckValidCredsRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (CheckValidCredsResponse) The response message.
      CheckValidCredsglobal_paramsGetMethodConfig
_RunMethodr.   requestr=   configs       r1   r;   zABigquerydatatransferV1.ProjectsDataSourcesService.CheckValidCreds?   2     ##$56f__
'  8 8r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NzDv1/projects/{projectsId}/dataSources/{dataSourcesId}:checkValidCredsPOSTz9bigquerydatatransfer.projects.dataSources.checkValidCredsnamev1/{+name}:checkValidCredscheckValidCredsRequest=BigquerydatatransferProjectsDataSourcesCheckValidCredsRequestCheckValidCredsResponseF	flat_pathhttp_method	method_idordered_paramspath_paramsquery_paramsrelative_pathrequest_fieldrequest_type_nameresponse_type_namesupports_downloadr   ApiMethodInfo r2   r1   <lambda>z:BigquerydatatransferV1.ProjectsDataSourcesService.<lambda>L   s4    H,B,BXMxH2.Y4-r2   c                 L    | j                  d      }| j                  |||      S )a-  Retrieves a supported data source and returns its settings.

      Args:
        request: (BigquerydatatransferProjectsDataSourcesGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (DataSource) The response message.
      Getr<   r>   rA   s       r1   r]   z5BigquerydatatransferV1.ProjectsDataSourcesService.GetZ   1     ##E*f__
'  8 8r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz4v1/projects/{projectsId}/dataSources/{dataSourcesId}GETz-bigquerydatatransfer.projects.dataSources.getrG   
v1/{+name} 1BigquerydatatransferProjectsDataSourcesGetRequest
DataSourceFrL   rX   rZ   r2   r1   r[   z:BigquerydatatransferV1.ProjectsDataSourcesService.<lambda>g   s4     6 6HAxH"M'!r2   c                 L    | j                  d      }| j                  |||      S )a8  Lists supported data sources and returns their settings.

      Args:
        request: (BigquerydatatransferProjectsDataSourcesListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListDataSourcesResponse) The response message.
      Listr<   r>   rA   s       r1   rf   z6BigquerydatatransferV1.ProjectsDataSourcesService.Listu   1     ##F+f__
'  8 8r2   c                  J    t        j                  ddddgdgddgddd	d
d      S )Nz$v1/projects/{projectsId}/dataSourcesr`   z.bigquerydatatransfer.projects.dataSources.listparentpageSize	pageTokenv1/{+parent}/dataSourcesrb   2BigquerydatatransferProjectsDataSourcesListRequestListDataSourcesResponseFrL   rX   rZ   r2   r1   r[   z:BigquerydatatransferV1.ProjectsDataSourcesService.<lambda>   s9    !7!78B zJ +.0N4"r2   r6   __name__
__module____qualname____doc___NAMEr   r;   method_configr]   rf   __classcell__r0   s   @r1   r   r4   5   s@    >"E
8%O!8C8Dr2   r   c                   n     e Zd ZdZdZ fdZd
dZd e_        d
dZd e_        d
dZ	d	 e	_         xZ
S ):BigquerydatatransferV1.ProjectsLocationsDataSourcesServicez>Service class for the projects_locations_dataSources resource.r   c                 N    t         t        j                  |   |       i | _        y r6   )r   r   r   r   r7   r8   s     r1   r   zCBigquerydatatransferV1.ProjectsLocationsDataSourcesService.__init__   s$    "FFVW]^dr2   c                 L    | j                  d      }| j                  |||      S )aj  Returns true if valid credentials exist for the given data source and requesting user.

      Args:
        request: (BigquerydatatransferProjectsLocationsDataSourcesCheckValidCredsRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (CheckValidCredsResponse) The response message.
      r;   r<   r>   rA   s       r1   r;   zJBigquerydatatransferV1.ProjectsLocationsDataSourcesService.CheckValidCreds   rD   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz\v1/projects/{projectsId}/locations/{locationsId}/dataSources/{dataSourcesId}:checkValidCredsrF   zCbigquerydatatransfer.projects.locations.dataSources.checkValidCredsrG   rH   rI   FBigquerydatatransferProjectsLocationsDataSourcesCheckValidCredsRequestrK   FrL   rX   rZ   r2   r1   r[   zCBigquerydatatransferV1.ProjectsLocationsDataSourcesService.<lambda>   s4    H,B,BpWxH2.b4-r2   c                 L    | j                  d      }| j                  |||      S )a6  Retrieves a supported data source and returns its settings.

      Args:
        request: (BigquerydatatransferProjectsLocationsDataSourcesGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (DataSource) The response message.
      r]   r<   r>   rA   s       r1   r]   z>BigquerydatatransferV1.ProjectsLocationsDataSourcesService.Get   r^   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NzLv1/projects/{projectsId}/locations/{locationsId}/dataSources/{dataSourcesId}r`   z7bigquerydatatransfer.projects.locations.dataSources.getrG   ra   rb   :BigquerydatatransferProjectsLocationsDataSourcesGetRequestrd   FrL   rX   rZ   r2   r1   r[   zCBigquerydatatransferV1.ProjectsLocationsDataSourcesService.<lambda>   s4     6 6`KxH"V'!r2   c                 L    | j                  d      }| j                  |||      S )aA  Lists supported data sources and returns their settings.

      Args:
        request: (BigquerydatatransferProjectsLocationsDataSourcesListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListDataSourcesResponse) The response message.
      rf   r<   r>   rA   s       r1   rf   z?BigquerydatatransferV1.ProjectsLocationsDataSourcesService.List   rg   r2   c                  J    t        j                  ddddgdgddgddd	d
d      S )Nz<v1/projects/{projectsId}/locations/{locationsId}/dataSourcesr`   z8bigquerydatatransfer.projects.locations.dataSources.listri   rj   rk   rl   rb   ;BigquerydatatransferProjectsLocationsDataSourcesListRequestrn   FrL   rX   rZ   r2   r1   r[   zCBigquerydatatransferV1.ProjectsLocationsDataSourcesService.<lambda>   s9    !7!7PL zJ +.0W4"r2   r6   ro   rw   s   @r1   r   ry      s@    H,E
8%O!8C8Dr2   r   c                   >     e Zd ZdZdZ fdZddZd e_         xZS )NBigquerydatatransferV1.ProjectsLocationsTransferConfigsRunsTransferLogsServicezTService class for the projects_locations_transferConfigs_runs_transferLogs resource.r   c                 N    t         t        j                  |   |       i | _        y r6   )r   r   r   r   r7   r8   s     r1   r   zWBigquerydatatransferV1.ProjectsLocationsTransferConfigsRunsTransferLogsService.__init__   s%    "ZZ\`jkqrdr2   c                 L    | j                  d      }| j                  |||      S )aH  Returns log messages for the transfer run.

      Args:
        request: (BigquerydatatransferProjectsLocationsTransferConfigsRunsTransferLogsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListTransferLogsResponse) The response message.
      rf   r<   r>   rA   s       r1   rf   zSBigquerydatatransferV1.ProjectsLocationsTransferConfigsRunsTransferLogsService.List   rg   r2   c                  J    t        j                  ddddgdgg ddddd	d
      S )Nzov1/projects/{projectsId}/locations/{locationsId}/transferConfigs/{transferConfigsId}/runs/{runsId}/transferLogsr`   zNbigquerydatatransfer.projects.locations.transferConfigs.runs.transferLogs.listri   messageTypesrj   rk   v1/{+parent}/transferLogsrb   OBigquerydatatransferProjectsLocationsTransferConfigsRunsTransferLogsListRequestListTransferLogsResponseFrL   rX   rZ   r2   r1   r[   zWBigquerydatatransferV1.ProjectsLocationsTransferConfigsRunsTransferLogsService.<lambda>  s7    !7!7 Db zJ>1k5"r2   r6   	rp   rq   rr   rs   rt   r   rf   ru   rv   rw   s   @r1   r   r      s"    ^BE
8Dr2   r   c                   n     e Zd ZdZdZ fdZd
dZd e_        d
dZd e_        d
dZ	d	 e	_         xZ
S )BBigquerydatatransferV1.ProjectsLocationsTransferConfigsRunsServicezGService class for the projects_locations_transferConfigs_runs resource.r!   c                 N    t         t        j                  |   |       i | _        y r6   )r   r   r    r   r7   r8   s     r1   r   zKBigquerydatatransferV1.ProjectsLocationsTransferConfigsRunsService.__init__  s%    "NNPT^_efdr2   c                 L    | j                  d      }| j                  |||      S )a$  Deletes the specified transfer run.

      Args:
        request: (BigquerydatatransferProjectsLocationsTransferConfigsRunsDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Empty) The response message.
      Deleter<   r>   rA   s       r1   r   zIBigquerydatatransferV1.ProjectsLocationsTransferConfigsRunsService.Delete  1     ##H-f__
'  8 8r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nbv1/projects/{projectsId}/locations/{locationsId}/transferConfigs/{transferConfigsId}/runs/{runsId}DELETEzCbigquerydatatransfer.projects.locations.transferConfigs.runs.deleterG   ra   rb   EBigquerydatatransferProjectsLocationsTransferConfigsRunsDeleteRequestEmptyFrL   rX   rZ   r2   r1   r[   zKBigquerydatatransferV1.ProjectsLocationsTransferConfigsRunsService.<lambda>'  s4    8#9#9vWxH"a"$r2   c                 L    | j                  d      }| j                  |||      S )a:  Returns information about the particular transfer run.

      Args:
        request: (BigquerydatatransferProjectsLocationsTransferConfigsRunsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (TransferRun) The response message.
      r]   r<   r>   rA   s       r1   r]   zFBigquerydatatransferV1.ProjectsLocationsTransferConfigsRunsService.Get5  r^   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nr   r`   z@bigquerydatatransfer.projects.locations.transferConfigs.runs.getrG   ra   rb   BBigquerydatatransferProjectsLocationsTransferConfigsRunsGetRequestTransferRunFrL   rX   rZ   r2   r1   r[   zKBigquerydatatransferV1.ProjectsLocationsTransferConfigsRunsService.<lambda>B  s4     6 6vTxH"^(!r2   c                 L    | j                  d      }| j                  |||      S )aP  Returns information about running and completed transfer runs.

      Args:
        request: (BigquerydatatransferProjectsLocationsTransferConfigsRunsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListTransferRunsResponse) The response message.
      rf   r<   r>   rA   s       r1   rf   zGBigquerydatatransferV1.ProjectsLocationsTransferConfigsRunsService.ListP  rg   r2   c                  J    t        j                  ddddgdgg ddddd	d
      S )NzYv1/projects/{projectsId}/locations/{locationsId}/transferConfigs/{transferConfigsId}/runsr`   zAbigquerydatatransfer.projects.locations.transferConfigs.runs.listri   rj   rk   
runAttemptstatesv1/{+parent}/runsrb   CBigquerydatatransferProjectsLocationsTransferConfigsRunsListRequestListTransferRunsResponseFrL   rX   rZ   r2   r1   r[   zKBigquerydatatransferV1.ProjectsLocationsTransferConfigsRunsService.<lambda>]  s4    !7!7mU zJF)_5"r2   r6   rp   rq   rr   rs   rt   r   r   ru   r]   rf   rv   rw   s   @r1   r    r     s@    Q5E
8F8C8Dr2   r    c                        e Zd ZdZdZ fdZddZd e_        ddZd e_        ddZ	d	 e	_        dd
Z
d e
_        ddZd e_        ddZd e_        ddZd e_         xZS )>BigquerydatatransferV1.ProjectsLocationsTransferConfigsServicezBService class for the projects_locations_transferConfigs resource.r#   c                 N    t         t        j                  |   |       i | _        y r6   )r   r   r"   r   r7   r8   s     r1   r   zGBigquerydatatransferV1.ProjectsLocationsTransferConfigsService.__init__p  s$    "JJDZ[abdr2   c                 L    | j                  d      }| j                  |||      S )a0  Creates a new data transfer configuration.

      Args:
        request: (BigquerydatatransferProjectsLocationsTransferConfigsCreateRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (TransferConfig) The response message.
      Creater<   r>   rA   s       r1   r   zEBigquerydatatransferV1.ProjectsLocationsTransferConfigsService.Createu  r   r2   c                  J    t        j                  ddddgdgg ddddd	d
      S )N@v1/projects/{projectsId}/locations/{locationsId}/transferConfigsrF   z>bigquerydatatransfer.projects.locations.transferConfigs.createri   authorizationCodeserviceAccountNameversionInfov1/{+parent}/transferConfigstransferConfigABigquerydatatransferProjectsLocationsTransferConfigsCreateRequestTransferConfigFrL   rX   rZ   r2   r1   r[   zGBigquerydatatransferV1.ProjectsLocationsTransferConfigsService.<lambda>  s4    8#9#9TR zJO4&]+$r2   c                 L    | j                  d      }| j                  |||      S )aT  Deletes a data transfer configuration, including any associated transfer runs and logs.

      Args:
        request: (BigquerydatatransferProjectsLocationsTransferConfigsDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Empty) The response message.
      r   r<   r>   rA   s       r1   r   zEBigquerydatatransferV1.ProjectsLocationsTransferConfigsService.Delete  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NTv1/projects/{projectsId}/locations/{locationsId}/transferConfigs/{transferConfigsId}r   z>bigquerydatatransfer.projects.locations.transferConfigs.deleterG   ra   rb   ABigquerydatatransferProjectsLocationsTransferConfigsDeleteRequestr   FrL   rX   rZ   r2   r1   r[   zGBigquerydatatransferV1.ProjectsLocationsTransferConfigsService.<lambda>  s4    8#9#9hRxH"]"$r2   c                 L    | j                  d      }| j                  |||      S )a4  Returns information about a data transfer config.

      Args:
        request: (BigquerydatatransferProjectsLocationsTransferConfigsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (TransferConfig) The response message.
      r]   r<   r>   rA   s       r1   r]   zBBigquerydatatransferV1.ProjectsLocationsTransferConfigsService.Get  r^   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nr   r`   z;bigquerydatatransfer.projects.locations.transferConfigs.getrG   ra   rb   >BigquerydatatransferProjectsLocationsTransferConfigsGetRequestr   FrL   rX   rZ   r2   r1   r[   zGBigquerydatatransferV1.ProjectsLocationsTransferConfigsService.<lambda>  s4     6 6hOxH"Z+!r2   c                 L    | j                  d      }| j                  |||      S )am  Returns information about all transfer configs owned by a project in the specified location.

      Args:
        request: (BigquerydatatransferProjectsLocationsTransferConfigsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListTransferConfigsResponse) The response message.
      rf   r<   r>   rA   s       r1   rf   zCBigquerydatatransferV1.ProjectsLocationsTransferConfigsService.List  rg   r2   c                  J    t        j                  ddddgdgg ddddd	d
      S )Nr   r`   z<bigquerydatatransfer.projects.locations.transferConfigs.listri   dataSourceIdsrj   rk   r   rb   ?BigquerydatatransferProjectsLocationsTransferConfigsListRequestListTransferConfigsResponseFrL   rX   rZ   r2   r1   r[   zGBigquerydatatransferV1.ProjectsLocationsTransferConfigsService.<lambda>  s4    !7!7TP zJ?4[8"r2   c                 L    | j                  d      }| j                  |||      S )aa  Updates a data transfer configuration. All fields must be set, even if they are not updated.

      Args:
        request: (BigquerydatatransferProjectsLocationsTransferConfigsPatchRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (TransferConfig) The response message.
      Patchr<   r>   rA   s       r1   r   zDBigquerydatatransferV1.ProjectsLocationsTransferConfigsService.Patch  1     ##G,f__
'  8 8r2   c                  J    t        j                  ddddgdgg ddddd	d
      S )Nr   PATCHz=bigquerydatatransfer.projects.locations.transferConfigs.patchrG   r   r   
updateMaskr   ra   r   @BigquerydatatransferProjectsLocationsTransferConfigsPatchRequestr   FrL   rX   rZ   r2   r1   r[   zGBigquerydatatransferV1.ProjectsLocationsTransferConfigsService.<lambda>  s4    ("8"8hQxH]"&\+#r2   c                 L    | j                  d      }| j                  |||      S )a2  Creates transfer runs for a time range [start_time, end_time]. For each date - or whatever granularity the data source supports - in the range, one transfer run is created. Note that runs are created per UTC time in the time range. DEPRECATED: use StartManualTransferRuns instead.

      Args:
        request: (BigquerydatatransferProjectsLocationsTransferConfigsScheduleRunsRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ScheduleTransferRunsResponse) The response message.
      ScheduleRunsr<   r>   rA   s       r1   r   zKBigquerydatatransferV1.ProjectsLocationsTransferConfigsService.ScheduleRuns  1     ##N3f__
'  8 8r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nzav1/projects/{projectsId}/locations/{locationsId}/transferConfigs/{transferConfigsId}:scheduleRunsrF   zDbigquerydatatransfer.projects.locations.transferConfigs.scheduleRunsri   v1/{+parent}:scheduleRunsscheduleTransferRunsRequestGBigquerydatatransferProjectsLocationsTransferConfigsScheduleRunsRequestScheduleTransferRunsResponseFrL   rX   rZ   r2   r1   r[   zGBigquerydatatransferV1.ProjectsLocationsTransferConfigsService.<lambda>	  s4    )?)?uX zJ13c9*r2   c                 L    | j                  d      }| j                  |||      S )a  Manually initiates transfer runs. You can schedule these runs in two ways: 1. For a specific point in time using the 'requested_run_time' parameter. 2. For a period between 'start_time' (inclusive) and 'end_time' (exclusive). If scheduling a single run, it is set to execute immediately (schedule_time equals the current time). When scheduling multiple runs within a time range, the first run starts now, and subsequent runs are delayed by 15 seconds each.

      Args:
        request: (BigquerydatatransferProjectsLocationsTransferConfigsStartManualRunsRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (StartManualTransferRunsResponse) The response message.
      StartManualRunsr<   r>   rA   s       r1   r   zNBigquerydatatransferV1.ProjectsLocationsTransferConfigsService.StartManualRuns  rD   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nzdv1/projects/{projectsId}/locations/{locationsId}/transferConfigs/{transferConfigsId}:startManualRunsrF   zGbigquerydatatransfer.projects.locations.transferConfigs.startManualRunsri   v1/{+parent}:startManualRunsstartManualTransferRunsRequestJBigquerydatatransferProjectsLocationsTransferConfigsStartManualRunsRequestStartManualTransferRunsResponseFrL   rX   rZ   r2   r1   r[   zGBigquerydatatransferV1.ProjectsLocationsTransferConfigsService.<lambda>$  s4    H,B,Bx[ zJ46f<-r2   r6   rp   rq   rr   rs   rt   r   r   ru   r   r]   rf   r   r   r   rv   rw   s   @r1   r"   r   k  s|    L0E
8F8F8C8D8E8"L8%O!!r2   r"   c                        e Zd ZdZdZ fdZddZd e_        ddZd e_        ddZ	d	 e	_        dd
Z
d e
_         xZS )/BigquerydatatransferV1.ProjectsLocationsServicez2Service class for the projects_locations resource.r%   c                 N    t         t        j                  |   |       i | _        y r6   )r   r   r$   r   r7   r8   s     r1   r   z8BigquerydatatransferV1.ProjectsLocationsService.__init__7  s#    ";;TKFSdr2   c                 L    | j                  d      }| j                  |||      S )a  Enroll data sources in a user project. This allows users to create transfer configurations for these data sources. They will also appear in the ListDataSources RPC and as such, will appear in the [BigQuery UI](https://console.cloud.google.com/bigquery), and the documents can be found in the public guide for [BigQuery Web UI](https://cloud.google.com/bigquery/bigquery-web-ui) and [Data Transfer Service](https://cloud.google.com/bigquery/docs/working-with-transfers).

      Args:
        request: (BigquerydatatransferProjectsLocationsEnrollDataSourcesRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Empty) The response message.
      EnrollDataSourcesr<   r>   rA   s       r1   r   zABigquerydatatransferV1.ProjectsLocationsService.EnrollDataSources<  2     ##$78f__
'  8 8r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NzBv1/projects/{projectsId}/locations/{locationsId}:enrollDataSourcesrF   z9bigquerydatatransfer.projects.locations.enrollDataSourcesrG   v1/{+name}:enrollDataSourcesenrollDataSourcesRequest=BigquerydatatransferProjectsLocationsEnrollDataSourcesRequestr   FrL   rX   rZ   r2   r1   r[   z8BigquerydatatransferV1.ProjectsLocationsService.<lambda>I  s4    h.D.DVMxH40Y"/r2   c                 L    | j                  d      }| j                  |||      S )a  Gets information about a location.

      Args:
        request: (BigquerydatatransferProjectsLocationsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Location) The response message.
      r]   r<   r>   rA   s       r1   r]   z3BigquerydatatransferV1.ProjectsLocationsService.GetW  r^   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz0v1/projects/{projectsId}/locations/{locationsId}r`   z+bigquerydatatransfer.projects.locations.getrG   ra   rb   /BigquerydatatransferProjectsLocationsGetRequestLocationFrL   rX   rZ   r2   r1   r[   z8BigquerydatatransferV1.ProjectsLocationsService.<lambda>d  s4     6 6D?xH"K%!r2   c                 L    | j                  d      }| j                  |||      S )a=  Lists information about the supported locations for this service.

      Args:
        request: (BigquerydatatransferProjectsLocationsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListLocationsResponse) The response message.
      rf   r<   r>   rA   s       r1   rf   z4BigquerydatatransferV1.ProjectsLocationsService.Listr  rg   r2   c                  J    t        j                  ddddgdgg ddddd	d
      S )Nz"v1/projects/{projectsId}/locationsr`   z,bigquerydatatransfer.projects.locations.listrG   )extraLocationTypesfilterrj   rk   zv1/{+name}/locationsrb   0BigquerydatatransferProjectsLocationsListRequestListLocationsResponseFrL   rX   rZ   r2   r1   r[   z8BigquerydatatransferV1.ProjectsLocationsService.<lambda>  s4    !7!76@xHN,L2"r2   c                 L    | j                  d      }| j                  |||      S )aU  Unenroll data sources in a user project. This allows users to remove transfer configurations for these data sources. They will no longer appear in the ListDataSources RPC and will also no longer appear in the [BigQuery UI](https://console.cloud.google.com/bigquery). Data transfers configurations of unenrolled data sources will not be scheduled.

      Args:
        request: (BigquerydatatransferProjectsLocationsUnenrollDataSourcesRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Empty) The response message.
      UnenrollDataSourcesr<   r>   rA   s       r1   r   zCBigquerydatatransferV1.ProjectsLocationsService.UnenrollDataSources  s2     ##$9:f__
'  8 8r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NzDv1/projects/{projectsId}/locations/{locationsId}:unenrollDataSourcesrF   z;bigquerydatatransfer.projects.locations.unenrollDataSourcesrG   zv1/{+name}:unenrollDataSourcesunenrollDataSourcesRequest?BigquerydatatransferProjectsLocationsUnenrollDataSourcesRequestr   FrL   rX   rZ   r2   r1   r[   z8BigquerydatatransferV1.ProjectsLocationsService.<lambda>  s4    0F0FXOxH62["1r2   r6   )rp   rq   rr   rs   rt   r   r   ru   r]   rf   r   rv   rw   s   @r1   r$   r   2  sQ    < E
8'#8C8D8)%%r2   r$   c                   >     e Zd ZdZdZ fdZddZd e_         xZS )EBigquerydatatransferV1.ProjectsTransferConfigsRunsTransferLogsServicezJService class for the projects_transferConfigs_runs_transferLogs resource.r'   c                 N    t         t        j                  |   |       i | _        y r6   )r   r   r&   r   r7   r8   s     r1   r   zNBigquerydatatransferV1.ProjectsTransferConfigsRunsTransferLogsService.__init__  s%    "QQSWabhidr2   c                 L    | j                  d      }| j                  |||      S )a?  Returns log messages for the transfer run.

      Args:
        request: (BigquerydatatransferProjectsTransferConfigsRunsTransferLogsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListTransferLogsResponse) The response message.
      rf   r<   r>   rA   s       r1   rf   zJBigquerydatatransferV1.ProjectsTransferConfigsRunsTransferLogsService.List  rg   r2   c                  J    t        j                  ddddgdgg ddddd	d
      S )NzWv1/projects/{projectsId}/transferConfigs/{transferConfigsId}/runs/{runsId}/transferLogsr`   zDbigquerydatatransfer.projects.transferConfigs.runs.transferLogs.listri   r   r   rb   FBigquerydatatransferProjectsTransferConfigsRunsTransferLogsListRequestr   FrL   rX   rZ   r2   r1   r[   zNBigquerydatatransferV1.ProjectsTransferConfigsRunsTransferLogsService.<lambda>  s4    !7!7kX zJ>1b5"r2   r6   r   rw   s   @r1   r&   r     s"    T8E
8Dr2   r&   c                   n     e Zd ZdZdZ fdZd
dZd e_        d
dZd e_        d
dZ	d	 e	_         xZ
S )9BigquerydatatransferV1.ProjectsTransferConfigsRunsServicez=Service class for the projects_transferConfigs_runs resource.r)   c                 N    t         t        j                  |   |       i | _        y r6   )r   r   r(   r   r7   r8   s     r1   r   zBBigquerydatatransferV1.ProjectsTransferConfigsRunsService.__init__  s$    "EEtUV\]dr2   c                 L    | j                  d      }| j                  |||      S )a  Deletes the specified transfer run.

      Args:
        request: (BigquerydatatransferProjectsTransferConfigsRunsDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Empty) The response message.
      r   r<   r>   rA   s       r1   r   z@BigquerydatatransferV1.ProjectsTransferConfigsRunsService.Delete  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NJv1/projects/{projectsId}/transferConfigs/{transferConfigsId}/runs/{runsId}r   z9bigquerydatatransfer.projects.transferConfigs.runs.deleterG   ra   rb   <BigquerydatatransferProjectsTransferConfigsRunsDeleteRequestr   FrL   rX   rZ   r2   r1   r[   zBBigquerydatatransferV1.ProjectsTransferConfigsRunsService.<lambda>  s4    8#9#9^MxH"X"$r2   c                 L    | j                  d      }| j                  |||      S )a1  Returns information about the particular transfer run.

      Args:
        request: (BigquerydatatransferProjectsTransferConfigsRunsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (TransferRun) The response message.
      r]   r<   r>   rA   s       r1   r]   z=BigquerydatatransferV1.ProjectsTransferConfigsRunsService.Get  r^   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nr   r`   z6bigquerydatatransfer.projects.transferConfigs.runs.getrG   ra   rb   9BigquerydatatransferProjectsTransferConfigsRunsGetRequestr   FrL   rX   rZ   r2   r1   r[   zBBigquerydatatransferV1.ProjectsTransferConfigsRunsService.<lambda>  s4     6 6^JxH"U(!r2   c                 L    | j                  d      }| j                  |||      S )aG  Returns information about running and completed transfer runs.

      Args:
        request: (BigquerydatatransferProjectsTransferConfigsRunsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListTransferRunsResponse) The response message.
      rf   r<   r>   rA   s       r1   rf   z>BigquerydatatransferV1.ProjectsTransferConfigsRunsService.List  rg   r2   c                  J    t        j                  ddddgdgg ddddd	d
      S )NzAv1/projects/{projectsId}/transferConfigs/{transferConfigsId}/runsr`   z7bigquerydatatransfer.projects.transferConfigs.runs.listri   r   r   rb   :BigquerydatatransferProjectsTransferConfigsRunsListRequestr   FrL   rX   rZ   r2   r1   r[   zBBigquerydatatransferV1.ProjectsTransferConfigsRunsService.<lambda>  s4    !7!7UK zJF)V5"r2   r6   r   rw   s   @r1   r(   r     s@    G+E
8F8C8Dr2   r(   c                        e Zd ZdZdZ fdZddZd e_        ddZd e_        ddZ	d	 e	_        dd
Z
d e
_        ddZd e_        ddZd e_        ddZd e_         xZS )5BigquerydatatransferV1.ProjectsTransferConfigsServicez8Service class for the projects_transferConfigs resource.r+   c                 N    t         t        j                  |   |       i | _        y r6   )r   r   r*   r   r7   r8   s     r1   r   z>BigquerydatatransferV1.ProjectsTransferConfigsService.__init__-  s$    "AA4QRXYdr2   c                 L    | j                  d      }| j                  |||      S )a'  Creates a new data transfer configuration.

      Args:
        request: (BigquerydatatransferProjectsTransferConfigsCreateRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (TransferConfig) The response message.
      r   r<   r>   rA   s       r1   r   z<BigquerydatatransferV1.ProjectsTransferConfigsService.Create2  r   r2   c                  J    t        j                  ddddgdgg ddddd	d
      S )N(v1/projects/{projectsId}/transferConfigsrF   z4bigquerydatatransfer.projects.transferConfigs.createri   r   r   r   8BigquerydatatransferProjectsTransferConfigsCreateRequestr   FrL   rX   rZ   r2   r1   r[   z>BigquerydatatransferV1.ProjectsTransferConfigsService.<lambda>?  s4    8#9#9<H zJO4&T+$r2   c                 L    | j                  d      }| j                  |||      S )aK  Deletes a data transfer configuration, including any associated transfer runs and logs.

      Args:
        request: (BigquerydatatransferProjectsTransferConfigsDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Empty) The response message.
      r   r<   r>   rA   s       r1   r   z<BigquerydatatransferV1.ProjectsTransferConfigsService.DeleteM  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )N<v1/projects/{projectsId}/transferConfigs/{transferConfigsId}r   z4bigquerydatatransfer.projects.transferConfigs.deleterG   ra   rb   8BigquerydatatransferProjectsTransferConfigsDeleteRequestr   FrL   rX   rZ   r2   r1   r[   z>BigquerydatatransferV1.ProjectsTransferConfigsService.<lambda>Z  s4    8#9#9PHxH"T"$r2   c                 L    | j                  d      }| j                  |||      S )a+  Returns information about a data transfer config.

      Args:
        request: (BigquerydatatransferProjectsTransferConfigsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (TransferConfig) The response message.
      r]   r<   r>   rA   s       r1   r]   z9BigquerydatatransferV1.ProjectsTransferConfigsService.Geth  r^   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nr  r`   z1bigquerydatatransfer.projects.transferConfigs.getrG   ra   rb   5BigquerydatatransferProjectsTransferConfigsGetRequestr   FrL   rX   rZ   r2   r1   r[   z>BigquerydatatransferV1.ProjectsTransferConfigsService.<lambda>u  s4     6 6PExH"Q+!r2   c                 L    | j                  d      }| j                  |||      S )ad  Returns information about all transfer configs owned by a project in the specified location.

      Args:
        request: (BigquerydatatransferProjectsTransferConfigsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListTransferConfigsResponse) The response message.
      rf   r<   r>   rA   s       r1   rf   z:BigquerydatatransferV1.ProjectsTransferConfigsService.List  rg   r2   c                  J    t        j                  ddddgdgg ddddd	d
      S )Nr  r`   z2bigquerydatatransfer.projects.transferConfigs.listri   r   r   rb   6BigquerydatatransferProjectsTransferConfigsListRequestr   FrL   rX   rZ   r2   r1   r[   z>BigquerydatatransferV1.ProjectsTransferConfigsService.<lambda>  s4    !7!7<F zJ?4R8"r2   c                 L    | j                  d      }| j                  |||      S )aX  Updates a data transfer configuration. All fields must be set, even if they are not updated.

      Args:
        request: (BigquerydatatransferProjectsTransferConfigsPatchRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (TransferConfig) The response message.
      r   r<   r>   rA   s       r1   r   z;BigquerydatatransferV1.ProjectsTransferConfigsService.Patch  r   r2   c                  J    t        j                  ddddgdgg ddddd	d
      S )Nr  r   z3bigquerydatatransfer.projects.transferConfigs.patchrG   r   ra   r   7BigquerydatatransferProjectsTransferConfigsPatchRequestr   FrL   rX   rZ   r2   r1   r[   z>BigquerydatatransferV1.ProjectsTransferConfigsService.<lambda>  s4    ("8"8PGxH]"&S+#r2   c                 L    | j                  d      }| j                  |||      S )a)  Creates transfer runs for a time range [start_time, end_time]. For each date - or whatever granularity the data source supports - in the range, one transfer run is created. Note that runs are created per UTC time in the time range. DEPRECATED: use StartManualTransferRuns instead.

      Args:
        request: (BigquerydatatransferProjectsTransferConfigsScheduleRunsRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ScheduleTransferRunsResponse) The response message.
      r   r<   r>   rA   s       r1   r   zBBigquerydatatransferV1.ProjectsTransferConfigsService.ScheduleRuns  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NzIv1/projects/{projectsId}/transferConfigs/{transferConfigsId}:scheduleRunsrF   z:bigquerydatatransfer.projects.transferConfigs.scheduleRunsri   r   r   >BigquerydatatransferProjectsTransferConfigsScheduleRunsRequestr   FrL   rX   rZ   r2   r1   r[   z>BigquerydatatransferV1.ProjectsTransferConfigsService.<lambda>  s4    )?)?]N zJ13Z9*r2   c                 L    | j                  d      }| j                  |||      S )a  Manually initiates transfer runs. You can schedule these runs in two ways: 1. For a specific point in time using the 'requested_run_time' parameter. 2. For a period between 'start_time' (inclusive) and 'end_time' (exclusive). If scheduling a single run, it is set to execute immediately (schedule_time equals the current time). When scheduling multiple runs within a time range, the first run starts now, and subsequent runs are delayed by 15 seconds each.

      Args:
        request: (BigquerydatatransferProjectsTransferConfigsStartManualRunsRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (StartManualTransferRunsResponse) The response message.
      r   r<   r>   rA   s       r1   r   zEBigquerydatatransferV1.ProjectsTransferConfigsService.StartManualRuns  rD   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )NzLv1/projects/{projectsId}/transferConfigs/{transferConfigsId}:startManualRunsrF   z=bigquerydatatransfer.projects.transferConfigs.startManualRunsri   r   r   ABigquerydatatransferProjectsTransferConfigsStartManualRunsRequestr   FrL   rX   rZ   r2   r1   r[   z>BigquerydatatransferV1.ProjectsTransferConfigsService.<lambda>  s4    H,B,B`Q zJ46]<-r2   r6   r   rw   s   @r1   r*   r  (  s|    B&E
8F8F8C8D8E8"L8%O!!r2   r*   c                   >     e Zd ZdZdZ fdZddZd e_         xZS )&BigquerydatatransferV1.ProjectsServicez(Service class for the projects resource.r-   c                 N    t         t        j                  |   |       i | _        y r6   )r   r   r,   r   r7   r8   s     r1   r   z/BigquerydatatransferV1.ProjectsService.__init__  s#    "22DB6Jdr2   c                 L    | j                  d      }| j                  |||      S )a  Enroll data sources in a user project. This allows users to create transfer configurations for these data sources. They will also appear in the ListDataSources RPC and as such, will appear in the [BigQuery UI](https://console.cloud.google.com/bigquery), and the documents can be found in the public guide for [BigQuery Web UI](https://cloud.google.com/bigquery/bigquery-web-ui) and [Data Transfer Service](https://cloud.google.com/bigquery/docs/working-with-transfers).

      Args:
        request: (BigquerydatatransferProjectsEnrollDataSourcesRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Empty) The response message.
      r   r<   r>   rA   s       r1   r   z8BigquerydatatransferV1.ProjectsService.EnrollDataSources  r   r2   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz*v1/projects/{projectsId}:enrollDataSourcesrF   z/bigquerydatatransfer.projects.enrollDataSourcesrG   r   r   4BigquerydatatransferProjectsEnrollDataSourcesRequestr   FrL   rX   rZ   r2   r1   r[   z/BigquerydatatransferV1.ProjectsService.<lambda>  s4    h.D.D>CxH40P"/r2   r6   )	rp   rq   rr   rs   rt   r   r   ru   rv   rw   s   @r1   r,   r"    s#    2E
8'##r2   r,   )rb   NTNNFFNNNN)rp   rq   rr   rs   messagesMESSAGES_MODULEr   MTLS_BASE_URL_PACKAGE_SCOPES_VERSION
_CLIENT_ID_CLIENT_SECRET_USER_AGENT_CLIENT_CLASS_NAME_URL_VERSION_API_KEYr   r   BaseApiServicer   r   r   r    r"   r$   r&   r(   r*   r,   rv   rw   s   @r1   r   r   
   s*   M/;(E-#( g'(*"."+/,()-6:/4<@?C	/4Y8#:#: YvYH,C,C Yv#@W@W #JYH4K4K YvE0G0G ENt!8!8 tl#x7N7N #JY8+B+B YvEx'>'> EN#// # #r2   r   N)
rs   
__future__r   apitools.base.pyr   =googlecloudsdk.generated_clients.apis.bigquerydatatransfer.v1r   r'  BaseApiClientr   rZ   r2   r1   <module>r8     s'    C ' % vHX33 Hr2   