google-cloud-bigquery-data_transfer-v1 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6433955b8b3f7bcdb862815a1264b7aded4630fa0e03baad0488ba4efbfd90af
4
- data.tar.gz: dd9ce54ca3f027af29a8ff704fb893d863bcfdc8f8c64b4f5e4d5a2f6f6fcc12
3
+ metadata.gz: 3b56f293bce6677ee068aa41c1ba4ec764de4f61657333377423693953afa721
4
+ data.tar.gz: 45409cc61fd48cf43a5e3d06507aed1d2ee9470af0769d79a75cbeb4da287a47
5
5
  SHA512:
6
- metadata.gz: a4fcd678ba1f117f0df384049f4debf475a1f1b172c8061f55534f07431dd82a6e8801326057771a323f08b0f60849af7f4f8ab5bc05cb8a95201376ff2ef0f0
7
- data.tar.gz: ef21e6e47e3d20a10d3c88b9894c1f3e1534fb5531ec6c677321203dd7666d243d59548136cc4605606ffc1acea2dd2d30e34df11779d0315ab2d8a11a453c15
6
+ metadata.gz: ed2d2c5378ddac46078fe2302021af9e97a7621b1deabbec1fa61418d330af545a535e7eb719801074295c43aa804b4dd46eea67f03792a2cf97def3e8913a58
7
+ data.tar.gz: 68d927dcbc0edae92bf20ecaab874f6a460d9096b2c00e9901423ea5888806e82ae6f705461596036e45e3261894a159b5a330ad55f80a5e122b7e181f873751
@@ -202,7 +202,8 @@ module Google
202
202
  credentials: credentials,
203
203
  endpoint: @config.endpoint,
204
204
  channel_args: @config.channel_args,
205
- interceptors: @config.interceptors
205
+ interceptors: @config.interceptors,
206
+ channel_pool_config: @config.channel_pool
206
207
  )
207
208
  end
208
209
 
@@ -1824,6 +1825,14 @@ module Google
1824
1825
  end
1825
1826
  end
1826
1827
 
1828
+ ##
1829
+ # Configuration for the channel pool
1830
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1831
+ #
1832
+ def channel_pool
1833
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1834
+ end
1835
+
1827
1836
  ##
1828
1837
  # Configuration RPC class for the DataTransferService API.
1829
1838
  #
@@ -236,6 +236,22 @@ module Google
236
236
  # @return [::Google::Cloud::Bigquery::DataTransfer::V1::DataSource]
237
237
  #
238
238
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
239
+ #
240
+ # @example Basic example
241
+ # require "google/cloud/bigquery/data_transfer/v1"
242
+ #
243
+ # # Create a client object. The client can be reused for multiple calls.
244
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Rest::Client.new
245
+ #
246
+ # # Create a request. To set request fields, pass in keyword arguments.
247
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::GetDataSourceRequest.new
248
+ #
249
+ # # Call the get_data_source method.
250
+ # result = client.get_data_source request
251
+ #
252
+ # # The returned object is of type Google::Cloud::Bigquery::DataTransfer::V1::DataSource.
253
+ # p result
254
+ #
239
255
  def get_data_source request, options = nil
240
256
  raise ::ArgumentError, "request must be provided" if request.nil?
241
257
 
@@ -308,6 +324,26 @@ module Google
308
324
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Bigquery::DataTransfer::V1::DataSource>]
309
325
  #
310
326
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
327
+ #
328
+ # @example Basic example
329
+ # require "google/cloud/bigquery/data_transfer/v1"
330
+ #
331
+ # # Create a client object. The client can be reused for multiple calls.
332
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Rest::Client.new
333
+ #
334
+ # # Create a request. To set request fields, pass in keyword arguments.
335
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::ListDataSourcesRequest.new
336
+ #
337
+ # # Call the list_data_sources method.
338
+ # result = client.list_data_sources request
339
+ #
340
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
341
+ # # over elements, and API calls will be issued to fetch pages as needed.
342
+ # result.each do |item|
343
+ # # Each element is of type ::Google::Cloud::Bigquery::DataTransfer::V1::DataSource.
344
+ # p item
345
+ # end
346
+ #
311
347
  def list_data_sources request, options = nil
312
348
  raise ::ArgumentError, "request must be provided" if request.nil?
313
349
 
@@ -417,6 +453,22 @@ module Google
417
453
  # @return [::Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig]
418
454
  #
