google-cloud-bigquery-data_transfer-v1 0.4.4 → 0.4.5

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: 58a018d821207c28605f8c2288b168ac51c496e676a0bd26036b51cb5aabb70e
4
- data.tar.gz: b067a3dfdfa53209b06a1bfa0554a2755906de0f1e3be65204a09d4e85c58d21
3
+ metadata.gz: 858ac9046282b3f9f1ad16896571a7ec0ff7167e6a41f4a677e3623b4e08eaaa
4
+ data.tar.gz: caefa5a2b16a67126c8915ddcb5bc9d85cf62a06bce500d35fb6c7c5630b2b75
5
5
  SHA512:
6
- metadata.gz: 67f666a9d4e67640172723fcf3c327224a84874483742f7ac77d625c0375524b3aeaac280febf86a3ab057f5ff1f954f4cacfdd1026388582671ca3a8ff10ea3
7
- data.tar.gz: d91f2bae8a81c92abcb20ee095462709929bcb3ed05f51d6e497153d5fe110b69d260e33f38add6790d0698837a751f8b94e3b05d3d21ed1a594037c7da2770e
6
+ metadata.gz: cbe0687f2bb91583fec9192380f098421d1bec4f6726aa4155cba8ba855e21dc551d063eec692974aa3955003bb8fb8bd91e3605bcb9e0f9110b97a04544e361
7
+ data.tar.gz: 1587893e7feeb969dcc82f8973facf0e835c19cfcbb46b80c538c4ef91d7edf091c26b7ab37d4eeabb769c89b160bcdb3d4a1b370809626a3fbadd19ca74872e
@@ -236,6 +236,21 @@ module Google
236
236
  #
237
237
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
238
238
  #
239
+ # @example Basic example
240
+ # require "google/cloud/bigquery/data_transfer/v1"
241
+ #
242
+ # # Create a client object. The client can be reused for multiple calls.
243
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
244
+ #
245
+ # # Create a request. To set request fields, pass in keyword arguments.
246
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::GetDataSourceRequest.new
247
+ #
248
+ # # Call the get_data_source method.
249
+ # result = client.get_data_source request
250
+ #
251
+ # # The returned object is of type Google::Cloud::Bigquery::DataTransfer::V1::DataSource.
252
+ # p result
253
+ #
239
254
  def get_data_source request, options = nil
240
255
  raise ::ArgumentError, "request must be provided" if request.nil?
241
256
 
@@ -253,9 +268,11 @@ module Google
253
268
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
254
269
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
255
270
 
256
- header_params = {
257
- "name" => request.name
258
- }
271
+ header_params = {}
272
+ if request.name
273
+ header_params["name"] = request.name
274
+ end
275
+
259
276
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
260
277
  metadata[:"x-goog-request-params"] ||= request_params_header
261
278
 
@@ -315,6 +332,27 @@ module Google
315
332
  #
316
333
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
317
334
  #
335
+ # @example Basic example
336
+ # require "google/cloud/bigquery/data_transfer/v1"
337
+ #
338
+ # # Create a client object. The client can be reused for multiple calls.
339
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
340
+ #
341
+ # # Create a request. To set request fields, pass in keyword arguments.
342
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::ListDataSourcesRequest.new
343
+ #
344
+ # # Call the list_data_sources method.
345
+ # result = client.list_data_sources request
346
+ #
347
+ # # The returned object is of type Gapic::PagedEnumerable. You can
348
+ # # iterate over all elements by calling #each, and the enumerable
349
+ # # will lazily make API calls to fetch subsequent pages. Other
350
+ # # methods are also available for managing paging directly.
351
+ # result.each do |response|
352
+ # # Each element is of type ::Google::Cloud::Bigquery::DataTransfer::V1::DataSource.
353
+ # p response
354
+ # end
355
+ #
318
356
  def list_data_sources request, options = nil
319
357
  raise ::ArgumentError, "request must be provided" if request.nil?
320
358
 
@@ -332,9 +370,11 @@ module Google
332
370
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
333
371
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
334
372
 
335
- header_params = {
336
- "parent" => request.parent
337
- }
373
+ header_params = {}
374
+ if request.parent
375
+ header_params["parent"] = request.parent
376
+ end
377
+
338
378
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
339
379
  metadata[:"x-goog-request-params"] ||= request_params_header
340
380
 
@@ -418,6 +458,21 @@ module Google
418
458
  #
419
459
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
420
460
  #
