google-cloud-vmware_engine-v1 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/vmware_engine/v1/version.rb +1 -1
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/client.rb +1000 -40
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/operations.rb +3 -1
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/paths.rb +40 -0
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/rest/client.rb +837 -99
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/rest/operations.rb +7 -5
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/rest/service_stub.rb +506 -31
- data/lib/google/cloud/vmwareengine/v1/vmwareengine_pb.rb +12 -1
- data/lib/google/cloud/vmwareengine/v1/vmwareengine_resources_pb.rb +10 -1
- data/lib/google/cloud/vmwareengine/v1/vmwareengine_services_pb.rb +28 -0
- data/proto_docs/google/cloud/vmwareengine/v1/vmwareengine.rb +274 -0
- data/proto_docs/google/cloud/vmwareengine/v1/vmwareengine_resources.rb +227 -0
- metadata +4 -4
@@ -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?
|
@@ -198,7 +220,7 @@ module Google
|
|
198
220
|
credentials = @config.credentials
|
199
221
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
200
222
|
# but only if the default endpoint does not have a region prefix.
|
201
|
-
enable_self_signed_jwt = @config.endpoint ==
|
223
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
202
224
|
!@config.endpoint.split(".").first.include?("-")
|
203
225
|
credentials ||= Credentials.default scope: @config.scope,
|
204
226
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -1220,10 +1242,10 @@ module Google
|
|
1220
1242
|
# When paginating, all other parameters provided to
|
1221
1243
|
# `ListSubnetsRequest` must match the call that provided the page token.
|
1222
1244
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1223
|
-
# @yieldparam result [::
|
1245
|
+
# @yieldparam result [::Google::Cloud::VmwareEngine::V1::ListSubnetsResponse]
|
1224
1246
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1225
1247
|
#
|
1226
|
-
# @return [::
|
1248
|
+
# @return [::Google::Cloud::VmwareEngine::V1::ListSubnetsResponse]
|
1227
1249
|
#
|
1228
1250
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1229
1251
|
def list_subnets request, options = nil
|
@@ -1254,7 +1276,146 @@ module Google
|
|
1254
1276
|
retry_policy: @config.retry_policy
|
1255
1277
|
|
1256
1278
|
@vmware_engine_stub.list_subnets request, options do |result, operation|
|
1257
|
-
result
|
1279
|
+
yield result, operation if block_given?
|
1280
|
+
return result
|
1281
|
+
end
|
1282
|
+
rescue ::Gapic::Rest::Error => e
|
1283
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1284
|
+
end
|
1285
|
+
|
1286
|
+
##
|
1287
|
+
# Gets details of a single subnet.
|
1288
|
+
#
|
1289
|
+
# @overload get_subnet(request, options = nil)
|
1290
|
+
# Pass arguments to `get_subnet` via a request object, either of type
|
1291
|
+
# {::Google::Cloud::VmwareEngine::V1::GetSubnetRequest} or an equivalent Hash.
|
1292
|
+
#
|
1293
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::GetSubnetRequest, ::Hash]
|
1294
|
+
# A request object representing the call parameters. Required. To specify no
|
1295
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1296
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1297
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1298
|
+
#
|
1299
|
+
# @overload get_subnet(name: nil)
|
1300
|
+
# Pass arguments to `get_subnet` via keyword arguments. Note that at
|
1301
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1302
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1303
|
+
#
|
1304
|
+
# @param name [::String]
|
1305
|
+
# Required. The resource name of the subnet to retrieve.
|
1306
|
+
# Resource names are schemeless URIs that follow the conventions in
|
1307
|
+
# https://cloud.google.com/apis/design/resource_names.
|
1308
|
+
# For example:
|
1309
|
+
# `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet`
|
1310
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1311
|
+
# @yieldparam result [::Google::Cloud::VmwareEngine::V1::Subnet]
|
1312
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1313
|
+
#
|
1314
|
+
# @return [::Google::Cloud::VmwareEngine::V1::Subnet]
|
1315
|
+
#
|
1316
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1317
|
+
def get_subnet request, options = nil
|
1318
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1319
|
+
|
1320
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::GetSubnetRequest
|
1321
|
+
|
1322
|
+
# Converts hash and nil to an options object
|
1323
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1324
|
+
|
1325
|
+
# Customize the options with defaults
|
1326
|
+
call_metadata = @config.rpcs.get_subnet.metadata.to_h
|
1327
|
+
|
1328
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1329
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1330
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1331
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
1332
|
+
transports_version_send: [:rest]
|
1333
|
+
|
1334
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1335
|
+
|
1336
|
+
options.apply_defaults timeout: @config.rpcs.get_subnet.timeout,
|
1337
|
+
metadata: call_metadata,
|
1338
|
+
retry_policy: @config.rpcs.get_subnet.retry_policy
|
1339
|
+
|
1340
|
+
options.apply_defaults timeout: @config.timeout,
|
1341
|
+
metadata: @config.metadata,
|
1342
|
+
retry_policy: @config.retry_policy
|
1343
|
+
|
1344
|
+
@vmware_engine_stub.get_subnet request, options do |result, operation|
|
1345
|
+
yield result, operation if block_given?
|
1346
|
+
return result
|
1347
|
+
end
|
1348
|
+
rescue ::Gapic::Rest::Error => e
|
1349
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1350
|
+
end
|
1351
|
+
|
1352
|
+
##
|
1353
|
+
# Updates the parameters of a single subnet. Only fields specified in
|
1354
|
+
# `update_mask` are applied.
|
1355
|
+
#
|
1356
|
+
# *Note*: This API is synchronous and always returns a successful
|
1357
|
+
# `google.longrunning.Operation` (LRO). The returned LRO will only have
|
1358
|
+
# `done` and `response` fields.
|
1359
|
+
#
|
1360
|
+
# @overload update_subnet(request, options = nil)
|
1361
|
+
# Pass arguments to `update_subnet` via a request object, either of type
|
1362
|
+
# {::Google::Cloud::VmwareEngine::V1::UpdateSubnetRequest} or an equivalent Hash.
|
1363
|
+
#
|
1364
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::UpdateSubnetRequest, ::Hash]
|
1365
|
+
# A request object representing the call parameters. Required. To specify no
|
1366
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1367
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1368
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1369
|
+
#
|
1370
|
+
# @overload update_subnet(update_mask: nil, subnet: nil)
|
1371
|
+
# Pass arguments to `update_subnet` via keyword arguments. Note that at
|
1372
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1373
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1374
|
+
#
|
1375
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1376
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
1377
|
+
# `Subnet` resource by the update.
|
1378
|
+
# The fields specified in the `update_mask` are relative to the resource, not
|
1379
|
+
# the full request. A field will be overwritten if it is in the mask. If the
|
1380
|
+
# user does not provide a mask then all fields will be overwritten.
|
1381
|
+
# @param subnet [::Google::Cloud::VmwareEngine::V1::Subnet, ::Hash]
|
1382
|
+
# Required. Subnet description.
|
1383
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1384
|
+
# @yieldparam result [::Gapic::Operation]
|
1385
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1386
|
+
#
|
1387
|
+
# @return [::Gapic::Operation]
|
1388
|
+
#
|
1389
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1390
|
+
def update_subnet request, options = nil
|
1391
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1392
|
+
|
1393
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::UpdateSubnetRequest
|
1394
|
+
|
1395
|
+
# Converts hash and nil to an options object
|
1396
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1397
|
+
|
1398
|
+
# Customize the options with defaults
|
1399
|
+
call_metadata = @config.rpcs.update_subnet.metadata.to_h
|
1400
|
+
|
1401
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1402
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1403
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1404
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
1405
|
+
transports_version_send: [:rest]
|
1406
|
+
|
1407
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1408
|
+
|
1409
|
+
options.apply_defaults timeout: @config.rpcs.update_subnet.timeout,
|
1410
|
+
metadata: call_metadata,
|
1411
|
+
retry_policy: @config.rpcs.update_subnet.retry_policy
|
1412
|
+
|
1413
|
+
options.apply_defaults timeout: @config.timeout,
|
1414
|
+
metadata: @config.metadata,
|
1415
|
+
retry_policy: @config.retry_policy
|
1416
|
+
|
1417
|
+
@vmware_engine_stub.update_subnet request, options do |result, operation|
|
1418
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1258
1419
|
yield result, operation if block_given?
|
1259
1420
|
return result
|
1260
1421
|
end
|
@@ -2883,113 +3044,634 @@ module Google
|
|
2883
3044
|
end
|
2884
3045
|
|
2885
3046
|
##
|
2886
|
-
#
|
3047
|
+
# Creates a new private connection that can be used for accessing private
|
3048
|
+
# Clouds.
|
2887
3049
|
#
|
2888
|
-
#
|
2889
|
-
#
|
2890
|
-
#
|
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.
|
3050
|
+
# @overload create_private_connection(request, options = nil)
|
3051
|
+
# Pass arguments to `create_private_connection` via a request object, either of type
|
3052
|
+
# {::Google::Cloud::VmwareEngine::V1::CreatePrivateConnectionRequest} or an equivalent Hash.
|
2894
3053
|
#
|
2895
|
-
#
|
2896
|
-
#
|
3054
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::CreatePrivateConnectionRequest, ::Hash]
|
3055
|
+
# A request object representing the call parameters. Required. To specify no
|
3056
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3057
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3058
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2897
3059
|
#
|
2898
|
-
# @
|
3060
|
+
# @overload create_private_connection(parent: nil, private_connection_id: nil, private_connection: nil, request_id: nil)
|
3061
|
+
# Pass arguments to `create_private_connection` via keyword arguments. Note that at
|
3062
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3063
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2899
3064
|
#
|
2900
|
-
#
|
2901
|
-
#
|
2902
|
-
#
|
2903
|
-
#
|
2904
|
-
#
|
2905
|
-
#
|
2906
|
-
#
|
3065
|
+
# @param parent [::String]
|
3066
|
+
# Required. The resource name of the location to create the new private
|
3067
|
+
# connection in. Private connection is a regional resource.
|
3068
|
+
# Resource names are schemeless URIs that follow the conventions in
|
3069
|
+
# https://cloud.google.com/apis/design/resource_names. For example:
|
3070
|
+
# `projects/my-project/locations/us-central1`
|
3071
|
+
# @param private_connection_id [::String]
|
3072
|
+
# Required. The user-provided identifier of the new private connection.
|
3073
|
+
# This identifier must be unique among private connection resources
|
3074
|
+
# within the parent and becomes the final token in the name URI. The
|
3075
|
+
# identifier must meet the following requirements:
|
2907
3076
|
#
|
2908
|
-
#
|
2909
|
-
#
|
2910
|
-
#
|
2911
|
-
#
|
2912
|
-
#
|
3077
|
+
# * Only contains 1-63 alphanumeric characters and hyphens
|
3078
|
+
# * Begins with an alphabetical character
|
3079
|
+
# * Ends with a non-hyphen character
|
3080
|
+
# * Not formatted as a UUID
|
3081
|
+
# * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
|
3082
|
+
# (section 3.5)
|
3083
|
+
# @param private_connection [::Google::Cloud::VmwareEngine::V1::PrivateConnection, ::Hash]
|
3084
|
+
# Required. The initial description of the new private connection.
|
3085
|
+
# @param request_id [::String]
|
3086
|
+
# Optional. A request ID to identify requests. Specify a unique request ID
|
3087
|
+
# so that if you must retry your request, the server will know to ignore
|
3088
|
+
# the request if it has already been completed. The server guarantees that a
|
3089
|
+
# request doesn't result in creation of duplicate commitments for at least 60
|
3090
|
+
# minutes.
|
2913
3091
|
#
|
2914
|
-
#
|
2915
|
-
#
|
2916
|
-
#
|
2917
|
-
#
|
2918
|
-
#
|
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]
|
3092
|
+
# For example, consider a situation where you make an initial request and the
|
3093
|
+
# request times out. If you make the request again with the same request
|
3094
|
+
# ID, the server can check if original operation with the same request ID
|
3095
|
+
# was received, and if so, will ignore the second request. This prevents
|
3096
|
+
# clients from accidentally creating duplicate commitments.
|
2954
3097
|
#
|
2955
|
-
|
2956
|
-
|
3098
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
3099
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
3100
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3101
|
+
# @yieldparam result [::Gapic::Operation]
|
3102
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3103
|
+
#
|
3104
|
+
# @return [::Gapic::Operation]
|
3105
|
+
#
|
3106
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3107
|
+
def create_private_connection request, options = nil
|
3108
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2957
3109
|
|
2958
|
-
|
2959
|
-
config_attr :credentials, nil do |value|
|
2960
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2961
|
-
allowed.any? { |klass| klass === value }
|
2962
|
-
end
|
2963
|
-
config_attr :scope, nil, ::String, ::Array, nil
|
2964
|
-
config_attr :lib_name, nil, ::String, nil
|
2965
|
-
config_attr :lib_version, nil, ::String, nil
|
2966
|
-
config_attr :timeout, nil, ::Numeric, nil
|
2967
|
-
config_attr :metadata, nil, ::Hash, nil
|
2968
|
-
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
2969
|
-
config_attr :quota_project, nil, ::String, nil
|
3110
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::CreatePrivateConnectionRequest
|
2970
3111
|
|
2971
|
-
#
|
2972
|
-
|
2973
|
-
# are only used when this service is used as mixin, and only
|
2974
|
-
# by the host service.
|
2975
|
-
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
2976
|
-
config_attr :bindings_override, {}, ::Hash, nil
|
3112
|
+
# Converts hash and nil to an options object
|
3113
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2977
3114
|
|
2978
|
-
#
|
2979
|
-
|
2980
|
-
@parent_config = parent_config unless parent_config.nil?
|
3115
|
+
# Customize the options with defaults
|
3116
|
+
call_metadata = @config.rpcs.create_private_connection.metadata.to_h
|
2981
3117
|
|
2982
|
-
|
2983
|
-
|
3118
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
3119
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3120
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3121
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
3122
|
+
transports_version_send: [:rest]
|
2984
3123
|
|
2985
|
-
|
2986
|
-
|
2987
|
-
|
2988
|
-
|
2989
|
-
|
2990
|
-
|
2991
|
-
|
2992
|
-
|
3124
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3125
|
+
|
3126
|
+
options.apply_defaults timeout: @config.rpcs.create_private_connection.timeout,
|
3127
|
+
metadata: call_metadata,
|
3128
|
+
retry_policy: @config.rpcs.create_private_connection.retry_policy
|
3129
|
+
|
3130
|
+
options.apply_defaults timeout: @config.timeout,
|
3131
|
+
metadata: @config.metadata,
|
3132
|
+
retry_policy: @config.retry_policy
|
3133
|
+
|
3134
|
+
@vmware_engine_stub.create_private_connection request, options do |result, operation|
|
3135
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3136
|
+
yield result, operation if block_given?
|
3137
|
+
return result
|
3138
|
+
end
|
3139
|
+
rescue ::Gapic::Rest::Error => e
|
3140
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3141
|
+
end
|
3142
|
+
|
3143
|
+
##
|
3144
|
+
# Retrieves a `PrivateConnection` resource by its resource name. The resource
|
3145
|
+
# contains details of the private connection, such as connected
|
3146
|
+
# network, routing mode and state.
|
3147
|
+
#
|
3148
|
+
# @overload get_private_connection(request, options = nil)
|
3149
|
+
# Pass arguments to `get_private_connection` via a request object, either of type
|
3150
|
+
# {::Google::Cloud::VmwareEngine::V1::GetPrivateConnectionRequest} or an equivalent Hash.
|
3151
|
+
#
|
3152
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::GetPrivateConnectionRequest, ::Hash]
|
3153
|
+
# A request object representing the call parameters. Required. To specify no
|
3154
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3155
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3156
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3157
|
+
#
|
3158
|
+
# @overload get_private_connection(name: nil)
|
3159
|
+
# Pass arguments to `get_private_connection` via keyword arguments. Note that at
|
3160
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3161
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3162
|
+
#
|
3163
|
+
# @param name [::String]
|
3164
|
+
# Required. The resource name of the private connection to retrieve.
|
3165
|
+
# Resource names are schemeless URIs that follow the conventions in
|
3166
|
+
# https://cloud.google.com/apis/design/resource_names.
|
3167
|
+
# For example:
|
3168
|
+
# `projects/my-project/locations/us-central1/privateConnections/my-connection`
|
3169
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3170
|
+
# @yieldparam result [::Google::Cloud::VmwareEngine::V1::PrivateConnection]
|
3171
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3172
|
+
#
|
3173
|
+
# @return [::Google::Cloud::VmwareEngine::V1::PrivateConnection]
|
3174
|
+
#
|
3175
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3176
|
+
def get_private_connection request, options = nil
|
3177
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3178
|
+
|
3179
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::GetPrivateConnectionRequest
|
3180
|
+
|
3181
|
+
# Converts hash and nil to an options object
|
3182
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3183
|
+
|
3184
|
+
# Customize the options with defaults
|
3185
|
+
call_metadata = @config.rpcs.get_private_connection.metadata.to_h
|
3186
|
+
|
3187
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
3188
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3189
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3190
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
3191
|
+
transports_version_send: [:rest]
|
3192
|
+
|
3193
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3194
|
+
|
3195
|
+
options.apply_defaults timeout: @config.rpcs.get_private_connection.timeout,
|
3196
|
+
metadata: call_metadata,
|
3197
|
+
retry_policy: @config.rpcs.get_private_connection.retry_policy
|
3198
|
+
|
3199
|
+
options.apply_defaults timeout: @config.timeout,
|
3200
|
+
metadata: @config.metadata,
|
3201
|
+
retry_policy: @config.retry_policy
|
3202
|
+
|
3203
|
+
@vmware_engine_stub.get_private_connection request, options do |result, operation|
|
3204
|
+
yield result, operation if block_given?
|
3205
|
+
return result
|
3206
|
+
end
|
3207
|
+
rescue ::Gapic::Rest::Error => e
|
3208
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3209
|
+
end
|
3210
|
+
|
3211
|
+
##
|
3212
|
+
# Lists `PrivateConnection` resources in a given project and location.
|
3213
|
+
#
|
3214
|
+
# @overload list_private_connections(request, options = nil)
|
3215
|
+
# Pass arguments to `list_private_connections` via a request object, either of type
|
3216
|
+
# {::Google::Cloud::VmwareEngine::V1::ListPrivateConnectionsRequest} or an equivalent Hash.
|
3217
|
+
#
|
3218
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::ListPrivateConnectionsRequest, ::Hash]
|
3219
|
+
# A request object representing the call parameters. Required. To specify no
|
3220
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3221
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3222
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3223
|
+
#
|
3224
|
+
# @overload list_private_connections(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
3225
|
+
# Pass arguments to `list_private_connections` via keyword arguments. Note that at
|
3226
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3227
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3228
|
+
#
|
3229
|
+
# @param parent [::String]
|
3230
|
+
# Required. The resource name of the location to query for
|
3231
|
+
# private connections. Resource names are schemeless URIs that follow the
|
3232
|
+
# conventions in https://cloud.google.com/apis/design/resource_names. For
|
3233
|
+
# example: `projects/my-project/locations/us-central1`
|
3234
|
+
# @param page_size [::Integer]
|
3235
|
+
# The maximum number of private connections to return in one page.
|
3236
|
+
# The maximum value is coerced to 1000.
|
3237
|
+
# The default value of this field is 500.
|
3238
|
+
# @param page_token [::String]
|
3239
|
+
# A page token, received from a previous `ListPrivateConnections` call.
|
3240
|
+
# Provide this to retrieve the subsequent page.
|
3241
|
+
#
|
3242
|
+
# When paginating, all other parameters provided to
|
3243
|
+
# `ListPrivateConnections` must match the call that provided the page
|
3244
|
+
# token.
|
3245
|
+
# @param filter [::String]
|
3246
|
+
# A filter expression that matches resources returned in the response.
|
3247
|
+
# The expression must specify the field name, a comparison
|
3248
|
+
# operator, and the value that you want to use for filtering. The value
|
3249
|
+
# must be a string, a number, or a boolean. The comparison operator
|
3250
|
+
# must be `=`, `!=`, `>`, or `<`.
|
3251
|
+
#
|
3252
|
+
# For example, if you are filtering a list of private connections, you can
|
3253
|
+
# exclude the ones named `example-connection` by specifying
|
3254
|
+
# `name != "example-connection"`.
|
3255
|
+
#
|
3256
|
+
# To filter on multiple expressions, provide each separate expression within
|
3257
|
+
# parentheses. For example:
|
3258
|
+
# ```
|
3259
|
+
# (name = "example-connection")
|
3260
|
+
# (createTime > "2022-09-22T08:15:10.40Z")
|
3261
|
+
# ```
|
3262
|
+
#
|
3263
|
+
# By default, each expression is an `AND` expression. However, you
|
3264
|
+
# can include `AND` and `OR` expressions explicitly.
|
3265
|
+
# For example:
|
3266
|
+
# ```
|
3267
|
+
# (name = "example-connection-1") AND
|
3268
|
+
# (createTime > "2021-04-12T08:15:10.40Z") OR
|
3269
|
+
# (name = "example-connection-2")
|
3270
|
+
# ```
|
3271
|
+
# @param order_by [::String]
|
3272
|
+
# Sorts list results by a certain order. By default, returned results
|
3273
|
+
# are ordered by `name` in ascending order.
|
3274
|
+
# You can also sort results in descending order based on the `name` value
|
3275
|
+
# using `orderBy="name desc"`.
|
3276
|
+
# Currently, only ordering by `name` is supported.
|
3277
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3278
|
+
# @yieldparam result [::Google::Cloud::VmwareEngine::V1::ListPrivateConnectionsResponse]
|
3279
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3280
|
+
#
|
3281
|
+
# @return [::Google::Cloud::VmwareEngine::V1::ListPrivateConnectionsResponse]
|
3282
|
+
#
|
3283
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3284
|
+
def list_private_connections request, options = nil
|
3285
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3286
|
+
|
3287
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::ListPrivateConnectionsRequest
|
3288
|
+
|
3289
|
+
# Converts hash and nil to an options object
|
3290
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3291
|
+
|
3292
|
+
# Customize the options with defaults
|
3293
|
+
call_metadata = @config.rpcs.list_private_connections.metadata.to_h
|
3294
|
+
|
3295
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
3296
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3297
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3298
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
3299
|
+
transports_version_send: [:rest]
|
3300
|
+
|
3301
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3302
|
+
|
3303
|
+
options.apply_defaults timeout: @config.rpcs.list_private_connections.timeout,
|
3304
|
+
metadata: call_metadata,
|
3305
|
+
retry_policy: @config.rpcs.list_private_connections.retry_policy
|
3306
|
+
|
3307
|
+
options.apply_defaults timeout: @config.timeout,
|
3308
|
+
metadata: @config.metadata,
|
3309
|
+
retry_policy: @config.retry_policy
|
3310
|
+
|
3311
|
+
@vmware_engine_stub.list_private_connections request, options do |result, operation|
|
3312
|
+
yield result, operation if block_given?
|
3313
|
+
return result
|
3314
|
+
end
|
3315
|
+
rescue ::Gapic::Rest::Error => e
|
3316
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3317
|
+
end
|
3318
|
+
|
3319
|
+
##
|
3320
|
+
# Modifies a `PrivateConnection` resource. Only `description` and
|
3321
|
+
# `routing_mode` fields can be updated. Only fields specified in `updateMask`
|
3322
|
+
# are applied.
|
3323
|
+
#
|
3324
|
+
# @overload update_private_connection(request, options = nil)
|
3325
|
+
# Pass arguments to `update_private_connection` via a request object, either of type
|
3326
|
+
# {::Google::Cloud::VmwareEngine::V1::UpdatePrivateConnectionRequest} or an equivalent Hash.
|
3327
|
+
#
|
3328
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::UpdatePrivateConnectionRequest, ::Hash]
|
3329
|
+
# A request object representing the call parameters. Required. To specify no
|
3330
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3331
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3332
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3333
|
+
#
|
3334
|
+
# @overload update_private_connection(private_connection: nil, update_mask: nil, request_id: nil)
|
3335
|
+
# Pass arguments to `update_private_connection` via keyword arguments. Note that at
|
3336
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3337
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3338
|
+
#
|
3339
|
+
# @param private_connection [::Google::Cloud::VmwareEngine::V1::PrivateConnection, ::Hash]
|
3340
|
+
# Required. Private connection description.
|
3341
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
3342
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
3343
|
+
# `PrivateConnection` resource by the update.
|
3344
|
+
# The fields specified in the `update_mask` are relative to the resource, not
|
3345
|
+
# the full request. A field will be overwritten if it is in the mask. If the
|
3346
|
+
# user does not provide a mask then all fields will be overwritten.
|
3347
|
+
# @param request_id [::String]
|
3348
|
+
# Optional. A request ID to identify requests. Specify a unique request ID
|
3349
|
+
# so that if you must retry your request, the server will know to ignore
|
3350
|
+
# the request if it has already been completed. The server guarantees that a
|
3351
|
+
# request doesn't result in creation of duplicate commitments for at least 60
|
3352
|
+
# minutes.
|
3353
|
+
#
|
3354
|
+
# For example, consider a situation where you make an initial request and the
|
3355
|
+
# request times out. If you make the request again with the same request
|
3356
|
+
# ID, the server can check if original operation with the same request ID
|
3357
|
+
# was received, and if so, will ignore the second request. This prevents
|
3358
|
+
# clients from accidentally creating duplicate commitments.
|
3359
|
+
#
|
3360
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
3361
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
3362
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3363
|
+
# @yieldparam result [::Gapic::Operation]
|
3364
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3365
|
+
#
|
3366
|
+
# @return [::Gapic::Operation]
|
3367
|
+
#
|
3368
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3369
|
+
def update_private_connection request, options = nil
|
3370
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3371
|
+
|
3372
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::UpdatePrivateConnectionRequest
|
3373
|
+
|
3374
|
+
# Converts hash and nil to an options object
|
3375
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3376
|
+
|
3377
|
+
# Customize the options with defaults
|
3378
|
+
call_metadata = @config.rpcs.update_private_connection.metadata.to_h
|
3379
|
+
|
3380
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
3381
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3382
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3383
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
3384
|
+
transports_version_send: [:rest]
|
3385
|
+
|
3386
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3387
|
+
|
3388
|
+
options.apply_defaults timeout: @config.rpcs.update_private_connection.timeout,
|
3389
|
+
metadata: call_metadata,
|
3390
|
+
retry_policy: @config.rpcs.update_private_connection.retry_policy
|
3391
|
+
|
3392
|
+
options.apply_defaults timeout: @config.timeout,
|
3393
|
+
metadata: @config.metadata,
|
3394
|
+
retry_policy: @config.retry_policy
|
3395
|
+
|
3396
|
+
@vmware_engine_stub.update_private_connection request, options do |result, operation|
|
3397
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3398
|
+
yield result, operation if block_given?
|
3399
|
+
return result
|
3400
|
+
end
|
3401
|
+
rescue ::Gapic::Rest::Error => e
|
3402
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3403
|
+
end
|
3404
|
+
|
3405
|
+
##
|
3406
|
+
# Deletes a `PrivateConnection` resource. When a private connection is
|
3407
|
+
# deleted for a VMware Engine network, the connected network becomes
|
3408
|
+
# inaccessible to that VMware Engine network.
|
3409
|
+
#
|
3410
|
+
# @overload delete_private_connection(request, options = nil)
|
3411
|
+
# Pass arguments to `delete_private_connection` via a request object, either of type
|
3412
|
+
# {::Google::Cloud::VmwareEngine::V1::DeletePrivateConnectionRequest} or an equivalent Hash.
|
3413
|
+
#
|
3414
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::DeletePrivateConnectionRequest, ::Hash]
|
3415
|
+
# A request object representing the call parameters. Required. To specify no
|
3416
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3417
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3418
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3419
|
+
#
|
3420
|
+
# @overload delete_private_connection(name: nil, request_id: nil)
|
3421
|
+
# Pass arguments to `delete_private_connection` via keyword arguments. Note that at
|
3422
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3423
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3424
|
+
#
|
3425
|
+
# @param name [::String]
|
3426
|
+
# Required. The resource name of the private connection to be deleted.
|
3427
|
+
# Resource names are schemeless URIs that follow the conventions in
|
3428
|
+
# https://cloud.google.com/apis/design/resource_names.
|
3429
|
+
# For example:
|
3430
|
+
# `projects/my-project/locations/us-central1/privateConnections/my-connection`
|
3431
|
+
# @param request_id [::String]
|
3432
|
+
# Optional. A request ID to identify requests. Specify a unique request ID
|
3433
|
+
# so that if you must retry your request, the server will know to ignore
|
3434
|
+
# the request if it has already been completed. The server guarantees that a
|
3435
|
+
# request doesn't result in creation of duplicate commitments for at least 60
|
3436
|
+
# minutes.
|
3437
|
+
#
|
3438
|
+
# For example, consider a situation where you make an initial request and the
|
3439
|
+
# request times out. If you make the request again with the same request
|
3440
|
+
# ID, the server can check if original operation with the same request ID
|
3441
|
+
# was received, and if so, will ignore the second request. This prevents
|
3442
|
+
# clients from accidentally creating duplicate commitments.
|
3443
|
+
#
|
3444
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
3445
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
3446
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3447
|
+
# @yieldparam result [::Gapic::Operation]
|
3448
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3449
|
+
#
|
3450
|
+
# @return [::Gapic::Operation]
|
3451
|
+
#
|
3452
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3453
|
+
def delete_private_connection request, options = nil
|
3454
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3455
|
+
|
3456
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::DeletePrivateConnectionRequest
|
3457
|
+
|
3458
|
+
# Converts hash and nil to an options object
|
3459
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3460
|
+
|
3461
|
+
# Customize the options with defaults
|
3462
|
+
call_metadata = @config.rpcs.delete_private_connection.metadata.to_h
|
3463
|
+
|
3464
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
3465
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3466
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3467
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
3468
|
+
transports_version_send: [:rest]
|
3469
|
+
|
3470
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3471
|
+
|
3472
|
+
options.apply_defaults timeout: @config.rpcs.delete_private_connection.timeout,
|
3473
|
+
metadata: call_metadata,
|
3474
|
+
retry_policy: @config.rpcs.delete_private_connection.retry_policy
|
3475
|
+
|
3476
|
+
options.apply_defaults timeout: @config.timeout,
|
3477
|
+
metadata: @config.metadata,
|
3478
|
+
retry_policy: @config.retry_policy
|
3479
|
+
|
3480
|
+
@vmware_engine_stub.delete_private_connection request, options do |result, operation|
|
3481
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3482
|
+
yield result, operation if block_given?
|
3483
|
+
return result
|
3484
|
+
end
|
3485
|
+
rescue ::Gapic::Rest::Error => e
|
3486
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3487
|
+
end
|
3488
|
+
|
3489
|
+
##
|
3490
|
+
# Lists the private connection routes exchanged over a peering connection.
|
3491
|
+
#
|
3492
|
+
# @overload list_private_connection_peering_routes(request, options = nil)
|
3493
|
+
# Pass arguments to `list_private_connection_peering_routes` via a request object, either of type
|
3494
|
+
# {::Google::Cloud::VmwareEngine::V1::ListPrivateConnectionPeeringRoutesRequest} or an equivalent Hash.
|
3495
|
+
#
|
3496
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::ListPrivateConnectionPeeringRoutesRequest, ::Hash]
|
3497
|
+
# A request object representing the call parameters. Required. To specify no
|
3498
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3499
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3500
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3501
|
+
#
|
3502
|
+
# @overload list_private_connection_peering_routes(parent: nil, page_size: nil, page_token: nil)
|
3503
|
+
# Pass arguments to `list_private_connection_peering_routes` via keyword arguments. Note that at
|
3504
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3505
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3506
|
+
#
|
3507
|
+
# @param parent [::String]
|
3508
|
+
# Required. The resource name of the private connection to retrieve peering
|
3509
|
+
# routes from. Resource names are schemeless URIs that follow the conventions
|
3510
|
+
# in https://cloud.google.com/apis/design/resource_names. For example:
|
3511
|
+
# `projects/my-project/locations/us-west1/privateConnections/my-connection`
|
3512
|
+
# @param page_size [::Integer]
|
3513
|
+
# The maximum number of peering routes to return in one page.
|
3514
|
+
# The service may return fewer than this value.
|
3515
|
+
# The maximum value is coerced to 1000.
|
3516
|
+
# The default value of this field is 500.
|
3517
|
+
# @param page_token [::String]
|
3518
|
+
# A page token, received from a previous `ListPrivateConnectionPeeringRoutes`
|
3519
|
+
# call. Provide this to retrieve the subsequent page. When paginating, all
|
3520
|
+
# other parameters provided to `ListPrivateConnectionPeeringRoutes` must
|
3521
|
+
# match the call that provided the page token.
|
3522
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3523
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VmwareEngine::V1::PeeringRoute>]
|
3524
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3525
|
+
#
|
3526
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VmwareEngine::V1::PeeringRoute>]
|
3527
|
+
#
|
3528
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3529
|
+
def list_private_connection_peering_routes request, options = nil
|
3530
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3531
|
+
|
3532
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::ListPrivateConnectionPeeringRoutesRequest
|
3533
|
+
|
3534
|
+
# Converts hash and nil to an options object
|
3535
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3536
|
+
|
3537
|
+
# Customize the options with defaults
|
3538
|
+
call_metadata = @config.rpcs.list_private_connection_peering_routes.metadata.to_h
|
3539
|
+
|
3540
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
3541
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3542
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3543
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
3544
|
+
transports_version_send: [:rest]
|
3545
|
+
|
3546
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3547
|
+
|
3548
|
+
options.apply_defaults timeout: @config.rpcs.list_private_connection_peering_routes.timeout,
|
3549
|
+
metadata: call_metadata,
|
3550
|
+
retry_policy: @config.rpcs.list_private_connection_peering_routes.retry_policy
|
3551
|
+
|
3552
|
+
options.apply_defaults timeout: @config.timeout,
|
3553
|
+
metadata: @config.metadata,
|
3554
|
+
retry_policy: @config.retry_policy
|
3555
|
+
|
3556
|
+
@vmware_engine_stub.list_private_connection_peering_routes request, options do |result, operation|
|
3557
|
+
result = ::Gapic::Rest::PagedEnumerable.new @vmware_engine_stub, :list_private_connection_peering_routes, "peering_routes", request, result, options
|
3558
|
+
yield result, operation if block_given?
|
3559
|
+
return result
|
3560
|
+
end
|
3561
|
+
rescue ::Gapic::Rest::Error => e
|
3562
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3563
|
+
end
|
3564
|
+
|
3565
|
+
##
|
3566
|
+
# Configuration class for the VmwareEngine REST API.
|
3567
|
+
#
|
3568
|
+
# This class represents the configuration for VmwareEngine REST,
|
3569
|
+
# providing control over timeouts, retry behavior, logging, transport
|
3570
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
3571
|
+
# applied individually to specific RPCs. See
|
3572
|
+
# {::Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client::Configuration::Rpcs}
|
3573
|
+
# for a list of RPCs that can be configured independently.
|
3574
|
+
#
|
3575
|
+
# Configuration can be applied globally to all clients, or to a single client
|
3576
|
+
# on construction.
|
3577
|
+
#
|
3578
|
+
# @example
|
3579
|
+
#
|
3580
|
+
# # Modify the global config, setting the timeout for
|
3581
|
+
# # list_private_clouds to 20 seconds,
|
3582
|
+
# # and all remaining timeouts to 10 seconds.
|
3583
|
+
# ::Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.configure do |config|
|
3584
|
+
# config.timeout = 10.0
|
3585
|
+
# config.rpcs.list_private_clouds.timeout = 20.0
|
3586
|
+
# end
|
3587
|
+
#
|
3588
|
+
# # Apply the above configuration only to a new client.
|
3589
|
+
# client = ::Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new do |config|
|
3590
|
+
# config.timeout = 10.0
|
3591
|
+
# config.rpcs.list_private_clouds.timeout = 20.0
|
3592
|
+
# end
|
3593
|
+
#
|
3594
|
+
# @!attribute [rw] endpoint
|
3595
|
+
# The hostname or hostname:port of the service endpoint.
|
3596
|
+
# Defaults to `"vmwareengine.googleapis.com"`.
|
3597
|
+
# @return [::String]
|
3598
|
+
# @!attribute [rw] credentials
|
3599
|
+
# Credentials to send with calls. You may provide any of the following types:
|
3600
|
+
# * (`String`) The path to a service account key file in JSON format
|
3601
|
+
# * (`Hash`) A service account key as a Hash
|
3602
|
+
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
3603
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
3604
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
3605
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
3606
|
+
# * (`nil`) indicating no credentials
|
3607
|
+
# @return [::Object]
|
3608
|
+
# @!attribute [rw] scope
|
3609
|
+
# The OAuth scopes
|
3610
|
+
# @return [::Array<::String>]
|
3611
|
+
# @!attribute [rw] lib_name
|
3612
|
+
# The library name as recorded in instrumentation and logging
|
3613
|
+
# @return [::String]
|
3614
|
+
# @!attribute [rw] lib_version
|
3615
|
+
# The library version as recorded in instrumentation and logging
|
3616
|
+
# @return [::String]
|
3617
|
+
# @!attribute [rw] timeout
|
3618
|
+
# The call timeout in seconds.
|
3619
|
+
# @return [::Numeric]
|
3620
|
+
# @!attribute [rw] metadata
|
3621
|
+
# Additional headers to be sent with the call.
|
3622
|
+
# @return [::Hash{::Symbol=>::String}]
|
3623
|
+
# @!attribute [rw] retry_policy
|
3624
|
+
# The retry policy. The value is a hash with the following keys:
|
3625
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
3626
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
3627
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
3628
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
3629
|
+
# trigger a retry.
|
3630
|
+
# @return [::Hash]
|
3631
|
+
# @!attribute [rw] quota_project
|
3632
|
+
# A separate project against which to charge quota.
|
3633
|
+
# @return [::String]
|
3634
|
+
#
|
3635
|
+
class Configuration
|
3636
|
+
extend ::Gapic::Config
|
3637
|
+
|
3638
|
+
DEFAULT_ENDPOINT = "vmwareengine.googleapis.com"
|
3639
|
+
|
3640
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
3641
|
+
config_attr :credentials, nil do |value|
|
3642
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
3643
|
+
allowed.any? { |klass| klass === value }
|
3644
|
+
end
|
3645
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
3646
|
+
config_attr :lib_name, nil, ::String, nil
|
3647
|
+
config_attr :lib_version, nil, ::String, nil
|
3648
|
+
config_attr :timeout, nil, ::Numeric, nil
|
3649
|
+
config_attr :metadata, nil, ::Hash, nil
|
3650
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
3651
|
+
config_attr :quota_project, nil, ::String, nil
|
3652
|
+
|
3653
|
+
# @private
|
3654
|
+
# Overrides for http bindings for the RPCs of this service
|
3655
|
+
# are only used when this service is used as mixin, and only
|
3656
|
+
# by the host service.
|
3657
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
3658
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
3659
|
+
|
3660
|
+
# @private
|
3661
|
+
def initialize parent_config = nil
|
3662
|
+
@parent_config = parent_config unless parent_config.nil?
|
3663
|
+
|
3664
|
+
yield self if block_given?
|
3665
|
+
end
|
3666
|
+
|
3667
|
+
##
|
3668
|
+
# Configurations for individual RPCs
|
3669
|
+
# @return [Rpcs]
|
3670
|
+
#
|
3671
|
+
def rpcs
|
3672
|
+
@rpcs ||= begin
|
3673
|
+
parent_rpcs = nil
|
3674
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
2993
3675
|
Rpcs.new parent_rpcs
|
2994
3676
|
end
|
2995
3677
|
end
|
@@ -3073,6 +3755,16 @@ module Google
|
|
3073
3755
|
#
|
3074
3756
|
attr_reader :list_subnets
|
3075
3757
|
##
|
3758
|
+
# RPC-specific configuration for `get_subnet`
|
3759
|
+
# @return [::Gapic::Config::Method]
|
3760
|
+
#
|
3761
|
+
attr_reader :get_subnet
|
3762
|
+
##
|
3763
|
+
# RPC-specific configuration for `update_subnet`
|
3764
|
+
# @return [::Gapic::Config::Method]
|
3765
|
+
#
|
3766
|
+
attr_reader :update_subnet
|
3767
|
+
##
|
3076
3768
|
# RPC-specific configuration for `list_node_types`
|
3077
3769
|
# @return [::Gapic::Config::Method]
|
3078
3770
|
#
|
@@ -3167,6 +3859,36 @@ module Google
|
|
3167
3859
|
# @return [::Gapic::Config::Method]
|
3168
3860
|
#
|
3169
3861
|
attr_reader :list_vmware_engine_networks
|
3862
|
+
##
|
3863
|
+
# RPC-specific configuration for `create_private_connection`
|
3864
|
+
# @return [::Gapic::Config::Method]
|
3865
|
+
#
|
3866
|
+
attr_reader :create_private_connection
|
3867
|
+
##
|
3868
|
+
# RPC-specific configuration for `get_private_connection`
|
3869
|
+
# @return [::Gapic::Config::Method]
|
3870
|
+
#
|
3871
|
+
attr_reader :get_private_connection
|
3872
|
+
##
|
3873
|
+
# RPC-specific configuration for `list_private_connections`
|
3874
|
+
# @return [::Gapic::Config::Method]
|
3875
|
+
#
|
3876
|
+
attr_reader :list_private_connections
|
3877
|
+
##
|
3878
|
+
# RPC-specific configuration for `update_private_connection`
|
3879
|
+
# @return [::Gapic::Config::Method]
|
3880
|
+
#
|
3881
|
+
attr_reader :update_private_connection
|
3882
|
+
##
|
3883
|
+
# RPC-specific configuration for `delete_private_connection`
|
3884
|
+
# @return [::Gapic::Config::Method]
|
3885
|
+
#
|
3886
|
+
attr_reader :delete_private_connection
|
3887
|
+
##
|
3888
|
+
# RPC-specific configuration for `list_private_connection_peering_routes`
|
3889
|
+
# @return [::Gapic::Config::Method]
|
3890
|
+
#
|
3891
|
+
attr_reader :list_private_connection_peering_routes
|
3170
3892
|
|
3171
3893
|
# @private
|
3172
3894
|
def initialize parent_rpcs = nil
|
@@ -3194,6 +3916,10 @@ module Google
|
|
3194
3916
|
@delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
|
3195
3917
|
list_subnets_config = parent_rpcs.list_subnets if parent_rpcs.respond_to? :list_subnets
|
3196
3918
|
@list_subnets = ::Gapic::Config::Method.new list_subnets_config
|
3919
|
+
get_subnet_config = parent_rpcs.get_subnet if parent_rpcs.respond_to? :get_subnet
|
3920
|
+
@get_subnet = ::Gapic::Config::Method.new get_subnet_config
|
3921
|
+
update_subnet_config = parent_rpcs.update_subnet if parent_rpcs.respond_to? :update_subnet
|
3922
|
+
@update_subnet = ::Gapic::Config::Method.new update_subnet_config
|
3197
3923
|
list_node_types_config = parent_rpcs.list_node_types if parent_rpcs.respond_to? :list_node_types
|
3198
3924
|
@list_node_types = ::Gapic::Config::Method.new list_node_types_config
|
3199
3925
|
get_node_type_config = parent_rpcs.get_node_type if parent_rpcs.respond_to? :get_node_type
|
@@ -3232,6 +3958,18 @@ module Google
|
|
3232
3958
|
@get_vmware_engine_network = ::Gapic::Config::Method.new get_vmware_engine_network_config
|
3233
3959
|
list_vmware_engine_networks_config = parent_rpcs.list_vmware_engine_networks if parent_rpcs.respond_to? :list_vmware_engine_networks
|
3234
3960
|
@list_vmware_engine_networks = ::Gapic::Config::Method.new list_vmware_engine_networks_config
|
3961
|
+
create_private_connection_config = parent_rpcs.create_private_connection if parent_rpcs.respond_to? :create_private_connection
|
3962
|
+
@create_private_connection = ::Gapic::Config::Method.new create_private_connection_config
|
3963
|
+
get_private_connection_config = parent_rpcs.get_private_connection if parent_rpcs.respond_to? :get_private_connection
|
3964
|
+
@get_private_connection = ::Gapic::Config::Method.new get_private_connection_config
|
3965
|
+
list_private_connections_config = parent_rpcs.list_private_connections if parent_rpcs.respond_to? :list_private_connections
|
3966
|
+
@list_private_connections = ::Gapic::Config::Method.new list_private_connections_config
|
3967
|
+
update_private_connection_config = parent_rpcs.update_private_connection if parent_rpcs.respond_to? :update_private_connection
|
3968
|
+
@update_private_connection = ::Gapic::Config::Method.new update_private_connection_config
|
3969
|
+
delete_private_connection_config = parent_rpcs.delete_private_connection if parent_rpcs.respond_to? :delete_private_connection
|
3970
|
+
@delete_private_connection = ::Gapic::Config::Method.new delete_private_connection_config
|
3971
|
+
list_private_connection_peering_routes_config = parent_rpcs.list_private_connection_peering_routes if parent_rpcs.respond_to? :list_private_connection_peering_routes
|
3972
|
+
@list_private_connection_peering_routes = ::Gapic::Config::Method.new list_private_connection_peering_routes_config
|
3235
3973
|
|
3236
3974
|
yield self if block_given?
|
3237
3975
|
end
|