google-cloud-vmware_engine-v1 0.3.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -95,6 +95,13 @@ module Google
95
95
  initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
96
96
  }
97
97
 
98
+ default_config.rpcs.get_subnet.timeout = 120.0
99
+ default_config.rpcs.get_subnet.retry_policy = {
100
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
101
+ }
102
+
103
+ default_config.rpcs.update_subnet.timeout = 60.0
104
+
98
105
  default_config.rpcs.list_node_types.timeout = 120.0
99
106
  default_config.rpcs.list_node_types.retry_policy = {
100
107
  initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
@@ -145,6 +152,21 @@ module Google
145
152
  initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
146
153
  }
147
154
 
155
+ default_config.rpcs.get_private_connection.timeout = 120.0
156
+ default_config.rpcs.get_private_connection.retry_policy = {
157
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
158
+ }
159
+
160
+ default_config.rpcs.list_private_connections.timeout = 120.0
161
+ default_config.rpcs.list_private_connections.retry_policy = {
162
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
163
+ }
164
+
165
+ default_config.rpcs.list_private_connection_peering_routes.timeout = 120.0
166
+ default_config.rpcs.list_private_connection_peering_routes.retry_policy = {
167
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
168
+ }
169
+
148
170
  default_config
149
171
  end
150
172
  yield @configure if block_given?
@@ -330,6 +352,26 @@ module Google
330
352
  # @return [::Google::Cloud::VmwareEngine::V1::ListPrivateCloudsResponse]
331
353
  #
332
354
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
355
+ #
356
+ # @example Basic example
357
+ # require "google/cloud/vmware_engine/v1"
358
+ #
359
+ # # Create a client object. The client can be reused for multiple calls.
360
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
361
+ #
362
+ # # Create a request. To set request fields, pass in keyword arguments.
363
+ # request = Google::Cloud::VmwareEngine::V1::ListPrivateCloudsRequest.new
364
+ #
365
+ # # Call the list_private_clouds method.
366
+ # result = client.list_private_clouds request
367
+ #
368
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
369
+ # # over elements, and API calls will be issued to fetch pages as needed.
370
+ # result.each do |item|
371
+ # # Each element is of type ::Google::Cloud::VmwareEngine::V1::PrivateCloud.
372
+ # p item
373
+ # end
374
+ #
333
375
  def list_private_clouds request, options = nil
334
376
  raise ::ArgumentError, "request must be provided" if request.nil?
335
377
 
@@ -396,6 +438,22 @@ module Google
396
438
  # @return [::Google::Cloud::VmwareEngine::V1::PrivateCloud]
397
439
  #
398
440
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
441
+ #
442
+ # @example Basic example
443
+ # require "google/cloud/vmware_engine/v1"
444
+ #
445
+ # # Create a client object. The client can be reused for multiple calls.
446
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
447
+ #
448
+ # # Create a request. To set request fields, pass in keyword arguments.
449
+ # request = Google::Cloud::VmwareEngine::V1::GetPrivateCloudRequest.new
450
+ #
451
+ # # Call the get_private_cloud method.
452
+ # result = client.get_private_cloud request
453
+ #
454
+ # # The returned object is of type Google::Cloud::VmwareEngine::V1::PrivateCloud.
455
+ # p result
456
+ #
399
457
  def get_private_cloud request, options = nil
400
458
  raise ::ArgumentError, "request must be provided" if request.nil?
401
459
 
@@ -488,6 +546,29 @@ module Google
488
546
  # @return [::Gapic::Operation]
489
547
  #
490
548
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
549
+ #
550
+ # @example Basic example
551
+ # require "google/cloud/vmware_engine/v1"
552
+ #
553
+ # # Create a client object. The client can be reused for multiple calls.
554
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
555
+ #
556
+ # # Create a request. To set request fields, pass in keyword arguments.
557
+ # request = Google::Cloud::VmwareEngine::V1::CreatePrivateCloudRequest.new
558
+ #
559
+ # # Call the create_private_cloud method.
560
+ # result = client.create_private_cloud request
561
+ #
562
+ # # The returned object is of type Gapic::Operation. You can use it to
563
+ # # check the status of an operation, cancel it, or wait for results.
564
+ # # Here is how to wait for a response.
565
+ # result.wait_until_done! timeout: 60
566
+ # if result.response?
567
+ # p result.response
568
+ # else
569
+ # puts "No response received."
570
+ # end
571
+ #
491
572
  def create_private_cloud request, options = nil
492
573
  raise ::ArgumentError, "request must be provided" if request.nil?
493
574
 
@@ -567,6 +648,29 @@ module Google
567
648
  # @return [::Gapic::Operation]
568
649
  #
569
650
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
651
+ #
652
+ # @example Basic example
653
+ # require "google/cloud/vmware_engine/v1"
654
+ #
655
+ # # Create a client object. The client can be reused for multiple calls.
656
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
657
+ #
658
+ # # Create a request. To set request fields, pass in keyword arguments.
659
+ # request = Google::Cloud::VmwareEngine::V1::UpdatePrivateCloudRequest.new
660
+ #
661
+ # # Call the update_private_cloud method.
662
+ # result = client.update_private_cloud request
663
+ #
664
+ # # The returned object is of type Gapic::Operation. You can use it to
665
+ # # check the status of an operation, cancel it, or wait for results.
666
+ # # Here is how to wait for a response.
667
+ # result.wait_until_done! timeout: 60
668
+ # if result.response?
669
+ # p result.response
670
+ # else
671
+ # puts "No response received."
672
+ # end
673
+ #
570
674
  def update_private_cloud request, options = nil
571
675
  raise ::ArgumentError, "request must be provided" if request.nil?
572
676
 
@@ -666,6 +770,29 @@ module Google
666
770
  # @return [::Gapic::Operation]
667
771
  #
668
772
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
773
+ #
774
+ # @example Basic example
775
+ # require "google/cloud/vmware_engine/v1"
776
+ #
777
+ # # Create a client object. The client can be reused for multiple calls.
778
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
779
+ #
780
+ # # Create a request. To set request fields, pass in keyword arguments.
781
+ # request = Google::Cloud::VmwareEngine::V1::DeletePrivateCloudRequest.new
782
+ #
783
+ # # Call the delete_private_cloud method.
784
+ # result = client.delete_private_cloud request
785
+ #
786
+ # # The returned object is of type Gapic::Operation. You can use it to
787
+ # # check the status of an operation, cancel it, or wait for results.
788
+ # # Here is how to wait for a response.
789
+ # result.wait_until_done! timeout: 60
790
+ # if result.response?
791
+ # p result.response
792
+ # else
793
+ # puts "No response received."
794
+ # end
795
+ #
669
796
  def delete_private_cloud request, options = nil
670
797
  raise ::ArgumentError, "request must be provided" if request.nil?
671
798
 
@@ -739,6 +866,29 @@ module Google
739
866
  # @return [::Gapic::Operation]
740
867
  #
741
868
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
869
+ #
870
+ # @example Basic example
871
+ # require "google/cloud/vmware_engine/v1"
872
+ #
873
+ # # Create a client object. The client can be reused for multiple calls.
874
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
875
+ #
876
+ # # Create a request. To set request fields, pass in keyword arguments.
877
+ # request = Google::Cloud::VmwareEngine::V1::UndeletePrivateCloudRequest.new
878
+ #
879
+ # # Call the undelete_private_cloud method.
880
+ # result = client.undelete_private_cloud request
881
+ #
882
+ # # The returned object is of type Gapic::Operation. You can use it to
883
+ # # check the status of an operation, cancel it, or wait for results.
884
+ # # Here is how to wait for a response.
885
+ # result.wait_until_done! timeout: 60
886
+ # if result.response?
887
+ # p result.response
888
+ # else
889
+ # puts "No response received."
890
+ # end
891
+ #
742
892
  def undelete_private_cloud request, options = nil
743
893
  raise ::ArgumentError, "request must be provided" if request.nil?
744
894
 
@@ -837,6 +987,26 @@ module Google
837
987
  # @return [::Google::Cloud::VmwareEngine::V1::ListClustersResponse]
838
988
  #
839
989
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
990
+ #
991
+ # @example Basic example
992
+ # require "google/cloud/vmware_engine/v1"
993
+ #
994
+ # # Create a client object. The client can be reused for multiple calls.
995
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
996
+ #
997
+ # # Create a request. To set request fields, pass in keyword arguments.
998
+ # request = Google::Cloud::VmwareEngine::V1::ListClustersRequest.new
999
+ #
1000
+ # # Call the list_clusters method.
1001
+ # result = client.list_clusters request
1002
+ #
1003
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1004
+ # # over elements, and API calls will be issued to fetch pages as needed.
1005
+ # result.each do |item|
1006
+ # # Each element is of type ::Google::Cloud::VmwareEngine::V1::Cluster.
1007
+ # p item
1008
+ # end
1009
+ #
840
1010
  def list_clusters request, options = nil
841
1011
  raise ::ArgumentError, "request must be provided" if request.nil?
842
1012
 
@@ -903,6 +1073,22 @@ module Google
903
1073
  # @return [::Google::Cloud::VmwareEngine::V1::Cluster]
904
1074
  #
905
1075
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1076
+ #
1077
+ # @example Basic example
1078
+ # require "google/cloud/vmware_engine/v1"
1079
+ #
1080
+ # # Create a client object. The client can be reused for multiple calls.
1081
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
1082
+ #
1083
+ # # Create a request. To set request fields, pass in keyword arguments.
1084
+ # request = Google::Cloud::VmwareEngine::V1::GetClusterRequest.new
1085
+ #
1086
+ # # Call the get_cluster method.
1087
+ # result = client.get_cluster request
1088
+ #
1089
+ # # The returned object is of type Google::Cloud::VmwareEngine::V1::Cluster.
1090
+ # p result
1091
+ #
906
1092
  def get_cluster request, options = nil
907
1093
  raise ::ArgumentError, "request must be provided" if request.nil?
908
1094
 
@@ -992,6 +1178,29 @@ module Google
992
1178
  # @return [::Gapic::Operation]
993
1179
  #
994
1180
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1181
+ #
1182
+ # @example Basic example
1183
+ # require "google/cloud/vmware_engine/v1"
1184
+ #
1185
+ # # Create a client object. The client can be reused for multiple calls.
1186
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
1187
+ #
1188
+ # # Create a request. To set request fields, pass in keyword arguments.
1189
+ # request = Google::Cloud::VmwareEngine::V1::CreateClusterRequest.new
1190
+ #
1191
+ # # Call the create_cluster method.
1192
+ # result = client.create_cluster request
1193
+ #
1194
+ # # The returned object is of type Gapic::Operation. You can use it to
1195
+ # # check the status of an operation, cancel it, or wait for results.
1196
+ # # Here is how to wait for a response.
1197
+ # result.wait_until_done! timeout: 60
1198
+ # if result.response?
1199
+ # p result.response
1200
+ # else
1201
+ # puts "No response received."
1202
+ # end
1203
+ #
995
1204
  def create_cluster request, options = nil
996
1205
  raise ::ArgumentError, "request must be provided" if request.nil?
997
1206
 
@@ -1074,6 +1283,29 @@ module Google
1074
1283
  # @return [::Gapic::Operation]