461
+ # @example Basic example
462
+ # require "google/cloud/bigquery/data_transfer/v1"
463
+ #
464
+ # # Create a client object. The client can be reused for multiple calls.
465
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
466
+ #
467
+ # # Create a request. To set request fields, pass in keyword arguments.
468
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::CreateTransferConfigRequest.new
469
+ #
470
+ # # Call the create_transfer_config method.
471
+ # result = client.create_transfer_config request
472
+ #
473
+ # # The returned object is of type Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig.
474
+ # p result
475
+ #
421
476
  def create_transfer_config request, options = nil
422
477
  raise ::ArgumentError, "request must be provided" if request.nil?
423
478
 
@@ -435,9 +490,11 @@ module Google
435
490
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
436
491
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
437
492
 
438
- header_params = {
439
- "parent" => request.parent
440
- }
493
+ header_params = {}
494
+ if request.parent
495
+ header_params["parent"] = request.parent
496
+ end
497
+
441
498
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
442
499
  metadata[:"x-goog-request-params"] ||= request_params_header
443
500
 
@@ -519,6 +576,21 @@ module Google
519
576
  #
520
577
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
521
578
  #
579
+ # @example Basic example
580
+ # require "google/cloud/bigquery/data_transfer/v1"
581
+ #
582
+ # # Create a client object. The client can be reused for multiple calls.
583
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
584
+ #
585
+ # # Create a request. To set request fields, pass in keyword arguments.
586
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::UpdateTransferConfigRequest.new
587
+ #
588
+ # # Call the update_transfer_config method.
589
+ # result = client.update_transfer_config request
590
+ #
591
+ # # The returned object is of type Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig.
592
+ # p result
593
+ #
522
594
  def update_transfer_config request, options = nil
523
595
  raise ::ArgumentError, "request must be provided" if request.nil?
524
596
 
@@ -536,9 +608,11 @@ module Google
536
608
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
537
609
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
538
610
 
539
- header_params = {
540
- "transfer_config.name" => request.transfer_config.name
541
- }
611
+ header_params = {}
612
+ if request.transfer_config&.name
613
+ header_params["transfer_config.name"] = request.transfer_config.name
614
+ end
615
+
542
616
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
543
617
  metadata[:"x-goog-request-params"] ||= request_params_header
544
618
 
@@ -590,6 +664,21 @@ module Google
590
664
  #
591
665
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
592
666
  #
667
+ # @example Basic example
668
+ # require "google/cloud/bigquery/data_transfer/v1"
669
+ #
670
+ # # Create a client object. The client can be reused for multiple calls.
671
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
672
+ #
673
+ # # Create a request. To set request fields, pass in keyword arguments.
674
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::DeleteTransferConfigRequest.new
675
+ #
676
+ # # Call the delete_transfer_config method.
677
+ # result = client.delete_transfer_config request
678
+ #
679
+ # # The returned object is of type Google::Protobuf::Empty.
680
+ # p result
681
+ #
593
682
  def delete_transfer_config request, options = nil
594
683
  raise ::ArgumentError, "request must be provided" if request.nil?
595
684
 
@@ -607,9 +696,11 @@ module Google
607
696
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
608
697
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
609
698
 
610
- header_params = {
611
- "name" => request.name
612
- }
699
+ header_params = {}
700
+ if request.name
701
+ header_params["name"] = request.name
702
+ end
703
+
613
704
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
614
705
  metadata[:"x-goog-request-params"] ||= request_params_header
615
706
 
@@ -660,6 +751,21 @@ module Google
660
751
  #
661
752
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
662
753
  #
754
+ # @example Basic example
755
+ # require "google/cloud/bigquery/data_transfer/v1"
756
+ #
757
+ # # Create a client object. The client can be reused for multiple calls.
758
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
759
+ #
760
+ # # Create a request. To set request fields, pass in keyword arguments.
761
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::GetTransferConfigRequest.new
762
+ #
763
+ # # Call the get_transfer_config method.
764
+ # result = client.get_transfer_config request
765
+ #
766
+ # # The returned object is of type Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig.
767
+ # p result
768
+ #
663
769
  def get_transfer_config request, options = nil
664
770
  raise ::ArgumentError, "request must be provided" if request.nil?
665
771
 
@@ -677,9 +783,11 @@ module Google
677
783
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
678
784
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
679
785
 
680
- header_params = {
681
- "name" => request.name
682
- }
786
+ header_params = {}
787
+ if request.name
788
+ header_params["name"] = request.name
789
+ end
790
+
683
791
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
684
792
  metadata[:"x-goog-request-params"] ||= request_params_header
