google-cloud-vm_migration-v1 0.6.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -227,6 +227,26 @@ module Google
227
227
  # @return [::Google::Cloud::VMMigration::V1::ListSourcesResponse]
228
228
  #
229
229
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
230
+ #
231
+ # @example Basic example
232
+ # require "google/cloud/vm_migration/v1"
233
+ #
234
+ # # Create a client object. The client can be reused for multiple calls.
235
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
236
+ #
237
+ # # Create a request. To set request fields, pass in keyword arguments.
238
+ # request = Google::Cloud::VMMigration::V1::ListSourcesRequest.new
239
+ #
240
+ # # Call the list_sources method.
241
+ # result = client.list_sources request
242
+ #
243
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
244
+ # # over elements, and API calls will be issued to fetch pages as needed.
245
+ # result.each do |item|
246
+ # # Each element is of type ::Google::Cloud::VMMigration::V1::Source.
247
+ # p item
248
+ # end
249
+ #
230
250
  def list_sources request, options = nil
231
251
  raise ::ArgumentError, "request must be provided" if request.nil?
232
252
 
@@ -289,6 +309,22 @@ module Google
289
309
  # @return [::Google::Cloud::VMMigration::V1::Source]
290
310
  #
291
311
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
312
+ #
313
+ # @example Basic example
314
+ # require "google/cloud/vm_migration/v1"
315
+ #
316
+ # # Create a client object. The client can be reused for multiple calls.
317
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
318
+ #
319
+ # # Create a request. To set request fields, pass in keyword arguments.
320
+ # request = Google::Cloud::VMMigration::V1::GetSourceRequest.new
321
+ #
322
+ # # Call the get_source method.
323
+ # result = client.get_source request
324
+ #
325
+ # # The returned object is of type Google::Cloud::VMMigration::V1::Source.
326
+ # p result
327
+ #
292
328
  def get_source request, options = nil
293
329
  raise ::ArgumentError, "request must be provided" if request.nil?
294
330
 
@@ -369,6 +405,29 @@ module Google
369
405
  # @return [::Gapic::Operation]
370
406
  #
371
407
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
408
+ #
409
+ # @example Basic example
410
+ # require "google/cloud/vm_migration/v1"
411
+ #
412
+ # # Create a client object. The client can be reused for multiple calls.
413
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
414
+ #
415
+ # # Create a request. To set request fields, pass in keyword arguments.
416
+ # request = Google::Cloud::VMMigration::V1::CreateSourceRequest.new
417
+ #
418
+ # # Call the create_source method.
419
+ # result = client.create_source request
420
+ #
421
+ # # The returned object is of type Gapic::Operation. You can use it to
422
+ # # check the status of an operation, cancel it, or wait for results.
423
+ # # Here is how to wait for a response.
424
+ # result.wait_until_done! timeout: 60
425
+ # if result.response?
426
+ # p result.response
427
+ # else
428
+ # puts "No response received."
429
+ # end
430
+ #
372
431
  def create_source request, options = nil
373
432
  raise ::ArgumentError, "request must be provided" if request.nil?
374
433
 
@@ -452,6 +511,29 @@ module Google
452
511
  # @return [::Gapic::Operation]
453
512
  #
454
513
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
514
+ #
515
+ # @example Basic example
516
+ # require "google/cloud/vm_migration/v1"
517
+ #
518
+ # # Create a client object. The client can be reused for multiple calls.
519
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
520
+ #
521
+ # # Create a request. To set request fields, pass in keyword arguments.
522
+ # request = Google::Cloud::VMMigration::V1::UpdateSourceRequest.new
523
+ #
524
+ # # Call the update_source method.
525
+ # result = client.update_source request
526
+ #
527
+ # # The returned object is of type Gapic::Operation. You can use it to
528
+ # # check the status of an operation, cancel it, or wait for results.
529
+ # # Here is how to wait for a response.
530
+ # result.wait_until_done! timeout: 60
531
+ # if result.response?
532
+ # p result.response
533
+ # else
534
+ # puts "No response received."
535
+ # end
536
+ #
455
537
  def update_source request, options = nil
456
538
  raise ::ArgumentError, "request must be provided" if request.nil?
457
539
 
@@ -529,6 +611,29 @@ module Google
529
611
  # @return [::Gapic::Operation]
530
612
  #
531
613
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
614
+ #
615
+ # @example Basic example
616
+ # require "google/cloud/vm_migration/v1"
617
+ #
618
+ # # Create a client object. The client can be reused for multiple calls.
619
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
620
+ #
621
+ # # Create a request. To set request fields, pass in keyword arguments.
622
+ # request = Google::Cloud::VMMigration::V1::DeleteSourceRequest.new
623
+ #
624
+ # # Call the delete_source method.
625
+ # result = client.delete_source request
626
+ #
627
+ # # The returned object is of type Gapic::Operation. You can use it to
628
+ # # check the status of an operation, cancel it, or wait for results.
629
+ # # Here is how to wait for a response.
630
+ # result.wait_until_done! timeout: 60
631
+ # if result.response?
632
+ # p result.response
633
+ # else
634
+ # puts "No response received."
635
+ # end
636
+ #
532
637
  def delete_source request, options = nil
533
638
  raise ::ArgumentError, "request must be provided" if request.nil?
534
639
 
@@ -599,6 +704,22 @@ module Google
599
704
  # @return [::Google::Cloud::VMMigration::V1::FetchInventoryResponse]
600
705
  #
601
706
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
707
+ #
708
+ # @example Basic example
709
+ # require "google/cloud/vm_migration/v1"
710
+ #
711
+ # # Create a client object. The client can be reused for multiple calls.
712
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
713
+ #
714
+ # # Create a request. To set request fields, pass in keyword arguments.
715
+ # request = Google::Cloud::VMMigration::V1::FetchInventoryRequest.new
716
+ #
717
+ # # Call the fetch_inventory method.
718
+ # result = client.fetch_inventory request
719
+ #
720
+ # # The returned object is of type Google::Cloud::VMMigration::V1::FetchInventoryResponse.
721
+ # p result
722
+ #
602
723
  def fetch_inventory request, options = nil
603
724
  raise ::ArgumentError, "request must be provided" if request.nil?
604
725
 
@@ -679,6 +800,26 @@ module Google
679
800
  # @return [::Google::Cloud::VMMigration::V1::ListUtilizationReportsResponse]
680
801
  #
