google-cloud-cloud_dms-v1 0.1.3 → 0.1.4

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: 97c10cfb9762f7397a40008162ca82c091dafd43fd05f7240c2ff294eefd1703
4
- data.tar.gz: bebe4b7e7a869671d11e1f634ad57fa15675d9b3f325aaf8069ba667b3fd7be4
3
+ metadata.gz: 181efb2719d661bc875a1d3884a3b28e45996a054825b147a4315d5d7374f0f4
4
+ data.tar.gz: aee50b9fddfd1765e69869df2ccaac46521d7b37a6058b86520813c2e3175933
5
5
  SHA512:
6
- metadata.gz: b29b509e9f61b6f97e40e2685569e4b2ff7fc1fb6cefeb481b9203a02a55409fd731e1b17471afe0fee6d30299cb0f72f02f7542cce4cb1440e5aa81af81be40
7
- data.tar.gz: 1555540bc27957dacf7ac22dc8bd808b16047ee4ac786d06ba1ce651447bed6e50cabbd58b5d89c76f321c7f62b514a2fd0c6d52edd92f408d16e45683f2a9ff
6
+ metadata.gz: c1ff23822941cb9e1e2904500bc857962ca6d8388036a74de3aac21dd2858dcfb275aa5a1a0283444156932985b816bd588106e1514a918b299674c7a13c8aa8
7
+ data.tar.gz: c4dc76e51cf05e769fab30bc35f1645906efb8b15428da25f279da20ac46a33ca8f100fd994b8363a3339d37541fd8194beae20ef6742bbdef57b0c660e22042
@@ -248,6 +248,27 @@ module Google
248
248
  #
249
249
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
250
250
  #
251
+ # @example Basic example
252
+ # require "google/cloud/cloud_dms/v1"
253
+ #
254
+ # # Create a client object. The client can be reused for multiple calls.
255
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
256
+ #
257
+ # # Create a request. To set request fields, pass in keyword arguments.
258
+ # request = Google::Cloud::CloudDMS::V1::ListMigrationJobsRequest.new
259
+ #
260
+ # # Call the list_migration_jobs method.
261
+ # result = client.list_migration_jobs request
262
+ #
263
+ # # The returned object is of type Gapic::PagedEnumerable. You can
264
+ # # iterate over all elements by calling #each, and the enumerable
265
+ # # will lazily make API calls to fetch subsequent pages. Other
266
+ # # methods are also available for managing paging directly.
267
+ # result.each do |response|
268
+ # # Each element is of type ::Google::Cloud::CloudDMS::V1::MigrationJob.
269
+ # p response
270
+ # end
271
+ #
251
272
  def list_migration_jobs request, options = nil
252
273
  raise ::ArgumentError, "request must be provided" if request.nil?
253
274
 
@@ -265,9 +286,11 @@ module Google
265
286
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
266
287
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
267
288
 
268
- header_params = {
269
- "parent" => request.parent
270
- }
289
+ header_params = {}
290
+ if request.parent
291
+ header_params["parent"] = request.parent
292
+ end
293
+
271
294
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
272
295
  metadata[:"x-goog-request-params"] ||= request_params_header
273
296
 
@@ -317,6 +340,21 @@ module Google
317
340
  #
318
341
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
319
342
  #
343
+ # @example Basic example
344
+ # require "google/cloud/cloud_dms/v1"
345
+ #
346
+ # # Create a client object. The client can be reused for multiple calls.
347
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
348
+ #
349
+ # # Create a request. To set request fields, pass in keyword arguments.
350
+ # request = Google::Cloud::CloudDMS::V1::GetMigrationJobRequest.new
351
+ #
352
+ # # Call the get_migration_job method.
353
+ # result = client.get_migration_job request
354
+ #
355
+ # # The returned object is of type Google::Cloud::CloudDMS::V1::MigrationJob.
356
+ # p result
357
+ #
320
358
  def get_migration_job request, options = nil
321
359
  raise ::ArgumentError, "request must be provided" if request.nil?
322
360
 
@@ -334,9 +372,11 @@ module Google
334
372
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
335
373
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
336
374
 
337
- header_params = {
338
- "name" => request.name
339
- }
375
+ header_params = {}
376
+ if request.name
377
+ header_params["name"] = request.name
378
+ end
379
+
340
380
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
341
381
  metadata[:"x-goog-request-params"] ||= request_params_header