685
793
 
@@ -741,6 +849,27 @@ module Google
741
849
  #
742
850
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
743
851
  #
852
+ # @example Basic example
853
+ # require "google/cloud/bigquery/data_transfer/v1"
854
+ #
855
+ # # Create a client object. The client can be reused for multiple calls.
856
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
857
+ #
858
+ # # Create a request. To set request fields, pass in keyword arguments.
859
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::ListTransferConfigsRequest.new
860
+ #
861
+ # # Call the list_transfer_configs method.
862
+ # result = client.list_transfer_configs request
863
+ #
864
+ # # The returned object is of type Gapic::PagedEnumerable. You can
865
+ # # iterate over all elements by calling #each, and the enumerable
866
+ # # will lazily make API calls to fetch subsequent pages. Other
867
+ # # methods are also available for managing paging directly.
868
+ # result.each do |response|
869
+ # # Each element is of type ::Google::Cloud::Bigquery::DataTransfer::V1::TransferConfig.
870
+ # p response
871
+ # end
872
+ #
744
873
  def list_transfer_configs request, options = nil
745
874
  raise ::ArgumentError, "request must be provided" if request.nil?
746
875
 
@@ -758,9 +887,11 @@ module Google
758
887
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
759
888
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
760
889
 
761
- header_params = {
762
- "parent" => request.parent
763
- }
890
+ header_params = {}
891
+ if request.parent
892
+ header_params["parent"] = request.parent
893
+ end
894
+
764
895
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
765
896
  metadata[:"x-goog-request-params"] ||= request_params_header
766
897
 
@@ -824,6 +955,21 @@ module Google
824
955
  #
825
956
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
826
957
  #
958
+ # @example Basic example
959
+ # require "google/cloud/bigquery/data_transfer/v1"
960
+ #
961
+ # # Create a client object. The client can be reused for multiple calls.
962
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
963
+ #
964
+ # # Create a request. To set request fields, pass in keyword arguments.
965
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::ScheduleTransferRunsRequest.new
966
+ #
967
+ # # Call the schedule_transfer_runs method.
968
+ # result = client.schedule_transfer_runs request
969
+ #
970
+ # # The returned object is of type Google::Cloud::Bigquery::DataTransfer::V1::ScheduleTransferRunsResponse.
971
+ # p result
972
+ #
827
973
  def schedule_transfer_runs request, options = nil
828
974
  raise ::ArgumentError, "request must be provided" if request.nil?
829
975
 
@@ -841,9 +987,11 @@ module Google
841
987
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
842
988
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
843
989
 
844
- header_params = {
845
- "parent" => request.parent
846
- }
990
+ header_params = {}
991
+ if request.parent
992
+ header_params["parent"] = request.parent
993
+ end
994
+
847
995
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
848
996
  metadata[:"x-goog-request-params"] ||= request_params_header
849
997
 
@@ -902,6 +1050,21 @@ module Google
902
1050
  #
903
1051
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
904
1052
  #
1053
+ # @example Basic example
1054
+ # require "google/cloud/bigquery/data_transfer/v1"
1055
+ #
1056
+ # # Create a client object. The client can be reused for multiple calls.
1057
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
1058
+ #
1059
+ # # Create a request. To set request fields, pass in keyword arguments.
1060
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::StartManualTransferRunsRequest.new
1061
+ #
1062
+ # # Call the start_manual_transfer_runs method.
1063
+ # result = client.start_manual_transfer_runs request
1064
+ #
1065
+ # # The returned object is of type Google::Cloud::Bigquery::DataTransfer::V1::StartManualTransferRunsResponse.
1066
+ # p result
1067
+ #
905
1068
  def start_manual_transfer_runs request, options = nil
906
1069
  raise ::ArgumentError, "request must be provided" if request.nil?
907
1070
 
@@ -919,9 +1082,11 @@ module Google
919
1082
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
920
1083
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
921
1084
 
922
- header_params = {
923
- "parent" => request.parent
924
- }
1085
+ header_params = {}
1086
+ if request.parent
1087
+ header_params["parent"] = request.parent
1088
+ end
1089
+
925
1090
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
926
1091
  metadata[:"x-goog-request-params"] ||= request_params_header
927
1092
 
@@ -972,6 +1137,21 @@ module Google
972
1137
  #
973
1138
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
974
1139
  #