1075
1284
  #
1076
1285
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1286
+ #
1287
+ # @example Basic example
1288
+ # require "google/cloud/vmware_engine/v1"
1289
+ #
1290
+ # # Create a client object. The client can be reused for multiple calls.
1291
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
1292
+ #
1293
+ # # Create a request. To set request fields, pass in keyword arguments.
1294
+ # request = Google::Cloud::VmwareEngine::V1::UpdateClusterRequest.new
1295
+ #
1296
+ # # Call the update_cluster method.
1297
+ # result = client.update_cluster request
1298
+ #
1299
+ # # The returned object is of type Gapic::Operation. You can use it to
1300
+ # # check the status of an operation, cancel it, or wait for results.
1301
+ # # Here is how to wait for a response.
1302
+ # result.wait_until_done! timeout: 60
1303
+ # if result.response?
1304
+ # p result.response
1305
+ # else
1306
+ # puts "No response received."
1307
+ # end
1308
+ #
1077
1309
  def update_cluster request, options = nil
1078
1310
  raise ::ArgumentError, "request must be provided" if request.nil?
1079
1311
 
@@ -1147,6 +1379,29 @@ module Google
1147
1379
  # @return [::Gapic::Operation]
1148
1380
  #
1149
1381
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1382
+ #
1383
+ # @example Basic example
1384
+ # require "google/cloud/vmware_engine/v1"
1385
+ #
1386
+ # # Create a client object. The client can be reused for multiple calls.
1387
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
1388
+ #
1389
+ # # Create a request. To set request fields, pass in keyword arguments.
1390
+ # request = Google::Cloud::VmwareEngine::V1::DeleteClusterRequest.new
1391
+ #
1392
+ # # Call the delete_cluster method.
1393
+ # result = client.delete_cluster request
1394
+ #
1395
+ # # The returned object is of type Gapic::Operation. You can use it to
1396
+ # # check the status of an operation, cancel it, or wait for results.
1397
+ # # Here is how to wait for a response.
1398
+ # result.wait_until_done! timeout: 60
1399
+ # if result.response?
1400
+ # p result.response
1401
+ # else
1402
+ # puts "No response received."
1403
+ # end
1404
+ #
1150
1405
  def delete_cluster request, options = nil
1151
1406
  raise ::ArgumentError, "request must be provided" if request.nil?
1152
1407
 
@@ -1220,12 +1475,32 @@ module Google
1220
1475
  # When paginating, all other parameters provided to
1221
1476
  # `ListSubnetsRequest` must match the call that provided the page token.
1222
1477
  # @yield [result, operation] Access the result along with the TransportOperation object
1223
- # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VmwareEngine::V1::Subnet>]
1478
+ # @yieldparam result [::Google::Cloud::VmwareEngine::V1::ListSubnetsResponse]
1224
1479
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1225
1480
  #
1226
- # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VmwareEngine::V1::Subnet>]
1481
+ # @return [::Google::Cloud::VmwareEngine::V1::ListSubnetsResponse]
1227
1482
  #
1228
1483
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1484
+ #
1485
+ # @example Basic example
1486
+ # require "google/cloud/vmware_engine/v1"
1487
+ #
1488
+ # # Create a client object. The client can be reused for multiple calls.
1489
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
1490
+ #
1491
+ # # Create a request. To set request fields, pass in keyword arguments.
1492
+ # request = Google::Cloud::VmwareEngine::V1::ListSubnetsRequest.new
1493
+ #
1494
+ # # Call the list_subnets method.
1495
+ # result = client.list_subnets request
1496
+ #
1497
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1498
+ # # over elements, and API calls will be issued to fetch pages as needed.
1499
+ # result.each do |item|
1500
+ # # Each element is of type ::Google::Cloud::VmwareEngine::V1::Subnet.
1501
+ # p item
1502
+ # end
1503
+ #
1229
1504
  def list_subnets request, options = nil
1230
1505
  raise ::ArgumentError, "request must be provided" if request.nil?
1231
1506
 
@@ -1254,7 +1529,185 @@ module Google
1254
1529
  retry_policy: @config.retry_policy
1255
1530
 
1256
1531
  @vmware_engine_stub.list_subnets request, options do |result, operation|
1257
- result = ::Gapic::Rest::PagedEnumerable.new @vmware_engine_stub, :list_subnets, "subnets", request, result, options
1532
+ yield result, operation if block_given?
1533
+ return result
1534
+ end
1535
+ rescue ::Gapic::Rest::Error => e
1536
+ raise ::Google::Cloud::Error.from_error(e)
1537
+ end
1538
+
1539
+ ##
1540
+ # Gets details of a single subnet.
1541
+ #
1542
+ # @overload get_subnet(request, options = nil)
1543
+ # Pass arguments to `get_subnet` via a request object, either of type
1544
+ # {::Google::Cloud::VmwareEngine::V1::GetSubnetRequest} or an equivalent Hash.
1545
+ #
1546
+ # @param request [::Google::Cloud::VmwareEngine::V1::GetSubnetRequest, ::Hash]
1547
+ # A request object representing the call parameters. Required. To specify no
1548
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1549
+ # @param options [::Gapic::CallOptions, ::Hash]
1550
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1551
+ #
1552
+ # @overload get_subnet(name: nil)
1553
+ # Pass arguments to `get_subnet` via keyword arguments. Note that at
1554
+ # least one keyword argument is required. To specify no parameters, or to keep all
1555
+ # the default parameter values, pass an empty Hash as a request object (see above).
1556
+ #
1557
+ # @param name [::String]
1558
+ # Required. The resource name of the subnet to retrieve.
1559
+ # Resource names are schemeless URIs that follow the conventions in
1560
+ # https://cloud.google.com/apis/design/resource_names.
1561
+ # For example:
1562
+ # `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet`
1563
+ # @yield [result, operation] Access the result along with the TransportOperation object
1564
+ # @yieldparam result [::Google::Cloud::VmwareEngine::V1::Subnet]
1565
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1566
+ #
1567
+ # @return [::Google::Cloud::VmwareEngine::V1::Subnet]
1568
+ #
1569
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1570
+ #
1571
+ # @example Basic example
1572
+ # require "google/cloud/vmware_engine/v1"
1573
+ #
1574
+ # # Create a client object. The client can be reused for multiple calls.
1575
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
1576
+ #
1577
+ # # Create a request. To set request fields, pass in keyword arguments.
1578
+ # request = Google::Cloud::VmwareEngine::V1::GetSubnetRequest.new
1579
+ #
1580
+ # # Call the get_subnet method.
1581
+ # result = client.get_subnet request
1582
+ #
1583
+ # # The returned object is of type Google::Cloud::VmwareEngine::V1::Subnet.
1584
+ # p result
1585
+ #
1586
+ def get_subnet request, options = nil
1587
+ raise ::ArgumentError, "request must be provided" if request.nil?
1588
+
1589
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::GetSubnetRequest
1590
+
1591
+ # Converts hash and nil to an options object
1592
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1593
+
1594
+ # Customize the options with defaults
1595
+ call_metadata = @config.rpcs.get_subnet.metadata.to_h
1596
+
1597
+ # Set x-goog-api-client and x-goog-user-project headers
1598
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1599
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1600
+ gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
1601
+ transports_version_send: [:rest]
1602
+
1603
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1604
+
1605
+ options.apply_defaults timeout: @config.rpcs.get_subnet.timeout,
1606
+ metadata: call_metadata,
1607
+ retry_policy: @config.rpcs.get_subnet.retry_policy
1608
+
1609
+ options.apply_defaults timeout: @config.timeout,
1610
+ metadata: @config.metadata,
1611
+ retry_policy: @config.retry_policy
1612
+
1613
+ @vmware_engine_stub.get_subnet request, options do |result, operation|
1614
+ yield result, operation if block_given?
1615
+ return result
1616
+ end
1617
+ rescue ::Gapic::Rest::Error => e
1618
+ raise ::Google::Cloud::Error.from_error(e)
1619
+ end
1620
+
1621
+ ##
1622
+ # Updates the parameters of a single subnet. Only fields specified in
1623
+ # `update_mask` are applied.
1624
+ #
1625
+ # *Note*: This API is synchronous and always returns a successful
1626
+ # `google.longrunning.Operation` (LRO). The returned LRO will only have
1627
+ # `done` and `response` fields.
1628
+ #
1629
+ # @overload update_subnet(request, options = nil)
1630
+ # Pass arguments to `update_subnet` via a request object, either of type
1631
+ # {::Google::Cloud::VmwareEngine::V1::UpdateSubnetRequest} or an equivalent Hash.
1632
+ #
1633
+ # @param request [::Google::Cloud::VmwareEngine::V1::UpdateSubnetRequest, ::Hash]
1634
+ # A request object representing the call parameters. Required. To specify no
1635
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1636
+ # @param options [::Gapic::CallOptions, ::Hash]
1637
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1638
+ #
1639
+ # @overload update_subnet(update_mask: nil, subnet: nil)
1640
+ # Pass arguments to `update_subnet` via keyword arguments. Note that at
1641
+ # least one keyword argument is required. To specify no parameters, or to keep all
1642
+ # the default parameter values, pass an empty Hash as a request object (see above).
1643
+ #
1644
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1645
+ # Required. Field mask is used to specify the fields to be overwritten in the
1646
+ # `Subnet` resource by the update.
1647
+ # The fields specified in the `update_mask` are relative to the resource, not
1648
+ # the full request. A field will be overwritten if it is in the mask. If the
1649
+ # user does not provide a mask then all fields will be overwritten.
1650
+ # @param subnet [::Google::Cloud::VmwareEngine::V1::Subnet, ::Hash]
1651
+ # Required. Subnet description.
1652
+ # @yield [result, operation] Access the result along with the TransportOperation object
1653
+ # @yieldparam result [::Gapic::Operation]
1654
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1655
+ #
1656
+ # @return [::Gapic::Operation]
1657
+ #
1658
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1659
+ #
1660
+ # @example Basic example
1661
+ # require "google/cloud/vmware_engine/v1"
1662
+ #
1663
+ # # Create a client object. The client can be reused for multiple calls.
1664
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
1665
+ #
1666
+ # # Create a request. To set request fields, pass in keyword arguments.
1667
+ # request = Google::Cloud::VmwareEngine::V1::UpdateSubnetRequest.new
1668
+ #
1669
+ # # Call the update_subnet method.
1670
+ # result = client.update_subnet request
1671
+ #
1672
+ # # The returned object is of type Gapic::Operation. You can use it to
1673
+ # # check the status of an operation, cancel it, or wait for results.
1674
+ # # Here is how to wait for a response.
1675
+ # result.wait_until_done! timeout: 60
1676
+ # if result.response?
1677
+ # p result.response
1678
+ # else
1679
+ # puts "No response received."
1680
+ # end
1681
+ #
1682
+ def update_subnet request, options = nil
1683
+ raise ::ArgumentError, "request must be provided" if request.nil?
1684
+
1685
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::UpdateSubnetRequest
1686
+
1687
+ # Converts hash and nil to an options object
1688
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1689
+
1690
+ # Customize the options with defaults
1691
+ call_metadata = @config.rpcs.update_subnet.metadata.to_h
1692
+
1693
+ # Set x-goog-api-client and x-goog-user-project headers
1694
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1695
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1696
+ gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
1697
+ transports_version_send: [:rest]
1698
+
1699
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1700
+
1701
+ options.apply_defaults timeout: @config.rpcs.update_subnet.timeout,
1702
+ metadata: call_metadata,
1703
+ retry_policy: @config.rpcs.update_subnet.retry_policy
1704
+
1705
+ options.apply_defaults timeout: @config.timeout,
1706
+ metadata: @config.metadata,
1707
+ retry_policy: @config.retry_policy
1708
+
1709
+ @vmware_engine_stub.update_subnet request, options do |result, operation|
1710
+ result = ::Gapic::Operation.new result, @operations_client, options: options
1258
1711
  yield result, operation if block_given?