342
382
 
@@ -399,6 +439,28 @@ module Google
399
439
  #
400
440
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
401
441
  #
442
+ # @example Basic example
443
+ # require "google/cloud/cloud_dms/v1"
444
+ #
445
+ # # Create a client object. The client can be reused for multiple calls.
446
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
447
+ #
448
+ # # Create a request. To set request fields, pass in keyword arguments.
449
+ # request = Google::Cloud::CloudDMS::V1::CreateMigrationJobRequest.new
450
+ #
451
+ # # Call the create_migration_job method.
452
+ # result = client.create_migration_job request
453
+ #
454
+ # # The returned object is of type Gapic::Operation. You can use this
455
+ # # object to check the status of an operation, cancel it, or wait
456
+ # # for results. Here is how to block until completion:
457
+ # result.wait_until_done! timeout: 60
458
+ # if result.response?
459
+ # p result.response
460
+ # else
461
+ # puts "Error!"
462
+ # end
463
+ #
402
464
  def create_migration_job request, options = nil
403
465
  raise ::ArgumentError, "request must be provided" if request.nil?
404
466
 
@@ -416,9 +478,11 @@ module Google
416
478
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
417
479
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
418
480
 
419
- header_params = {
420
- "parent" => request.parent
421
- }
481
+ header_params = {}
482
+ if request.parent
483
+ header_params["parent"] = request.parent
484
+ end
485
+
422
486
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
423
487
  metadata[:"x-goog-request-params"] ||= request_params_header
424
488
 
@@ -479,6 +543,28 @@ module Google
479
543
  #
480
544
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
481
545
  #
546
+ # @example Basic example
547
+ # require "google/cloud/cloud_dms/v1"
548
+ #
549
+ # # Create a client object. The client can be reused for multiple calls.
550
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
551
+ #
552
+ # # Create a request. To set request fields, pass in keyword arguments.
553
+ # request = Google::Cloud::CloudDMS::V1::UpdateMigrationJobRequest.new
554
+ #
555
+ # # Call the update_migration_job method.
556
+ # result = client.update_migration_job request
557
+ #
558
+ # # The returned object is of type Gapic::Operation. You can use this
559
+ # # object to check the status of an operation, cancel it, or wait
560
+ # # for results. Here is how to block until completion:
561
+ # result.wait_until_done! timeout: 60
562
+ # if result.response?
563
+ # p result.response
564
+ # else
565
+ # puts "Error!"
566
+ # end
567
+ #
482
568
  def update_migration_job request, options = nil
483
569
  raise ::ArgumentError, "request must be provided" if request.nil?
484
570
 
@@ -496,9 +582,11 @@ module Google
496
582
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
497
583
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
498
584
 
499
- header_params = {
500
- "migration_job.name" => request.migration_job.name
501
- }
585
+ header_params = {}
586
+ if request.migration_job&.name
587
+ header_params["migration_job.name"] = request.migration_job.name
588
+ end
589
+
502
590
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
503
591
  metadata[:"x-goog-request-params"] ||= request_params_header
504
592
 
@@ -560,6 +648,28 @@ module Google
560
648
  #
561
649
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
562
650
  #
651
+ # @example Basic example
652
+ # require "google/cloud/cloud_dms/v1"
653
+ #
654
+ # # Create a client object. The client can be reused for multiple calls.
655
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
656
+ #
657
+ # # Create a request. To set request fields, pass in keyword arguments.
658
+ # request = Google::Cloud::CloudDMS::V1::DeleteMigrationJobRequest.new
659
+ #
660
+ # # Call the delete_migration_job method.
661
+ # result = client.delete_migration_job request
662
+ #
663
+ # # The returned object is of type Gapic::Operation. You can use this
664
+ # # object to check the status of an operation, cancel it, or wait
665
+ # # for results. Here is how to block until completion:
666
+ # result.wait_until_done! timeout: 60
667
+ # if result.response?
668
+ # p result.response
669
+ # else
670
+ # puts "Error!"
671
+ # end
672
+ #
563
673
  def delete_migration_job request, options = nil
564
674
  raise ::ArgumentError, "request must be provided" if request.nil?
565
675
 