1140
+ # @example Basic example
1141
+ # require "google/cloud/bigquery/data_transfer/v1"
1142
+ #
1143
+ # # Create a client object. The client can be reused for multiple calls.
1144
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
1145
+ #
1146
+ # # Create a request. To set request fields, pass in keyword arguments.
1147
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::GetTransferRunRequest.new
1148
+ #
1149
+ # # Call the get_transfer_run method.
1150
+ # result = client.get_transfer_run request
1151
+ #
1152
+ # # The returned object is of type Google::Cloud::Bigquery::DataTransfer::V1::TransferRun.
1153
+ # p result
1154
+ #
975
1155
  def get_transfer_run request, options = nil
976
1156
  raise ::ArgumentError, "request must be provided" if request.nil?
977
1157
 
@@ -989,9 +1169,11 @@ module Google
989
1169
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
990
1170
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
991
1171
 
992
- header_params = {
993
- "name" => request.name
994
- }
1172
+ header_params = {}
1173
+ if request.name
1174
+ header_params["name"] = request.name
1175
+ end
1176
+
995
1177
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
996
1178
  metadata[:"x-goog-request-params"] ||= request_params_header
997
1179
 
@@ -1042,6 +1224,21 @@ module Google
1042
1224
  #
1043
1225
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1044
1226
  #
1227
+ # @example Basic example
1228
+ # require "google/cloud/bigquery/data_transfer/v1"
1229
+ #
1230
+ # # Create a client object. The client can be reused for multiple calls.
1231
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
1232
+ #
1233
+ # # Create a request. To set request fields, pass in keyword arguments.
1234
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::DeleteTransferRunRequest.new
1235
+ #
1236
+ # # Call the delete_transfer_run method.
1237
+ # result = client.delete_transfer_run request
1238
+ #
1239
+ # # The returned object is of type Google::Protobuf::Empty.
1240
+ # p result
1241
+ #
1045
1242
  def delete_transfer_run request, options = nil
1046
1243
  raise ::ArgumentError, "request must be provided" if request.nil?
1047
1244
 
@@ -1059,9 +1256,11 @@ module Google
1059
1256
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
1060
1257
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1061
1258
 
1062
- header_params = {
1063
- "name" => request.name
1064
- }
1259
+ header_params = {}
1260
+ if request.name
1261
+ header_params["name"] = request.name
1262
+ end
1263
+
1065
1264
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1066
1265
  metadata[:"x-goog-request-params"] ||= request_params_header
1067
1266
 
@@ -1125,6 +1324,27 @@ module Google
1125
1324
  #
1126
1325
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1127
1326
  #
1327
+ # @example Basic example
1328
+ # require "google/cloud/bigquery/data_transfer/v1"
1329
+ #
1330
+ # # Create a client object. The client can be reused for multiple calls.
1331
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
1332
+ #
1333
+ # # Create a request. To set request fields, pass in keyword arguments.
1334
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::ListTransferRunsRequest.new
1335
+ #
1336
+ # # Call the list_transfer_runs method.
1337
+ # result = client.list_transfer_runs request
1338
+ #
1339
+ # # The returned object is of type Gapic::PagedEnumerable. You can
1340
+ # # iterate over all elements by calling #each, and the enumerable
1341
+ # # will lazily make API calls to fetch subsequent pages. Other
1342
+ # # methods are also available for managing paging directly.
1343
+ # result.each do |response|
1344
+ # # Each element is of type ::Google::Cloud::Bigquery::DataTransfer::V1::TransferRun.
1345
+ # p response
1346
+ # end
1347
+ #
1128
1348
  def list_transfer_runs request, options = nil
1129
1349
  raise ::ArgumentError, "request must be provided" if request.nil?
1130
1350
 
@@ -1142,9 +1362,11 @@ module Google
1142
1362
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
1143
1363
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1144
1364
 
1145
- header_params = {
1146
- "parent" => request.parent
1147
- }
1365
+ header_params = {}
1366
+ if request.parent
1367
+ header_params["parent"] = request.parent
1368
+ end
1369
+
1148
1370
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1149
1371
  metadata[:"x-goog-request-params"] ||= request_params_header
1150
1372
 
@@ -1207,6 +1429,27 @@ module Google
1207
1429
  #
1208
1430
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1209
1431
  #