1259
1712
  return result
1260
1713
  end
@@ -1330,6 +1783,26 @@ module Google
1330
1783
  # @return [::Google::Cloud::VmwareEngine::V1::ListNodeTypesResponse]
1331
1784
  #
1332
1785
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1786
+ #
1787
+ # @example Basic example
1788
+ # require "google/cloud/vmware_engine/v1"
1789
+ #
1790
+ # # Create a client object. The client can be reused for multiple calls.
1791
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
1792
+ #
1793
+ # # Create a request. To set request fields, pass in keyword arguments.
1794
+ # request = Google::Cloud::VmwareEngine::V1::ListNodeTypesRequest.new
1795
+ #
1796
+ # # Call the list_node_types method.
1797
+ # result = client.list_node_types request
1798
+ #
1799
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1800
+ # # over elements, and API calls will be issued to fetch pages as needed.
1801
+ # result.each do |item|
1802
+ # # Each element is of type ::Google::Cloud::VmwareEngine::V1::NodeType.
1803
+ # p item
1804
+ # end
1805
+ #
1333
1806
  def list_node_types request, options = nil
1334
1807
  raise ::ArgumentError, "request must be provided" if request.nil?
1335
1808
 
@@ -1396,6 +1869,22 @@ module Google
1396
1869
  # @return [::Google::Cloud::VmwareEngine::V1::NodeType]
1397
1870
  #
1398
1871
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1872
+ #
1873
+ # @example Basic example
1874
+ # require "google/cloud/vmware_engine/v1"
1875
+ #
1876
+ # # Create a client object. The client can be reused for multiple calls.
1877
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
1878
+ #
1879
+ # # Create a request. To set request fields, pass in keyword arguments.
1880
+ # request = Google::Cloud::VmwareEngine::V1::GetNodeTypeRequest.new
1881
+ #
1882
+ # # Call the get_node_type method.
1883
+ # result = client.get_node_type request
1884
+ #
1885
+ # # The returned object is of type Google::Cloud::VmwareEngine::V1::NodeType.
1886
+ # p result
1887
+ #
1399
1888
  def get_node_type request, options = nil
1400
1889
  raise ::ArgumentError, "request must be provided" if request.nil?
1401
1890
 
@@ -1463,6 +1952,22 @@ module Google
1463
1952
  # @return [::Google::Cloud::VmwareEngine::V1::Credentials]
1464
1953
  #
1465
1954
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1955
+ #
1956
+ # @example Basic example
1957
+ # require "google/cloud/vmware_engine/v1"
1958
+ #
1959
+ # # Create a client object. The client can be reused for multiple calls.
1960
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
1961
+ #
1962
+ # # Create a request. To set request fields, pass in keyword arguments.
1963
+ # request = Google::Cloud::VmwareEngine::V1::ShowNsxCredentialsRequest.new
1964
+ #
1965
+ # # Call the show_nsx_credentials method.
1966
+ # result = client.show_nsx_credentials request
1967
+ #
1968
+ # # The returned object is of type Google::Cloud::VmwareEngine::V1::Credentials.
1969
+ # p result
1970
+ #
1466
1971
  def show_nsx_credentials request, options = nil
1467
1972
  raise ::ArgumentError, "request must be provided" if request.nil?
1468
1973
 
@@ -1530,6 +2035,22 @@ module Google
1530
2035
  # @return [::Google::Cloud::VmwareEngine::V1::Credentials]
1531
2036
  #
1532
2037
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2038
+ #
2039
+ # @example Basic example
2040
+ # require "google/cloud/vmware_engine/v1"
2041
+ #
2042
+ # # Create a client object. The client can be reused for multiple calls.
2043
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
2044
+ #
2045
+ # # Create a request. To set request fields, pass in keyword arguments.
2046
+ # request = Google::Cloud::VmwareEngine::V1::ShowVcenterCredentialsRequest.new
2047
+ #
2048
+ # # Call the show_vcenter_credentials method.
2049
+ # result = client.show_vcenter_credentials request
2050
+ #
2051
+ # # The returned object is of type Google::Cloud::VmwareEngine::V1::Credentials.
2052
+ # p result
2053
+ #
1533
2054
  def show_vcenter_credentials request, options = nil
1534
2055
  raise ::ArgumentError, "request must be provided" if request.nil?
1535
2056
 
@@ -1612,6 +2133,29 @@ module Google
1612
2133
  # @return [::Gapic::Operation]
1613
2134
  #
1614
2135
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2136
+ #
2137
+ # @example Basic example
2138
+ # require "google/cloud/vmware_engine/v1"
2139
+ #
2140
+ # # Create a client object. The client can be reused for multiple calls.
2141
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
2142
+ #
2143
+ # # Create a request. To set request fields, pass in keyword arguments.
2144
+ # request = Google::Cloud::VmwareEngine::V1::ResetNsxCredentialsRequest.new
2145
+ #
2146
+ # # Call the reset_nsx_credentials method.
2147
+ # result = client.reset_nsx_credentials request
2148
+ #
2149
+ # # The returned object is of type Gapic::Operation. You can use it to
2150
+ # # check the status of an operation, cancel it, or wait for results.
2151
+ # # Here is how to wait for a response.
2152
+ # result.wait_until_done! timeout: 60
2153
+ # if result.response?
2154
+ # p result.response
2155
+ # else
2156
+ # puts "No response received."
2157
+ # end
2158
+ #
1615
2159
  def reset_nsx_credentials request, options = nil
1616
2160
  raise ::ArgumentError, "request must be provided" if request.nil?
1617
2161
 
@@ -1695,6 +2239,29 @@ module Google
1695
2239
  # @return [::Gapic::Operation]
1696
2240
  #
1697
2241
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2242
+ #
2243
+ # @example Basic example
2244
+ # require "google/cloud/vmware_engine/v1"
2245
+ #
2246
+ # # Create a client object. The client can be reused for multiple calls.
2247
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
2248
+ #
2249
+ # # Create a request. To set request fields, pass in keyword arguments.
2250
+ # request = Google::Cloud::VmwareEngine::V1::ResetVcenterCredentialsRequest.new
2251
+ #
2252
+ # # Call the reset_vcenter_credentials method.
2253
+ # result = client.reset_vcenter_credentials request
2254
+ #
2255
+ # # The returned object is of type Gapic::Operation. You can use it to
2256
+ # # check the status of an operation, cancel it, or wait for results.
2257
+ # # Here is how to wait for a response.
2258
+ # result.wait_until_done! timeout: 60
2259
+ # if result.response?
2260
+ # p result.response
2261
+ # else
2262
+ # puts "No response received."
2263
+ # end
2264
+ #
1698
2265
  def reset_vcenter_credentials request, options = nil
1699
2266
  raise ::ArgumentError, "request must be provided" if request.nil?
1700
2267
 
@@ -1792,12 +2359,35 @@ module Google
1792
2359
  # @return [::Gapic::Operation]
1793
2360
  #
1794
2361
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1795
- def create_hcx_activation_key request, options = nil
1796
- raise ::ArgumentError, "request must be provided" if request.nil?
1797
-
1798
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::CreateHcxActivationKeyRequest
1799
-
1800
- # Converts hash and nil to an options object
2362
+ #
2363
+ # @example Basic example
2364
+ # require "google/cloud/vmware_engine/v1"
2365
+ #
2366
+ # # Create a client object. The client can be reused for multiple calls.
2367
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
2368
+ #
2369
+ # # Create a request. To set request fields, pass in keyword arguments.
2370
+ # request = Google::Cloud::VmwareEngine::V1::CreateHcxActivationKeyRequest.new
2371
+ #
2372
+ # # Call the create_hcx_activation_key method.
2373
+ # result = client.create_hcx_activation_key request
2374
+ #
2375
+ # # The returned object is of type Gapic::Operation. You can use it to
2376
+ # # check the status of an operation, cancel it, or wait for results.
2377
+ # # Here is how to wait for a response.
2378
+ # result.wait_until_done! timeout: 60
2379
+ # if result.response?
2380
+ # p result.response
2381
+ # else
2382
+ # puts "No response received."
2383
+ # end
2384
+ #
2385
+ def create_hcx_activation_key request, options = nil
2386
+ raise ::ArgumentError, "request must be provided" if request.nil?
2387
+
2388
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::CreateHcxActivationKeyRequest
2389
+
2390
+ # Converts hash and nil to an options object
1801
2391
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1802
2392
 
1803
2393
  # Customize the options with defaults
@@ -1872,6 +2462,26 @@ module Google
1872
2462
  # @return [::Google::Cloud::VmwareEngine::V1::ListHcxActivationKeysResponse]
1873
2463
  #
1874
2464
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2465
+ #
2466
+ # @example Basic example
2467
+ # require "google/cloud/vmware_engine/v1"
2468
+ #
2469
+ # # Create a client object. The client can be reused for multiple calls.
2470
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
2471
+ #
2472
+ # # Create a request. To set request fields, pass in keyword arguments.
2473
+ # request = Google::Cloud::VmwareEngine::V1::ListHcxActivationKeysRequest.new
2474
+ #
2475
+ # # Call the list_hcx_activation_keys method.
2476
+ # result = client.list_hcx_activation_keys request
2477
+ #
2478
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2479
+ # # over elements, and API calls will be issued to fetch pages as needed.
2480
+ # result.each do |item|
2481
+ # # Each element is of type ::Google::Cloud::VmwareEngine::V1::HcxActivationKey.
2482
+ # p item
2483
+ # end
2484
+ #
1875
2485
  def list_hcx_activation_keys request, options = nil
1876
2486
  raise ::ArgumentError, "request must be provided" if request.nil?
1877
2487
 
@@ -1938,6 +2548,22 @@ module Google
1938
2548
  # @return [::Google::Cloud::VmwareEngine::V1::HcxActivationKey]
1939
2549
  #
1940
2550
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2551
+ #
2552
+ # @example Basic example
2553
+ # require "google/cloud/vmware_engine/v1"
2554
+ #
2555
+ # # Create a client object. The client can be reused for multiple calls.
2556
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
2557
+ #
2558
+ # # Create a request. To set request fields, pass in keyword arguments.
2559
+ # request = Google::Cloud::VmwareEngine::V1::GetHcxActivationKeyRequest.new
2560
+ #
2561
+ # # Call the get_hcx_activation_key method.
2562
+ # result = client.get_hcx_activation_key request
2563
+ #
2564
+ # # The returned object is of type Google::Cloud::VmwareEngine::V1::HcxActivationKey.
2565
+ # p result
2566
+ #
1941
2567
  def get_hcx_activation_key request, options = nil