@@ -577,9 +687,11 @@ module Google
577
687
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
578
688
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
579
689
 
580
- header_params = {
581
- "name" => request.name
582
- }
690
+ header_params = {}
691
+ if request.name
692
+ header_params["name"] = request.name
693
+ end
694
+
583
695
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
584
696
  metadata[:"x-goog-request-params"] ||= request_params_header
585
697
 
@@ -629,6 +741,28 @@ module Google
629
741
  #
630
742
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
631
743
  #
744
+ # @example Basic example
745
+ # require "google/cloud/cloud_dms/v1"
746
+ #
747
+ # # Create a client object. The client can be reused for multiple calls.
748
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
749
+ #
750
+ # # Create a request. To set request fields, pass in keyword arguments.
751
+ # request = Google::Cloud::CloudDMS::V1::StartMigrationJobRequest.new
752
+ #
753
+ # # Call the start_migration_job method.
754
+ # result = client.start_migration_job request
755
+ #
756
+ # # The returned object is of type Gapic::Operation. You can use this
757
+ # # object to check the status of an operation, cancel it, or wait
758
+ # # for results. Here is how to block until completion:
759
+ # result.wait_until_done! timeout: 60
760
+ # if result.response?
761
+ # p result.response
762
+ # else
763
+ # puts "Error!"
764
+ # end
765
+ #
632
766
  def start_migration_job request, options = nil
633
767
  raise ::ArgumentError, "request must be provided" if request.nil?
634
768
 
@@ -646,9 +780,11 @@ module Google
646
780
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
647
781
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
648
782
 
649
- header_params = {
650
- "name" => request.name
651
- }
783
+ header_params = {}
784
+ if request.name
785
+ header_params["name"] = request.name
786
+ end
787
+
652
788
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
653
789
  metadata[:"x-goog-request-params"] ||= request_params_header
654
790
 
@@ -698,6 +834,28 @@ module Google
698
834
  #
699
835
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
700
836
  #
837
+ # @example Basic example
838
+ # require "google/cloud/cloud_dms/v1"
839
+ #
840
+ # # Create a client object. The client can be reused for multiple calls.
841
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
842
+ #
843
+ # # Create a request. To set request fields, pass in keyword arguments.
844
+ # request = Google::Cloud::CloudDMS::V1::StopMigrationJobRequest.new
845
+ #
846
+ # # Call the stop_migration_job method.
847
+ # result = client.stop_migration_job request
848
+ #
849
+ # # The returned object is of type Gapic::Operation. You can use this
850
+ # # object to check the status of an operation, cancel it, or wait
851
+ # # for results. Here is how to block until completion:
852
+ # result.wait_until_done! timeout: 60
853
+ # if result.response?
854
+ # p result.response
855
+ # else
856
+ # puts "Error!"
857
+ # end
858
+ #
701
859
  def stop_migration_job request, options = nil
702
860
  raise ::ArgumentError, "request must be provided" if request.nil?
703
861
 
@@ -715,9 +873,11 @@ module Google
715
873
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
716
874
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
717
875
 
718
- header_params = {
719
- "name" => request.name
720
- }
876
+ header_params = {}
877
+ if request.name
878
+ header_params["name"] = request.name
879
+ end
880
+
721
881
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
722
882
  metadata[:"x-goog-request-params"] ||= request_params_header
723
883
 
@@ -768,6 +928,28 @@ module Google
768
928
  #
769
929
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
770
930
  #
931
+ # @example Basic example
932
+ # require "google/cloud/cloud_dms/v1"
933
+ #
934
+ # # Create a client object. The client can be reused for multiple calls.
935
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
936
+ #
937
+ # # Create a request. To set request fields, pass in keyword arguments.
938
+ # request = Google::Cloud::CloudDMS::V1::ResumeMigrationJobRequest.new
939
+ #
940
+ # # Call the resume_migration_job method.
941
+ # result = client.resume_migration_job request
942
+ #
943
+ # # The returned object is of type Gapic::Operation. You can use this
944
+ # # object to check the status of an operation, cancel it, or wait
945
+ # # for results. Here is how to block until completion:
946
+ # result.wait_until_done! timeout: 60
947
+ # if result.response?
948
+ # p result.response
949
+ # else
950
+ # puts "Error!"
951
+ # end
952
+ #
771
953
  def resume_migration_job request, options = nil