1432
+ # @example Basic example
1433
+ # require "google/cloud/bigquery/data_transfer/v1"
1434
+ #
1435
+ # # Create a client object. The client can be reused for multiple calls.
1436
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
1437
+ #
1438
+ # # Create a request. To set request fields, pass in keyword arguments.
1439
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::ListTransferLogsRequest.new
1440
+ #
1441
+ # # Call the list_transfer_logs method.
1442
+ # result = client.list_transfer_logs request
1443
+ #
1444
+ # # The returned object is of type Gapic::PagedEnumerable. You can
1445
+ # # iterate over all elements by calling #each, and the enumerable
1446
+ # # will lazily make API calls to fetch subsequent pages. Other
1447
+ # # methods are also available for managing paging directly.
1448
+ # result.each do |response|
1449
+ # # Each element is of type ::Google::Cloud::Bigquery::DataTransfer::V1::TransferMessage.
1450
+ # p response
1451
+ # end
1452
+ #
1210
1453
  def list_transfer_logs request, options = nil
1211
1454
  raise ::ArgumentError, "request must be provided" if request.nil?
1212
1455
 
@@ -1224,9 +1467,11 @@ module Google
1224
1467
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
1225
1468
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1226
1469
 
1227
- header_params = {
1228
- "parent" => request.parent
1229
- }
1470
+ header_params = {}
1471
+ if request.parent
1472
+ header_params["parent"] = request.parent
1473
+ end
1474
+
1230
1475
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1231
1476
  metadata[:"x-goog-request-params"] ||= request_params_header
1232
1477
 
@@ -1283,6 +1528,21 @@ module Google
1283
1528
  #
1284
1529
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1285
1530
  #
1531
+ # @example Basic example
1532
+ # require "google/cloud/bigquery/data_transfer/v1"
1533
+ #
1534
+ # # Create a client object. The client can be reused for multiple calls.
1535
+ # client = Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
1536
+ #
1537
+ # # Create a request. To set request fields, pass in keyword arguments.
1538
+ # request = Google::Cloud::Bigquery::DataTransfer::V1::CheckValidCredsRequest.new
1539
+ #
1540
+ # # Call the check_valid_creds method.
1541
+ # result = client.check_valid_creds request
1542
+ #
1543
+ # # The returned object is of type Google::Cloud::Bigquery::DataTransfer::V1::CheckValidCredsResponse.
1544
+ # p result
1545
+ #
1286
1546
  def check_valid_creds request, options = nil
1287
1547
  raise ::ArgumentError, "request must be provided" if request.nil?
1288
1548
 
@@ -1300,9 +1560,11 @@ module Google
1300
1560
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
1301
1561
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1302
1562
 
1303
- header_params = {
1304
- "name" => request.name
1305
- }
1563
+ header_params = {}
1564
+ if request.name
1565
+ header_params["name"] = request.name
1566
+ end
1567
+
1306
1568
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1307
1569
  metadata[:"x-goog-request-params"] ||= request_params_header
1308
1570
 
@@ -22,7 +22,7 @@ module Google
22
22
  module Bigquery
23
23
  module DataTransfer
24
24
  module V1
25
- VERSION = "0.4.4"
25
+ VERSION = "0.4.5"
26
26
  end
27
27
  end
28
28
  end
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -13,6 +11,8 @@ require 'google/protobuf/empty_pb'
13
11
  require 'google/protobuf/field_mask_pb'
14
12
  require 'google/protobuf/timestamp_pb'
15
13
  require 'google/protobuf/wrappers_pb'
14
+ require 'google/protobuf'
15
+
16
16
  Google::Protobuf::DescriptorPool.generated_pool.build do
17
17
  add_file("google/cloud/bigquery/datatransfer/v1/datatransfer.proto", :syntax => :proto3) do
18
18
  add_message "google.cloud.bigquery.datatransfer.v1.DataSourceParameter" do
@@ -31,7 +31,7 @@ module Google
31
31
  # up the frontend.
32
32
  class Service
33
33
 
34
- include GRPC::GenericService
34
+ include ::GRPC::GenericService
35
35
 
36
36
  self.marshal_class_method = :encode
37
37
  self.unmarshal_class_method = :decode
@@ -1,14 +1,14 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/bigquery/datatransfer/v1/transfer.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/api/resource_pb'
8
6
  require 'google/protobuf/duration_pb'
9
7
  require 'google/protobuf/struct_pb'
10
8
  require 'google/protobuf/timestamp_pb'
11
9
  require 'google/rpc/status_pb'
10
+ require 'google/protobuf'
11
+
12
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
13
  add_file("google/cloud/bigquery/datatransfer/v1/transfer.proto", :syntax => :proto3) do
14
14
  add_message "google.cloud.bigquery.datatransfer.v1.EmailPreferences" do
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.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-20 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common