681
802
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
803
+ #
804
+ # @example Basic example
805
+ # require "google/cloud/vm_migration/v1"
806
+ #
807
+ # # Create a client object. The client can be reused for multiple calls.
808
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
809
+ #
810
+ # # Create a request. To set request fields, pass in keyword arguments.
811
+ # request = Google::Cloud::VMMigration::V1::ListUtilizationReportsRequest.new
812
+ #
813
+ # # Call the list_utilization_reports method.
814
+ # result = client.list_utilization_reports request
815
+ #
816
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
817
+ # # over elements, and API calls will be issued to fetch pages as needed.
818
+ # result.each do |item|
819
+ # # Each element is of type ::Google::Cloud::VMMigration::V1::UtilizationReport.
820
+ # p item
821
+ # end
822
+ #
682
823
  def list_utilization_reports request, options = nil
683
824
  raise ::ArgumentError, "request must be provided" if request.nil?
684
825
 
@@ -744,6 +885,22 @@ module Google
744
885
  # @return [::Google::Cloud::VMMigration::V1::UtilizationReport]
745
886
  #
746
887
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
888
+ #
889
+ # @example Basic example
890
+ # require "google/cloud/vm_migration/v1"
891
+ #
892
+ # # Create a client object. The client can be reused for multiple calls.
893
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
894
+ #
895
+ # # Create a request. To set request fields, pass in keyword arguments.
896
+ # request = Google::Cloud::VMMigration::V1::GetUtilizationReportRequest.new
897
+ #
898
+ # # Call the get_utilization_report method.
899
+ # result = client.get_utilization_report request
900
+ #
901
+ # # The returned object is of type Google::Cloud::VMMigration::V1::UtilizationReport.
902
+ # p result
903
+ #
747
904
  def get_utilization_report request, options = nil
748
905
  raise ::ArgumentError, "request must be provided" if request.nil?
749
906
 
@@ -829,6 +986,29 @@ module Google
829
986
  # @return [::Gapic::Operation]
830
987
  #
831
988
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
989
+ #
990
+ # @example Basic example
991
+ # require "google/cloud/vm_migration/v1"
992
+ #
993
+ # # Create a client object. The client can be reused for multiple calls.
994
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
995
+ #
996
+ # # Create a request. To set request fields, pass in keyword arguments.
997
+ # request = Google::Cloud::VMMigration::V1::CreateUtilizationReportRequest.new
998
+ #
999
+ # # Call the create_utilization_report method.
1000
+ # result = client.create_utilization_report request
1001
+ #
1002
+ # # The returned object is of type Gapic::Operation. You can use it to
1003
+ # # check the status of an operation, cancel it, or wait for results.
1004
+ # # Here is how to wait for a response.
1005
+ # result.wait_until_done! timeout: 60
1006
+ # if result.response?
1007
+ # p result.response
1008
+ # else
1009
+ # puts "No response received."
1010
+ # end
1011
+ #
832
1012
  def create_utilization_report request, options = nil
833
1013
  raise ::ArgumentError, "request must be provided" if request.nil?
834
1014
 
@@ -906,6 +1086,29 @@ module Google
906
1086
  # @return [::Gapic::Operation]
907
1087
  #
908
1088
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1089
+ #
1090
+ # @example Basic example
1091
+ # require "google/cloud/vm_migration/v1"
1092
+ #
1093
+ # # Create a client object. The client can be reused for multiple calls.
1094
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
1095
+ #
1096
+ # # Create a request. To set request fields, pass in keyword arguments.
1097
+ # request = Google::Cloud::VMMigration::V1::DeleteUtilizationReportRequest.new
1098
+ #
1099
+ # # Call the delete_utilization_report method.
1100
+ # result = client.delete_utilization_report request
1101
+ #
1102
+ # # The returned object is of type Gapic::Operation. You can use it to
1103
+ # # check the status of an operation, cancel it, or wait for results.
1104
+ # # Here is how to wait for a response.
1105
+ # result.wait_until_done! timeout: 60
1106
+ # if result.response?
1107
+ # p result.response
1108
+ # else
1109
+ # puts "No response received."
1110
+ # end
1111
+ #
909
1112
  def delete_utilization_report request, options = nil
910
1113
  raise ::ArgumentError, "request must be provided" if request.nil?
911
1114
 
@@ -985,6 +1188,26 @@ module Google
985
1188
  # @return [::Google::Cloud::VMMigration::V1::ListDatacenterConnectorsResponse]
986
1189
  #
987
1190
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1191
+ #
1192
+ # @example Basic example
1193
+ # require "google/cloud/vm_migration/v1"
1194
+ #
1195
+ # # Create a client object. The client can be reused for multiple calls.
1196
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
1197
+ #
1198
+ # # Create a request. To set request fields, pass in keyword arguments.
1199
+ # request = Google::Cloud::VMMigration::V1::ListDatacenterConnectorsRequest.new
1200
+ #
1201
+ # # Call the list_datacenter_connectors method.
1202
+ # result = client.list_datacenter_connectors request
1203
+ #
1204
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1205
+ # # over elements, and API calls will be issued to fetch pages as needed.
1206
+ # result.each do |item|
1207
+ # # Each element is of type ::Google::Cloud::VMMigration::V1::DatacenterConnector.
1208
+ # p item
1209
+ # end
1210
+ #
988
1211
  def list_datacenter_connectors request, options = nil
989
1212
  raise ::ArgumentError, "request must be provided" if request.nil?
990
1213
 
@@ -1047,6 +1270,22 @@ module Google
1047
1270
  # @return [::Google::Cloud::VMMigration::V1::DatacenterConnector]
1048
1271
  #
1049
1272
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1273
+ #
1274
+ # @example Basic example
1275
+ # require "google/cloud/vm_migration/v1"
1276
+ #
1277
+ # # Create a client object. The client can be reused for multiple calls.
1278
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
1279
+ #
1280
+ # # Create a request. To set request fields, pass in keyword arguments.
1281
+ # request = Google::Cloud::VMMigration::V1::GetDatacenterConnectorRequest.new
1282
+ #
1283
+ # # Call the get_datacenter_connector method.
1284
+ # result = client.get_datacenter_connector request
1285
+ #
1286
+ # # The returned object is of type Google::Cloud::VMMigration::V1::DatacenterConnector.
1287
+ # p result
1288
+ #
1050
1289
  def get_datacenter_connector request, options = nil
1051
1290
  raise ::ArgumentError, "request must be provided" if request.nil?
1052
1291
 
@@ -1130,6 +1369,29 @@ module Google
1130
1369
  # @return [::Gapic::Operation]
1131
1370
  #