1942
2568
  raise ::ArgumentError, "request must be provided" if request.nil?
1943
2569
 
@@ -2004,6 +2630,22 @@ module Google
2004
2630
  # @return [::Google::Cloud::VmwareEngine::V1::NetworkPolicy]
2005
2631
  #
2006
2632
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2633
+ #
2634
+ # @example Basic example
2635
+ # require "google/cloud/vmware_engine/v1"
2636
+ #
2637
+ # # Create a client object. The client can be reused for multiple calls.
2638
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
2639
+ #
2640
+ # # Create a request. To set request fields, pass in keyword arguments.
2641
+ # request = Google::Cloud::VmwareEngine::V1::GetNetworkPolicyRequest.new
2642
+ #
2643
+ # # Call the get_network_policy method.
2644
+ # result = client.get_network_policy request
2645
+ #
2646
+ # # The returned object is of type Google::Cloud::VmwareEngine::V1::NetworkPolicy.
2647
+ # p result
2648
+ #
2007
2649
  def get_network_policy request, options = nil
2008
2650
  raise ::ArgumentError, "request must be provided" if request.nil?
2009
2651
 
@@ -2113,6 +2755,26 @@ module Google
2113
2755
  # @return [::Google::Cloud::VmwareEngine::V1::ListNetworkPoliciesResponse]
2114
2756
  #
2115
2757
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2758
+ #
2759
+ # @example Basic example
2760
+ # require "google/cloud/vmware_engine/v1"
2761
+ #
2762
+ # # Create a client object. The client can be reused for multiple calls.
2763
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
2764
+ #
2765
+ # # Create a request. To set request fields, pass in keyword arguments.
2766
+ # request = Google::Cloud::VmwareEngine::V1::ListNetworkPoliciesRequest.new
2767
+ #
2768
+ # # Call the list_network_policies method.
2769
+ # result = client.list_network_policies request
2770
+ #
2771
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2772
+ # # over elements, and API calls will be issued to fetch pages as needed.
2773
+ # result.each do |item|
2774
+ # # Each element is of type ::Google::Cloud::VmwareEngine::V1::NetworkPolicy.
2775
+ # p item
2776
+ # end
2777
+ #
2116
2778
  def list_network_policies request, options = nil
2117
2779
  raise ::ArgumentError, "request must be provided" if request.nil?
2118
2780
 
@@ -2212,6 +2874,29 @@ module Google
2212
2874
  # @return [::Gapic::Operation]
2213
2875
  #
2214
2876
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2877
+ #
2878
+ # @example Basic example
2879
+ # require "google/cloud/vmware_engine/v1"
2880
+ #
2881
+ # # Create a client object. The client can be reused for multiple calls.
2882
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
2883
+ #
2884
+ # # Create a request. To set request fields, pass in keyword arguments.
2885
+ # request = Google::Cloud::VmwareEngine::V1::CreateNetworkPolicyRequest.new
2886
+ #
2887
+ # # Call the create_network_policy method.
2888
+ # result = client.create_network_policy request
2889
+ #
2890
+ # # The returned object is of type Gapic::Operation. You can use it to
2891
+ # # check the status of an operation, cancel it, or wait for results.
2892
+ # # Here is how to wait for a response.
2893
+ # result.wait_until_done! timeout: 60
2894
+ # if result.response?
2895
+ # p result.response
2896
+ # else
2897
+ # puts "No response received."
2898
+ # end
2899
+ #
2215
2900
  def create_network_policy request, options = nil
2216
2901
  raise ::ArgumentError, "request must be provided" if request.nil?
2217
2902
 
@@ -2307,6 +2992,29 @@ module Google
2307
2992
  # @return [::Gapic::Operation]
2308
2993
  #
2309
2994
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2995
+ #
2996
+ # @example Basic example
2997
+ # require "google/cloud/vmware_engine/v1"
2998
+ #
2999
+ # # Create a client object. The client can be reused for multiple calls.
3000
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
3001
+ #
3002
+ # # Create a request. To set request fields, pass in keyword arguments.
3003
+ # request = Google::Cloud::VmwareEngine::V1::UpdateNetworkPolicyRequest.new
3004
+ #
3005
+ # # Call the update_network_policy method.
3006
+ # result = client.update_network_policy request
3007
+ #
3008
+ # # The returned object is of type Gapic::Operation. You can use it to
3009
+ # # check the status of an operation, cancel it, or wait for results.
3010
+ # # Here is how to wait for a response.
3011
+ # result.wait_until_done! timeout: 60
3012
+ # if result.response?
3013
+ # p result.response
3014
+ # else
3015
+ # puts "No response received."
3016
+ # end
3017
+ #
2310
3018
  def update_network_policy request, options = nil
2311
3019
  raise ::ArgumentError, "request must be provided" if request.nil?
2312
3020
 
@@ -2391,6 +3099,29 @@ module Google
2391
3099
  # @return [::Gapic::Operation]
2392
3100
  #
2393
3101
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3102
+ #
3103
+ # @example Basic example
3104
+ # require "google/cloud/vmware_engine/v1"
3105
+ #
3106
+ # # Create a client object. The client can be reused for multiple calls.
3107
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
3108
+ #
3109
+ # # Create a request. To set request fields, pass in keyword arguments.
3110
+ # request = Google::Cloud::VmwareEngine::V1::DeleteNetworkPolicyRequest.new
3111
+ #
3112
+ # # Call the delete_network_policy method.
3113
+ # result = client.delete_network_policy request
3114
+ #
3115
+ # # The returned object is of type Gapic::Operation. You can use it to
3116
+ # # check the status of an operation, cancel it, or wait for results.
3117
+ # # Here is how to wait for a response.
3118
+ # result.wait_until_done! timeout: 60
3119
+ # if result.response?
3120
+ # p result.response
3121
+ # else
3122
+ # puts "No response received."
3123
+ # end
3124
+ #
2394
3125
  def delete_network_policy request, options = nil
2395
3126
  raise ::ArgumentError, "request must be provided" if request.nil?
2396
3127
 
@@ -2492,6 +3223,29 @@ module Google
2492
3223
  # @return [::Gapic::Operation]
2493
3224
  #
2494
3225
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3226
+ #
3227
+ # @example Basic example
3228
+ # require "google/cloud/vmware_engine/v1"
3229
+ #
3230
+ # # Create a client object. The client can be reused for multiple calls.
3231
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
3232
+ #
3233
+ # # Create a request. To set request fields, pass in keyword arguments.
3234
+ # request = Google::Cloud::VmwareEngine::V1::CreateVmwareEngineNetworkRequest.new
3235
+ #
3236
+ # # Call the create_vmware_engine_network method.
3237
+ # result = client.create_vmware_engine_network request
3238
+ #
3239
+ # # The returned object is of type Gapic::Operation. You can use it to
3240
+ # # check the status of an operation, cancel it, or wait for results.
3241
+ # # Here is how to wait for a response.
3242
+ # result.wait_until_done! timeout: 60
3243
+ # if result.response?
3244
+ # p result.response
3245
+ # else
3246
+ # puts "No response received."
3247
+ # end
3248
+ #
2495
3249
  def create_vmware_engine_network request, options = nil
2496
3250
  raise ::ArgumentError, "request must be provided" if request.nil?
2497
3251
 
@@ -2579,6 +3333,29 @@ module Google
2579
3333
  # @return [::Gapic::Operation]
2580
3334
  #
2581
3335
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3336
+ #
3337
+ # @example Basic example
3338
+ # require "google/cloud/vmware_engine/v1"
3339
+ #
3340
+ # # Create a client object. The client can be reused for multiple calls.
3341
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
3342
+ #
3343
+ # # Create a request. To set request fields, pass in keyword arguments.
3344
+ # request = Google::Cloud::VmwareEngine::V1::UpdateVmwareEngineNetworkRequest.new
3345
+ #
3346
+ # # Call the update_vmware_engine_network method.
3347
+ # result = client.update_vmware_engine_network request
3348
+ #
3349
+ # # The returned object is of type Gapic::Operation. You can use it to
3350
+ # # check the status of an operation, cancel it, or wait for results.
3351
+ # # Here is how to wait for a response.
3352
+ # result.wait_until_done! timeout: 60
3353
+ # if result.response?
3354
+ # p result.response
3355
+ # else
3356
+ # puts "No response received."
3357
+ # end
3358
+ #
2582
3359
  def update_vmware_engine_network request, options = nil
2583
3360
  raise ::ArgumentError, "request must be provided" if request.nil?
2584
3361
 
@@ -2669,6 +3446,29 @@ module Google
2669
3446
  # @return [::Gapic::Operation]
2670
3447
  #
2671
3448
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3449
+ #
3450
+ # @example Basic example
3451
+ # require "google/cloud/vmware_engine/v1"
3452
+ #
3453
+ # # Create a client object. The client can be reused for multiple calls.
3454
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
3455
+ #
3456
+ # # Create a request. To set request fields, pass in keyword arguments.
3457
+ # request = Google::Cloud::VmwareEngine::V1::DeleteVmwareEngineNetworkRequest.new
3458
+ #
3459
+ # # Call the delete_vmware_engine_network method.
3460
+ # result = client.delete_vmware_engine_network request
3461
+ #
3462
+ # # The returned object is of type Gapic::Operation. You can use it to
3463
+ # # check the status of an operation, cancel it, or wait for results.
3464
+ # # Here is how to wait for a response.
3465
+ # result.wait_until_done! timeout: 60
3466
+ # if result.response?
3467
+ # p result.response
3468
+ # else
3469
+ # puts "No response received."
3470
+ # end
3471
+ #
2672
3472
  def delete_vmware_engine_network request, options = nil
2673
3473
  raise ::ArgumentError, "request must be provided" if request.nil?
2674
3474
 
@@ -2739,6 +3539,22 @@ module Google
2739
3539
  # @return [::Google::Cloud::VmwareEngine::V1::VmwareEngineNetwork]
2740
3540
  #
2741
3541
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3542
+ #
3543
+ # @example Basic example
3544
+ # require "google/cloud/vmware_engine/v1"
3545
+ #
3546
+ # # Create a client object. The client can be reused for multiple calls.
3547
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
3548
+ #
3549
+ # # Create a request. To set request fields, pass in keyword arguments.
3550
+ # request = Google::Cloud::VmwareEngine::V1::GetVmwareEngineNetworkRequest.new
3551
+ #
3552
+ # # Call the get_vmware_engine_network method.
3553
+ # result = client.get_vmware_engine_network request
3554
+ #
3555
+ # # The returned object is of type Google::Cloud::VmwareEngine::V1::VmwareEngineNetwork.
3556
+ # p result
3557
+ #
2742
3558
  def get_vmware_engine_network request, options = nil
2743
3559
  raise ::ArgumentError, "request must be provided" if request.nil?
2744
3560
 
@@ -2847,6 +3663,26 @@ module Google
2847
3663
  # @return [::Google::Cloud::VmwareEngine::V1::ListVmwareEngineNetworksResponse]
2848
3664
  #
