google-cloud-vm_migration-v1 0.4.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/google/cloud/vm_migration/v1/bindings_override.rb +102 -0
- data/lib/google/cloud/vm_migration/v1/rest.rb +38 -0
- data/lib/google/cloud/vm_migration/v1/version.rb +1 -1
- data/lib/google/cloud/vm_migration/v1/vm_migration/client.rb +146 -164
- data/lib/google/cloud/vm_migration/v1/vm_migration/operations.rb +14 -16
- data/lib/google/cloud/vm_migration/v1/vm_migration/rest/client.rb +4031 -0
- data/lib/google/cloud/vm_migration/v1/vm_migration/rest/operations.rb +793 -0
- data/lib/google/cloud/vm_migration/v1/vm_migration/rest/service_stub.rb +2783 -0
- data/lib/google/cloud/vm_migration/v1/vm_migration/rest.rb +54 -0
- data/lib/google/cloud/vm_migration/v1/vm_migration.rb +6 -0
- data/lib/google/cloud/vm_migration/v1.rb +5 -0
- data/lib/google/cloud/vmmigration/v1/vmmigration_pb.rb +29 -814
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +17 -11
@@ -249,13 +249,11 @@ module Google
|
|
249
249
|
# # Call the list_sources method.
|
250
250
|
# result = client.list_sources request
|
251
251
|
#
|
252
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
253
|
-
# #
|
254
|
-
#
|
255
|
-
# # methods are also available for managing paging directly.
|
256
|
-
# result.each do |response|
|
252
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
253
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
254
|
+
# result.each do |item|
|
257
255
|
# # Each element is of type ::Google::Cloud::VMMigration::V1::Source.
|
258
|
-
# p
|
256
|
+
# p item
|
259
257
|
# end
|
260
258
|
#
|
261
259
|
def list_sources request, options = nil
|
@@ -444,14 +442,14 @@ module Google
|
|
444
442
|
# # Call the create_source method.
|
445
443
|
# result = client.create_source request
|
446
444
|
#
|
447
|
-
# # The returned object is of type Gapic::Operation. You can use
|
448
|
-
# #
|
449
|
-
# #
|
445
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
446
|
+
# # check the status of an operation, cancel it, or wait for results.
|
447
|
+
# # Here is how to wait for a response.
|
450
448
|
# result.wait_until_done! timeout: 60
|
451
449
|
# if result.response?
|
452
450
|
# p result.response
|
453
451
|
# else
|
454
|
-
# puts "
|
452
|
+
# puts "No response received."
|
455
453
|
# end
|
456
454
|
#
|
457
455
|
def create_source request, options = nil
|
@@ -557,14 +555,14 @@ module Google
|
|
557
555
|
# # Call the update_source method.
|
558
556
|
# result = client.update_source request
|
559
557
|
#
|
560
|
-
# # The returned object is of type Gapic::Operation. You can use
|
561
|
-
# #
|
562
|
-
# #
|
558
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
559
|
+
# # check the status of an operation, cancel it, or wait for results.
|
560
|
+
# # Here is how to wait for a response.
|
563
561
|
# result.wait_until_done! timeout: 60
|
564
562
|
# if result.response?
|
565
563
|
# p result.response
|
566
564
|
# else
|
567
|
-
# puts "
|
565
|
+
# puts "No response received."
|
568
566
|
# end
|
569
567
|
#
|
570
568
|
def update_source request, options = nil
|
@@ -664,14 +662,14 @@ module Google
|
|
664
662
|
# # Call the delete_source method.
|
665
663
|
# result = client.delete_source request
|
666
664
|
#
|
667
|
-
# # The returned object is of type Gapic::Operation. You can use
|
668
|
-
# #
|
669
|
-
# #
|
665
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
666
|
+
# # check the status of an operation, cancel it, or wait for results.
|
667
|
+
# # Here is how to wait for a response.
|
670
668
|
# result.wait_until_done! timeout: 60
|
671
669
|
# if result.response?
|
672
670
|
# p result.response
|
673
671
|
# else
|
674
|
-
# puts "
|
672
|
+
# puts "No response received."
|
675
673
|
# end
|
676
674
|
#
|
677
675
|
def delete_source request, options = nil
|
@@ -867,13 +865,11 @@ module Google
|
|
867
865
|
# # Call the list_utilization_reports method.
|
868
866
|
# result = client.list_utilization_reports request
|
869
867
|
#
|
870
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
871
|
-
# #
|
872
|
-
#
|
873
|
-
# # methods are also available for managing paging directly.
|
874
|
-
# result.each do |response|
|
868
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
869
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
870
|
+
# result.each do |item|
|
875
871
|
# # Each element is of type ::Google::Cloud::VMMigration::V1::UtilizationReport.
|
876
|
-
# p
|
872
|
+
# p item
|
877
873
|
# end
|
878
874
|
#
|
879
875
|
def list_utilization_reports request, options = nil
|
@@ -1070,14 +1066,14 @@ module Google
|
|
1070
1066
|
# # Call the create_utilization_report method.
|
1071
1067
|
# result = client.create_utilization_report request
|
1072
1068
|
#
|
1073
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1074
|
-
# #
|
1075
|
-
# #
|
1069
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1070
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1071
|
+
# # Here is how to wait for a response.
|
1076
1072
|
# result.wait_until_done! timeout: 60
|
1077
1073
|
# if result.response?
|
1078
1074
|
# p result.response
|
1079
1075
|
# else
|
1080
|
-
# puts "
|
1076
|
+
# puts "No response received."
|
1081
1077
|
# end
|
1082
1078
|
#
|
1083
1079
|
def create_utilization_report request, options = nil
|
@@ -1177,14 +1173,14 @@ module Google
|
|
1177
1173
|
# # Call the delete_utilization_report method.
|
1178
1174
|
# result = client.delete_utilization_report request
|
1179
1175
|
#
|
1180
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1181
|
-
# #
|
1182
|
-
# #
|
1176
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1177
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1178
|
+
# # Here is how to wait for a response.
|
1183
1179
|
# result.wait_until_done! timeout: 60
|
1184
1180
|
# if result.response?
|
1185
1181
|
# p result.response
|
1186
1182
|
# else
|
1187
|
-
# puts "
|
1183
|
+
# puts "No response received."
|
1188
1184
|
# end
|
1189
1185
|
#
|
1190
1186
|
def delete_utilization_report request, options = nil
|
@@ -1286,13 +1282,11 @@ module Google
|
|
1286
1282
|
# # Call the list_datacenter_connectors method.
|
1287
1283
|
# result = client.list_datacenter_connectors request
|
1288
1284
|
#
|
1289
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1290
|
-
# #
|
1291
|
-
#
|
1292
|
-
# # methods are also available for managing paging directly.
|
1293
|
-
# result.each do |response|
|
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|
|
1294
1288
|
# # Each element is of type ::Google::Cloud::VMMigration::V1::DatacenterConnector.
|
1295
|
-
# p
|
1289
|
+
# p item
|
1296
1290
|
# end
|
1297
1291
|
#
|
1298
1292
|
def list_datacenter_connectors request, options = nil
|
@@ -1484,14 +1478,14 @@ module Google
|
|
1484
1478
|
# # Call the create_datacenter_connector method.
|
1485
1479
|
# result = client.create_datacenter_connector request
|
1486
1480
|
#
|
1487
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1488
|
-
# #
|
1489
|
-
# #
|
1481
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1482
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1483
|
+
# # Here is how to wait for a response.
|
1490
1484
|
# result.wait_until_done! timeout: 60
|
1491
1485
|
# if result.response?
|
1492
1486
|
# p result.response
|
1493
1487
|
# else
|
1494
|
-
# puts "
|
1488
|
+
# puts "No response received."
|
1495
1489
|
# end
|
1496
1490
|
#
|
1497
1491
|
def create_datacenter_connector request, options = nil
|
@@ -1591,14 +1585,14 @@ module Google
|
|
1591
1585
|
# # Call the delete_datacenter_connector method.
|
1592
1586
|
# result = client.delete_datacenter_connector request
|
1593
1587
|
#
|
1594
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1595
|
-
# #
|
1596
|
-
# #
|
1588
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1589
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1590
|
+
# # Here is how to wait for a response.
|
1597
1591
|
# result.wait_until_done! timeout: 60
|
1598
1592
|
# if result.response?
|
1599
1593
|
# p result.response
|
1600
1594
|
# else
|
1601
|
-
# puts "
|
1595
|
+
# puts "No response received."
|
1602
1596
|
# end
|
1603
1597
|
#
|
1604
1598
|
def delete_datacenter_connector request, options = nil
|
@@ -1699,14 +1693,14 @@ module Google
|
|
1699
1693
|
# # Call the upgrade_appliance method.
|
1700
1694
|
# result = client.upgrade_appliance request
|
1701
1695
|
#
|
1702
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1703
|
-
# #
|
1704
|
-
# #
|
1696
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1697
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1698
|
+
# # Here is how to wait for a response.
|
1705
1699
|
# result.wait_until_done! timeout: 60
|
1706
1700
|
# if result.response?
|
1707
1701
|
# p result.response
|
1708
1702
|
# else
|
1709
|
-
# puts "
|
1703
|
+
# puts "No response received."
|
1710
1704
|
# end
|
1711
1705
|
#
|
1712
1706
|
def upgrade_appliance request, options = nil
|
@@ -1810,14 +1804,14 @@ module Google
|
|
1810
1804
|
# # Call the create_migrating_vm method.
|
1811
1805
|
# result = client.create_migrating_vm request
|
1812
1806
|
#
|
1813
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1814
|
-
# #
|
1815
|
-
# #
|
1807
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1808
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1809
|
+
# # Here is how to wait for a response.
|
1816
1810
|
# result.wait_until_done! timeout: 60
|
1817
1811
|
# if result.response?
|
1818
1812
|
# p result.response
|
1819
1813
|
# else
|
1820
|
-
# puts "
|
1814
|
+
# puts "No response received."
|
1821
1815
|
# end
|
1822
1816
|
#
|
1823
1817
|
def create_migrating_vm request, options = nil
|
@@ -1920,13 +1914,11 @@ module Google
|
|
1920
1914
|
# # Call the list_migrating_vms method.
|
1921
1915
|
# result = client.list_migrating_vms request
|
1922
1916
|
#
|
1923
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1924
|
-
# #
|
1925
|
-
#
|
1926
|
-
# # methods are also available for managing paging directly.
|
1927
|
-
# result.each do |response|
|
1917
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1918
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1919
|
+
# result.each do |item|
|
1928
1920
|
# # Each element is of type ::Google::Cloud::VMMigration::V1::MigratingVm.
|
1929
|
-
# p
|
1921
|
+
# p item
|
1930
1922
|
# end
|
1931
1923
|
#
|
1932
1924
|
def list_migrating_vms request, options = nil
|
@@ -2119,14 +2111,14 @@ module Google
|
|
2119
2111
|
# # Call the update_migrating_vm method.
|
2120
2112
|
# result = client.update_migrating_vm request
|
2121
2113
|
#
|
2122
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2123
|
-
# #
|
2124
|
-
# #
|
2114
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2115
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2116
|
+
# # Here is how to wait for a response.
|
2125
2117
|
# result.wait_until_done! timeout: 60
|
2126
2118
|
# if result.response?
|
2127
2119
|
# p result.response
|
2128
2120
|
# else
|
2129
|
-
# puts "
|
2121
|
+
# puts "No response received."
|
2130
2122
|
# end
|
2131
2123
|
#
|
2132
2124
|
def update_migrating_vm request, options = nil
|
@@ -2212,14 +2204,14 @@ module Google
|
|
2212
2204
|
# # Call the delete_migrating_vm method.
|
2213
2205
|
# result = client.delete_migrating_vm request
|
2214
2206
|
#
|
2215
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2216
|
-
# #
|
2217
|
-
# #
|
2207
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2208
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2209
|
+
# # Here is how to wait for a response.
|
2218
2210
|
# result.wait_until_done! timeout: 60
|
2219
2211
|
# if result.response?
|
2220
2212
|
# p result.response
|
2221
2213
|
# else
|
2222
|
-
# puts "
|
2214
|
+
# puts "No response received."
|
2223
2215
|
# end
|
2224
2216
|
#
|
2225
2217
|
def delete_migrating_vm request, options = nil
|
@@ -2306,14 +2298,14 @@ module Google
|
|
2306
2298
|
# # Call the start_migration method.
|
2307
2299
|
# result = client.start_migration request
|
2308
2300
|
#
|
2309
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2310
|
-
# #
|
2311
|
-
# #
|
2301
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2302
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2303
|
+
# # Here is how to wait for a response.
|
2312
2304
|
# result.wait_until_done! timeout: 60
|
2313
2305
|
# if result.response?
|
2314
2306
|
# p result.response
|
2315
2307
|
# else
|
2316
|
-
# puts "
|
2308
|
+
# puts "No response received."
|
2317
2309
|
# end
|
2318
2310
|
#
|
2319
2311
|
def start_migration request, options = nil
|
@@ -2402,14 +2394,14 @@ module Google
|
|
2402
2394
|
# # Call the resume_migration method.
|
2403
2395
|
# result = client.resume_migration request
|
2404
2396
|
#
|
2405
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2406
|
-
# #
|
2407
|
-
# #
|
2397
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2398
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2399
|
+
# # Here is how to wait for a response.
|
2408
2400
|
# result.wait_until_done! timeout: 60
|
2409
2401
|
# if result.response?
|
2410
2402
|
# p result.response
|
2411
2403
|
# else
|
2412
|
-
# puts "
|
2404
|
+
# puts "No response received."
|
2413
2405
|
# end
|
2414
2406
|
#
|
2415
2407
|
def resume_migration request, options = nil
|
@@ -2497,14 +2489,14 @@ module Google
|
|
2497
2489
|
# # Call the pause_migration method.
|
2498
2490
|
# result = client.pause_migration request
|
2499
2491
|
#
|
2500
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2501
|
-
# #
|
2502
|
-
# #
|
2492
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2493
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2494
|
+
# # Here is how to wait for a response.
|
2503
2495
|
# result.wait_until_done! timeout: 60
|
2504
2496
|
# if result.response?
|
2505
2497
|
# p result.response
|
2506
2498
|
# else
|
2507
|
-
# puts "
|
2499
|
+
# puts "No response received."
|
2508
2500
|
# end
|
2509
2501
|
#
|
2510
2502
|
def pause_migration request, options = nil
|
@@ -2591,14 +2583,14 @@ module Google
|
|
2591
2583
|
# # Call the finalize_migration method.
|
2592
2584
|
# result = client.finalize_migration request
|
2593
2585
|
#
|
2594
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2595
|
-
# #
|
2596
|
-
# #
|
2586
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2587
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2588
|
+
# # Here is how to wait for a response.
|
2597
2589
|
# result.wait_until_done! timeout: 60
|
2598
2590
|
# if result.response?
|
2599
2591
|
# p result.response
|
2600
2592
|
# else
|
2601
|
-
# puts "
|
2593
|
+
# puts "No response received."
|
2602
2594
|
# end
|
2603
2595
|
#
|
2604
2596
|
def finalize_migration request, options = nil
|
@@ -2702,14 +2694,14 @@ module Google
|
|
2702
2694
|
# # Call the create_clone_job method.
|
2703
2695
|
# result = client.create_clone_job request
|
2704
2696
|
#
|
2705
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2706
|
-
# #
|
2707
|
-
# #
|
2697
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2698
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2699
|
+
# # Here is how to wait for a response.
|
2708
2700
|
# result.wait_until_done! timeout: 60
|
2709
2701
|
# if result.response?
|
2710
2702
|
# p result.response
|
2711
2703
|
# else
|
2712
|
-
# puts "
|
2704
|
+
# puts "No response received."
|
2713
2705
|
# end
|
2714
2706
|
#
|
2715
2707
|
def create_clone_job request, options = nil
|
@@ -2795,14 +2787,14 @@ module Google
|
|
2795
2787
|
# # Call the cancel_clone_job method.
|
2796
2788
|
# result = client.cancel_clone_job request
|
2797
2789
|
#
|
2798
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2799
|
-
# #
|
2800
|
-
# #
|
2790
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2791
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2792
|
+
# # Here is how to wait for a response.
|
2801
2793
|
# result.wait_until_done! timeout: 60
|
2802
2794
|
# if result.response?
|
2803
2795
|
# p result.response
|
2804
2796
|
# else
|
2805
|
-
# puts "
|
2797
|
+
# puts "No response received."
|
2806
2798
|
# end
|
2807
2799
|
#
|
2808
2800
|
def cancel_clone_job request, options = nil
|
@@ -2903,13 +2895,11 @@ module Google
|
|
2903
2895
|
# # Call the list_clone_jobs method.
|
2904
2896
|
# result = client.list_clone_jobs request
|
2905
2897
|
#
|
2906
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2907
|
-
# #
|
2908
|
-
#
|
2909
|
-
# # methods are also available for managing paging directly.
|
2910
|
-
# result.each do |response|
|
2898
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2899
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2900
|
+
# result.each do |item|
|
2911
2901
|
# # Each element is of type ::Google::Cloud::VMMigration::V1::CloneJob.
|
2912
|
-
# p
|
2902
|
+
# p item
|
2913
2903
|
# end
|
2914
2904
|
#
|
2915
2905
|
def list_clone_jobs request, options = nil
|
@@ -3100,14 +3090,14 @@ module Google
|
|
3100
3090
|
# # Call the create_cutover_job method.
|
3101
3091
|
# result = client.create_cutover_job request
|
3102
3092
|
#
|
3103
|
-
# # The returned object is of type Gapic::Operation. You can use
|
3104
|
-
# #
|
3105
|
-
# #
|
3093
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3094
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3095
|
+
# # Here is how to wait for a response.
|
3106
3096
|
# result.wait_until_done! timeout: 60
|
3107
3097
|
# if result.response?
|
3108
3098
|
# p result.response
|
3109
3099
|
# else
|
3110
|
-
# puts "
|
3100
|
+
# puts "No response received."
|
3111
3101
|
# end
|
3112
3102
|
#
|
3113
3103
|
def create_cutover_job request, options = nil
|
@@ -3193,14 +3183,14 @@ module Google
|
|
3193
3183
|
# # Call the cancel_cutover_job method.
|
3194
3184
|
# result = client.cancel_cutover_job request
|
3195
3185
|
#
|
3196
|
-
# # The returned object is of type Gapic::Operation. You can use
|
3197
|
-
# #
|
3198
|
-
# #
|
3186
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3187
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3188
|
+
# # Here is how to wait for a response.
|
3199
3189
|
# result.wait_until_done! timeout: 60
|
3200
3190
|
# if result.response?
|
3201
3191
|
# p result.response
|
3202
3192
|
# else
|
3203
|
-
# puts "
|
3193
|
+
# puts "No response received."
|
3204
3194
|
# end
|
3205
3195
|
#
|
3206
3196
|
def cancel_cutover_job request, options = nil
|
@@ -3301,13 +3291,11 @@ module Google
|
|
3301
3291
|
# # Call the list_cutover_jobs method.
|
3302
3292
|
# result = client.list_cutover_jobs request
|
3303
3293
|
#
|
3304
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
3305
|
-
# #
|
3306
|
-
#
|
3307
|
-
# # methods are also available for managing paging directly.
|
3308
|
-
# result.each do |response|
|
3294
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
3295
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
3296
|
+
# result.each do |item|
|
3309
3297
|
# # Each element is of type ::Google::Cloud::VMMigration::V1::CutoverJob.
|
3310
|
-
# p
|
3298
|
+
# p item
|
3311
3299
|
# end
|
3312
3300
|
#
|
3313
3301
|
def list_cutover_jobs request, options = nil
|
@@ -3493,13 +3481,11 @@ module Google
|
|
3493
3481
|
# # Call the list_groups method.
|
3494
3482
|
# result = client.list_groups request
|
3495
3483
|
#
|
3496
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
3497
|
-
# #
|
3498
|
-
#
|
3499
|
-
# # methods are also available for managing paging directly.
|
3500
|
-
# result.each do |response|
|
3484
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
3485
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
3486
|
+
# result.each do |item|
|
3501
3487
|
# # Each element is of type ::Google::Cloud::VMMigration::V1::Group.
|
3502
|
-
# p
|
3488
|
+
# p item
|
3503
3489
|
# end
|
3504
3490
|
#
|
3505
3491
|
def list_groups request, options = nil
|
@@ -3688,14 +3674,14 @@ module Google
|
|
3688
3674
|
# # Call the create_group method.
|
3689
3675
|
# result = client.create_group request
|
3690
3676
|
#
|
3691
|
-
# # The returned object is of type Gapic::Operation. You can use
|
3692
|
-
# #
|
3693
|
-
# #
|
3677
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3678
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3679
|
+
# # Here is how to wait for a response.
|
3694
3680
|
# result.wait_until_done! timeout: 60
|
3695
3681
|
# if result.response?
|
3696
3682
|
# p result.response
|
3697
3683
|
# else
|
3698
|
-
# puts "
|
3684
|
+
# puts "No response received."
|
3699
3685
|
# end
|
3700
3686
|
#
|
3701
3687
|
def create_group request, options = nil
|
@@ -3801,14 +3787,14 @@ module Google
|
|
3801
3787
|
# # Call the update_group method.
|
3802
3788
|
# result = client.update_group request
|
3803
3789
|
#
|
3804
|
-
# # The returned object is of type Gapic::Operation. You can use
|
3805
|
-
# #
|
3806
|
-
# #
|
3790
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3791
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3792
|
+
# # Here is how to wait for a response.
|
3807
3793
|
# result.wait_until_done! timeout: 60
|
3808
3794
|
# if result.response?
|
3809
3795
|
# p result.response
|
3810
3796
|
# else
|
3811
|
-
# puts "
|
3797
|
+
# puts "No response received."
|
3812
3798
|
# end
|
3813
3799
|
#
|
3814
3800
|
def update_group request, options = nil
|
@@ -3908,14 +3894,14 @@ module Google
|
|
3908
3894
|
# # Call the delete_group method.
|
3909
3895
|
# result = client.delete_group request
|
3910
3896
|
#
|
3911
|
-
# # The returned object is of type Gapic::Operation. You can use
|
3912
|
-
# #
|
3913
|
-
# #
|
3897
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3898
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3899
|
+
# # Here is how to wait for a response.
|
3914
3900
|
# result.wait_until_done! timeout: 60
|
3915
3901
|
# if result.response?
|
3916
3902
|
# p result.response
|
3917
3903
|
# else
|
3918
|
-
# puts "
|
3904
|
+
# puts "No response received."
|
3919
3905
|
# end
|
3920
3906
|
#
|
3921
3907
|
def delete_group request, options = nil
|
@@ -4003,14 +3989,14 @@ module Google
|
|
4003
3989
|
# # Call the add_group_migration method.
|
4004
3990
|
# result = client.add_group_migration request
|
4005
3991
|
#
|
4006
|
-
# # The returned object is of type Gapic::Operation. You can use
|
4007
|
-
# #
|
4008
|
-
# #
|
3992
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3993
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3994
|
+
# # Here is how to wait for a response.
|
4009
3995
|
# result.wait_until_done! timeout: 60
|
4010
3996
|
# if result.response?
|
4011
3997
|
# p result.response
|
4012
3998
|
# else
|
4013
|
-
# puts "
|
3999
|
+
# puts "No response received."
|
4014
4000
|
# end
|
4015
4001
|
#
|
4016
4002
|
def add_group_migration request, options = nil
|
@@ -4098,14 +4084,14 @@ module Google
|
|
4098
4084
|
# # Call the remove_group_migration method.
|
4099
4085
|
# result = client.remove_group_migration request
|
4100
4086
|
#
|
4101
|
-
# # The returned object is of type Gapic::Operation. You can use
|
4102
|
-
# #
|
4103
|
-
# #
|
4087
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
4088
|
+
# # check the status of an operation, cancel it, or wait for results.
|
4089
|
+
# # Here is how to wait for a response.
|
4104
4090
|
# result.wait_until_done! timeout: 60
|
4105
4091
|
# if result.response?
|
4106
4092
|
# p result.response
|
4107
4093
|
# else
|
4108
|
-
# puts "
|
4094
|
+
# puts "No response received."
|
4109
4095
|
# end
|
4110
4096
|
#
|
4111
4097
|
def remove_group_migration request, options = nil
|
@@ -4209,13 +4195,11 @@ module Google
|
|
4209
4195
|
# # Call the list_target_projects method.
|
4210
4196
|
# result = client.list_target_projects request
|
4211
4197
|
#
|
4212
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
4213
|
-
# #
|
4214
|
-
#
|
4215
|
-
# # methods are also available for managing paging directly.
|
4216
|
-
# result.each do |response|
|
4198
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
4199
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
4200
|
+
# result.each do |item|
|
4217
4201
|
# # Each element is of type ::Google::Cloud::VMMigration::V1::TargetProject.
|
4218
|
-
# p
|
4202
|
+
# p item
|
4219
4203
|
# end
|
4220
4204
|
#
|
4221
4205
|
def list_target_projects request, options = nil
|
@@ -4410,14 +4394,14 @@ module Google
|
|
4410
4394
|
# # Call the create_target_project method.
|
4411
4395
|
# result = client.create_target_project request
|
4412
4396
|
#
|
4413
|
-
# # The returned object is of type Gapic::Operation. You can use
|
4414
|
-
# #
|
4415
|
-
# #
|
4397
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
4398
|
+
# # check the status of an operation, cancel it, or wait for results.
|
4399
|
+
# # Here is how to wait for a response.
|
4416
4400
|
# result.wait_until_done! timeout: 60
|
4417
4401
|
# if result.response?
|
4418
4402
|
# p result.response
|
4419
4403
|
# else
|
4420
|
-
# puts "
|
4404
|
+
# puts "No response received."
|
4421
4405
|
# end
|
4422
4406
|
#
|
4423
4407
|
def create_target_project request, options = nil
|
@@ -4526,14 +4510,14 @@ module Google
|
|
4526
4510
|
# # Call the update_target_project method.
|
4527
4511
|
# result = client.update_target_project request
|
4528
4512
|
#
|
4529
|
-
# # The returned object is of type Gapic::Operation. You can use
|
4530
|
-
# #
|
4531
|
-
# #
|
4513
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
4514
|
+
# # check the status of an operation, cancel it, or wait for results.
|
4515
|
+
# # Here is how to wait for a response.
|
4532
4516
|
# result.wait_until_done! timeout: 60
|
4533
4517
|
# if result.response?
|
4534
4518
|
# p result.response
|
4535
4519
|
# else
|
4536
|
-
# puts "
|
4520
|
+
# puts "No response received."
|
4537
4521
|
# end
|
4538
4522
|
#
|
4539
4523
|
def update_target_project request, options = nil
|
@@ -4636,14 +4620,14 @@ module Google
|
|
4636
4620
|
# # Call the delete_target_project method.
|
4637
4621
|
# result = client.delete_target_project request
|
4638
4622
|
#
|
4639
|
-
# # The returned object is of type Gapic::Operation. You can use
|
4640
|
-
# #
|
4641
|
-
# #
|
4623
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
4624
|
+
# # check the status of an operation, cancel it, or wait for results.
|
4625
|
+
# # Here is how to wait for a response.
|
4642
4626
|
# result.wait_until_done! timeout: 60
|
4643
4627
|
# if result.response?
|
4644
4628
|
# p result.response
|
4645
4629
|
# else
|
4646
|
-
# puts "
|
4630
|
+
# puts "No response received."
|
4647
4631
|
# end
|
4648
4632
|
#
|
4649
4633
|
def delete_target_project request, options = nil
|
@@ -4744,13 +4728,11 @@ module Google
|
|
4744
4728
|
# # Call the list_replication_cycles method.
|
4745
4729
|
# result = client.list_replication_cycles request
|
4746
4730
|
#
|
4747
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
4748
|
-
# #
|
4749
|
-
#
|
4750
|
-
# # methods are also available for managing paging directly.
|
4751
|
-
# result.each do |response|
|
4731
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
4732
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
4733
|
+
# result.each do |item|
|
4752
4734
|
# # Each element is of type ::Google::Cloud::VMMigration::V1::ReplicationCycle.
|
4753
|
-
# p
|
4735
|
+
# p item
|
4754
4736
|
# end
|
4755
4737
|
#
|
4756
4738
|
def list_replication_cycles request, options = nil
|
@@ -4918,9 +4900,9 @@ module Google
|
|
4918
4900
|
# * (`String`) The path to a service account key file in JSON format
|
4919
4901
|
# * (`Hash`) A service account key as a Hash
|
4920
4902
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
4921
|
-
# (see the [googleauth docs](https://
|
4903
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
4922
4904
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
4923
|
-
# (see the [signet docs](https://
|
4905
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
4924
4906
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
4925
4907
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
4926
4908
|
# * (`nil`) indicating no credentials
|