1132
1371
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1372
+ #
1373
+ # @example Basic example
1374
+ # require "google/cloud/vm_migration/v1"
1375
+ #
1376
+ # # Create a client object. The client can be reused for multiple calls.
1377
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
1378
+ #
1379
+ # # Create a request. To set request fields, pass in keyword arguments.
1380
+ # request = Google::Cloud::VMMigration::V1::CreateDatacenterConnectorRequest.new
1381
+ #
1382
+ # # Call the create_datacenter_connector method.
1383
+ # result = client.create_datacenter_connector request
1384
+ #
1385
+ # # The returned object is of type Gapic::Operation. You can use it to
1386
+ # # check the status of an operation, cancel it, or wait for results.
1387
+ # # Here is how to wait for a response.
1388
+ # result.wait_until_done! timeout: 60
1389
+ # if result.response?
1390
+ # p result.response
1391
+ # else
1392
+ # puts "No response received."
1393
+ # end
1394
+ #
1133
1395
  def create_datacenter_connector request, options = nil
1134
1396
  raise ::ArgumentError, "request must be provided" if request.nil?
1135
1397
 
@@ -1207,6 +1469,29 @@ module Google
1207
1469
  # @return [::Gapic::Operation]
1208
1470
  #
1209
1471
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1472
+ #
1473
+ # @example Basic example
1474
+ # require "google/cloud/vm_migration/v1"
1475
+ #
1476
+ # # Create a client object. The client can be reused for multiple calls.
1477
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
1478
+ #
1479
+ # # Create a request. To set request fields, pass in keyword arguments.
1480
+ # request = Google::Cloud::VMMigration::V1::DeleteDatacenterConnectorRequest.new
1481
+ #
1482
+ # # Call the delete_datacenter_connector method.
1483
+ # result = client.delete_datacenter_connector request
1484
+ #
1485
+ # # The returned object is of type Gapic::Operation. You can use it to
1486
+ # # check the status of an operation, cancel it, or wait for results.
1487
+ # # Here is how to wait for a response.
1488
+ # result.wait_until_done! timeout: 60
1489
+ # if result.response?
1490
+ # p result.response
1491
+ # else
1492
+ # puts "No response received."
1493
+ # end
1494
+ #
1210
1495
  def delete_datacenter_connector request, options = nil
1211
1496
  raise ::ArgumentError, "request must be provided" if request.nil?
1212
1497
 
@@ -1285,6 +1570,29 @@ module Google
1285
1570
  # @return [::Gapic::Operation]
1286
1571
  #
1287
1572
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1573
+ #
1574
+ # @example Basic example
1575
+ # require "google/cloud/vm_migration/v1"
1576
+ #
1577
+ # # Create a client object. The client can be reused for multiple calls.
1578
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
1579
+ #
1580
+ # # Create a request. To set request fields, pass in keyword arguments.
1581
+ # request = Google::Cloud::VMMigration::V1::UpgradeApplianceRequest.new
1582
+ #
1583
+ # # Call the upgrade_appliance method.
1584
+ # result = client.upgrade_appliance request
1585
+ #
1586
+ # # The returned object is of type Gapic::Operation. You can use it to
1587
+ # # check the status of an operation, cancel it, or wait for results.
1588
+ # # Here is how to wait for a response.
1589
+ # result.wait_until_done! timeout: 60
1590
+ # if result.response?
1591
+ # p result.response
1592
+ # else
1593
+ # puts "No response received."
1594
+ # end
1595
+ #
1288
1596
  def upgrade_appliance request, options = nil
1289
1597
  raise ::ArgumentError, "request must be provided" if request.nil?
1290
1598
 
@@ -1366,6 +1674,29 @@ module Google
1366
1674
  # @return [::Gapic::Operation]
1367
1675
  #
1368
1676
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1677
+ #
1678
+ # @example Basic example
1679
+ # require "google/cloud/vm_migration/v1"
1680
+ #
1681
+ # # Create a client object. The client can be reused for multiple calls.
1682
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
1683
+ #
1684
+ # # Create a request. To set request fields, pass in keyword arguments.
1685
+ # request = Google::Cloud::VMMigration::V1::CreateMigratingVmRequest.new
1686
+ #
1687
+ # # Call the create_migrating_vm method.
1688
+ # result = client.create_migrating_vm request
1689
+ #
1690
+ # # The returned object is of type Gapic::Operation. You can use it to
1691
+ # # check the status of an operation, cancel it, or wait for results.
1692
+ # # Here is how to wait for a response.
1693
+ # result.wait_until_done! timeout: 60
1694
+ # if result.response?
1695
+ # p result.response
1696
+ # else
1697
+ # puts "No response received."
1698
+ # end
1699
+ #
1369
1700
  def create_migrating_vm request, options = nil
1370
1701
  raise ::ArgumentError, "request must be provided" if request.nil?
1371
1702
 
@@ -1446,6 +1777,26 @@ module Google
1446
1777
  # @return [::Google::Cloud::VMMigration::V1::ListMigratingVmsResponse]
1447
1778
  #
1448
1779
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1780
+ #
1781
+ # @example Basic example
1782
+ # require "google/cloud/vm_migration/v1"
1783
+ #
1784
+ # # Create a client object. The client can be reused for multiple calls.
1785
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
1786
+ #
1787
+ # # Create a request. To set request fields, pass in keyword arguments.
1788
+ # request = Google::Cloud::VMMigration::V1::ListMigratingVmsRequest.new
1789
+ #
1790
+ # # Call the list_migrating_vms method.
1791
+ # result = client.list_migrating_vms request
1792
+ #
1793
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1794
+ # # over elements, and API calls will be issued to fetch pages as needed.
1795
+ # result.each do |item|
1796
+ # # Each element is of type ::Google::Cloud::VMMigration::V1::MigratingVm.
1797
+ # p item
1798
+ # end
1799
+ #
1449
1800
  def list_migrating_vms request, options = nil
1450
1801
  raise ::ArgumentError, "request must be provided" if request.nil?
1451
1802
 
@@ -1510,6 +1861,22 @@ module Google
1510
1861
  # @return [::Google::Cloud::VMMigration::V1::MigratingVm]
1511
1862
  #
1512
1863
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1864
+ #
1865
+ # @example Basic example
1866
+ # require "google/cloud/vm_migration/v1"
1867
+ #
1868
+ # # Create a client object. The client can be reused for multiple calls.
1869
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
1870
+ #
1871
+ # # Create a request. To set request fields, pass in keyword arguments.
1872
+ # request = Google::Cloud::VMMigration::V1::GetMigratingVmRequest.new
1873
+ #
1874
+ # # Call the get_migrating_vm method.
1875
+ # result = client.get_migrating_vm request
1876
+ #
1877
+ # # The returned object is of type Google::Cloud::VMMigration::V1::MigratingVm.
1878
+ # p result
1879
+ #
1513
1880
  def get_migrating_vm request, options = nil