2849
3665
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3666
+ #
3667
+ # @example Basic example
3668
+ # require "google/cloud/vmware_engine/v1"
3669
+ #
3670
+ # # Create a client object. The client can be reused for multiple calls.
3671
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
3672
+ #
3673
+ # # Create a request. To set request fields, pass in keyword arguments.
3674
+ # request = Google::Cloud::VmwareEngine::V1::ListVmwareEngineNetworksRequest.new
3675
+ #
3676
+ # # Call the list_vmware_engine_networks method.
3677
+ # result = client.list_vmware_engine_networks request
3678
+ #
3679
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
3680
+ # # over elements, and API calls will be issued to fetch pages as needed.
3681
+ # result.each do |item|
3682
+ # # Each element is of type ::Google::Cloud::VmwareEngine::V1::VmwareEngineNetwork.
3683
+ # p item
3684
+ # end
3685
+ #
2850
3686
  def list_vmware_engine_networks request, options = nil
2851
3687
  raise ::ArgumentError, "request must be provided" if request.nil?
2852
3688
 
@@ -2883,127 +3719,771 @@ module Google
2883
3719
  end
2884
3720
 
2885
3721
  ##
2886
- # Configuration class for the VmwareEngine REST API.
3722
+ # Creates a new private connection that can be used for accessing private
3723
+ # Clouds.
2887
3724
  #
2888
- # This class represents the configuration for VmwareEngine REST,
2889
- # providing control over timeouts, retry behavior, logging, transport
2890
- # parameters, and other low-level controls. Certain parameters can also be
2891
- # applied individually to specific RPCs. See
2892
- # {::Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client::Configuration::Rpcs}
2893
- # for a list of RPCs that can be configured independently.
3725
+ # @overload create_private_connection(request, options = nil)
3726
+ # Pass arguments to `create_private_connection` via a request object, either of type
3727
+ # {::Google::Cloud::VmwareEngine::V1::CreatePrivateConnectionRequest} or an equivalent Hash.
2894
3728
  #
2895
- # Configuration can be applied globally to all clients, or to a single client
2896
- # on construction.
3729
+ # @param request [::Google::Cloud::VmwareEngine::V1::CreatePrivateConnectionRequest, ::Hash]
3730
+ # A request object representing the call parameters. Required. To specify no
3731
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3732
+ # @param options [::Gapic::CallOptions, ::Hash]
3733
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2897
3734
  #
2898
- # @example
3735
+ # @overload create_private_connection(parent: nil, private_connection_id: nil, private_connection: nil, request_id: nil)
3736
+ # Pass arguments to `create_private_connection` via keyword arguments. Note that at
3737
+ # least one keyword argument is required. To specify no parameters, or to keep all
3738
+ # the default parameter values, pass an empty Hash as a request object (see above).
2899
3739
  #
2900
- # # Modify the global config, setting the timeout for
2901
- # # list_private_clouds to 20 seconds,
2902
- # # and all remaining timeouts to 10 seconds.
2903
- # ::Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.configure do |config|
2904
- # config.timeout = 10.0
2905
- # config.rpcs.list_private_clouds.timeout = 20.0
2906
- # end
3740
+ # @param parent [::String]
3741
+ # Required. The resource name of the location to create the new private
3742
+ # connection in. Private connection is a regional resource.
3743
+ # Resource names are schemeless URIs that follow the conventions in
3744
+ # https://cloud.google.com/apis/design/resource_names. For example:
3745
+ # `projects/my-project/locations/us-central1`
3746
+ # @param private_connection_id [::String]
3747
+ # Required. The user-provided identifier of the new private connection.
3748
+ # This identifier must be unique among private connection resources
3749
+ # within the parent and becomes the final token in the name URI. The
3750
+ # identifier must meet the following requirements:
2907
3751
  #
2908
- # # Apply the above configuration only to a new client.
2909
- # client = ::Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new do |config|
2910
- # config.timeout = 10.0
2911
- # config.rpcs.list_private_clouds.timeout = 20.0
2912
- # end
3752
+ # * Only contains 1-63 alphanumeric characters and hyphens
3753
+ # * Begins with an alphabetical character
3754
+ # * Ends with a non-hyphen character
3755
+ # * Not formatted as a UUID
3756
+ # * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
3757
+ # (section 3.5)
3758
+ # @param private_connection [::Google::Cloud::VmwareEngine::V1::PrivateConnection, ::Hash]
3759
+ # Required. The initial description of the new private connection.
3760
+ # @param request_id [::String]
3761
+ # Optional. A request ID to identify requests. Specify a unique request ID
3762
+ # so that if you must retry your request, the server will know to ignore
3763
+ # the request if it has already been completed. The server guarantees that a
3764
+ # request doesn't result in creation of duplicate commitments for at least 60
3765
+ # minutes.
2913
3766
  #
2914
- # @!attribute [rw] endpoint
2915
- # The hostname or hostname:port of the service endpoint.
2916
- # Defaults to `"vmwareengine.googleapis.com"`.
2917
- # @return [::String]
2918
- # @!attribute [rw] credentials
2919
- # Credentials to send with calls. You may provide any of the following types:
2920
- # * (`String`) The path to a service account key file in JSON format
2921
- # * (`Hash`) A service account key as a Hash
2922
- # * (`Google::Auth::Credentials`) A googleauth credentials object
2923
- # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2924
- # * (`Signet::OAuth2::Client`) A signet oauth2 client object
2925
- # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
2926
- # * (`nil`) indicating no credentials
2927
- # @return [::Object]
2928
- # @!attribute [rw] scope
2929
- # The OAuth scopes
2930
- # @return [::Array<::String>]
2931
- # @!attribute [rw] lib_name
2932
- # The library name as recorded in instrumentation and logging
2933
- # @return [::String]
2934
- # @!attribute [rw] lib_version
2935
- # The library version as recorded in instrumentation and logging
2936
- # @return [::String]
2937
- # @!attribute [rw] timeout
2938
- # The call timeout in seconds.
2939
- # @return [::Numeric]
2940
- # @!attribute [rw] metadata
2941
- # Additional headers to be sent with the call.
2942
- # @return [::Hash{::Symbol=>::String}]
2943
- # @!attribute [rw] retry_policy
2944
- # The retry policy. The value is a hash with the following keys:
2945
- # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
2946
- # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
2947
- # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
2948
- # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
2949
- # trigger a retry.
2950
- # @return [::Hash]
2951
- # @!attribute [rw] quota_project
2952
- # A separate project against which to charge quota.
2953
- # @return [::String]
3767
+ # For example, consider a situation where you make an initial request and the
3768
+ # request times out. If you make the request again with the same request
3769
+ # ID, the server can check if original operation with the same request ID
3770
+ # was received, and if so, will ignore the second request. This prevents
3771
+ # clients from accidentally creating duplicate commitments.
2954
3772
  #
2955
- class Configuration
2956
- extend ::Gapic::Config
3773
+ # The request ID must be a valid UUID with the exception that zero UUID is
3774
+ # not supported (00000000-0000-0000-0000-000000000000).
3775
+ # @yield [result, operation] Access the result along with the TransportOperation object
3776
+ # @yieldparam result [::Gapic::Operation]
3777
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3778
+ #
3779
+ # @return [::Gapic::Operation]
3780
+ #
3781
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3782
+ #
3783
+ # @example Basic example
3784
+ # require "google/cloud/vmware_engine/v1"
3785
+ #
3786
+ # # Create a client object. The client can be reused for multiple calls.
3787
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
3788
+ #
3789
+ # # Create a request. To set request fields, pass in keyword arguments.
3790
+ # request = Google::Cloud::VmwareEngine::V1::CreatePrivateConnectionRequest.new
3791
+ #
3792
+ # # Call the create_private_connection method.
3793
+ # result = client.create_private_connection request
3794
+ #
3795
+ # # The returned object is of type Gapic::Operation. You can use it to
3796
+ # # check the status of an operation, cancel it, or wait for results.
3797
+ # # Here is how to wait for a response.
3798
+ # result.wait_until_done! timeout: 60
3799
+ # if result.response?
3800
+ # p result.response
3801
+ # else
3802
+ # puts "No response received."
3803
+ # end
3804
+ #
3805
+ def create_private_connection request, options = nil
3806
+ raise ::ArgumentError, "request must be provided" if request.nil?
2957
3807
 
2958
- DEFAULT_ENDPOINT = "vmwareengine.googleapis.com"
3808
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::CreatePrivateConnectionRequest
2959
3809
 
2960
- config_attr :endpoint, DEFAULT_ENDPOINT, ::String
2961
- config_attr :credentials, nil do |value|
2962
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2963
- allowed.any? { |klass| klass === value }
2964
- end
2965
- config_attr :scope, nil, ::String, ::Array, nil
2966
- config_attr :lib_name, nil, ::String, nil
2967
- config_attr :lib_version, nil, ::String, nil
2968
- config_attr :timeout, nil, ::Numeric, nil
2969
- config_attr :metadata, nil, ::Hash, nil
2970
- config_attr :retry_policy, nil, ::Hash, ::Proc, nil
2971
- config_attr :quota_project, nil, ::String, nil
3810
+ # Converts hash and nil to an options object
3811
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2972
3812
 
2973
- # @private
2974
- # Overrides for http bindings for the RPCs of this service
2975
- # are only used when this service is used as mixin, and only
2976
- # by the host service.
2977
- # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
2978
- config_attr :bindings_override, {}, ::Hash, nil
3813
+ # Customize the options with defaults
3814
+ call_metadata = @config.rpcs.create_private_connection.metadata.to_h
2979
3815
 
2980
- # @private
2981
- def initialize parent_config = nil
2982
- @parent_config = parent_config unless parent_config.nil?
3816
+ # Set x-goog-api-client and x-goog-user-project headers
3817
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3818
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3819
+ gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
3820
+ transports_version_send: [:rest]
2983
3821
 
2984
- yield self if block_given?
2985
- end
3822
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2986
3823
 
2987
- ##
2988
- # Configurations for individual RPCs
2989
- # @return [Rpcs]
2990
- #
2991
- def rpcs
2992
- @rpcs ||= begin
2993
- parent_rpcs = nil
2994
- parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
2995
- Rpcs.new parent_rpcs
2996
- end
2997
- end
3824
+ options.apply_defaults timeout: @config.rpcs.create_private_connection.timeout,
3825
+ metadata: call_metadata,
3826
+ retry_policy: @config.rpcs.create_private_connection.retry_policy
2998
3827
 
