google-cloud-vmware_engine-v1 0.4.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -34,6 +34,9 @@ module Google
34
34
  # VMwareEngine manages VMware's private clusters in the Cloud.
35
35
  #
36
36
  class Client
37
+ # @private
38
+ DEFAULT_ENDPOINT_TEMPLATE = "vmwareengine.$UNIVERSE_DOMAIN$"
39
+
37
40
  include Paths
38
41
 
39
42
  # @private
@@ -193,6 +196,15 @@ module Google
193
196
  @config
194
197
  end
195
198
 
199
+ ##
200
+ # The effective universe domain
201
+ #
202
+ # @return [String]
203
+ #
204
+ def universe_domain
205
+ @vmware_engine_stub.universe_domain
206
+ end
207
+
196
208
  ##
197
209
  # Create a new VmwareEngine REST client object.
198
210
  #
@@ -220,8 +232,9 @@ module Google
220
232
  credentials = @config.credentials
221
233
  # Use self-signed JWT if the endpoint is unchanged from default,
222
234
  # but only if the default endpoint does not have a region prefix.
223
- enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
224
- !@config.endpoint.split(".").first.include?("-")
235
+ enable_self_signed_jwt = @config.endpoint.nil? ||
236
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
237
+ !@config.endpoint.split(".").first.include?("-"))
225
238
  credentials ||= Credentials.default scope: @config.scope,
226
239
  enable_self_signed_jwt: enable_self_signed_jwt
227
240
  if credentials.is_a?(::String) || credentials.is_a?(::Hash)
@@ -235,12 +248,14 @@ module Google
235
248
  config.credentials = credentials
236
249
  config.quota_project = @quota_project_id
237
250
  config.endpoint = @config.endpoint
251
+ config.universe_domain = @config.universe_domain
238
252
  end
239
253
 
240
254
  @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
241
255
  config.credentials = credentials
242
256
  config.quota_project = @quota_project_id
243
257
  config.endpoint = @config.endpoint
258
+ config.universe_domain = @config.universe_domain
244
259
  config.bindings_override = @config.bindings_override
245
260
  end
246
261
 
@@ -248,10 +263,16 @@ module Google
248
263
  config.credentials = credentials
249
264
  config.quota_project = @quota_project_id
250
265
  config.endpoint = @config.endpoint
266
+ config.universe_domain = @config.universe_domain
251
267
  config.bindings_override = @config.bindings_override
252
268
  end
253
269
 
254
- @vmware_engine_stub = ::Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
270
+ @vmware_engine_stub = ::Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::ServiceStub.new(
271
+ endpoint: @config.endpoint,
272
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
273
+ universe_domain: @config.universe_domain,
274
+ credentials: credentials
275
+ )
255
276
  end
256
277
 
257
278
  ##
@@ -352,6 +373,26 @@ module Google
352
373
  # @return [::Google::Cloud::VmwareEngine::V1::ListPrivateCloudsResponse]
353
374
  #
354
375
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
376
+ #
377
+ # @example Basic example
378
+ # require "google/cloud/vmware_engine/v1"
379
+ #
380
+ # # Create a client object. The client can be reused for multiple calls.
381
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
382
+ #
383
+ # # Create a request. To set request fields, pass in keyword arguments.
384
+ # request = Google::Cloud::VmwareEngine::V1::ListPrivateCloudsRequest.new
385
+ #
386
+ # # Call the list_private_clouds method.
387
+ # result = client.list_private_clouds request
388
+ #
389
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
390
+ # # over elements, and API calls will be issued to fetch pages as needed.
391
+ # result.each do |item|
392
+ # # Each element is of type ::Google::Cloud::VmwareEngine::V1::PrivateCloud.
393
+ # p item
394
+ # end
395
+ #
355
396
  def list_private_clouds request, options = nil
356
397
  raise ::ArgumentError, "request must be provided" if request.nil?
357
398
 
@@ -418,6 +459,22 @@ module Google
418
459
  # @return [::Google::Cloud::VmwareEngine::V1::PrivateCloud]
419
460
  #
420
461
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
462
+ #
463
+ # @example Basic example
464
+ # require "google/cloud/vmware_engine/v1"
465
+ #
466
+ # # Create a client object. The client can be reused for multiple calls.
467
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
468
+ #
469
+ # # Create a request. To set request fields, pass in keyword arguments.
470
+ # request = Google::Cloud::VmwareEngine::V1::GetPrivateCloudRequest.new
471
+ #
472
+ # # Call the get_private_cloud method.
473
+ # result = client.get_private_cloud request
474
+ #
475
+ # # The returned object is of type Google::Cloud::VmwareEngine::V1::PrivateCloud.
476
+ # p result
477
+ #
421
478
  def get_private_cloud request, options = nil
422
479
  raise ::ArgumentError, "request must be provided" if request.nil?
423
480
 
@@ -510,6 +567,29 @@ module Google
510
567
  # @return [::Gapic::Operation]
511
568
  #
512
569
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
570
+ #
571
+ # @example Basic example
572
+ # require "google/cloud/vmware_engine/v1"
573
+ #
574
+ # # Create a client object. The client can be reused for multiple calls.
575
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
576
+ #
577
+ # # Create a request. To set request fields, pass in keyword arguments.
578
+ # request = Google::Cloud::VmwareEngine::V1::CreatePrivateCloudRequest.new
579
+ #
580
+ # # Call the create_private_cloud method.
581
+ # result = client.create_private_cloud request
582
+ #
583
+ # # The returned object is of type Gapic::Operation. You can use it to
584
+ # # check the status of an operation, cancel it, or wait for results.
585
+ # # Here is how to wait for a response.
586
+ # result.wait_until_done! timeout: 60
587
+ # if result.response?
588
+ # p result.response
589
+ # else
590
+ # puts "No response received."
591
+ # end
592
+ #
513
593
  def create_private_cloud request, options = nil
514
594
  raise ::ArgumentError, "request must be provided" if request.nil?
515
595
 
@@ -589,6 +669,29 @@ module Google
589
669
  # @return [::Gapic::Operation]
590
670
  #