1514
1881
  raise ::ArgumentError, "request must be provided" if request.nil?
1515
1882
 
@@ -1592,6 +1959,29 @@ module Google
1592
1959
  # @return [::Gapic::Operation]
1593
1960
  #
1594
1961
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1962
+ #
1963
+ # @example Basic example
1964
+ # require "google/cloud/vm_migration/v1"
1965
+ #
1966
+ # # Create a client object. The client can be reused for multiple calls.
1967
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
1968
+ #
1969
+ # # Create a request. To set request fields, pass in keyword arguments.
1970
+ # request = Google::Cloud::VMMigration::V1::UpdateMigratingVmRequest.new
1971
+ #
1972
+ # # Call the update_migrating_vm method.
1973
+ # result = client.update_migrating_vm request
1974
+ #
1975
+ # # The returned object is of type Gapic::Operation. You can use it to
1976
+ # # check the status of an operation, cancel it, or wait for results.
1977
+ # # Here is how to wait for a response.
1978
+ # result.wait_until_done! timeout: 60
1979
+ # if result.response?
1980
+ # p result.response
1981
+ # else
1982
+ # puts "No response received."
1983
+ # end
1984
+ #
1595
1985
  def update_migrating_vm request, options = nil
1596
1986
  raise ::ArgumentError, "request must be provided" if request.nil?
1597
1987
 
@@ -1655,6 +2045,29 @@ module Google
1655
2045
  # @return [::Gapic::Operation]
1656
2046
  #
1657
2047
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2048
+ #
2049
+ # @example Basic example
2050
+ # require "google/cloud/vm_migration/v1"
2051
+ #
2052
+ # # Create a client object. The client can be reused for multiple calls.
2053
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
2054
+ #
2055
+ # # Create a request. To set request fields, pass in keyword arguments.
2056
+ # request = Google::Cloud::VMMigration::V1::DeleteMigratingVmRequest.new
2057
+ #
2058
+ # # Call the delete_migrating_vm method.
2059
+ # result = client.delete_migrating_vm request
2060
+ #
2061
+ # # The returned object is of type Gapic::Operation. You can use it to
2062
+ # # check the status of an operation, cancel it, or wait for results.
2063
+ # # Here is how to wait for a response.
2064
+ # result.wait_until_done! timeout: 60
2065
+ # if result.response?
2066
+ # p result.response
2067
+ # else
2068
+ # puts "No response received."
2069
+ # end
2070
+ #
1658
2071
  def delete_migrating_vm request, options = nil
1659
2072
  raise ::ArgumentError, "request must be provided" if request.nil?
1660
2073
 
@@ -1719,6 +2132,29 @@ module Google
1719
2132
  # @return [::Gapic::Operation]
1720
2133
  #
1721
2134
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2135
+ #
2136
+ # @example Basic example
2137
+ # require "google/cloud/vm_migration/v1"
2138
+ #
2139
+ # # Create a client object. The client can be reused for multiple calls.
2140
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
2141
+ #
2142
+ # # Create a request. To set request fields, pass in keyword arguments.
2143
+ # request = Google::Cloud::VMMigration::V1::StartMigrationRequest.new
2144
+ #
2145
+ # # Call the start_migration method.
2146
+ # result = client.start_migration request
2147
+ #
2148
+ # # The returned object is of type Gapic::Operation. You can use it to
2149
+ # # check the status of an operation, cancel it, or wait for results.
2150
+ # # Here is how to wait for a response.
2151
+ # result.wait_until_done! timeout: 60
2152
+ # if result.response?
2153
+ # p result.response
2154
+ # else
2155
+ # puts "No response received."
2156
+ # end
2157
+ #
1722
2158
  def start_migration request, options = nil
1723
2159
  raise ::ArgumentError, "request must be provided" if request.nil?
1724
2160
 
@@ -1785,6 +2221,29 @@ module Google
1785
2221
  # @return [::Gapic::Operation]
1786
2222
  #
1787
2223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2224
+ #
2225
+ # @example Basic example
2226
+ # require "google/cloud/vm_migration/v1"
2227
+ #
2228
+ # # Create a client object. The client can be reused for multiple calls.
2229
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
2230
+ #
2231
+ # # Create a request. To set request fields, pass in keyword arguments.
2232
+ # request = Google::Cloud::VMMigration::V1::ResumeMigrationRequest.new
2233
+ #
2234
+ # # Call the resume_migration method.
2235
+ # result = client.resume_migration request
2236
+ #
2237
+ # # The returned object is of type Gapic::Operation. You can use it to
2238
+ # # check the status of an operation, cancel it, or wait for results.
2239
+ # # Here is how to wait for a response.
2240
+ # result.wait_until_done! timeout: 60
2241
+ # if result.response?
2242
+ # p result.response
2243
+ # else
2244
+ # puts "No response received."
2245
+ # end
2246
+ #
1788
2247
  def resume_migration request, options = nil
1789
2248
  raise ::ArgumentError, "request must be provided" if request.nil?
1790
2249
 
@@ -1850,6 +2309,29 @@ module Google
1850
2309
  # @return [::Gapic::Operation]
1851
2310
  #
1852
2311
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2312
+ #
2313
+ # @example Basic example
2314
+ # require "google/cloud/vm_migration/v1"
2315
+ #
2316
+ # # Create a client object. The client can be reused for multiple calls.
2317
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
2318
+ #
2319
+ # # Create a request. To set request fields, pass in keyword arguments.
2320
+ # request = Google::Cloud::VMMigration::V1::PauseMigrationRequest.new
2321
+ #
2322
+ # # Call the pause_migration method.
2323
+ # result = client.pause_migration request
2324
+ #
2325
+ # # The returned object is of type Gapic::Operation. You can use it to
2326
+ # # check the status of an operation, cancel it, or wait for results.
2327
+ # # Here is how to wait for a response.
2328
+ # result.wait_until_done! timeout: 60
2329
+ # if result.response?
2330
+ # p result.response
2331
+ # else
2332
+ # puts "No response received."
2333
+ # end
2334
+ #
1853
2335
  def pause_migration request, options = nil
1854
2336
  raise ::ArgumentError, "request must be provided" if request.nil?
1855
2337
 
@@ -1914,6 +2396,29 @@ module Google
1914
2396
  # @return [::Gapic::Operation]
1915
2397
  #