772
954
  raise ::ArgumentError, "request must be provided" if request.nil?
773
955
 
@@ -785,9 +967,11 @@ module Google
785
967
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
786
968
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
787
969
 
788
- header_params = {
789
- "name" => request.name
790
- }
970
+ header_params = {}
971
+ if request.name
972
+ header_params["name"] = request.name
973
+ end
974
+
791
975
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
792
976
  metadata[:"x-goog-request-params"] ||= request_params_header
793
977
 
@@ -838,6 +1022,28 @@ module Google
838
1022
  #
839
1023
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
840
1024
  #
1025
+ # @example Basic example
1026
+ # require "google/cloud/cloud_dms/v1"
1027
+ #
1028
+ # # Create a client object. The client can be reused for multiple calls.
1029
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
1030
+ #
1031
+ # # Create a request. To set request fields, pass in keyword arguments.
1032
+ # request = Google::Cloud::CloudDMS::V1::PromoteMigrationJobRequest.new
1033
+ #
1034
+ # # Call the promote_migration_job method.
1035
+ # result = client.promote_migration_job request
1036
+ #
1037
+ # # The returned object is of type Gapic::Operation. You can use this
1038
+ # # object to check the status of an operation, cancel it, or wait
1039
+ # # for results. Here is how to block until completion:
1040
+ # result.wait_until_done! timeout: 60
1041
+ # if result.response?
1042
+ # p result.response
1043
+ # else
1044
+ # puts "Error!"
1045
+ # end
1046
+ #
841
1047
  def promote_migration_job request, options = nil
842
1048
  raise ::ArgumentError, "request must be provided" if request.nil?
843
1049
 
@@ -855,9 +1061,11 @@ module Google
855
1061
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
856
1062
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
857
1063
 
858
- header_params = {
859
- "name" => request.name
860
- }
1064
+ header_params = {}
1065
+ if request.name
1066
+ header_params["name"] = request.name
1067
+ end
1068
+
861
1069
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
862
1070
  metadata[:"x-goog-request-params"] ||= request_params_header
863
1071
 
@@ -908,6 +1116,28 @@ module Google
908
1116
  #
909
1117
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
910
1118
  #
1119
+ # @example Basic example
1120
+ # require "google/cloud/cloud_dms/v1"
1121
+ #
1122
+ # # Create a client object. The client can be reused for multiple calls.
1123
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
1124
+ #
1125
+ # # Create a request. To set request fields, pass in keyword arguments.
1126
+ # request = Google::Cloud::CloudDMS::V1::VerifyMigrationJobRequest.new
1127
+ #
1128
+ # # Call the verify_migration_job method.
1129
+ # result = client.verify_migration_job request
1130
+ #
1131
+ # # The returned object is of type Gapic::Operation. You can use this
1132
+ # # object to check the status of an operation, cancel it, or wait
1133
+ # # for results. Here is how to block until completion:
1134
+ # result.wait_until_done! timeout: 60
1135
+ # if result.response?
1136
+ # p result.response
1137
+ # else
1138
+ # puts "Error!"
1139
+ # end
1140
+ #
911
1141
  def verify_migration_job request, options = nil
912
1142
  raise ::ArgumentError, "request must be provided" if request.nil?
913
1143
 
@@ -925,9 +1155,11 @@ module Google
925
1155
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
926
1156
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
927
1157
 
928
- header_params = {
929
- "name" => request.name
930
- }
1158
+ header_params = {}
1159
+ if request.name
1160
+ header_params["name"] = request.name
1161
+ end
1162
+
931
1163
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
932
1164
  metadata[:"x-goog-request-params"] ||= request_params_header
933
1165
 
@@ -979,6 +1211,28 @@ module Google
979
1211
  #
980
1212
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
981
1213
  #