419
455
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
456
+ #
457
+ # @example Basic example
458
+ # require "google/cloud/bigquery/data_transfer/v1"
459
+ #
460
+ # # Create a client object. The client can be reused for multiple calls.
461
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Rest::Client.new
462
+ #
463
+ # # Create a request. To set request fields, pass in keyword arguments.
464
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::CreateTransferConfigRequest.new
465
+ #
466
+ # # Call the create_transfer_config method.
467
+ # result = client.create_transfer_config request
468
+ #
469
+ # # The returned object is of type Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig.
470
+ # p result
471
+ #
420
472
  def create_transfer_config request, options = nil
421
473
  raise ::ArgumentError, "request must be provided" if request.nil?
422
474
 
@@ -522,6 +574,22 @@ module Google
522
574
  # @return [::Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig]
523
575
  #
524
576
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
577
+ #
578
+ # @example Basic example
579
+ # require "google/cloud/bigquery/data_transfer/v1"
580
+ #
581
+ # # Create a client object. The client can be reused for multiple calls.
582
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Rest::Client.new
583
+ #
584
+ # # Create a request. To set request fields, pass in keyword arguments.
585
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::UpdateTransferConfigRequest.new
586
+ #
587
+ # # Call the update_transfer_config method.
588
+ # result = client.update_transfer_config request
589
+ #
590
+ # # The returned object is of type Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig.
591
+ # p result
592
+ #
525
593
  def update_transfer_config request, options = nil
526
594
  raise ::ArgumentError, "request must be provided" if request.nil?
527
595
 
@@ -587,6 +655,22 @@ module Google
587
655
  # @return [::Google::Protobuf::Empty]
588
656
  #
589
657
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
658
+ #
659
+ # @example Basic example
660
+ # require "google/cloud/bigquery/data_transfer/v1"
661
+ #
662
+ # # Create a client object. The client can be reused for multiple calls.
663
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Rest::Client.new
664
+ #
665
+ # # Create a request. To set request fields, pass in keyword arguments.
666
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::DeleteTransferConfigRequest.new
667
+ #
668
+ # # Call the delete_transfer_config method.
669
+ # result = client.delete_transfer_config request
670
+ #
671
+ # # The returned object is of type Google::Protobuf::Empty.
672
+ # p result
673
+ #
590
674
  def delete_transfer_config request, options = nil
591
675
  raise ::ArgumentError, "request must be provided" if request.nil?
592
676
 
@@ -651,6 +735,22 @@ module Google
651
735
  # @return [::Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig]
652
736
  #
653
737
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
738
+ #
739
+ # @example Basic example
740
+ # require "google/cloud/bigquery/data_transfer/v1"
741
+ #
742
+ # # Create a client object. The client can be reused for multiple calls.
743
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Rest::Client.new
744
+ #
745
+ # # Create a request. To set request fields, pass in keyword arguments.
746
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::GetTransferConfigRequest.new
747
+ #
748
+ # # Call the get_transfer_config method.
749
+ # result = client.get_transfer_config request
750
+ #
751
+ # # The returned object is of type Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig.
752
+ # p result
753
+ #
654
754
  def get_transfer_config request, options = nil
655
755
  raise ::ArgumentError, "request must be provided" if request.nil?
656
756
 
@@ -726,6 +826,26 @@ module Google
726
826
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig>]
727
827
  #
728
828
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
829
+ #
830
+ # @example Basic example
831
+ # require "google/cloud/bigquery/data_transfer/v1"
832
+ #
833
+ # # Create a client object. The client can be reused for multiple calls.
834
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Rest::Client.new
835
+ #
836
+ # # Create a request. To set request fields, pass in keyword arguments.
837
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::ListTransferConfigsRequest.new
838
+ #
839
+ # # Call the list_transfer_configs method.
840
+ # result = client.list_transfer_configs request
841
+ #
842
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
843
+ # # over elements, and API calls will be issued to fetch pages as needed.
844
+ # result.each do |item|
845
+ # # Each element is of type ::Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig.
846
+ # p item
847
+ # end
848
+ #
729
849
  def list_transfer_configs request, options = nil
730
850
  raise ::ArgumentError, "request must be provided" if request.nil?
731
851
 
@@ -801,6 +921,22 @@ module Google
801
921
  # @return [::Google::Cloud::Bigquery::DataTransfer::V1::ScheduleTransferRunsResponse]
802
922
  #
803
923
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
924
+ #
925
+ # @example Basic example
926
+ # require "google/cloud/bigquery/data_transfer/v1"
927
+ #
928
+ # # Create a client object. The client can be reused for multiple calls.
929
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Rest::Client.new
930
+ #
931
+ # # Create a request. To set request fields, pass in keyword arguments.
932
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::ScheduleTransferRunsRequest.new
933
+ #
934
+ # # Call the schedule_transfer_runs method.
935
+ # result = client.schedule_transfer_runs request
936
+ #
937
+ # # The returned object is of type Google::Cloud::Bigquery::DataTransfer::V1::ScheduleTransferRunsResponse.
938
+ # p result
939
+ #
804
940
  def schedule_transfer_runs request, options = nil