1916
2398
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2399
+ #
2400
+ # @example Basic example
2401
+ # require "google/cloud/vm_migration/v1"
2402
+ #
2403
+ # # Create a client object. The client can be reused for multiple calls.
2404
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
2405
+ #
2406
+ # # Create a request. To set request fields, pass in keyword arguments.
2407
+ # request = Google::Cloud::VMMigration::V1::FinalizeMigrationRequest.new
2408
+ #
2409
+ # # Call the finalize_migration method.
2410
+ # result = client.finalize_migration request
2411
+ #
2412
+ # # The returned object is of type Gapic::Operation. You can use it to
2413
+ # # check the status of an operation, cancel it, or wait for results.
2414
+ # # Here is how to wait for a response.
2415
+ # result.wait_until_done! timeout: 60
2416
+ # if result.response?
2417
+ # p result.response
2418
+ # else
2419
+ # puts "No response received."
2420
+ # end
2421
+ #
1917
2422
  def finalize_migration request, options = nil
1918
2423
  raise ::ArgumentError, "request must be provided" if request.nil?
1919
2424
 
@@ -1995,6 +2500,29 @@ module Google
1995
2500
  # @return [::Gapic::Operation]
1996
2501
  #
1997
2502
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2503
+ #
2504
+ # @example Basic example
2505
+ # require "google/cloud/vm_migration/v1"
2506
+ #
2507
+ # # Create a client object. The client can be reused for multiple calls.
2508
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
2509
+ #
2510
+ # # Create a request. To set request fields, pass in keyword arguments.
2511
+ # request = Google::Cloud::VMMigration::V1::CreateCloneJobRequest.new
2512
+ #
2513
+ # # Call the create_clone_job method.
2514
+ # result = client.create_clone_job request
2515
+ #
2516
+ # # The returned object is of type Gapic::Operation. You can use it to
2517
+ # # check the status of an operation, cancel it, or wait for results.
2518
+ # # Here is how to wait for a response.
2519
+ # result.wait_until_done! timeout: 60
2520
+ # if result.response?
2521
+ # p result.response
2522
+ # else
2523
+ # puts "No response received."
2524
+ # end
2525
+ #
1998
2526
  def create_clone_job request, options = nil
1999
2527
  raise ::ArgumentError, "request must be provided" if request.nil?
2000
2528
 
@@ -2058,6 +2586,29 @@ module Google
2058
2586
  # @return [::Gapic::Operation]
2059
2587
  #
2060
2588
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2589
+ #
2590
+ # @example Basic example
2591
+ # require "google/cloud/vm_migration/v1"
2592
+ #
2593
+ # # Create a client object. The client can be reused for multiple calls.
2594
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
2595
+ #
2596
+ # # Create a request. To set request fields, pass in keyword arguments.
2597
+ # request = Google::Cloud::VMMigration::V1::CancelCloneJobRequest.new
2598
+ #
2599
+ # # Call the cancel_clone_job method.
2600
+ # result = client.cancel_clone_job request
2601
+ #
2602
+ # # The returned object is of type Gapic::Operation. You can use it to
2603
+ # # check the status of an operation, cancel it, or wait for results.
2604
+ # # Here is how to wait for a response.
2605
+ # result.wait_until_done! timeout: 60
2606
+ # if result.response?
2607
+ # p result.response
2608
+ # else
2609
+ # puts "No response received."
2610
+ # end
2611
+ #
2061
2612
  def cancel_clone_job request, options = nil
2062
2613
  raise ::ArgumentError, "request must be provided" if request.nil?
2063
2614
 
@@ -2136,6 +2687,26 @@ module Google
2136
2687
  # @return [::Google::Cloud::VMMigration::V1::ListCloneJobsResponse]
2137
2688
  #
2138
2689
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2690
+ #
2691
+ # @example Basic example
2692
+ # require "google/cloud/vm_migration/v1"
2693
+ #
2694
+ # # Create a client object. The client can be reused for multiple calls.
2695
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
2696
+ #
2697
+ # # Create a request. To set request fields, pass in keyword arguments.
2698
+ # request = Google::Cloud::VMMigration::V1::ListCloneJobsRequest.new
2699
+ #
2700
+ # # Call the list_clone_jobs method.
2701
+ # result = client.list_clone_jobs request
2702
+ #
2703
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2704
+ # # over elements, and API calls will be issued to fetch pages as needed.
2705
+ # result.each do |item|
2706
+ # # Each element is of type ::Google::Cloud::VMMigration::V1::CloneJob.
2707
+ # p item
2708
+ # end
2709
+ #
2139
2710
  def list_clone_jobs request, options = nil
2140
2711
  raise ::ArgumentError, "request must be provided" if request.nil?
2141
2712
 
@@ -2198,6 +2769,22 @@ module Google
2198
2769
  # @return [::Google::Cloud::VMMigration::V1::CloneJob]
2199
2770
  #
2200
2771
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2772
+ #
2773
+ # @example Basic example
2774
+ # require "google/cloud/vm_migration/v1"
2775
+ #
2776
+ # # Create a client object. The client can be reused for multiple calls.
2777
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
2778
+ #
2779
+ # # Create a request. To set request fields, pass in keyword arguments.
2780
+ # request = Google::Cloud::VMMigration::V1::GetCloneJobRequest.new
2781
+ #
2782
+ # # Call the get_clone_job method.
2783
+ # result = client.get_clone_job request
2784
+ #
2785
+ # # The returned object is of type Google::Cloud::VMMigration::V1::CloneJob.
2786
+ # p result
2787
+ #
2201
2788
  def get_clone_job request, options = nil
2202
2789
  raise ::ArgumentError, "request must be provided" if request.nil?
2203
2790
 
@@ -2280,6 +2867,29 @@ module Google
2280
2867
  # @return [::Gapic::Operation]
2281
2868
  #
2282
2869
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2870
+ #
2871
+ # @example Basic example
2872
+ # require "google/cloud/vm_migration/v1"
2873
+ #
2874
+ # # Create a client object. The client can be reused for multiple calls.
2875
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
2876
+ #
2877
+ # # Create a request. To set request fields, pass in keyword arguments.
2878
+ # request = Google::Cloud::VMMigration::V1::CreateCutoverJobRequest.new
2879
+ #
2880
+ # # Call the create_cutover_job method.
2881
+ # result = client.create_cutover_job request
2882
+ #
2883
+ # # The returned object is of type Gapic::Operation. You can use it to
2884
+ # # check the status of an operation, cancel it, or wait for results.
2885
+ # # Here is how to wait for a response.
2886
+ # result.wait_until_done! timeout: 60
2887
+ # if result.response?
2888
+ # p result.response
2889
+ # else
2890
+ # puts "No response received."
2891
+ # end
2892
+ #
2283
2893
  def create_cutover_job request, options = nil