2999
- ##
3000
- # Configuration RPC class for the VmwareEngine API.
3001
- #
3002
- # Includes fields providing the configuration for each RPC in this service.
3003
- # Each configuration object is of type `Gapic::Config::Method` and includes
3004
- # the following configuration fields:
3005
- #
3006
- # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
3828
+ options.apply_defaults timeout: @config.timeout,
3829
+ metadata: @config.metadata,
3830
+ retry_policy: @config.retry_policy
3831
+
3832
+ @vmware_engine_stub.create_private_connection request, options do |result, operation|
3833
+ result = ::Gapic::Operation.new result, @operations_client, options: options
3834
+ yield result, operation if block_given?
3835
+ return result
3836
+ end
3837
+ rescue ::Gapic::Rest::Error => e
3838
+ raise ::Google::Cloud::Error.from_error(e)
3839
+ end
3840
+
3841
+ ##
3842
+ # Retrieves a `PrivateConnection` resource by its resource name. The resource
3843
+ # contains details of the private connection, such as connected
3844
+ # network, routing mode and state.
3845
+ #
3846
+ # @overload get_private_connection(request, options = nil)
3847
+ # Pass arguments to `get_private_connection` via a request object, either of type
3848
+ # {::Google::Cloud::VmwareEngine::V1::GetPrivateConnectionRequest} or an equivalent Hash.
3849
+ #
3850
+ # @param request [::Google::Cloud::VmwareEngine::V1::GetPrivateConnectionRequest, ::Hash]
3851
+ # A request object representing the call parameters. Required. To specify no
3852
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3853
+ # @param options [::Gapic::CallOptions, ::Hash]
3854
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3855
+ #
3856
+ # @overload get_private_connection(name: nil)
3857
+ # Pass arguments to `get_private_connection` via keyword arguments. Note that at
3858
+ # least one keyword argument is required. To specify no parameters, or to keep all
3859
+ # the default parameter values, pass an empty Hash as a request object (see above).
3860
+ #
3861
+ # @param name [::String]
3862
+ # Required. The resource name of the private connection to retrieve.
3863
+ # Resource names are schemeless URIs that follow the conventions in
3864
+ # https://cloud.google.com/apis/design/resource_names.
3865
+ # For example:
3866
+ # `projects/my-project/locations/us-central1/privateConnections/my-connection`
3867
+ # @yield [result, operation] Access the result along with the TransportOperation object
3868
+ # @yieldparam result [::Google::Cloud::VmwareEngine::V1::PrivateConnection]
3869
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3870
+ #
3871
+ # @return [::Google::Cloud::VmwareEngine::V1::PrivateConnection]
3872
+ #
3873
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3874
+ #
3875
+ # @example Basic example
3876
+ # require "google/cloud/vmware_engine/v1"
3877
+ #
3878
+ # # Create a client object. The client can be reused for multiple calls.
3879
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
3880
+ #
3881
+ # # Create a request. To set request fields, pass in keyword arguments.
3882
+ # request = Google::Cloud::VmwareEngine::V1::GetPrivateConnectionRequest.new
3883
+ #
3884
+ # # Call the get_private_connection method.
3885
+ # result = client.get_private_connection request
3886
+ #
3887
+ # # The returned object is of type Google::Cloud::VmwareEngine::V1::PrivateConnection.
3888
+ # p result
3889
+ #
3890
+ def get_private_connection request, options = nil
3891
+ raise ::ArgumentError, "request must be provided" if request.nil?
3892
+
3893
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::GetPrivateConnectionRequest
3894
+
3895
+ # Converts hash and nil to an options object
3896
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3897
+
3898
+ # Customize the options with defaults
3899
+ call_metadata = @config.rpcs.get_private_connection.metadata.to_h
3900
+
3901
+ # Set x-goog-api-client and x-goog-user-project headers
3902
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3903
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3904
+ gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
3905
+ transports_version_send: [:rest]
3906
+
3907
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3908
+
3909
+ options.apply_defaults timeout: @config.rpcs.get_private_connection.timeout,
3910
+ metadata: call_metadata,
3911
+ retry_policy: @config.rpcs.get_private_connection.retry_policy
3912
+
3913
+ options.apply_defaults timeout: @config.timeout,
3914
+ metadata: @config.metadata,
3915
+ retry_policy: @config.retry_policy
3916
+
3917
+ @vmware_engine_stub.get_private_connection request, options do |result, operation|
3918
+ yield result, operation if block_given?
3919
+ return result
3920
+ end
3921
+ rescue ::Gapic::Rest::Error => e
3922
+ raise ::Google::Cloud::Error.from_error(e)
3923
+ end
3924
+
3925
+ ##
3926
+ # Lists `PrivateConnection` resources in a given project and location.
3927
+ #
3928
+ # @overload list_private_connections(request, options = nil)
3929
+ # Pass arguments to `list_private_connections` via a request object, either of type
3930
+ # {::Google::Cloud::VmwareEngine::V1::ListPrivateConnectionsRequest} or an equivalent Hash.
3931
+ #
3932
+ # @param request [::Google::Cloud::VmwareEngine::V1::ListPrivateConnectionsRequest, ::Hash]
3933
+ # A request object representing the call parameters. Required. To specify no
3934
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3935
+ # @param options [::Gapic::CallOptions, ::Hash]
3936
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3937
+ #
3938
+ # @overload list_private_connections(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
3939
+ # Pass arguments to `list_private_connections` via keyword arguments. Note that at
3940
+ # least one keyword argument is required. To specify no parameters, or to keep all
3941
+ # the default parameter values, pass an empty Hash as a request object (see above).
3942
+ #
3943
+ # @param parent [::String]
3944
+ # Required. The resource name of the location to query for
3945
+ # private connections. Resource names are schemeless URIs that follow the
3946
+ # conventions in https://cloud.google.com/apis/design/resource_names. For
3947
+ # example: `projects/my-project/locations/us-central1`
3948
+ # @param page_size [::Integer]
3949
+ # The maximum number of private connections to return in one page.
3950
+ # The maximum value is coerced to 1000.
3951
+ # The default value of this field is 500.
3952
+ # @param page_token [::String]
3953
+ # A page token, received from a previous `ListPrivateConnections` call.
3954
+ # Provide this to retrieve the subsequent page.
3955
+ #
3956
+ # When paginating, all other parameters provided to
3957
+ # `ListPrivateConnections` must match the call that provided the page
3958
+ # token.
3959
+ # @param filter [::String]
3960
+ # A filter expression that matches resources returned in the response.
3961
+ # The expression must specify the field name, a comparison
3962
+ # operator, and the value that you want to use for filtering. The value
3963
+ # must be a string, a number, or a boolean. The comparison operator
3964
+ # must be `=`, `!=`, `>`, or `<`.
3965
+ #
3966
+ # For example, if you are filtering a list of private connections, you can
3967
+ # exclude the ones named `example-connection` by specifying
3968
+ # `name != "example-connection"`.
3969
+ #
3970
+ # To filter on multiple expressions, provide each separate expression within
3971
+ # parentheses. For example:
3972
+ # ```
3973
+ # (name = "example-connection")
3974
+ # (createTime > "2022-09-22T08:15:10.40Z")
3975
+ # ```
3976
+ #
3977
+ # By default, each expression is an `AND` expression. However, you
3978
+ # can include `AND` and `OR` expressions explicitly.
3979
+ # For example:
3980
+ # ```
3981
+ # (name = "example-connection-1") AND
3982
+ # (createTime > "2021-04-12T08:15:10.40Z") OR
3983
+ # (name = "example-connection-2")
3984
+ # ```
3985
+ # @param order_by [::String]
3986
+ # Sorts list results by a certain order. By default, returned results
3987
+ # are ordered by `name` in ascending order.
3988
+ # You can also sort results in descending order based on the `name` value
3989
+ # using `orderBy="name desc"`.
3990
+ # Currently, only ordering by `name` is supported.
3991
+ # @yield [result, operation] Access the result along with the TransportOperation object
3992
+ # @yieldparam result [::Google::Cloud::VmwareEngine::V1::ListPrivateConnectionsResponse]
3993
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3994
+ #
3995
+ # @return [::Google::Cloud::VmwareEngine::V1::ListPrivateConnectionsResponse]
3996
+ #
3997
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3998
+ #
3999
+ # @example Basic example
4000
+ # require "google/cloud/vmware_engine/v1"
4001
+ #
4002
+ # # Create a client object. The client can be reused for multiple calls.
4003
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
4004
+ #
4005
+ # # Create a request. To set request fields, pass in keyword arguments.
4006
+ # request = Google::Cloud::VmwareEngine::V1::ListPrivateConnectionsRequest.new
4007
+ #
4008
+ # # Call the list_private_connections method.
4009
+ # result = client.list_private_connections request
4010
+ #
4011
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
4012
+ # # over elements, and API calls will be issued to fetch pages as needed.
4013
+ # result.each do |item|
4014
+ # # Each element is of type ::Google::Cloud::VmwareEngine::V1::PrivateConnection.
4015
+ # p item
4016
+ # end
4017
+ #
4018
+ def list_private_connections request, options = nil
4019
+ raise ::ArgumentError, "request must be provided" if request.nil?
4020
+
4021
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::ListPrivateConnectionsRequest
4022
+
4023
+ # Converts hash and nil to an options object
4024
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4025
+
4026
+ # Customize the options with defaults
4027
+ call_metadata = @config.rpcs.list_private_connections.metadata.to_h
4028
+
4029
+ # Set x-goog-api-client and x-goog-user-project headers
4030
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4031
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4032
+ gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
4033
+ transports_version_send: [:rest]
4034
+
4035
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4036
+
4037
+ options.apply_defaults timeout: @config.rpcs.list_private_connections.timeout,
4038
+ metadata: call_metadata,
4039
+ retry_policy: @config.rpcs.list_private_connections.retry_policy
4040
+
4041
+ options.apply_defaults timeout: @config.timeout,
4042
+ metadata: @config.metadata,
4043
+ retry_policy: @config.retry_policy
4044
+
4045
+ @vmware_engine_stub.list_private_connections request, options do |result, operation|
4046
+ yield result, operation if block_given?
4047
+ return result
4048
+ end
4049
+ rescue ::Gapic::Rest::Error => e
4050
+ raise ::Google::Cloud::Error.from_error(e)
4051
+ end
4052
+
4053
+ ##
4054
+ # Modifies a `PrivateConnection` resource. Only `description` and
4055
+ # `routing_mode` fields can be updated. Only fields specified in `updateMask`
4056
+ # are applied.
4057
+ #
4058
+ # @overload update_private_connection(request, options = nil)
4059
+ # Pass arguments to `update_private_connection` via a request object, either of type
4060
+ # {::Google::Cloud::VmwareEngine::V1::UpdatePrivateConnectionRequest} or an equivalent Hash.
4061
+ #
4062
+ # @param request [::Google::Cloud::VmwareEngine::V1::UpdatePrivateConnectionRequest, ::Hash]
4063
+ # A request object representing the call parameters. Required. To specify no
4064
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4065
+ # @param options [::Gapic::CallOptions, ::Hash]
4066
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4067
+ #
4068
+ # @overload update_private_connection(private_connection: nil, update_mask: nil, request_id: nil)
4069
+ # Pass arguments to `update_private_connection` via keyword arguments. Note that at
4070
+ # least one keyword argument is required. To specify no parameters, or to keep all
4071
+ # the default parameter values, pass an empty Hash as a request object (see above).
4072
+ #
4073
+ # @param private_connection [::Google::Cloud::VmwareEngine::V1::PrivateConnection, ::Hash]
4074
+ # Required. Private connection description.
4075
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
4076
+ # Required. Field mask is used to specify the fields to be overwritten in the
4077
+ # `PrivateConnection` resource by the update.
4078
+ # The fields specified in the `update_mask` are relative to the resource, not
4079
+ # the full request. A field will be overwritten if it is in the mask. If the
4080
+ # user does not provide a mask then all fields will be overwritten.
4081
+ # @param request_id [::String]
4082
+ # Optional. A request ID to identify requests. Specify a unique request ID
4083
+ # so that if you must retry your request, the server will know to ignore
4084
+ # the request if it has already been completed. The server guarantees that a
4085
+ # request doesn't result in creation of duplicate commitments for at least 60
4086
+ # minutes.
4087
+ #
4088
+ # For example, consider a situation where you make an initial request and the
4089
+ # request times out. If you make the request again with the same request
4090
+ # ID, the server can check if original operation with the same request ID
4091
+ # was received, and if so, will ignore the second request. This prevents
4092
+ # clients from accidentally creating duplicate commitments.
4093
+ #
4094
+ # The request ID must be a valid UUID with the exception that zero UUID is
4095
+ # not supported (00000000-0000-0000-0000-000000000000).
4096
+ # @yield [result, operation] Access the result along with the TransportOperation object
4097
+ # @yieldparam result [::Gapic::Operation]
4098
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4099
+ #
4100
+ # @return [::Gapic::Operation]
4101
+ #
4102
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
4103
+ #
4104
+ # @example Basic example
4105
+ # require "google/cloud/vmware_engine/v1"
4106
+ #
4107
+ # # Create a client object. The client can be reused for multiple calls.
4108
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
4109
+ #
4110
+ # # Create a request. To set request fields, pass in keyword arguments.
4111
+ # request = Google::Cloud::VmwareEngine::V1::UpdatePrivateConnectionRequest.new
4112
+ #
4113
+ # # Call the update_private_connection method.
4114
+ # result = client.update_private_connection request
4115
+ #
4116
+ # # The returned object is of type Gapic::Operation. You can use it to
4117
+ # # check the status of an operation, cancel it, or wait for results.
4118
+ # # Here is how to wait for a response.
4119
+ # result.wait_until_done! timeout: 60
4120
+ # if result.response?
4121
+ # p result.response
4122
+ # else
4123
+ # puts "No response received."
4124
+ # end
4125
+ #
4126
+ def update_private_connection request, options = nil
4127
+ raise ::ArgumentError, "request must be provided" if request.nil?
4128
+
4129
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::UpdatePrivateConnectionRequest
4130
+
4131
+ # Converts hash and nil to an options object
4132
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4133
+
4134
+ # Customize the options with defaults
4135
+ call_metadata = @config.rpcs.update_private_connection.metadata.to_h
4136
+
4137
+ # Set x-goog-api-client and x-goog-user-project headers
4138
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4139
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4140
+ gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
4141
+ transports_version_send: [:rest]
4142
+
4143
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4144
+
4145
+ options.apply_defaults timeout: @config.rpcs.update_private_connection.timeout,
4146
+ metadata: call_metadata,
4147
+ retry_policy: @config.rpcs.update_private_connection.retry_policy
4148
+
4149
+ options.apply_defaults timeout: @config.timeout,
4150
+ metadata: @config.metadata,
4151
+ retry_policy: @config.retry_policy
4152
+
4153
+ @vmware_engine_stub.update_private_connection request, options do |result, operation|
4154
+ result = ::Gapic::Operation.new result, @operations_client, options: options
4155
+ yield result, operation if block_given?
4156
+ return result
4157
+ end
4158
+ rescue ::Gapic::Rest::Error => e
4159
+ raise ::Google::Cloud::Error.from_error(e)
4160
+ end
4161
+
4162
+ ##
4163
+ # Deletes a `PrivateConnection` resource. When a private connection is
4164
+ # deleted for a VMware Engine network, the connected network becomes
4165
+ # inaccessible to that VMware Engine network.
4166
+ #
4167
+ # @overload delete_private_connection(request, options = nil)
4168
+ # Pass arguments to `delete_private_connection` via a request object, either of type
4169
+ # {::Google::Cloud::VmwareEngine::V1::DeletePrivateConnectionRequest} or an equivalent Hash.
4170
+ #
4171
+ # @param request [::Google::Cloud::VmwareEngine::V1::DeletePrivateConnectionRequest, ::Hash]
4172
+ # A request object representing the call parameters. Required. To specify no
4173
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4174
+ # @param options [::Gapic::CallOptions, ::Hash]
4175
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4176
+ #
4177
+ # @overload delete_private_connection(name: nil, request_id: nil)
4178
+ # Pass arguments to `delete_private_connection` via keyword arguments. Note that at
4179
+ # least one keyword argument is required. To specify no parameters, or to keep all
4180
+ # the default parameter values, pass an empty Hash as a request object (see above).
4181
+ #
4182
+ # @param name [::String]
4183
+ # Required. The resource name of the private connection to be deleted.
4184
+ # Resource names are schemeless URIs that follow the conventions in
4185
+ # https://cloud.google.com/apis/design/resource_names.
4186
+ # For example:
4187
+ # `projects/my-project/locations/us-central1/privateConnections/my-connection`
4188
+ # @param request_id [::String]
4189
+ # Optional. A request ID to identify requests. Specify a unique request ID
4190
+ # so that if you must retry your request, the server will know to ignore
4191
+ # the request if it has already been completed. The server guarantees that a
4192
+ # request doesn't result in creation of duplicate commitments for at least 60
4193
+ # minutes.
4194
+ #
4195
+ # For example, consider a situation where you make an initial request and the
4196
+ # request times out. If you make the request again with the same request
4197
+ # ID, the server can check if original operation with the same request ID
4198
+ # was received, and if so, will ignore the second request. This prevents
4199
+ # clients from accidentally creating duplicate commitments.
4200
+ #
4201
+ # The request ID must be a valid UUID with the exception that zero UUID is
4202
+ # not supported (00000000-0000-0000-0000-000000000000).
4203
+ # @yield [result, operation] Access the result along with the TransportOperation object
4204
+ # @yieldparam result [::Gapic::Operation]
4205
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4206
+ #
4207
+ # @return [::Gapic::Operation]
4208
+ #
4209
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
4210
+ #
4211
+ # @example Basic example
4212
+ # require "google/cloud/vmware_engine/v1"
4213
+ #
4214
+ # # Create a client object. The client can be reused for multiple calls.
4215
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
4216
+ #
4217
+ # # Create a request. To set request fields, pass in keyword arguments.
4218
+ # request = Google::Cloud::VmwareEngine::V1::DeletePrivateConnectionRequest.new
4219
+ #
4220
+ # # Call the delete_private_connection method.
4221
+ # result = client.delete_private_connection 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
+ #
4233
+ def delete_private_connection request, options = nil
4234
+ raise ::ArgumentError, "request must be provided" if request.nil?
4235
+
4236
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::DeletePrivateConnectionRequest
4237
+
4238
+ # Converts hash and nil to an options object
4239
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4240
+
4241
+ # Customize the options with defaults
4242
+ call_metadata = @config.rpcs.delete_private_connection.metadata.to_h
4243
+
4244
+ # Set x-goog-api-client and x-goog-user-project headers
4245
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4246
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4247
+ gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
4248
+ transports_version_send: [:rest]
4249
+
4250
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4251
+
4252
+ options.apply_defaults timeout: @config.rpcs.delete_private_connection.timeout,
4253
+ metadata: call_metadata,
4254
+ retry_policy: @config.rpcs.delete_private_connection.retry_policy
4255
+
4256
+ options.apply_defaults timeout: @config.timeout,
4257
+ metadata: @config.metadata,
4258
+ retry_policy: @config.retry_policy
4259
+
4260
+ @vmware_engine_stub.delete_private_connection request, options do |result, operation|
4261
+ result = ::Gapic::Operation.new result, @operations_client, options: options
4262
+ yield result, operation if block_given?
4263
+ return result
4264
+ end
4265
+ rescue ::Gapic::Rest::Error => e
4266
+ raise ::Google::Cloud::Error.from_error(e)
4267
+ end
4268
+
4269
+ ##
4270
+ # Lists the private connection routes exchanged over a peering connection.
4271
+ #
4272
+ # @overload list_private_connection_peering_routes(request, options = nil)
4273
+ # Pass arguments to `list_private_connection_peering_routes` via a request object, either of type
4274
+ # {::Google::Cloud::VmwareEngine::V1::ListPrivateConnectionPeeringRoutesRequest} or an equivalent Hash.
4275
+ #
4276
+ # @param request [::Google::Cloud::VmwareEngine::V1::ListPrivateConnectionPeeringRoutesRequest, ::Hash]
4277
+ # A request object representing the call parameters. Required. To specify no
4278
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4279
+ # @param options [::Gapic::CallOptions, ::Hash]
4280
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4281
+ #
4282
+ # @overload list_private_connection_peering_routes(parent: nil, page_size: nil, page_token: nil)
4283
+ # Pass arguments to `list_private_connection_peering_routes` via keyword arguments. Note that at
4284
+ # least one keyword argument is required. To specify no parameters, or to keep all
4285
+ # the default parameter values, pass an empty Hash as a request object (see above).
4286
+ #
4287
+ # @param parent [::String]
4288
+ # Required. The resource name of the private connection to retrieve peering
4289
+ # routes from. Resource names are schemeless URIs that follow the conventions
4290
+ # in https://cloud.google.com/apis/design/resource_names. For example:
4291
+ # `projects/my-project/locations/us-west1/privateConnections/my-connection`
4292
+ # @param page_size [::Integer]
4293
+ # The maximum number of peering routes to return in one page.
4294
+ # The service may return fewer than this value.
4295
+ # The maximum value is coerced to 1000.
4296
+ # The default value of this field is 500.
4297
+ # @param page_token [::String]
4298
+ # A page token, received from a previous `ListPrivateConnectionPeeringRoutes`
4299
+ # call. Provide this to retrieve the subsequent page. When paginating, all
4300
+ # other parameters provided to `ListPrivateConnectionPeeringRoutes` must
4301
+ # match the call that provided the page token.
4302
+ # @yield [result, operation] Access the result along with the TransportOperation object
4303
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VmwareEngine::V1::PeeringRoute>]
4304
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4305
+ #
4306
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VmwareEngine::V1::PeeringRoute>]
4307
+ #
4308
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
4309
+ #
4310
+ # @example Basic example
4311
+ # require "google/cloud/vmware_engine/v1"
4312
+ #
4313
+ # # Create a client object. The client can be reused for multiple calls.
4314
+ # client = Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
4315
+ #
4316
+ # # Create a request. To set request fields, pass in keyword arguments.
4317
+ # request = Google::Cloud::VmwareEngine::V1::ListPrivateConnectionPeeringRoutesRequest.new
4318
+ #
4319
+ # # Call the list_private_connection_peering_routes method.
4320
+ # result = client.list_private_connection_peering_routes request
4321
+ #
4322
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
4323
+ # # over elements, and API calls will be issued to fetch pages as needed.
4324
+ # result.each do |item|
4325
+ # # Each element is of type ::Google::Cloud::VmwareEngine::V1::PeeringRoute.
4326
+ # p item
4327
+ # end
4328
+ #
4329
+ def list_private_connection_peering_routes request, options = nil
4330
+ raise ::ArgumentError, "request must be provided" if request.nil?
4331
+
4332
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::ListPrivateConnectionPeeringRoutesRequest
4333
+
4334
+ # Converts hash and nil to an options object
4335
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4336
+
4337
+ # Customize the options with defaults
4338
+ call_metadata = @config.rpcs.list_private_connection_peering_routes.metadata.to_h
4339
+
4340
+ # Set x-goog-api-client and x-goog-user-project headers
4341
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4342
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4343
+ gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
4344
+ transports_version_send: [:rest]
4345
+
4346
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4347
+
4348
+ options.apply_defaults timeout: @config.rpcs.list_private_connection_peering_routes.timeout,
4349
+ metadata: call_metadata,
4350
+ retry_policy: @config.rpcs.list_private_connection_peering_routes.retry_policy
4351
+
4352
+ options.apply_defaults timeout: @config.timeout,
4353
+ metadata: @config.metadata,
4354
+ retry_policy: @config.retry_policy
4355
+
4356
+ @vmware_engine_stub.list_private_connection_peering_routes request, options do |result, operation|
4357
+ result = ::Gapic::Rest::PagedEnumerable.new @vmware_engine_stub, :list_private_connection_peering_routes, "peering_routes", request, result, options
4358
+ yield result, operation if block_given?
4359
+ return result
4360
+ end
4361
+ rescue ::Gapic::Rest::Error => e
4362
+ raise ::Google::Cloud::Error.from_error(e)
4363
+ end
4364
+
4365
+ ##
4366
+ # Configuration class for the VmwareEngine REST API.
4367
+ #
4368
+ # This class represents the configuration for VmwareEngine REST,
4369
+ # providing control over timeouts, retry behavior, logging, transport
4370
+ # parameters, and other low-level controls. Certain parameters can also be
4371
+ # applied individually to specific RPCs. See
4372
+ # {::Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client::Configuration::Rpcs}
4373
+ # for a list of RPCs that can be configured independently.
4374
+ #
4375
+ # Configuration can be applied globally to all clients, or to a single client
4376
+ # on construction.
4377
+ #
4378
+ # @example
4379
+ #
4380
+ # # Modify the global config, setting the timeout for
4381
+ # # list_private_clouds to 20 seconds,
4382
+ # # and all remaining timeouts to 10 seconds.
4383
+ # ::Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.configure do |config|
4384
+ # config.timeout = 10.0
4385
+ # config.rpcs.list_private_clouds.timeout = 20.0
4386
+ # end
4387
+ #
4388
+ # # Apply the above configuration only to a new client.
4389
+ # client = ::Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new do |config|
4390
+ # config.timeout = 10.0
4391
+ # config.rpcs.list_private_clouds.timeout = 20.0
4392
+ # end
4393
+ #
4394
+ # @!attribute [rw] endpoint
4395
+ # The hostname or hostname:port of the service endpoint.
4396
+ # Defaults to `"vmwareengine.googleapis.com"`.
4397
+ # @return [::String]
4398
+ # @!attribute [rw] credentials
4399
+ # Credentials to send with calls. You may provide any of the following types:
4400
+ # * (`String`) The path to a service account key file in JSON format
4401
+ # * (`Hash`) A service account key as a Hash
4402
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
4403
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
4404
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
4405
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
4406
+ # * (`nil`) indicating no credentials
4407
+ # @return [::Object]
4408
+ # @!attribute [rw] scope
4409
+ # The OAuth scopes
4410
+ # @return [::Array<::String>]
4411
+ # @!attribute [rw] lib_name
4412
+ # The library name as recorded in instrumentation and logging
4413
+ # @return [::String]
4414
+ # @!attribute [rw] lib_version
4415
+ # The library version as recorded in instrumentation and logging
4416
+ # @return [::String]
4417
+ # @!attribute [rw] timeout
4418
+ # The call timeout in seconds.
4419
+ # @return [::Numeric]
4420
+ # @!attribute [rw] metadata
4421
+ # Additional headers to be sent with the call.
4422
+ # @return [::Hash{::Symbol=>::String}]
4423
+ # @!attribute [rw] retry_policy
4424
+ # The retry policy. The value is a hash with the following keys:
4425
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
4426
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
4427
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
4428
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
4429
+ # trigger a retry.
4430
+ # @return [::Hash]
4431
+ # @!attribute [rw] quota_project
4432
+ # A separate project against which to charge quota.
4433
+ # @return [::String]
4434
+ #
4435
+ class Configuration
4436
+ extend ::Gapic::Config
4437
+
4438
+ DEFAULT_ENDPOINT = "vmwareengine.googleapis.com"
4439
+
4440
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
4441
+ config_attr :credentials, nil do |value|
4442
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
4443
+ allowed.any? { |klass| klass === value }
4444
+ end
4445
+ config_attr :scope, nil, ::String, ::Array, nil
4446
+ config_attr :lib_name, nil, ::String, nil
4447
+ config_attr :lib_version, nil, ::String, nil
4448
+ config_attr :timeout, nil, ::Numeric, nil
4449
+ config_attr :metadata, nil, ::Hash, nil
4450
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
4451
+ config_attr :quota_project, nil, ::String, nil
4452
+
4453
+ # @private
4454
+ # Overrides for http bindings for the RPCs of this service
4455
+ # are only used when this service is used as mixin, and only
4456
+ # by the host service.
4457
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
4458
+ config_attr :bindings_override, {}, ::Hash, nil
4459
+
4460
+ # @private
4461
+ def initialize parent_config = nil
4462
+ @parent_config = parent_config unless parent_config.nil?
4463
+
4464
+ yield self if block_given?
4465
+ end
4466
+
4467
+ ##
4468
+ # Configurations for individual RPCs
4469
+ # @return [Rpcs]
4470
+ #
4471
+ def rpcs
4472
+ @rpcs ||= begin
4473
+ parent_rpcs = nil
4474
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
4475
+ Rpcs.new parent_rpcs
4476
+ end
4477
+ end
4478
+
4479
+ ##
4480
+ # Configuration RPC class for the VmwareEngine API.
4481
+ #
4482
+ # Includes fields providing the configuration for each RPC in this service.
4483
+ # Each configuration object is of type `Gapic::Config::Method` and includes
4484
+ # the following configuration fields:
4485
+ #
4486
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
3007
4487
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
3008
4488
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
3009
4489
  # include the following keys:
@@ -3075,6 +4555,16 @@ module Google
3075
4555
  #
3076
4556
  attr_reader :list_subnets
3077
4557
  ##
4558
+ # RPC-specific configuration for `get_subnet`
4559
+ # @return [::Gapic::Config::Method]
4560
+ #
4561
+ attr_reader :get_subnet
4562
+ ##
4563
+ # RPC-specific configuration for `update_subnet`
4564
+ # @return [::Gapic::Config::Method]
4565
+ #
4566
+ attr_reader :update_subnet
4567
+ ##
3078
4568
  # RPC-specific configuration for `list_node_types`
3079
4569
  # @return [::Gapic::Config::Method]
3080
4570
  #
@@ -3169,6 +4659,36 @@ module Google
3169
4659
  # @return [::Gapic::Config::Method]
3170
4660
  #
3171
4661
  attr_reader :list_vmware_engine_networks
4662
+ ##
4663
+ # RPC-specific configuration for `create_private_connection`
4664
+ # @return [::Gapic::Config::Method]
4665
+ #
4666
+ attr_reader :create_private_connection
4667
+ ##
4668
+ # RPC-specific configuration for `get_private_connection`
4669
+ # @return [::Gapic::Config::Method]
4670
+ #
4671
+ attr_reader :get_private_connection
4672
+ ##
4673
+ # RPC-specific configuration for `list_private_connections`
4674
+ # @return [::Gapic::Config::Method]
4675
+ #
4676
+ attr_reader :list_private_connections
4677
+ ##
4678
+ # RPC-specific configuration for `update_private_connection`
4679
+ # @return [::Gapic::Config::Method]
4680
+ #
4681
+ attr_reader :update_private_connection
4682
+ ##
4683
+ # RPC-specific configuration for `delete_private_connection`
4684
+ # @return [::Gapic::Config::Method]
4685
+ #
4686
+ attr_reader :delete_private_connection
4687
+ ##
4688
+ # RPC-specific configuration for `list_private_connection_peering_routes`
4689
+ # @return [::Gapic::Config::Method]
4690
+ #
4691
+ attr_reader :list_private_connection_peering_routes
3172
4692
 