1214
+ # @example Basic example
1215
+ # require "google/cloud/cloud_dms/v1"
1216
+ #
1217
+ # # Create a client object. The client can be reused for multiple calls.
1218
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
1219
+ #
1220
+ # # Create a request. To set request fields, pass in keyword arguments.
1221
+ # request = Google::Cloud::CloudDMS::V1::RestartMigrationJobRequest.new
1222
+ #
1223
+ # # Call the restart_migration_job method.
1224
+ # result = client.restart_migration_job request
1225
+ #
1226
+ # # The returned object is of type Gapic::Operation. You can use this
1227
+ # # object to check the status of an operation, cancel it, or wait
1228
+ # # for results. Here is how to block until completion:
1229
+ # result.wait_until_done! timeout: 60
1230
+ # if result.response?
1231
+ # p result.response
1232
+ # else
1233
+ # puts "Error!"
1234
+ # end
1235
+ #
982
1236
  def restart_migration_job request, options = nil
983
1237
  raise ::ArgumentError, "request must be provided" if request.nil?
984
1238
 
@@ -996,9 +1250,11 @@ module Google
996
1250
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
997
1251
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
998
1252
 
999
- header_params = {
1000
- "name" => request.name
1001
- }
1253
+ header_params = {}
1254
+ if request.name
1255
+ header_params["name"] = request.name
1256
+ end
1257
+
1002
1258
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1003
1259
  metadata[:"x-goog-request-params"] ||= request_params_header
1004
1260
 
@@ -1057,6 +1313,21 @@ module Google
1057
1313
  #
1058
1314
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1059
1315
  #
1316
+ # @example Basic example
1317
+ # require "google/cloud/cloud_dms/v1"
1318
+ #
1319
+ # # Create a client object. The client can be reused for multiple calls.
1320
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
1321
+ #
1322
+ # # Create a request. To set request fields, pass in keyword arguments.
1323
+ # request = Google::Cloud::CloudDMS::V1::GenerateSshScriptRequest.new
1324
+ #
1325
+ # # Call the generate_ssh_script method.
1326
+ # result = client.generate_ssh_script request
1327
+ #
1328
+ # # The returned object is of type Google::Cloud::CloudDMS::V1::SshScript.
1329
+ # p result
1330
+ #
1060
1331
  def generate_ssh_script request, options = nil
1061
1332
  raise ::ArgumentError, "request must be provided" if request.nil?
1062
1333
 
@@ -1074,9 +1345,11 @@ module Google
1074
1345
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
1075
1346
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1076
1347
 
1077
- header_params = {
1078
- "migration_job" => request.migration_job
1079
- }
1348
+ header_params = {}
1349
+ if request.migration_job
1350
+ header_params["migration_job"] = request.migration_job
1351
+ end
1352
+
1080
1353
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1081
1354
  metadata[:"x-goog-request-params"] ||= request_params_header
1082
1355
 
@@ -1148,6 +1421,27 @@ module Google
1148
1421
  #
1149
1422
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1150
1423
  #
1424
+ # @example Basic example
1425
+ # require "google/cloud/cloud_dms/v1"
1426
+ #
1427
+ # # Create a client object. The client can be reused for multiple calls.
1428
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
1429
+ #
1430
+ # # Create a request. To set request fields, pass in keyword arguments.
1431
+ # request = Google::Cloud::CloudDMS::V1::ListConnectionProfilesRequest.new
1432
+ #
1433
+ # # Call the list_connection_profiles method.
1434
+ # result = client.list_connection_profiles request
1435
+ #
1436
+ # # The returned object is of type Gapic::PagedEnumerable. You can
1437
+ # # iterate over all elements by calling #each, and the enumerable
1438
+ # # will lazily make API calls to fetch subsequent pages. Other
1439
+ # # methods are also available for managing paging directly.
1440
+ # result.each do |response|
1441
+ # # Each element is of type ::Google::Cloud::CloudDMS::V1::ConnectionProfile.
1442
+ # p response
1443
+ # end
1444
+ #
1151
1445
  def list_connection_profiles request, options = nil
1152
1446
  raise ::ArgumentError, "request must be provided" if request.nil?
1153
1447
 
@@ -1165,9 +1459,11 @@ module Google
1165
1459
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
1166
1460
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1167
1461
 
1168
- header_params = {
1169
- "parent" => request.parent
1170
- }
1462
+ header_params = {}
1463
+ if request.parent
1464
+ header_params["parent"] = request.parent
1465
+ end
1466
+
1171
1467
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1172
1468
  metadata[:"x-goog-request-params"] ||= request_params_header
1173
1469
 
@@ -1217,6 +1513,21 @@ module Google
1217
1513
  #
1218
1514
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1219
1515
  #