591
671
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
672
+ #
673
+ # @example Basic example
674
+ # require "google/cloud/vmware_engine/v1"
675
+ #
676
+ # # Create a client object. The client can be reused for multiple calls.
677
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
678
+ #
679
+ # # Create a request. To set request fields, pass in keyword arguments.
680
+ # request = Google::Cloud::VmwareEngine::V1::UpdatePrivateCloudRequest.new
681
+ #
682
+ # # Call the update_private_cloud method.
683
+ # result = client.update_private_cloud request
684
+ #
685
+ # # The returned object is of type Gapic::Operation. You can use it to
686
+ # # check the status of an operation, cancel it, or wait for results.
687
+ # # Here is how to wait for a response.
688
+ # result.wait_until_done! timeout: 60
689
+ # if result.response?
690
+ # p result.response
691
+ # else
692
+ # puts "No response received."
693
+ # end
694
+ #
592
695
  def update_private_cloud request, options = nil
593
696
  raise ::ArgumentError, "request must be provided" if request.nil?
594
697
 
@@ -688,6 +791,29 @@ module Google
688
791
  # @return [::Gapic::Operation]
689
792
  #
690
793
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
794
+ #
795
+ # @example Basic example
796
+ # require "google/cloud/vmware_engine/v1"
797
+ #
798
+ # # Create a client object. The client can be reused for multiple calls.
799
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
800
+ #
801
+ # # Create a request. To set request fields, pass in keyword arguments.
802
+ # request = Google::Cloud::VmwareEngine::V1::DeletePrivateCloudRequest.new
803
+ #
804
+ # # Call the delete_private_cloud method.
805
+ # result = client.delete_private_cloud request
806
+ #
807
+ # # The returned object is of type Gapic::Operation. You can use it to
808
+ # # check the status of an operation, cancel it, or wait for results.
809
+ # # Here is how to wait for a response.
810
+ # result.wait_until_done! timeout: 60
811
+ # if result.response?
812
+ # p result.response
813
+ # else
814
+ # puts "No response received."
815
+ # end
816
+ #
691
817
  def delete_private_cloud request, options = nil
692
818
  raise ::ArgumentError, "request must be provided" if request.nil?
693
819
 
@@ -761,6 +887,29 @@ module Google
761
887
  # @return [::Gapic::Operation]
762
888
  #
763
889
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
890
+ #
891
+ # @example Basic example
892
+ # require "google/cloud/vmware_engine/v1"
893
+ #
894
+ # # Create a client object. The client can be reused for multiple calls.
895
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
896
+ #
897
+ # # Create a request. To set request fields, pass in keyword arguments.
898
+ # request = Google::Cloud::VmwareEngine::V1::UndeletePrivateCloudRequest.new
899
+ #
900
+ # # Call the undelete_private_cloud method.
901
+ # result = client.undelete_private_cloud request
902
+ #
903
+ # # The returned object is of type Gapic::Operation. You can use it to
904
+ # # check the status of an operation, cancel it, or wait for results.
905
+ # # Here is how to wait for a response.
906
+ # result.wait_until_done! timeout: 60
907
+ # if result.response?
908
+ # p result.response
909
+ # else
910
+ # puts "No response received."
911
+ # end
912
+ #
764
913
  def undelete_private_cloud request, options = nil
765
914
  raise ::ArgumentError, "request must be provided" if request.nil?
766
915
 
@@ -859,6 +1008,26 @@ module Google
859
1008
  # @return [::Google::Cloud::VmwareEngine::V1::ListClustersResponse]
860
1009
  #
861
1010
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1011
+ #
1012
+ # @example Basic example
1013
+ # require "google/cloud/vmware_engine/v1"
1014
+ #
1015
+ # # Create a client object. The client can be reused for multiple calls.
1016
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
1017
+ #
1018
+ # # Create a request. To set request fields, pass in keyword arguments.
1019
+ # request = Google::Cloud::VmwareEngine::V1::ListClustersRequest.new
1020
+ #
1021
+ # # Call the list_clusters method.
1022
+ # result = client.list_clusters request
1023
+ #
1024
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1025
+ # # over elements, and API calls will be issued to fetch pages as needed.
1026
+ # result.each do |item|
1027
+ # # Each element is of type ::Google::Cloud::VmwareEngine::V1::Cluster.
1028
+ # p item
1029
+ # end
1030
+ #
862
1031
  def list_clusters request, options = nil
863
1032
  raise ::ArgumentError, "request must be provided" if request.nil?
864
1033
 
@@ -925,6 +1094,22 @@ module Google
925
1094
  # @return [::Google::Cloud::VmwareEngine::V1::Cluster]
926
1095
  #
927
1096
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1097
+ #
1098
+ # @example Basic example
1099
+ # require "google/cloud/vmware_engine/v1"
1100
+ #
1101
+ # # Create a client object. The client can be reused for multiple calls.
1102
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
1103
+ #
1104
+ # # Create a request. To set request fields, pass in keyword arguments.
1105
+ # request = Google::Cloud::VmwareEngine::V1::GetClusterRequest.new
1106
+ #
1107
+ # # Call the get_cluster method.
1108
+ # result = client.get_cluster request
1109
+ #
1110
+ # # The returned object is of type Google::Cloud::VmwareEngine::V1::Cluster.
1111
+ # p result
1112
+ #
928
1113
  def get_cluster request, options = nil
929
1114
  raise ::ArgumentError, "request must be provided" if request.nil?
930
1115
 
@@ -1014,6 +1199,29 @@ module Google
1014
1199
  # @return [::Gapic::Operation]
1015
1200
  #
1016
1201
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1202
+ #
1203
+ # @example Basic example
1204
+ # require "google/cloud/vmware_engine/v1"
1205
+ #
1206
+ # # Create a client object. The client can be reused for multiple calls.
1207
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
1208
+ #
1209
+ # # Create a request. To set request fields, pass in keyword arguments.
1210
+ # request = Google::Cloud::VmwareEngine::V1::CreateClusterRequest.new
1211
+ #
1212
+ # # Call the create_cluster method.
1213
+ # result = client.create_cluster request
1214
+ #
1215
+ # # The returned object is of type Gapic::Operation. You can use it to
1216
+ # # check the status of an operation, cancel it, or wait for results.
1217
+ # # Here is how to wait for a response.
1218
+ # result.wait_until_done! timeout: 60
1219
+ # if result.response?
1220
+ # p result.response
1221
+ # else
1222
+ # puts "No response received."
1223
+ # end
1224
+ #
1017
1225
  def create_cluster request, options = nil