805
941
  raise ::ArgumentError, "request must be provided" if request.nil?
806
942
 
@@ -878,6 +1014,22 @@ module Google
878
1014
  # @return [::Google::Cloud::Bigquery::DataTransfer::V1::StartManualTransferRunsResponse]
879
1015
  #
880
1016
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1017
+ #
1018
+ # @example Basic example
1019
+ # require "google/cloud/bigquery/data_transfer/v1"
1020
+ #
1021
+ # # Create a client object. The client can be reused for multiple calls.
1022
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Rest::Client.new
1023
+ #
1024
+ # # Create a request. To set request fields, pass in keyword arguments.
1025
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::StartManualTransferRunsRequest.new
1026
+ #
1027
+ # # Call the start_manual_transfer_runs method.
1028
+ # result = client.start_manual_transfer_runs request
1029
+ #
1030
+ # # The returned object is of type Google::Cloud::Bigquery::DataTransfer::V1::StartManualTransferRunsResponse.
1031
+ # p result
1032
+ #
881
1033
  def start_manual_transfer_runs request, options = nil
882
1034
  raise ::ArgumentError, "request must be provided" if request.nil?
883
1035
 
@@ -943,6 +1095,22 @@ module Google
943
1095
  # @return [::Google::Cloud::Bigquery::DataTransfer::V1::TransferRun]
944
1096
  #
945
1097
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1098
+ #
1099
+ # @example Basic example
1100
+ # require "google/cloud/bigquery/data_transfer/v1"
1101
+ #
1102
+ # # Create a client object. The client can be reused for multiple calls.
1103
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Rest::Client.new
1104
+ #
1105
+ # # Create a request. To set request fields, pass in keyword arguments.
1106
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::GetTransferRunRequest.new
1107
+ #
1108
+ # # Call the get_transfer_run method.
1109
+ # result = client.get_transfer_run request
1110
+ #
1111
+ # # The returned object is of type Google::Cloud::Bigquery::DataTransfer::V1::TransferRun.
1112
+ # p result
1113
+ #
946
1114
  def get_transfer_run request, options = nil
947
1115
  raise ::ArgumentError, "request must be provided" if request.nil?
948
1116
 
@@ -1008,6 +1176,22 @@ module Google
1008
1176
  # @return [::Google::Protobuf::Empty]
1009
1177
  #
1010
1178
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1179
+ #
1180
+ # @example Basic example
1181
+ # require "google/cloud/bigquery/data_transfer/v1"
1182
+ #
1183
+ # # Create a client object. The client can be reused for multiple calls.
1184
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Rest::Client.new
1185
+ #
1186
+ # # Create a request. To set request fields, pass in keyword arguments.
1187
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::DeleteTransferRunRequest.new
1188
+ #
1189
+ # # Call the delete_transfer_run method.
1190
+ # result = client.delete_transfer_run request
1191
+ #
1192
+ # # The returned object is of type Google::Protobuf::Empty.
1193
+ # p result
1194
+ #
1011
1195
  def delete_transfer_run request, options = nil
1012
1196
  raise ::ArgumentError, "request must be provided" if request.nil?
1013
1197
 
@@ -1085,6 +1269,26 @@ module Google
1085
1269
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Bigquery::DataTransfer::V1::TransferRun>]
1086
1270
  #
1087
1271
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1272
+ #
1273
+ # @example Basic example
1274
+ # require "google/cloud/bigquery/data_transfer/v1"
1275
+ #
1276
+ # # Create a client object. The client can be reused for multiple calls.
1277
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Rest::Client.new
1278
+ #
1279
+ # # Create a request. To set request fields, pass in keyword arguments.
1280
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::ListTransferRunsRequest.new
1281
+ #
1282
+ # # Call the list_transfer_runs method.
1283
+ # result = client.list_transfer_runs request
1284
+ #
1285
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1286
+ # # over elements, and API calls will be issued to fetch pages as needed.
1287
+ # result.each do |item|
1288
+ # # Each element is of type ::Google::Cloud::Bigquery::DataTransfer::V1::TransferRun.
1289
+ # p item
1290
+ # end
1291
+ #
1088
1292
  def list_transfer_runs request, options = nil
1089
1293
  raise ::ArgumentError, "request must be provided" if request.nil?