3173
4693
  # @private
3174
4694
  def initialize parent_rpcs = nil
@@ -3196,6 +4716,10 @@ module Google
3196
4716
  @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
3197
4717
  list_subnets_config = parent_rpcs.list_subnets if parent_rpcs.respond_to? :list_subnets
3198
4718
  @list_subnets = ::Gapic::Config::Method.new list_subnets_config
4719
+ get_subnet_config = parent_rpcs.get_subnet if parent_rpcs.respond_to? :get_subnet
4720
+ @get_subnet = ::Gapic::Config::Method.new get_subnet_config
4721
+ update_subnet_config = parent_rpcs.update_subnet if parent_rpcs.respond_to? :update_subnet
4722
+ @update_subnet = ::Gapic::Config::Method.new update_subnet_config
3199
4723
  list_node_types_config = parent_rpcs.list_node_types if parent_rpcs.respond_to? :list_node_types
3200
4724
  @list_node_types = ::Gapic::Config::Method.new list_node_types_config
3201
4725
  get_node_type_config = parent_rpcs.get_node_type if parent_rpcs.respond_to? :get_node_type
@@ -3234,6 +4758,18 @@ module Google
3234
4758
  @get_vmware_engine_network = ::Gapic::Config::Method.new get_vmware_engine_network_config
3235
4759
  list_vmware_engine_networks_config = parent_rpcs.list_vmware_engine_networks if parent_rpcs.respond_to? :list_vmware_engine_networks
3236
4760
  @list_vmware_engine_networks = ::Gapic::Config::Method.new list_vmware_engine_networks_config
4761
+ create_private_connection_config = parent_rpcs.create_private_connection if parent_rpcs.respond_to? :create_private_connection
4762
+ @create_private_connection = ::Gapic::Config::Method.new create_private_connection_config
4763
+ get_private_connection_config = parent_rpcs.get_private_connection if parent_rpcs.respond_to? :get_private_connection
4764
+ @get_private_connection = ::Gapic::Config::Method.new get_private_connection_config
4765
+ list_private_connections_config = parent_rpcs.list_private_connections if parent_rpcs.respond_to? :list_private_connections
4766
+ @list_private_connections = ::Gapic::Config::Method.new list_private_connections_config
4767
+ update_private_connection_config = parent_rpcs.update_private_connection if parent_rpcs.respond_to? :update_private_connection
4768
+ @update_private_connection = ::Gapic::Config::Method.new update_private_connection_config
4769
+ delete_private_connection_config = parent_rpcs.delete_private_connection if parent_rpcs.respond_to? :delete_private_connection
4770
+ @delete_private_connection = ::Gapic::Config::Method.new delete_private_connection_config
4771
+ list_private_connection_peering_routes_config = parent_rpcs.list_private_connection_peering_routes if parent_rpcs.respond_to? :list_private_connection_peering_routes
4772
+ @list_private_connection_peering_routes = ::Gapic::Config::Method.new list_private_connection_peering_routes_config
3237
4773
 
3238
4774
  yield self if block_given?
3239
4775
  end