1018
1226
  raise ::ArgumentError, "request must be provided" if request.nil?
1019
1227
 
@@ -1096,6 +1304,29 @@ module Google
1096
1304
  # @return [::Gapic::Operation]
1097
1305
  #
1098
1306
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1307
+ #
1308
+ # @example Basic example
1309
+ # require "google/cloud/vmware_engine/v1"
1310
+ #
1311
+ # # Create a client object. The client can be reused for multiple calls.
1312
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
1313
+ #
1314
+ # # Create a request. To set request fields, pass in keyword arguments.
1315
+ # request = Google::Cloud::VmwareEngine::V1::UpdateClusterRequest.new
1316
+ #
1317
+ # # Call the update_cluster method.
1318
+ # result = client.update_cluster request
1319
+ #
1320
+ # # The returned object is of type Gapic::Operation. You can use it to
1321
+ # # check the status of an operation, cancel it, or wait for results.
1322
+ # # Here is how to wait for a response.
1323
+ # result.wait_until_done! timeout: 60
1324
+ # if result.response?
1325
+ # p result.response
1326
+ # else
1327
+ # puts "No response received."
1328
+ # end
1329
+ #
1099
1330
  def update_cluster request, options = nil
1100
1331
  raise ::ArgumentError, "request must be provided" if request.nil?
1101
1332
 
@@ -1169,6 +1400,29 @@ module Google
1169
1400
  # @return [::Gapic::Operation]
1170
1401
  #
1171
1402
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1403
+ #
1404
+ # @example Basic example
1405
+ # require "google/cloud/vmware_engine/v1"
1406
+ #
1407
+ # # Create a client object. The client can be reused for multiple calls.
1408
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
1409
+ #
1410
+ # # Create a request. To set request fields, pass in keyword arguments.
1411
+ # request = Google::Cloud::VmwareEngine::V1::DeleteClusterRequest.new
1412
+ #
1413
+ # # Call the delete_cluster method.
1414
+ # result = client.delete_cluster request
1415
+ #
1416
+ # # The returned object is of type Gapic::Operation. You can use it to
1417
+ # # check the status of an operation, cancel it, or wait for results.
1418
+ # # Here is how to wait for a response.
1419
+ # result.wait_until_done! timeout: 60
1420
+ # if result.response?
1421
+ # p result.response
1422
+ # else
1423
+ # puts "No response received."
1424
+ # end
1425
+ #
1172
1426
  def delete_cluster request, options = nil
1173
1427
  raise ::ArgumentError, "request must be provided" if request.nil?
1174
1428
 
@@ -1248,6 +1502,26 @@ module Google
1248
1502
  # @return [::Google::Cloud::VmwareEngine::V1::ListSubnetsResponse]
1249
1503
  #
1250
1504
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1505
+ #
1506
+ # @example Basic example
1507
+ # require "google/cloud/vmware_engine/v1"
1508
+ #
1509
+ # # Create a client object. The client can be reused for multiple calls.
1510
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
1511
+ #
1512
+ # # Create a request. To set request fields, pass in keyword arguments.
1513
+ # request = Google::Cloud::VmwareEngine::V1::ListSubnetsRequest.new
1514
+ #
1515
+ # # Call the list_subnets method.
1516
+ # result = client.list_subnets request
1517
+ #
1518
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1519
+ # # over elements, and API calls will be issued to fetch pages as needed.
1520
+ # result.each do |item|
1521
+ # # Each element is of type ::Google::Cloud::VmwareEngine::V1::Subnet.
1522
+ # p item
1523
+ # end
1524
+ #
1251
1525
  def list_subnets request, options = nil
1252
1526
  raise ::ArgumentError, "request must be provided" if request.nil?
1253
1527
 
@@ -1314,6 +1588,22 @@ module Google
1314
1588
  # @return [::Google::Cloud::VmwareEngine::V1::Subnet]
1315
1589
  #
1316
1590
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1591
+ #
1592
+ # @example Basic example
1593
+ # require "google/cloud/vmware_engine/v1"
1594
+ #
1595
+ # # Create a client object. The client can be reused for multiple calls.
1596
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
1597
+ #
1598
+ # # Create a request. To set request fields, pass in keyword arguments.
1599
+ # request = Google::Cloud::VmwareEngine::V1::GetSubnetRequest.new
1600
+ #
1601
+ # # Call the get_subnet method.
1602
+ # result = client.get_subnet request
1603
+ #
1604
+ # # The returned object is of type Google::Cloud::VmwareEngine::V1::Subnet.
1605
+ # p result
1606
+ #
1317
1607
  def get_subnet request, options = nil
1318
1608
  raise ::ArgumentError, "request must be provided" if request.nil?
1319
1609
 
@@ -1387,6 +1677,29 @@ module Google
1387
1677
  # @return [::Gapic::Operation]
1388
1678
  #
1389
1679
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1680
+ #
1681
+ # @example Basic example
1682
+ # require "google/cloud/vmware_engine/v1"
1683
+ #
1684
+ # # Create a client object. The client can be reused for multiple calls.
1685
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
1686
+ #
1687
+ # # Create a request. To set request fields, pass in keyword arguments.
1688
+ # request = Google::Cloud::VmwareEngine::V1::UpdateSubnetRequest.new
1689
+ #
1690
+ # # Call the update_subnet method.
1691
+ # result = client.update_subnet request
1692
+ #
1693
+ # # The returned object is of type Gapic::Operation. You can use it to
1694
+ # # check the status of an operation, cancel it, or wait for results.
1695
+ # # Here is how to wait for a response.
1696
+ # result.wait_until_done! timeout: 60
1697
+ # if result.response?
1698
+ # p result.response
1699
+ # else
1700
+ # puts "No response received."
1701
+ # end
1702
+ #
1390
1703
  def update_subnet request, options = nil
1391
1704
  raise ::ArgumentError, "request must be provided" if request.nil?
1392
1705
 
@@ -1491,6 +1804,26 @@ module Google
1491
1804
  # @return [::Google::Cloud::VmwareEngine::V1::ListNodeTypesResponse]
1492
1805
  #