1516
+ # @example Basic example
1517
+ # require "google/cloud/cloud_dms/v1"
1518
+ #
1519
+ # # Create a client object. The client can be reused for multiple calls.
1520
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
1521
+ #
1522
+ # # Create a request. To set request fields, pass in keyword arguments.
1523
+ # request = Google::Cloud::CloudDMS::V1::GetConnectionProfileRequest.new
1524
+ #
1525
+ # # Call the get_connection_profile method.
1526
+ # result = client.get_connection_profile request
1527
+ #
1528
+ # # The returned object is of type Google::Cloud::CloudDMS::V1::ConnectionProfile.
1529
+ # p result
1530
+ #
1220
1531
  def get_connection_profile request, options = nil
1221
1532
  raise ::ArgumentError, "request must be provided" if request.nil?
1222
1533
 
@@ -1234,9 +1545,11 @@ module Google
1234
1545
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
1235
1546
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1236
1547
 
1237
- header_params = {
1238
- "name" => request.name
1239
- }
1548
+ header_params = {}
1549
+ if request.name
1550
+ header_params["name"] = request.name
1551
+ end
1552
+
1240
1553
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1241
1554
  metadata[:"x-goog-request-params"] ||= request_params_header
1242
1555
 
@@ -1297,6 +1610,28 @@ module Google
1297
1610
  #
1298
1611
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1299
1612
  #
1613
+ # @example Basic example
1614
+ # require "google/cloud/cloud_dms/v1"
1615
+ #
1616
+ # # Create a client object. The client can be reused for multiple calls.
1617
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
1618
+ #
1619
+ # # Create a request. To set request fields, pass in keyword arguments.
1620
+ # request = Google::Cloud::CloudDMS::V1::CreateConnectionProfileRequest.new
1621
+ #
1622
+ # # Call the create_connection_profile method.
1623
+ # result = client.create_connection_profile request
1624
+ #
1625
+ # # The returned object is of type Gapic::Operation. You can use this
1626
+ # # object to check the status of an operation, cancel it, or wait
1627
+ # # for results. Here is how to block until completion:
1628
+ # result.wait_until_done! timeout: 60
1629
+ # if result.response?
1630
+ # p result.response
1631
+ # else
1632
+ # puts "Error!"
1633
+ # end
1634
+ #
1300
1635
  def create_connection_profile request, options = nil
1301
1636
  raise ::ArgumentError, "request must be provided" if request.nil?
1302
1637
 
@@ -1314,9 +1649,11 @@ module Google
1314
1649
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
1315
1650
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1316
1651
 
1317
- header_params = {
1318
- "parent" => request.parent
1319
- }
1652
+ header_params = {}
1653
+ if request.parent
1654
+ header_params["parent"] = request.parent
1655
+ end
1656
+
1320
1657
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1321
1658
  metadata[:"x-goog-request-params"] ||= request_params_header
1322
1659
 
@@ -1377,6 +1714,28 @@ module Google
1377
1714
  #
1378
1715
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1379
1716
  #
1717
+ # @example Basic example
1718
+ # require "google/cloud/cloud_dms/v1"
1719
+ #
1720
+ # # Create a client object. The client can be reused for multiple calls.
1721
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
1722
+ #
1723
+ # # Create a request. To set request fields, pass in keyword arguments.
1724
+ # request = Google::Cloud::CloudDMS::V1::UpdateConnectionProfileRequest.new
1725
+ #
1726
+ # # Call the update_connection_profile method.
1727
+ # result = client.update_connection_profile request
1728
+ #
1729
+ # # The returned object is of type Gapic::Operation. You can use this
1730
+ # # object to check the status of an operation, cancel it, or wait
1731
+ # # for results. Here is how to block until completion:
1732
+ # result.wait_until_done! timeout: 60
1733
+ # if result.response?
1734
+ # p result.response
1735
+ # else
1736
+ # puts "Error!"
1737
+ # end
1738
+ #
1380
1739
  def update_connection_profile request, options = nil
1381
1740
  raise ::ArgumentError, "request must be provided" if request.nil?
1382
1741
 
@@ -1394,9 +1753,11 @@ module Google
1394
1753
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
1395
1754
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1396
1755
 