2284
2894
  raise ::ArgumentError, "request must be provided" if request.nil?
2285
2895
 
@@ -2343,6 +2953,29 @@ module Google
2343
2953
  # @return [::Gapic::Operation]
2344
2954
  #
2345
2955
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2956
+ #
2957
+ # @example Basic example
2958
+ # require "google/cloud/vm_migration/v1"
2959
+ #
2960
+ # # Create a client object. The client can be reused for multiple calls.
2961
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
2962
+ #
2963
+ # # Create a request. To set request fields, pass in keyword arguments.
2964
+ # request = Google::Cloud::VMMigration::V1::CancelCutoverJobRequest.new
2965
+ #
2966
+ # # Call the cancel_cutover_job method.
2967
+ # result = client.cancel_cutover_job request
2968
+ #
2969
+ # # The returned object is of type Gapic::Operation. You can use it to
2970
+ # # check the status of an operation, cancel it, or wait for results.
2971
+ # # Here is how to wait for a response.
2972
+ # result.wait_until_done! timeout: 60
2973
+ # if result.response?
2974
+ # p result.response
2975
+ # else
2976
+ # puts "No response received."
2977
+ # end
2978
+ #
2346
2979
  def cancel_cutover_job request, options = nil
2347
2980
  raise ::ArgumentError, "request must be provided" if request.nil?
2348
2981
 
@@ -2421,6 +3054,26 @@ module Google
2421
3054
  # @return [::Google::Cloud::VMMigration::V1::ListCutoverJobsResponse]
2422
3055
  #
2423
3056
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3057
+ #
3058
+ # @example Basic example
3059
+ # require "google/cloud/vm_migration/v1"
3060
+ #
3061
+ # # Create a client object. The client can be reused for multiple calls.
3062
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
3063
+ #
3064
+ # # Create a request. To set request fields, pass in keyword arguments.
3065
+ # request = Google::Cloud::VMMigration::V1::ListCutoverJobsRequest.new
3066
+ #
3067
+ # # Call the list_cutover_jobs method.
3068
+ # result = client.list_cutover_jobs request
3069
+ #
3070
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
3071
+ # # over elements, and API calls will be issued to fetch pages as needed.
3072
+ # result.each do |item|
3073
+ # # Each element is of type ::Google::Cloud::VMMigration::V1::CutoverJob.
3074
+ # p item
3075
+ # end
3076
+ #
2424
3077
  def list_cutover_jobs request, options = nil
2425
3078
  raise ::ArgumentError, "request must be provided" if request.nil?
2426
3079
 
@@ -2483,6 +3136,22 @@ module Google
2483
3136
  # @return [::Google::Cloud::VMMigration::V1::CutoverJob]
2484
3137
  #
2485
3138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3139
+ #
3140
+ # @example Basic example
3141
+ # require "google/cloud/vm_migration/v1"
3142
+ #
3143
+ # # Create a client object. The client can be reused for multiple calls.
3144
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
3145
+ #
3146
+ # # Create a request. To set request fields, pass in keyword arguments.
3147
+ # request = Google::Cloud::VMMigration::V1::GetCutoverJobRequest.new
3148
+ #
3149
+ # # Call the get_cutover_job method.
3150
+ # result = client.get_cutover_job request
3151
+ #
3152
+ # # The returned object is of type Google::Cloud::VMMigration::V1::CutoverJob.
3153
+ # p result
3154
+ #
2486
3155
  def get_cutover_job request, options = nil
2487
3156
  raise ::ArgumentError, "request must be provided" if request.nil?
2488
3157
 
@@ -2560,6 +3229,26 @@ module Google
2560
3229
  # @return [::Google::Cloud::VMMigration::V1::ListGroupsResponse]
2561
3230
  #
2562
3231
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3232
+ #
3233
+ # @example Basic example
3234
+ # require "google/cloud/vm_migration/v1"
3235
+ #
3236
+ # # Create a client object. The client can be reused for multiple calls.
3237
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
3238
+ #
3239
+ # # Create a request. To set request fields, pass in keyword arguments.
3240
+ # request = Google::Cloud::VMMigration::V1::ListGroupsRequest.new
3241
+ #
3242
+ # # Call the list_groups method.
3243
+ # result = client.list_groups request
3244
+ #
3245
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
3246
+ # # over elements, and API calls will be issued to fetch pages as needed.
3247
+ # result.each do |item|
3248
+ # # Each element is of type ::Google::Cloud::VMMigration::V1::Group.
3249
+ # p item
3250
+ # end
3251
+ #
2563
3252
  def list_groups request, options = nil
2564
3253
  raise ::ArgumentError, "request must be provided" if request.nil?
2565
3254
 
@@ -2622,6 +3311,22 @@ module Google
2622
3311
  # @return [::Google::Cloud::VMMigration::V1::Group]
2623
3312
  #
2624
3313
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3314
+ #
3315
+ # @example Basic example
3316
+ # require "google/cloud/vm_migration/v1"
3317
+ #
3318
+ # # Create a client object. The client can be reused for multiple calls.
3319
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
3320
+ #
3321
+ # # Create a request. To set request fields, pass in keyword arguments.
3322
+ # request = Google::Cloud::VMMigration::V1::GetGroupRequest.new
3323
+ #
3324
+ # # Call the get_group method.
3325
+ # result = client.get_group request
3326
+ #
3327
+ # # The returned object is of type Google::Cloud::VMMigration::V1::Group.
3328
+ # p result
3329
+ #
2625
3330
  def get_group request, options = nil
2626
3331
  raise ::ArgumentError, "request must be provided" if request.nil?
2627
3332
 
@@ -2702,6 +3407,29 @@ module Google
2702
3407
  # @return [::Gapic::Operation]
2703
3408
  #
2704
3409
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3410
+ #
3411
+ # @example Basic example
3412
+ # require "google/cloud/vm_migration/v1"
3413
+ #
3414
+ # # Create a client object. The client can be reused for multiple calls.
3415
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
3416
+ #
3417
+ # # Create a request. To set request fields, pass in keyword arguments.
3418
+ # request = Google::Cloud::VMMigration::V1::CreateGroupRequest.new
3419
+ #
3420
+ # # Call the create_group method.
3421
+ # result = client.create_group request
3422
+ #
3423
+ # # The returned object is of type Gapic::Operation. You can use it to
3424
+ # # check the status of an operation, cancel it, or wait for results.
3425
+ # # Here is how to wait for a response.
3426
+ # result.wait_until_done! timeout: 60
3427
+ # if result.response?
3428
+ # p result.response
3429
+ # else
3430
+ # puts "No response received."
3431
+ # end
3432
+ #
2705
3433
  def create_group request, options = nil