1493
1806
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1807
+ #
1808
+ # @example Basic example
1809
+ # require "google/cloud/vmware_engine/v1"
1810
+ #
1811
+ # # Create a client object. The client can be reused for multiple calls.
1812
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
1813
+ #
1814
+ # # Create a request. To set request fields, pass in keyword arguments.
1815
+ # request = Google::Cloud::VmwareEngine::V1::ListNodeTypesRequest.new
1816
+ #
1817
+ # # Call the list_node_types method.
1818
+ # result = client.list_node_types request
1819
+ #
1820
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1821
+ # # over elements, and API calls will be issued to fetch pages as needed.
1822
+ # result.each do |item|
1823
+ # # Each element is of type ::Google::Cloud::VmwareEngine::V1::NodeType.
1824
+ # p item
1825
+ # end
1826
+ #
1494
1827
  def list_node_types request, options = nil
1495
1828
  raise ::ArgumentError, "request must be provided" if request.nil?
1496
1829
 
@@ -1557,6 +1890,22 @@ module Google
1557
1890
  # @return [::Google::Cloud::VmwareEngine::V1::NodeType]
1558
1891
  #
1559
1892
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1893
+ #
1894
+ # @example Basic example
1895
+ # require "google/cloud/vmware_engine/v1"
1896
+ #
1897
+ # # Create a client object. The client can be reused for multiple calls.
1898
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
1899
+ #
1900
+ # # Create a request. To set request fields, pass in keyword arguments.
1901
+ # request = Google::Cloud::VmwareEngine::V1::GetNodeTypeRequest.new
1902
+ #
1903
+ # # Call the get_node_type method.
1904
+ # result = client.get_node_type request
1905
+ #
1906
+ # # The returned object is of type Google::Cloud::VmwareEngine::V1::NodeType.
1907
+ # p result
1908
+ #
1560
1909
  def get_node_type request, options = nil
1561
1910
  raise ::ArgumentError, "request must be provided" if request.nil?
1562
1911
 
@@ -1624,6 +1973,22 @@ module Google
1624
1973
  # @return [::Google::Cloud::VmwareEngine::V1::Credentials]
1625
1974
  #
1626
1975
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1976
+ #
1977
+ # @example Basic example
1978
+ # require "google/cloud/vmware_engine/v1"
1979
+ #
1980
+ # # Create a client object. The client can be reused for multiple calls.
1981
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
1982
+ #
1983
+ # # Create a request. To set request fields, pass in keyword arguments.
1984
+ # request = Google::Cloud::VmwareEngine::V1::ShowNsxCredentialsRequest.new
1985
+ #
1986
+ # # Call the show_nsx_credentials method.
1987
+ # result = client.show_nsx_credentials request
1988
+ #
1989
+ # # The returned object is of type Google::Cloud::VmwareEngine::V1::Credentials.
1990
+ # p result
1991
+ #
1627
1992
  def show_nsx_credentials request, options = nil
1628
1993
  raise ::ArgumentError, "request must be provided" if request.nil?
1629
1994
 
@@ -1691,6 +2056,22 @@ module Google
1691
2056
  # @return [::Google::Cloud::VmwareEngine::V1::Credentials]
1692
2057
  #
1693
2058
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2059
+ #
2060
+ # @example Basic example
2061
+ # require "google/cloud/vmware_engine/v1"
2062
+ #
2063
+ # # Create a client object. The client can be reused for multiple calls.
2064
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
2065
+ #
2066
+ # # Create a request. To set request fields, pass in keyword arguments.
2067
+ # request = Google::Cloud::VmwareEngine::V1::ShowVcenterCredentialsRequest.new
2068
+ #
2069
+ # # Call the show_vcenter_credentials method.
2070
+ # result = client.show_vcenter_credentials request
2071
+ #
2072
+ # # The returned object is of type Google::Cloud::VmwareEngine::V1::Credentials.
2073
+ # p result
2074
+ #
1694
2075
  def show_vcenter_credentials request, options = nil
1695
2076
  raise ::ArgumentError, "request must be provided" if request.nil?
1696
2077
 
@@ -1773,6 +2154,29 @@ module Google
1773
2154
  # @return [::Gapic::Operation]
1774
2155
  #
1775
2156
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2157
+ #
2158
+ # @example Basic example
2159
+ # require "google/cloud/vmware_engine/v1"
2160
+ #
2161
+ # # Create a client object. The client can be reused for multiple calls.
2162
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
2163
+ #
2164
+ # # Create a request. To set request fields, pass in keyword arguments.
2165
+ # request = Google::Cloud::VmwareEngine::V1::ResetNsxCredentialsRequest.new
2166
+ #
2167
+ # # Call the reset_nsx_credentials method.
2168
+ # result = client.reset_nsx_credentials request
2169
+ #
2170
+ # # The returned object is of type Gapic::Operation. You can use it to
2171
+ # # check the status of an operation, cancel it, or wait for results.
2172
+ # # Here is how to wait for a response.
2173
+ # result.wait_until_done! timeout: 60
2174
+ # if result.response?
2175
+ # p result.response
2176
+ # else
2177
+ # puts "No response received."
2178
+ # end
2179
+ #
1776
2180
  def reset_nsx_credentials request, options = nil
1777
2181
  raise ::ArgumentError, "request must be provided" if request.nil?
1778
2182
 
@@ -1856,6 +2260,29 @@ module Google
1856
2260
  # @return [::Gapic::Operation]
1857
2261
  #
1858
2262
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2263
+ #
2264
+ # @example Basic example
2265
+ # require "google/cloud/vmware_engine/v1"
2266
+ #
2267
+ # # Create a client object. The client can be reused for multiple calls.
2268
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
2269
+ #
2270
+ # # Create a request. To set request fields, pass in keyword arguments.
2271
+ # request = Google::Cloud::VmwareEngine::V1::ResetVcenterCredentialsRequest.new
2272
+ #
2273
+ # # Call the reset_vcenter_credentials method.
2274
+ # result = client.reset_vcenter_credentials request
2275
+ #
2276
+ # # The returned object is of type Gapic::Operation. You can use it to
2277
+ # # check the status of an operation, cancel it, or wait for results.
2278
+ # # Here is how to wait for a response.
2279
+ # result.wait_until_done! timeout: 60
2280
+ # if result.response?
2281
+ # p result.response
2282
+ # else
2283
+ # puts "No response received."
2284
+ # end
2285
+ #
1859
2286
  def reset_vcenter_credentials request, options = nil