1397
- header_params = {
1398
- "connection_profile.name" => request.connection_profile.name
1399
- }
1756
+ header_params = {}
1757
+ if request.connection_profile&.name
1758
+ header_params["connection_profile.name"] = request.connection_profile.name
1759
+ end
1760
+
1400
1761
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1401
1762
  metadata[:"x-goog-request-params"] ||= request_params_header
1402
1763
 
@@ -1459,6 +1820,28 @@ module Google
1459
1820
  #
1460
1821
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1461
1822
  #
1823
+ # @example Basic example
1824
+ # require "google/cloud/cloud_dms/v1"
1825
+ #
1826
+ # # Create a client object. The client can be reused for multiple calls.
1827
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
1828
+ #
1829
+ # # Create a request. To set request fields, pass in keyword arguments.
1830
+ # request = Google::Cloud::CloudDMS::V1::DeleteConnectionProfileRequest.new
1831
+ #
1832
+ # # Call the delete_connection_profile method.
1833
+ # result = client.delete_connection_profile request
1834
+ #
1835
+ # # The returned object is of type Gapic::Operation. You can use this
1836
+ # # object to check the status of an operation, cancel it, or wait
1837
+ # # for results. Here is how to block until completion:
1838
+ # result.wait_until_done! timeout: 60
1839
+ # if result.response?
1840
+ # p result.response
1841
+ # else
1842
+ # puts "Error!"
1843
+ # end
1844
+ #
1462
1845
  def delete_connection_profile request, options = nil
1463
1846
  raise ::ArgumentError, "request must be provided" if request.nil?
1464
1847
 
@@ -1476,9 +1859,11 @@ module Google
1476
1859
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
1477
1860
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1478
1861
 
1479
- header_params = {
1480
- "name" => request.name
1481
- }
1862
+ header_params = {}
1863
+ if request.name
1864
+ header_params["name"] = request.name
1865
+ end
1866
+
1482
1867
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1483
1868
  metadata[:"x-goog-request-params"] ||= request_params_header
1484
1869
 
@@ -143,6 +143,27 @@ module Google
143
143
  #
144
144
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
145
145
  #
146
+ # @example Basic example
147
+ # require "google/longrunning"
148
+ #
149
+ # # Create a client object. The client can be reused for multiple calls.
150
+ # client = Google::Longrunning::Operations::Client.new
151
+ #
152
+ # # Create a request. To set request fields, pass in keyword arguments.
153
+ # request = Google::Longrunning::ListOperationsRequest.new
154
+ #
155
+ # # Call the list_operations method.
156
+ # result = client.list_operations request
157
+ #
158
+ # # The returned object is of type Gapic::PagedEnumerable. You can
159
+ # # iterate over all elements by calling #each, and the enumerable
160
+ # # will lazily make API calls to fetch subsequent pages. Other
161
+ # # methods are also available for managing paging directly.
162
+ # result.each do |response|
163
+ # # Each element is of type ::Google::Longrunning::Operation.
164
+ # p response
165
+ # end
166
+ #
146
167
  def list_operations request, options = nil
147
168
  raise ::ArgumentError, "request must be provided" if request.nil?
148
169
 
@@ -160,9 +181,11 @@ module Google
160
181
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
161
182
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
162
183
 
163
- header_params = {
164
- "name" => request.name
165
- }
184
+ header_params = {}
185
+ if request.name
186
+ header_params["name"] = request.name
187
+ end
188
+
166
189
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
167
190
  metadata[:"x-goog-request-params"] ||= request_params_header
168
191
 
@@ -215,6 +238,28 @@ module Google
215
238
  #
216
239
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
217
240
  #
241
+ # @example Basic example
242
+ # require "google/longrunning"
243
+ #
244
+ # # Create a client object. The client can be reused for multiple calls.
245
+ # client = Google::Longrunning::Operations::Client.new
246
+ #
247
+ # # Create a request. To set request fields, pass in keyword arguments.
248
+ # request = Google::Longrunning::GetOperationRequest.new
249
+ #
250
+ # # Call the get_operation method.
251
+ # result = client.get_operation request
252
+ #
253
+ # # The returned object is of type Gapic::Operation. You can use this
254
+ # # object to check the status of an operation, cancel it, or wait
255
+ # # for results. Here is how to block until completion:
256
+ # result.wait_until_done! timeout: 60
257
+ # if result.response?
258
+ # p result.response
259
+ # else
260
+ # puts "Error!"
261
+ # end
262
+ #
218
263
  def get_operation request, options = nil
