google-cloud-vm_migration-v1 0.6.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +72 -99
- data/lib/google/cloud/vm_migration/v1/version.rb +1 -1
- data/lib/google/cloud/vm_migration/v1/vm_migration/client.rb +44 -9
- data/lib/google/cloud/vm_migration/v1/vm_migration/operations.rb +38 -7
- data/lib/google/cloud/vm_migration/v1/vm_migration/rest/client.rb +997 -7
- data/lib/google/cloud/vm_migration/v1/vm_migration/rest/operations.rb +108 -8
- data/lib/google/cloud/vm_migration/v1/vm_migration/rest/service_stub.rb +14 -2
- data/proto_docs/google/api/client.rb +14 -0
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/vmmigration/v1/vmmigration.rb +1 -0
- metadata +9 -9
@@ -34,6 +34,9 @@ module Google
|
|
34
34
|
# VM Migration Service
|
35
35
|
#
|
36
36
|
class Client
|
37
|
+
# @private
|
38
|
+
DEFAULT_ENDPOINT_TEMPLATE = "vmmigration.$UNIVERSE_DOMAIN$"
|
39
|
+
|
37
40
|
include Paths
|
38
41
|
|
39
42
|
# @private
|
@@ -102,6 +105,15 @@ module Google
|
|
102
105
|
@config
|
103
106
|
end
|
104
107
|
|
108
|
+
##
|
109
|
+
# The effective universe domain
|
110
|
+
#
|
111
|
+
# @return [String]
|
112
|
+
#
|
113
|
+
def universe_domain
|
114
|
+
@vm_migration_stub.universe_domain
|
115
|
+
end
|
116
|
+
|
105
117
|
##
|
106
118
|
# Create a new VmMigration REST client object.
|
107
119
|
#
|
@@ -129,8 +141,9 @@ module Google
|
|
129
141
|
credentials = @config.credentials
|
130
142
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
131
143
|
# but only if the default endpoint does not have a region prefix.
|
132
|
-
enable_self_signed_jwt = @config.endpoint
|
133
|
-
|
144
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
145
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
146
|
+
!@config.endpoint.split(".").first.include?("-"))
|
134
147
|
credentials ||= Credentials.default scope: @config.scope,
|
135
148
|
enable_self_signed_jwt: enable_self_signed_jwt
|
136
149
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
@@ -144,12 +157,14 @@ module Google
|
|
144
157
|
config.credentials = credentials
|
145
158
|
config.quota_project = @quota_project_id
|
146
159
|
config.endpoint = @config.endpoint
|
160
|
+
config.universe_domain = @config.universe_domain
|
147
161
|
end
|
148
162
|
|
149
163
|
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
150
164
|
config.credentials = credentials
|
151
165
|
config.quota_project = @quota_project_id
|
152
166
|
config.endpoint = @config.endpoint
|
167
|
+
config.universe_domain = @config.universe_domain
|
153
168
|
config.bindings_override = @config.bindings_override
|
154
169
|
end
|
155
170
|
|
@@ -157,9 +172,15 @@ module Google
|
|
157
172
|
config.credentials = credentials
|
158
173
|
config.quota_project = @quota_project_id
|
159
174
|
config.endpoint = @config.endpoint
|
175
|
+
config.universe_domain = @config.universe_domain
|
160
176
|
end
|
161
177
|
|
162
|
-
@vm_migration_stub = ::Google::Cloud::VMMigration::V1::VMMigration::Rest::ServiceStub.new
|
178
|
+
@vm_migration_stub = ::Google::Cloud::VMMigration::V1::VMMigration::Rest::ServiceStub.new(
|
179
|
+
endpoint: @config.endpoint,
|
180
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
181
|
+
universe_domain: @config.universe_domain,
|
182
|
+
credentials: credentials
|
183
|
+
)
|
163
184
|
end
|
164
185
|
|
165
186
|
##
|
@@ -227,6 +248,26 @@ module Google
|
|
227
248
|
# @return [::Google::Cloud::VMMigration::V1::ListSourcesResponse]
|
228
249
|
#
|
229
250
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
251
|
+
#
|
252
|
+
# @example Basic example
|
253
|
+
# require "google/cloud/vm_migration/v1"
|
254
|
+
#
|
255
|
+
# # Create a client object. The client can be reused for multiple calls.
|
256
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
257
|
+
#
|
258
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
259
|
+
# request = Google::Cloud::VMMigration::V1::ListSourcesRequest.new
|
260
|
+
#
|
261
|
+
# # Call the list_sources method.
|
262
|
+
# result = client.list_sources request
|
263
|
+
#
|
264
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
265
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
266
|
+
# result.each do |item|
|
267
|
+
# # Each element is of type ::Google::Cloud::VMMigration::V1::Source.
|
268
|
+
# p item
|
269
|
+
# end
|
270
|
+
#
|
230
271
|
def list_sources request, options = nil
|
231
272
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
232
273
|
|
@@ -289,6 +330,22 @@ module Google
|
|
289
330
|
# @return [::Google::Cloud::VMMigration::V1::Source]
|
290
331
|
#
|
291
332
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
333
|
+
#
|
334
|
+
# @example Basic example
|
335
|
+
# require "google/cloud/vm_migration/v1"
|
336
|
+
#
|
337
|
+
# # Create a client object. The client can be reused for multiple calls.
|
338
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
339
|
+
#
|
340
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
341
|
+
# request = Google::Cloud::VMMigration::V1::GetSourceRequest.new
|
342
|
+
#
|
343
|
+
# # Call the get_source method.
|
344
|
+
# result = client.get_source request
|
345
|
+
#
|
346
|
+
# # The returned object is of type Google::Cloud::VMMigration::V1::Source.
|
347
|
+
# p result
|
348
|
+
#
|
292
349
|
def get_source request, options = nil
|
293
350
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
294
351
|
|
@@ -369,6 +426,29 @@ module Google
|
|
369
426
|
# @return [::Gapic::Operation]
|
370
427
|
#
|
371
428
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
429
|
+
#
|
430
|
+
# @example Basic example
|
431
|
+
# require "google/cloud/vm_migration/v1"
|
432
|
+
#
|
433
|
+
# # Create a client object. The client can be reused for multiple calls.
|
434
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
435
|
+
#
|
436
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
437
|
+
# request = Google::Cloud::VMMigration::V1::CreateSourceRequest.new
|
438
|
+
#
|
439
|
+
# # Call the create_source method.
|
440
|
+
# result = client.create_source request
|
441
|
+
#
|
442
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
443
|
+
# # check the status of an operation, cancel it, or wait for results.
|
444
|
+
# # Here is how to wait for a response.
|
445
|
+
# result.wait_until_done! timeout: 60
|
446
|
+
# if result.response?
|
447
|
+
# p result.response
|
448
|
+
# else
|
449
|
+
# puts "No response received."
|
450
|
+
# end
|
451
|
+
#
|
372
452
|
def create_source request, options = nil
|
373
453
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
374
454
|
|
@@ -452,6 +532,29 @@ module Google
|
|
452
532
|
# @return [::Gapic::Operation]
|
453
533
|
#
|
454
534
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
535
|
+
#
|
536
|
+
# @example Basic example
|
537
|
+
# require "google/cloud/vm_migration/v1"
|
538
|
+
#
|
539
|
+
# # Create a client object. The client can be reused for multiple calls.
|
540
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
541
|
+
#
|
542
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
543
|
+
# request = Google::Cloud::VMMigration::V1::UpdateSourceRequest.new
|
544
|
+
#
|
545
|
+
# # Call the update_source method.
|
546
|
+
# result = client.update_source request
|
547
|
+
#
|
548
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
549
|
+
# # check the status of an operation, cancel it, or wait for results.
|
550
|
+
# # Here is how to wait for a response.
|
551
|
+
# result.wait_until_done! timeout: 60
|
552
|
+
# if result.response?
|
553
|
+
# p result.response
|
554
|
+
# else
|
555
|
+
# puts "No response received."
|
556
|
+
# end
|
557
|
+
#
|
455
558
|
def update_source request, options = nil
|
456
559
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
457
560
|
|
@@ -529,6 +632,29 @@ module Google
|
|
529
632
|
# @return [::Gapic::Operation]
|
530
633
|
#
|
531
634
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
635
|
+
#
|
636
|
+
# @example Basic example
|
637
|
+
# require "google/cloud/vm_migration/v1"
|
638
|
+
#
|
639
|
+
# # Create a client object. The client can be reused for multiple calls.
|
640
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
641
|
+
#
|
642
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
643
|
+
# request = Google::Cloud::VMMigration::V1::DeleteSourceRequest.new
|
644
|
+
#
|
645
|
+
# # Call the delete_source method.
|
646
|
+
# result = client.delete_source request
|
647
|
+
#
|
648
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
649
|
+
# # check the status of an operation, cancel it, or wait for results.
|
650
|
+
# # Here is how to wait for a response.
|
651
|
+
# result.wait_until_done! timeout: 60
|
652
|
+
# if result.response?
|
653
|
+
# p result.response
|
654
|
+
# else
|
655
|
+
# puts "No response received."
|
656
|
+
# end
|
657
|
+
#
|
532
658
|
def delete_source request, options = nil
|
533
659
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
534
660
|
|
@@ -599,6 +725,22 @@ module Google
|
|
599
725
|
# @return [::Google::Cloud::VMMigration::V1::FetchInventoryResponse]
|
600
726
|
#
|
601
727
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
728
|
+
#
|
729
|
+
# @example Basic example
|
730
|
+
# require "google/cloud/vm_migration/v1"
|
731
|
+
#
|
732
|
+
# # Create a client object. The client can be reused for multiple calls.
|
733
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
734
|
+
#
|
735
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
736
|
+
# request = Google::Cloud::VMMigration::V1::FetchInventoryRequest.new
|
737
|
+
#
|
738
|
+
# # Call the fetch_inventory method.
|
739
|
+
# result = client.fetch_inventory request
|
740
|
+
#
|
741
|
+
# # The returned object is of type Google::Cloud::VMMigration::V1::FetchInventoryResponse.
|
742
|
+
# p result
|
743
|
+
#
|
602
744
|
def fetch_inventory request, options = nil
|
603
745
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
604
746
|
|
@@ -679,6 +821,26 @@ module Google
|
|
679
821
|
# @return [::Google::Cloud::VMMigration::V1::ListUtilizationReportsResponse]
|
680
822
|
#
|
681
823
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
824
|
+
#
|
825
|
+
# @example Basic example
|
826
|
+
# require "google/cloud/vm_migration/v1"
|
827
|
+
#
|
828
|
+
# # Create a client object. The client can be reused for multiple calls.
|
829
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
830
|
+
#
|
831
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
832
|
+
# request = Google::Cloud::VMMigration::V1::ListUtilizationReportsRequest.new
|
833
|
+
#
|
834
|
+
# # Call the list_utilization_reports method.
|
835
|
+
# result = client.list_utilization_reports request
|
836
|
+
#
|
837
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
838
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
839
|
+
# result.each do |item|
|
840
|
+
# # Each element is of type ::Google::Cloud::VMMigration::V1::UtilizationReport.
|
841
|
+
# p item
|
842
|
+
# end
|
843
|
+
#
|
682
844
|
def list_utilization_reports request, options = nil
|
683
845
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
684
846
|
|
@@ -744,6 +906,22 @@ module Google
|
|
744
906
|
# @return [::Google::Cloud::VMMigration::V1::UtilizationReport]
|
745
907
|
#
|
746
908
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
909
|
+
#
|
910
|
+
# @example Basic example
|
911
|
+
# require "google/cloud/vm_migration/v1"
|
912
|
+
#
|
913
|
+
# # Create a client object. The client can be reused for multiple calls.
|
914
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
915
|
+
#
|
916
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
917
|
+
# request = Google::Cloud::VMMigration::V1::GetUtilizationReportRequest.new
|
918
|
+
#
|
919
|
+
# # Call the get_utilization_report method.
|
920
|
+
# result = client.get_utilization_report request
|
921
|
+
#
|
922
|
+
# # The returned object is of type Google::Cloud::VMMigration::V1::UtilizationReport.
|
923
|
+
# p result
|
924
|
+
#
|
747
925
|
def get_utilization_report request, options = nil
|
748
926
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
749
927
|
|
@@ -829,6 +1007,29 @@ module Google
|
|
829
1007
|
# @return [::Gapic::Operation]
|
830
1008
|
#
|
831
1009
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1010
|
+
#
|
1011
|
+
# @example Basic example
|
1012
|
+
# require "google/cloud/vm_migration/v1"
|
1013
|
+
#
|
1014
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1015
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
1016
|
+
#
|
1017
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1018
|
+
# request = Google::Cloud::VMMigration::V1::CreateUtilizationReportRequest.new
|
1019
|
+
#
|
1020
|
+
# # Call the create_utilization_report method.
|
1021
|
+
# result = client.create_utilization_report request
|
1022
|
+
#
|
1023
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1024
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1025
|
+
# # Here is how to wait for a response.
|
1026
|
+
# result.wait_until_done! timeout: 60
|
1027
|
+
# if result.response?
|
1028
|
+
# p result.response
|
1029
|
+
# else
|
1030
|
+
# puts "No response received."
|
1031
|
+
# end
|
1032
|
+
#
|
832
1033
|
def create_utilization_report request, options = nil
|
833
1034
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
834
1035
|
|
@@ -906,6 +1107,29 @@ module Google
|
|
906
1107
|
# @return [::Gapic::Operation]
|
907
1108
|
#
|
908
1109
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1110
|
+
#
|
1111
|
+
# @example Basic example
|
1112
|
+
# require "google/cloud/vm_migration/v1"
|
1113
|
+
#
|
1114
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1115
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
1116
|
+
#
|
1117
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1118
|
+
# request = Google::Cloud::VMMigration::V1::DeleteUtilizationReportRequest.new
|
1119
|
+
#
|
1120
|
+
# # Call the delete_utilization_report method.
|
1121
|
+
# result = client.delete_utilization_report request
|
1122
|
+
#
|
1123
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1124
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1125
|
+
# # Here is how to wait for a response.
|
1126
|
+
# result.wait_until_done! timeout: 60
|
1127
|
+
# if result.response?
|
1128
|
+
# p result.response
|
1129
|
+
# else
|
1130
|
+
# puts "No response received."
|
1131
|
+
# end
|
1132
|
+
#
|
909
1133
|
def delete_utilization_report request, options = nil
|
910
1134
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
911
1135
|
|
@@ -985,6 +1209,26 @@ module Google
|
|
985
1209
|
# @return [::Google::Cloud::VMMigration::V1::ListDatacenterConnectorsResponse]
|
986
1210
|
#
|
987
1211
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1212
|
+
#
|
1213
|
+
# @example Basic example
|
1214
|
+
# require "google/cloud/vm_migration/v1"
|
1215
|
+
#
|
1216
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1217
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
1218
|
+
#
|
1219
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1220
|
+
# request = Google::Cloud::VMMigration::V1::ListDatacenterConnectorsRequest.new
|
1221
|
+
#
|
1222
|
+
# # Call the list_datacenter_connectors method.
|
1223
|
+
# result = client.list_datacenter_connectors request
|
1224
|
+
#
|
1225
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1226
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1227
|
+
# result.each do |item|
|
1228
|
+
# # Each element is of type ::Google::Cloud::VMMigration::V1::DatacenterConnector.
|
1229
|
+
# p item
|
1230
|
+
# end
|
1231
|
+
#
|
988
1232
|
def list_datacenter_connectors request, options = nil
|
989
1233
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
990
1234
|
|
@@ -1047,6 +1291,22 @@ module Google
|
|
1047
1291
|
# @return [::Google::Cloud::VMMigration::V1::DatacenterConnector]
|
1048
1292
|
#
|
1049
1293
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1294
|
+
#
|
1295
|
+
# @example Basic example
|
1296
|
+
# require "google/cloud/vm_migration/v1"
|
1297
|
+
#
|
1298
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1299
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
1300
|
+
#
|
1301
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1302
|
+
# request = Google::Cloud::VMMigration::V1::GetDatacenterConnectorRequest.new
|
1303
|
+
#
|
1304
|
+
# # Call the get_datacenter_connector method.
|
1305
|
+
# result = client.get_datacenter_connector request
|
1306
|
+
#
|
1307
|
+
# # The returned object is of type Google::Cloud::VMMigration::V1::DatacenterConnector.
|
1308
|
+
# p result
|
1309
|
+
#
|
1050
1310
|
def get_datacenter_connector request, options = nil
|
1051
1311
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1052
1312
|
|
@@ -1130,6 +1390,29 @@ module Google
|
|
1130
1390
|
# @return [::Gapic::Operation]
|
1131
1391
|
#
|
1132
1392
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1393
|
+
#
|
1394
|
+
# @example Basic example
|
1395
|
+
# require "google/cloud/vm_migration/v1"
|
1396
|
+
#
|
1397
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1398
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
1399
|
+
#
|
1400
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1401
|
+
# request = Google::Cloud::VMMigration::V1::CreateDatacenterConnectorRequest.new
|
1402
|
+
#
|
1403
|
+
# # Call the create_datacenter_connector method.
|
1404
|
+
# result = client.create_datacenter_connector request
|
1405
|
+
#
|
1406
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1407
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1408
|
+
# # Here is how to wait for a response.
|
1409
|
+
# result.wait_until_done! timeout: 60
|
1410
|
+
# if result.response?
|
1411
|
+
# p result.response
|
1412
|
+
# else
|
1413
|
+
# puts "No response received."
|
1414
|
+
# end
|
1415
|
+
#
|
1133
1416
|
def create_datacenter_connector request, options = nil
|
1134
1417
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1135
1418
|
|
@@ -1207,6 +1490,29 @@ module Google
|
|
1207
1490
|
# @return [::Gapic::Operation]
|
1208
1491
|
#
|
1209
1492
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1493
|
+
#
|
1494
|
+
# @example Basic example
|
1495
|
+
# require "google/cloud/vm_migration/v1"
|
1496
|
+
#
|
1497
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1498
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
1499
|
+
#
|
1500
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1501
|
+
# request = Google::Cloud::VMMigration::V1::DeleteDatacenterConnectorRequest.new
|
1502
|
+
#
|
1503
|
+
# # Call the delete_datacenter_connector method.
|
1504
|
+
# result = client.delete_datacenter_connector request
|
1505
|
+
#
|
1506
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1507
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1508
|
+
# # Here is how to wait for a response.
|
1509
|
+
# result.wait_until_done! timeout: 60
|
1510
|
+
# if result.response?
|
1511
|
+
# p result.response
|
1512
|
+
# else
|
1513
|
+
# puts "No response received."
|
1514
|
+
# end
|
1515
|
+
#
|
1210
1516
|
def delete_datacenter_connector request, options = nil
|
1211
1517
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1212
1518
|
|
@@ -1285,6 +1591,29 @@ module Google
|
|
1285
1591
|
# @return [::Gapic::Operation]
|
1286
1592
|
#
|
1287
1593
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1594
|
+
#
|
1595
|
+
# @example Basic example
|
1596
|
+
# require "google/cloud/vm_migration/v1"
|
1597
|
+
#
|
1598
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1599
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
1600
|
+
#
|
1601
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1602
|
+
# request = Google::Cloud::VMMigration::V1::UpgradeApplianceRequest.new
|
1603
|
+
#
|
1604
|
+
# # Call the upgrade_appliance method.
|
1605
|
+
# result = client.upgrade_appliance request
|
1606
|
+
#
|
1607
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1608
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1609
|
+
# # Here is how to wait for a response.
|
1610
|
+
# result.wait_until_done! timeout: 60
|
1611
|
+
# if result.response?
|
1612
|
+
# p result.response
|
1613
|
+
# else
|
1614
|
+
# puts "No response received."
|
1615
|
+
# end
|
1616
|
+
#
|
1288
1617
|
def upgrade_appliance request, options = nil
|
1289
1618
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1290
1619
|
|
@@ -1366,6 +1695,29 @@ module Google
|
|
1366
1695
|
# @return [::Gapic::Operation]
|
1367
1696
|
#
|
1368
1697
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1698
|
+
#
|
1699
|
+
# @example Basic example
|
1700
|
+
# require "google/cloud/vm_migration/v1"
|
1701
|
+
#
|
1702
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1703
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
1704
|
+
#
|
1705
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1706
|
+
# request = Google::Cloud::VMMigration::V1::CreateMigratingVmRequest.new
|
1707
|
+
#
|
1708
|
+
# # Call the create_migrating_vm method.
|
1709
|
+
# result = client.create_migrating_vm request
|
1710
|
+
#
|
1711
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1712
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1713
|
+
# # Here is how to wait for a response.
|
1714
|
+
# result.wait_until_done! timeout: 60
|
1715
|
+
# if result.response?
|
1716
|
+
# p result.response
|
1717
|
+
# else
|
1718
|
+
# puts "No response received."
|
1719
|
+
# end
|
1720
|
+
#
|
1369
1721
|
def create_migrating_vm request, options = nil
|
1370
1722
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1371
1723
|
|
@@ -1446,6 +1798,26 @@ module Google
|
|
1446
1798
|
# @return [::Google::Cloud::VMMigration::V1::ListMigratingVmsResponse]
|
1447
1799
|
#
|
1448
1800
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1801
|
+
#
|
1802
|
+
# @example Basic example
|
1803
|
+
# require "google/cloud/vm_migration/v1"
|
1804
|
+
#
|
1805
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1806
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
1807
|
+
#
|
1808
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1809
|
+
# request = Google::Cloud::VMMigration::V1::ListMigratingVmsRequest.new
|
1810
|
+
#
|
1811
|
+
# # Call the list_migrating_vms method.
|
1812
|
+
# result = client.list_migrating_vms request
|
1813
|
+
#
|
1814
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1815
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1816
|
+
# result.each do |item|
|
1817
|
+
# # Each element is of type ::Google::Cloud::VMMigration::V1::MigratingVm.
|
1818
|
+
# p item
|
1819
|
+
# end
|
1820
|
+
#
|
1449
1821
|
def list_migrating_vms request, options = nil
|
1450
1822
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1451
1823
|
|
@@ -1510,6 +1882,22 @@ module Google
|
|
1510
1882
|
# @return [::Google::Cloud::VMMigration::V1::MigratingVm]
|
1511
1883
|
#
|
1512
1884
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1885
|
+
#
|
1886
|
+
# @example Basic example
|
1887
|
+
# require "google/cloud/vm_migration/v1"
|
1888
|
+
#
|
1889
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1890
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
1891
|
+
#
|
1892
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1893
|
+
# request = Google::Cloud::VMMigration::V1::GetMigratingVmRequest.new
|
1894
|
+
#
|
1895
|
+
# # Call the get_migrating_vm method.
|
1896
|
+
# result = client.get_migrating_vm request
|
1897
|
+
#
|
1898
|
+
# # The returned object is of type Google::Cloud::VMMigration::V1::MigratingVm.
|
1899
|
+
# p result
|
1900
|
+
#
|
1513
1901
|
def get_migrating_vm request, options = nil
|
1514
1902
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1515
1903
|
|
@@ -1592,6 +1980,29 @@ module Google
|
|
1592
1980
|
# @return [::Gapic::Operation]
|
1593
1981
|
#
|
1594
1982
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1983
|
+
#
|
1984
|
+
# @example Basic example
|
1985
|
+
# require "google/cloud/vm_migration/v1"
|
1986
|
+
#
|
1987
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1988
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
1989
|
+
#
|
1990
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1991
|
+
# request = Google::Cloud::VMMigration::V1::UpdateMigratingVmRequest.new
|
1992
|
+
#
|
1993
|
+
# # Call the update_migrating_vm method.
|
1994
|
+
# result = client.update_migrating_vm request
|
1995
|
+
#
|
1996
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1997
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1998
|
+
# # Here is how to wait for a response.
|
1999
|
+
# result.wait_until_done! timeout: 60
|
2000
|
+
# if result.response?
|
2001
|
+
# p result.response
|
2002
|
+
# else
|
2003
|
+
# puts "No response received."
|
2004
|
+
# end
|
2005
|
+
#
|
1595
2006
|
def update_migrating_vm request, options = nil
|
1596
2007
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1597
2008
|
|
@@ -1655,6 +2066,29 @@ module Google
|
|
1655
2066
|
# @return [::Gapic::Operation]
|
1656
2067
|
#
|
1657
2068
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2069
|
+
#
|
2070
|
+
# @example Basic example
|
2071
|
+
# require "google/cloud/vm_migration/v1"
|
2072
|
+
#
|
2073
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2074
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
2075
|
+
#
|
2076
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2077
|
+
# request = Google::Cloud::VMMigration::V1::DeleteMigratingVmRequest.new
|
2078
|
+
#
|
2079
|
+
# # Call the delete_migrating_vm method.
|
2080
|
+
# result = client.delete_migrating_vm request
|
2081
|
+
#
|
2082
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2083
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2084
|
+
# # Here is how to wait for a response.
|
2085
|
+
# result.wait_until_done! timeout: 60
|
2086
|
+
# if result.response?
|
2087
|
+
# p result.response
|
2088
|
+
# else
|
2089
|
+
# puts "No response received."
|
2090
|
+
# end
|
2091
|
+
#
|
1658
2092
|
def delete_migrating_vm request, options = nil
|
1659
2093
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1660
2094
|
|
@@ -1719,6 +2153,29 @@ module Google
|
|
1719
2153
|
# @return [::Gapic::Operation]
|
1720
2154
|
#
|
1721
2155
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2156
|
+
#
|
2157
|
+
# @example Basic example
|
2158
|
+
# require "google/cloud/vm_migration/v1"
|
2159
|
+
#
|
2160
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2161
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
2162
|
+
#
|
2163
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2164
|
+
# request = Google::Cloud::VMMigration::V1::StartMigrationRequest.new
|
2165
|
+
#
|
2166
|
+
# # Call the start_migration method.
|
2167
|
+
# result = client.start_migration request
|
2168
|
+
#
|
2169
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2170
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2171
|
+
# # Here is how to wait for a response.
|
2172
|
+
# result.wait_until_done! timeout: 60
|
2173
|
+
# if result.response?
|
2174
|
+
# p result.response
|
2175
|
+
# else
|
2176
|
+
# puts "No response received."
|
2177
|
+
# end
|
2178
|
+
#
|
1722
2179
|
def start_migration request, options = nil
|
1723
2180
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1724
2181
|
|
@@ -1785,6 +2242,29 @@ module Google
|
|
1785
2242
|
# @return [::Gapic::Operation]
|
1786
2243
|
#
|
1787
2244
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2245
|
+
#
|
2246
|
+
# @example Basic example
|
2247
|
+
# require "google/cloud/vm_migration/v1"
|
2248
|
+
#
|
2249
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2250
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
2251
|
+
#
|
2252
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2253
|
+
# request = Google::Cloud::VMMigration::V1::ResumeMigrationRequest.new
|
2254
|
+
#
|
2255
|
+
# # Call the resume_migration method.
|
2256
|
+
# result = client.resume_migration request
|
2257
|
+
#
|
2258
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2259
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2260
|
+
# # Here is how to wait for a response.
|
2261
|
+
# result.wait_until_done! timeout: 60
|
2262
|
+
# if result.response?
|
2263
|
+
# p result.response
|
2264
|
+
# else
|
2265
|
+
# puts "No response received."
|
2266
|
+
# end
|
2267
|
+
#
|
1788
2268
|
def resume_migration request, options = nil
|
1789
2269
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1790
2270
|
|
@@ -1850,6 +2330,29 @@ module Google
|
|
1850
2330
|
# @return [::Gapic::Operation]
|
1851
2331
|
#
|
1852
2332
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2333
|
+
#
|
2334
|
+
# @example Basic example
|
2335
|
+
# require "google/cloud/vm_migration/v1"
|
2336
|
+
#
|
2337
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2338
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
2339
|
+
#
|
2340
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2341
|
+
# request = Google::Cloud::VMMigration::V1::PauseMigrationRequest.new
|
2342
|
+
#
|
2343
|
+
# # Call the pause_migration method.
|
2344
|
+
# result = client.pause_migration request
|
2345
|
+
#
|
2346
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2347
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2348
|
+
# # Here is how to wait for a response.
|
2349
|
+
# result.wait_until_done! timeout: 60
|
2350
|
+
# if result.response?
|
2351
|
+
# p result.response
|
2352
|
+
# else
|
2353
|
+
# puts "No response received."
|
2354
|
+
# end
|
2355
|
+
#
|
1853
2356
|
def pause_migration request, options = nil
|
1854
2357
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1855
2358
|
|
@@ -1914,6 +2417,29 @@ module Google
|
|
1914
2417
|
# @return [::Gapic::Operation]
|
1915
2418
|
#
|
1916
2419
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2420
|
+
#
|
2421
|
+
# @example Basic example
|
2422
|
+
# require "google/cloud/vm_migration/v1"
|
2423
|
+
#
|
2424
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2425
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
2426
|
+
#
|
2427
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2428
|
+
# request = Google::Cloud::VMMigration::V1::FinalizeMigrationRequest.new
|
2429
|
+
#
|
2430
|
+
# # Call the finalize_migration method.
|
2431
|
+
# result = client.finalize_migration request
|
2432
|
+
#
|
2433
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2434
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2435
|
+
# # Here is how to wait for a response.
|
2436
|
+
# result.wait_until_done! timeout: 60
|
2437
|
+
# if result.response?
|
2438
|
+
# p result.response
|
2439
|
+
# else
|
2440
|
+
# puts "No response received."
|
2441
|
+
# end
|
2442
|
+
#
|
1917
2443
|
def finalize_migration request, options = nil
|
1918
2444
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1919
2445
|
|
@@ -1995,6 +2521,29 @@ module Google
|
|
1995
2521
|
# @return [::Gapic::Operation]
|
1996
2522
|
#
|
1997
2523
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2524
|
+
#
|
2525
|
+
# @example Basic example
|
2526
|
+
# require "google/cloud/vm_migration/v1"
|
2527
|
+
#
|
2528
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2529
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
2530
|
+
#
|
2531
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2532
|
+
# request = Google::Cloud::VMMigration::V1::CreateCloneJobRequest.new
|
2533
|
+
#
|
2534
|
+
# # Call the create_clone_job method.
|
2535
|
+
# result = client.create_clone_job request
|
2536
|
+
#
|
2537
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2538
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2539
|
+
# # Here is how to wait for a response.
|
2540
|
+
# result.wait_until_done! timeout: 60
|
2541
|
+
# if result.response?
|
2542
|
+
# p result.response
|
2543
|
+
# else
|
2544
|
+
# puts "No response received."
|
2545
|
+
# end
|
2546
|
+
#
|
1998
2547
|
def create_clone_job request, options = nil
|
1999
2548
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2000
2549
|
|
@@ -2058,6 +2607,29 @@ module Google
|
|
2058
2607
|
# @return [::Gapic::Operation]
|
2059
2608
|
#
|
2060
2609
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2610
|
+
#
|
2611
|
+
# @example Basic example
|
2612
|
+
# require "google/cloud/vm_migration/v1"
|
2613
|
+
#
|
2614
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2615
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
2616
|
+
#
|
2617
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2618
|
+
# request = Google::Cloud::VMMigration::V1::CancelCloneJobRequest.new
|
2619
|
+
#
|
2620
|
+
# # Call the cancel_clone_job method.
|
2621
|
+
# result = client.cancel_clone_job request
|
2622
|
+
#
|
2623
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2624
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2625
|
+
# # Here is how to wait for a response.
|
2626
|
+
# result.wait_until_done! timeout: 60
|
2627
|
+
# if result.response?
|
2628
|
+
# p result.response
|
2629
|
+
# else
|
2630
|
+
# puts "No response received."
|
2631
|
+
# end
|
2632
|
+
#
|
2061
2633
|
def cancel_clone_job request, options = nil
|
2062
2634
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2063
2635
|
|
@@ -2136,6 +2708,26 @@ module Google
|
|
2136
2708
|
# @return [::Google::Cloud::VMMigration::V1::ListCloneJobsResponse]
|
2137
2709
|
#
|
2138
2710
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2711
|
+
#
|
2712
|
+
# @example Basic example
|
2713
|
+
# require "google/cloud/vm_migration/v1"
|
2714
|
+
#
|
2715
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2716
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
2717
|
+
#
|
2718
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2719
|
+
# request = Google::Cloud::VMMigration::V1::ListCloneJobsRequest.new
|
2720
|
+
#
|
2721
|
+
# # Call the list_clone_jobs method.
|
2722
|
+
# result = client.list_clone_jobs request
|
2723
|
+
#
|
2724
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2725
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2726
|
+
# result.each do |item|
|
2727
|
+
# # Each element is of type ::Google::Cloud::VMMigration::V1::CloneJob.
|
2728
|
+
# p item
|
2729
|
+
# end
|
2730
|
+
#
|
2139
2731
|
def list_clone_jobs request, options = nil
|
2140
2732
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2141
2733
|
|
@@ -2198,6 +2790,22 @@ module Google
|
|
2198
2790
|
# @return [::Google::Cloud::VMMigration::V1::CloneJob]
|
2199
2791
|
#
|
2200
2792
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2793
|
+
#
|
2794
|
+
# @example Basic example
|
2795
|
+
# require "google/cloud/vm_migration/v1"
|
2796
|
+
#
|
2797
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2798
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
2799
|
+
#
|
2800
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2801
|
+
# request = Google::Cloud::VMMigration::V1::GetCloneJobRequest.new
|
2802
|
+
#
|
2803
|
+
# # Call the get_clone_job method.
|
2804
|
+
# result = client.get_clone_job request
|
2805
|
+
#
|
2806
|
+
# # The returned object is of type Google::Cloud::VMMigration::V1::CloneJob.
|
2807
|
+
# p result
|
2808
|
+
#
|
2201
2809
|
def get_clone_job request, options = nil
|
2202
2810
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2203
2811
|
|
@@ -2280,6 +2888,29 @@ module Google
|
|
2280
2888
|
# @return [::Gapic::Operation]
|
2281
2889
|
#
|
2282
2890
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2891
|
+
#
|
2892
|
+
# @example Basic example
|
2893
|
+
# require "google/cloud/vm_migration/v1"
|
2894
|
+
#
|
2895
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2896
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
2897
|
+
#
|
2898
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2899
|
+
# request = Google::Cloud::VMMigration::V1::CreateCutoverJobRequest.new
|
2900
|
+
#
|
2901
|
+
# # Call the create_cutover_job method.
|
2902
|
+
# result = client.create_cutover_job request
|
2903
|
+
#
|
2904
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2905
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2906
|
+
# # Here is how to wait for a response.
|
2907
|
+
# result.wait_until_done! timeout: 60
|
2908
|
+
# if result.response?
|
2909
|
+
# p result.response
|
2910
|
+
# else
|
2911
|
+
# puts "No response received."
|
2912
|
+
# end
|
2913
|
+
#
|
2283
2914
|
def create_cutover_job request, options = nil
|
2284
2915
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2285
2916
|
|
@@ -2343,6 +2974,29 @@ module Google
|
|
2343
2974
|
# @return [::Gapic::Operation]
|
2344
2975
|
#
|
2345
2976
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2977
|
+
#
|
2978
|
+
# @example Basic example
|
2979
|
+
# require "google/cloud/vm_migration/v1"
|
2980
|
+
#
|
2981
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2982
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
2983
|
+
#
|
2984
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2985
|
+
# request = Google::Cloud::VMMigration::V1::CancelCutoverJobRequest.new
|
2986
|
+
#
|
2987
|
+
# # Call the cancel_cutover_job method.
|
2988
|
+
# result = client.cancel_cutover_job request
|
2989
|
+
#
|
2990
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2991
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2992
|
+
# # Here is how to wait for a response.
|
2993
|
+
# result.wait_until_done! timeout: 60
|
2994
|
+
# if result.response?
|
2995
|
+
# p result.response
|
2996
|
+
# else
|
2997
|
+
# puts "No response received."
|
2998
|
+
# end
|
2999
|
+
#
|
2346
3000
|
def cancel_cutover_job request, options = nil
|
2347
3001
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2348
3002
|
|
@@ -2421,6 +3075,26 @@ module Google
|
|
2421
3075
|
# @return [::Google::Cloud::VMMigration::V1::ListCutoverJobsResponse]
|
2422
3076
|
#
|
2423
3077
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3078
|
+
#
|
3079
|
+
# @example Basic example
|
3080
|
+
# require "google/cloud/vm_migration/v1"
|
3081
|
+
#
|
3082
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3083
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
3084
|
+
#
|
3085
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3086
|
+
# request = Google::Cloud::VMMigration::V1::ListCutoverJobsRequest.new
|
3087
|
+
#
|
3088
|
+
# # Call the list_cutover_jobs method.
|
3089
|
+
# result = client.list_cutover_jobs request
|
3090
|
+
#
|
3091
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
3092
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
3093
|
+
# result.each do |item|
|
3094
|
+
# # Each element is of type ::Google::Cloud::VMMigration::V1::CutoverJob.
|
3095
|
+
# p item
|
3096
|
+
# end
|
3097
|
+
#
|
2424
3098
|
def list_cutover_jobs request, options = nil
|
2425
3099
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2426
3100
|
|
@@ -2483,6 +3157,22 @@ module Google
|
|
2483
3157
|
# @return [::Google::Cloud::VMMigration::V1::CutoverJob]
|
2484
3158
|
#
|
2485
3159
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3160
|
+
#
|
3161
|
+
# @example Basic example
|
3162
|
+
# require "google/cloud/vm_migration/v1"
|
3163
|
+
#
|
3164
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3165
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
3166
|
+
#
|
3167
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3168
|
+
# request = Google::Cloud::VMMigration::V1::GetCutoverJobRequest.new
|
3169
|
+
#
|
3170
|
+
# # Call the get_cutover_job method.
|
3171
|
+
# result = client.get_cutover_job request
|
3172
|
+
#
|
3173
|
+
# # The returned object is of type Google::Cloud::VMMigration::V1::CutoverJob.
|
3174
|
+
# p result
|
3175
|
+
#
|
2486
3176
|
def get_cutover_job request, options = nil
|
2487
3177
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2488
3178
|
|
@@ -2560,6 +3250,26 @@ module Google
|
|
2560
3250
|
# @return [::Google::Cloud::VMMigration::V1::ListGroupsResponse]
|
2561
3251
|
#
|
2562
3252
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3253
|
+
#
|
3254
|
+
# @example Basic example
|
3255
|
+
# require "google/cloud/vm_migration/v1"
|
3256
|
+
#
|
3257
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3258
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
3259
|
+
#
|
3260
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3261
|
+
# request = Google::Cloud::VMMigration::V1::ListGroupsRequest.new
|
3262
|
+
#
|
3263
|
+
# # Call the list_groups method.
|
3264
|
+
# result = client.list_groups request
|
3265
|
+
#
|
3266
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
3267
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
3268
|
+
# result.each do |item|
|
3269
|
+
# # Each element is of type ::Google::Cloud::VMMigration::V1::Group.
|
3270
|
+
# p item
|
3271
|
+
# end
|
3272
|
+
#
|
2563
3273
|
def list_groups request, options = nil
|
2564
3274
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2565
3275
|
|
@@ -2622,6 +3332,22 @@ module Google
|
|
2622
3332
|
# @return [::Google::Cloud::VMMigration::V1::Group]
|
2623
3333
|
#
|
2624
3334
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3335
|
+
#
|
3336
|
+
# @example Basic example
|
3337
|
+
# require "google/cloud/vm_migration/v1"
|
3338
|
+
#
|
3339
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3340
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
3341
|
+
#
|
3342
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3343
|
+
# request = Google::Cloud::VMMigration::V1::GetGroupRequest.new
|
3344
|
+
#
|
3345
|
+
# # Call the get_group method.
|
3346
|
+
# result = client.get_group request
|
3347
|
+
#
|
3348
|
+
# # The returned object is of type Google::Cloud::VMMigration::V1::Group.
|
3349
|
+
# p result
|
3350
|
+
#
|
2625
3351
|
def get_group request, options = nil
|
2626
3352
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2627
3353
|
|
@@ -2702,6 +3428,29 @@ module Google
|
|
2702
3428
|
# @return [::Gapic::Operation]
|
2703
3429
|
#
|
2704
3430
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3431
|
+
#
|
3432
|
+
# @example Basic example
|
3433
|
+
# require "google/cloud/vm_migration/v1"
|
3434
|
+
#
|
3435
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3436
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
3437
|
+
#
|
3438
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3439
|
+
# request = Google::Cloud::VMMigration::V1::CreateGroupRequest.new
|
3440
|
+
#
|
3441
|
+
# # Call the create_group method.
|
3442
|
+
# result = client.create_group request
|
3443
|
+
#
|
3444
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3445
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3446
|
+
# # Here is how to wait for a response.
|
3447
|
+
# result.wait_until_done! timeout: 60
|
3448
|
+
# if result.response?
|
3449
|
+
# p result.response
|
3450
|
+
# else
|
3451
|
+
# puts "No response received."
|
3452
|
+
# end
|
3453
|
+
#
|
2705
3454
|
def create_group request, options = nil
|
2706
3455
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2707
3456
|
|
@@ -2785,6 +3534,29 @@ module Google
|
|
2785
3534
|
# @return [::Gapic::Operation]
|
2786
3535
|
#
|
2787
3536
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3537
|
+
#
|
3538
|
+
# @example Basic example
|
3539
|
+
# require "google/cloud/vm_migration/v1"
|
3540
|
+
#
|
3541
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3542
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
3543
|
+
#
|
3544
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3545
|
+
# request = Google::Cloud::VMMigration::V1::UpdateGroupRequest.new
|
3546
|
+
#
|
3547
|
+
# # Call the update_group method.
|
3548
|
+
# result = client.update_group request
|
3549
|
+
#
|
3550
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3551
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3552
|
+
# # Here is how to wait for a response.
|
3553
|
+
# result.wait_until_done! timeout: 60
|
3554
|
+
# if result.response?
|
3555
|
+
# p result.response
|
3556
|
+
# else
|
3557
|
+
# puts "No response received."
|
3558
|
+
# end
|
3559
|
+
#
|
2788
3560
|
def update_group request, options = nil
|
2789
3561
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2790
3562
|
|
@@ -2862,6 +3634,29 @@ module Google
|
|
2862
3634
|
# @return [::Gapic::Operation]
|
2863
3635
|
#
|
2864
3636
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3637
|
+
#
|
3638
|
+
# @example Basic example
|
3639
|
+
# require "google/cloud/vm_migration/v1"
|
3640
|
+
#
|
3641
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3642
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
3643
|
+
#
|
3644
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3645
|
+
# request = Google::Cloud::VMMigration::V1::DeleteGroupRequest.new
|
3646
|
+
#
|
3647
|
+
# # Call the delete_group method.
|
3648
|
+
# result = client.delete_group request
|
3649
|
+
#
|
3650
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3651
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3652
|
+
# # Here is how to wait for a response.
|
3653
|
+
# result.wait_until_done! timeout: 60
|
3654
|
+
# if result.response?
|
3655
|
+
# p result.response
|
3656
|
+
# else
|
3657
|
+
# puts "No response received."
|
3658
|
+
# end
|
3659
|
+
#
|
2865
3660
|
def delete_group request, options = nil
|
2866
3661
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2867
3662
|
|
@@ -2927,6 +3722,29 @@ module Google
|
|
2927
3722
|
# @return [::Gapic::Operation]
|
2928
3723
|
#
|
2929
3724
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3725
|
+
#
|
3726
|
+
# @example Basic example
|
3727
|
+
# require "google/cloud/vm_migration/v1"
|
3728
|
+
#
|
3729
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3730
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
3731
|
+
#
|
3732
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3733
|
+
# request = Google::Cloud::VMMigration::V1::AddGroupMigrationRequest.new
|
3734
|
+
#
|
3735
|
+
# # Call the add_group_migration method.
|
3736
|
+
# result = client.add_group_migration request
|
3737
|
+
#
|
3738
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3739
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3740
|
+
# # Here is how to wait for a response.
|
3741
|
+
# result.wait_until_done! timeout: 60
|
3742
|
+
# if result.response?
|
3743
|
+
# p result.response
|
3744
|
+
# else
|
3745
|
+
# puts "No response received."
|
3746
|
+
# end
|
3747
|
+
#
|
2930
3748
|
def add_group_migration request, options = nil
|
2931
3749
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2932
3750
|
|
@@ -2992,6 +3810,29 @@ module Google
|
|
2992
3810
|
# @return [::Gapic::Operation]
|
2993
3811
|
#
|
2994
3812
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3813
|
+
#
|
3814
|
+
# @example Basic example
|
3815
|
+
# require "google/cloud/vm_migration/v1"
|
3816
|
+
#
|
3817
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3818
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
3819
|
+
#
|
3820
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3821
|
+
# request = Google::Cloud::VMMigration::V1::RemoveGroupMigrationRequest.new
|
3822
|
+
#
|
3823
|
+
# # Call the remove_group_migration method.
|
3824
|
+
# result = client.remove_group_migration request
|
3825
|
+
#
|
3826
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3827
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3828
|
+
# # Here is how to wait for a response.
|
3829
|
+
# result.wait_until_done! timeout: 60
|
3830
|
+
# if result.response?
|
3831
|
+
# p result.response
|
3832
|
+
# else
|
3833
|
+
# puts "No response received."
|
3834
|
+
# end
|
3835
|
+
#
|
2995
3836
|
def remove_group_migration request, options = nil
|
2996
3837
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2997
3838
|
|
@@ -3073,6 +3914,26 @@ module Google
|
|
3073
3914
|
# @return [::Google::Cloud::VMMigration::V1::ListTargetProjectsResponse]
|
3074
3915
|
#
|
3075
3916
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3917
|
+
#
|
3918
|
+
# @example Basic example
|
3919
|
+
# require "google/cloud/vm_migration/v1"
|
3920
|
+
#
|
3921
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3922
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
3923
|
+
#
|
3924
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3925
|
+
# request = Google::Cloud::VMMigration::V1::ListTargetProjectsRequest.new
|
3926
|
+
#
|
3927
|
+
# # Call the list_target_projects method.
|
3928
|
+
# result = client.list_target_projects request
|
3929
|
+
#
|
3930
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
3931
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
3932
|
+
# result.each do |item|
|
3933
|
+
# # Each element is of type ::Google::Cloud::VMMigration::V1::TargetProject.
|
3934
|
+
# p item
|
3935
|
+
# end
|
3936
|
+
#
|
3076
3937
|
def list_target_projects request, options = nil
|
3077
3938
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3078
3939
|
|
@@ -3138,6 +3999,22 @@ module Google
|
|
3138
3999
|
# @return [::Google::Cloud::VMMigration::V1::TargetProject]
|
3139
4000
|
#
|
3140
4001
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
4002
|
+
#
|
4003
|
+
# @example Basic example
|
4004
|
+
# require "google/cloud/vm_migration/v1"
|
4005
|
+
#
|
4006
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4007
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
4008
|
+
#
|
4009
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4010
|
+
# request = Google::Cloud::VMMigration::V1::GetTargetProjectRequest.new
|
4011
|
+
#
|
4012
|
+
# # Call the get_target_project method.
|
4013
|
+
# result = client.get_target_project request
|
4014
|
+
#
|
4015
|
+
# # The returned object is of type Google::Cloud::VMMigration::V1::TargetProject.
|
4016
|
+
# p result
|
4017
|
+
#
|
3141
4018
|
def get_target_project request, options = nil
|
3142
4019
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3143
4020
|
|
@@ -3221,6 +4098,29 @@ module Google
|
|
3221
4098
|
# @return [::Gapic::Operation]
|
3222
4099
|
#
|
3223
4100
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
4101
|
+
#
|
4102
|
+
# @example Basic example
|
4103
|
+
# require "google/cloud/vm_migration/v1"
|
4104
|
+
#
|
4105
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4106
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
4107
|
+
#
|
4108
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4109
|
+
# request = Google::Cloud::VMMigration::V1::CreateTargetProjectRequest.new
|
4110
|
+
#
|
4111
|
+
# # Call the create_target_project method.
|
4112
|
+
# result = client.create_target_project request
|
4113
|
+
#
|
4114
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
4115
|
+
# # check the status of an operation, cancel it, or wait for results.
|
4116
|
+
# # Here is how to wait for a response.
|
4117
|
+
# result.wait_until_done! timeout: 60
|
4118
|
+
# if result.response?
|
4119
|
+
# p result.response
|
4120
|
+
# else
|
4121
|
+
# puts "No response received."
|
4122
|
+
# end
|
4123
|
+
#
|
3224
4124
|
def create_target_project request, options = nil
|
3225
4125
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3226
4126
|
|
@@ -3307,6 +4207,29 @@ module Google
|
|
3307
4207
|
# @return [::Gapic::Operation]
|
3308
4208
|
#
|
3309
4209
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
4210
|
+
#
|
4211
|
+
# @example Basic example
|
4212
|
+
# require "google/cloud/vm_migration/v1"
|
4213
|
+
#
|
4214
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4215
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
4216
|
+
#
|
4217
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4218
|
+
# request = Google::Cloud::VMMigration::V1::UpdateTargetProjectRequest.new
|
4219
|
+
#
|
4220
|
+
# # Call the update_target_project method.
|
4221
|
+
# result = client.update_target_project request
|
4222
|
+
#
|
4223
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
4224
|
+
# # check the status of an operation, cancel it, or wait for results.
|
4225
|
+
# # Here is how to wait for a response.
|
4226
|
+
# result.wait_until_done! timeout: 60
|
4227
|
+
# if result.response?
|
4228
|
+
# p result.response
|
4229
|
+
# else
|
4230
|
+
# puts "No response received."
|
4231
|
+
# end
|
4232
|
+
#
|
3310
4233
|
def update_target_project request, options = nil
|
3311
4234
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3312
4235
|
|
@@ -3387,6 +4310,29 @@ module Google
|
|
3387
4310
|
# @return [::Gapic::Operation]
|
3388
4311
|
#
|
3389
4312
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
4313
|
+
#
|
4314
|
+
# @example Basic example
|
4315
|
+
# require "google/cloud/vm_migration/v1"
|
4316
|
+
#
|
4317
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4318
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
4319
|
+
#
|
4320
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4321
|
+
# request = Google::Cloud::VMMigration::V1::DeleteTargetProjectRequest.new
|
4322
|
+
#
|
4323
|
+
# # Call the delete_target_project method.
|
4324
|
+
# result = client.delete_target_project request
|
4325
|
+
#
|
4326
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
4327
|
+
# # check the status of an operation, cancel it, or wait for results.
|
4328
|
+
# # Here is how to wait for a response.
|
4329
|
+
# result.wait_until_done! timeout: 60
|
4330
|
+
# if result.response?
|
4331
|
+
# p result.response
|
4332
|
+
# else
|
4333
|
+
# puts "No response received."
|
4334
|
+
# end
|
4335
|
+
#
|
3390
4336
|
def delete_target_project request, options = nil
|
3391
4337
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3392
4338
|
|
@@ -3465,6 +4411,26 @@ module Google
|
|
3465
4411
|
# @return [::Google::Cloud::VMMigration::V1::ListReplicationCyclesResponse]
|
3466
4412
|
#
|
3467
4413
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
4414
|
+
#
|
4415
|
+
# @example Basic example
|
4416
|
+
# require "google/cloud/vm_migration/v1"
|
4417
|
+
#
|
4418
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4419
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
4420
|
+
#
|
4421
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4422
|
+
# request = Google::Cloud::VMMigration::V1::ListReplicationCyclesRequest.new
|
4423
|
+
#
|
4424
|
+
# # Call the list_replication_cycles method.
|
4425
|
+
# result = client.list_replication_cycles request
|
4426
|
+
#
|
4427
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
4428
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
4429
|
+
# result.each do |item|
|
4430
|
+
# # Each element is of type ::Google::Cloud::VMMigration::V1::ReplicationCycle.
|
4431
|
+
# p item
|
4432
|
+
# end
|
4433
|
+
#
|
3468
4434
|
def list_replication_cycles request, options = nil
|
3469
4435
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3470
4436
|
|
@@ -3527,6 +4493,22 @@ module Google
|
|
3527
4493
|
# @return [::Google::Cloud::VMMigration::V1::ReplicationCycle]
|
3528
4494
|
#
|
3529
4495
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
4496
|
+
#
|
4497
|
+
# @example Basic example
|
4498
|
+
# require "google/cloud/vm_migration/v1"
|
4499
|
+
#
|
4500
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4501
|
+
# client = Google::Cloud::VMMigration::V1::VMMigration::Rest::Client.new
|
4502
|
+
#
|
4503
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4504
|
+
# request = Google::Cloud::VMMigration::V1::GetReplicationCycleRequest.new
|
4505
|
+
#
|
4506
|
+
# # Call the get_replication_cycle method.
|
4507
|
+
# result = client.get_replication_cycle request
|
4508
|
+
#
|
4509
|
+
# # The returned object is of type Google::Cloud::VMMigration::V1::ReplicationCycle.
|
4510
|
+
# p result
|
4511
|
+
#
|
3530
4512
|
def get_replication_cycle request, options = nil
|
3531
4513
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3532
4514
|
|
@@ -3592,9 +4574,9 @@ module Google
|
|
3592
4574
|
# end
|
3593
4575
|
#
|
3594
4576
|
# @!attribute [rw] endpoint
|
3595
|
-
#
|
3596
|
-
#
|
3597
|
-
# @return [::String]
|
4577
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
4578
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
4579
|
+
# @return [::String,nil]
|
3598
4580
|
# @!attribute [rw] credentials
|
3599
4581
|
# Credentials to send with calls. You may provide any of the following types:
|
3600
4582
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -3631,13 +4613,20 @@ module Google
|
|
3631
4613
|
# @!attribute [rw] quota_project
|
3632
4614
|
# A separate project against which to charge quota.
|
3633
4615
|
# @return [::String]
|
4616
|
+
# @!attribute [rw] universe_domain
|
4617
|
+
# The universe domain within which to make requests. This determines the
|
4618
|
+
# default endpoint URL. The default value of nil uses the environment
|
4619
|
+
# universe (usually the default "googleapis.com" universe).
|
4620
|
+
# @return [::String,nil]
|
3634
4621
|
#
|
3635
4622
|
class Configuration
|
3636
4623
|
extend ::Gapic::Config
|
3637
4624
|
|
4625
|
+
# @private
|
4626
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
3638
4627
|
DEFAULT_ENDPOINT = "vmmigration.googleapis.com"
|
3639
4628
|
|
3640
|
-
config_attr :endpoint,
|
4629
|
+
config_attr :endpoint, nil, ::String, nil
|
3641
4630
|
config_attr :credentials, nil do |value|
|
3642
4631
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
3643
4632
|
allowed.any? { |klass| klass === value }
|
@@ -3649,6 +4638,7 @@ module Google
|
|
3649
4638
|
config_attr :metadata, nil, ::Hash, nil
|
3650
4639
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
3651
4640
|
config_attr :quota_project, nil, ::String, nil
|
4641
|
+
config_attr :universe_domain, nil, ::String, nil
|
3652
4642
|
|
3653
4643
|
# @private
|
3654
4644
|
# Overrides for http bindings for the RPCs of this service
|