1860
2287
  raise ::ArgumentError, "request must be provided" if request.nil?
1861
2288
 
@@ -1953,6 +2380,29 @@ module Google
1953
2380
  # @return [::Gapic::Operation]
1954
2381
  #
1955
2382
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2383
+ #
2384
+ # @example Basic example
2385
+ # require "google/cloud/vmware_engine/v1"
2386
+ #
2387
+ # # Create a client object. The client can be reused for multiple calls.
2388
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
2389
+ #
2390
+ # # Create a request. To set request fields, pass in keyword arguments.
2391
+ # request = Google::Cloud::VmwareEngine::V1::CreateHcxActivationKeyRequest.new
2392
+ #
2393
+ # # Call the create_hcx_activation_key method.
2394
+ # result = client.create_hcx_activation_key request
2395
+ #
2396
+ # # The returned object is of type Gapic::Operation. You can use it to
2397
+ # # check the status of an operation, cancel it, or wait for results.
2398
+ # # Here is how to wait for a response.
2399
+ # result.wait_until_done! timeout: 60
2400
+ # if result.response?
2401
+ # p result.response
2402
+ # else
2403
+ # puts "No response received."
2404
+ # end
2405
+ #
1956
2406
  def create_hcx_activation_key request, options = nil
1957
2407
  raise ::ArgumentError, "request must be provided" if request.nil?
1958
2408
 
@@ -2033,6 +2483,26 @@ module Google
2033
2483
  # @return [::Google::Cloud::VmwareEngine::V1::ListHcxActivationKeysResponse]
2034
2484
  #
2035
2485
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2486
+ #
2487
+ # @example Basic example
2488
+ # require "google/cloud/vmware_engine/v1"
2489
+ #
2490
+ # # Create a client object. The client can be reused for multiple calls.
2491
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
2492
+ #
2493
+ # # Create a request. To set request fields, pass in keyword arguments.
2494
+ # request = Google::Cloud::VmwareEngine::V1::ListHcxActivationKeysRequest.new
2495
+ #
2496
+ # # Call the list_hcx_activation_keys method.
2497
+ # result = client.list_hcx_activation_keys request
2498
+ #
2499
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2500
+ # # over elements, and API calls will be issued to fetch pages as needed.
2501
+ # result.each do |item|
2502
+ # # Each element is of type ::Google::Cloud::VmwareEngine::V1::HcxActivationKey.
2503
+ # p item
2504
+ # end
2505
+ #
2036
2506
  def list_hcx_activation_keys request, options = nil
2037
2507
  raise ::ArgumentError, "request must be provided" if request.nil?
2038
2508
 
@@ -2099,6 +2569,22 @@ module Google
2099
2569
  # @return [::Google::Cloud::VmwareEngine::V1::HcxActivationKey]
2100
2570
  #
2101
2571
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2572
+ #
2573
+ # @example Basic example
2574
+ # require "google/cloud/vmware_engine/v1"
2575
+ #
2576
+ # # Create a client object. The client can be reused for multiple calls.
2577
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
2578
+ #
2579
+ # # Create a request. To set request fields, pass in keyword arguments.
2580
+ # request = Google::Cloud::VmwareEngine::V1::GetHcxActivationKeyRequest.new
2581
+ #
2582
+ # # Call the get_hcx_activation_key method.
2583
+ # result = client.get_hcx_activation_key request
2584
+ #
2585
+ # # The returned object is of type Google::Cloud::VmwareEngine::V1::HcxActivationKey.
2586
+ # p result
2587
+ #
2102
2588
  def get_hcx_activation_key request, options = nil
2103
2589
  raise ::ArgumentError, "request must be provided" if request.nil?
2104
2590
 
@@ -2165,6 +2651,22 @@ module Google
2165
2651
  # @return [::Google::Cloud::VmwareEngine::V1::NetworkPolicy]
2166
2652
  #
2167
2653
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2654
+ #
2655
+ # @example Basic example
2656
+ # require "google/cloud/vmware_engine/v1"
2657
+ #
2658
+ # # Create a client object. The client can be reused for multiple calls.
2659
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
2660
+ #
2661
+ # # Create a request. To set request fields, pass in keyword arguments.
2662
+ # request = Google::Cloud::VmwareEngine::V1::GetNetworkPolicyRequest.new
2663
+ #
2664
+ # # Call the get_network_policy method.
2665
+ # result = client.get_network_policy request
2666
+ #
2667
+ # # The returned object is of type Google::Cloud::VmwareEngine::V1::NetworkPolicy.
2668
+ # p result
2669
+ #
2168
2670
  def get_network_policy request, options = nil
2169
2671
  raise ::ArgumentError, "request must be provided" if request.nil?
2170
2672
 
@@ -2274,6 +2776,26 @@ module Google
2274
2776
  # @return [::Google::Cloud::VmwareEngine::V1::ListNetworkPoliciesResponse]
2275
2777
  #
2276
2778
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2779
+ #
2780
+ # @example Basic example
2781
+ # require "google/cloud/vmware_engine/v1"
2782
+ #
2783
+ # # Create a client object. The client can be reused for multiple calls.
2784
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
2785
+ #
2786
+ # # Create a request. To set request fields, pass in keyword arguments.
2787
+ # request = Google::Cloud::VmwareEngine::V1::ListNetworkPoliciesRequest.new
2788
+ #
2789
+ # # Call the list_network_policies method.
2790
+ # result = client.list_network_policies request
2791
+ #
2792
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2793
+ # # over elements, and API calls will be issued to fetch pages as needed.
2794
+ # result.each do |item|
2795
+ # # Each element is of type ::Google::Cloud::VmwareEngine::V1::NetworkPolicy.
2796
+ # p item
2797
+ # end
2798
+ #
2277
2799
  def list_network_policies request, options = nil
2278
2800
  raise ::ArgumentError, "request must be provided" if request.nil?
2279
2801
 
@@ -2373,6 +2895,29 @@ module Google
2373
2895
  # @return [::Gapic::Operation]
2374
2896
  #
