google-cloud-vmware_engine-v1 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/vmware_engine/v1/bindings_override.rb +183 -0
- data/lib/google/cloud/vmware_engine/v1/rest.rb +38 -0
- data/lib/google/cloud/vmware_engine/v1/version.rb +1 -1
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/client.rb +92 -106
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/operations.rb +12 -14
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/rest/client.rb +3246 -0
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/rest/operations.rb +793 -0
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/rest/service_stub.rb +1889 -0
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/rest.rb +54 -0
- data/lib/google/cloud/vmware_engine/v1/vmware_engine.rb +6 -0
- data/lib/google/cloud/vmware_engine/v1.rb +5 -0
- data/lib/google/cloud/vmwareengine/v1/vmwareengine_pb.rb +1 -210
- data/lib/google/cloud/vmwareengine/v1/vmwareengine_resources_pb.rb +232 -0
- data/proto_docs/google/cloud/vmwareengine/v1/vmwareengine.rb +0 -648
- data/proto_docs/google/cloud/vmwareengine/v1/vmwareengine_resources.rb +674 -0
- metadata +19 -11
@@ -0,0 +1,3246 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/errors"
|
20
|
+
require "google/cloud/vmwareengine/v1/vmwareengine_pb"
|
21
|
+
require "google/cloud/vmware_engine/v1/vmware_engine/rest/service_stub"
|
22
|
+
require "google/cloud/location/rest"
|
23
|
+
require "google/iam/v1/rest"
|
24
|
+
|
25
|
+
module Google
|
26
|
+
module Cloud
|
27
|
+
module VmwareEngine
|
28
|
+
module V1
|
29
|
+
module VmwareEngine
|
30
|
+
module Rest
|
31
|
+
##
|
32
|
+
# REST client for the VmwareEngine service.
|
33
|
+
#
|
34
|
+
# VMwareEngine manages VMware's private clusters in the Cloud.
|
35
|
+
#
|
36
|
+
class Client
|
37
|
+
include Paths
|
38
|
+
|
39
|
+
# @private
|
40
|
+
attr_reader :vmware_engine_stub
|
41
|
+
|
42
|
+
##
|
43
|
+
# Configure the VmwareEngine Client class.
|
44
|
+
#
|
45
|
+
# See {::Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client::Configuration}
|
46
|
+
# for a description of the configuration fields.
|
47
|
+
#
|
48
|
+
# @example
|
49
|
+
#
|
50
|
+
# # Modify the configuration for all VmwareEngine clients
|
51
|
+
# ::Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.configure do |config|
|
52
|
+
# config.timeout = 10.0
|
53
|
+
# end
|
54
|
+
#
|
55
|
+
# @yield [config] Configure the Client client.
|
56
|
+
# @yieldparam config [Client::Configuration]
|
57
|
+
#
|
58
|
+
# @return [Client::Configuration]
|
59
|
+
#
|
60
|
+
def self.configure
|
61
|
+
@configure ||= begin
|
62
|
+
namespace = ["Google", "Cloud", "VmwareEngine", "V1"]
|
63
|
+
parent_config = while namespace.any?
|
64
|
+
parent_name = namespace.join "::"
|
65
|
+
parent_const = const_get parent_name
|
66
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
67
|
+
namespace.pop
|
68
|
+
end
|
69
|
+
default_config = Client::Configuration.new parent_config
|
70
|
+
|
71
|
+
default_config.timeout = 120.0
|
72
|
+
|
73
|
+
default_config.rpcs.list_private_clouds.timeout = 120.0
|
74
|
+
default_config.rpcs.list_private_clouds.retry_policy = {
|
75
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
76
|
+
}
|
77
|
+
|
78
|
+
default_config.rpcs.get_private_cloud.timeout = 120.0
|
79
|
+
default_config.rpcs.get_private_cloud.retry_policy = {
|
80
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
81
|
+
}
|
82
|
+
|
83
|
+
default_config.rpcs.list_clusters.timeout = 120.0
|
84
|
+
default_config.rpcs.list_clusters.retry_policy = {
|
85
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
86
|
+
}
|
87
|
+
|
88
|
+
default_config.rpcs.get_cluster.timeout = 120.0
|
89
|
+
default_config.rpcs.get_cluster.retry_policy = {
|
90
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
91
|
+
}
|
92
|
+
|
93
|
+
default_config.rpcs.list_subnets.timeout = 120.0
|
94
|
+
default_config.rpcs.list_subnets.retry_policy = {
|
95
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
96
|
+
}
|
97
|
+
|
98
|
+
default_config.rpcs.list_node_types.timeout = 120.0
|
99
|
+
default_config.rpcs.list_node_types.retry_policy = {
|
100
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
101
|
+
}
|
102
|
+
|
103
|
+
default_config.rpcs.get_node_type.timeout = 120.0
|
104
|
+
default_config.rpcs.get_node_type.retry_policy = {
|
105
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
106
|
+
}
|
107
|
+
|
108
|
+
default_config.rpcs.show_nsx_credentials.timeout = 120.0
|
109
|
+
default_config.rpcs.show_nsx_credentials.retry_policy = {
|
110
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
111
|
+
}
|
112
|
+
|
113
|
+
default_config.rpcs.show_vcenter_credentials.timeout = 120.0
|
114
|
+
default_config.rpcs.show_vcenter_credentials.retry_policy = {
|
115
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
116
|
+
}
|
117
|
+
|
118
|
+
default_config.rpcs.list_hcx_activation_keys.timeout = 120.0
|
119
|
+
default_config.rpcs.list_hcx_activation_keys.retry_policy = {
|
120
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
121
|
+
}
|
122
|
+
|
123
|
+
default_config.rpcs.get_hcx_activation_key.timeout = 120.0
|
124
|
+
default_config.rpcs.get_hcx_activation_key.retry_policy = {
|
125
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
126
|
+
}
|
127
|
+
|
128
|
+
default_config.rpcs.get_network_policy.timeout = 120.0
|
129
|
+
default_config.rpcs.get_network_policy.retry_policy = {
|
130
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
131
|
+
}
|
132
|
+
|
133
|
+
default_config.rpcs.list_network_policies.timeout = 120.0
|
134
|
+
default_config.rpcs.list_network_policies.retry_policy = {
|
135
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
136
|
+
}
|
137
|
+
|
138
|
+
default_config.rpcs.get_vmware_engine_network.timeout = 120.0
|
139
|
+
default_config.rpcs.get_vmware_engine_network.retry_policy = {
|
140
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
141
|
+
}
|
142
|
+
|
143
|
+
default_config.rpcs.list_vmware_engine_networks.timeout = 120.0
|
144
|
+
default_config.rpcs.list_vmware_engine_networks.retry_policy = {
|
145
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
146
|
+
}
|
147
|
+
|
148
|
+
default_config
|
149
|
+
end
|
150
|
+
yield @configure if block_given?
|
151
|
+
@configure
|
152
|
+
end
|
153
|
+
|
154
|
+
##
|
155
|
+
# Configure the VmwareEngine Client instance.
|
156
|
+
#
|
157
|
+
# The configuration is set to the derived mode, meaning that values can be changed,
|
158
|
+
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
159
|
+
# should be made on {Client.configure}.
|
160
|
+
#
|
161
|
+
# See {::Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client::Configuration}
|
162
|
+
# for a description of the configuration fields.
|
163
|
+
#
|
164
|
+
# @yield [config] Configure the Client client.
|
165
|
+
# @yieldparam config [Client::Configuration]
|
166
|
+
#
|
167
|
+
# @return [Client::Configuration]
|
168
|
+
#
|
169
|
+
def configure
|
170
|
+
yield @config if block_given?
|
171
|
+
@config
|
172
|
+
end
|
173
|
+
|
174
|
+
##
|
175
|
+
# Create a new VmwareEngine REST client object.
|
176
|
+
#
|
177
|
+
# @example
|
178
|
+
#
|
179
|
+
# # Create a client using the default configuration
|
180
|
+
# client = ::Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
|
181
|
+
#
|
182
|
+
# # Create a client using a custom configuration
|
183
|
+
# client = ::Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new do |config|
|
184
|
+
# config.timeout = 10.0
|
185
|
+
# end
|
186
|
+
#
|
187
|
+
# @yield [config] Configure the VmwareEngine client.
|
188
|
+
# @yieldparam config [Client::Configuration]
|
189
|
+
#
|
190
|
+
def initialize
|
191
|
+
# Create the configuration object
|
192
|
+
@config = Configuration.new Client.configure
|
193
|
+
|
194
|
+
# Yield the configuration if needed
|
195
|
+
yield @config if block_given?
|
196
|
+
|
197
|
+
# Create credentials
|
198
|
+
credentials = @config.credentials
|
199
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
200
|
+
# but only if the default endpoint does not have a region prefix.
|
201
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
202
|
+
!@config.endpoint.split(".").first.include?("-")
|
203
|
+
credentials ||= Credentials.default scope: @config.scope,
|
204
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
205
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
206
|
+
credentials = Credentials.new credentials, scope: @config.scope
|
207
|
+
end
|
208
|
+
|
209
|
+
@quota_project_id = @config.quota_project
|
210
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
211
|
+
|
212
|
+
@operations_client = ::Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Operations.new do |config|
|
213
|
+
config.credentials = credentials
|
214
|
+
config.quota_project = @quota_project_id
|
215
|
+
config.endpoint = @config.endpoint
|
216
|
+
end
|
217
|
+
|
218
|
+
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
219
|
+
config.credentials = credentials
|
220
|
+
config.quota_project = @quota_project_id
|
221
|
+
config.endpoint = @config.endpoint
|
222
|
+
config.bindings_override = @config.bindings_override
|
223
|
+
end
|
224
|
+
|
225
|
+
@iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
|
226
|
+
config.credentials = credentials
|
227
|
+
config.quota_project = @quota_project_id
|
228
|
+
config.endpoint = @config.endpoint
|
229
|
+
config.bindings_override = @config.bindings_override
|
230
|
+
end
|
231
|
+
|
232
|
+
@vmware_engine_stub = ::Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
233
|
+
end
|
234
|
+
|
235
|
+
##
|
236
|
+
# Get the associated client for long-running operations.
|
237
|
+
#
|
238
|
+
# @return [::Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Operations]
|
239
|
+
#
|
240
|
+
attr_reader :operations_client
|
241
|
+
|
242
|
+
##
|
243
|
+
# Get the associated client for mix-in of the Locations.
|
244
|
+
#
|
245
|
+
# @return [Google::Cloud::Location::Locations::Rest::Client]
|
246
|
+
#
|
247
|
+
attr_reader :location_client
|
248
|
+
|
249
|
+
##
|
250
|
+
# Get the associated client for mix-in of the IAMPolicy.
|
251
|
+
#
|
252
|
+
# @return [Google::Iam::V1::IAMPolicy::Rest::Client]
|
253
|
+
#
|
254
|
+
attr_reader :iam_policy_client
|
255
|
+
|
256
|
+
# Service calls
|
257
|
+
|
258
|
+
##
|
259
|
+
# Lists `PrivateCloud` resources in a given project and location.
|
260
|
+
#
|
261
|
+
# @overload list_private_clouds(request, options = nil)
|
262
|
+
# Pass arguments to `list_private_clouds` via a request object, either of type
|
263
|
+
# {::Google::Cloud::VmwareEngine::V1::ListPrivateCloudsRequest} or an equivalent Hash.
|
264
|
+
#
|
265
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::ListPrivateCloudsRequest, ::Hash]
|
266
|
+
# A request object representing the call parameters. Required. To specify no
|
267
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
268
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
269
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
270
|
+
#
|
271
|
+
# @overload list_private_clouds(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
272
|
+
# Pass arguments to `list_private_clouds` via keyword arguments. Note that at
|
273
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
274
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
275
|
+
#
|
276
|
+
# @param parent [::String]
|
277
|
+
# Required. The resource name of the private cloud to be queried for
|
278
|
+
# clusters. Resource names are schemeless URIs that follow the conventions in
|
279
|
+
# https://cloud.google.com/apis/design/resource_names.
|
280
|
+
# For example:
|
281
|
+
# `projects/my-project/locations/us-central1-a`
|
282
|
+
# @param page_size [::Integer]
|
283
|
+
# The maximum number of private clouds to return in one page.
|
284
|
+
# The service may return fewer than this value.
|
285
|
+
# The maximum value is coerced to 1000.
|
286
|
+
# The default value of this field is 500.
|
287
|
+
# @param page_token [::String]
|
288
|
+
# A page token, received from a previous `ListPrivateClouds` call.
|
289
|
+
# Provide this to retrieve the subsequent page.
|
290
|
+
#
|
291
|
+
# When paginating, all other parameters provided to `ListPrivateClouds` must
|
292
|
+
# match the call that provided the page token.
|
293
|
+
# @param filter [::String]
|
294
|
+
# A filter expression that matches resources returned in the response.
|
295
|
+
# The expression must specify the field name, a comparison operator, and the
|
296
|
+
# value that you want to use for filtering. The value must be a string, a
|
297
|
+
# number, or a boolean. The comparison operator must be `=`, `!=`, `>`, or
|
298
|
+
# `<`.
|
299
|
+
#
|
300
|
+
# For example, if you are filtering a list of private clouds, you can exclude
|
301
|
+
# the ones named `example-pc` by specifying `name != "example-pc"`.
|
302
|
+
#
|
303
|
+
# You can also filter nested fields. For example, you could specify
|
304
|
+
# `networkConfig.managementCidr = "192.168.0.0/24"` to include private clouds
|
305
|
+
# only if they have a matching address in their network configuration.
|
306
|
+
#
|
307
|
+
# To filter on multiple expressions, provide each separate expression within
|
308
|
+
# parentheses. For example:
|
309
|
+
# ```
|
310
|
+
# (name = "example-pc")
|
311
|
+
# (createTime > "2021-04-12T08:15:10.40Z")
|
312
|
+
# ```
|
313
|
+
#
|
314
|
+
# By default, each expression is an `AND` expression. However, you can
|
315
|
+
# include `AND` and `OR` expressions explicitly. For example:
|
316
|
+
# ```
|
317
|
+
# (name = "private-cloud-1") AND
|
318
|
+
# (createTime > "2021-04-12T08:15:10.40Z") OR
|
319
|
+
# (name = "private-cloud-2")
|
320
|
+
# ```
|
321
|
+
# @param order_by [::String]
|
322
|
+
# Sorts list results by a certain order. By default, returned results are
|
323
|
+
# ordered by `name` in ascending order. You can also sort results in
|
324
|
+
# descending order based on the `name` value using `orderBy="name desc"`.
|
325
|
+
# Currently, only ordering by `name` is supported.
|
326
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
327
|
+
# @yieldparam result [::Google::Cloud::VmwareEngine::V1::ListPrivateCloudsResponse]
|
328
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
329
|
+
#
|
330
|
+
# @return [::Google::Cloud::VmwareEngine::V1::ListPrivateCloudsResponse]
|
331
|
+
#
|
332
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
333
|
+
def list_private_clouds request, options = nil
|
334
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
335
|
+
|
336
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::ListPrivateCloudsRequest
|
337
|
+
|
338
|
+
# Converts hash and nil to an options object
|
339
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
340
|
+
|
341
|
+
# Customize the options with defaults
|
342
|
+
call_metadata = @config.rpcs.list_private_clouds.metadata.to_h
|
343
|
+
|
344
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
345
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
346
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
347
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
348
|
+
transports_version_send: [:rest]
|
349
|
+
|
350
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
351
|
+
|
352
|
+
options.apply_defaults timeout: @config.rpcs.list_private_clouds.timeout,
|
353
|
+
metadata: call_metadata,
|
354
|
+
retry_policy: @config.rpcs.list_private_clouds.retry_policy
|
355
|
+
|
356
|
+
options.apply_defaults timeout: @config.timeout,
|
357
|
+
metadata: @config.metadata,
|
358
|
+
retry_policy: @config.retry_policy
|
359
|
+
|
360
|
+
@vmware_engine_stub.list_private_clouds request, options do |result, operation|
|
361
|
+
yield result, operation if block_given?
|
362
|
+
return result
|
363
|
+
end
|
364
|
+
rescue ::Gapic::Rest::Error => e
|
365
|
+
raise ::Google::Cloud::Error.from_error(e)
|
366
|
+
end
|
367
|
+
|
368
|
+
##
|
369
|
+
# Retrieves a `PrivateCloud` resource by its resource name.
|
370
|
+
#
|
371
|
+
# @overload get_private_cloud(request, options = nil)
|
372
|
+
# Pass arguments to `get_private_cloud` via a request object, either of type
|
373
|
+
# {::Google::Cloud::VmwareEngine::V1::GetPrivateCloudRequest} or an equivalent Hash.
|
374
|
+
#
|
375
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::GetPrivateCloudRequest, ::Hash]
|
376
|
+
# A request object representing the call parameters. Required. To specify no
|
377
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
378
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
379
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
380
|
+
#
|
381
|
+
# @overload get_private_cloud(name: nil)
|
382
|
+
# Pass arguments to `get_private_cloud` via keyword arguments. Note that at
|
383
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
384
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
385
|
+
#
|
386
|
+
# @param name [::String]
|
387
|
+
# Required. The resource name of the private cloud to retrieve.
|
388
|
+
# Resource names are schemeless URIs that follow the conventions in
|
389
|
+
# https://cloud.google.com/apis/design/resource_names.
|
390
|
+
# For example:
|
391
|
+
# `projects/my-project/locations/us-central1-a/privateClouds/my-cloud`
|
392
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
393
|
+
# @yieldparam result [::Google::Cloud::VmwareEngine::V1::PrivateCloud]
|
394
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
395
|
+
#
|
396
|
+
# @return [::Google::Cloud::VmwareEngine::V1::PrivateCloud]
|
397
|
+
#
|
398
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
399
|
+
def get_private_cloud request, options = nil
|
400
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
401
|
+
|
402
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::GetPrivateCloudRequest
|
403
|
+
|
404
|
+
# Converts hash and nil to an options object
|
405
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
406
|
+
|
407
|
+
# Customize the options with defaults
|
408
|
+
call_metadata = @config.rpcs.get_private_cloud.metadata.to_h
|
409
|
+
|
410
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
411
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
412
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
413
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
414
|
+
transports_version_send: [:rest]
|
415
|
+
|
416
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
417
|
+
|
418
|
+
options.apply_defaults timeout: @config.rpcs.get_private_cloud.timeout,
|
419
|
+
metadata: call_metadata,
|
420
|
+
retry_policy: @config.rpcs.get_private_cloud.retry_policy
|
421
|
+
|
422
|
+
options.apply_defaults timeout: @config.timeout,
|
423
|
+
metadata: @config.metadata,
|
424
|
+
retry_policy: @config.retry_policy
|
425
|
+
|
426
|
+
@vmware_engine_stub.get_private_cloud request, options do |result, operation|
|
427
|
+
yield result, operation if block_given?
|
428
|
+
return result
|
429
|
+
end
|
430
|
+
rescue ::Gapic::Rest::Error => e
|
431
|
+
raise ::Google::Cloud::Error.from_error(e)
|
432
|
+
end
|
433
|
+
|
434
|
+
##
|
435
|
+
# Creates a new `PrivateCloud` resource in a given project and location.
|
436
|
+
# Private clouds can only be created in zones, regional private clouds are
|
437
|
+
# not supported.
|
438
|
+
#
|
439
|
+
# Creating a private cloud also creates a [management
|
440
|
+
# cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components)
|
441
|
+
# for that private cloud.
|
442
|
+
#
|
443
|
+
# @overload create_private_cloud(request, options = nil)
|
444
|
+
# Pass arguments to `create_private_cloud` via a request object, either of type
|
445
|
+
# {::Google::Cloud::VmwareEngine::V1::CreatePrivateCloudRequest} or an equivalent Hash.
|
446
|
+
#
|
447
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::CreatePrivateCloudRequest, ::Hash]
|
448
|
+
# A request object representing the call parameters. Required. To specify no
|
449
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
450
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
451
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
452
|
+
#
|
453
|
+
# @overload create_private_cloud(parent: nil, private_cloud_id: nil, private_cloud: nil, request_id: nil, validate_only: nil)
|
454
|
+
# Pass arguments to `create_private_cloud` via keyword arguments. Note that at
|
455
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
456
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
457
|
+
#
|
458
|
+
# @param parent [::String]
|
459
|
+
# Required. The resource name of the location to create the new
|
460
|
+
# private cloud in. Resource names are schemeless URIs that follow the
|
461
|
+
# conventions in https://cloud.google.com/apis/design/resource_names.
|
462
|
+
# For example:
|
463
|
+
# `projects/my-project/locations/us-central1-a`
|
464
|
+
# @param private_cloud_id [::String]
|
465
|
+
# Required. The user-provided identifier of the private cloud to be created.
|
466
|
+
# This identifier must be unique among each `PrivateCloud` within the parent
|
467
|
+
# and becomes the final token in the name URI.
|
468
|
+
# The identifier must meet the following requirements:
|
469
|
+
#
|
470
|
+
# * Only contains 1-63 alphanumeric characters and hyphens
|
471
|
+
# * Begins with an alphabetical character
|
472
|
+
# * Ends with a non-hyphen character
|
473
|
+
# * Not formatted as a UUID
|
474
|
+
# * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
|
475
|
+
# (section 3.5)
|
476
|
+
# @param private_cloud [::Google::Cloud::VmwareEngine::V1::PrivateCloud, ::Hash]
|
477
|
+
# Required. The initial description of the new private cloud.
|
478
|
+
# @param request_id [::String]
|
479
|
+
# Optional. The request ID must be a valid UUID with the exception that zero
|
480
|
+
# UUID is not supported (00000000-0000-0000-0000-000000000000).
|
481
|
+
# @param validate_only [::Boolean]
|
482
|
+
# Optional. True if you want the request to be validated and not executed;
|
483
|
+
# false otherwise.
|
484
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
485
|
+
# @yieldparam result [::Gapic::Operation]
|
486
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
487
|
+
#
|
488
|
+
# @return [::Gapic::Operation]
|
489
|
+
#
|
490
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
491
|
+
def create_private_cloud request, options = nil
|
492
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
493
|
+
|
494
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::CreatePrivateCloudRequest
|
495
|
+
|
496
|
+
# Converts hash and nil to an options object
|
497
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
498
|
+
|
499
|
+
# Customize the options with defaults
|
500
|
+
call_metadata = @config.rpcs.create_private_cloud.metadata.to_h
|
501
|
+
|
502
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
503
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
504
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
505
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
506
|
+
transports_version_send: [:rest]
|
507
|
+
|
508
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
509
|
+
|
510
|
+
options.apply_defaults timeout: @config.rpcs.create_private_cloud.timeout,
|
511
|
+
metadata: call_metadata,
|
512
|
+
retry_policy: @config.rpcs.create_private_cloud.retry_policy
|
513
|
+
|
514
|
+
options.apply_defaults timeout: @config.timeout,
|
515
|
+
metadata: @config.metadata,
|
516
|
+
retry_policy: @config.retry_policy
|
517
|
+
|
518
|
+
@vmware_engine_stub.create_private_cloud request, options do |result, operation|
|
519
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
520
|
+
yield result, operation if block_given?
|
521
|
+
return result
|
522
|
+
end
|
523
|
+
rescue ::Gapic::Rest::Error => e
|
524
|
+
raise ::Google::Cloud::Error.from_error(e)
|
525
|
+
end
|
526
|
+
|
527
|
+
##
|
528
|
+
# Modifies a `PrivateCloud` resource. Only the following fields can be
|
529
|
+
# updated: `description`.
|
530
|
+
# Only fields specified in `updateMask` are applied.
|
531
|
+
#
|
532
|
+
# During operation processing, the resource is temporarily in the `ACTIVE`
|
533
|
+
# state before the operation fully completes. For that period of time, you
|
534
|
+
# can't update the resource. Use the operation status to determine when the
|
535
|
+
# processing fully completes.
|
536
|
+
#
|
537
|
+
# @overload update_private_cloud(request, options = nil)
|
538
|
+
# Pass arguments to `update_private_cloud` via a request object, either of type
|
539
|
+
# {::Google::Cloud::VmwareEngine::V1::UpdatePrivateCloudRequest} or an equivalent Hash.
|
540
|
+
#
|
541
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::UpdatePrivateCloudRequest, ::Hash]
|
542
|
+
# A request object representing the call parameters. Required. To specify no
|
543
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
544
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
545
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
546
|
+
#
|
547
|
+
# @overload update_private_cloud(private_cloud: nil, update_mask: nil, request_id: nil)
|
548
|
+
# Pass arguments to `update_private_cloud` via keyword arguments. Note that at
|
549
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
550
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
551
|
+
#
|
552
|
+
# @param private_cloud [::Google::Cloud::VmwareEngine::V1::PrivateCloud, ::Hash]
|
553
|
+
# Required. Private cloud description.
|
554
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
555
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
556
|
+
# `PrivateCloud` resource by the update. The fields specified in `updateMask`
|
557
|
+
# are relative to the resource, not the full request. A field will be
|
558
|
+
# overwritten if it is in the mask. If the user does not provide a mask then
|
559
|
+
# all fields will be overwritten.
|
560
|
+
# @param request_id [::String]
|
561
|
+
# Optional. The request ID must be a valid UUID with the exception that zero
|
562
|
+
# UUID is not supported (00000000-0000-0000-0000-000000000000).
|
563
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
564
|
+
# @yieldparam result [::Gapic::Operation]
|
565
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
566
|
+
#
|
567
|
+
# @return [::Gapic::Operation]
|
568
|
+
#
|
569
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
570
|
+
def update_private_cloud request, options = nil
|
571
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
572
|
+
|
573
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::UpdatePrivateCloudRequest
|
574
|
+
|
575
|
+
# Converts hash and nil to an options object
|
576
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
577
|
+
|
578
|
+
# Customize the options with defaults
|
579
|
+
call_metadata = @config.rpcs.update_private_cloud.metadata.to_h
|
580
|
+
|
581
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
582
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
583
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
584
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
585
|
+
transports_version_send: [:rest]
|
586
|
+
|
587
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
588
|
+
|
589
|
+
options.apply_defaults timeout: @config.rpcs.update_private_cloud.timeout,
|
590
|
+
metadata: call_metadata,
|
591
|
+
retry_policy: @config.rpcs.update_private_cloud.retry_policy
|
592
|
+
|
593
|
+
options.apply_defaults timeout: @config.timeout,
|
594
|
+
metadata: @config.metadata,
|
595
|
+
retry_policy: @config.retry_policy
|
596
|
+
|
597
|
+
@vmware_engine_stub.update_private_cloud request, options do |result, operation|
|
598
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
599
|
+
yield result, operation if block_given?
|
600
|
+
return result
|
601
|
+
end
|
602
|
+
rescue ::Gapic::Rest::Error => e
|
603
|
+
raise ::Google::Cloud::Error.from_error(e)
|
604
|
+
end
|
605
|
+
|
606
|
+
##
|
607
|
+
# Schedules a `PrivateCloud` resource for deletion.
|
608
|
+
#
|
609
|
+
# A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state`
|
610
|
+
# set to `DELETED` and `expireTime` set to the time when deletion is final
|
611
|
+
# and can no longer be reversed. The delete operation is marked as done
|
612
|
+
# as soon as the `PrivateCloud` is successfully scheduled for deletion
|
613
|
+
# (this also applies when `delayHours` is set to zero), and the operation is
|
614
|
+
# not kept in pending state until `PrivateCloud` is purged.
|
615
|
+
# `PrivateCloud` can be restored using `UndeletePrivateCloud` method before
|
616
|
+
# the `expireTime` elapses. When `expireTime` is reached, deletion is final
|
617
|
+
# and all private cloud resources are irreversibly removed and billing stops.
|
618
|
+
# During the final removal process, `PrivateCloud.state` is set to `PURGING`.
|
619
|
+
# `PrivateCloud` can be polled using standard `GET` method for the whole
|
620
|
+
# period of deletion and purging. It will not be returned only
|
621
|
+
# when it is completely purged.
|
622
|
+
#
|
623
|
+
# @overload delete_private_cloud(request, options = nil)
|
624
|
+
# Pass arguments to `delete_private_cloud` via a request object, either of type
|
625
|
+
# {::Google::Cloud::VmwareEngine::V1::DeletePrivateCloudRequest} or an equivalent Hash.
|
626
|
+
#
|
627
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::DeletePrivateCloudRequest, ::Hash]
|
628
|
+
# A request object representing the call parameters. Required. To specify no
|
629
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
630
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
631
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
632
|
+
#
|
633
|
+
# @overload delete_private_cloud(name: nil, request_id: nil, force: nil, delay_hours: nil)
|
634
|
+
# Pass arguments to `delete_private_cloud` via keyword arguments. Note that at
|
635
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
636
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
637
|
+
#
|
638
|
+
# @param name [::String]
|
639
|
+
# Required. The resource name of the private cloud to delete.
|
640
|
+
# Resource names are schemeless URIs that follow the conventions in
|
641
|
+
# https://cloud.google.com/apis/design/resource_names.
|
642
|
+
# For example:
|
643
|
+
# `projects/my-project/locations/us-central1-a/privateClouds/my-cloud`
|
644
|
+
# @param request_id [::String]
|
645
|
+
# Optional. The request ID must be a valid UUID with the exception that zero
|
646
|
+
# UUID is not supported (00000000-0000-0000-0000-000000000000).
|
647
|
+
# @param force [::Boolean]
|
648
|
+
# Optional. If set to true, cascade delete is enabled and all children of
|
649
|
+
# this private cloud resource are also deleted. When this flag is set to
|
650
|
+
# false, the private cloud will not be deleted if there are any children
|
651
|
+
# other than the management cluster. The management cluster is always
|
652
|
+
# deleted.
|
653
|
+
# @param delay_hours [::Integer]
|
654
|
+
# Optional. Time delay of the deletion specified in hours. The default value
|
655
|
+
# is `3`. Specifying a non-zero value for this field changes the value of
|
656
|
+
# `PrivateCloud.state` to `DELETED` and sets `expire_time` to the planned
|
657
|
+
# deletion time. Deletion can be cancelled before `expire_time` elapses using
|
658
|
+
# {::Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client#undelete_private_cloud VmwareEngine.UndeletePrivateCloud}.
|
659
|
+
# Specifying a value of `0` for this field instead begins the deletion
|
660
|
+
# process and ceases billing immediately. During the final deletion process,
|
661
|
+
# the value of `PrivateCloud.state` becomes `PURGING`.
|
662
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
663
|
+
# @yieldparam result [::Gapic::Operation]
|
664
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
665
|
+
#
|
666
|
+
# @return [::Gapic::Operation]
|
667
|
+
#
|
668
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
669
|
+
def delete_private_cloud request, options = nil
|
670
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
671
|
+
|
672
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::DeletePrivateCloudRequest
|
673
|
+
|
674
|
+
# Converts hash and nil to an options object
|
675
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
676
|
+
|
677
|
+
# Customize the options with defaults
|
678
|
+
call_metadata = @config.rpcs.delete_private_cloud.metadata.to_h
|
679
|
+
|
680
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
681
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
682
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
683
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
684
|
+
transports_version_send: [:rest]
|
685
|
+
|
686
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
687
|
+
|
688
|
+
options.apply_defaults timeout: @config.rpcs.delete_private_cloud.timeout,
|
689
|
+
metadata: call_metadata,
|
690
|
+
retry_policy: @config.rpcs.delete_private_cloud.retry_policy
|
691
|
+
|
692
|
+
options.apply_defaults timeout: @config.timeout,
|
693
|
+
metadata: @config.metadata,
|
694
|
+
retry_policy: @config.retry_policy
|
695
|
+
|
696
|
+
@vmware_engine_stub.delete_private_cloud request, options do |result, operation|
|
697
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
698
|
+
yield result, operation if block_given?
|
699
|
+
return result
|
700
|
+
end
|
701
|
+
rescue ::Gapic::Rest::Error => e
|
702
|
+
raise ::Google::Cloud::Error.from_error(e)
|
703
|
+
end
|
704
|
+
|
705
|
+
##
|
706
|
+
# Restores a private cloud that was previously scheduled for deletion by
|
707
|
+
# `DeletePrivateCloud`. A `PrivateCloud` resource scheduled for deletion has
|
708
|
+
# `PrivateCloud.state` set to `DELETED` and `PrivateCloud.expireTime` set to
|
709
|
+
# the time when deletion can no longer be reversed.
|
710
|
+
#
|
711
|
+
# @overload undelete_private_cloud(request, options = nil)
|
712
|
+
# Pass arguments to `undelete_private_cloud` via a request object, either of type
|
713
|
+
# {::Google::Cloud::VmwareEngine::V1::UndeletePrivateCloudRequest} or an equivalent Hash.
|
714
|
+
#
|
715
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::UndeletePrivateCloudRequest, ::Hash]
|
716
|
+
# A request object representing the call parameters. Required. To specify no
|
717
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
718
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
719
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
720
|
+
#
|
721
|
+
# @overload undelete_private_cloud(name: nil, request_id: nil)
|
722
|
+
# Pass arguments to `undelete_private_cloud` via keyword arguments. Note that at
|
723
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
724
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
725
|
+
#
|
726
|
+
# @param name [::String]
|
727
|
+
# Required. The resource name of the private cloud scheduled for deletion.
|
728
|
+
# Resource names are schemeless URIs that follow the conventions in
|
729
|
+
# https://cloud.google.com/apis/design/resource_names.
|
730
|
+
# For example:
|
731
|
+
# `projects/my-project/locations/us-central1-a/privateClouds/my-cloud`
|
732
|
+
# @param request_id [::String]
|
733
|
+
# Optional. The request ID must be a valid UUID with the exception that zero
|
734
|
+
# UUID is not supported (00000000-0000-0000-0000-000000000000).
|
735
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
736
|
+
# @yieldparam result [::Gapic::Operation]
|
737
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
738
|
+
#
|
739
|
+
# @return [::Gapic::Operation]
|
740
|
+
#
|
741
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
742
|
+
def undelete_private_cloud request, options = nil
|
743
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
744
|
+
|
745
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::UndeletePrivateCloudRequest
|
746
|
+
|
747
|
+
# Converts hash and nil to an options object
|
748
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
749
|
+
|
750
|
+
# Customize the options with defaults
|
751
|
+
call_metadata = @config.rpcs.undelete_private_cloud.metadata.to_h
|
752
|
+
|
753
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
754
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
755
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
756
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
757
|
+
transports_version_send: [:rest]
|
758
|
+
|
759
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
760
|
+
|
761
|
+
options.apply_defaults timeout: @config.rpcs.undelete_private_cloud.timeout,
|
762
|
+
metadata: call_metadata,
|
763
|
+
retry_policy: @config.rpcs.undelete_private_cloud.retry_policy
|
764
|
+
|
765
|
+
options.apply_defaults timeout: @config.timeout,
|
766
|
+
metadata: @config.metadata,
|
767
|
+
retry_policy: @config.retry_policy
|
768
|
+
|
769
|
+
@vmware_engine_stub.undelete_private_cloud request, options do |result, operation|
|
770
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
771
|
+
yield result, operation if block_given?
|
772
|
+
return result
|
773
|
+
end
|
774
|
+
rescue ::Gapic::Rest::Error => e
|
775
|
+
raise ::Google::Cloud::Error.from_error(e)
|
776
|
+
end
|
777
|
+
|
778
|
+
##
|
779
|
+
# Lists `Cluster` resources in a given private cloud.
|
780
|
+
#
|
781
|
+
# @overload list_clusters(request, options = nil)
|
782
|
+
# Pass arguments to `list_clusters` via a request object, either of type
|
783
|
+
# {::Google::Cloud::VmwareEngine::V1::ListClustersRequest} or an equivalent Hash.
|
784
|
+
#
|
785
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::ListClustersRequest, ::Hash]
|
786
|
+
# A request object representing the call parameters. Required. To specify no
|
787
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
788
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
789
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
790
|
+
#
|
791
|
+
# @overload list_clusters(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
792
|
+
# Pass arguments to `list_clusters` via keyword arguments. Note that at
|
793
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
794
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
795
|
+
#
|
796
|
+
# @param parent [::String]
|
797
|
+
# Required. The resource name of the private cloud to query for clusters.
|
798
|
+
# Resource names are schemeless URIs that follow the conventions in
|
799
|
+
# https://cloud.google.com/apis/design/resource_names.
|
800
|
+
# For example:
|
801
|
+
# `projects/my-project/locations/us-central1-a/privateClouds/my-cloud`
|
802
|
+
# @param page_size [::Integer]
|
803
|
+
# The maximum number of clusters to return in one page.
|
804
|
+
# The service may return fewer than this value.
|
805
|
+
# The maximum value is coerced to 1000.
|
806
|
+
# The default value of this field is 500.
|
807
|
+
# @param page_token [::String]
|
808
|
+
# A page token, received from a previous `ListClusters` call.
|
809
|
+
# Provide this to retrieve the subsequent page.
|
810
|
+
#
|
811
|
+
# When paginating, all other parameters provided to `ListClusters`
|
812
|
+
# must match the call that provided the page token.
|
813
|
+
# @param filter [::String]
|
814
|
+
# To filter on multiple expressions, provide each separate expression within
|
815
|
+
# parentheses. For example:
|
816
|
+
# ```
|
817
|
+
# (name = "example-cluster")
|
818
|
+
# (nodeCount = "3")
|
819
|
+
# ```
|
820
|
+
#
|
821
|
+
# By default, each expression is an `AND` expression. However, you can
|
822
|
+
# include `AND` and `OR` expressions explicitly. For example:
|
823
|
+
# ```
|
824
|
+
# (name = "example-cluster-1") AND
|
825
|
+
# (createTime > "2021-04-12T08:15:10.40Z") OR
|
826
|
+
# (name = "example-cluster-2")
|
827
|
+
# ```
|
828
|
+
# @param order_by [::String]
|
829
|
+
# Sorts list results by a certain order. By default, returned results are
|
830
|
+
# ordered by `name` in ascending order. You can also sort results in
|
831
|
+
# descending order based on the `name` value using `orderBy="name desc"`.
|
832
|
+
# Currently, only ordering by `name` is supported.
|
833
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
834
|
+
# @yieldparam result [::Google::Cloud::VmwareEngine::V1::ListClustersResponse]
|
835
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
836
|
+
#
|
837
|
+
# @return [::Google::Cloud::VmwareEngine::V1::ListClustersResponse]
|
838
|
+
#
|
839
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
840
|
+
def list_clusters request, options = nil
|
841
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
842
|
+
|
843
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::ListClustersRequest
|
844
|
+
|
845
|
+
# Converts hash and nil to an options object
|
846
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
847
|
+
|
848
|
+
# Customize the options with defaults
|
849
|
+
call_metadata = @config.rpcs.list_clusters.metadata.to_h
|
850
|
+
|
851
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
852
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
853
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
854
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
855
|
+
transports_version_send: [:rest]
|
856
|
+
|
857
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
858
|
+
|
859
|
+
options.apply_defaults timeout: @config.rpcs.list_clusters.timeout,
|
860
|
+
metadata: call_metadata,
|
861
|
+
retry_policy: @config.rpcs.list_clusters.retry_policy
|
862
|
+
|
863
|
+
options.apply_defaults timeout: @config.timeout,
|
864
|
+
metadata: @config.metadata,
|
865
|
+
retry_policy: @config.retry_policy
|
866
|
+
|
867
|
+
@vmware_engine_stub.list_clusters request, options do |result, operation|
|
868
|
+
yield result, operation if block_given?
|
869
|
+
return result
|
870
|
+
end
|
871
|
+
rescue ::Gapic::Rest::Error => e
|
872
|
+
raise ::Google::Cloud::Error.from_error(e)
|
873
|
+
end
|
874
|
+
|
875
|
+
##
|
876
|
+
# Retrieves a `Cluster` resource by its resource name.
|
877
|
+
#
|
878
|
+
# @overload get_cluster(request, options = nil)
|
879
|
+
# Pass arguments to `get_cluster` via a request object, either of type
|
880
|
+
# {::Google::Cloud::VmwareEngine::V1::GetClusterRequest} or an equivalent Hash.
|
881
|
+
#
|
882
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::GetClusterRequest, ::Hash]
|
883
|
+
# A request object representing the call parameters. Required. To specify no
|
884
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
885
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
886
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
887
|
+
#
|
888
|
+
# @overload get_cluster(name: nil)
|
889
|
+
# Pass arguments to `get_cluster` via keyword arguments. Note that at
|
890
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
891
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
892
|
+
#
|
893
|
+
# @param name [::String]
|
894
|
+
# Required. The cluster resource name to retrieve.
|
895
|
+
# Resource names are schemeless URIs that follow the conventions in
|
896
|
+
# https://cloud.google.com/apis/design/resource_names.
|
897
|
+
# For example:
|
898
|
+
# `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/clusters/my-cluster`
|
899
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
900
|
+
# @yieldparam result [::Google::Cloud::VmwareEngine::V1::Cluster]
|
901
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
902
|
+
#
|
903
|
+
# @return [::Google::Cloud::VmwareEngine::V1::Cluster]
|
904
|
+
#
|
905
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
906
|
+
def get_cluster request, options = nil
|
907
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
908
|
+
|
909
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::GetClusterRequest
|
910
|
+
|
911
|
+
# Converts hash and nil to an options object
|
912
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
913
|
+
|
914
|
+
# Customize the options with defaults
|
915
|
+
call_metadata = @config.rpcs.get_cluster.metadata.to_h
|
916
|
+
|
917
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
918
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
919
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
920
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
921
|
+
transports_version_send: [:rest]
|
922
|
+
|
923
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
924
|
+
|
925
|
+
options.apply_defaults timeout: @config.rpcs.get_cluster.timeout,
|
926
|
+
metadata: call_metadata,
|
927
|
+
retry_policy: @config.rpcs.get_cluster.retry_policy
|
928
|
+
|
929
|
+
options.apply_defaults timeout: @config.timeout,
|
930
|
+
metadata: @config.metadata,
|
931
|
+
retry_policy: @config.retry_policy
|
932
|
+
|
933
|
+
@vmware_engine_stub.get_cluster request, options do |result, operation|
|
934
|
+
yield result, operation if block_given?
|
935
|
+
return result
|
936
|
+
end
|
937
|
+
rescue ::Gapic::Rest::Error => e
|
938
|
+
raise ::Google::Cloud::Error.from_error(e)
|
939
|
+
end
|
940
|
+
|
941
|
+
##
|
942
|
+
# Creates a new cluster in a given private cloud.
|
943
|
+
# Creating a new cluster provides additional nodes for
|
944
|
+
# use in the parent private cloud and requires sufficient [node
|
945
|
+
# quota](https://cloud.google.com/vmware-engine/quotas).
|
946
|
+
#
|
947
|
+
# @overload create_cluster(request, options = nil)
|
948
|
+
# Pass arguments to `create_cluster` via a request object, either of type
|
949
|
+
# {::Google::Cloud::VmwareEngine::V1::CreateClusterRequest} or an equivalent Hash.
|
950
|
+
#
|
951
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::CreateClusterRequest, ::Hash]
|
952
|
+
# A request object representing the call parameters. Required. To specify no
|
953
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
954
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
955
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
956
|
+
#
|
957
|
+
# @overload create_cluster(parent: nil, cluster_id: nil, cluster: nil, request_id: nil, validate_only: nil)
|
958
|
+
# Pass arguments to `create_cluster` via keyword arguments. Note that at
|
959
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
960
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
961
|
+
#
|
962
|
+
# @param parent [::String]
|
963
|
+
# Required. The resource name of the private cloud to create a new cluster
|
964
|
+
# in. Resource names are schemeless URIs that follow the conventions in
|
965
|
+
# https://cloud.google.com/apis/design/resource_names.
|
966
|
+
# For example:
|
967
|
+
# `projects/my-project/locations/us-central1-a/privateClouds/my-cloud`
|
968
|
+
# @param cluster_id [::String]
|
969
|
+
# Required. The user-provided identifier of the new `Cluster`.
|
970
|
+
# This identifier must be unique among clusters within the parent and becomes
|
971
|
+
# the final token in the name URI.
|
972
|
+
# The identifier must meet the following requirements:
|
973
|
+
#
|
974
|
+
# * Only contains 1-63 alphanumeric characters and hyphens
|
975
|
+
# * Begins with an alphabetical character
|
976
|
+
# * Ends with a non-hyphen character
|
977
|
+
# * Not formatted as a UUID
|
978
|
+
# * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
|
979
|
+
# (section 3.5)
|
980
|
+
# @param cluster [::Google::Cloud::VmwareEngine::V1::Cluster, ::Hash]
|
981
|
+
# Required. The initial description of the new cluster.
|
982
|
+
# @param request_id [::String]
|
983
|
+
# Optional. The request ID must be a valid UUID with the exception that zero
|
984
|
+
# UUID is not supported (00000000-0000-0000-0000-000000000000).
|
985
|
+
# @param validate_only [::Boolean]
|
986
|
+
# Optional. True if you want the request to be validated and not executed;
|
987
|
+
# false otherwise.
|
988
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
989
|
+
# @yieldparam result [::Gapic::Operation]
|
990
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
991
|
+
#
|
992
|
+
# @return [::Gapic::Operation]
|
993
|
+
#
|
994
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
995
|
+
def create_cluster request, options = nil
|
996
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
997
|
+
|
998
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::CreateClusterRequest
|
999
|
+
|
1000
|
+
# Converts hash and nil to an options object
|
1001
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1002
|
+
|
1003
|
+
# Customize the options with defaults
|
1004
|
+
call_metadata = @config.rpcs.create_cluster.metadata.to_h
|
1005
|
+
|
1006
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1007
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1008
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1009
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
1010
|
+
transports_version_send: [:rest]
|
1011
|
+
|
1012
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1013
|
+
|
1014
|
+
options.apply_defaults timeout: @config.rpcs.create_cluster.timeout,
|
1015
|
+
metadata: call_metadata,
|
1016
|
+
retry_policy: @config.rpcs.create_cluster.retry_policy
|
1017
|
+
|
1018
|
+
options.apply_defaults timeout: @config.timeout,
|
1019
|
+
metadata: @config.metadata,
|
1020
|
+
retry_policy: @config.retry_policy
|
1021
|
+
|
1022
|
+
@vmware_engine_stub.create_cluster request, options do |result, operation|
|
1023
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1024
|
+
yield result, operation if block_given?
|
1025
|
+
return result
|
1026
|
+
end
|
1027
|
+
rescue ::Gapic::Rest::Error => e
|
1028
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1029
|
+
end
|
1030
|
+
|
1031
|
+
##
|
1032
|
+
# Modifies a `Cluster` resource. Only the following fields can be updated:
|
1033
|
+
# `node_type_configs.*.node_count`. Only fields specified in `updateMask` are
|
1034
|
+
# applied.
|
1035
|
+
#
|
1036
|
+
# During operation processing, the resource is temporarily in the `ACTIVE`
|
1037
|
+
# state before the operation fully completes. For that period of time, you
|
1038
|
+
# can't update the resource. Use the operation status to determine when the
|
1039
|
+
# processing fully completes.
|
1040
|
+
#
|
1041
|
+
# @overload update_cluster(request, options = nil)
|
1042
|
+
# Pass arguments to `update_cluster` via a request object, either of type
|
1043
|
+
# {::Google::Cloud::VmwareEngine::V1::UpdateClusterRequest} or an equivalent Hash.
|
1044
|
+
#
|
1045
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::UpdateClusterRequest, ::Hash]
|
1046
|
+
# A request object representing the call parameters. Required. To specify no
|
1047
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1048
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1049
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1050
|
+
#
|
1051
|
+
# @overload update_cluster(update_mask: nil, cluster: nil, request_id: nil, validate_only: nil)
|
1052
|
+
# Pass arguments to `update_cluster` via keyword arguments. Note that at
|
1053
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1054
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1055
|
+
#
|
1056
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1057
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
1058
|
+
# `Cluster` resource by the update. The fields specified in the `updateMask`
|
1059
|
+
# are relative to the resource, not the full request. A field will be
|
1060
|
+
# overwritten if it is in the mask. If the user does not provide a mask then
|
1061
|
+
# all fields will be overwritten.
|
1062
|
+
# @param cluster [::Google::Cloud::VmwareEngine::V1::Cluster, ::Hash]
|
1063
|
+
# Required. The description of the cluster.
|
1064
|
+
# @param request_id [::String]
|
1065
|
+
# Optional. The request ID must be a valid UUID with the exception that
|
1066
|
+
# zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1067
|
+
# @param validate_only [::Boolean]
|
1068
|
+
# Optional. True if you want the request to be validated and not executed;
|
1069
|
+
# false otherwise.
|
1070
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1071
|
+
# @yieldparam result [::Gapic::Operation]
|
1072
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1073
|
+
#
|
1074
|
+
# @return [::Gapic::Operation]
|
1075
|
+
#
|
1076
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1077
|
+
def update_cluster request, options = nil
|
1078
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1079
|
+
|
1080
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::UpdateClusterRequest
|
1081
|
+
|
1082
|
+
# Converts hash and nil to an options object
|
1083
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1084
|
+
|
1085
|
+
# Customize the options with defaults
|
1086
|
+
call_metadata = @config.rpcs.update_cluster.metadata.to_h
|
1087
|
+
|
1088
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1089
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1090
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1091
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
1092
|
+
transports_version_send: [:rest]
|
1093
|
+
|
1094
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1095
|
+
|
1096
|
+
options.apply_defaults timeout: @config.rpcs.update_cluster.timeout,
|
1097
|
+
metadata: call_metadata,
|
1098
|
+
retry_policy: @config.rpcs.update_cluster.retry_policy
|
1099
|
+
|
1100
|
+
options.apply_defaults timeout: @config.timeout,
|
1101
|
+
metadata: @config.metadata,
|
1102
|
+
retry_policy: @config.retry_policy
|
1103
|
+
|
1104
|
+
@vmware_engine_stub.update_cluster request, options do |result, operation|
|
1105
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1106
|
+
yield result, operation if block_given?
|
1107
|
+
return result
|
1108
|
+
end
|
1109
|
+
rescue ::Gapic::Rest::Error => e
|
1110
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1111
|
+
end
|
1112
|
+
|
1113
|
+
##
|
1114
|
+
# Deletes a `Cluster` resource. To avoid unintended data loss, migrate or
|
1115
|
+
# gracefully shut down any workloads running on the cluster before deletion.
|
1116
|
+
# You cannot delete the management cluster of a private cloud using this
|
1117
|
+
# method.
|
1118
|
+
#
|
1119
|
+
# @overload delete_cluster(request, options = nil)
|
1120
|
+
# Pass arguments to `delete_cluster` via a request object, either of type
|
1121
|
+
# {::Google::Cloud::VmwareEngine::V1::DeleteClusterRequest} or an equivalent Hash.
|
1122
|
+
#
|
1123
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::DeleteClusterRequest, ::Hash]
|
1124
|
+
# A request object representing the call parameters. Required. To specify no
|
1125
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1126
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1127
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1128
|
+
#
|
1129
|
+
# @overload delete_cluster(name: nil, request_id: nil)
|
1130
|
+
# Pass arguments to `delete_cluster` via keyword arguments. Note that at
|
1131
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1132
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1133
|
+
#
|
1134
|
+
# @param name [::String]
|
1135
|
+
# Required. The resource name of the cluster to delete.
|
1136
|
+
# Resource names are schemeless URIs that follow the conventions in
|
1137
|
+
# https://cloud.google.com/apis/design/resource_names.
|
1138
|
+
# For example:
|
1139
|
+
# `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/clusters/my-cluster`
|
1140
|
+
# @param request_id [::String]
|
1141
|
+
# Optional. The request ID must be a valid UUID with the exception that zero
|
1142
|
+
# UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1143
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1144
|
+
# @yieldparam result [::Gapic::Operation]
|
1145
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1146
|
+
#
|
1147
|
+
# @return [::Gapic::Operation]
|
1148
|
+
#
|
1149
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1150
|
+
def delete_cluster request, options = nil
|
1151
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1152
|
+
|
1153
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::DeleteClusterRequest
|
1154
|
+
|
1155
|
+
# Converts hash and nil to an options object
|
1156
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1157
|
+
|
1158
|
+
# Customize the options with defaults
|
1159
|
+
call_metadata = @config.rpcs.delete_cluster.metadata.to_h
|
1160
|
+
|
1161
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1162
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1163
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1164
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
1165
|
+
transports_version_send: [:rest]
|
1166
|
+
|
1167
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1168
|
+
|
1169
|
+
options.apply_defaults timeout: @config.rpcs.delete_cluster.timeout,
|
1170
|
+
metadata: call_metadata,
|
1171
|
+
retry_policy: @config.rpcs.delete_cluster.retry_policy
|
1172
|
+
|
1173
|
+
options.apply_defaults timeout: @config.timeout,
|
1174
|
+
metadata: @config.metadata,
|
1175
|
+
retry_policy: @config.retry_policy
|
1176
|
+
|
1177
|
+
@vmware_engine_stub.delete_cluster request, options do |result, operation|
|
1178
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1179
|
+
yield result, operation if block_given?
|
1180
|
+
return result
|
1181
|
+
end
|
1182
|
+
rescue ::Gapic::Rest::Error => e
|
1183
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1184
|
+
end
|
1185
|
+
|
1186
|
+
##
|
1187
|
+
# Lists subnets in a given private cloud.
|
1188
|
+
#
|
1189
|
+
# @overload list_subnets(request, options = nil)
|
1190
|
+
# Pass arguments to `list_subnets` via a request object, either of type
|
1191
|
+
# {::Google::Cloud::VmwareEngine::V1::ListSubnetsRequest} or an equivalent Hash.
|
1192
|
+
#
|
1193
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::ListSubnetsRequest, ::Hash]
|
1194
|
+
# A request object representing the call parameters. Required. To specify no
|
1195
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1196
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1197
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1198
|
+
#
|
1199
|
+
# @overload list_subnets(parent: nil, page_size: nil, page_token: nil)
|
1200
|
+
# Pass arguments to `list_subnets` via keyword arguments. Note that at
|
1201
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1202
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1203
|
+
#
|
1204
|
+
# @param parent [::String]
|
1205
|
+
# Required. The resource name of the private cloud to be queried for
|
1206
|
+
# subnets.
|
1207
|
+
# Resource names are schemeless URIs that follow the conventions in
|
1208
|
+
# https://cloud.google.com/apis/design/resource_names.
|
1209
|
+
# For example:
|
1210
|
+
# `projects/my-project/locations/us-central1-a/privateClouds/my-cloud`
|
1211
|
+
# @param page_size [::Integer]
|
1212
|
+
# The maximum number of subnets to return in one page.
|
1213
|
+
# The service may return fewer than this value.
|
1214
|
+
# The maximum value is coerced to 1000.
|
1215
|
+
# The default value of this field is 500.
|
1216
|
+
# @param page_token [::String]
|
1217
|
+
# A page token, received from a previous `ListSubnetsRequest` call.
|
1218
|
+
# Provide this to retrieve the subsequent page.
|
1219
|
+
#
|
1220
|
+
# When paginating, all other parameters provided to
|
1221
|
+
# `ListSubnetsRequest` must match the call that provided the page token.
|
1222
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1223
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VmwareEngine::V1::Subnet>]
|
1224
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1225
|
+
#
|
1226
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::VmwareEngine::V1::Subnet>]
|
1227
|
+
#
|
1228
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1229
|
+
def list_subnets request, options = nil
|
1230
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1231
|
+
|
1232
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::ListSubnetsRequest
|
1233
|
+
|
1234
|
+
# Converts hash and nil to an options object
|
1235
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1236
|
+
|
1237
|
+
# Customize the options with defaults
|
1238
|
+
call_metadata = @config.rpcs.list_subnets.metadata.to_h
|
1239
|
+
|
1240
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1241
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1242
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1243
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
1244
|
+
transports_version_send: [:rest]
|
1245
|
+
|
1246
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1247
|
+
|
1248
|
+
options.apply_defaults timeout: @config.rpcs.list_subnets.timeout,
|
1249
|
+
metadata: call_metadata,
|
1250
|
+
retry_policy: @config.rpcs.list_subnets.retry_policy
|
1251
|
+
|
1252
|
+
options.apply_defaults timeout: @config.timeout,
|
1253
|
+
metadata: @config.metadata,
|
1254
|
+
retry_policy: @config.retry_policy
|
1255
|
+
|
1256
|
+
@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
|
1258
|
+
yield result, operation if block_given?
|
1259
|
+
return result
|
1260
|
+
end
|
1261
|
+
rescue ::Gapic::Rest::Error => e
|
1262
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1263
|
+
end
|
1264
|
+
|
1265
|
+
##
|
1266
|
+
# Lists node types
|
1267
|
+
#
|
1268
|
+
# @overload list_node_types(request, options = nil)
|
1269
|
+
# Pass arguments to `list_node_types` via a request object, either of type
|
1270
|
+
# {::Google::Cloud::VmwareEngine::V1::ListNodeTypesRequest} or an equivalent Hash.
|
1271
|
+
#
|
1272
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::ListNodeTypesRequest, ::Hash]
|
1273
|
+
# A request object representing the call parameters. Required. To specify no
|
1274
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1275
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1276
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1277
|
+
#
|
1278
|
+
# @overload list_node_types(parent: nil, page_size: nil, page_token: nil, filter: nil)
|
1279
|
+
# Pass arguments to `list_node_types` via keyword arguments. Note that at
|
1280
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1281
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1282
|
+
#
|
1283
|
+
# @param parent [::String]
|
1284
|
+
# Required. The resource name of the location to be queried for node types.
|
1285
|
+
# Resource names are schemeless URIs that follow the conventions in
|
1286
|
+
# https://cloud.google.com/apis/design/resource_names.
|
1287
|
+
# For example:
|
1288
|
+
# `projects/my-project/locations/us-central1-a`
|
1289
|
+
# @param page_size [::Integer]
|
1290
|
+
# The maximum number of node types to return in one page.
|
1291
|
+
# The service may return fewer than this value.
|
1292
|
+
# The maximum value is coerced to 1000.
|
1293
|
+
# The default value of this field is 500.
|
1294
|
+
# @param page_token [::String]
|
1295
|
+
# A page token, received from a previous `ListNodeTypes` call.
|
1296
|
+
# Provide this to retrieve the subsequent page.
|
1297
|
+
#
|
1298
|
+
# When paginating, all other parameters provided to
|
1299
|
+
# `ListNodeTypes` must match the call that provided the page token.
|
1300
|
+
# @param filter [::String]
|
1301
|
+
# A filter expression that matches resources returned in the response.
|
1302
|
+
# The expression must specify the field name, a comparison
|
1303
|
+
# operator, and the value that you want to use for filtering. The value
|
1304
|
+
# must be a string, a number, or a boolean. The comparison operator
|
1305
|
+
# must be `=`, `!=`, `>`, or `<`.
|
1306
|
+
#
|
1307
|
+
# For example, if you are filtering a list of node types, you can
|
1308
|
+
# exclude the ones named `standard-72` by specifying
|
1309
|
+
# `name != "standard-72"`.
|
1310
|
+
#
|
1311
|
+
# To filter on multiple expressions, provide each separate expression within
|
1312
|
+
# parentheses. For example:
|
1313
|
+
# ```
|
1314
|
+
# (name = "standard-72")
|
1315
|
+
# (virtual_cpu_count > 2)
|
1316
|
+
# ```
|
1317
|
+
#
|
1318
|
+
# By default, each expression is an `AND` expression. However, you
|
1319
|
+
# can include `AND` and `OR` expressions explicitly.
|
1320
|
+
# For example:
|
1321
|
+
# ```
|
1322
|
+
# (name = "standard-96") AND
|
1323
|
+
# (virtual_cpu_count > 2) OR
|
1324
|
+
# (name = "standard-72")
|
1325
|
+
# ```
|
1326
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1327
|
+
# @yieldparam result [::Google::Cloud::VmwareEngine::V1::ListNodeTypesResponse]
|
1328
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1329
|
+
#
|
1330
|
+
# @return [::Google::Cloud::VmwareEngine::V1::ListNodeTypesResponse]
|
1331
|
+
#
|
1332
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1333
|
+
def list_node_types request, options = nil
|
1334
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1335
|
+
|
1336
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::ListNodeTypesRequest
|
1337
|
+
|
1338
|
+
# Converts hash and nil to an options object
|
1339
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1340
|
+
|
1341
|
+
# Customize the options with defaults
|
1342
|
+
call_metadata = @config.rpcs.list_node_types.metadata.to_h
|
1343
|
+
|
1344
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1345
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1346
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1347
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
1348
|
+
transports_version_send: [:rest]
|
1349
|
+
|
1350
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1351
|
+
|
1352
|
+
options.apply_defaults timeout: @config.rpcs.list_node_types.timeout,
|
1353
|
+
metadata: call_metadata,
|
1354
|
+
retry_policy: @config.rpcs.list_node_types.retry_policy
|
1355
|
+
|
1356
|
+
options.apply_defaults timeout: @config.timeout,
|
1357
|
+
metadata: @config.metadata,
|
1358
|
+
retry_policy: @config.retry_policy
|
1359
|
+
|
1360
|
+
@vmware_engine_stub.list_node_types request, options do |result, operation|
|
1361
|
+
yield result, operation if block_given?
|
1362
|
+
return result
|
1363
|
+
end
|
1364
|
+
rescue ::Gapic::Rest::Error => e
|
1365
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1366
|
+
end
|
1367
|
+
|
1368
|
+
##
|
1369
|
+
# Gets details of a single `NodeType`.
|
1370
|
+
#
|
1371
|
+
# @overload get_node_type(request, options = nil)
|
1372
|
+
# Pass arguments to `get_node_type` via a request object, either of type
|
1373
|
+
# {::Google::Cloud::VmwareEngine::V1::GetNodeTypeRequest} or an equivalent Hash.
|
1374
|
+
#
|
1375
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::GetNodeTypeRequest, ::Hash]
|
1376
|
+
# A request object representing the call parameters. Required. To specify no
|
1377
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1378
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1379
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1380
|
+
#
|
1381
|
+
# @overload get_node_type(name: nil)
|
1382
|
+
# Pass arguments to `get_node_type` via keyword arguments. Note that at
|
1383
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1384
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1385
|
+
#
|
1386
|
+
# @param name [::String]
|
1387
|
+
# Required. The resource name of the node type to retrieve.
|
1388
|
+
# Resource names are schemeless URIs that follow the conventions in
|
1389
|
+
# https://cloud.google.com/apis/design/resource_names.
|
1390
|
+
# For example:
|
1391
|
+
# `projects/my-proj/locations/us-central1-a/nodeTypes/standard-72`
|
1392
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1393
|
+
# @yieldparam result [::Google::Cloud::VmwareEngine::V1::NodeType]
|
1394
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1395
|
+
#
|
1396
|
+
# @return [::Google::Cloud::VmwareEngine::V1::NodeType]
|
1397
|
+
#
|
1398
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1399
|
+
def get_node_type request, options = nil
|
1400
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1401
|
+
|
1402
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::GetNodeTypeRequest
|
1403
|
+
|
1404
|
+
# Converts hash and nil to an options object
|
1405
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1406
|
+
|
1407
|
+
# Customize the options with defaults
|
1408
|
+
call_metadata = @config.rpcs.get_node_type.metadata.to_h
|
1409
|
+
|
1410
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1411
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1412
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1413
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
1414
|
+
transports_version_send: [:rest]
|
1415
|
+
|
1416
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1417
|
+
|
1418
|
+
options.apply_defaults timeout: @config.rpcs.get_node_type.timeout,
|
1419
|
+
metadata: call_metadata,
|
1420
|
+
retry_policy: @config.rpcs.get_node_type.retry_policy
|
1421
|
+
|
1422
|
+
options.apply_defaults timeout: @config.timeout,
|
1423
|
+
metadata: @config.metadata,
|
1424
|
+
retry_policy: @config.retry_policy
|
1425
|
+
|
1426
|
+
@vmware_engine_stub.get_node_type request, options do |result, operation|
|
1427
|
+
yield result, operation if block_given?
|
1428
|
+
return result
|
1429
|
+
end
|
1430
|
+
rescue ::Gapic::Rest::Error => e
|
1431
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1432
|
+
end
|
1433
|
+
|
1434
|
+
##
|
1435
|
+
# Gets details of credentials for NSX appliance.
|
1436
|
+
#
|
1437
|
+
# @overload show_nsx_credentials(request, options = nil)
|
1438
|
+
# Pass arguments to `show_nsx_credentials` via a request object, either of type
|
1439
|
+
# {::Google::Cloud::VmwareEngine::V1::ShowNsxCredentialsRequest} or an equivalent Hash.
|
1440
|
+
#
|
1441
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::ShowNsxCredentialsRequest, ::Hash]
|
1442
|
+
# A request object representing the call parameters. Required. To specify no
|
1443
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1444
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1445
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1446
|
+
#
|
1447
|
+
# @overload show_nsx_credentials(private_cloud: nil)
|
1448
|
+
# Pass arguments to `show_nsx_credentials` via keyword arguments. Note that at
|
1449
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1450
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1451
|
+
#
|
1452
|
+
# @param private_cloud [::String]
|
1453
|
+
# Required. The resource name of the private cloud
|
1454
|
+
# to be queried for credentials.
|
1455
|
+
# Resource names are schemeless URIs that follow the conventions in
|
1456
|
+
# https://cloud.google.com/apis/design/resource_names.
|
1457
|
+
# For example:
|
1458
|
+
# `projects/my-project/locations/us-central1-a/privateClouds/my-cloud`
|
1459
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1460
|
+
# @yieldparam result [::Google::Cloud::VmwareEngine::V1::Credentials]
|
1461
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1462
|
+
#
|
1463
|
+
# @return [::Google::Cloud::VmwareEngine::V1::Credentials]
|
1464
|
+
#
|
1465
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1466
|
+
def show_nsx_credentials request, options = nil
|
1467
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1468
|
+
|
1469
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::ShowNsxCredentialsRequest
|
1470
|
+
|
1471
|
+
# Converts hash and nil to an options object
|
1472
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1473
|
+
|
1474
|
+
# Customize the options with defaults
|
1475
|
+
call_metadata = @config.rpcs.show_nsx_credentials.metadata.to_h
|
1476
|
+
|
1477
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1478
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1479
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1480
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
1481
|
+
transports_version_send: [:rest]
|
1482
|
+
|
1483
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1484
|
+
|
1485
|
+
options.apply_defaults timeout: @config.rpcs.show_nsx_credentials.timeout,
|
1486
|
+
metadata: call_metadata,
|
1487
|
+
retry_policy: @config.rpcs.show_nsx_credentials.retry_policy
|
1488
|
+
|
1489
|
+
options.apply_defaults timeout: @config.timeout,
|
1490
|
+
metadata: @config.metadata,
|
1491
|
+
retry_policy: @config.retry_policy
|
1492
|
+
|
1493
|
+
@vmware_engine_stub.show_nsx_credentials request, options do |result, operation|
|
1494
|
+
yield result, operation if block_given?
|
1495
|
+
return result
|
1496
|
+
end
|
1497
|
+
rescue ::Gapic::Rest::Error => e
|
1498
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1499
|
+
end
|
1500
|
+
|
1501
|
+
##
|
1502
|
+
# Gets details of credentials for Vcenter appliance.
|
1503
|
+
#
|
1504
|
+
# @overload show_vcenter_credentials(request, options = nil)
|
1505
|
+
# Pass arguments to `show_vcenter_credentials` via a request object, either of type
|
1506
|
+
# {::Google::Cloud::VmwareEngine::V1::ShowVcenterCredentialsRequest} or an equivalent Hash.
|
1507
|
+
#
|
1508
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::ShowVcenterCredentialsRequest, ::Hash]
|
1509
|
+
# A request object representing the call parameters. Required. To specify no
|
1510
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1511
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1512
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1513
|
+
#
|
1514
|
+
# @overload show_vcenter_credentials(private_cloud: nil)
|
1515
|
+
# Pass arguments to `show_vcenter_credentials` via keyword arguments. Note that at
|
1516
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1517
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1518
|
+
#
|
1519
|
+
# @param private_cloud [::String]
|
1520
|
+
# Required. The resource name of the private cloud
|
1521
|
+
# to be queried for credentials.
|
1522
|
+
# Resource names are schemeless URIs that follow the conventions in
|
1523
|
+
# https://cloud.google.com/apis/design/resource_names.
|
1524
|
+
# For example:
|
1525
|
+
# `projects/my-project/locations/us-central1-a/privateClouds/my-cloud`
|
1526
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1527
|
+
# @yieldparam result [::Google::Cloud::VmwareEngine::V1::Credentials]
|
1528
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1529
|
+
#
|
1530
|
+
# @return [::Google::Cloud::VmwareEngine::V1::Credentials]
|
1531
|
+
#
|
1532
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1533
|
+
def show_vcenter_credentials request, options = nil
|
1534
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1535
|
+
|
1536
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::ShowVcenterCredentialsRequest
|
1537
|
+
|
1538
|
+
# Converts hash and nil to an options object
|
1539
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1540
|
+
|
1541
|
+
# Customize the options with defaults
|
1542
|
+
call_metadata = @config.rpcs.show_vcenter_credentials.metadata.to_h
|
1543
|
+
|
1544
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1545
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1546
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1547
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
1548
|
+
transports_version_send: [:rest]
|
1549
|
+
|
1550
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1551
|
+
|
1552
|
+
options.apply_defaults timeout: @config.rpcs.show_vcenter_credentials.timeout,
|
1553
|
+
metadata: call_metadata,
|
1554
|
+
retry_policy: @config.rpcs.show_vcenter_credentials.retry_policy
|
1555
|
+
|
1556
|
+
options.apply_defaults timeout: @config.timeout,
|
1557
|
+
metadata: @config.metadata,
|
1558
|
+
retry_policy: @config.retry_policy
|
1559
|
+
|
1560
|
+
@vmware_engine_stub.show_vcenter_credentials request, options do |result, operation|
|
1561
|
+
yield result, operation if block_given?
|
1562
|
+
return result
|
1563
|
+
end
|
1564
|
+
rescue ::Gapic::Rest::Error => e
|
1565
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1566
|
+
end
|
1567
|
+
|
1568
|
+
##
|
1569
|
+
# Resets credentials of the NSX appliance.
|
1570
|
+
#
|
1571
|
+
# @overload reset_nsx_credentials(request, options = nil)
|
1572
|
+
# Pass arguments to `reset_nsx_credentials` via a request object, either of type
|
1573
|
+
# {::Google::Cloud::VmwareEngine::V1::ResetNsxCredentialsRequest} or an equivalent Hash.
|
1574
|
+
#
|
1575
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::ResetNsxCredentialsRequest, ::Hash]
|
1576
|
+
# A request object representing the call parameters. Required. To specify no
|
1577
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1578
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1579
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1580
|
+
#
|
1581
|
+
# @overload reset_nsx_credentials(private_cloud: nil, request_id: nil)
|
1582
|
+
# Pass arguments to `reset_nsx_credentials` via keyword arguments. Note that at
|
1583
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1584
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1585
|
+
#
|
1586
|
+
# @param private_cloud [::String]
|
1587
|
+
# Required. The resource name of the private cloud
|
1588
|
+
# to reset credentials for.
|
1589
|
+
# Resource names are schemeless URIs that follow the conventions in
|
1590
|
+
# https://cloud.google.com/apis/design/resource_names.
|
1591
|
+
# For example:
|
1592
|
+
# `projects/my-project/locations/us-central1-a/privateClouds/my-cloud`
|
1593
|
+
# @param request_id [::String]
|
1594
|
+
# Optional. A request ID to identify requests. Specify a unique request ID
|
1595
|
+
# so that if you must retry your request, the server will know to ignore
|
1596
|
+
# the request if it has already been completed. The server guarantees that a
|
1597
|
+
# request doesn't result in creation of duplicate commitments for at least 60
|
1598
|
+
# minutes.
|
1599
|
+
#
|
1600
|
+
# For example, consider a situation where you make an initial request and the
|
1601
|
+
# request times out. If you make the request again with the same request
|
1602
|
+
# ID, the server can check if original operation with the same request ID
|
1603
|
+
# was received, and if so, will ignore the second request. This prevents
|
1604
|
+
# clients from accidentally creating duplicate commitments.
|
1605
|
+
#
|
1606
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
1607
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
1608
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1609
|
+
# @yieldparam result [::Gapic::Operation]
|
1610
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1611
|
+
#
|
1612
|
+
# @return [::Gapic::Operation]
|
1613
|
+
#
|
1614
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1615
|
+
def reset_nsx_credentials request, options = nil
|
1616
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1617
|
+
|
1618
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::ResetNsxCredentialsRequest
|
1619
|
+
|
1620
|
+
# Converts hash and nil to an options object
|
1621
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1622
|
+
|
1623
|
+
# Customize the options with defaults
|
1624
|
+
call_metadata = @config.rpcs.reset_nsx_credentials.metadata.to_h
|
1625
|
+
|
1626
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1627
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1628
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1629
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
1630
|
+
transports_version_send: [:rest]
|
1631
|
+
|
1632
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1633
|
+
|
1634
|
+
options.apply_defaults timeout: @config.rpcs.reset_nsx_credentials.timeout,
|
1635
|
+
metadata: call_metadata,
|
1636
|
+
retry_policy: @config.rpcs.reset_nsx_credentials.retry_policy
|
1637
|
+
|
1638
|
+
options.apply_defaults timeout: @config.timeout,
|
1639
|
+
metadata: @config.metadata,
|
1640
|
+
retry_policy: @config.retry_policy
|
1641
|
+
|
1642
|
+
@vmware_engine_stub.reset_nsx_credentials request, options do |result, operation|
|
1643
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1644
|
+
yield result, operation if block_given?
|
1645
|
+
return result
|
1646
|
+
end
|
1647
|
+
rescue ::Gapic::Rest::Error => e
|
1648
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1649
|
+
end
|
1650
|
+
|
1651
|
+
##
|
1652
|
+
# Resets credentials of the Vcenter appliance.
|
1653
|
+
#
|
1654
|
+
# @overload reset_vcenter_credentials(request, options = nil)
|
1655
|
+
# Pass arguments to `reset_vcenter_credentials` via a request object, either of type
|
1656
|
+
# {::Google::Cloud::VmwareEngine::V1::ResetVcenterCredentialsRequest} or an equivalent Hash.
|
1657
|
+
#
|
1658
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::ResetVcenterCredentialsRequest, ::Hash]
|
1659
|
+
# A request object representing the call parameters. Required. To specify no
|
1660
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1661
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1662
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1663
|
+
#
|
1664
|
+
# @overload reset_vcenter_credentials(private_cloud: nil, request_id: nil)
|
1665
|
+
# Pass arguments to `reset_vcenter_credentials` via keyword arguments. Note that at
|
1666
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1667
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1668
|
+
#
|
1669
|
+
# @param private_cloud [::String]
|
1670
|
+
# Required. The resource name of the private cloud
|
1671
|
+
# to reset credentials for.
|
1672
|
+
# Resource names are schemeless URIs that follow the conventions in
|
1673
|
+
# https://cloud.google.com/apis/design/resource_names.
|
1674
|
+
# For example:
|
1675
|
+
# `projects/my-project/locations/us-central1-a/privateClouds/my-cloud`
|
1676
|
+
# @param request_id [::String]
|
1677
|
+
# Optional. A request ID to identify requests. Specify a unique request ID
|
1678
|
+
# so that if you must retry your request, the server will know to ignore
|
1679
|
+
# the request if it has already been completed. The server guarantees that a
|
1680
|
+
# request doesn't result in creation of duplicate commitments for at least 60
|
1681
|
+
# minutes.
|
1682
|
+
#
|
1683
|
+
# For example, consider a situation where you make an initial request and the
|
1684
|
+
# request times out. If you make the request again with the same request
|
1685
|
+
# ID, the server can check if original operation with the same request ID
|
1686
|
+
# was received, and if so, will ignore the second request. This prevents
|
1687
|
+
# clients from accidentally creating duplicate commitments.
|
1688
|
+
#
|
1689
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
1690
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
1691
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1692
|
+
# @yieldparam result [::Gapic::Operation]
|
1693
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1694
|
+
#
|
1695
|
+
# @return [::Gapic::Operation]
|
1696
|
+
#
|
1697
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1698
|
+
def reset_vcenter_credentials request, options = nil
|
1699
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1700
|
+
|
1701
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::ResetVcenterCredentialsRequest
|
1702
|
+
|
1703
|
+
# Converts hash and nil to an options object
|
1704
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1705
|
+
|
1706
|
+
# Customize the options with defaults
|
1707
|
+
call_metadata = @config.rpcs.reset_vcenter_credentials.metadata.to_h
|
1708
|
+
|
1709
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1710
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1711
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1712
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
1713
|
+
transports_version_send: [:rest]
|
1714
|
+
|
1715
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1716
|
+
|
1717
|
+
options.apply_defaults timeout: @config.rpcs.reset_vcenter_credentials.timeout,
|
1718
|
+
metadata: call_metadata,
|
1719
|
+
retry_policy: @config.rpcs.reset_vcenter_credentials.retry_policy
|
1720
|
+
|
1721
|
+
options.apply_defaults timeout: @config.timeout,
|
1722
|
+
metadata: @config.metadata,
|
1723
|
+
retry_policy: @config.retry_policy
|
1724
|
+
|
1725
|
+
@vmware_engine_stub.reset_vcenter_credentials request, options do |result, operation|
|
1726
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1727
|
+
yield result, operation if block_given?
|
1728
|
+
return result
|
1729
|
+
end
|
1730
|
+
rescue ::Gapic::Rest::Error => e
|
1731
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1732
|
+
end
|
1733
|
+
|
1734
|
+
##
|
1735
|
+
# Creates a new HCX activation key in a given private cloud.
|
1736
|
+
#
|
1737
|
+
# @overload create_hcx_activation_key(request, options = nil)
|
1738
|
+
# Pass arguments to `create_hcx_activation_key` via a request object, either of type
|
1739
|
+
# {::Google::Cloud::VmwareEngine::V1::CreateHcxActivationKeyRequest} or an equivalent Hash.
|
1740
|
+
#
|
1741
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::CreateHcxActivationKeyRequest, ::Hash]
|
1742
|
+
# A request object representing the call parameters. Required. To specify no
|
1743
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1744
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1745
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1746
|
+
#
|
1747
|
+
# @overload create_hcx_activation_key(parent: nil, hcx_activation_key: nil, hcx_activation_key_id: nil, request_id: nil)
|
1748
|
+
# Pass arguments to `create_hcx_activation_key` via keyword arguments. Note that at
|
1749
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1750
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1751
|
+
#
|
1752
|
+
# @param parent [::String]
|
1753
|
+
# Required. The resource name of the private cloud to create the key for.
|
1754
|
+
# Resource names are schemeless URIs that follow the conventions in
|
1755
|
+
# https://cloud.google.com/apis/design/resource_names.
|
1756
|
+
# For example:
|
1757
|
+
# `projects/my-project/locations/us-central1/privateClouds/my-cloud`
|
1758
|
+
# @param hcx_activation_key [::Google::Cloud::VmwareEngine::V1::HcxActivationKey, ::Hash]
|
1759
|
+
# Required. The initial description of a new HCX activation key. When
|
1760
|
+
# creating a new key, this field must be an empty object.
|
1761
|
+
# @param hcx_activation_key_id [::String]
|
1762
|
+
# Required. The user-provided identifier of the `HcxActivationKey` to be
|
1763
|
+
# created. This identifier must be unique among `HcxActivationKey` resources
|
1764
|
+
# within the parent and becomes the final token in the name URI.
|
1765
|
+
# The identifier must meet the following requirements:
|
1766
|
+
#
|
1767
|
+
# * Only contains 1-63 alphanumeric characters and hyphens
|
1768
|
+
# * Begins with an alphabetical character
|
1769
|
+
# * Ends with a non-hyphen character
|
1770
|
+
# * Not formatted as a UUID
|
1771
|
+
# * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
|
1772
|
+
# (section 3.5)
|
1773
|
+
# @param request_id [::String]
|
1774
|
+
# A request ID to identify requests. Specify a unique request ID
|
1775
|
+
# so that if you must retry your request, the server will know to ignore
|
1776
|
+
# the request if it has already been completed. The server guarantees that a
|
1777
|
+
# request doesn't result in creation of duplicate commitments for at least 60
|
1778
|
+
# minutes.
|
1779
|
+
#
|
1780
|
+
# For example, consider a situation where you make an initial request and the
|
1781
|
+
# request times out. If you make the request again with the same request ID,
|
1782
|
+
# the server can check if original operation with the same request ID was
|
1783
|
+
# received, and if so, will ignore the second request. This prevents clients
|
1784
|
+
# from accidentally creating duplicate commitments.
|
1785
|
+
#
|
1786
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
1787
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
1788
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1789
|
+
# @yieldparam result [::Gapic::Operation]
|
1790
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1791
|
+
#
|
1792
|
+
# @return [::Gapic::Operation]
|
1793
|
+
#
|
1794
|
+
# @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
|
1801
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1802
|
+
|
1803
|
+
# Customize the options with defaults
|
1804
|
+
call_metadata = @config.rpcs.create_hcx_activation_key.metadata.to_h
|
1805
|
+
|
1806
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1807
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1808
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1809
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
1810
|
+
transports_version_send: [:rest]
|
1811
|
+
|
1812
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1813
|
+
|
1814
|
+
options.apply_defaults timeout: @config.rpcs.create_hcx_activation_key.timeout,
|
1815
|
+
metadata: call_metadata,
|
1816
|
+
retry_policy: @config.rpcs.create_hcx_activation_key.retry_policy
|
1817
|
+
|
1818
|
+
options.apply_defaults timeout: @config.timeout,
|
1819
|
+
metadata: @config.metadata,
|
1820
|
+
retry_policy: @config.retry_policy
|
1821
|
+
|
1822
|
+
@vmware_engine_stub.create_hcx_activation_key request, options do |result, operation|
|
1823
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1824
|
+
yield result, operation if block_given?
|
1825
|
+
return result
|
1826
|
+
end
|
1827
|
+
rescue ::Gapic::Rest::Error => e
|
1828
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1829
|
+
end
|
1830
|
+
|
1831
|
+
##
|
1832
|
+
# Lists `HcxActivationKey` resources in a given private cloud.
|
1833
|
+
#
|
1834
|
+
# @overload list_hcx_activation_keys(request, options = nil)
|
1835
|
+
# Pass arguments to `list_hcx_activation_keys` via a request object, either of type
|
1836
|
+
# {::Google::Cloud::VmwareEngine::V1::ListHcxActivationKeysRequest} or an equivalent Hash.
|
1837
|
+
#
|
1838
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::ListHcxActivationKeysRequest, ::Hash]
|
1839
|
+
# A request object representing the call parameters. Required. To specify no
|
1840
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1841
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1842
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1843
|
+
#
|
1844
|
+
# @overload list_hcx_activation_keys(parent: nil, page_size: nil, page_token: nil)
|
1845
|
+
# Pass arguments to `list_hcx_activation_keys` via keyword arguments. Note that at
|
1846
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1847
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1848
|
+
#
|
1849
|
+
# @param parent [::String]
|
1850
|
+
# Required. The resource name of the private cloud
|
1851
|
+
# to be queried for HCX activation keys.
|
1852
|
+
# Resource names are schemeless URIs that follow the conventions in
|
1853
|
+
# https://cloud.google.com/apis/design/resource_names.
|
1854
|
+
# For example:
|
1855
|
+
# `projects/my-project/locations/us-central1/privateClouds/my-cloud`
|
1856
|
+
# @param page_size [::Integer]
|
1857
|
+
# The maximum number of HCX activation keys to return in one page.
|
1858
|
+
# The service may return fewer than this value.
|
1859
|
+
# The maximum value is coerced to 1000.
|
1860
|
+
# The default value of this field is 500.
|
1861
|
+
# @param page_token [::String]
|
1862
|
+
# A page token, received from a previous `ListHcxActivationKeys` call.
|
1863
|
+
# Provide this to retrieve the subsequent page.
|
1864
|
+
#
|
1865
|
+
# When paginating, all other parameters provided to
|
1866
|
+
# `ListHcxActivationKeys` must match the call that provided the page
|
1867
|
+
# token.
|
1868
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1869
|
+
# @yieldparam result [::Google::Cloud::VmwareEngine::V1::ListHcxActivationKeysResponse]
|
1870
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1871
|
+
#
|
1872
|
+
# @return [::Google::Cloud::VmwareEngine::V1::ListHcxActivationKeysResponse]
|
1873
|
+
#
|
1874
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1875
|
+
def list_hcx_activation_keys request, options = nil
|
1876
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1877
|
+
|
1878
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::ListHcxActivationKeysRequest
|
1879
|
+
|
1880
|
+
# Converts hash and nil to an options object
|
1881
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1882
|
+
|
1883
|
+
# Customize the options with defaults
|
1884
|
+
call_metadata = @config.rpcs.list_hcx_activation_keys.metadata.to_h
|
1885
|
+
|
1886
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1887
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1888
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1889
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
1890
|
+
transports_version_send: [:rest]
|
1891
|
+
|
1892
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1893
|
+
|
1894
|
+
options.apply_defaults timeout: @config.rpcs.list_hcx_activation_keys.timeout,
|
1895
|
+
metadata: call_metadata,
|
1896
|
+
retry_policy: @config.rpcs.list_hcx_activation_keys.retry_policy
|
1897
|
+
|
1898
|
+
options.apply_defaults timeout: @config.timeout,
|
1899
|
+
metadata: @config.metadata,
|
1900
|
+
retry_policy: @config.retry_policy
|
1901
|
+
|
1902
|
+
@vmware_engine_stub.list_hcx_activation_keys request, options do |result, operation|
|
1903
|
+
yield result, operation if block_given?
|
1904
|
+
return result
|
1905
|
+
end
|
1906
|
+
rescue ::Gapic::Rest::Error => e
|
1907
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1908
|
+
end
|
1909
|
+
|
1910
|
+
##
|
1911
|
+
# Retrieves a `HcxActivationKey` resource by its resource name.
|
1912
|
+
#
|
1913
|
+
# @overload get_hcx_activation_key(request, options = nil)
|
1914
|
+
# Pass arguments to `get_hcx_activation_key` via a request object, either of type
|
1915
|
+
# {::Google::Cloud::VmwareEngine::V1::GetHcxActivationKeyRequest} or an equivalent Hash.
|
1916
|
+
#
|
1917
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::GetHcxActivationKeyRequest, ::Hash]
|
1918
|
+
# A request object representing the call parameters. Required. To specify no
|
1919
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1920
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1921
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1922
|
+
#
|
1923
|
+
# @overload get_hcx_activation_key(name: nil)
|
1924
|
+
# Pass arguments to `get_hcx_activation_key` via keyword arguments. Note that at
|
1925
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1926
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1927
|
+
#
|
1928
|
+
# @param name [::String]
|
1929
|
+
# Required. The resource name of the HCX activation key to retrieve.
|
1930
|
+
# Resource names are schemeless URIs that follow the conventions in
|
1931
|
+
# https://cloud.google.com/apis/design/resource_names.
|
1932
|
+
# For example:
|
1933
|
+
# `projects/my-project/locations/us-central1/privateClouds/my-cloud/hcxActivationKeys/my-key`
|
1934
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1935
|
+
# @yieldparam result [::Google::Cloud::VmwareEngine::V1::HcxActivationKey]
|
1936
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1937
|
+
#
|
1938
|
+
# @return [::Google::Cloud::VmwareEngine::V1::HcxActivationKey]
|
1939
|
+
#
|
1940
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1941
|
+
def get_hcx_activation_key request, options = nil
|
1942
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1943
|
+
|
1944
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::GetHcxActivationKeyRequest
|
1945
|
+
|
1946
|
+
# Converts hash and nil to an options object
|
1947
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1948
|
+
|
1949
|
+
# Customize the options with defaults
|
1950
|
+
call_metadata = @config.rpcs.get_hcx_activation_key.metadata.to_h
|
1951
|
+
|
1952
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1953
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1954
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1955
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
1956
|
+
transports_version_send: [:rest]
|
1957
|
+
|
1958
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1959
|
+
|
1960
|
+
options.apply_defaults timeout: @config.rpcs.get_hcx_activation_key.timeout,
|
1961
|
+
metadata: call_metadata,
|
1962
|
+
retry_policy: @config.rpcs.get_hcx_activation_key.retry_policy
|
1963
|
+
|
1964
|
+
options.apply_defaults timeout: @config.timeout,
|
1965
|
+
metadata: @config.metadata,
|
1966
|
+
retry_policy: @config.retry_policy
|
1967
|
+
|
1968
|
+
@vmware_engine_stub.get_hcx_activation_key request, options do |result, operation|
|
1969
|
+
yield result, operation if block_given?
|
1970
|
+
return result
|
1971
|
+
end
|
1972
|
+
rescue ::Gapic::Rest::Error => e
|
1973
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1974
|
+
end
|
1975
|
+
|
1976
|
+
##
|
1977
|
+
# Retrieves a `NetworkPolicy` resource by its resource name.
|
1978
|
+
#
|
1979
|
+
# @overload get_network_policy(request, options = nil)
|
1980
|
+
# Pass arguments to `get_network_policy` via a request object, either of type
|
1981
|
+
# {::Google::Cloud::VmwareEngine::V1::GetNetworkPolicyRequest} or an equivalent Hash.
|
1982
|
+
#
|
1983
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::GetNetworkPolicyRequest, ::Hash]
|
1984
|
+
# A request object representing the call parameters. Required. To specify no
|
1985
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1986
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1987
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1988
|
+
#
|
1989
|
+
# @overload get_network_policy(name: nil)
|
1990
|
+
# Pass arguments to `get_network_policy` via keyword arguments. Note that at
|
1991
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1992
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1993
|
+
#
|
1994
|
+
# @param name [::String]
|
1995
|
+
# Required. The resource name of the network policy to retrieve.
|
1996
|
+
# Resource names are schemeless URIs that follow the conventions in
|
1997
|
+
# https://cloud.google.com/apis/design/resource_names.
|
1998
|
+
# For example:
|
1999
|
+
# `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
|
2000
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2001
|
+
# @yieldparam result [::Google::Cloud::VmwareEngine::V1::NetworkPolicy]
|
2002
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2003
|
+
#
|
2004
|
+
# @return [::Google::Cloud::VmwareEngine::V1::NetworkPolicy]
|
2005
|
+
#
|
2006
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2007
|
+
def get_network_policy request, options = nil
|
2008
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2009
|
+
|
2010
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::GetNetworkPolicyRequest
|
2011
|
+
|
2012
|
+
# Converts hash and nil to an options object
|
2013
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2014
|
+
|
2015
|
+
# Customize the options with defaults
|
2016
|
+
call_metadata = @config.rpcs.get_network_policy.metadata.to_h
|
2017
|
+
|
2018
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2019
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2020
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2021
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
2022
|
+
transports_version_send: [:rest]
|
2023
|
+
|
2024
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2025
|
+
|
2026
|
+
options.apply_defaults timeout: @config.rpcs.get_network_policy.timeout,
|
2027
|
+
metadata: call_metadata,
|
2028
|
+
retry_policy: @config.rpcs.get_network_policy.retry_policy
|
2029
|
+
|
2030
|
+
options.apply_defaults timeout: @config.timeout,
|
2031
|
+
metadata: @config.metadata,
|
2032
|
+
retry_policy: @config.retry_policy
|
2033
|
+
|
2034
|
+
@vmware_engine_stub.get_network_policy request, options do |result, operation|
|
2035
|
+
yield result, operation if block_given?
|
2036
|
+
return result
|
2037
|
+
end
|
2038
|
+
rescue ::Gapic::Rest::Error => e
|
2039
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2040
|
+
end
|
2041
|
+
|
2042
|
+
##
|
2043
|
+
# Lists `NetworkPolicy` resources in a specified project and location.
|
2044
|
+
#
|
2045
|
+
# @overload list_network_policies(request, options = nil)
|
2046
|
+
# Pass arguments to `list_network_policies` via a request object, either of type
|
2047
|
+
# {::Google::Cloud::VmwareEngine::V1::ListNetworkPoliciesRequest} or an equivalent Hash.
|
2048
|
+
#
|
2049
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::ListNetworkPoliciesRequest, ::Hash]
|
2050
|
+
# A request object representing the call parameters. Required. To specify no
|
2051
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2052
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2053
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2054
|
+
#
|
2055
|
+
# @overload list_network_policies(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
2056
|
+
# Pass arguments to `list_network_policies` via keyword arguments. Note that at
|
2057
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2058
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2059
|
+
#
|
2060
|
+
# @param parent [::String]
|
2061
|
+
# Required. The resource name of the location (region) to query for
|
2062
|
+
# network policies. Resource names are schemeless URIs that follow the
|
2063
|
+
# conventions in https://cloud.google.com/apis/design/resource_names. For
|
2064
|
+
# example: `projects/my-project/locations/us-central1`
|
2065
|
+
# @param page_size [::Integer]
|
2066
|
+
# The maximum number of network policies to return in one page.
|
2067
|
+
# The service may return fewer than this value.
|
2068
|
+
# The maximum value is coerced to 1000.
|
2069
|
+
# The default value of this field is 500.
|
2070
|
+
# @param page_token [::String]
|
2071
|
+
# A page token, received from a previous `ListNetworkPolicies` call.
|
2072
|
+
# Provide this to retrieve the subsequent page.
|
2073
|
+
#
|
2074
|
+
# When paginating, all other parameters provided to
|
2075
|
+
# `ListNetworkPolicies` must match the call that provided the page
|
2076
|
+
# token.
|
2077
|
+
# @param filter [::String]
|
2078
|
+
# A filter expression that matches resources returned in the response.
|
2079
|
+
# The expression must specify the field name, a comparison
|
2080
|
+
# operator, and the value that you want to use for filtering. The value
|
2081
|
+
# must be a string, a number, or a boolean. The comparison operator
|
2082
|
+
# must be `=`, `!=`, `>`, or `<`.
|
2083
|
+
#
|
2084
|
+
# For example, if you are filtering a list of network policies, you can
|
2085
|
+
# exclude the ones named `example-policy` by specifying
|
2086
|
+
# `name != "example-policy"`.
|
2087
|
+
#
|
2088
|
+
# To filter on multiple expressions, provide each separate expression within
|
2089
|
+
# parentheses. For example:
|
2090
|
+
# ```
|
2091
|
+
# (name = "example-policy")
|
2092
|
+
# (createTime > "2021-04-12T08:15:10.40Z")
|
2093
|
+
# ```
|
2094
|
+
#
|
2095
|
+
# By default, each expression is an `AND` expression. However, you
|
2096
|
+
# can include `AND` and `OR` expressions explicitly.
|
2097
|
+
# For example:
|
2098
|
+
# ```
|
2099
|
+
# (name = "example-policy-1") AND
|
2100
|
+
# (createTime > "2021-04-12T08:15:10.40Z") OR
|
2101
|
+
# (name = "example-policy-2")
|
2102
|
+
# ```
|
2103
|
+
# @param order_by [::String]
|
2104
|
+
# Sorts list results by a certain order. By default, returned results
|
2105
|
+
# are ordered by `name` in ascending order.
|
2106
|
+
# You can also sort results in descending order based on the `name` value
|
2107
|
+
# using `orderBy="name desc"`.
|
2108
|
+
# Currently, only ordering by `name` is supported.
|
2109
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2110
|
+
# @yieldparam result [::Google::Cloud::VmwareEngine::V1::ListNetworkPoliciesResponse]
|
2111
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2112
|
+
#
|
2113
|
+
# @return [::Google::Cloud::VmwareEngine::V1::ListNetworkPoliciesResponse]
|
2114
|
+
#
|
2115
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2116
|
+
def list_network_policies request, options = nil
|
2117
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2118
|
+
|
2119
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::ListNetworkPoliciesRequest
|
2120
|
+
|
2121
|
+
# Converts hash and nil to an options object
|
2122
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2123
|
+
|
2124
|
+
# Customize the options with defaults
|
2125
|
+
call_metadata = @config.rpcs.list_network_policies.metadata.to_h
|
2126
|
+
|
2127
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2128
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2129
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2130
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
2131
|
+
transports_version_send: [:rest]
|
2132
|
+
|
2133
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2134
|
+
|
2135
|
+
options.apply_defaults timeout: @config.rpcs.list_network_policies.timeout,
|
2136
|
+
metadata: call_metadata,
|
2137
|
+
retry_policy: @config.rpcs.list_network_policies.retry_policy
|
2138
|
+
|
2139
|
+
options.apply_defaults timeout: @config.timeout,
|
2140
|
+
metadata: @config.metadata,
|
2141
|
+
retry_policy: @config.retry_policy
|
2142
|
+
|
2143
|
+
@vmware_engine_stub.list_network_policies request, options do |result, operation|
|
2144
|
+
yield result, operation if block_given?
|
2145
|
+
return result
|
2146
|
+
end
|
2147
|
+
rescue ::Gapic::Rest::Error => e
|
2148
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2149
|
+
end
|
2150
|
+
|
2151
|
+
##
|
2152
|
+
# Creates a new network policy in a given VMware Engine network of a
|
2153
|
+
# project and location (region). A new network policy cannot be created if
|
2154
|
+
# another network policy already exists in the same scope.
|
2155
|
+
#
|
2156
|
+
# @overload create_network_policy(request, options = nil)
|
2157
|
+
# Pass arguments to `create_network_policy` via a request object, either of type
|
2158
|
+
# {::Google::Cloud::VmwareEngine::V1::CreateNetworkPolicyRequest} or an equivalent Hash.
|
2159
|
+
#
|
2160
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::CreateNetworkPolicyRequest, ::Hash]
|
2161
|
+
# A request object representing the call parameters. Required. To specify no
|
2162
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2163
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2164
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2165
|
+
#
|
2166
|
+
# @overload create_network_policy(parent: nil, network_policy_id: nil, network_policy: nil, request_id: nil)
|
2167
|
+
# Pass arguments to `create_network_policy` via keyword arguments. Note that at
|
2168
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2169
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2170
|
+
#
|
2171
|
+
# @param parent [::String]
|
2172
|
+
# Required. The resource name of the location (region)
|
2173
|
+
# to create the new network policy in.
|
2174
|
+
# Resource names are schemeless URIs that follow the conventions in
|
2175
|
+
# https://cloud.google.com/apis/design/resource_names.
|
2176
|
+
# For example:
|
2177
|
+
# `projects/my-project/locations/us-central1`
|
2178
|
+
# @param network_policy_id [::String]
|
2179
|
+
# Required. The user-provided identifier of the network policy to be created.
|
2180
|
+
# This identifier must be unique within parent
|
2181
|
+
# `projects/{my-project}/locations/{us-central1}/networkPolicies` and becomes
|
2182
|
+
# the final token in the name URI.
|
2183
|
+
# The identifier must meet the following requirements:
|
2184
|
+
#
|
2185
|
+
# * Only contains 1-63 alphanumeric characters and hyphens
|
2186
|
+
# * Begins with an alphabetical character
|
2187
|
+
# * Ends with a non-hyphen character
|
2188
|
+
# * Not formatted as a UUID
|
2189
|
+
# * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
|
2190
|
+
# (section 3.5)
|
2191
|
+
# @param network_policy [::Google::Cloud::VmwareEngine::V1::NetworkPolicy, ::Hash]
|
2192
|
+
# Required. The network policy configuration to use in the request.
|
2193
|
+
# @param request_id [::String]
|
2194
|
+
# Optional. A request ID to identify requests. Specify a unique request ID
|
2195
|
+
# so that if you must retry your request, the server will know to ignore
|
2196
|
+
# the request if it has already been completed. The server guarantees that a
|
2197
|
+
# request doesn't result in creation of duplicate commitments for at least 60
|
2198
|
+
# minutes.
|
2199
|
+
#
|
2200
|
+
# For example, consider a situation where you make an initial request and the
|
2201
|
+
# request times out. If you make the request again with the same request
|
2202
|
+
# ID, the server can check if original operation with the same request ID
|
2203
|
+
# was received, and if so, will ignore the second request. This prevents
|
2204
|
+
# clients from accidentally creating duplicate commitments.
|
2205
|
+
#
|
2206
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
2207
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
2208
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2209
|
+
# @yieldparam result [::Gapic::Operation]
|
2210
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2211
|
+
#
|
2212
|
+
# @return [::Gapic::Operation]
|
2213
|
+
#
|
2214
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2215
|
+
def create_network_policy request, options = nil
|
2216
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2217
|
+
|
2218
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::CreateNetworkPolicyRequest
|
2219
|
+
|
2220
|
+
# Converts hash and nil to an options object
|
2221
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2222
|
+
|
2223
|
+
# Customize the options with defaults
|
2224
|
+
call_metadata = @config.rpcs.create_network_policy.metadata.to_h
|
2225
|
+
|
2226
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2227
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2228
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2229
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
2230
|
+
transports_version_send: [:rest]
|
2231
|
+
|
2232
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2233
|
+
|
2234
|
+
options.apply_defaults timeout: @config.rpcs.create_network_policy.timeout,
|
2235
|
+
metadata: call_metadata,
|
2236
|
+
retry_policy: @config.rpcs.create_network_policy.retry_policy
|
2237
|
+
|
2238
|
+
options.apply_defaults timeout: @config.timeout,
|
2239
|
+
metadata: @config.metadata,
|
2240
|
+
retry_policy: @config.retry_policy
|
2241
|
+
|
2242
|
+
@vmware_engine_stub.create_network_policy request, options do |result, operation|
|
2243
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2244
|
+
yield result, operation if block_given?
|
2245
|
+
return result
|
2246
|
+
end
|
2247
|
+
rescue ::Gapic::Rest::Error => e
|
2248
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2249
|
+
end
|
2250
|
+
|
2251
|
+
##
|
2252
|
+
# Modifies a `NetworkPolicy` resource. Only the following fields can be
|
2253
|
+
# updated: `internet_access`, `external_ip`, `edge_services_cidr`.
|
2254
|
+
# Only fields specified in `updateMask` are applied. When updating a network
|
2255
|
+
# policy, the external IP network service can only be disabled if there are
|
2256
|
+
# no external IP addresses present in the scope of the policy. Also, a
|
2257
|
+
# `NetworkService` cannot be updated when `NetworkService.state` is set
|
2258
|
+
# to `RECONCILING`.
|
2259
|
+
#
|
2260
|
+
# During operation processing, the resource is temporarily in the `ACTIVE`
|
2261
|
+
# state before the operation fully completes. For that period of time, you
|
2262
|
+
# can't update the resource. Use the operation status to determine when the
|
2263
|
+
# processing fully completes.
|
2264
|
+
#
|
2265
|
+
# @overload update_network_policy(request, options = nil)
|
2266
|
+
# Pass arguments to `update_network_policy` via a request object, either of type
|
2267
|
+
# {::Google::Cloud::VmwareEngine::V1::UpdateNetworkPolicyRequest} or an equivalent Hash.
|
2268
|
+
#
|
2269
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::UpdateNetworkPolicyRequest, ::Hash]
|
2270
|
+
# A request object representing the call parameters. Required. To specify no
|
2271
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2272
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2273
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2274
|
+
#
|
2275
|
+
# @overload update_network_policy(network_policy: nil, update_mask: nil, request_id: nil)
|
2276
|
+
# Pass arguments to `update_network_policy` via keyword arguments. Note that at
|
2277
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2278
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2279
|
+
#
|
2280
|
+
# @param network_policy [::Google::Cloud::VmwareEngine::V1::NetworkPolicy, ::Hash]
|
2281
|
+
# Required. Network policy description.
|
2282
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2283
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
2284
|
+
# `NetworkPolicy` resource by the update.
|
2285
|
+
# The fields specified in the `update_mask` are relative to the resource, not
|
2286
|
+
# the full request. A field will be overwritten if it is in the mask. If the
|
2287
|
+
# user does not provide a mask then all fields will be overwritten.
|
2288
|
+
# @param request_id [::String]
|
2289
|
+
# Optional. A request ID to identify requests. Specify a unique request ID
|
2290
|
+
# so that if you must retry your request, the server will know to ignore
|
2291
|
+
# the request if it has already been completed. The server guarantees that a
|
2292
|
+
# request doesn't result in creation of duplicate commitments for at least 60
|
2293
|
+
# minutes.
|
2294
|
+
#
|
2295
|
+
# For example, consider a situation where you make an initial request and the
|
2296
|
+
# request times out. If you make the request again with the same request
|
2297
|
+
# ID, the server can check if original operation with the same request ID
|
2298
|
+
# was received, and if so, will ignore the second request. This prevents
|
2299
|
+
# clients from accidentally creating duplicate commitments.
|
2300
|
+
#
|
2301
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
2302
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
2303
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2304
|
+
# @yieldparam result [::Gapic::Operation]
|
2305
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2306
|
+
#
|
2307
|
+
# @return [::Gapic::Operation]
|
2308
|
+
#
|
2309
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2310
|
+
def update_network_policy request, options = nil
|
2311
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2312
|
+
|
2313
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::UpdateNetworkPolicyRequest
|
2314
|
+
|
2315
|
+
# Converts hash and nil to an options object
|
2316
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2317
|
+
|
2318
|
+
# Customize the options with defaults
|
2319
|
+
call_metadata = @config.rpcs.update_network_policy.metadata.to_h
|
2320
|
+
|
2321
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2322
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2323
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2324
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
2325
|
+
transports_version_send: [:rest]
|
2326
|
+
|
2327
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2328
|
+
|
2329
|
+
options.apply_defaults timeout: @config.rpcs.update_network_policy.timeout,
|
2330
|
+
metadata: call_metadata,
|
2331
|
+
retry_policy: @config.rpcs.update_network_policy.retry_policy
|
2332
|
+
|
2333
|
+
options.apply_defaults timeout: @config.timeout,
|
2334
|
+
metadata: @config.metadata,
|
2335
|
+
retry_policy: @config.retry_policy
|
2336
|
+
|
2337
|
+
@vmware_engine_stub.update_network_policy request, options do |result, operation|
|
2338
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2339
|
+
yield result, operation if block_given?
|
2340
|
+
return result
|
2341
|
+
end
|
2342
|
+
rescue ::Gapic::Rest::Error => e
|
2343
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2344
|
+
end
|
2345
|
+
|
2346
|
+
##
|
2347
|
+
# Deletes a `NetworkPolicy` resource. A network policy cannot be deleted
|
2348
|
+
# when `NetworkService.state` is set to `RECONCILING` for either its external
|
2349
|
+
# IP or internet access service.
|
2350
|
+
#
|
2351
|
+
# @overload delete_network_policy(request, options = nil)
|
2352
|
+
# Pass arguments to `delete_network_policy` via a request object, either of type
|
2353
|
+
# {::Google::Cloud::VmwareEngine::V1::DeleteNetworkPolicyRequest} or an equivalent Hash.
|
2354
|
+
#
|
2355
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::DeleteNetworkPolicyRequest, ::Hash]
|
2356
|
+
# A request object representing the call parameters. Required. To specify no
|
2357
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2358
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2359
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2360
|
+
#
|
2361
|
+
# @overload delete_network_policy(name: nil, request_id: nil)
|
2362
|
+
# Pass arguments to `delete_network_policy` via keyword arguments. Note that at
|
2363
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2364
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2365
|
+
#
|
2366
|
+
# @param name [::String]
|
2367
|
+
# Required. The resource name of the network policy to delete.
|
2368
|
+
# Resource names are schemeless URIs that follow the conventions in
|
2369
|
+
# https://cloud.google.com/apis/design/resource_names.
|
2370
|
+
# For example:
|
2371
|
+
# `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
|
2372
|
+
# @param request_id [::String]
|
2373
|
+
# Optional. A request ID to identify requests. Specify a unique request ID
|
2374
|
+
# so that if you must retry your request, the server will know to ignore
|
2375
|
+
# the request if it has already been completed. The server guarantees that a
|
2376
|
+
# request doesn't result in creation of duplicate commitments for at least 60
|
2377
|
+
# minutes.
|
2378
|
+
#
|
2379
|
+
# For example, consider a situation where you make an initial request and the
|
2380
|
+
# request times out. If you make the request again with the same request
|
2381
|
+
# ID, the server can check if original operation with the same request ID
|
2382
|
+
# was received, and if so, will ignore the second request. This prevents
|
2383
|
+
# clients from accidentally creating duplicate commitments.
|
2384
|
+
#
|
2385
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
2386
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
2387
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2388
|
+
# @yieldparam result [::Gapic::Operation]
|
2389
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2390
|
+
#
|
2391
|
+
# @return [::Gapic::Operation]
|
2392
|
+
#
|
2393
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2394
|
+
def delete_network_policy request, options = nil
|
2395
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2396
|
+
|
2397
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::DeleteNetworkPolicyRequest
|
2398
|
+
|
2399
|
+
# Converts hash and nil to an options object
|
2400
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2401
|
+
|
2402
|
+
# Customize the options with defaults
|
2403
|
+
call_metadata = @config.rpcs.delete_network_policy.metadata.to_h
|
2404
|
+
|
2405
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2406
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2407
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2408
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
2409
|
+
transports_version_send: [:rest]
|
2410
|
+
|
2411
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2412
|
+
|
2413
|
+
options.apply_defaults timeout: @config.rpcs.delete_network_policy.timeout,
|
2414
|
+
metadata: call_metadata,
|
2415
|
+
retry_policy: @config.rpcs.delete_network_policy.retry_policy
|
2416
|
+
|
2417
|
+
options.apply_defaults timeout: @config.timeout,
|
2418
|
+
metadata: @config.metadata,
|
2419
|
+
retry_policy: @config.retry_policy
|
2420
|
+
|
2421
|
+
@vmware_engine_stub.delete_network_policy request, options do |result, operation|
|
2422
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2423
|
+
yield result, operation if block_given?
|
2424
|
+
return result
|
2425
|
+
end
|
2426
|
+
rescue ::Gapic::Rest::Error => e
|
2427
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2428
|
+
end
|
2429
|
+
|
2430
|
+
##
|
2431
|
+
# Creates a new VMware Engine network that can be used by a private cloud.
|
2432
|
+
#
|
2433
|
+
# @overload create_vmware_engine_network(request, options = nil)
|
2434
|
+
# Pass arguments to `create_vmware_engine_network` via a request object, either of type
|
2435
|
+
# {::Google::Cloud::VmwareEngine::V1::CreateVmwareEngineNetworkRequest} or an equivalent Hash.
|
2436
|
+
#
|
2437
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::CreateVmwareEngineNetworkRequest, ::Hash]
|
2438
|
+
# A request object representing the call parameters. Required. To specify no
|
2439
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2440
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2441
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2442
|
+
#
|
2443
|
+
# @overload create_vmware_engine_network(parent: nil, vmware_engine_network_id: nil, vmware_engine_network: nil, request_id: nil)
|
2444
|
+
# Pass arguments to `create_vmware_engine_network` via keyword arguments. Note that at
|
2445
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2446
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2447
|
+
#
|
2448
|
+
# @param parent [::String]
|
2449
|
+
# Required. The resource name of the location to create the new VMware Engine
|
2450
|
+
# network in. A VMware Engine network of type
|
2451
|
+
# `LEGACY` is a regional resource, and a VMware
|
2452
|
+
# Engine network of type `STANDARD` is a global resource.
|
2453
|
+
# Resource names are schemeless URIs that follow the conventions in
|
2454
|
+
# https://cloud.google.com/apis/design/resource_names. For example:
|
2455
|
+
# `projects/my-project/locations/global`
|
2456
|
+
# @param vmware_engine_network_id [::String]
|
2457
|
+
# Required. The user-provided identifier of the new VMware Engine network.
|
2458
|
+
# This identifier must be unique among VMware Engine network resources
|
2459
|
+
# within the parent and becomes the final token in the name URI. The
|
2460
|
+
# identifier must meet the following requirements:
|
2461
|
+
#
|
2462
|
+
# * For networks of type LEGACY, adheres to the format:
|
2463
|
+
# `{region-id}-default`. Replace `{region-id}` with the region where you want
|
2464
|
+
# to create the VMware Engine network. For example, "us-central1-default".
|
2465
|
+
# * Only contains 1-63 alphanumeric characters and hyphens
|
2466
|
+
# * Begins with an alphabetical character
|
2467
|
+
# * Ends with a non-hyphen character
|
2468
|
+
# * Not formatted as a UUID
|
2469
|
+
# * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
|
2470
|
+
# (section 3.5)
|
2471
|
+
# @param vmware_engine_network [::Google::Cloud::VmwareEngine::V1::VmwareEngineNetwork, ::Hash]
|
2472
|
+
# Required. The initial description of the new VMware Engine network.
|
2473
|
+
# @param request_id [::String]
|
2474
|
+
# Optional. A request ID to identify requests. Specify a unique request ID
|
2475
|
+
# so that if you must retry your request, the server will know to ignore
|
2476
|
+
# the request if it has already been completed. The server guarantees that a
|
2477
|
+
# request doesn't result in creation of duplicate commitments for at least 60
|
2478
|
+
# minutes.
|
2479
|
+
#
|
2480
|
+
# For example, consider a situation where you make an initial request and the
|
2481
|
+
# request times out. If you make the request again with the same request
|
2482
|
+
# ID, the server can check if original operation with the same request ID
|
2483
|
+
# was received, and if so, will ignore the second request. This prevents
|
2484
|
+
# clients from accidentally creating duplicate commitments.
|
2485
|
+
#
|
2486
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
2487
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
2488
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2489
|
+
# @yieldparam result [::Gapic::Operation]
|
2490
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2491
|
+
#
|
2492
|
+
# @return [::Gapic::Operation]
|
2493
|
+
#
|
2494
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2495
|
+
def create_vmware_engine_network request, options = nil
|
2496
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2497
|
+
|
2498
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::CreateVmwareEngineNetworkRequest
|
2499
|
+
|
2500
|
+
# Converts hash and nil to an options object
|
2501
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2502
|
+
|
2503
|
+
# Customize the options with defaults
|
2504
|
+
call_metadata = @config.rpcs.create_vmware_engine_network.metadata.to_h
|
2505
|
+
|
2506
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2507
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2508
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2509
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
2510
|
+
transports_version_send: [:rest]
|
2511
|
+
|
2512
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2513
|
+
|
2514
|
+
options.apply_defaults timeout: @config.rpcs.create_vmware_engine_network.timeout,
|
2515
|
+
metadata: call_metadata,
|
2516
|
+
retry_policy: @config.rpcs.create_vmware_engine_network.retry_policy
|
2517
|
+
|
2518
|
+
options.apply_defaults timeout: @config.timeout,
|
2519
|
+
metadata: @config.metadata,
|
2520
|
+
retry_policy: @config.retry_policy
|
2521
|
+
|
2522
|
+
@vmware_engine_stub.create_vmware_engine_network request, options do |result, operation|
|
2523
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2524
|
+
yield result, operation if block_given?
|
2525
|
+
return result
|
2526
|
+
end
|
2527
|
+
rescue ::Gapic::Rest::Error => e
|
2528
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2529
|
+
end
|
2530
|
+
|
2531
|
+
##
|
2532
|
+
# Modifies a VMware Engine network resource. Only the following fields can be
|
2533
|
+
# updated: `description`. Only fields specified in `updateMask` are
|
2534
|
+
# applied.
|
2535
|
+
#
|
2536
|
+
# @overload update_vmware_engine_network(request, options = nil)
|
2537
|
+
# Pass arguments to `update_vmware_engine_network` via a request object, either of type
|
2538
|
+
# {::Google::Cloud::VmwareEngine::V1::UpdateVmwareEngineNetworkRequest} or an equivalent Hash.
|
2539
|
+
#
|
2540
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::UpdateVmwareEngineNetworkRequest, ::Hash]
|
2541
|
+
# A request object representing the call parameters. Required. To specify no
|
2542
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2543
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2544
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2545
|
+
#
|
2546
|
+
# @overload update_vmware_engine_network(vmware_engine_network: nil, update_mask: nil, request_id: nil)
|
2547
|
+
# Pass arguments to `update_vmware_engine_network` via keyword arguments. Note that at
|
2548
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2549
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2550
|
+
#
|
2551
|
+
# @param vmware_engine_network [::Google::Cloud::VmwareEngine::V1::VmwareEngineNetwork, ::Hash]
|
2552
|
+
# Required. VMware Engine network description.
|
2553
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2554
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
2555
|
+
# VMware Engine network resource by the update.
|
2556
|
+
# The fields specified in the `update_mask` are relative to the resource, not
|
2557
|
+
# the full request. A field will be overwritten if it is in the mask. If the
|
2558
|
+
# user does not provide a mask then all fields will be overwritten. Only the
|
2559
|
+
# following fields can be updated: `description`.
|
2560
|
+
# @param request_id [::String]
|
2561
|
+
# Optional. A request ID to identify requests. Specify a unique request ID
|
2562
|
+
# so that if you must retry your request, the server will know to ignore
|
2563
|
+
# the request if it has already been completed. The server guarantees that a
|
2564
|
+
# request doesn't result in creation of duplicate commitments for at least 60
|
2565
|
+
# minutes.
|
2566
|
+
#
|
2567
|
+
# For example, consider a situation where you make an initial request and the
|
2568
|
+
# request times out. If you make the request again with the same request
|
2569
|
+
# ID, the server can check if original operation with the same request ID
|
2570
|
+
# was received, and if so, will ignore the second request. This prevents
|
2571
|
+
# clients from accidentally creating duplicate commitments.
|
2572
|
+
#
|
2573
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
2574
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
2575
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2576
|
+
# @yieldparam result [::Gapic::Operation]
|
2577
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2578
|
+
#
|
2579
|
+
# @return [::Gapic::Operation]
|
2580
|
+
#
|
2581
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2582
|
+
def update_vmware_engine_network request, options = nil
|
2583
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2584
|
+
|
2585
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::UpdateVmwareEngineNetworkRequest
|
2586
|
+
|
2587
|
+
# Converts hash and nil to an options object
|
2588
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2589
|
+
|
2590
|
+
# Customize the options with defaults
|
2591
|
+
call_metadata = @config.rpcs.update_vmware_engine_network.metadata.to_h
|
2592
|
+
|
2593
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2594
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2595
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2596
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
2597
|
+
transports_version_send: [:rest]
|
2598
|
+
|
2599
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2600
|
+
|
2601
|
+
options.apply_defaults timeout: @config.rpcs.update_vmware_engine_network.timeout,
|
2602
|
+
metadata: call_metadata,
|
2603
|
+
retry_policy: @config.rpcs.update_vmware_engine_network.retry_policy
|
2604
|
+
|
2605
|
+
options.apply_defaults timeout: @config.timeout,
|
2606
|
+
metadata: @config.metadata,
|
2607
|
+
retry_policy: @config.retry_policy
|
2608
|
+
|
2609
|
+
@vmware_engine_stub.update_vmware_engine_network request, options do |result, operation|
|
2610
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2611
|
+
yield result, operation if block_given?
|
2612
|
+
return result
|
2613
|
+
end
|
2614
|
+
rescue ::Gapic::Rest::Error => e
|
2615
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2616
|
+
end
|
2617
|
+
|
2618
|
+
##
|
2619
|
+
# Deletes a `VmwareEngineNetwork` resource. You can only delete a VMware
|
2620
|
+
# Engine network after all resources that refer to it are deleted. For
|
2621
|
+
# example, a private cloud, a network peering, and a network policy can all
|
2622
|
+
# refer to the same VMware Engine network.
|
2623
|
+
#
|
2624
|
+
# @overload delete_vmware_engine_network(request, options = nil)
|
2625
|
+
# Pass arguments to `delete_vmware_engine_network` via a request object, either of type
|
2626
|
+
# {::Google::Cloud::VmwareEngine::V1::DeleteVmwareEngineNetworkRequest} or an equivalent Hash.
|
2627
|
+
#
|
2628
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::DeleteVmwareEngineNetworkRequest, ::Hash]
|
2629
|
+
# A request object representing the call parameters. Required. To specify no
|
2630
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2631
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2632
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2633
|
+
#
|
2634
|
+
# @overload delete_vmware_engine_network(name: nil, request_id: nil, etag: nil)
|
2635
|
+
# Pass arguments to `delete_vmware_engine_network` via keyword arguments. Note that at
|
2636
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2637
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2638
|
+
#
|
2639
|
+
# @param name [::String]
|
2640
|
+
# Required. The resource name of the VMware Engine network to be deleted.
|
2641
|
+
# Resource names are schemeless URIs that follow the conventions in
|
2642
|
+
# https://cloud.google.com/apis/design/resource_names.
|
2643
|
+
# For example:
|
2644
|
+
# `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
|
2645
|
+
# @param request_id [::String]
|
2646
|
+
# Optional. A request ID to identify requests. Specify a unique request ID
|
2647
|
+
# so that if you must retry your request, the server will know to ignore
|
2648
|
+
# the request if it has already been completed. The server guarantees that a
|
2649
|
+
# request doesn't result in creation of duplicate commitments for at least 60
|
2650
|
+
# minutes.
|
2651
|
+
#
|
2652
|
+
# For example, consider a situation where you make an initial request and the
|
2653
|
+
# request times out. If you make the request again with the same request
|
2654
|
+
# ID, the server can check if original operation with the same request ID
|
2655
|
+
# was received, and if so, will ignore the second request. This prevents
|
2656
|
+
# clients from accidentally creating duplicate commitments.
|
2657
|
+
#
|
2658
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
2659
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
2660
|
+
# @param etag [::String]
|
2661
|
+
# Optional. Checksum used to ensure that the user-provided value is up to
|
2662
|
+
# date before the server processes the request. The server compares provided
|
2663
|
+
# checksum with the current checksum of the resource. If the user-provided
|
2664
|
+
# value is out of date, this request returns an `ABORTED` error.
|
2665
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2666
|
+
# @yieldparam result [::Gapic::Operation]
|
2667
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2668
|
+
#
|
2669
|
+
# @return [::Gapic::Operation]
|
2670
|
+
#
|
2671
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2672
|
+
def delete_vmware_engine_network request, options = nil
|
2673
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2674
|
+
|
2675
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::DeleteVmwareEngineNetworkRequest
|
2676
|
+
|
2677
|
+
# Converts hash and nil to an options object
|
2678
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2679
|
+
|
2680
|
+
# Customize the options with defaults
|
2681
|
+
call_metadata = @config.rpcs.delete_vmware_engine_network.metadata.to_h
|
2682
|
+
|
2683
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2684
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2685
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2686
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
2687
|
+
transports_version_send: [:rest]
|
2688
|
+
|
2689
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2690
|
+
|
2691
|
+
options.apply_defaults timeout: @config.rpcs.delete_vmware_engine_network.timeout,
|
2692
|
+
metadata: call_metadata,
|
2693
|
+
retry_policy: @config.rpcs.delete_vmware_engine_network.retry_policy
|
2694
|
+
|
2695
|
+
options.apply_defaults timeout: @config.timeout,
|
2696
|
+
metadata: @config.metadata,
|
2697
|
+
retry_policy: @config.retry_policy
|
2698
|
+
|
2699
|
+
@vmware_engine_stub.delete_vmware_engine_network request, options do |result, operation|
|
2700
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2701
|
+
yield result, operation if block_given?
|
2702
|
+
return result
|
2703
|
+
end
|
2704
|
+
rescue ::Gapic::Rest::Error => e
|
2705
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2706
|
+
end
|
2707
|
+
|
2708
|
+
##
|
2709
|
+
# Retrieves a `VmwareEngineNetwork` resource by its resource name. The
|
2710
|
+
# resource contains details of the VMware Engine network, such as its VMware
|
2711
|
+
# Engine network type, peered networks in a service project, and state
|
2712
|
+
# (for example, `CREATING`, `ACTIVE`, `DELETING`).
|
2713
|
+
#
|
2714
|
+
# @overload get_vmware_engine_network(request, options = nil)
|
2715
|
+
# Pass arguments to `get_vmware_engine_network` via a request object, either of type
|
2716
|
+
# {::Google::Cloud::VmwareEngine::V1::GetVmwareEngineNetworkRequest} or an equivalent Hash.
|
2717
|
+
#
|
2718
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::GetVmwareEngineNetworkRequest, ::Hash]
|
2719
|
+
# A request object representing the call parameters. Required. To specify no
|
2720
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2721
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2722
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2723
|
+
#
|
2724
|
+
# @overload get_vmware_engine_network(name: nil)
|
2725
|
+
# Pass arguments to `get_vmware_engine_network` via keyword arguments. Note that at
|
2726
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2727
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2728
|
+
#
|
2729
|
+
# @param name [::String]
|
2730
|
+
# Required. The resource name of the VMware Engine network to retrieve.
|
2731
|
+
# Resource names are schemeless URIs that follow the conventions in
|
2732
|
+
# https://cloud.google.com/apis/design/resource_names.
|
2733
|
+
# For example:
|
2734
|
+
# `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
|
2735
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2736
|
+
# @yieldparam result [::Google::Cloud::VmwareEngine::V1::VmwareEngineNetwork]
|
2737
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2738
|
+
#
|
2739
|
+
# @return [::Google::Cloud::VmwareEngine::V1::VmwareEngineNetwork]
|
2740
|
+
#
|
2741
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2742
|
+
def get_vmware_engine_network request, options = nil
|
2743
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2744
|
+
|
2745
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::GetVmwareEngineNetworkRequest
|
2746
|
+
|
2747
|
+
# Converts hash and nil to an options object
|
2748
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2749
|
+
|
2750
|
+
# Customize the options with defaults
|
2751
|
+
call_metadata = @config.rpcs.get_vmware_engine_network.metadata.to_h
|
2752
|
+
|
2753
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2754
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2755
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2756
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
2757
|
+
transports_version_send: [:rest]
|
2758
|
+
|
2759
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2760
|
+
|
2761
|
+
options.apply_defaults timeout: @config.rpcs.get_vmware_engine_network.timeout,
|
2762
|
+
metadata: call_metadata,
|
2763
|
+
retry_policy: @config.rpcs.get_vmware_engine_network.retry_policy
|
2764
|
+
|
2765
|
+
options.apply_defaults timeout: @config.timeout,
|
2766
|
+
metadata: @config.metadata,
|
2767
|
+
retry_policy: @config.retry_policy
|
2768
|
+
|
2769
|
+
@vmware_engine_stub.get_vmware_engine_network request, options do |result, operation|
|
2770
|
+
yield result, operation if block_given?
|
2771
|
+
return result
|
2772
|
+
end
|
2773
|
+
rescue ::Gapic::Rest::Error => e
|
2774
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2775
|
+
end
|
2776
|
+
|
2777
|
+
##
|
2778
|
+
# Lists `VmwareEngineNetwork` resources in a given project and location.
|
2779
|
+
#
|
2780
|
+
# @overload list_vmware_engine_networks(request, options = nil)
|
2781
|
+
# Pass arguments to `list_vmware_engine_networks` via a request object, either of type
|
2782
|
+
# {::Google::Cloud::VmwareEngine::V1::ListVmwareEngineNetworksRequest} or an equivalent Hash.
|
2783
|
+
#
|
2784
|
+
# @param request [::Google::Cloud::VmwareEngine::V1::ListVmwareEngineNetworksRequest, ::Hash]
|
2785
|
+
# A request object representing the call parameters. Required. To specify no
|
2786
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2787
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2788
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2789
|
+
#
|
2790
|
+
# @overload list_vmware_engine_networks(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
2791
|
+
# Pass arguments to `list_vmware_engine_networks` via keyword arguments. Note that at
|
2792
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2793
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2794
|
+
#
|
2795
|
+
# @param parent [::String]
|
2796
|
+
# Required. The resource name of the location to query for
|
2797
|
+
# VMware Engine networks. Resource names are schemeless URIs that follow the
|
2798
|
+
# conventions in https://cloud.google.com/apis/design/resource_names. For
|
2799
|
+
# example: `projects/my-project/locations/global`
|
2800
|
+
# @param page_size [::Integer]
|
2801
|
+
# The maximum number of results to return in one page.
|
2802
|
+
# The maximum value is coerced to 1000.
|
2803
|
+
# The default value of this field is 500.
|
2804
|
+
# @param page_token [::String]
|
2805
|
+
# A page token, received from a previous `ListVmwareEngineNetworks` call.
|
2806
|
+
# Provide this to retrieve the subsequent page.
|
2807
|
+
#
|
2808
|
+
# When paginating, all other parameters provided to
|
2809
|
+
# `ListVmwareEngineNetworks` must match the call that provided the page
|
2810
|
+
# token.
|
2811
|
+
# @param filter [::String]
|
2812
|
+
# A filter expression that matches resources returned in the response.
|
2813
|
+
# The expression must specify the field name, a comparison
|
2814
|
+
# operator, and the value that you want to use for filtering. The value
|
2815
|
+
# must be a string, a number, or a boolean. The comparison operator
|
2816
|
+
# must be `=`, `!=`, `>`, or `<`.
|
2817
|
+
#
|
2818
|
+
# For example, if you are filtering a list of network peerings, you can
|
2819
|
+
# exclude the ones named `example-network` by specifying
|
2820
|
+
# `name != "example-network"`.
|
2821
|
+
#
|
2822
|
+
# To filter on multiple expressions, provide each separate expression within
|
2823
|
+
# parentheses. For example:
|
2824
|
+
# ```
|
2825
|
+
# (name = "example-network")
|
2826
|
+
# (createTime > "2021-04-12T08:15:10.40Z")
|
2827
|
+
# ```
|
2828
|
+
#
|
2829
|
+
# By default, each expression is an `AND` expression. However, you
|
2830
|
+
# can include `AND` and `OR` expressions explicitly.
|
2831
|
+
# For example:
|
2832
|
+
# ```
|
2833
|
+
# (name = "example-network-1") AND
|
2834
|
+
# (createTime > "2021-04-12T08:15:10.40Z") OR
|
2835
|
+
# (name = "example-network-2")
|
2836
|
+
# ```
|
2837
|
+
# @param order_by [::String]
|
2838
|
+
# Sorts list results by a certain order. By default, returned results
|
2839
|
+
# are ordered by `name` in ascending order.
|
2840
|
+
# You can also sort results in descending order based on the `name` value
|
2841
|
+
# using `orderBy="name desc"`.
|
2842
|
+
# Currently, only ordering by `name` is supported.
|
2843
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2844
|
+
# @yieldparam result [::Google::Cloud::VmwareEngine::V1::ListVmwareEngineNetworksResponse]
|
2845
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2846
|
+
#
|
2847
|
+
# @return [::Google::Cloud::VmwareEngine::V1::ListVmwareEngineNetworksResponse]
|
2848
|
+
#
|
2849
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2850
|
+
def list_vmware_engine_networks request, options = nil
|
2851
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2852
|
+
|
2853
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::VmwareEngine::V1::ListVmwareEngineNetworksRequest
|
2854
|
+
|
2855
|
+
# Converts hash and nil to an options object
|
2856
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2857
|
+
|
2858
|
+
# Customize the options with defaults
|
2859
|
+
call_metadata = @config.rpcs.list_vmware_engine_networks.metadata.to_h
|
2860
|
+
|
2861
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2862
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2863
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2864
|
+
gapic_version: ::Google::Cloud::VmwareEngine::V1::VERSION,
|
2865
|
+
transports_version_send: [:rest]
|
2866
|
+
|
2867
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2868
|
+
|
2869
|
+
options.apply_defaults timeout: @config.rpcs.list_vmware_engine_networks.timeout,
|
2870
|
+
metadata: call_metadata,
|
2871
|
+
retry_policy: @config.rpcs.list_vmware_engine_networks.retry_policy
|
2872
|
+
|
2873
|
+
options.apply_defaults timeout: @config.timeout,
|
2874
|
+
metadata: @config.metadata,
|
2875
|
+
retry_policy: @config.retry_policy
|
2876
|
+
|
2877
|
+
@vmware_engine_stub.list_vmware_engine_networks request, options do |result, operation|
|
2878
|
+
yield result, operation if block_given?
|
2879
|
+
return result
|
2880
|
+
end
|
2881
|
+
rescue ::Gapic::Rest::Error => e
|
2882
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2883
|
+
end
|
2884
|
+
|
2885
|
+
##
|
2886
|
+
# Configuration class for the VmwareEngine REST API.
|
2887
|
+
#
|
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.
|
2894
|
+
#
|
2895
|
+
# Configuration can be applied globally to all clients, or to a single client
|
2896
|
+
# on construction.
|
2897
|
+
#
|
2898
|
+
# @example
|
2899
|
+
#
|
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
|
2907
|
+
#
|
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
|
2913
|
+
#
|
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://googleapis.dev/ruby/googleauth/latest/index.html))
|
2924
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
2925
|
+
# (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
|
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]
|
2954
|
+
#
|
2955
|
+
class Configuration
|
2956
|
+
extend ::Gapic::Config
|
2957
|
+
|
2958
|
+
config_attr :endpoint, "vmwareengine.googleapis.com", ::String
|
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
|
2970
|
+
|
2971
|
+
# @private
|
2972
|
+
# Overrides for http bindings for the RPCs of this service
|
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
|
2977
|
+
|
2978
|
+
# @private
|
2979
|
+
def initialize parent_config = nil
|
2980
|
+
@parent_config = parent_config unless parent_config.nil?
|
2981
|
+
|
2982
|
+
yield self if block_given?
|
2983
|
+
end
|
2984
|
+
|
2985
|
+
##
|
2986
|
+
# Configurations for individual RPCs
|
2987
|
+
# @return [Rpcs]
|
2988
|
+
#
|
2989
|
+
def rpcs
|
2990
|
+
@rpcs ||= begin
|
2991
|
+
parent_rpcs = nil
|
2992
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
2993
|
+
Rpcs.new parent_rpcs
|
2994
|
+
end
|
2995
|
+
end
|
2996
|
+
|
2997
|
+
##
|
2998
|
+
# Configuration RPC class for the VmwareEngine API.
|
2999
|
+
#
|
3000
|
+
# Includes fields providing the configuration for each RPC in this service.
|
3001
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
3002
|
+
# the following configuration fields:
|
3003
|
+
#
|
3004
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
3005
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
|
3006
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
3007
|
+
# include the following keys:
|
3008
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
3009
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
3010
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
3011
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
3012
|
+
# trigger a retry.
|
3013
|
+
#
|
3014
|
+
class Rpcs
|
3015
|
+
##
|
3016
|
+
# RPC-specific configuration for `list_private_clouds`
|
3017
|
+
# @return [::Gapic::Config::Method]
|
3018
|
+
#
|
3019
|
+
attr_reader :list_private_clouds
|
3020
|
+
##
|
3021
|
+
# RPC-specific configuration for `get_private_cloud`
|
3022
|
+
# @return [::Gapic::Config::Method]
|
3023
|
+
#
|
3024
|
+
attr_reader :get_private_cloud
|
3025
|
+
##
|
3026
|
+
# RPC-specific configuration for `create_private_cloud`
|
3027
|
+
# @return [::Gapic::Config::Method]
|
3028
|
+
#
|
3029
|
+
attr_reader :create_private_cloud
|
3030
|
+
##
|
3031
|
+
# RPC-specific configuration for `update_private_cloud`
|
3032
|
+
# @return [::Gapic::Config::Method]
|
3033
|
+
#
|
3034
|
+
attr_reader :update_private_cloud
|
3035
|
+
##
|
3036
|
+
# RPC-specific configuration for `delete_private_cloud`
|
3037
|
+
# @return [::Gapic::Config::Method]
|
3038
|
+
#
|
3039
|
+
attr_reader :delete_private_cloud
|
3040
|
+
##
|
3041
|
+
# RPC-specific configuration for `undelete_private_cloud`
|
3042
|
+
# @return [::Gapic::Config::Method]
|
3043
|
+
#
|
3044
|
+
attr_reader :undelete_private_cloud
|
3045
|
+
##
|
3046
|
+
# RPC-specific configuration for `list_clusters`
|
3047
|
+
# @return [::Gapic::Config::Method]
|
3048
|
+
#
|
3049
|
+
attr_reader :list_clusters
|
3050
|
+
##
|
3051
|
+
# RPC-specific configuration for `get_cluster`
|
3052
|
+
# @return [::Gapic::Config::Method]
|
3053
|
+
#
|
3054
|
+
attr_reader :get_cluster
|
3055
|
+
##
|
3056
|
+
# RPC-specific configuration for `create_cluster`
|
3057
|
+
# @return [::Gapic::Config::Method]
|
3058
|
+
#
|
3059
|
+
attr_reader :create_cluster
|
3060
|
+
##
|
3061
|
+
# RPC-specific configuration for `update_cluster`
|
3062
|
+
# @return [::Gapic::Config::Method]
|
3063
|
+
#
|
3064
|
+
attr_reader :update_cluster
|
3065
|
+
##
|
3066
|
+
# RPC-specific configuration for `delete_cluster`
|
3067
|
+
# @return [::Gapic::Config::Method]
|
3068
|
+
#
|
3069
|
+
attr_reader :delete_cluster
|
3070
|
+
##
|
3071
|
+
# RPC-specific configuration for `list_subnets`
|
3072
|
+
# @return [::Gapic::Config::Method]
|
3073
|
+
#
|
3074
|
+
attr_reader :list_subnets
|
3075
|
+
##
|
3076
|
+
# RPC-specific configuration for `list_node_types`
|
3077
|
+
# @return [::Gapic::Config::Method]
|
3078
|
+
#
|
3079
|
+
attr_reader :list_node_types
|
3080
|
+
##
|
3081
|
+
# RPC-specific configuration for `get_node_type`
|
3082
|
+
# @return [::Gapic::Config::Method]
|
3083
|
+
#
|
3084
|
+
attr_reader :get_node_type
|
3085
|
+
##
|
3086
|
+
# RPC-specific configuration for `show_nsx_credentials`
|
3087
|
+
# @return [::Gapic::Config::Method]
|
3088
|
+
#
|
3089
|
+
attr_reader :show_nsx_credentials
|
3090
|
+
##
|
3091
|
+
# RPC-specific configuration for `show_vcenter_credentials`
|
3092
|
+
# @return [::Gapic::Config::Method]
|
3093
|
+
#
|
3094
|
+
attr_reader :show_vcenter_credentials
|
3095
|
+
##
|
3096
|
+
# RPC-specific configuration for `reset_nsx_credentials`
|
3097
|
+
# @return [::Gapic::Config::Method]
|
3098
|
+
#
|
3099
|
+
attr_reader :reset_nsx_credentials
|
3100
|
+
##
|
3101
|
+
# RPC-specific configuration for `reset_vcenter_credentials`
|
3102
|
+
# @return [::Gapic::Config::Method]
|
3103
|
+
#
|
3104
|
+
attr_reader :reset_vcenter_credentials
|
3105
|
+
##
|
3106
|
+
# RPC-specific configuration for `create_hcx_activation_key`
|
3107
|
+
# @return [::Gapic::Config::Method]
|
3108
|
+
#
|
3109
|
+
attr_reader :create_hcx_activation_key
|
3110
|
+
##
|
3111
|
+
# RPC-specific configuration for `list_hcx_activation_keys`
|
3112
|
+
# @return [::Gapic::Config::Method]
|
3113
|
+
#
|
3114
|
+
attr_reader :list_hcx_activation_keys
|
3115
|
+
##
|
3116
|
+
# RPC-specific configuration for `get_hcx_activation_key`
|
3117
|
+
# @return [::Gapic::Config::Method]
|
3118
|
+
#
|
3119
|
+
attr_reader :get_hcx_activation_key
|
3120
|
+
##
|
3121
|
+
# RPC-specific configuration for `get_network_policy`
|
3122
|
+
# @return [::Gapic::Config::Method]
|
3123
|
+
#
|
3124
|
+
attr_reader :get_network_policy
|
3125
|
+
##
|
3126
|
+
# RPC-specific configuration for `list_network_policies`
|
3127
|
+
# @return [::Gapic::Config::Method]
|
3128
|
+
#
|
3129
|
+
attr_reader :list_network_policies
|
3130
|
+
##
|
3131
|
+
# RPC-specific configuration for `create_network_policy`
|
3132
|
+
# @return [::Gapic::Config::Method]
|
3133
|
+
#
|
3134
|
+
attr_reader :create_network_policy
|
3135
|
+
##
|
3136
|
+
# RPC-specific configuration for `update_network_policy`
|
3137
|
+
# @return [::Gapic::Config::Method]
|
3138
|
+
#
|
3139
|
+
attr_reader :update_network_policy
|
3140
|
+
##
|
3141
|
+
# RPC-specific configuration for `delete_network_policy`
|
3142
|
+
# @return [::Gapic::Config::Method]
|
3143
|
+
#
|
3144
|
+
attr_reader :delete_network_policy
|
3145
|
+
##
|
3146
|
+
# RPC-specific configuration for `create_vmware_engine_network`
|
3147
|
+
# @return [::Gapic::Config::Method]
|
3148
|
+
#
|
3149
|
+
attr_reader :create_vmware_engine_network
|
3150
|
+
##
|
3151
|
+
# RPC-specific configuration for `update_vmware_engine_network`
|
3152
|
+
# @return [::Gapic::Config::Method]
|
3153
|
+
#
|
3154
|
+
attr_reader :update_vmware_engine_network
|
3155
|
+
##
|
3156
|
+
# RPC-specific configuration for `delete_vmware_engine_network`
|
3157
|
+
# @return [::Gapic::Config::Method]
|
3158
|
+
#
|
3159
|
+
attr_reader :delete_vmware_engine_network
|
3160
|
+
##
|
3161
|
+
# RPC-specific configuration for `get_vmware_engine_network`
|
3162
|
+
# @return [::Gapic::Config::Method]
|
3163
|
+
#
|
3164
|
+
attr_reader :get_vmware_engine_network
|
3165
|
+
##
|
3166
|
+
# RPC-specific configuration for `list_vmware_engine_networks`
|
3167
|
+
# @return [::Gapic::Config::Method]
|
3168
|
+
#
|
3169
|
+
attr_reader :list_vmware_engine_networks
|
3170
|
+
|
3171
|
+
# @private
|
3172
|
+
def initialize parent_rpcs = nil
|
3173
|
+
list_private_clouds_config = parent_rpcs.list_private_clouds if parent_rpcs.respond_to? :list_private_clouds
|
3174
|
+
@list_private_clouds = ::Gapic::Config::Method.new list_private_clouds_config
|
3175
|
+
get_private_cloud_config = parent_rpcs.get_private_cloud if parent_rpcs.respond_to? :get_private_cloud
|
3176
|
+
@get_private_cloud = ::Gapic::Config::Method.new get_private_cloud_config
|
3177
|
+
create_private_cloud_config = parent_rpcs.create_private_cloud if parent_rpcs.respond_to? :create_private_cloud
|
3178
|
+
@create_private_cloud = ::Gapic::Config::Method.new create_private_cloud_config
|
3179
|
+
update_private_cloud_config = parent_rpcs.update_private_cloud if parent_rpcs.respond_to? :update_private_cloud
|
3180
|
+
@update_private_cloud = ::Gapic::Config::Method.new update_private_cloud_config
|
3181
|
+
delete_private_cloud_config = parent_rpcs.delete_private_cloud if parent_rpcs.respond_to? :delete_private_cloud
|
3182
|
+
@delete_private_cloud = ::Gapic::Config::Method.new delete_private_cloud_config
|
3183
|
+
undelete_private_cloud_config = parent_rpcs.undelete_private_cloud if parent_rpcs.respond_to? :undelete_private_cloud
|
3184
|
+
@undelete_private_cloud = ::Gapic::Config::Method.new undelete_private_cloud_config
|
3185
|
+
list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters
|
3186
|
+
@list_clusters = ::Gapic::Config::Method.new list_clusters_config
|
3187
|
+
get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
|
3188
|
+
@get_cluster = ::Gapic::Config::Method.new get_cluster_config
|
3189
|
+
create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
|
3190
|
+
@create_cluster = ::Gapic::Config::Method.new create_cluster_config
|
3191
|
+
update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
|
3192
|
+
@update_cluster = ::Gapic::Config::Method.new update_cluster_config
|
3193
|
+
delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
|
3194
|
+
@delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
|
3195
|
+
list_subnets_config = parent_rpcs.list_subnets if parent_rpcs.respond_to? :list_subnets
|
3196
|
+
@list_subnets = ::Gapic::Config::Method.new list_subnets_config
|
3197
|
+
list_node_types_config = parent_rpcs.list_node_types if parent_rpcs.respond_to? :list_node_types
|
3198
|
+
@list_node_types = ::Gapic::Config::Method.new list_node_types_config
|
3199
|
+
get_node_type_config = parent_rpcs.get_node_type if parent_rpcs.respond_to? :get_node_type
|
3200
|
+
@get_node_type = ::Gapic::Config::Method.new get_node_type_config
|
3201
|
+
show_nsx_credentials_config = parent_rpcs.show_nsx_credentials if parent_rpcs.respond_to? :show_nsx_credentials
|
3202
|
+
@show_nsx_credentials = ::Gapic::Config::Method.new show_nsx_credentials_config
|
3203
|
+
show_vcenter_credentials_config = parent_rpcs.show_vcenter_credentials if parent_rpcs.respond_to? :show_vcenter_credentials
|
3204
|
+
@show_vcenter_credentials = ::Gapic::Config::Method.new show_vcenter_credentials_config
|
3205
|
+
reset_nsx_credentials_config = parent_rpcs.reset_nsx_credentials if parent_rpcs.respond_to? :reset_nsx_credentials
|
3206
|
+
@reset_nsx_credentials = ::Gapic::Config::Method.new reset_nsx_credentials_config
|
3207
|
+
reset_vcenter_credentials_config = parent_rpcs.reset_vcenter_credentials if parent_rpcs.respond_to? :reset_vcenter_credentials
|
3208
|
+
@reset_vcenter_credentials = ::Gapic::Config::Method.new reset_vcenter_credentials_config
|
3209
|
+
create_hcx_activation_key_config = parent_rpcs.create_hcx_activation_key if parent_rpcs.respond_to? :create_hcx_activation_key
|
3210
|
+
@create_hcx_activation_key = ::Gapic::Config::Method.new create_hcx_activation_key_config
|
3211
|
+
list_hcx_activation_keys_config = parent_rpcs.list_hcx_activation_keys if parent_rpcs.respond_to? :list_hcx_activation_keys
|
3212
|
+
@list_hcx_activation_keys = ::Gapic::Config::Method.new list_hcx_activation_keys_config
|
3213
|
+
get_hcx_activation_key_config = parent_rpcs.get_hcx_activation_key if parent_rpcs.respond_to? :get_hcx_activation_key
|
3214
|
+
@get_hcx_activation_key = ::Gapic::Config::Method.new get_hcx_activation_key_config
|
3215
|
+
get_network_policy_config = parent_rpcs.get_network_policy if parent_rpcs.respond_to? :get_network_policy
|
3216
|
+
@get_network_policy = ::Gapic::Config::Method.new get_network_policy_config
|
3217
|
+
list_network_policies_config = parent_rpcs.list_network_policies if parent_rpcs.respond_to? :list_network_policies
|
3218
|
+
@list_network_policies = ::Gapic::Config::Method.new list_network_policies_config
|
3219
|
+
create_network_policy_config = parent_rpcs.create_network_policy if parent_rpcs.respond_to? :create_network_policy
|
3220
|
+
@create_network_policy = ::Gapic::Config::Method.new create_network_policy_config
|
3221
|
+
update_network_policy_config = parent_rpcs.update_network_policy if parent_rpcs.respond_to? :update_network_policy
|
3222
|
+
@update_network_policy = ::Gapic::Config::Method.new update_network_policy_config
|
3223
|
+
delete_network_policy_config = parent_rpcs.delete_network_policy if parent_rpcs.respond_to? :delete_network_policy
|
3224
|
+
@delete_network_policy = ::Gapic::Config::Method.new delete_network_policy_config
|
3225
|
+
create_vmware_engine_network_config = parent_rpcs.create_vmware_engine_network if parent_rpcs.respond_to? :create_vmware_engine_network
|
3226
|
+
@create_vmware_engine_network = ::Gapic::Config::Method.new create_vmware_engine_network_config
|
3227
|
+
update_vmware_engine_network_config = parent_rpcs.update_vmware_engine_network if parent_rpcs.respond_to? :update_vmware_engine_network
|
3228
|
+
@update_vmware_engine_network = ::Gapic::Config::Method.new update_vmware_engine_network_config
|
3229
|
+
delete_vmware_engine_network_config = parent_rpcs.delete_vmware_engine_network if parent_rpcs.respond_to? :delete_vmware_engine_network
|
3230
|
+
@delete_vmware_engine_network = ::Gapic::Config::Method.new delete_vmware_engine_network_config
|
3231
|
+
get_vmware_engine_network_config = parent_rpcs.get_vmware_engine_network if parent_rpcs.respond_to? :get_vmware_engine_network
|
3232
|
+
@get_vmware_engine_network = ::Gapic::Config::Method.new get_vmware_engine_network_config
|
3233
|
+
list_vmware_engine_networks_config = parent_rpcs.list_vmware_engine_networks if parent_rpcs.respond_to? :list_vmware_engine_networks
|
3234
|
+
@list_vmware_engine_networks = ::Gapic::Config::Method.new list_vmware_engine_networks_config
|
3235
|
+
|
3236
|
+
yield self if block_given?
|
3237
|
+
end
|
3238
|
+
end
|
3239
|
+
end
|
3240
|
+
end
|
3241
|
+
end
|
3242
|
+
end
|
3243
|
+
end
|
3244
|
+
end
|
3245
|
+
end
|
3246
|
+
end
|