219
264
  raise ::ArgumentError, "request must be provided" if request.nil?
220
265
 
@@ -232,9 +277,11 @@ module Google
232
277
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
233
278
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
234
279
 
235
- header_params = {
236
- "name" => request.name
237
- }
280
+ header_params = {}
281
+ if request.name
282
+ header_params["name"] = request.name
283
+ end
284
+
238
285
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
239
286
  metadata[:"x-goog-request-params"] ||= request_params_header
240
287
 
@@ -287,6 +334,21 @@ module Google
287
334
  #
288
335
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
289
336
  #
337
+ # @example Basic example
338
+ # require "google/longrunning"
339
+ #
340
+ # # Create a client object. The client can be reused for multiple calls.
341
+ # client = Google::Longrunning::Operations::Client.new
342
+ #
343
+ # # Create a request. To set request fields, pass in keyword arguments.
344
+ # request = Google::Longrunning::DeleteOperationRequest.new
345
+ #
346
+ # # Call the delete_operation method.
347
+ # result = client.delete_operation request
348
+ #
349
+ # # The returned object is of type Google::Protobuf::Empty.
350
+ # p result
351
+ #
290
352
  def delete_operation request, options = nil
291
353
  raise ::ArgumentError, "request must be provided" if request.nil?
292
354
 
@@ -304,9 +366,11 @@ module Google
304
366
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
305
367
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
306
368
 
307
- header_params = {
308
- "name" => request.name
309
- }
369
+ header_params = {}
370
+ if request.name
371
+ header_params["name"] = request.name
372
+ end
373
+
310
374
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
311
375
  metadata[:"x-goog-request-params"] ||= request_params_header
312
376
 
@@ -364,6 +428,21 @@ module Google
364
428
  #
365
429
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
366
430
  #
431
+ # @example Basic example
432
+ # require "google/longrunning"
433
+ #
434
+ # # Create a client object. The client can be reused for multiple calls.
435
+ # client = Google::Longrunning::Operations::Client.new
436
+ #
437
+ # # Create a request. To set request fields, pass in keyword arguments.
438
+ # request = Google::Longrunning::CancelOperationRequest.new
439
+ #
440
+ # # Call the cancel_operation method.
441
+ # result = client.cancel_operation request
442
+ #
443
+ # # The returned object is of type Google::Protobuf::Empty.
444
+ # p result
445
+ #
367
446
  def cancel_operation request, options = nil
368
447
  raise ::ArgumentError, "request must be provided" if request.nil?
369
448
 
@@ -381,9 +460,11 @@ module Google
381
460
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
382
461
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
383
462
 
384
- header_params = {
385
- "name" => request.name
386
- }
463
+ header_params = {}
464
+ if request.name
465
+ header_params["name"] = request.name
466
+ end
467
+
387
468
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
388
469
  metadata[:"x-goog-request-params"] ||= request_params_header
389
470
 
@@ -444,6 +525,28 @@ module Google
444
525
  #
445
526
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
446
527
  #
528
+ # @example Basic example
529
+ # require "google/longrunning"
530
+ #
531
+ # # Create a client object. The client can be reused for multiple calls.
532
+ # client = Google::Longrunning::Operations::Client.new
533
+ #
534
+ # # Create a request. To set request fields, pass in keyword arguments.
535
+ # request = Google::Longrunning::WaitOperationRequest.new
536
+ #
537
+ # # Call the wait_operation method.
538
+ # result = client.wait_operation request
539
+ #
540
+ # # The returned object is of type Gapic::Operation. You can use this
541
+ # # object to check the status of an operation, cancel it, or wait
542
+ # # for results. Here is how to block until completion:
543
+ # result.wait_until_done! timeout: 60
544
+ # if result.response?
545
+ # p result.response
546
+ # else
547
+ # puts "Error!"
548
+ # end
549
+ #
447
550
  def wait_operation request, options = nil
448
551
  raise ::ArgumentError, "request must be provided" if request.nil?
449
552
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module CloudDMS
23
23
  module V1
24
- VERSION = "0.1.3"
24
+ VERSION = "0.1.4"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-cloud_dms-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
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-10-18 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