2375
2897
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2898
+ #
2899
+ # @example Basic example
2900
+ # require "google/cloud/vmware_engine/v1"
2901
+ #
2902
+ # # Create a client object. The client can be reused for multiple calls.
2903
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
2904
+ #
2905
+ # # Create a request. To set request fields, pass in keyword arguments.
2906
+ # request = Google::Cloud::VmwareEngine::V1::CreateNetworkPolicyRequest.new
2907
+ #
2908
+ # # Call the create_network_policy method.
2909
+ # result = client.create_network_policy request
2910
+ #
2911
+ # # The returned object is of type Gapic::Operation. You can use it to
2912
+ # # check the status of an operation, cancel it, or wait for results.
2913
+ # # Here is how to wait for a response.
2914
+ # result.wait_until_done! timeout: 60
2915
+ # if result.response?
2916
+ # p result.response
2917
+ # else
2918
+ # puts "No response received."
2919
+ # end
2920
+ #
2376
2921
  def create_network_policy request, options = nil
2377
2922
  raise ::ArgumentError, "request must be provided" if request.nil?
2378
2923
 
@@ -2468,6 +3013,29 @@ module Google
2468
3013
  # @return [::Gapic::Operation]
2469
3014
  #
2470
3015
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3016
+ #
3017
+ # @example Basic example
3018
+ # require "google/cloud/vmware_engine/v1"
3019
+ #
3020
+ # # Create a client object. The client can be reused for multiple calls.
3021
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
3022
+ #
3023
+ # # Create a request. To set request fields, pass in keyword arguments.
3024
+ # request = Google::Cloud::VmwareEngine::V1::UpdateNetworkPolicyRequest.new
3025
+ #
3026
+ # # Call the update_network_policy method.
3027
+ # result = client.update_network_policy request
3028
+ #
3029
+ # # The returned object is of type Gapic::Operation. You can use it to
3030
+ # # check the status of an operation, cancel it, or wait for results.
3031
+ # # Here is how to wait for a response.
3032
+ # result.wait_until_done! timeout: 60
3033
+ # if result.response?
3034
+ # p result.response
3035
+ # else
3036
+ # puts "No response received."
3037
+ # end
3038
+ #
2471
3039
  def update_network_policy request, options = nil
2472
3040
  raise ::ArgumentError, "request must be provided" if request.nil?
2473
3041
 
@@ -2552,6 +3120,29 @@ module Google
2552
3120
  # @return [::Gapic::Operation]
2553
3121
  #
2554
3122
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3123
+ #
3124
+ # @example Basic example
3125
+ # require "google/cloud/vmware_engine/v1"
3126
+ #
3127
+ # # Create a client object. The client can be reused for multiple calls.
3128
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
3129
+ #
3130
+ # # Create a request. To set request fields, pass in keyword arguments.
3131
+ # request = Google::Cloud::VmwareEngine::V1::DeleteNetworkPolicyRequest.new
3132
+ #
3133
+ # # Call the delete_network_policy method.
3134
+ # result = client.delete_network_policy request
3135
+ #
3136
+ # # The returned object is of type Gapic::Operation. You can use it to
3137
+ # # check the status of an operation, cancel it, or wait for results.
3138
+ # # Here is how to wait for a response.
3139
+ # result.wait_until_done! timeout: 60
3140
+ # if result.response?
3141
+ # p result.response
3142
+ # else
3143
+ # puts "No response received."
3144
+ # end
3145
+ #
2555
3146
  def delete_network_policy request, options = nil
2556
3147
  raise ::ArgumentError, "request must be provided" if request.nil?
2557
3148
 
@@ -2653,6 +3244,29 @@ module Google
2653
3244
  # @return [::Gapic::Operation]
2654
3245
  #
2655
3246
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3247
+ #
3248
+ # @example Basic example
3249
+ # require "google/cloud/vmware_engine/v1"
3250
+ #
3251
+ # # Create a client object. The client can be reused for multiple calls.
3252
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
3253
+ #
3254
+ # # Create a request. To set request fields, pass in keyword arguments.
3255
+ # request = Google::Cloud::VmwareEngine::V1::CreateVmwareEngineNetworkRequest.new
3256
+ #
3257
+ # # Call the create_vmware_engine_network method.
3258
+ # result = client.create_vmware_engine_network request
3259
+ #
3260
+ # # The returned object is of type Gapic::Operation. You can use it to
3261
+ # # check the status of an operation, cancel it, or wait for results.
3262
+ # # Here is how to wait for a response.
3263
+ # result.wait_until_done! timeout: 60
3264
+ # if result.response?
3265
+ # p result.response
3266
+ # else
3267
+ # puts "No response received."
3268
+ # end
3269
+ #
2656
3270
  def create_vmware_engine_network request, options = nil
2657
3271
  raise ::ArgumentError, "request must be provided" if request.nil?
2658
3272
 
@@ -2740,6 +3354,29 @@ module Google
2740
3354
  # @return [::Gapic::Operation]
2741
3355
  #
2742
3356
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3357
+ #
3358
+ # @example Basic example
3359
+ # require "google/cloud/vmware_engine/v1"
3360
+ #
3361
+ # # Create a client object. The client can be reused for multiple calls.
3362
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
3363
+ #
3364
+ # # Create a request. To set request fields, pass in keyword arguments.
3365
+ # request = Google::Cloud::VmwareEngine::V1::UpdateVmwareEngineNetworkRequest.new
3366
+ #
3367
+ # # Call the update_vmware_engine_network method.
3368
+ # result = client.update_vmware_engine_network request
3369
+ #
3370
+ # # The returned object is of type Gapic::Operation. You can use it to
3371
+ # # check the status of an operation, cancel it, or wait for results.
3372
+ # # Here is how to wait for a response.
3373
+ # result.wait_until_done! timeout: 60
3374
+ # if result.response?
3375
+ # p result.response
3376
+ # else
3377
+ # puts "No response received."
3378
+ # end
3379
+ #
2743
3380
  def update_vmware_engine_network request, options = nil
2744
3381
  raise ::ArgumentError, "request must be provided" if request.nil?
2745
3382
 
@@ -2830,6 +3467,29 @@ module Google
2830
3467
  # @return [::Gapic::Operation]
2831
3468
  #
