@@ -338,7 +338,8 @@ def get_data_source(
338
338
339
339
Args:
340
340
name (str): Required. The field will contain name of the resource requested, for
341
- example: ``projects/{project_id}/dataSources/{data_source_id}``
341
+ example: ``projects/{project_id}/dataSources/{data_source_id}`` or
342
+ ``projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}``
342
343
retry (Optional[google.api_core.retry.Retry]): A retry object used
343
344
to retry requests. If ``None`` is specified, requests will
344
345
be retried using a default configuration.
@@ -422,7 +423,8 @@ def list_data_sources(
422
423
423
424
Args:
424
425
parent (str): Required. The BigQuery project id for which data sources should be
425
- returned. Must be in the form: ``projects/{project_id}``
426
+ returned. Must be in the form: ``projects/{project_id}`` or
427
+ \`projects/{project\_id}/locations/{location\_id}
426
428
page_size (int): The maximum number of resources contained in the
427
429
underlying API response. If page streaming is performed per-
428
430
resource, this parameter does not affect the return value. If page
@@ -498,6 +500,7 @@ def create_transfer_config(
498
500
transfer_config ,
499
501
authorization_code = None ,
500
502
version_info = None ,
503
+ service_account_name = None ,
501
504
retry = google .api_core .gapic_v1 .method .DEFAULT ,
502
505
timeout = google .api_core .gapic_v1 .method .DEFAULT ,
503
506
metadata = None ,
@@ -520,9 +523,9 @@ def create_transfer_config(
520
523
Args:
521
524
parent (str): Required. The BigQuery project id where the transfer configuration
522
525
should be created. Must be in the format
523
- projects/{project\_id}/locations/{location\_id} If specified location
524
- and location of the destination bigquery dataset do not match - the
525
- request will fail.
526
+ projects/{project\_id}/locations/{location\_id} or
527
+ projects/{project\_id}. If specified location and location of the
528
+ destination bigquery dataset do not match - the request will fail.
526
529
transfer_config (Union[dict, ~google.cloud.bigquery_datatransfer_v1.types.TransferConfig]): Required. Data transfer configuration to create.
527
530
528
531
If a dict is provided, it must be of the same form as the protobuf
@@ -550,6 +553,10 @@ def create_transfer_config(
550
553
users must use the "none+gsession" response type. which be return a
551
554
version\_info back in the authorization response which be be put in a
552
555
JWT claim in the token request.
556
+ service_account_name (str): Optional service account name. If this field is set, transfer config will
557
+ be created with this service account credentials. It requires that
558
+ requesting user calling this API has permissions to act as this service
559
+ account.
553
560
retry (Optional[google.api_core.retry.Retry]): A retry object used
554
561
to retry requests. If ``None`` is specified, requests will
555
562
be retried using a default configuration.
@@ -585,6 +592,7 @@ def create_transfer_config(
585
592
transfer_config = transfer_config ,
586
593
authorization_code = authorization_code ,
587
594
version_info = version_info ,
595
+ service_account_name = service_account_name ,
588
596
)
589
597
if metadata is None :
590
598
metadata = []
@@ -609,6 +617,7 @@ def update_transfer_config(
609
617
update_mask ,
610
618
authorization_code = None ,
611
619
version_info = None ,
620
+ service_account_name = None ,
612
621
retry = google .api_core .gapic_v1 .method .DEFAULT ,
613
622
timeout = google .api_core .gapic_v1 .method .DEFAULT ,
614
623
metadata = None ,
@@ -662,6 +671,11 @@ def update_transfer_config(
662
671
users must use the "none+gsession" response type. which be return a
663
672
version\_info back in the authorization response which be be put in a
664
673
JWT claim in the token request.
674
+ service_account_name (str): Optional service account name. If this field is set and
675
+ "service\_account\_name" is set in update\_mask, transfer config will be
676
+ updated to use this service account credentials. It requires that
677
+ requesting user calling this API has permissions to act as this service
678
+ account.
665
679
retry (Optional[google.api_core.retry.Retry]): A retry object used
666
680
to retry requests. If ``None`` is specified, requests will
667
681
be retried using a default configuration.
@@ -697,6 +711,7 @@ def update_transfer_config(
697
711
update_mask = update_mask ,
698
712
authorization_code = authorization_code ,
699
713
version_info = version_info ,
714
+ service_account_name = service_account_name ,
700
715
)
701
716
if metadata is None :
702
717
metadata = []
@@ -737,7 +752,8 @@ def delete_transfer_config(
737
752
738
753
Args:
739
754
name (str): Required. The field will contain name of the resource requested, for
740
- example: ``projects/{project_id}/transferConfigs/{config_id}``
755
+ example: ``projects/{project_id}/transferConfigs/{config_id}`` or
756
+ ``projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}``
741
757
retry (Optional[google.api_core.retry.Retry]): A retry object used
742
758
to retry requests. If ``None`` is specified, requests will
743
759
be retried using a default configuration.
@@ -804,7 +820,8 @@ def get_transfer_config(
804
820
805
821
Args:
806
822
name (str): Required. The field will contain name of the resource requested, for
807
- example: ``projects/{project_id}/transferConfigs/{config_id}``
823
+ example: ``projects/{project_id}/transferConfigs/{config_id}`` or
824
+ ``projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}``
808
825
retry (Optional[google.api_core.retry.Retry]): A retry object used
809
826
to retry requests. If ``None`` is specified, requests will
810
827
be retried using a default configuration.
@@ -888,7 +905,8 @@ def list_transfer_configs(
888
905
889
906
Args:
890
907
parent (str): Required. The BigQuery project id for which data sources should be
891
- returned: ``projects/{project_id}``.
908
+ returned: ``projects/{project_id}`` or
909
+ ``projects/{project_id}/locations/{location_id}``
892
910
data_source_ids (list[str]): When specified, only configurations of requested data sources are returned.
893
911
page_size (int): The maximum number of resources contained in the
894
912
underlying API response. If page streaming is performed per-
@@ -991,7 +1009,8 @@ def schedule_transfer_runs(
991
1009
992
1010
Args:
993
1011
parent (str): Required. Transfer configuration name in the form:
994
- ``projects/{project_id}/transferConfigs/{config_id}``.
1012
+ ``projects/{project_id}/transferConfigs/{config_id}`` or
1013
+ ``projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}``.
995
1014
start_time (Union[dict, ~google.cloud.bigquery_datatransfer_v1.types.Timestamp]): Required. Start time of the range of transfer runs. For example,
996
1015
``"2017-05-25T00:00:00+00:00"``.
997
1016
@@ -1074,7 +1093,8 @@ def get_transfer_run(
1074
1093
Args:
1075
1094
name (str): Required. The field will contain name of the resource requested, for
1076
1095
example:
1077
- ``projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}``
1096
+ ``projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}`` or
1097
+ ``projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}``
1078
1098
retry (Optional[google.api_core.retry.Retry]): A retry object used
1079
1099
to retry requests. If ``None`` is specified, requests will
1080
1100
be retried using a default configuration.
@@ -1145,7 +1165,8 @@ def delete_transfer_run(
1145
1165
Args:
1146
1166
name (str): Required. The field will contain name of the resource requested, for
1147
1167
example:
1148
- ``projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}``
1168
+ ``projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}`` or
1169
+ ``projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}``
1149
1170
retry (Optional[google.api_core.retry.Retry]): A retry object used
1150
1171
to retry requests. If ``None`` is specified, requests will
1151
1172
be retried using a default configuration.
@@ -1228,7 +1249,8 @@ def list_transfer_runs(
1228
1249
Args:
1229
1250
parent (str): Required. Name of transfer configuration for which transfer runs should
1230
1251
be retrieved. Format of transfer configuration resource name is:
1231
- ``projects/{project_id}/transferConfigs/{config_id}``.
1252
+ ``projects/{project_id}/transferConfigs/{config_id}`` or
1253
+ ``projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}``.
1232
1254
states (list[~google.cloud.bigquery_datatransfer_v1.types.TransferState]): When specified, only transfer runs with requested states are returned.
1233
1255
page_size (int): The maximum number of resources contained in the
1234
1256
underlying API response. If page streaming is performed per-
@@ -1335,7 +1357,8 @@ def list_transfer_logs(
1335
1357
1336
1358
Args:
1337
1359
parent (str): Required. Transfer run name in the form:
1338
- ``projects/{project_id}/transferConfigs/{config_Id}/runs/{run_id}``.
1360
+ ``projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}`` or
1361
+ ``projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}``
1339
1362
page_size (int): The maximum number of resources contained in the
1340
1363
underlying API response. If page streaming is performed per-
1341
1364
resource, this parameter does not affect the return value. If page
@@ -1433,7 +1456,8 @@ def check_valid_creds(
1433
1456
1434
1457
Args:
1435
1458
name (str): Required. The data source in the form:
1436
- ``projects/{project_id}/dataSources/{data_source_id}``
1459
+ ``projects/{project_id}/dataSources/{data_source_id}`` or
1460
+ ``projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}``.
1437
1461
retry (Optional[google.api_core.retry.Retry]): A retry object used
1438
1462
to retry requests. If ``None`` is specified, requests will
1439
1463
be retried using a default configuration.
@@ -1506,7 +1530,8 @@ def start_manual_transfer_runs(
1506
1530
1507
1531
Args:
1508
1532
parent (str): Transfer configuration name in the form:
1509
- ``projects/{project_id}/transferConfigs/{config_id}``.
1533
+ ``projects/{project_id}/transferConfigs/{config_id}`` or
1534
+ ``projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}``.
1510
1535
requested_time_range (Union[dict, ~google.cloud.bigquery_datatransfer_v1.types.TimeRange]): Time range for the transfer runs that should be started.
1511
1536
1512
1537
If a dict is provided, it must be of the same form as the protobuf
0 commit comments