2706
3434
  raise ::ArgumentError, "request must be provided" if request.nil?
2707
3435
 
@@ -2785,6 +3513,29 @@ module Google
2785
3513
  # @return [::Gapic::Operation]
2786
3514
  #
2787
3515
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3516
+ #
3517
+ # @example Basic example
3518
+ # require "google/cloud/vm_migration/v1"
3519
+ #
3520
+ # # Create a client object. The client can be reused for multiple calls.
3521
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
3522
+ #
3523
+ # # Create a request. To set request fields, pass in keyword arguments.
3524
+ # request = Google::Cloud::VMMigration::V1::UpdateGroupRequest.new
3525
+ #
3526
+ # # Call the update_group method.
3527
+ # result = client.update_group request
3528
+ #
3529
+ # # The returned object is of type Gapic::Operation. You can use it to
3530
+ # # check the status of an operation, cancel it, or wait for results.
3531
+ # # Here is how to wait for a response.
3532
+ # result.wait_until_done! timeout: 60
3533
+ # if result.response?
3534
+ # p result.response
3535
+ # else
3536
+ # puts "No response received."
3537
+ # end
3538
+ #
2788
3539
  def update_group request, options = nil
2789
3540
  raise ::ArgumentError, "request must be provided" if request.nil?
2790
3541
 
@@ -2862,6 +3613,29 @@ module Google
2862
3613
  # @return [::Gapic::Operation]
2863
3614
  #
2864
3615
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3616
+ #
3617
+ # @example Basic example
3618
+ # require "google/cloud/vm_migration/v1"
3619
+ #
3620
+ # # Create a client object. The client can be reused for multiple calls.
3621
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
3622
+ #
3623
+ # # Create a request. To set request fields, pass in keyword arguments.
3624
+ # request = Google::Cloud::VMMigration::V1::DeleteGroupRequest.new
3625
+ #
3626
+ # # Call the delete_group method.
3627
+ # result = client.delete_group request
3628
+ #
3629
+ # # The returned object is of type Gapic::Operation. You can use it to
3630
+ # # check the status of an operation, cancel it, or wait for results.
3631
+ # # Here is how to wait for a response.
3632
+ # result.wait_until_done! timeout: 60
3633
+ # if result.response?
3634
+ # p result.response
3635
+ # else
3636
+ # puts "No response received."
3637
+ # end
3638
+ #
2865
3639
  def delete_group request, options = nil
2866
3640
  raise ::ArgumentError, "request must be provided" if request.nil?
2867
3641
 
@@ -2927,6 +3701,29 @@ module Google
2927
3701
  # @return [::Gapic::Operation]
2928
3702
  #
2929
3703
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3704
+ #
3705
+ # @example Basic example
3706
+ # require "google/cloud/vm_migration/v1"
3707
+ #
3708
+ # # Create a client object. The client can be reused for multiple calls.
3709
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
3710
+ #
3711
+ # # Create a request. To set request fields, pass in keyword arguments.
3712
+ # request = Google::Cloud::VMMigration::V1::AddGroupMigrationRequest.new
3713
+ #
3714
+ # # Call the add_group_migration method.
3715
+ # result = client.add_group_migration request
3716
+ #
3717
+ # # The returned object is of type Gapic::Operation. You can use it to
3718
+ # # check the status of an operation, cancel it, or wait for results.
3719
+ # # Here is how to wait for a response.
3720
+ # result.wait_until_done! timeout: 60
3721
+ # if result.response?
3722
+ # p result.response
3723
+ # else
3724
+ # puts "No response received."
3725
+ # end
3726
+ #
2930
3727
  def add_group_migration request, options = nil
2931
3728
  raise ::ArgumentError, "request must be provided" if request.nil?
2932
3729
 
@@ -2992,6 +3789,29 @@ module Google
2992
3789
  # @return [::Gapic::Operation]
2993
3790
  #
2994
3791
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3792
+ #
3793
+ # @example Basic example
3794
+ # require "google/cloud/vm_migration/v1"
3795
+ #
3796
+ # # Create a client object. The client can be reused for multiple calls.
3797
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
3798
+ #
3799
+ # # Create a request. To set request fields, pass in keyword arguments.
3800
+ # request = Google::Cloud::VMMigration::V1::RemoveGroupMigrationRequest.new
3801
+ #
3802
+ # # Call the remove_group_migration method.
3803
+ # result = client.remove_group_migration request
3804
+ #
3805
+ # # The returned object is of type Gapic::Operation. You can use it to
3806
+ # # check the status of an operation, cancel it, or wait for results.
3807
+ # # Here is how to wait for a response.
3808
+ # result.wait_until_done! timeout: 60
3809
+ # if result.response?
3810
+ # p result.response
3811
+ # else
3812
+ # puts "No response received."
3813
+ # end
3814
+ #
2995
3815
  def remove_group_migration request, options = nil
2996
3816
  raise ::ArgumentError, "request must be provided" if request.nil?
2997
3817
 
@@ -3073,6 +3893,26 @@ module Google
3073
3893
  # @return [::Google::Cloud::VMMigration::V1::ListTargetProjectsResponse]
3074
3894
  #
3075
3895
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3896
+ #
3897
+ # @example Basic example
3898
+ # require "google/cloud/vm_migration/v1"
3899
+ #
3900
+ # # Create a client object. The client can be reused for multiple calls.
3901
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
3902
+ #
3903
+ # # Create a request. To set request fields, pass in keyword arguments.
3904
+ # request = Google::Cloud::VMMigration::V1::ListTargetProjectsRequest.new
3905
+ #
3906
+ # # Call the list_target_projects method.
3907
+ # result = client.list_target_projects request
3908
+ #
3909
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
3910
+ # # over elements, and API calls will be issued to fetch pages as needed.
3911
+ # result.each do |item|
3912
+ # # Each element is of type ::Google::Cloud::VMMigration::V1::TargetProject.
3913
+ # p item
3914
+ # end
3915
+ #
3076
3916
  def list_target_projects request, options = nil
3077
3917
  raise ::ArgumentError, "request must be provided" if request.nil?
3078
3918
 
@@ -3138,6 +3978,22 @@ module Google
3138
3978
  # @return [::Google::Cloud::VMMigration::V1::TargetProject]
3139
3979
  #