2832
3469
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3470
+ #
3471
+ # @example Basic example
3472
+ # require "google/cloud/vmware_engine/v1"
3473
+ #
3474
+ # # Create a client object. The client can be reused for multiple calls.
3475
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
3476
+ #
3477
+ # # Create a request. To set request fields, pass in keyword arguments.
3478
+ # request = Google::Cloud::VmwareEngine::V1::DeleteVmwareEngineNetworkRequest.new
3479
+ #
3480
+ # # Call the delete_vmware_engine_network method.
3481
+ # result = client.delete_vmware_engine_network request
3482
+ #
3483
+ # # The returned object is of type Gapic::Operation. You can use it to
3484
+ # # check the status of an operation, cancel it, or wait for results.
3485
+ # # Here is how to wait for a response.
3486
+ # result.wait_until_done! timeout: 60
3487
+ # if result.response?
3488
+ # p result.response
3489
+ # else
3490
+ # puts "No response received."
3491
+ # end
3492
+ #
2833
3493
  def delete_vmware_engine_network request, options = nil
2834
3494
  raise ::ArgumentError, "request must be provided" if request.nil?
2835
3495
 
@@ -2900,6 +3560,22 @@ module Google
2900
3560
  # @return [::Google::Cloud::VmwareEngine::V1::VmwareEngineNetwork]
2901
3561
  #
2902
3562
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3563
+ #
3564
+ # @example Basic example
3565
+ # require "google/cloud/vmware_engine/v1"
3566
+ #
3567
+ # # Create a client object. The client can be reused for multiple calls.
3568
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
3569
+ #
3570
+ # # Create a request. To set request fields, pass in keyword arguments.
3571
+ # request = Google::Cloud::VmwareEngine::V1::GetVmwareEngineNetworkRequest.new
3572
+ #
3573
+ # # Call the get_vmware_engine_network method.
3574
+ # result = client.get_vmware_engine_network request
3575
+ #
3576
+ # # The returned object is of type Google::Cloud::VmwareEngine::V1::VmwareEngineNetwork.
3577
+ # p result
3578
+ #
2903
3579
  def get_vmware_engine_network request, options = nil
2904
3580
  raise ::ArgumentError, "request must be provided" if request.nil?
2905
3581
 
@@ -3008,6 +3684,26 @@ module Google
3008
3684
  # @return [::Google::Cloud::VmwareEngine::V1::ListVmwareEngineNetworksResponse]
3009
3685
  #
3010
3686
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3687
+ #
3688
+ # @example Basic example
3689
+ # require "google/cloud/vmware_engine/v1"
3690
+ #
3691
+ # # Create a client object. The client can be reused for multiple calls.
3692
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
3693
+ #
3694
+ # # Create a request. To set request fields, pass in keyword arguments.
3695
+ # request = Google::Cloud::VmwareEngine::V1::ListVmwareEngineNetworksRequest.new
3696
+ #
3697
+ # # Call the list_vmware_engine_networks method.
3698
+ # result = client.list_vmware_engine_networks request
3699
+ #
3700
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
3701
+ # # over elements, and API calls will be issued to fetch pages as needed.
3702
+ # result.each do |item|
3703
+ # # Each element is of type ::Google::Cloud::VmwareEngine::V1::VmwareEngineNetwork.
3704
+ # p item
3705
+ # end
3706
+ #
3011
3707
  def list_vmware_engine_networks request, options = nil
3012
3708
  raise ::ArgumentError, "request must be provided" if request.nil?
3013
3709
 
@@ -3104,6 +3800,29 @@ module Google
3104
3800
  # @return [::Gapic::Operation]
3105
3801
  #
3106
3802
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3803
+ #
3804
+ # @example Basic example
3805
+ # require "google/cloud/vmware_engine/v1"
3806
+ #
3807
+ # # Create a client object. The client can be reused for multiple calls.
3808
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
3809
+ #
3810
+ # # Create a request. To set request fields, pass in keyword arguments.
3811
+ # request = Google::Cloud::VmwareEngine::V1::CreatePrivateConnectionRequest.new
3812
+ #
3813
+ # # Call the create_private_connection method.
3814
+ # result = client.create_private_connection request
3815
+ #
3816
+ # # The returned object is of type Gapic::Operation. You can use it to
3817
+ # # check the status of an operation, cancel it, or wait for results.
3818
+ # # Here is how to wait for a response.
3819
+ # result.wait_until_done! timeout: 60
3820
+ # if result.response?
3821
+ # p result.response
3822
+ # else
3823
+ # puts "No response received."
3824
+ # end
3825
+ #
3107
3826
  def create_private_connection request, options = nil
3108
3827
  raise ::ArgumentError, "request must be provided" if request.nil?
3109
3828
 
@@ -3173,6 +3892,22 @@ module Google
3173
3892
  # @return [::Google::Cloud::VmwareEngine::V1::PrivateConnection]
3174
3893
  #
3175
3894
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3895
+ #
3896
+ # @example Basic example
3897
+ # require "google/cloud/vmware_engine/v1"
3898
+ #
3899
+ # # Create a client object. The client can be reused for multiple calls.
3900
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
3901
+ #
3902
+ # # Create a request. To set request fields, pass in keyword arguments.
3903
+ # request = Google::Cloud::VmwareEngine::V1::GetPrivateConnectionRequest.new
3904
+ #
3905
+ # # Call the get_private_connection method.
3906
+ # result = client.get_private_connection request
3907
+ #
3908
+ # # The returned object is of type Google::Cloud::VmwareEngine::V1::PrivateConnection.
3909
+ # p result
3910
+ #
3176
3911
  def get_private_connection request, options = nil
3177
3912
  raise ::ArgumentError, "request must be provided" if request.nil?
3178
3913
 
@@ -3281,6 +4016,26 @@ module Google
3281
4016
  # @return [::Google::Cloud::VmwareEngine::V1::ListPrivateConnectionsResponse]
3282
4017
  #
3283
4018
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4019
+ #
4020
+ # @example Basic example
4021
+ # require "google/cloud/vmware_engine/v1"
4022
+ #
4023
+ # # Create a client object. The client can be reused for multiple calls.
4024
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
4025
+ #
4026
+ # # Create a request. To set request fields, pass in keyword arguments.
4027
+ # request = Google::Cloud::VmwareEngine::V1::ListPrivateConnectionsRequest.new
4028
+ #
4029
+ # # Call the list_private_connections method.
4030
+ # result = client.list_private_connections request
4031
+ #
4032
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
4033
+ # # over elements, and API calls will be issued to fetch pages as needed.
4034
+ # result.each do |item|
4035
+ # # Each element is of type ::Google::Cloud::VmwareEngine::V1::PrivateConnection.
4036
+ # p item
4037
+ # end
4038
+ #
3284
4039
  def list_private_connections request, options = nil