1090
1294
 
@@ -1161,6 +1365,26 @@ module Google
1161
1365
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Bigquery::DataTransfer::V1::TransferMessage>]
1162
1366
  #
1163
1367
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1368
+ #
1369
+ # @example Basic example
1370
+ # require "google/cloud/bigquery/data_transfer/v1"
1371
+ #
1372
+ # # Create a client object. The client can be reused for multiple calls.
1373
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Rest::Client.new
1374
+ #
1375
+ # # Create a request. To set request fields, pass in keyword arguments.
1376
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::ListTransferLogsRequest.new
1377
+ #
1378
+ # # Call the list_transfer_logs method.
1379
+ # result = client.list_transfer_logs request
1380
+ #
1381
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1382
+ # # over elements, and API calls will be issued to fetch pages as needed.
1383
+ # result.each do |item|
1384
+ # # Each element is of type ::Google::Cloud::Bigquery::DataTransfer::V1::TransferMessage.
1385
+ # p item
1386
+ # end
1387
+ #
1164
1388
  def list_transfer_logs request, options = nil
1165
1389
  raise ::ArgumentError, "request must be provided" if request.nil?
1166
1390
 
@@ -1227,6 +1451,22 @@ module Google
1227
1451
  # @return [::Google::Cloud::Bigquery::DataTransfer::V1::CheckValidCredsResponse]
1228
1452
  #
1229
1453
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1454
+ #
1455
+ # @example Basic example
1456
+ # require "google/cloud/bigquery/data_transfer/v1"
1457
+ #
1458
+ # # Create a client object. The client can be reused for multiple calls.
1459
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Rest::Client.new
1460
+ #
1461
+ # # Create a request. To set request fields, pass in keyword arguments.
1462
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::CheckValidCredsRequest.new
1463
+ #
1464
+ # # Call the check_valid_creds method.
1465
+ # result = client.check_valid_creds request
1466
+ #
1467
+ # # The returned object is of type Google::Cloud::Bigquery::DataTransfer::V1::CheckValidCredsResponse.
1468
+ # p result
1469
+ #
1230
1470
  def check_valid_creds request, options = nil
1231
1471
  raise ::ArgumentError, "request must be provided" if request.nil?
1232
1472
 
@@ -1299,6 +1539,22 @@ module Google
1299
1539
  # @return [::Google::Protobuf::Empty]
1300
1540
  #
1301
1541
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1542
+ #
1543
+ # @example Basic example
1544
+ # require "google/cloud/bigquery/data_transfer/v1"
1545
+ #
1546
+ # # Create a client object. The client can be reused for multiple calls.
1547
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Rest::Client.new
1548
+ #
1549
+ # # Create a request. To set request fields, pass in keyword arguments.
1550
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::EnrollDataSourcesRequest.new
1551
+ #
1552
+ # # Call the enroll_data_sources method.
1553
+ # result = client.enroll_data_sources request
1554
+ #
1555
+ # # The returned object is of type Google::Protobuf::Empty.
1556
+ # p result
1557
+ #
1302
1558
  def enroll_data_sources request, options = nil
1303
1559
  raise ::ArgumentError, "request must be provided" if request.nil?
1304
1560
 
@@ -22,7 +22,7 @@ module Google
22
22
  module Bigquery
23
23
  module DataTransfer
24
24
  module V1
25
- VERSION = "0.10.0"
25
+ VERSION = "0.11.0"
26
26
  end
27
27
  end
28
28
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
@@ -75,9 +75,10 @@ module Google
75
75
  # @!attribute [rw] name
76
76
  # @return [::String]
77
77
  # The resource name of the transfer config.
78
- # Transfer config names have the form
79
- # `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`.
80
- # Where `config_id` is usually a uuid, even though it is not
78
+ # Transfer config names have the form either
79
+ # `projects/{project_id}/locations/{region}/transferConfigs/{config_id}` or
80
+ # `projects/{project_id}/transferConfigs/{config_id}`,
81
+ # where `config_id` is usually a UUID, even though it is not
81
82
  # guaranteed or required. The name is ignored when creating a transfer
82
83
  # config.
83
84
  # @!attribute [rw] destination_dataset_id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-bigquery-data_transfer-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-03 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.1
19
+ version: 0.20.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -239,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
239
  - !ruby/object:Gem::Version
240
240
  version: '0'
241
241
  requirements: []
242
- rubygems_version: 3.4.2
242
+ rubygems_version: 3.4.19
243
243
  signing_key:
244
244
  specification_version: 4
245
245
  summary: Schedule queries or transfer external data from SaaS applications to Google