3140
3980
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3981
+ #
3982
+ # @example Basic example
3983
+ # require "google/cloud/vm_migration/v1"
3984
+ #
3985
+ # # Create a client object. The client can be reused for multiple calls.
3986
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
3987
+ #
3988
+ # # Create a request. To set request fields, pass in keyword arguments.
3989
+ # request = Google::Cloud::VMMigration::V1::GetTargetProjectRequest.new
3990
+ #
3991
+ # # Call the get_target_project method.
3992
+ # result = client.get_target_project request
3993
+ #
3994
+ # # The returned object is of type Google::Cloud::VMMigration::V1::TargetProject.
3995
+ # p result
3996
+ #
3141
3997
  def get_target_project request, options = nil
3142
3998
  raise ::ArgumentError, "request must be provided" if request.nil?
3143
3999
 
@@ -3221,6 +4077,29 @@ module Google
3221
4077
  # @return [::Gapic::Operation]
3222
4078
  #
3223
4079
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4080
+ #
4081
+ # @example Basic example
4082
+ # require "google/cloud/vm_migration/v1"
4083
+ #
4084
+ # # Create a client object. The client can be reused for multiple calls.
4085
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
4086
+ #
4087
+ # # Create a request. To set request fields, pass in keyword arguments.
4088
+ # request = Google::Cloud::VMMigration::V1::CreateTargetProjectRequest.new
4089
+ #
4090
+ # # Call the create_target_project method.
4091
+ # result = client.create_target_project request
4092
+ #
4093
+ # # The returned object is of type Gapic::Operation. You can use it to
4094
+ # # check the status of an operation, cancel it, or wait for results.
4095
+ # # Here is how to wait for a response.
4096
+ # result.wait_until_done! timeout: 60
4097
+ # if result.response?
4098
+ # p result.response
4099
+ # else
4100
+ # puts "No response received."
4101
+ # end
4102
+ #
3224
4103
  def create_target_project request, options = nil
3225
4104
  raise ::ArgumentError, "request must be provided" if request.nil?
3226
4105
 
@@ -3307,6 +4186,29 @@ module Google
3307
4186
  # @return [::Gapic::Operation]
3308
4187
  #
3309
4188
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4189
+ #
4190
+ # @example Basic example
4191
+ # require "google/cloud/vm_migration/v1"
4192
+ #
4193
+ # # Create a client object. The client can be reused for multiple calls.
4194
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
4195
+ #
4196
+ # # Create a request. To set request fields, pass in keyword arguments.
4197
+ # request = Google::Cloud::VMMigration::V1::UpdateTargetProjectRequest.new
4198
+ #
4199
+ # # Call the update_target_project method.
4200
+ # result = client.update_target_project request
4201
+ #
4202
+ # # The returned object is of type Gapic::Operation. You can use it to
4203
+ # # check the status of an operation, cancel it, or wait for results.
4204
+ # # Here is how to wait for a response.
4205
+ # result.wait_until_done! timeout: 60
4206
+ # if result.response?
4207
+ # p result.response
4208
+ # else
4209
+ # puts "No response received."
4210
+ # end
4211
+ #
3310
4212
  def update_target_project request, options = nil
3311
4213
  raise ::ArgumentError, "request must be provided" if request.nil?
3312
4214
 
@@ -3387,6 +4289,29 @@ module Google
3387
4289
  # @return [::Gapic::Operation]
3388
4290
  #
3389
4291
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4292
+ #
4293
+ # @example Basic example
4294
+ # require "google/cloud/vm_migration/v1"
4295
+ #
4296
+ # # Create a client object. The client can be reused for multiple calls.
4297
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
4298
+ #
4299
+ # # Create a request. To set request fields, pass in keyword arguments.
4300
+ # request = Google::Cloud::VMMigration::V1::DeleteTargetProjectRequest.new
4301
+ #
4302
+ # # Call the delete_target_project method.
4303
+ # result = client.delete_target_project request
4304
+ #
4305
+ # # The returned object is of type Gapic::Operation. You can use it to
4306
+ # # check the status of an operation, cancel it, or wait for results.
4307
+ # # Here is how to wait for a response.
4308
+ # result.wait_until_done! timeout: 60
4309
+ # if result.response?
4310
+ # p result.response
4311
+ # else
4312
+ # puts "No response received."
4313
+ # end
4314
+ #
3390
4315
  def delete_target_project request, options = nil
3391
4316
  raise ::ArgumentError, "request must be provided" if request.nil?
3392
4317
 
@@ -3465,6 +4390,26 @@ module Google
3465
4390
  # @return [::Google::Cloud::VMMigration::V1::ListReplicationCyclesResponse]
3466
4391
  #
3467
4392
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4393
+ #
4394
+ # @example Basic example
4395
+ # require "google/cloud/vm_migration/v1"
4396
+ #
4397
+ # # Create a client object. The client can be reused for multiple calls.
4398
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
4399
+ #
4400
+ # # Create a request. To set request fields, pass in keyword arguments.
4401
+ # request = Google::Cloud::VMMigration::V1::ListReplicationCyclesRequest.new
4402
+ #
4403
+ # # Call the list_replication_cycles method.
4404
+ # result = client.list_replication_cycles request
4405
+ #
4406
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
4407
+ # # over elements, and API calls will be issued to fetch pages as needed.
4408
+ # result.each do |item|
4409
+ # # Each element is of type ::Google::Cloud::VMMigration::V1::ReplicationCycle.
4410
+ # p item
4411
+ # end
4412
+ #
3468
4413
  def list_replication_cycles request, options = nil
3469
4414
  raise ::ArgumentError, "request must be provided" if request.nil?
3470
4415
 
@@ -3527,6 +4472,22 @@ module Google
3527
4472
  # @return [::Google::Cloud::VMMigration::V1::ReplicationCycle]
3528
4473
  #
3529
4474
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4475
+ #
4476
+ # @example Basic example
4477
+ # require "google/cloud/vm_migration/v1"
4478
+ #
4479
+ # # Create a client object. The client can be reused for multiple calls.
4480
+ # client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
4481
+ #
4482
+ # # Create a request. To set request fields, pass in keyword arguments.
4483
+ # request = Google::Cloud::VMMigration::V1::GetReplicationCycleRequest.new
4484
+ #
4485
+ # # Call the get_replication_cycle method.
4486
+ # result = client.get_replication_cycle request
4487
+ #
4488
+ # # The returned object is of type Google::Cloud::VMMigration::V1::ReplicationCycle.
4489
+ # p result
4490
+ #
3530
4491
  def get_replication_cycle request, options = nil
3531
4492
  raise ::ArgumentError, "request must be provided" if request.nil?
3532
4493