3285
4040
  raise ::ArgumentError, "request must be provided" if request.nil?
3286
4041
 
@@ -3366,6 +4121,29 @@ module Google
3366
4121
  # @return [::Gapic::Operation]
3367
4122
  #
3368
4123
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4124
+ #
4125
+ # @example Basic example
4126
+ # require "google/cloud/vmware_engine/v1"
4127
+ #
4128
+ # # Create a client object. The client can be reused for multiple calls.
4129
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
4130
+ #
4131
+ # # Create a request. To set request fields, pass in keyword arguments.
4132
+ # request = Google::Cloud::VmwareEngine::V1::UpdatePrivateConnectionRequest.new
4133
+ #
4134
+ # # Call the update_private_connection method.
4135
+ # result = client.update_private_connection request
4136
+ #
4137
+ # # The returned object is of type Gapic::Operation. You can use it to
4138
+ # # check the status of an operation, cancel it, or wait for results.
4139
+ # # Here is how to wait for a response.
4140
+ # result.wait_until_done! timeout: 60
4141
+ # if result.response?
4142
+ # p result.response
4143
+ # else
4144
+ # puts "No response received."
4145
+ # end
4146
+ #
3369
4147
  def update_private_connection request, options = nil
3370
4148
  raise ::ArgumentError, "request must be provided" if request.nil?
3371
4149
 
@@ -3450,6 +4228,29 @@ module Google
3450
4228
  # @return [::Gapic::Operation]
3451
4229
  #
3452
4230
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4231
+ #
4232
+ # @example Basic example
4233
+ # require "google/cloud/vmware_engine/v1"
4234
+ #
4235
+ # # Create a client object. The client can be reused for multiple calls.
4236
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
4237
+ #
4238
+ # # Create a request. To set request fields, pass in keyword arguments.
4239
+ # request = Google::Cloud::VmwareEngine::V1::DeletePrivateConnectionRequest.new
4240
+ #
4241
+ # # Call the delete_private_connection method.
4242
+ # result = client.delete_private_connection request
4243
+ #
4244
+ # # The returned object is of type Gapic::Operation. You can use it to
4245
+ # # check the status of an operation, cancel it, or wait for results.
4246
+ # # Here is how to wait for a response.
4247
+ # result.wait_until_done! timeout: 60
4248
+ # if result.response?
4249
+ # p result.response
4250
+ # else
4251
+ # puts "No response received."
4252
+ # end
4253
+ #
3453
4254
  def delete_private_connection request, options = nil
3454
4255
  raise ::ArgumentError, "request must be provided" if request.nil?
3455
4256
 
@@ -3526,6 +4327,26 @@ module Google
3526
4327
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VmwareEngine::V1::PeeringRoute>]
3527
4328
  #
3528
4329
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4330
+ #
4331
+ # @example Basic example
4332
+ # require "google/cloud/vmware_engine/v1"
4333
+ #
4334
+ # # Create a client object. The client can be reused for multiple calls.
4335
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
4336
+ #
4337
+ # # Create a request. To set request fields, pass in keyword arguments.
4338
+ # request = Google::Cloud::VmwareEngine::V1::ListPrivateConnectionPeeringRoutesRequest.new
4339
+ #
4340
+ # # Call the list_private_connection_peering_routes method.
4341
+ # result = client.list_private_connection_peering_routes request
4342
+ #
4343
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
4344
+ # # over elements, and API calls will be issued to fetch pages as needed.
4345
+ # result.each do |item|
4346
+ # # Each element is of type ::Google::Cloud::VmwareEngine::V1::PeeringRoute.
4347
+ # p item
4348
+ # end
4349
+ #
3529
4350
  def list_private_connection_peering_routes request, options = nil
3530
4351
  raise ::ArgumentError, "request must be provided" if request.nil?
3531
4352
 
@@ -3592,9 +4413,9 @@ module Google
3592
4413
  # end
3593
4414
  #
3594
4415
  # @!attribute [rw] endpoint
3595
- # The hostname or hostname:port of the service endpoint.
3596
- # Defaults to `"vmwareengine.googleapis.com"`.
3597
- # @return [::String]
4416
+ # A custom service endpoint, as a hostname or hostname:port. The default is
4417
+ # nil, indicating to use the default endpoint in the current universe domain.
4418
+ # @return [::String,nil]
3598
4419
  # @!attribute [rw] credentials
3599
4420
  # Credentials to send with calls. You may provide any of the following types:
3600
4421
  # * (`String`) The path to a service account key file in JSON format
@@ -3631,13 +4452,20 @@ module Google
3631
4452
  # @!attribute [rw] quota_project
3632
4453
  # A separate project against which to charge quota.
3633
4454
  # @return [::String]
4455
+ # @!attribute [rw] universe_domain
4456
+ # The universe domain within which to make requests. This determines the
4457
+ # default endpoint URL. The default value of nil uses the environment
4458
+ # universe (usually the default "googleapis.com" universe).
4459
+ # @return [::String,nil]
3634
4460
  #
3635
4461
  class Configuration
3636
4462
  extend ::Gapic::Config
3637
4463
 
4464
+ # @private
4465
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
3638
4466
  DEFAULT_ENDPOINT = "vmwareengine.googleapis.com"
3639
4467
 
3640
- config_attr :endpoint, DEFAULT_ENDPOINT, ::String
4468
+ config_attr :endpoint, nil, ::String, nil
3641
4469
  config_attr :credentials, nil do |value|
3642
4470
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
3643
4471
  allowed.any? { |klass| klass === value }
@@ -3649,6 +4477,7 @@ module Google
3649
4477
  config_attr :metadata, nil, ::Hash, nil
3650
4478
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
3651
4479
  config_attr :quota_project, nil, ::String, nil
4480
+ config_attr :universe_domain, nil, ::String, nil
3652
4481
 
3653
4482
  # @private
3654
4483
  # Overrides for http bindings for the RPCs of this service