google-apis-vmwareengine_v1 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,6 +33,8 @@ module Google
33
33
  #
34
34
  # @see https://cloud.google.com/solutions/vmware-as-a-service
35
35
  class VMwareEngineService < Google::Apis::Core::BaseService
36
+ DEFAULT_ENDPOINT_TEMPLATE = "https://vmwareengine.$UNIVERSE_DOMAIN$/"
37
+
36
38
  # @return [String]
37
39
  # API key. Your API key identifies your project and provides you with API access,
38
40
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -44,7 +46,7 @@ module Google
44
46
  attr_accessor :quota_user
45
47
 
46
48
  def initialize
47
- super('https://vmwareengine.googleapis.com/', '',
49
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
48
50
  client_name: 'google-apis-vmwareengine_v1',
49
51
  client_version: Google::Apis::VmwareengineV1::GEM_VERSION)
50
52
  @batch_path = 'batch'
@@ -80,6 +82,43 @@ module Google
80
82
  execute_or_queue_command(command, &block)
81
83
  end
82
84
 
85
+ # Gets all the principals having bind permission on the intranet VPC associated
86
+ # with the consumer project granted by the Grant API. DnsBindPermission is a
87
+ # global resource and location can only be global.
88
+ # @param [String] name
89
+ # Required. The name of the resource which stores the users/service accounts
90
+ # having the permission to bind to the corresponding intranet VPC of the
91
+ # consumer project. DnsBindPermission is a global resource. Resource names are
92
+ # schemeless URIs that follow the conventions in https://cloud.google.com/apis/
93
+ # design/resource_names. For example: `projects/my-project/locations/global/
94
+ # dnsBindPermission`
95
+ # @param [String] fields
96
+ # Selector specifying which fields to include in a partial response.
97
+ # @param [String] quota_user
98
+ # Available to use for quota purposes for server-side applications. Can be any
99
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
100
+ # @param [Google::Apis::RequestOptions] options
101
+ # Request-specific options
102
+ #
103
+ # @yield [result, err] Result & error if block supplied
104
+ # @yieldparam result [Google::Apis::VmwareengineV1::DnsBindPermission] parsed result object
105
+ # @yieldparam err [StandardError] error object if request failed
106
+ #
107
+ # @return [Google::Apis::VmwareengineV1::DnsBindPermission]
108
+ #
109
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
110
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
111
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
112
+ def get_project_location_dns_bind_permission(name, fields: nil, quota_user: nil, options: nil, &block)
113
+ command = make_simple_command(:get, 'v1/{+name}', options)
114
+ command.response_representation = Google::Apis::VmwareengineV1::DnsBindPermission::Representation
115
+ command.response_class = Google::Apis::VmwareengineV1::DnsBindPermission
116
+ command.params['name'] = name unless name.nil?
117
+ command.query['fields'] = fields unless fields.nil?
118
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
119
+ execute_or_queue_command(command, &block)
120
+ end
121
+
83
122
  # Lists information about the supported locations for this service.
84
123
  # @param [String] name
85
124
  # The resource that owns the locations collection, if applicable.
@@ -123,23 +162,105 @@ module Google
123
162
  execute_or_queue_command(command, &block)
124
163
  end
125
164
 
126
- # Creates a new network policy in a given VMware Engine network of a project and
127
- # location (region). A new network policy cannot be created if another network
128
- # policy already exists in the same scope.
165
+ # Grants the bind permission to the customer provided principal(user / service
166
+ # account) to bind their DNS zone with the intranet VPC associated with the
167
+ # project. DnsBindPermission is a global resource and location can only be
168
+ # global.
169
+ # @param [String] name
170
+ # Required. The name of the resource which stores the users/service accounts
171
+ # having the permission to bind to the corresponding intranet VPC of the
172
+ # consumer project. DnsBindPermission is a global resource. Resource names are
173
+ # schemeless URIs that follow the conventions in https://cloud.google.com/apis/
174
+ # design/resource_names. For example: `projects/my-project/locations/global/
175
+ # dnsBindPermission`
176
+ # @param [Google::Apis::VmwareengineV1::GrantDnsBindPermissionRequest] grant_dns_bind_permission_request_object
177
+ # @param [String] fields
178
+ # Selector specifying which fields to include in a partial response.
179
+ # @param [String] quota_user
180
+ # Available to use for quota purposes for server-side applications. Can be any
181
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
182
+ # @param [Google::Apis::RequestOptions] options
183
+ # Request-specific options
184
+ #
185
+ # @yield [result, err] Result & error if block supplied
186
+ # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
187
+ # @yieldparam err [StandardError] error object if request failed
188
+ #
189
+ # @return [Google::Apis::VmwareengineV1::Operation]
190
+ #
191
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
192
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
193
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
194
+ def grant_dns_bind_permission(name, grant_dns_bind_permission_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
195
+ command = make_simple_command(:post, 'v1/{+name}:grant', options)
196
+ command.request_representation = Google::Apis::VmwareengineV1::GrantDnsBindPermissionRequest::Representation
197
+ command.request_object = grant_dns_bind_permission_request_object
198
+ command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
199
+ command.response_class = Google::Apis::VmwareengineV1::Operation
200
+ command.params['name'] = name unless name.nil?
201
+ command.query['fields'] = fields unless fields.nil?
202
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
203
+ execute_or_queue_command(command, &block)
204
+ end
205
+
206
+ # Revokes the bind permission from the customer provided principal(user /
207
+ # service account) on the intranet VPC associated with the consumer project.
208
+ # DnsBindPermission is a global resource and location can only be global.
209
+ # @param [String] name
210
+ # Required. The name of the resource which stores the users/service accounts
211
+ # having the permission to bind to the corresponding intranet VPC of the
212
+ # consumer project. DnsBindPermission is a global resource. Resource names are
213
+ # schemeless URIs that follow the conventions in https://cloud.google.com/apis/
214
+ # design/resource_names. For example: `projects/my-project/locations/global/
215
+ # dnsBindPermission`
216
+ # @param [Google::Apis::VmwareengineV1::RevokeDnsBindPermissionRequest] revoke_dns_bind_permission_request_object
217
+ # @param [String] fields
218
+ # Selector specifying which fields to include in a partial response.
219
+ # @param [String] quota_user
220
+ # Available to use for quota purposes for server-side applications. Can be any
221
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
222
+ # @param [Google::Apis::RequestOptions] options
223
+ # Request-specific options
224
+ #
225
+ # @yield [result, err] Result & error if block supplied
226
+ # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
227
+ # @yieldparam err [StandardError] error object if request failed
228
+ #
229
+ # @return [Google::Apis::VmwareengineV1::Operation]
230
+ #
231
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
232
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
233
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
234
+ def revoke_dns_bind_permission(name, revoke_dns_bind_permission_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
235
+ command = make_simple_command(:post, 'v1/{+name}:revoke', options)
236
+ command.request_representation = Google::Apis::VmwareengineV1::RevokeDnsBindPermissionRequest::Representation
237
+ command.request_object = revoke_dns_bind_permission_request_object
238
+ command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
239
+ command.response_class = Google::Apis::VmwareengineV1::Operation
240
+ command.params['name'] = name unless name.nil?
241
+ command.query['fields'] = fields unless fields.nil?
242
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
243
+ execute_or_queue_command(command, &block)
244
+ end
245
+
246
+ # Creates a new network peering between the peer network and VMware Engine
247
+ # network provided in a `NetworkPeering` resource. NetworkPeering is a global
248
+ # resource and location can only be global.
129
249
  # @param [String] parent
130
- # Required. The resource name of the location (region) to create the new network
131
- # policy in. Resource names are schemeless URIs that follow the conventions in
250
+ # Required. The resource name of the location to create the new network peering
251
+ # in. This value is always `global`, because `NetworkPeering` is a global
252
+ # resource. Resource names are schemeless URIs that follow the conventions in
132
253
  # https://cloud.google.com/apis/design/resource_names. For example: `projects/my-
133
- # project/locations/us-central1`
134
- # @param [Google::Apis::VmwareengineV1::NetworkPolicy] network_policy_object
135
- # @param [String] network_policy_id
136
- # Required. The user-provided identifier of the network policy to be created.
137
- # This identifier must be unique within parent `projects/`my-project`/locations/`
138
- # us-central1`/networkPolicies` and becomes the final token in the name URI. The
139
- # identifier must meet the following requirements: * Only contains 1-63
140
- # alphanumeric characters and hyphens * Begins with an alphabetical character *
141
- # Ends with a non-hyphen character * Not formatted as a UUID * Complies with [
142
- # RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
254
+ # project/locations/global`
255
+ # @param [Google::Apis::VmwareengineV1::NetworkPeering] network_peering_object
256
+ # @param [String] network_peering_id
257
+ # Required. The user-provided identifier of the new `NetworkPeering`. This
258
+ # identifier must be unique among `NetworkPeering` resources within the parent
259
+ # and becomes the final token in the name URI. The identifier must meet the
260
+ # following requirements: * Only contains 1-63 alphanumeric characters and
261
+ # hyphens * Begins with an alphabetical character * Ends with a non-hyphen
262
+ # character * Not formatted as a UUID * Complies with [RFC 1034](https://
263
+ # datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
143
264
  # @param [String] request_id
144
265
  # Optional. A request ID to identify requests. Specify a unique request ID so
145
266
  # that if you must retry your request, the server will know to ignore the
@@ -169,28 +290,29 @@ module Google
169
290
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
170
291
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
171
292
  # @raise [Google::Apis::AuthorizationError] Authorization is required
172
- def create_project_location_network_policy(parent, network_policy_object = nil, network_policy_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
173
- command = make_simple_command(:post, 'v1/{+parent}/networkPolicies', options)
174
- command.request_representation = Google::Apis::VmwareengineV1::NetworkPolicy::Representation
175
- command.request_object = network_policy_object
293
+ def create_project_location_network_peering(parent, network_peering_object = nil, network_peering_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
294
+ command = make_simple_command(:post, 'v1/{+parent}/networkPeerings', options)
295
+ command.request_representation = Google::Apis::VmwareengineV1::NetworkPeering::Representation
296
+ command.request_object = network_peering_object
176
297
  command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
177
298
  command.response_class = Google::Apis::VmwareengineV1::Operation
178
299
  command.params['parent'] = parent unless parent.nil?
179
- command.query['networkPolicyId'] = network_policy_id unless network_policy_id.nil?
300
+ command.query['networkPeeringId'] = network_peering_id unless network_peering_id.nil?
180
301
  command.query['requestId'] = request_id unless request_id.nil?
181
302
  command.query['fields'] = fields unless fields.nil?
182
303
  command.query['quotaUser'] = quota_user unless quota_user.nil?
183
304
  execute_or_queue_command(command, &block)
184
305
  end
185
306
 
186
- # Deletes a `NetworkPolicy` resource. A network policy cannot be deleted when `
187
- # NetworkService.state` is set to `RECONCILING` for either its external IP or
188
- # internet access service.
307
+ # Deletes a `NetworkPeering` resource. When a network peering is deleted for a
308
+ # VMware Engine network, the peer network becomes inaccessible to that VMware
309
+ # Engine network. NetworkPeering is a global resource and location can only be
310
+ # global.
189
311
  # @param [String] name
190
- # Required. The resource name of the network policy to delete. Resource names
191
- # are schemeless URIs that follow the conventions in https://cloud.google.com/
192
- # apis/design/resource_names. For example: `projects/my-project/locations/us-
193
- # central1/networkPolicies/my-network-policy`
312
+ # Required. The resource name of the network peering to be deleted. Resource
313
+ # names are schemeless URIs that follow the conventions in https://cloud.google.
314
+ # com/apis/design/resource_names. For example: `projects/my-project/locations/
315
+ # global/networkPeerings/my-peering`
194
316
  # @param [String] request_id
195
317
  # Optional. A request ID to identify requests. Specify a unique request ID so
196
318
  # that if you must retry your request, the server will know to ignore the
@@ -220,7 +342,7 @@ module Google
220
342
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
221
343
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
222
344
  # @raise [Google::Apis::AuthorizationError] Authorization is required
223
- def delete_project_location_network_policy(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
345
+ def delete_project_location_network_peering(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
224
346
  command = make_simple_command(:delete, 'v1/{+name}', options)
225
347
  command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
226
348
  command.response_class = Google::Apis::VmwareengineV1::Operation
@@ -231,12 +353,15 @@ module Google
231
353
  execute_or_queue_command(command, &block)
232
354
  end
233
355
 
234
- # Retrieves a `NetworkPolicy` resource by its resource name.
356
+ # Retrieves a `NetworkPeering` resource by its resource name. The resource
357
+ # contains details of the network peering, such as peered networks, import and
358
+ # export custom route configurations, and peering state. NetworkPeering is a
359
+ # global resource and location can only be global.
235
360
  # @param [String] name
236
- # Required. The resource name of the network policy to retrieve. Resource names
361
+ # Required. The resource name of the network peering to retrieve. Resource names
237
362
  # are schemeless URIs that follow the conventions in https://cloud.google.com/
238
- # apis/design/resource_names. For example: `projects/my-project/locations/us-
239
- # central1/networkPolicies/my-network-policy`
363
+ # apis/design/resource_names. For example: `projects/my-project/locations/global/
364
+ # networkPeerings/my-peering`
240
365
  # @param [String] fields
241
366
  # Selector specifying which fields to include in a partial response.
242
367
  # @param [String] quota_user
@@ -246,56 +371,56 @@ module Google
246
371
  # Request-specific options
247
372
  #
248
373
  # @yield [result, err] Result & error if block supplied
249
- # @yieldparam result [Google::Apis::VmwareengineV1::NetworkPolicy] parsed result object
374
+ # @yieldparam result [Google::Apis::VmwareengineV1::NetworkPeering] parsed result object
250
375
  # @yieldparam err [StandardError] error object if request failed
251
376
  #
252
- # @return [Google::Apis::VmwareengineV1::NetworkPolicy]
377
+ # @return [Google::Apis::VmwareengineV1::NetworkPeering]
253
378
  #
254
379
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
255
380
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
256
381
  # @raise [Google::Apis::AuthorizationError] Authorization is required
257
- def get_project_location_network_policy(name, fields: nil, quota_user: nil, options: nil, &block)
382
+ def get_project_location_network_peering(name, fields: nil, quota_user: nil, options: nil, &block)
258
383
  command = make_simple_command(:get, 'v1/{+name}', options)
259
- command.response_representation = Google::Apis::VmwareengineV1::NetworkPolicy::Representation
260
- command.response_class = Google::Apis::VmwareengineV1::NetworkPolicy
384
+ command.response_representation = Google::Apis::VmwareengineV1::NetworkPeering::Representation
385
+ command.response_class = Google::Apis::VmwareengineV1::NetworkPeering
261
386
  command.params['name'] = name unless name.nil?
262
387
  command.query['fields'] = fields unless fields.nil?
263
388
  command.query['quotaUser'] = quota_user unless quota_user.nil?
264
389
  execute_or_queue_command(command, &block)
265
390
  end
266
391
 
267
- # Lists `NetworkPolicy` resources in a specified project and location.
392
+ # Lists `NetworkPeering` resources in a given project. NetworkPeering is a
393
+ # global resource and location can only be global.
268
394
  # @param [String] parent
269
- # Required. The resource name of the location (region) to query for network
270
- # policies. Resource names are schemeless URIs that follow the conventions in
395
+ # Required. The resource name of the location (global) to query for network
396
+ # peerings. Resource names are schemeless URIs that follow the conventions in
271
397
  # https://cloud.google.com/apis/design/resource_names. For example: `projects/my-
272
- # project/locations/us-central1`
398
+ # project/locations/global`
273
399
  # @param [String] filter
274
400
  # A filter expression that matches resources returned in the response. The
275
401
  # expression must specify the field name, a comparison operator, and the value
276
402
  # that you want to use for filtering. The value must be a string, a number, or a
277
403
  # boolean. The comparison operator must be `=`, `!=`, `>`, or `<`. For example,
278
- # if you are filtering a list of network policies, you can exclude the ones
279
- # named `example-policy` by specifying `name != "example-policy"`. To filter on
280
- # multiple expressions, provide each separate expression within parentheses. For
281
- # example: ``` (name = "example-policy") (createTime > "2021-04-12T08:15:10.40Z")
282
- # ``` By default, each expression is an `AND` expression. However, you can
404
+ # if you are filtering a list of network peerings, you can exclude the ones
405
+ # named `example-peering` by specifying `name != "example-peering"`. To filter
406
+ # on multiple expressions, provide each separate expression within parentheses.
407
+ # For example: ``` (name = "example-peering") (createTime > "2021-04-12T08:15:10.
408
+ # 40Z") ``` By default, each expression is an `AND` expression. However, you can
283
409
  # include `AND` and `OR` expressions explicitly. For example: ``` (name = "
284
- # example-policy-1") AND (createTime > "2021-04-12T08:15:10.40Z") OR (name = "
285
- # example-policy-2") ```
410
+ # example-peering-1") AND (createTime > "2021-04-12T08:15:10.40Z") OR (name = "
411
+ # example-peering-2") ```
286
412
  # @param [String] order_by
287
413
  # Sorts list results by a certain order. By default, returned results are
288
414
  # ordered by `name` in ascending order. You can also sort results in descending
289
415
  # order based on the `name` value using `orderBy="name desc"`. Currently, only
290
416
  # ordering by `name` is supported.
291
417
  # @param [Fixnum] page_size
292
- # The maximum number of network policies to return in one page. The service may
293
- # return fewer than this value. The maximum value is coerced to 1000. The
294
- # default value of this field is 500.
418
+ # The maximum number of network peerings to return in one page. The maximum
419
+ # value is coerced to 1000. The default value of this field is 500.
295
420
  # @param [String] page_token
296
- # A page token, received from a previous `ListNetworkPolicies` call. Provide
421
+ # A page token, received from a previous `ListNetworkPeerings` call. Provide
297
422
  # this to retrieve the subsequent page. When paginating, all other parameters
298
- # provided to `ListNetworkPolicies` must match the call that provided the page
423
+ # provided to `ListNetworkPeerings` must match the call that provided the page
299
424
  # token.
300
425
  # @param [String] fields
301
426
  # Selector specifying which fields to include in a partial response.
@@ -306,18 +431,18 @@ module Google
306
431
  # Request-specific options
307
432
  #
308
433
  # @yield [result, err] Result & error if block supplied
309
- # @yieldparam result [Google::Apis::VmwareengineV1::ListNetworkPoliciesResponse] parsed result object
434
+ # @yieldparam result [Google::Apis::VmwareengineV1::ListNetworkPeeringsResponse] parsed result object
310
435
  # @yieldparam err [StandardError] error object if request failed
311
436
  #
312
- # @return [Google::Apis::VmwareengineV1::ListNetworkPoliciesResponse]
437
+ # @return [Google::Apis::VmwareengineV1::ListNetworkPeeringsResponse]
313
438
  #
314
439
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
315
440
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
316
441
  # @raise [Google::Apis::AuthorizationError] Authorization is required
317
- def list_project_location_network_policies(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
318
- command = make_simple_command(:get, 'v1/{+parent}/networkPolicies', options)
319
- command.response_representation = Google::Apis::VmwareengineV1::ListNetworkPoliciesResponse::Representation
320
- command.response_class = Google::Apis::VmwareengineV1::ListNetworkPoliciesResponse
442
+ def list_project_location_network_peerings(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
443
+ command = make_simple_command(:get, 'v1/{+parent}/networkPeerings', options)
444
+ command.response_representation = Google::Apis::VmwareengineV1::ListNetworkPeeringsResponse::Representation
445
+ command.response_class = Google::Apis::VmwareengineV1::ListNetworkPeeringsResponse
321
446
  command.params['parent'] = parent unless parent.nil?
322
447
  command.query['filter'] = filter unless filter.nil?
323
448
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -328,22 +453,16 @@ module Google
328
453
  execute_or_queue_command(command, &block)
329
454
  end
330
455
 
331
- # Modifies a `NetworkPolicy` resource. Only the following fields can be updated:
332
- # `internet_access`, `external_ip`, `edge_services_cidr`. Only fields specified
333
- # in `updateMask` are applied. When updating a network policy, the external IP
334
- # network service can only be disabled if there are no external IP addresses
335
- # present in the scope of the policy. Also, a `NetworkService` cannot be updated
336
- # when `NetworkService.state` is set to `RECONCILING`. During operation
337
- # processing, the resource is temporarily in the `ACTIVE` state before the
338
- # operation fully completes. For that period of time, you can't update the
339
- # resource. Use the operation status to determine when the processing fully
340
- # completes.
456
+ # Modifies a `NetworkPeering` resource. Only the `description` field can be
457
+ # updated. Only fields specified in `updateMask` are applied. NetworkPeering is
458
+ # a global resource and location can only be global.
341
459
  # @param [String] name
342
- # Output only. The resource name of this network policy. Resource names are
343
- # schemeless URIs that follow the conventions in https://cloud.google.com/apis/
344
- # design/resource_names. For example: `projects/my-project/locations/us-central1/
345
- # networkPolicies/my-network-policy`
346
- # @param [Google::Apis::VmwareengineV1::NetworkPolicy] network_policy_object
460
+ # Output only. The resource name of the network peering. NetworkPeering is a
461
+ # global resource and location can only be global. Resource names are scheme-
462
+ # less URIs that follow the conventions in https://cloud.google.com/apis/design/
463
+ # resource_names. For example: `projects/my-project/locations/global/
464
+ # networkPeerings/my-peering`
465
+ # @param [Google::Apis::VmwareengineV1::NetworkPeering] network_peering_object
347
466
  # @param [String] request_id
348
467
  # Optional. A request ID to identify requests. Specify a unique request ID so
349
468
  # that if you must retry your request, the server will know to ignore the
@@ -358,7 +477,7 @@ module Google
358
477
  # 0000-000000000000).
359
478
  # @param [String] update_mask
360
479
  # Required. Field mask is used to specify the fields to be overwritten in the `
361
- # NetworkPolicy` resource by the update. The fields specified in the `
480
+ # NetworkPeering` resource by the update. The fields specified in the `
362
481
  # update_mask` are relative to the resource, not the full request. A field will
363
482
  # be overwritten if it is in the mask. If the user does not provide a mask then
364
483
  # all fields will be overwritten.
@@ -379,10 +498,10 @@ module Google
379
498
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
380
499
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
381
500
  # @raise [Google::Apis::AuthorizationError] Authorization is required
382
- def patch_project_location_network_policy(name, network_policy_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
501
+ def patch_project_location_network_peering(name, network_peering_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
383
502
  command = make_simple_command(:patch, 'v1/{+name}', options)
384
- command.request_representation = Google::Apis::VmwareengineV1::NetworkPolicy::Representation
385
- command.request_object = network_policy_object
503
+ command.request_representation = Google::Apis::VmwareengineV1::NetworkPeering::Representation
504
+ command.request_object = network_peering_object
386
505
  command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
387
506
  command.response_class = Google::Apis::VmwareengineV1::Operation
388
507
  command.params['name'] = name unless name.nil?
@@ -393,12 +512,28 @@ module Google
393
512
  execute_or_queue_command(command, &block)
394
513
  end
395
514
 
396
- # Gets details of a single `NodeType`.
397
- # @param [String] name
398
- # Required. The resource name of the node type to retrieve. Resource names are
399
- # schemeless URIs that follow the conventions in https://cloud.google.com/apis/
400
- # design/resource_names. For example: `projects/my-proj/locations/us-central1-a/
401
- # nodeTypes/standard-72`
515
+ # Lists the network peering routes exchanged over a peering connection.
516
+ # NetworkPeering is a global resource and location can only be global.
517
+ # @param [String] parent
518
+ # Required. The resource name of the network peering to retrieve peering routes
519
+ # from. Resource names are schemeless URIs that follow the conventions in https:/
520
+ # /cloud.google.com/apis/design/resource_names. For example: `projects/my-
521
+ # project/locations/global/networkPeerings/my-peering`
522
+ # @param [String] filter
523
+ # A filter expression that matches resources returned in the response. Currently,
524
+ # only filtering on the `direction` field is supported. To return routes
525
+ # imported from the peer network, provide "direction=INCOMING". To return routes
526
+ # exported from the VMware Engine network, provide "direction=OUTGOING". Other
527
+ # filter expressions return an error.
528
+ # @param [Fixnum] page_size
529
+ # The maximum number of peering routes to return in one page. The service may
530
+ # return fewer than this value. The maximum value is coerced to 1000. The
531
+ # default value of this field is 500.
532
+ # @param [String] page_token
533
+ # A page token, received from a previous `ListPeeringRoutes` call. Provide this
534
+ # to retrieve the subsequent page. When paginating, all other parameters
535
+ # provided to `ListPeeringRoutes` must match the call that provided the page
536
+ # token.
402
537
  # @param [String] fields
403
538
  # Selector specifying which fields to include in a partial response.
404
539
  # @param [String] quota_user
@@ -408,50 +543,56 @@ module Google
408
543
  # Request-specific options
409
544
  #
410
545
  # @yield [result, err] Result & error if block supplied
411
- # @yieldparam result [Google::Apis::VmwareengineV1::NodeType] parsed result object
546
+ # @yieldparam result [Google::Apis::VmwareengineV1::ListPeeringRoutesResponse] parsed result object
412
547
  # @yieldparam err [StandardError] error object if request failed
413
548
  #
414
- # @return [Google::Apis::VmwareengineV1::NodeType]
549
+ # @return [Google::Apis::VmwareengineV1::ListPeeringRoutesResponse]
415
550
  #
416
551
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
417
552
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
418
553
  # @raise [Google::Apis::AuthorizationError] Authorization is required
419
- def get_project_location_node_type(name, fields: nil, quota_user: nil, options: nil, &block)
420
- command = make_simple_command(:get, 'v1/{+name}', options)
421
- command.response_representation = Google::Apis::VmwareengineV1::NodeType::Representation
422
- command.response_class = Google::Apis::VmwareengineV1::NodeType
423
- command.params['name'] = name unless name.nil?
554
+ def list_project_location_network_peering_peering_routes(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
555
+ command = make_simple_command(:get, 'v1/{+parent}/peeringRoutes', options)
556
+ command.response_representation = Google::Apis::VmwareengineV1::ListPeeringRoutesResponse::Representation
557
+ command.response_class = Google::Apis::VmwareengineV1::ListPeeringRoutesResponse
558
+ command.params['parent'] = parent unless parent.nil?
559
+ command.query['filter'] = filter unless filter.nil?
560
+ command.query['pageSize'] = page_size unless page_size.nil?
561
+ command.query['pageToken'] = page_token unless page_token.nil?
424
562
  command.query['fields'] = fields unless fields.nil?
425
563
  command.query['quotaUser'] = quota_user unless quota_user.nil?
426
564
  execute_or_queue_command(command, &block)
427
565
  end
428
566
 
429
- # Lists node types
567
+ # Creates a new network policy in a given VMware Engine network of a project and
568
+ # location (region). A new network policy cannot be created if another network
569
+ # policy already exists in the same scope.
430
570
  # @param [String] parent
431
- # Required. The resource name of the location to be queried for node types.
432
- # Resource names are schemeless URIs that follow the conventions in https://
433
- # cloud.google.com/apis/design/resource_names. For example: `projects/my-project/
434
- # locations/us-central1-a`
435
- # @param [String] filter
436
- # A filter expression that matches resources returned in the response. The
437
- # expression must specify the field name, a comparison operator, and the value
438
- # that you want to use for filtering. The value must be a string, a number, or a
439
- # boolean. The comparison operator must be `=`, `!=`, `>`, or `<`. For example,
440
- # if you are filtering a list of node types, you can exclude the ones named `
441
- # standard-72` by specifying `name != "standard-72"`. To filter on multiple
442
- # expressions, provide each separate expression within parentheses. For example:
443
- # ``` (name = "standard-72") (virtual_cpu_count > 2) ``` By default, each
444
- # expression is an `AND` expression. However, you can include `AND` and `OR`
445
- # expressions explicitly. For example: ``` (name = "standard-96") AND (
446
- # virtual_cpu_count > 2) OR (name = "standard-72") ```
447
- # @param [Fixnum] page_size
448
- # The maximum number of node types to return in one page. The service may return
449
- # fewer than this value. The maximum value is coerced to 1000. The default value
450
- # of this field is 500.
451
- # @param [String] page_token
452
- # A page token, received from a previous `ListNodeTypes` call. Provide this to
453
- # retrieve the subsequent page. When paginating, all other parameters provided
454
- # to `ListNodeTypes` must match the call that provided the page token.
571
+ # Required. The resource name of the location (region) to create the new network
572
+ # policy in. Resource names are schemeless URIs that follow the conventions in
573
+ # https://cloud.google.com/apis/design/resource_names. For example: `projects/my-
574
+ # project/locations/us-central1`
575
+ # @param [Google::Apis::VmwareengineV1::NetworkPolicy] network_policy_object
576
+ # @param [String] network_policy_id
577
+ # Required. The user-provided identifier of the network policy to be created.
578
+ # This identifier must be unique within parent `projects/`my-project`/locations/`
579
+ # us-central1`/networkPolicies` and becomes the final token in the name URI. The
580
+ # identifier must meet the following requirements: * Only contains 1-63
581
+ # alphanumeric characters and hyphens * Begins with an alphabetical character *
582
+ # Ends with a non-hyphen character * Not formatted as a UUID * Complies with [
583
+ # RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
584
+ # @param [String] request_id
585
+ # Optional. A request ID to identify requests. Specify a unique request ID so
586
+ # that if you must retry your request, the server will know to ignore the
587
+ # request if it has already been completed. The server guarantees that a request
588
+ # doesn't result in creation of duplicate commitments for at least 60 minutes.
589
+ # For example, consider a situation where you make an initial request and the
590
+ # request times out. If you make the request again with the same request ID, the
591
+ # server can check if original operation with the same request ID was received,
592
+ # and if so, will ignore the second request. This prevents clients from
593
+ # accidentally creating duplicate commitments. The request ID must be a valid
594
+ # UUID with the exception that zero UUID is not supported (00000000-0000-0000-
595
+ # 0000-000000000000).
455
596
  # @param [String] fields
456
597
  # Selector specifying which fields to include in a partial response.
457
598
  # @param [String] quota_user
@@ -461,33 +602,48 @@ module Google
461
602
  # Request-specific options
462
603
  #
463
604
  # @yield [result, err] Result & error if block supplied
464
- # @yieldparam result [Google::Apis::VmwareengineV1::ListNodeTypesResponse] parsed result object
605
+ # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
465
606
  # @yieldparam err [StandardError] error object if request failed
466
607
  #
467
- # @return [Google::Apis::VmwareengineV1::ListNodeTypesResponse]
608
+ # @return [Google::Apis::VmwareengineV1::Operation]
468
609
  #
469
610
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
470
611
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
471
612
  # @raise [Google::Apis::AuthorizationError] Authorization is required
472
- def list_project_location_node_types(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
473
- command = make_simple_command(:get, 'v1/{+parent}/nodeTypes', options)
474
- command.response_representation = Google::Apis::VmwareengineV1::ListNodeTypesResponse::Representation
475
- command.response_class = Google::Apis::VmwareengineV1::ListNodeTypesResponse
613
+ def create_project_location_network_policy(parent, network_policy_object = nil, network_policy_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
614
+ command = make_simple_command(:post, 'v1/{+parent}/networkPolicies', options)
615
+ command.request_representation = Google::Apis::VmwareengineV1::NetworkPolicy::Representation
616
+ command.request_object = network_policy_object
617
+ command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
618
+ command.response_class = Google::Apis::VmwareengineV1::Operation
476
619
  command.params['parent'] = parent unless parent.nil?
477
- command.query['filter'] = filter unless filter.nil?
478
- command.query['pageSize'] = page_size unless page_size.nil?
479
- command.query['pageToken'] = page_token unless page_token.nil?
620
+ command.query['networkPolicyId'] = network_policy_id unless network_policy_id.nil?
621
+ command.query['requestId'] = request_id unless request_id.nil?
480
622
  command.query['fields'] = fields unless fields.nil?
481
623
  command.query['quotaUser'] = quota_user unless quota_user.nil?
482
624
  execute_or_queue_command(command, &block)
483
625
  end
484
626
 
485
- # Deletes a long-running operation. This method indicates that the client is no
486
- # longer interested in the operation result. It does not cancel the operation.
487
- # If the server doesn't support this method, it returns `google.rpc.Code.
488
- # UNIMPLEMENTED`.
627
+ # Deletes a `NetworkPolicy` resource. A network policy cannot be deleted when `
628
+ # NetworkService.state` is set to `RECONCILING` for either its external IP or
629
+ # internet access service.
489
630
  # @param [String] name
490
- # The name of the operation resource to be deleted.
631
+ # Required. The resource name of the network policy to delete. Resource names
632
+ # are schemeless URIs that follow the conventions in https://cloud.google.com/
633
+ # apis/design/resource_names. For example: `projects/my-project/locations/us-
634
+ # central1/networkPolicies/my-network-policy`
635
+ # @param [String] request_id
636
+ # Optional. A request ID to identify requests. Specify a unique request ID so
637
+ # that if you must retry your request, the server will know to ignore the
638
+ # request if it has already been completed. The server guarantees that a request
639
+ # doesn't result in creation of duplicate commitments for at least 60 minutes.
640
+ # For example, consider a situation where you make an initial request and the
641
+ # request times out. If you make the request again with the same request ID, the
642
+ # server can check if original operation with the same request ID was received,
643
+ # and if so, will ignore the second request. This prevents clients from
644
+ # accidentally creating duplicate commitments. The request ID must be a valid
645
+ # UUID with the exception that zero UUID is not supported (00000000-0000-0000-
646
+ # 0000-000000000000).
491
647
  # @param [String] fields
492
648
  # Selector specifying which fields to include in a partial response.
493
649
  # @param [String] quota_user
@@ -497,28 +653,76 @@ module Google
497
653
  # Request-specific options
498
654
  #
499
655
  # @yield [result, err] Result & error if block supplied
500
- # @yieldparam result [Google::Apis::VmwareengineV1::Empty] parsed result object
656
+ # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
501
657
  # @yieldparam err [StandardError] error object if request failed
502
658
  #
503
- # @return [Google::Apis::VmwareengineV1::Empty]
659
+ # @return [Google::Apis::VmwareengineV1::Operation]
504
660
  #
505
661
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
506
662
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
507
663
  # @raise [Google::Apis::AuthorizationError] Authorization is required
508
- def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
664
+ def delete_project_location_network_policy(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
509
665
  command = make_simple_command(:delete, 'v1/{+name}', options)
510
- command.response_representation = Google::Apis::VmwareengineV1::Empty::Representation
511
- command.response_class = Google::Apis::VmwareengineV1::Empty
666
+ command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
667
+ command.response_class = Google::Apis::VmwareengineV1::Operation
512
668
  command.params['name'] = name unless name.nil?
669
+ command.query['requestId'] = request_id unless request_id.nil?
513
670
  command.query['fields'] = fields unless fields.nil?
514
671
  command.query['quotaUser'] = quota_user unless quota_user.nil?
515
672
  execute_or_queue_command(command, &block)
516
673
  end
517
674
 
518
- # Gets the latest state of a long-running operation. Clients can use this method
519
- # to poll the operation result at intervals as recommended by the API service.
675
+ # Lists external IP addresses assigned to VMware workload VMs within the scope
676
+ # of the given network policy.
677
+ # @param [String] network_policy
678
+ # Required. The resource name of the network policy to query for assigned
679
+ # external IP addresses. Resource names are schemeless URIs that follow the
680
+ # conventions in https://cloud.google.com/apis/design/resource_names. For
681
+ # example: `projects/my-project/locations/us-central1/networkPolicies/my-policy`
682
+ # @param [Fixnum] page_size
683
+ # The maximum number of external IP addresses to return in one page. The service
684
+ # may return fewer than this value. The maximum value is coerced to 1000. The
685
+ # default value of this field is 500.
686
+ # @param [String] page_token
687
+ # A page token, received from a previous `FetchNetworkPolicyExternalAddresses`
688
+ # call. Provide this to retrieve the subsequent page. When paginating, all
689
+ # parameters provided to `FetchNetworkPolicyExternalAddresses`, except for `
690
+ # page_size` and `page_token`, must match the call that provided the page token.
691
+ # @param [String] fields
692
+ # Selector specifying which fields to include in a partial response.
693
+ # @param [String] quota_user
694
+ # Available to use for quota purposes for server-side applications. Can be any
695
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
696
+ # @param [Google::Apis::RequestOptions] options
697
+ # Request-specific options
698
+ #
699
+ # @yield [result, err] Result & error if block supplied
700
+ # @yieldparam result [Google::Apis::VmwareengineV1::FetchNetworkPolicyExternalAddressesResponse] parsed result object
701
+ # @yieldparam err [StandardError] error object if request failed
702
+ #
703
+ # @return [Google::Apis::VmwareengineV1::FetchNetworkPolicyExternalAddressesResponse]
704
+ #
705
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
706
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
707
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
708
+ def fetch_project_location_network_policy_external_addresses(network_policy, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
709
+ command = make_simple_command(:get, 'v1/{+networkPolicy}:fetchExternalAddresses', options)
710
+ command.response_representation = Google::Apis::VmwareengineV1::FetchNetworkPolicyExternalAddressesResponse::Representation
711
+ command.response_class = Google::Apis::VmwareengineV1::FetchNetworkPolicyExternalAddressesResponse
712
+ command.params['networkPolicy'] = network_policy unless network_policy.nil?
713
+ command.query['pageSize'] = page_size unless page_size.nil?
714
+ command.query['pageToken'] = page_token unless page_token.nil?
715
+ command.query['fields'] = fields unless fields.nil?
716
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
717
+ execute_or_queue_command(command, &block)
718
+ end
719
+
720
+ # Retrieves a `NetworkPolicy` resource by its resource name.
520
721
  # @param [String] name
521
- # The name of the operation resource.
722
+ # Required. The resource name of the network policy to retrieve. Resource names
723
+ # are schemeless URIs that follow the conventions in https://cloud.google.com/
724
+ # apis/design/resource_names. For example: `projects/my-project/locations/us-
725
+ # central1/networkPolicies/my-network-policy`
522
726
  # @param [String] fields
523
727
  # Selector specifying which fields to include in a partial response.
524
728
  # @param [String] quota_user
@@ -528,34 +732,57 @@ module Google
528
732
  # Request-specific options
529
733
  #
530
734
  # @yield [result, err] Result & error if block supplied
531
- # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
735
+ # @yieldparam result [Google::Apis::VmwareengineV1::NetworkPolicy] parsed result object
532
736
  # @yieldparam err [StandardError] error object if request failed
533
737
  #
534
- # @return [Google::Apis::VmwareengineV1::Operation]
738
+ # @return [Google::Apis::VmwareengineV1::NetworkPolicy]
535
739
  #
536
740
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
537
741
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
538
742
  # @raise [Google::Apis::AuthorizationError] Authorization is required
539
- def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
743
+ def get_project_location_network_policy(name, fields: nil, quota_user: nil, options: nil, &block)
540
744
  command = make_simple_command(:get, 'v1/{+name}', options)
541
- command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
542
- command.response_class = Google::Apis::VmwareengineV1::Operation
745
+ command.response_representation = Google::Apis::VmwareengineV1::NetworkPolicy::Representation
746
+ command.response_class = Google::Apis::VmwareengineV1::NetworkPolicy
543
747
  command.params['name'] = name unless name.nil?
544
748
  command.query['fields'] = fields unless fields.nil?
545
749
  command.query['quotaUser'] = quota_user unless quota_user.nil?
546
750
  execute_or_queue_command(command, &block)
547
751
  end
548
752
 
549
- # Lists operations that match the specified filter in the request. If the server
550
- # doesn't support this method, it returns `UNIMPLEMENTED`.
551
- # @param [String] name
552
- # The name of the operation's parent resource.
753
+ # Lists `NetworkPolicy` resources in a specified project and location.
754
+ # @param [String] parent
755
+ # Required. The resource name of the location (region) to query for network
756
+ # policies. Resource names are schemeless URIs that follow the conventions in
757
+ # https://cloud.google.com/apis/design/resource_names. For example: `projects/my-
758
+ # project/locations/us-central1`
553
759
  # @param [String] filter
554
- # The standard list filter.
760
+ # A filter expression that matches resources returned in the response. The
761
+ # expression must specify the field name, a comparison operator, and the value
762
+ # that you want to use for filtering. The value must be a string, a number, or a
763
+ # boolean. The comparison operator must be `=`, `!=`, `>`, or `<`. For example,
764
+ # if you are filtering a list of network policies, you can exclude the ones
765
+ # named `example-policy` by specifying `name != "example-policy"`. To filter on
766
+ # multiple expressions, provide each separate expression within parentheses. For
767
+ # example: ``` (name = "example-policy") (createTime > "2021-04-12T08:15:10.40Z")
768
+ # ``` By default, each expression is an `AND` expression. However, you can
769
+ # include `AND` and `OR` expressions explicitly. For example: ``` (name = "
770
+ # example-policy-1") AND (createTime > "2021-04-12T08:15:10.40Z") OR (name = "
771
+ # example-policy-2") ```
772
+ # @param [String] order_by
773
+ # Sorts list results by a certain order. By default, returned results are
774
+ # ordered by `name` in ascending order. You can also sort results in descending
775
+ # order based on the `name` value using `orderBy="name desc"`. Currently, only
776
+ # ordering by `name` is supported.
555
777
  # @param [Fixnum] page_size
556
- # The standard list page size.
778
+ # The maximum number of network policies to return in one page. The service may
779
+ # return fewer than this value. The maximum value is coerced to 1000. The
780
+ # default value of this field is 500.
557
781
  # @param [String] page_token
558
- # The standard list page token.
782
+ # A page token, received from a previous `ListNetworkPolicies` call. Provide
783
+ # this to retrieve the subsequent page. When paginating, all other parameters
784
+ # provided to `ListNetworkPolicies` must match the call that provided the page
785
+ # token.
559
786
  # @param [String] fields
560
787
  # Selector specifying which fields to include in a partial response.
561
788
  # @param [String] quota_user
@@ -565,20 +792,21 @@ module Google
565
792
  # Request-specific options
566
793
  #
567
794
  # @yield [result, err] Result & error if block supplied
568
- # @yieldparam result [Google::Apis::VmwareengineV1::ListOperationsResponse] parsed result object
795
+ # @yieldparam result [Google::Apis::VmwareengineV1::ListNetworkPoliciesResponse] parsed result object
569
796
  # @yieldparam err [StandardError] error object if request failed
570
797
  #
571
- # @return [Google::Apis::VmwareengineV1::ListOperationsResponse]
798
+ # @return [Google::Apis::VmwareengineV1::ListNetworkPoliciesResponse]
572
799
  #
573
800
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
574
801
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
575
802
  # @raise [Google::Apis::AuthorizationError] Authorization is required
576
- def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
577
- command = make_simple_command(:get, 'v1/{+name}/operations', options)
578
- command.response_representation = Google::Apis::VmwareengineV1::ListOperationsResponse::Representation
579
- command.response_class = Google::Apis::VmwareengineV1::ListOperationsResponse
580
- command.params['name'] = name unless name.nil?
803
+ def list_project_location_network_policies(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
804
+ command = make_simple_command(:get, 'v1/{+parent}/networkPolicies', options)
805
+ command.response_representation = Google::Apis::VmwareengineV1::ListNetworkPoliciesResponse::Representation
806
+ command.response_class = Google::Apis::VmwareengineV1::ListNetworkPoliciesResponse
807
+ command.params['parent'] = parent unless parent.nil?
581
808
  command.query['filter'] = filter unless filter.nil?
809
+ command.query['orderBy'] = order_by unless order_by.nil?
582
810
  command.query['pageSize'] = page_size unless page_size.nil?
583
811
  command.query['pageToken'] = page_token unless page_token.nil?
584
812
  command.query['fields'] = fields unless fields.nil?
@@ -586,31 +814,98 @@ module Google
586
814
  execute_or_queue_command(command, &block)
587
815
  end
588
816
 
589
- # Creates a new `PrivateCloud` resource in a given project and location. Private
590
- # clouds of type `STANDARD` and `TIME_LIMITED` are zonal resources, `STRETCHED`
591
- # private clouds are regional. Creating a private cloud also creates a [
592
- # management cluster](https://cloud.google.com/vmware-engine/docs/concepts-
593
- # vmware-components) for that private cloud.
817
+ # Modifies a `NetworkPolicy` resource. Only the following fields can be updated:
818
+ # `internet_access`, `external_ip`, `edge_services_cidr`. Only fields specified
819
+ # in `updateMask` are applied. When updating a network policy, the external IP
820
+ # network service can only be disabled if there are no external IP addresses
821
+ # present in the scope of the policy. Also, a `NetworkService` cannot be updated
822
+ # when `NetworkService.state` is set to `RECONCILING`. During operation
823
+ # processing, the resource is temporarily in the `ACTIVE` state before the
824
+ # operation fully completes. For that period of time, you can't update the
825
+ # resource. Use the operation status to determine when the processing fully
826
+ # completes.
827
+ # @param [String] name
828
+ # Output only. The resource name of this network policy. Resource names are
829
+ # schemeless URIs that follow the conventions in https://cloud.google.com/apis/
830
+ # design/resource_names. For example: `projects/my-project/locations/us-central1/
831
+ # networkPolicies/my-network-policy`
832
+ # @param [Google::Apis::VmwareengineV1::NetworkPolicy] network_policy_object
833
+ # @param [String] request_id
834
+ # Optional. A request ID to identify requests. Specify a unique request ID so
835
+ # that if you must retry your request, the server will know to ignore the
836
+ # request if it has already been completed. The server guarantees that a request
837
+ # doesn't result in creation of duplicate commitments for at least 60 minutes.
838
+ # For example, consider a situation where you make an initial request and the
839
+ # request times out. If you make the request again with the same request ID, the
840
+ # server can check if original operation with the same request ID was received,
841
+ # and if so, will ignore the second request. This prevents clients from
842
+ # accidentally creating duplicate commitments. The request ID must be a valid
843
+ # UUID with the exception that zero UUID is not supported (00000000-0000-0000-
844
+ # 0000-000000000000).
845
+ # @param [String] update_mask
846
+ # Required. Field mask is used to specify the fields to be overwritten in the `
847
+ # NetworkPolicy` resource by the update. The fields specified in the `
848
+ # update_mask` are relative to the resource, not the full request. A field will
849
+ # be overwritten if it is in the mask. If the user does not provide a mask then
850
+ # all fields will be overwritten.
851
+ # @param [String] fields
852
+ # Selector specifying which fields to include in a partial response.
853
+ # @param [String] quota_user
854
+ # Available to use for quota purposes for server-side applications. Can be any
855
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
856
+ # @param [Google::Apis::RequestOptions] options
857
+ # Request-specific options
858
+ #
859
+ # @yield [result, err] Result & error if block supplied
860
+ # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
861
+ # @yieldparam err [StandardError] error object if request failed
862
+ #
863
+ # @return [Google::Apis::VmwareengineV1::Operation]
864
+ #
865
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
866
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
867
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
868
+ def patch_project_location_network_policy(name, network_policy_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
869
+ command = make_simple_command(:patch, 'v1/{+name}', options)
870
+ command.request_representation = Google::Apis::VmwareengineV1::NetworkPolicy::Representation
871
+ command.request_object = network_policy_object
872
+ command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
873
+ command.response_class = Google::Apis::VmwareengineV1::Operation
874
+ command.params['name'] = name unless name.nil?
875
+ command.query['requestId'] = request_id unless request_id.nil?
876
+ command.query['updateMask'] = update_mask unless update_mask.nil?
877
+ command.query['fields'] = fields unless fields.nil?
878
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
879
+ execute_or_queue_command(command, &block)
880
+ end
881
+
882
+ # Creates a new external access rule in a given network policy.
594
883
  # @param [String] parent
595
- # Required. The resource name of the location to create the new private cloud in.
596
- # Resource names are schemeless URIs that follow the conventions in https://
597
- # cloud.google.com/apis/design/resource_names. For example: `projects/my-project/
598
- # locations/us-central1-a`
599
- # @param [Google::Apis::VmwareengineV1::PrivateCloud] private_cloud_object
600
- # @param [String] private_cloud_id
601
- # Required. The user-provided identifier of the private cloud to be created.
602
- # This identifier must be unique among each `PrivateCloud` within the parent and
603
- # becomes the final token in the name URI. The identifier must meet the
604
- # following requirements: * Only contains 1-63 alphanumeric characters and
605
- # hyphens * Begins with an alphabetical character * Ends with a non-hyphen
606
- # character * Not formatted as a UUID * Complies with [RFC 1034](https://
607
- # datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
884
+ # Required. The resource name of the network policy to create a new external
885
+ # access firewall rule in. Resource names are schemeless URIs that follow the
886
+ # conventions in https://cloud.google.com/apis/design/resource_names. For
887
+ # example: `projects/my-project/locations/us-central1/networkPolicies/my-policy`
888
+ # @param [Google::Apis::VmwareengineV1::ExternalAccessRule] external_access_rule_object
889
+ # @param [String] external_access_rule_id
890
+ # Required. The user-provided identifier of the `ExternalAccessRule` to be
891
+ # created. This identifier must be unique among `ExternalAccessRule` resources
892
+ # within the parent and becomes the final token in the name URI. The identifier
893
+ # must meet the following requirements: * Only contains 1-63 alphanumeric
894
+ # characters and hyphens * Begins with an alphabetical character * Ends with a
895
+ # non-hyphen character * Not formatted as a UUID * Complies with [RFC 1034](
896
+ # https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
608
897
  # @param [String] request_id
609
- # Optional. The request ID must be a valid UUID with the exception that zero
610
- # UUID is not supported (00000000-0000-0000-0000-000000000000).
611
- # @param [Boolean] validate_only
612
- # Optional. True if you want the request to be validated and not executed; false
613
- # otherwise.
898
+ # A request ID to identify requests. Specify a unique request ID so that if you
899
+ # must retry your request, the server will know to ignore the request if it has
900
+ # already been completed. The server guarantees that a request doesn't result in
901
+ # creation of duplicate commitments for at least 60 minutes. For example,
902
+ # consider a situation where you make an initial request and the request times
903
+ # out. If you make the request again with the same request ID, the server can
904
+ # check if the original operation with the same request ID was received, and if
905
+ # so, will ignore the second request. This prevents clients from accidentally
906
+ # creating duplicate commitments. The request ID must be a valid UUID with the
907
+ # exception that zero UUID is not supported (00000000-0000-0000-0000-
908
+ # 000000000000).
614
909
  # @param [String] fields
615
910
  # Selector specifying which fields to include in a partial response.
616
911
  # @param [String] quota_user
@@ -628,27 +923,476 @@ module Google
628
923
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
629
924
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
630
925
  # @raise [Google::Apis::AuthorizationError] Authorization is required
631
- def create_project_location_private_cloud(parent, private_cloud_object = nil, private_cloud_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
632
- command = make_simple_command(:post, 'v1/{+parent}/privateClouds', options)
633
- command.request_representation = Google::Apis::VmwareengineV1::PrivateCloud::Representation
634
- command.request_object = private_cloud_object
926
+ def create_project_location_network_policy_external_access_rule(parent, external_access_rule_object = nil, external_access_rule_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
927
+ command = make_simple_command(:post, 'v1/{+parent}/externalAccessRules', options)
928
+ command.request_representation = Google::Apis::VmwareengineV1::ExternalAccessRule::Representation
929
+ command.request_object = external_access_rule_object
635
930
  command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
636
931
  command.response_class = Google::Apis::VmwareengineV1::Operation
637
932
  command.params['parent'] = parent unless parent.nil?
638
- command.query['privateCloudId'] = private_cloud_id unless private_cloud_id.nil?
933
+ command.query['externalAccessRuleId'] = external_access_rule_id unless external_access_rule_id.nil?
639
934
  command.query['requestId'] = request_id unless request_id.nil?
640
- command.query['validateOnly'] = validate_only unless validate_only.nil?
641
935
  command.query['fields'] = fields unless fields.nil?
642
936
  command.query['quotaUser'] = quota_user unless quota_user.nil?
643
937
  execute_or_queue_command(command, &block)
644
938
  end
645
939
 
646
- # Schedules a `PrivateCloud` resource for deletion. A `PrivateCloud` resource
647
- # scheduled for deletion has `PrivateCloud.state` set to `DELETED` and `
648
- # expireTime` set to the time when deletion is final and can no longer be
649
- # reversed. The delete operation is marked as done as soon as the `PrivateCloud`
650
- # is successfully scheduled for deletion (this also applies when `delayHours` is
651
- # set to zero), and the operation is not kept in pending state until `
940
+ # Deletes a single external access rule.
941
+ # @param [String] name
942
+ # Required. The resource name of the external access firewall rule to delete.
943
+ # Resource names are schemeless URIs that follow the conventions in https://
944
+ # cloud.google.com/apis/design/resource_names. For example: `projects/my-project/
945
+ # locations/us-central1/networkPolicies/my-policy/externalAccessRules/my-rule`
946
+ # @param [String] request_id
947
+ # Optional. A request ID to identify requests. Specify a unique request ID so
948
+ # that if you must retry your request, the server will know to ignore the
949
+ # request if it has already been completed. The server guarantees that a request
950
+ # doesn't result in creation of duplicate commitments for at least 60 minutes.
951
+ # For example, consider a situation where you make an initial request and the
952
+ # request times out. If you make the request again with the same request ID, the
953
+ # server can check if the original operation with the same request ID was
954
+ # received, and if so, will ignore the second request. This prevents clients
955
+ # from accidentally creating duplicate commitments. The request ID must be a
956
+ # valid UUID with the exception that zero UUID is not supported (00000000-0000-
957
+ # 0000-0000-000000000000).
958
+ # @param [String] fields
959
+ # Selector specifying which fields to include in a partial response.
960
+ # @param [String] quota_user
961
+ # Available to use for quota purposes for server-side applications. Can be any
962
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
963
+ # @param [Google::Apis::RequestOptions] options
964
+ # Request-specific options
965
+ #
966
+ # @yield [result, err] Result & error if block supplied
967
+ # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
968
+ # @yieldparam err [StandardError] error object if request failed
969
+ #
970
+ # @return [Google::Apis::VmwareengineV1::Operation]
971
+ #
972
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
973
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
974
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
975
+ def delete_project_location_network_policy_external_access_rule(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
976
+ command = make_simple_command(:delete, 'v1/{+name}', options)
977
+ command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
978
+ command.response_class = Google::Apis::VmwareengineV1::Operation
979
+ command.params['name'] = name unless name.nil?
980
+ command.query['requestId'] = request_id unless request_id.nil?
981
+ command.query['fields'] = fields unless fields.nil?
982
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
983
+ execute_or_queue_command(command, &block)
984
+ end
985
+
986
+ # Gets details of a single external access rule.
987
+ # @param [String] name
988
+ # Required. The resource name of the external access firewall rule to retrieve.
989
+ # Resource names are schemeless URIs that follow the conventions in https://
990
+ # cloud.google.com/apis/design/resource_names. For example: `projects/my-project/
991
+ # locations/us-central1/networkPolicies/my-policy/externalAccessRules/my-rule`
992
+ # @param [String] fields
993
+ # Selector specifying which fields to include in a partial response.
994
+ # @param [String] quota_user
995
+ # Available to use for quota purposes for server-side applications. Can be any
996
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
997
+ # @param [Google::Apis::RequestOptions] options
998
+ # Request-specific options
999
+ #
1000
+ # @yield [result, err] Result & error if block supplied
1001
+ # @yieldparam result [Google::Apis::VmwareengineV1::ExternalAccessRule] parsed result object
1002
+ # @yieldparam err [StandardError] error object if request failed
1003
+ #
1004
+ # @return [Google::Apis::VmwareengineV1::ExternalAccessRule]
1005
+ #
1006
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1007
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1008
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1009
+ def get_project_location_network_policy_external_access_rule(name, fields: nil, quota_user: nil, options: nil, &block)
1010
+ command = make_simple_command(:get, 'v1/{+name}', options)
1011
+ command.response_representation = Google::Apis::VmwareengineV1::ExternalAccessRule::Representation
1012
+ command.response_class = Google::Apis::VmwareengineV1::ExternalAccessRule
1013
+ command.params['name'] = name unless name.nil?
1014
+ command.query['fields'] = fields unless fields.nil?
1015
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1016
+ execute_or_queue_command(command, &block)
1017
+ end
1018
+
1019
+ # Lists `ExternalAccessRule` resources in the specified network policy.
1020
+ # @param [String] parent
1021
+ # Required. The resource name of the network policy to query for external access
1022
+ # firewall rules. Resource names are schemeless URIs that follow the conventions
1023
+ # in https://cloud.google.com/apis/design/resource_names. For example: `projects/
1024
+ # my-project/locations/us-central1/networkPolicies/my-policy`
1025
+ # @param [String] filter
1026
+ # A filter expression that matches resources returned in the response. The
1027
+ # expression must specify the field name, a comparison operator, and the value
1028
+ # that you want to use for filtering. The value must be a string, a number, or a
1029
+ # boolean. The comparison operator must be `=`, `!=`, `>`, or `<`. For example,
1030
+ # if you are filtering a list of external access rules, you can exclude the ones
1031
+ # named `example-rule` by specifying `name != "example-rule"`. To filter on
1032
+ # multiple expressions, provide each separate expression within parentheses. For
1033
+ # example: ``` (name = "example-rule") (createTime > "2021-04-12T08:15:10.40Z") `
1034
+ # `` By default, each expression is an `AND` expression. However, you can
1035
+ # include `AND` and `OR` expressions explicitly. For example: ``` (name = "
1036
+ # example-rule-1") AND (createTime > "2021-04-12T08:15:10.40Z") OR (name = "
1037
+ # example-rule-2") ```
1038
+ # @param [String] order_by
1039
+ # Sorts list results by a certain order. By default, returned results are
1040
+ # ordered by `name` in ascending order. You can also sort results in descending
1041
+ # order based on the `name` value using `orderBy="name desc"`. Currently, only
1042
+ # ordering by `name` is supported.
1043
+ # @param [Fixnum] page_size
1044
+ # The maximum number of external access rules to return in one page. The service
1045
+ # may return fewer than this value. The maximum value is coerced to 1000. The
1046
+ # default value of this field is 500.
1047
+ # @param [String] page_token
1048
+ # A page token, received from a previous `ListExternalAccessRulesRequest` call.
1049
+ # Provide this to retrieve the subsequent page. When paginating, all other
1050
+ # parameters provided to `ListExternalAccessRulesRequest` must match the call
1051
+ # that provided the page token.
1052
+ # @param [String] fields
1053
+ # Selector specifying which fields to include in a partial response.
1054
+ # @param [String] quota_user
1055
+ # Available to use for quota purposes for server-side applications. Can be any
1056
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1057
+ # @param [Google::Apis::RequestOptions] options
1058
+ # Request-specific options
1059
+ #
1060
+ # @yield [result, err] Result & error if block supplied
1061
+ # @yieldparam result [Google::Apis::VmwareengineV1::ListExternalAccessRulesResponse] parsed result object
1062
+ # @yieldparam err [StandardError] error object if request failed
1063
+ #
1064
+ # @return [Google::Apis::VmwareengineV1::ListExternalAccessRulesResponse]
1065
+ #
1066
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1067
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1068
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1069
+ def list_project_location_network_policy_external_access_rules(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1070
+ command = make_simple_command(:get, 'v1/{+parent}/externalAccessRules', options)
1071
+ command.response_representation = Google::Apis::VmwareengineV1::ListExternalAccessRulesResponse::Representation
1072
+ command.response_class = Google::Apis::VmwareengineV1::ListExternalAccessRulesResponse
1073
+ command.params['parent'] = parent unless parent.nil?
1074
+ command.query['filter'] = filter unless filter.nil?
1075
+ command.query['orderBy'] = order_by unless order_by.nil?
1076
+ command.query['pageSize'] = page_size unless page_size.nil?
1077
+ command.query['pageToken'] = page_token unless page_token.nil?
1078
+ command.query['fields'] = fields unless fields.nil?
1079
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1080
+ execute_or_queue_command(command, &block)
1081
+ end
1082
+
1083
+ # Updates the parameters of a single external access rule. Only fields specified
1084
+ # in `update_mask` are applied.
1085
+ # @param [String] name
1086
+ # Output only. The resource name of this external access rule. Resource names
1087
+ # are schemeless URIs that follow the conventions in https://cloud.google.com/
1088
+ # apis/design/resource_names. For example: `projects/my-project/locations/us-
1089
+ # central1/networkPolicies/my-policy/externalAccessRules/my-rule`
1090
+ # @param [Google::Apis::VmwareengineV1::ExternalAccessRule] external_access_rule_object
1091
+ # @param [String] request_id
1092
+ # Optional. A request ID to identify requests. Specify a unique request ID so
1093
+ # that if you must retry your request, the server will know to ignore the
1094
+ # request if it has already been completed. The server guarantees that a request
1095
+ # doesn't result in creation of duplicate commitments for at least 60 minutes.
1096
+ # For example, consider a situation where you make an initial request and the
1097
+ # request times out. If you make the request again with the same request ID, the
1098
+ # server can check if the original operation with the same request ID was
1099
+ # received, and if so, will ignore the second request. This prevents clients
1100
+ # from accidentally creating duplicate commitments. The request ID must be a
1101
+ # valid UUID with the exception that zero UUID is not supported (00000000-0000-
1102
+ # 0000-0000-000000000000).
1103
+ # @param [String] update_mask
1104
+ # Required. Field mask is used to specify the fields to be overwritten in the `
1105
+ # ExternalAccessRule` resource by the update. The fields specified in the `
1106
+ # update_mask` are relative to the resource, not the full request. A field will
1107
+ # be overwritten if it is in the mask. If the user does not provide a mask then
1108
+ # all fields will be overwritten.
1109
+ # @param [String] fields
1110
+ # Selector specifying which fields to include in a partial response.
1111
+ # @param [String] quota_user
1112
+ # Available to use for quota purposes for server-side applications. Can be any
1113
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1114
+ # @param [Google::Apis::RequestOptions] options
1115
+ # Request-specific options
1116
+ #
1117
+ # @yield [result, err] Result & error if block supplied
1118
+ # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
1119
+ # @yieldparam err [StandardError] error object if request failed
1120
+ #
1121
+ # @return [Google::Apis::VmwareengineV1::Operation]
1122
+ #
1123
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1124
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1125
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1126
+ def patch_project_location_network_policy_external_access_rule(name, external_access_rule_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1127
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1128
+ command.request_representation = Google::Apis::VmwareengineV1::ExternalAccessRule::Representation
1129
+ command.request_object = external_access_rule_object
1130
+ command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
1131
+ command.response_class = Google::Apis::VmwareengineV1::Operation
1132
+ command.params['name'] = name unless name.nil?
1133
+ command.query['requestId'] = request_id unless request_id.nil?
1134
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1135
+ command.query['fields'] = fields unless fields.nil?
1136
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1137
+ execute_or_queue_command(command, &block)
1138
+ end
1139
+
1140
+ # Gets details of a single `NodeType`.
1141
+ # @param [String] name
1142
+ # Required. The resource name of the node type to retrieve. Resource names are
1143
+ # schemeless URIs that follow the conventions in https://cloud.google.com/apis/
1144
+ # design/resource_names. For example: `projects/my-proj/locations/us-central1-a/
1145
+ # nodeTypes/standard-72`
1146
+ # @param [String] fields
1147
+ # Selector specifying which fields to include in a partial response.
1148
+ # @param [String] quota_user
1149
+ # Available to use for quota purposes for server-side applications. Can be any
1150
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1151
+ # @param [Google::Apis::RequestOptions] options
1152
+ # Request-specific options
1153
+ #
1154
+ # @yield [result, err] Result & error if block supplied
1155
+ # @yieldparam result [Google::Apis::VmwareengineV1::NodeType] parsed result object
1156
+ # @yieldparam err [StandardError] error object if request failed
1157
+ #
1158
+ # @return [Google::Apis::VmwareengineV1::NodeType]
1159
+ #
1160
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1161
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1162
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1163
+ def get_project_location_node_type(name, fields: nil, quota_user: nil, options: nil, &block)
1164
+ command = make_simple_command(:get, 'v1/{+name}', options)
1165
+ command.response_representation = Google::Apis::VmwareengineV1::NodeType::Representation
1166
+ command.response_class = Google::Apis::VmwareengineV1::NodeType
1167
+ command.params['name'] = name unless name.nil?
1168
+ command.query['fields'] = fields unless fields.nil?
1169
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1170
+ execute_or_queue_command(command, &block)
1171
+ end
1172
+
1173
+ # Lists node types
1174
+ # @param [String] parent
1175
+ # Required. The resource name of the location to be queried for node types.
1176
+ # Resource names are schemeless URIs that follow the conventions in https://
1177
+ # cloud.google.com/apis/design/resource_names. For example: `projects/my-project/
1178
+ # locations/us-central1-a`
1179
+ # @param [String] filter
1180
+ # A filter expression that matches resources returned in the response. The
1181
+ # expression must specify the field name, a comparison operator, and the value
1182
+ # that you want to use for filtering. The value must be a string, a number, or a
1183
+ # boolean. The comparison operator must be `=`, `!=`, `>`, or `<`. For example,
1184
+ # if you are filtering a list of node types, you can exclude the ones named `
1185
+ # standard-72` by specifying `name != "standard-72"`. To filter on multiple
1186
+ # expressions, provide each separate expression within parentheses. For example:
1187
+ # ``` (name = "standard-72") (virtual_cpu_count > 2) ``` By default, each
1188
+ # expression is an `AND` expression. However, you can include `AND` and `OR`
1189
+ # expressions explicitly. For example: ``` (name = "standard-96") AND (
1190
+ # virtual_cpu_count > 2) OR (name = "standard-72") ```
1191
+ # @param [Fixnum] page_size
1192
+ # The maximum number of node types to return in one page. The service may return
1193
+ # fewer than this value. The maximum value is coerced to 1000. The default value
1194
+ # of this field is 500.
1195
+ # @param [String] page_token
1196
+ # A page token, received from a previous `ListNodeTypes` call. Provide this to
1197
+ # retrieve the subsequent page. When paginating, all other parameters provided
1198
+ # to `ListNodeTypes` must match the call that provided the page token.
1199
+ # @param [String] fields
1200
+ # Selector specifying which fields to include in a partial response.
1201
+ # @param [String] quota_user
1202
+ # Available to use for quota purposes for server-side applications. Can be any
1203
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1204
+ # @param [Google::Apis::RequestOptions] options
1205
+ # Request-specific options
1206
+ #
1207
+ # @yield [result, err] Result & error if block supplied
1208
+ # @yieldparam result [Google::Apis::VmwareengineV1::ListNodeTypesResponse] parsed result object
1209
+ # @yieldparam err [StandardError] error object if request failed
1210
+ #
1211
+ # @return [Google::Apis::VmwareengineV1::ListNodeTypesResponse]
1212
+ #
1213
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1214
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1215
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1216
+ def list_project_location_node_types(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1217
+ command = make_simple_command(:get, 'v1/{+parent}/nodeTypes', options)
1218
+ command.response_representation = Google::Apis::VmwareengineV1::ListNodeTypesResponse::Representation
1219
+ command.response_class = Google::Apis::VmwareengineV1::ListNodeTypesResponse
1220
+ command.params['parent'] = parent unless parent.nil?
1221
+ command.query['filter'] = filter unless filter.nil?
1222
+ command.query['pageSize'] = page_size unless page_size.nil?
1223
+ command.query['pageToken'] = page_token unless page_token.nil?
1224
+ command.query['fields'] = fields unless fields.nil?
1225
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1226
+ execute_or_queue_command(command, &block)
1227
+ end
1228
+
1229
+ # Deletes a long-running operation. This method indicates that the client is no
1230
+ # longer interested in the operation result. It does not cancel the operation.
1231
+ # If the server doesn't support this method, it returns `google.rpc.Code.
1232
+ # UNIMPLEMENTED`.
1233
+ # @param [String] name
1234
+ # The name of the operation resource to be deleted.
1235
+ # @param [String] fields
1236
+ # Selector specifying which fields to include in a partial response.
1237
+ # @param [String] quota_user
1238
+ # Available to use for quota purposes for server-side applications. Can be any
1239
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1240
+ # @param [Google::Apis::RequestOptions] options
1241
+ # Request-specific options
1242
+ #
1243
+ # @yield [result, err] Result & error if block supplied
1244
+ # @yieldparam result [Google::Apis::VmwareengineV1::Empty] parsed result object
1245
+ # @yieldparam err [StandardError] error object if request failed
1246
+ #
1247
+ # @return [Google::Apis::VmwareengineV1::Empty]
1248
+ #
1249
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1250
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1251
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1252
+ def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1253
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1254
+ command.response_representation = Google::Apis::VmwareengineV1::Empty::Representation
1255
+ command.response_class = Google::Apis::VmwareengineV1::Empty
1256
+ command.params['name'] = name unless name.nil?
1257
+ command.query['fields'] = fields unless fields.nil?
1258
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1259
+ execute_or_queue_command(command, &block)
1260
+ end
1261
+
1262
+ # Gets the latest state of a long-running operation. Clients can use this method
1263
+ # to poll the operation result at intervals as recommended by the API service.
1264
+ # @param [String] name
1265
+ # The name of the operation resource.
1266
+ # @param [String] fields
1267
+ # Selector specifying which fields to include in a partial response.
1268
+ # @param [String] quota_user
1269
+ # Available to use for quota purposes for server-side applications. Can be any
1270
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1271
+ # @param [Google::Apis::RequestOptions] options
1272
+ # Request-specific options
1273
+ #
1274
+ # @yield [result, err] Result & error if block supplied
1275
+ # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
1276
+ # @yieldparam err [StandardError] error object if request failed
1277
+ #
1278
+ # @return [Google::Apis::VmwareengineV1::Operation]
1279
+ #
1280
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1281
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1282
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1283
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1284
+ command = make_simple_command(:get, 'v1/{+name}', options)
1285
+ command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
1286
+ command.response_class = Google::Apis::VmwareengineV1::Operation
1287
+ command.params['name'] = name unless name.nil?
1288
+ command.query['fields'] = fields unless fields.nil?
1289
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1290
+ execute_or_queue_command(command, &block)
1291
+ end
1292
+
1293
+ # Lists operations that match the specified filter in the request. If the server
1294
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
1295
+ # @param [String] name
1296
+ # The name of the operation's parent resource.
1297
+ # @param [String] filter
1298
+ # The standard list filter.
1299
+ # @param [Fixnum] page_size
1300
+ # The standard list page size.
1301
+ # @param [String] page_token
1302
+ # The standard list page token.
1303
+ # @param [String] fields
1304
+ # Selector specifying which fields to include in a partial response.
1305
+ # @param [String] quota_user
1306
+ # Available to use for quota purposes for server-side applications. Can be any
1307
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1308
+ # @param [Google::Apis::RequestOptions] options
1309
+ # Request-specific options
1310
+ #
1311
+ # @yield [result, err] Result & error if block supplied
1312
+ # @yieldparam result [Google::Apis::VmwareengineV1::ListOperationsResponse] parsed result object
1313
+ # @yieldparam err [StandardError] error object if request failed
1314
+ #
1315
+ # @return [Google::Apis::VmwareengineV1::ListOperationsResponse]
1316
+ #
1317
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1318
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1319
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1320
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1321
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
1322
+ command.response_representation = Google::Apis::VmwareengineV1::ListOperationsResponse::Representation
1323
+ command.response_class = Google::Apis::VmwareengineV1::ListOperationsResponse
1324
+ command.params['name'] = name unless name.nil?
1325
+ command.query['filter'] = filter unless filter.nil?
1326
+ command.query['pageSize'] = page_size unless page_size.nil?
1327
+ command.query['pageToken'] = page_token unless page_token.nil?
1328
+ command.query['fields'] = fields unless fields.nil?
1329
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1330
+ execute_or_queue_command(command, &block)
1331
+ end
1332
+
1333
+ # Creates a new `PrivateCloud` resource in a given project and location. Private
1334
+ # clouds of type `STANDARD` and `TIME_LIMITED` are zonal resources, `STRETCHED`
1335
+ # private clouds are regional. Creating a private cloud also creates a [
1336
+ # management cluster](https://cloud.google.com/vmware-engine/docs/concepts-
1337
+ # vmware-components) for that private cloud.
1338
+ # @param [String] parent
1339
+ # Required. The resource name of the location to create the new private cloud in.
1340
+ # Resource names are schemeless URIs that follow the conventions in https://
1341
+ # cloud.google.com/apis/design/resource_names. For example: `projects/my-project/
1342
+ # locations/us-central1-a`
1343
+ # @param [Google::Apis::VmwareengineV1::PrivateCloud] private_cloud_object
1344
+ # @param [String] private_cloud_id
1345
+ # Required. The user-provided identifier of the private cloud to be created.
1346
+ # This identifier must be unique among each `PrivateCloud` within the parent and
1347
+ # becomes the final token in the name URI. The identifier must meet the
1348
+ # following requirements: * Only contains 1-63 alphanumeric characters and
1349
+ # hyphens * Begins with an alphabetical character * Ends with a non-hyphen
1350
+ # character * Not formatted as a UUID * Complies with [RFC 1034](https://
1351
+ # datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
1352
+ # @param [String] request_id
1353
+ # Optional. The request ID must be a valid UUID with the exception that zero
1354
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
1355
+ # @param [Boolean] validate_only
1356
+ # Optional. True if you want the request to be validated and not executed; false
1357
+ # otherwise.
1358
+ # @param [String] fields
1359
+ # Selector specifying which fields to include in a partial response.
1360
+ # @param [String] quota_user
1361
+ # Available to use for quota purposes for server-side applications. Can be any
1362
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1363
+ # @param [Google::Apis::RequestOptions] options
1364
+ # Request-specific options
1365
+ #
1366
+ # @yield [result, err] Result & error if block supplied
1367
+ # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
1368
+ # @yieldparam err [StandardError] error object if request failed
1369
+ #
1370
+ # @return [Google::Apis::VmwareengineV1::Operation]
1371
+ #
1372
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1373
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1374
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1375
+ def create_project_location_private_cloud(parent, private_cloud_object = nil, private_cloud_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
1376
+ command = make_simple_command(:post, 'v1/{+parent}/privateClouds', options)
1377
+ command.request_representation = Google::Apis::VmwareengineV1::PrivateCloud::Representation
1378
+ command.request_object = private_cloud_object
1379
+ command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
1380
+ command.response_class = Google::Apis::VmwareengineV1::Operation
1381
+ command.params['parent'] = parent unless parent.nil?
1382
+ command.query['privateCloudId'] = private_cloud_id unless private_cloud_id.nil?
1383
+ command.query['requestId'] = request_id unless request_id.nil?
1384
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
1385
+ command.query['fields'] = fields unless fields.nil?
1386
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1387
+ execute_or_queue_command(command, &block)
1388
+ end
1389
+
1390
+ # Schedules a `PrivateCloud` resource for deletion. A `PrivateCloud` resource
1391
+ # scheduled for deletion has `PrivateCloud.state` set to `DELETED` and `
1392
+ # expireTime` set to the time when deletion is final and can no longer be
1393
+ # reversed. The delete operation is marked as done as soon as the `PrivateCloud`
1394
+ # is successfully scheduled for deletion (this also applies when `delayHours` is
1395
+ # set to zero), and the operation is not kept in pending state until `
652
1396
  # PrivateCloud` is purged. `PrivateCloud` can be restored using `
653
1397
  # UndeletePrivateCloud` method before the `expireTime` elapses. When `expireTime`
654
1398
  # is reached, deletion is final and all private cloud resources are
@@ -657,26 +1401,854 @@ module Google
657
1401
  # standard `GET` method for the whole period of deletion and purging. It will
658
1402
  # not be returned only when it is completely purged.
659
1403
  # @param [String] name
660
- # Required. The resource name of the private cloud to delete. Resource names are
661
- # schemeless URIs that follow the conventions in https://cloud.google.com/apis/
662
- # design/resource_names. For example: `projects/my-project/locations/us-central1-
663
- # a/privateClouds/my-cloud`
664
- # @param [Fixnum] delay_hours
665
- # Optional. Time delay of the deletion specified in hours. The default value is `
666
- # 3`. Specifying a non-zero value for this field changes the value of `
667
- # PrivateCloud.state` to `DELETED` and sets `expire_time` to the planned
668
- # deletion time. Deletion can be cancelled before `expire_time` elapses using
669
- # VmwareEngine.UndeletePrivateCloud. Specifying a value of `0` for this field
670
- # instead begins the deletion process and ceases billing immediately. During the
671
- # final deletion process, the value of `PrivateCloud.state` becomes `PURGING`.
672
- # @param [Boolean] force
673
- # Optional. If set to true, cascade delete is enabled and all children of this
674
- # private cloud resource are also deleted. When this flag is set to false, the
675
- # private cloud will not be deleted if there are any children other than the
676
- # management cluster. The management cluster is always deleted.
1404
+ # Required. The resource name of the private cloud to delete. Resource names are
1405
+ # schemeless URIs that follow the conventions in https://cloud.google.com/apis/
1406
+ # design/resource_names. For example: `projects/my-project/locations/us-central1-
1407
+ # a/privateClouds/my-cloud`
1408
+ # @param [Fixnum] delay_hours
1409
+ # Optional. Time delay of the deletion specified in hours. The default value is `
1410
+ # 3`. Specifying a non-zero value for this field changes the value of `
1411
+ # PrivateCloud.state` to `DELETED` and sets `expire_time` to the planned
1412
+ # deletion time. Deletion can be cancelled before `expire_time` elapses using
1413
+ # VmwareEngine.UndeletePrivateCloud. Specifying a value of `0` for this field
1414
+ # instead begins the deletion process and ceases billing immediately. During the
1415
+ # final deletion process, the value of `PrivateCloud.state` becomes `PURGING`.
1416
+ # @param [Boolean] force
1417
+ # Optional. If set to true, cascade delete is enabled and all children of this
1418
+ # private cloud resource are also deleted. When this flag is set to false, the
1419
+ # private cloud will not be deleted if there are any children other than the
1420
+ # management cluster. The management cluster is always deleted.
1421
+ # @param [String] request_id
1422
+ # Optional. The request ID must be a valid UUID with the exception that zero
1423
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
1424
+ # @param [String] fields
1425
+ # Selector specifying which fields to include in a partial response.
1426
+ # @param [String] quota_user
1427
+ # Available to use for quota purposes for server-side applications. Can be any
1428
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1429
+ # @param [Google::Apis::RequestOptions] options
1430
+ # Request-specific options
1431
+ #
1432
+ # @yield [result, err] Result & error if block supplied
1433
+ # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
1434
+ # @yieldparam err [StandardError] error object if request failed
1435
+ #
1436
+ # @return [Google::Apis::VmwareengineV1::Operation]
1437
+ #
1438
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1439
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1440
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1441
+ def delete_project_location_private_cloud(name, delay_hours: nil, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1442
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1443
+ command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
1444
+ command.response_class = Google::Apis::VmwareengineV1::Operation
1445
+ command.params['name'] = name unless name.nil?
1446
+ command.query['delayHours'] = delay_hours unless delay_hours.nil?
1447
+ command.query['force'] = force unless force.nil?
1448
+ command.query['requestId'] = request_id unless request_id.nil?
1449
+ command.query['fields'] = fields unless fields.nil?
1450
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1451
+ execute_or_queue_command(command, &block)
1452
+ end
1453
+
1454
+ # Retrieves a `PrivateCloud` resource by its resource name.
1455
+ # @param [String] name
1456
+ # Required. The resource name of the private cloud to retrieve. Resource names
1457
+ # are schemeless URIs that follow the conventions in https://cloud.google.com/
1458
+ # apis/design/resource_names. For example: `projects/my-project/locations/us-
1459
+ # central1-a/privateClouds/my-cloud`
1460
+ # @param [String] fields
1461
+ # Selector specifying which fields to include in a partial response.
1462
+ # @param [String] quota_user
1463
+ # Available to use for quota purposes for server-side applications. Can be any
1464
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1465
+ # @param [Google::Apis::RequestOptions] options
1466
+ # Request-specific options
1467
+ #
1468
+ # @yield [result, err] Result & error if block supplied
1469
+ # @yieldparam result [Google::Apis::VmwareengineV1::PrivateCloud] parsed result object
1470
+ # @yieldparam err [StandardError] error object if request failed
1471
+ #
1472
+ # @return [Google::Apis::VmwareengineV1::PrivateCloud]
1473
+ #
1474
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1475
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1476
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1477
+ def get_project_location_private_cloud(name, fields: nil, quota_user: nil, options: nil, &block)
1478
+ command = make_simple_command(:get, 'v1/{+name}', options)
1479
+ command.response_representation = Google::Apis::VmwareengineV1::PrivateCloud::Representation
1480
+ command.response_class = Google::Apis::VmwareengineV1::PrivateCloud
1481
+ command.params['name'] = name unless name.nil?
1482
+ command.query['fields'] = fields unless fields.nil?
1483
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1484
+ execute_or_queue_command(command, &block)
1485
+ end
1486
+
1487
+ # Gets details of the `DnsForwarding` config.
1488
+ # @param [String] name
1489
+ # Required. The resource name of a `DnsForwarding` to retrieve. Resource names
1490
+ # are schemeless URIs that follow the conventions in https://cloud.google.com/
1491
+ # apis/design/resource_names. For example: `projects/my-project/locations/us-
1492
+ # central1-a/privateClouds/my-cloud/dnsForwarding`
1493
+ # @param [String] fields
1494
+ # Selector specifying which fields to include in a partial response.
1495
+ # @param [String] quota_user
1496
+ # Available to use for quota purposes for server-side applications. Can be any
1497
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1498
+ # @param [Google::Apis::RequestOptions] options
1499
+ # Request-specific options
1500
+ #
1501
+ # @yield [result, err] Result & error if block supplied
1502
+ # @yieldparam result [Google::Apis::VmwareengineV1::DnsForwarding] parsed result object
1503
+ # @yieldparam err [StandardError] error object if request failed
1504
+ #
1505
+ # @return [Google::Apis::VmwareengineV1::DnsForwarding]
1506
+ #
1507
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1508
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1509
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1510
+ def get_project_location_private_cloud_dns_forwarding(name, fields: nil, quota_user: nil, options: nil, &block)
1511
+ command = make_simple_command(:get, 'v1/{+name}', options)
1512
+ command.response_representation = Google::Apis::VmwareengineV1::DnsForwarding::Representation
1513
+ command.response_class = Google::Apis::VmwareengineV1::DnsForwarding
1514
+ command.params['name'] = name unless name.nil?
1515
+ command.query['fields'] = fields unless fields.nil?
1516
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1517
+ execute_or_queue_command(command, &block)
1518
+ end
1519
+
1520
+ # Gets the access control policy for a resource. Returns an empty policy if the
1521
+ # resource exists and does not have a policy set.
1522
+ # @param [String] resource
1523
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
1524
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1525
+ # appropriate value for this field.
1526
+ # @param [Fixnum] options_requested_policy_version
1527
+ # Optional. The maximum policy version that will be used to format the policy.
1528
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1529
+ # rejected. Requests for policies with any conditional role bindings must
1530
+ # specify version 3. Policies with no conditional role bindings may specify any
1531
+ # valid value or leave the field unset. The policy in the response might use the
1532
+ # policy version that you specified, or it might use a lower policy version. For
1533
+ # example, if you specify version 3, but the policy has no conditional role
1534
+ # bindings, the response uses version 1. To learn which resources support
1535
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1536
+ # google.com/iam/help/conditions/resource-policies).
1537
+ # @param [String] fields
1538
+ # Selector specifying which fields to include in a partial response.
1539
+ # @param [String] quota_user
1540
+ # Available to use for quota purposes for server-side applications. Can be any
1541
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1542
+ # @param [Google::Apis::RequestOptions] options
1543
+ # Request-specific options
1544
+ #
1545
+ # @yield [result, err] Result & error if block supplied
1546
+ # @yieldparam result [Google::Apis::VmwareengineV1::Policy] parsed result object
1547
+ # @yieldparam err [StandardError] error object if request failed
1548
+ #
1549
+ # @return [Google::Apis::VmwareengineV1::Policy]
1550
+ #
1551
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1552
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1553
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1554
+ def get_project_location_private_cloud_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1555
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
1556
+ command.response_representation = Google::Apis::VmwareengineV1::Policy::Representation
1557
+ command.response_class = Google::Apis::VmwareengineV1::Policy
1558
+ command.params['resource'] = resource unless resource.nil?
1559
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1560
+ command.query['fields'] = fields unless fields.nil?
1561
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1562
+ execute_or_queue_command(command, &block)
1563
+ end
1564
+
1565
+ # Lists `PrivateCloud` resources in a given project and location.
1566
+ # @param [String] parent
1567
+ # Required. The resource name of the private cloud to be queried for clusters.
1568
+ # Resource names are schemeless URIs that follow the conventions in https://
1569
+ # cloud.google.com/apis/design/resource_names. For example: `projects/my-project/
1570
+ # locations/us-central1-a`
1571
+ # @param [String] filter
1572
+ # A filter expression that matches resources returned in the response. The
1573
+ # expression must specify the field name, a comparison operator, and the value
1574
+ # that you want to use for filtering. The value must be a string, a number, or a
1575
+ # boolean. The comparison operator must be `=`, `!=`, `>`, or `<`. For example,
1576
+ # if you are filtering a list of private clouds, you can exclude the ones named `
1577
+ # example-pc` by specifying `name != "example-pc"`. You can also filter nested
1578
+ # fields. For example, you could specify `networkConfig.managementCidr = "192.
1579
+ # 168.0.0/24"` to include private clouds only if they have a matching address in
1580
+ # their network configuration. To filter on multiple expressions, provide each
1581
+ # separate expression within parentheses. For example: ``` (name = "example-pc")
1582
+ # (createTime > "2021-04-12T08:15:10.40Z") ``` By default, each expression is an
1583
+ # `AND` expression. However, you can include `AND` and `OR` expressions
1584
+ # explicitly. For example: ``` (name = "private-cloud-1") AND (createTime > "
1585
+ # 2021-04-12T08:15:10.40Z") OR (name = "private-cloud-2") ```
1586
+ # @param [String] order_by
1587
+ # Sorts list results by a certain order. By default, returned results are
1588
+ # ordered by `name` in ascending order. You can also sort results in descending
1589
+ # order based on the `name` value using `orderBy="name desc"`. Currently, only
1590
+ # ordering by `name` is supported.
1591
+ # @param [Fixnum] page_size
1592
+ # The maximum number of private clouds to return in one page. The service may
1593
+ # return fewer than this value. The maximum value is coerced to 1000. The
1594
+ # default value of this field is 500.
1595
+ # @param [String] page_token
1596
+ # A page token, received from a previous `ListPrivateClouds` call. Provide this
1597
+ # to retrieve the subsequent page. When paginating, all other parameters
1598
+ # provided to `ListPrivateClouds` must match the call that provided the page
1599
+ # token.
1600
+ # @param [String] fields
1601
+ # Selector specifying which fields to include in a partial response.
1602
+ # @param [String] quota_user
1603
+ # Available to use for quota purposes for server-side applications. Can be any
1604
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1605
+ # @param [Google::Apis::RequestOptions] options
1606
+ # Request-specific options
1607
+ #
1608
+ # @yield [result, err] Result & error if block supplied
1609
+ # @yieldparam result [Google::Apis::VmwareengineV1::ListPrivateCloudsResponse] parsed result object
1610
+ # @yieldparam err [StandardError] error object if request failed
1611
+ #
1612
+ # @return [Google::Apis::VmwareengineV1::ListPrivateCloudsResponse]
1613
+ #
1614
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1615
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1616
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1617
+ def list_project_location_private_clouds(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1618
+ command = make_simple_command(:get, 'v1/{+parent}/privateClouds', options)
1619
+ command.response_representation = Google::Apis::VmwareengineV1::ListPrivateCloudsResponse::Representation
1620
+ command.response_class = Google::Apis::VmwareengineV1::ListPrivateCloudsResponse
1621
+ command.params['parent'] = parent unless parent.nil?
1622
+ command.query['filter'] = filter unless filter.nil?
1623
+ command.query['orderBy'] = order_by unless order_by.nil?
1624
+ command.query['pageSize'] = page_size unless page_size.nil?
1625
+ command.query['pageToken'] = page_token unless page_token.nil?
1626
+ command.query['fields'] = fields unless fields.nil?
1627
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1628
+ execute_or_queue_command(command, &block)
1629
+ end
1630
+
1631
+ # Modifies a `PrivateCloud` resource. Only the following fields can be updated: `
1632
+ # description`. Only fields specified in `updateMask` are applied. During
1633
+ # operation processing, the resource is temporarily in the `ACTIVE` state before
1634
+ # the operation fully completes. For that period of time, you can't update the
1635
+ # resource. Use the operation status to determine when the processing fully
1636
+ # completes.
1637
+ # @param [String] name
1638
+ # Output only. The resource name of this private cloud. Resource names are
1639
+ # schemeless URIs that follow the conventions in https://cloud.google.com/apis/
1640
+ # design/resource_names. For example: `projects/my-project/locations/us-central1-
1641
+ # a/privateClouds/my-cloud`
1642
+ # @param [Google::Apis::VmwareengineV1::PrivateCloud] private_cloud_object
1643
+ # @param [String] request_id
1644
+ # Optional. The request ID must be a valid UUID with the exception that zero
1645
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
1646
+ # @param [String] update_mask
1647
+ # Required. Field mask is used to specify the fields to be overwritten in the `
1648
+ # PrivateCloud` resource by the update. The fields specified in `updateMask` are
1649
+ # relative to the resource, not the full request. A field will be overwritten if
1650
+ # it is in the mask. If the user does not provide a mask then all fields will be
1651
+ # overwritten.
1652
+ # @param [String] fields
1653
+ # Selector specifying which fields to include in a partial response.
1654
+ # @param [String] quota_user
1655
+ # Available to use for quota purposes for server-side applications. Can be any
1656
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1657
+ # @param [Google::Apis::RequestOptions] options
1658
+ # Request-specific options
1659
+ #
1660
+ # @yield [result, err] Result & error if block supplied
1661
+ # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
1662
+ # @yieldparam err [StandardError] error object if request failed
1663
+ #
1664
+ # @return [Google::Apis::VmwareengineV1::Operation]
1665
+ #
1666
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1667
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1668
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1669
+ def patch_project_location_private_cloud(name, private_cloud_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1670
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1671
+ command.request_representation = Google::Apis::VmwareengineV1::PrivateCloud::Representation
1672
+ command.request_object = private_cloud_object
1673
+ command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
1674
+ command.response_class = Google::Apis::VmwareengineV1::Operation
1675
+ command.params['name'] = name unless name.nil?
1676
+ command.query['requestId'] = request_id unless request_id.nil?
1677
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1678
+ command.query['fields'] = fields unless fields.nil?
1679
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1680
+ execute_or_queue_command(command, &block)
1681
+ end
1682
+
1683
+ # Resets credentials of the NSX appliance.
1684
+ # @param [String] private_cloud
1685
+ # Required. The resource name of the private cloud to reset credentials for.
1686
+ # Resource names are schemeless URIs that follow the conventions in https://
1687
+ # cloud.google.com/apis/design/resource_names. For example: `projects/my-project/
1688
+ # locations/us-central1-a/privateClouds/my-cloud`
1689
+ # @param [Google::Apis::VmwareengineV1::ResetNsxCredentialsRequest] reset_nsx_credentials_request_object
1690
+ # @param [String] fields
1691
+ # Selector specifying which fields to include in a partial response.
1692
+ # @param [String] quota_user
1693
+ # Available to use for quota purposes for server-side applications. Can be any
1694
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1695
+ # @param [Google::Apis::RequestOptions] options
1696
+ # Request-specific options
1697
+ #
1698
+ # @yield [result, err] Result & error if block supplied
1699
+ # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
1700
+ # @yieldparam err [StandardError] error object if request failed
1701
+ #
1702
+ # @return [Google::Apis::VmwareengineV1::Operation]
1703
+ #
1704
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1705
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1706
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1707
+ def reset_private_cloud_nsx_credentials(private_cloud, reset_nsx_credentials_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1708
+ command = make_simple_command(:post, 'v1/{+privateCloud}:resetNsxCredentials', options)
1709
+ command.request_representation = Google::Apis::VmwareengineV1::ResetNsxCredentialsRequest::Representation
1710
+ command.request_object = reset_nsx_credentials_request_object
1711
+ command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
1712
+ command.response_class = Google::Apis::VmwareengineV1::Operation
1713
+ command.params['privateCloud'] = private_cloud unless private_cloud.nil?
1714
+ command.query['fields'] = fields unless fields.nil?
1715
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1716
+ execute_or_queue_command(command, &block)
1717
+ end
1718
+
1719
+ # Resets credentials of the Vcenter appliance.
1720
+ # @param [String] private_cloud
1721
+ # Required. The resource name of the private cloud to reset credentials for.
1722
+ # Resource names are schemeless URIs that follow the conventions in https://
1723
+ # cloud.google.com/apis/design/resource_names. For example: `projects/my-project/
1724
+ # locations/us-central1-a/privateClouds/my-cloud`
1725
+ # @param [Google::Apis::VmwareengineV1::ResetVcenterCredentialsRequest] reset_vcenter_credentials_request_object
1726
+ # @param [String] fields
1727
+ # Selector specifying which fields to include in a partial response.
1728
+ # @param [String] quota_user
1729
+ # Available to use for quota purposes for server-side applications. Can be any
1730
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1731
+ # @param [Google::Apis::RequestOptions] options
1732
+ # Request-specific options
1733
+ #
1734
+ # @yield [result, err] Result & error if block supplied
1735
+ # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
1736
+ # @yieldparam err [StandardError] error object if request failed
1737
+ #
1738
+ # @return [Google::Apis::VmwareengineV1::Operation]
1739
+ #
1740
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1741
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1742
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1743
+ def reset_private_cloud_vcenter_credentials(private_cloud, reset_vcenter_credentials_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1744
+ command = make_simple_command(:post, 'v1/{+privateCloud}:resetVcenterCredentials', options)
1745
+ command.request_representation = Google::Apis::VmwareengineV1::ResetVcenterCredentialsRequest::Representation
1746
+ command.request_object = reset_vcenter_credentials_request_object
1747
+ command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
1748
+ command.response_class = Google::Apis::VmwareengineV1::Operation
1749
+ command.params['privateCloud'] = private_cloud unless private_cloud.nil?
1750
+ command.query['fields'] = fields unless fields.nil?
1751
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1752
+ execute_or_queue_command(command, &block)
1753
+ end
1754
+
1755
+ # Sets the access control policy on the specified resource. Replaces any
1756
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1757
+ # PERMISSION_DENIED` errors.
1758
+ # @param [String] resource
1759
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
1760
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1761
+ # appropriate value for this field.
1762
+ # @param [Google::Apis::VmwareengineV1::SetIamPolicyRequest] set_iam_policy_request_object
1763
+ # @param [String] fields
1764
+ # Selector specifying which fields to include in a partial response.
1765
+ # @param [String] quota_user
1766
+ # Available to use for quota purposes for server-side applications. Can be any
1767
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1768
+ # @param [Google::Apis::RequestOptions] options
1769
+ # Request-specific options
1770
+ #
1771
+ # @yield [result, err] Result & error if block supplied
1772
+ # @yieldparam result [Google::Apis::VmwareengineV1::Policy] parsed result object
1773
+ # @yieldparam err [StandardError] error object if request failed
1774
+ #
1775
+ # @return [Google::Apis::VmwareengineV1::Policy]
1776
+ #
1777
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1778
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1779
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1780
+ def set_private_cloud_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1781
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1782
+ command.request_representation = Google::Apis::VmwareengineV1::SetIamPolicyRequest::Representation
1783
+ command.request_object = set_iam_policy_request_object
1784
+ command.response_representation = Google::Apis::VmwareengineV1::Policy::Representation
1785
+ command.response_class = Google::Apis::VmwareengineV1::Policy
1786
+ command.params['resource'] = resource unless resource.nil?
1787
+ command.query['fields'] = fields unless fields.nil?
1788
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1789
+ execute_or_queue_command(command, &block)
1790
+ end
1791
+
1792
+ # Gets details of credentials for NSX appliance.
1793
+ # @param [String] private_cloud
1794
+ # Required. The resource name of the private cloud to be queried for credentials.
1795
+ # Resource names are schemeless URIs that follow the conventions in https://
1796
+ # cloud.google.com/apis/design/resource_names. For example: `projects/my-project/
1797
+ # locations/us-central1-a/privateClouds/my-cloud`
1798
+ # @param [String] fields
1799
+ # Selector specifying which fields to include in a partial response.
1800
+ # @param [String] quota_user
1801
+ # Available to use for quota purposes for server-side applications. Can be any
1802
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1803
+ # @param [Google::Apis::RequestOptions] options
1804
+ # Request-specific options
1805
+ #
1806
+ # @yield [result, err] Result & error if block supplied
1807
+ # @yieldparam result [Google::Apis::VmwareengineV1::Credentials] parsed result object
1808
+ # @yieldparam err [StandardError] error object if request failed
1809
+ #
1810
+ # @return [Google::Apis::VmwareengineV1::Credentials]
1811
+ #
1812
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1813
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1814
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1815
+ def show_project_location_private_cloud_nsx_credentials(private_cloud, fields: nil, quota_user: nil, options: nil, &block)
1816
+ command = make_simple_command(:get, 'v1/{+privateCloud}:showNsxCredentials', options)
1817
+ command.response_representation = Google::Apis::VmwareengineV1::Credentials::Representation
1818
+ command.response_class = Google::Apis::VmwareengineV1::Credentials
1819
+ command.params['privateCloud'] = private_cloud unless private_cloud.nil?
1820
+ command.query['fields'] = fields unless fields.nil?
1821
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1822
+ execute_or_queue_command(command, &block)
1823
+ end
1824
+
1825
+ # Gets details of credentials for Vcenter appliance.
1826
+ # @param [String] private_cloud
1827
+ # Required. The resource name of the private cloud to be queried for credentials.
1828
+ # Resource names are schemeless URIs that follow the conventions in https://
1829
+ # cloud.google.com/apis/design/resource_names. For example: `projects/my-project/
1830
+ # locations/us-central1-a/privateClouds/my-cloud`
1831
+ # @param [String] username
1832
+ # Optional. The username of the user to be queried for credentials. The default
1833
+ # value of this field is CloudOwner@gve.local. The provided value must be one of
1834
+ # the following: CloudOwner@gve.local, solution-user-01@gve.local, solution-user-
1835
+ # 02@gve.local, solution-user-03@gve.local, solution-user-04@gve.local, solution-
1836
+ # user-05@gve.local, zertoadmin@gve.local.
1837
+ # @param [String] fields
1838
+ # Selector specifying which fields to include in a partial response.
1839
+ # @param [String] quota_user
1840
+ # Available to use for quota purposes for server-side applications. Can be any
1841
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1842
+ # @param [Google::Apis::RequestOptions] options
1843
+ # Request-specific options
1844
+ #
1845
+ # @yield [result, err] Result & error if block supplied
1846
+ # @yieldparam result [Google::Apis::VmwareengineV1::Credentials] parsed result object
1847
+ # @yieldparam err [StandardError] error object if request failed
1848
+ #
1849
+ # @return [Google::Apis::VmwareengineV1::Credentials]
1850
+ #
1851
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1852
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1853
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1854
+ def show_project_location_private_cloud_vcenter_credentials(private_cloud, username: nil, fields: nil, quota_user: nil, options: nil, &block)
1855
+ command = make_simple_command(:get, 'v1/{+privateCloud}:showVcenterCredentials', options)
1856
+ command.response_representation = Google::Apis::VmwareengineV1::Credentials::Representation
1857
+ command.response_class = Google::Apis::VmwareengineV1::Credentials
1858
+ command.params['privateCloud'] = private_cloud unless private_cloud.nil?
1859
+ command.query['username'] = username unless username.nil?
1860
+ command.query['fields'] = fields unless fields.nil?
1861
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1862
+ execute_or_queue_command(command, &block)
1863
+ end
1864
+
1865
+ # Returns permissions that a caller has on the specified resource. If the
1866
+ # resource does not exist, this will return an empty set of permissions, not a `
1867
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
1868
+ # permission-aware UIs and command-line tools, not for authorization checking.
1869
+ # This operation may "fail open" without warning.
1870
+ # @param [String] resource
1871
+ # REQUIRED: The resource for which the policy detail is being requested. See [
1872
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1873
+ # appropriate value for this field.
1874
+ # @param [Google::Apis::VmwareengineV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1875
+ # @param [String] fields
1876
+ # Selector specifying which fields to include in a partial response.
1877
+ # @param [String] quota_user
1878
+ # Available to use for quota purposes for server-side applications. Can be any
1879
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1880
+ # @param [Google::Apis::RequestOptions] options
1881
+ # Request-specific options
1882
+ #
1883
+ # @yield [result, err] Result & error if block supplied
1884
+ # @yieldparam result [Google::Apis::VmwareengineV1::TestIamPermissionsResponse] parsed result object
1885
+ # @yieldparam err [StandardError] error object if request failed
1886
+ #
1887
+ # @return [Google::Apis::VmwareengineV1::TestIamPermissionsResponse]
1888
+ #
1889
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1890
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1891
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1892
+ def test_private_cloud_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1893
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1894
+ command.request_representation = Google::Apis::VmwareengineV1::TestIamPermissionsRequest::Representation
1895
+ command.request_object = test_iam_permissions_request_object
1896
+ command.response_representation = Google::Apis::VmwareengineV1::TestIamPermissionsResponse::Representation
1897
+ command.response_class = Google::Apis::VmwareengineV1::TestIamPermissionsResponse
1898
+ command.params['resource'] = resource unless resource.nil?
1899
+ command.query['fields'] = fields unless fields.nil?
1900
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1901
+ execute_or_queue_command(command, &block)
1902
+ end
1903
+
1904
+ # Restores a private cloud that was previously scheduled for deletion by `
1905
+ # DeletePrivateCloud`. A `PrivateCloud` resource scheduled for deletion has `
1906
+ # PrivateCloud.state` set to `DELETED` and `PrivateCloud.expireTime` set to the
1907
+ # time when deletion can no longer be reversed.
1908
+ # @param [String] name
1909
+ # Required. The resource name of the private cloud scheduled for deletion.
1910
+ # Resource names are schemeless URIs that follow the conventions in https://
1911
+ # cloud.google.com/apis/design/resource_names. For example: `projects/my-project/
1912
+ # locations/us-central1-a/privateClouds/my-cloud`
1913
+ # @param [Google::Apis::VmwareengineV1::UndeletePrivateCloudRequest] undelete_private_cloud_request_object
1914
+ # @param [String] fields
1915
+ # Selector specifying which fields to include in a partial response.
1916
+ # @param [String] quota_user
1917
+ # Available to use for quota purposes for server-side applications. Can be any
1918
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1919
+ # @param [Google::Apis::RequestOptions] options
1920
+ # Request-specific options
1921
+ #
1922
+ # @yield [result, err] Result & error if block supplied
1923
+ # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
1924
+ # @yieldparam err [StandardError] error object if request failed
1925
+ #
1926
+ # @return [Google::Apis::VmwareengineV1::Operation]
1927
+ #
1928
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1929
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1930
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1931
+ def undelete_private_cloud(name, undelete_private_cloud_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1932
+ command = make_simple_command(:post, 'v1/{+name}:undelete', options)
1933
+ command.request_representation = Google::Apis::VmwareengineV1::UndeletePrivateCloudRequest::Representation
1934
+ command.request_object = undelete_private_cloud_request_object
1935
+ command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
1936
+ command.response_class = Google::Apis::VmwareengineV1::Operation
1937
+ command.params['name'] = name unless name.nil?
1938
+ command.query['fields'] = fields unless fields.nil?
1939
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1940
+ execute_or_queue_command(command, &block)
1941
+ end
1942
+
1943
+ # Updates the parameters of the `DnsForwarding` config, like associated domains.
1944
+ # Only fields specified in `update_mask` are applied.
1945
+ # @param [String] name
1946
+ # Output only. The resource name of this DNS profile. Resource names are
1947
+ # schemeless URIs that follow the conventions in https://cloud.google.com/apis/
1948
+ # design/resource_names. For example: `projects/my-project/locations/us-central1-
1949
+ # a/privateClouds/my-cloud/dnsForwarding`
1950
+ # @param [Google::Apis::VmwareengineV1::DnsForwarding] dns_forwarding_object
1951
+ # @param [String] request_id
1952
+ # Optional. A request ID to identify requests. Specify a unique request ID so
1953
+ # that if you must retry your request, the server will know to ignore the
1954
+ # request if it has already been completed. The server guarantees that a request
1955
+ # doesn't result in creation of duplicate commitments for at least 60 minutes.
1956
+ # For example, consider a situation where you make an initial request and the
1957
+ # request times out. If you make the request again with the same request ID, the
1958
+ # server can check if original operation with the same request ID was received,
1959
+ # and if so, will ignore the second request. This prevents clients from
1960
+ # accidentally creating duplicate commitments. The request ID must be a valid
1961
+ # UUID with the exception that zero UUID is not supported (00000000-0000-0000-
1962
+ # 0000-000000000000).
1963
+ # @param [String] update_mask
1964
+ # Required. Field mask is used to specify the fields to be overwritten in the `
1965
+ # DnsForwarding` resource by the update. The fields specified in the `
1966
+ # update_mask` are relative to the resource, not the full request. A field will
1967
+ # be overwritten if it is in the mask. If the user does not provide a mask then
1968
+ # all fields will be overwritten.
1969
+ # @param [String] fields
1970
+ # Selector specifying which fields to include in a partial response.
1971
+ # @param [String] quota_user
1972
+ # Available to use for quota purposes for server-side applications. Can be any
1973
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1974
+ # @param [Google::Apis::RequestOptions] options
1975
+ # Request-specific options
1976
+ #
1977
+ # @yield [result, err] Result & error if block supplied
1978
+ # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
1979
+ # @yieldparam err [StandardError] error object if request failed
1980
+ #
1981
+ # @return [Google::Apis::VmwareengineV1::Operation]
1982
+ #
1983
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1984
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1985
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1986
+ def update_project_location_private_cloud_dns_forwarding(name, dns_forwarding_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1987
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1988
+ command.request_representation = Google::Apis::VmwareengineV1::DnsForwarding::Representation
1989
+ command.request_object = dns_forwarding_object
1990
+ command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
1991
+ command.response_class = Google::Apis::VmwareengineV1::Operation
1992
+ command.params['name'] = name unless name.nil?
1993
+ command.query['requestId'] = request_id unless request_id.nil?
1994
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1995
+ command.query['fields'] = fields unless fields.nil?
1996
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1997
+ execute_or_queue_command(command, &block)
1998
+ end
1999
+
2000
+ # Creates a new cluster in a given private cloud. Creating a new cluster
2001
+ # provides additional nodes for use in the parent private cloud and requires
2002
+ # sufficient [node quota](https://cloud.google.com/vmware-engine/quotas).
2003
+ # @param [String] parent
2004
+ # Required. The resource name of the private cloud to create a new cluster in.
2005
+ # Resource names are schemeless URIs that follow the conventions in https://
2006
+ # cloud.google.com/apis/design/resource_names. For example: `projects/my-project/
2007
+ # locations/us-central1-a/privateClouds/my-cloud`
2008
+ # @param [Google::Apis::VmwareengineV1::Cluster] cluster_object
2009
+ # @param [String] cluster_id
2010
+ # Required. The user-provided identifier of the new `Cluster`. This identifier
2011
+ # must be unique among clusters within the parent and becomes the final token in
2012
+ # the name URI. The identifier must meet the following requirements: * Only
2013
+ # contains 1-63 alphanumeric characters and hyphens * Begins with an
2014
+ # alphabetical character * Ends with a non-hyphen character * Not formatted as a
2015
+ # UUID * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
2016
+ # (section 3.5)
2017
+ # @param [String] request_id
2018
+ # Optional. The request ID must be a valid UUID with the exception that zero
2019
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
2020
+ # @param [Boolean] validate_only
2021
+ # Optional. True if you want the request to be validated and not executed; false
2022
+ # otherwise.
2023
+ # @param [String] fields
2024
+ # Selector specifying which fields to include in a partial response.
2025
+ # @param [String] quota_user
2026
+ # Available to use for quota purposes for server-side applications. Can be any
2027
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2028
+ # @param [Google::Apis::RequestOptions] options
2029
+ # Request-specific options
2030
+ #
2031
+ # @yield [result, err] Result & error if block supplied
2032
+ # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
2033
+ # @yieldparam err [StandardError] error object if request failed
2034
+ #
2035
+ # @return [Google::Apis::VmwareengineV1::Operation]
2036
+ #
2037
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2038
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2039
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2040
+ def create_project_location_private_cloud_cluster(parent, cluster_object = nil, cluster_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
2041
+ command = make_simple_command(:post, 'v1/{+parent}/clusters', options)
2042
+ command.request_representation = Google::Apis::VmwareengineV1::Cluster::Representation
2043
+ command.request_object = cluster_object
2044
+ command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
2045
+ command.response_class = Google::Apis::VmwareengineV1::Operation
2046
+ command.params['parent'] = parent unless parent.nil?
2047
+ command.query['clusterId'] = cluster_id unless cluster_id.nil?
2048
+ command.query['requestId'] = request_id unless request_id.nil?
2049
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
2050
+ command.query['fields'] = fields unless fields.nil?
2051
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2052
+ execute_or_queue_command(command, &block)
2053
+ end
2054
+
2055
+ # Deletes a `Cluster` resource. To avoid unintended data loss, migrate or
2056
+ # gracefully shut down any workloads running on the cluster before deletion. You
2057
+ # cannot delete the management cluster of a private cloud using this method.
2058
+ # @param [String] name
2059
+ # Required. The resource name of the cluster to delete. Resource names are
2060
+ # schemeless URIs that follow the conventions in https://cloud.google.com/apis/
2061
+ # design/resource_names. For example: `projects/my-project/locations/us-central1-
2062
+ # a/privateClouds/my-cloud/clusters/my-cluster`
2063
+ # @param [String] request_id
2064
+ # Optional. The request ID must be a valid UUID with the exception that zero
2065
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
2066
+ # @param [String] fields
2067
+ # Selector specifying which fields to include in a partial response.
2068
+ # @param [String] quota_user
2069
+ # Available to use for quota purposes for server-side applications. Can be any
2070
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2071
+ # @param [Google::Apis::RequestOptions] options
2072
+ # Request-specific options
2073
+ #
2074
+ # @yield [result, err] Result & error if block supplied
2075
+ # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
2076
+ # @yieldparam err [StandardError] error object if request failed
2077
+ #
2078
+ # @return [Google::Apis::VmwareengineV1::Operation]
2079
+ #
2080
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2081
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2082
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2083
+ def delete_project_location_private_cloud_cluster(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2084
+ command = make_simple_command(:delete, 'v1/{+name}', options)
2085
+ command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
2086
+ command.response_class = Google::Apis::VmwareengineV1::Operation
2087
+ command.params['name'] = name unless name.nil?
2088
+ command.query['requestId'] = request_id unless request_id.nil?
2089
+ command.query['fields'] = fields unless fields.nil?
2090
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2091
+ execute_or_queue_command(command, &block)
2092
+ end
2093
+
2094
+ # Retrieves a `Cluster` resource by its resource name.
2095
+ # @param [String] name
2096
+ # Required. The cluster resource name to retrieve. Resource names are schemeless
2097
+ # URIs that follow the conventions in https://cloud.google.com/apis/design/
2098
+ # resource_names. For example: `projects/my-project/locations/us-central1-a/
2099
+ # privateClouds/my-cloud/clusters/my-cluster`
2100
+ # @param [String] fields
2101
+ # Selector specifying which fields to include in a partial response.
2102
+ # @param [String] quota_user
2103
+ # Available to use for quota purposes for server-side applications. Can be any
2104
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2105
+ # @param [Google::Apis::RequestOptions] options
2106
+ # Request-specific options
2107
+ #
2108
+ # @yield [result, err] Result & error if block supplied
2109
+ # @yieldparam result [Google::Apis::VmwareengineV1::Cluster] parsed result object
2110
+ # @yieldparam err [StandardError] error object if request failed
2111
+ #
2112
+ # @return [Google::Apis::VmwareengineV1::Cluster]
2113
+ #
2114
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2115
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2116
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2117
+ def get_project_location_private_cloud_cluster(name, fields: nil, quota_user: nil, options: nil, &block)
2118
+ command = make_simple_command(:get, 'v1/{+name}', options)
2119
+ command.response_representation = Google::Apis::VmwareengineV1::Cluster::Representation
2120
+ command.response_class = Google::Apis::VmwareengineV1::Cluster
2121
+ command.params['name'] = name unless name.nil?
2122
+ command.query['fields'] = fields unless fields.nil?
2123
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2124
+ execute_or_queue_command(command, &block)
2125
+ end
2126
+
2127
+ # Gets the access control policy for a resource. Returns an empty policy if the
2128
+ # resource exists and does not have a policy set.
2129
+ # @param [String] resource
2130
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
2131
+ # names](https://cloud.google.com/apis/design/resource_names) for the
2132
+ # appropriate value for this field.
2133
+ # @param [Fixnum] options_requested_policy_version
2134
+ # Optional. The maximum policy version that will be used to format the policy.
2135
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
2136
+ # rejected. Requests for policies with any conditional role bindings must
2137
+ # specify version 3. Policies with no conditional role bindings may specify any
2138
+ # valid value or leave the field unset. The policy in the response might use the
2139
+ # policy version that you specified, or it might use a lower policy version. For
2140
+ # example, if you specify version 3, but the policy has no conditional role
2141
+ # bindings, the response uses version 1. To learn which resources support
2142
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
2143
+ # google.com/iam/help/conditions/resource-policies).
2144
+ # @param [String] fields
2145
+ # Selector specifying which fields to include in a partial response.
2146
+ # @param [String] quota_user
2147
+ # Available to use for quota purposes for server-side applications. Can be any
2148
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2149
+ # @param [Google::Apis::RequestOptions] options
2150
+ # Request-specific options
2151
+ #
2152
+ # @yield [result, err] Result & error if block supplied
2153
+ # @yieldparam result [Google::Apis::VmwareengineV1::Policy] parsed result object
2154
+ # @yieldparam err [StandardError] error object if request failed
2155
+ #
2156
+ # @return [Google::Apis::VmwareengineV1::Policy]
2157
+ #
2158
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2159
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2160
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2161
+ def get_project_location_private_cloud_cluster_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
2162
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
2163
+ command.response_representation = Google::Apis::VmwareengineV1::Policy::Representation
2164
+ command.response_class = Google::Apis::VmwareengineV1::Policy
2165
+ command.params['resource'] = resource unless resource.nil?
2166
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
2167
+ command.query['fields'] = fields unless fields.nil?
2168
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2169
+ execute_or_queue_command(command, &block)
2170
+ end
2171
+
2172
+ # Lists `Cluster` resources in a given private cloud.
2173
+ # @param [String] parent
2174
+ # Required. The resource name of the private cloud to query for clusters.
2175
+ # Resource names are schemeless URIs that follow the conventions in https://
2176
+ # cloud.google.com/apis/design/resource_names. For example: `projects/my-project/
2177
+ # locations/us-central1-a/privateClouds/my-cloud`
2178
+ # @param [String] filter
2179
+ # To filter on multiple expressions, provide each separate expression within
2180
+ # parentheses. For example: ``` (name = "example-cluster") (nodeCount = "3") ```
2181
+ # By default, each expression is an `AND` expression. However, you can include `
2182
+ # AND` and `OR` expressions explicitly. For example: ``` (name = "example-
2183
+ # cluster-1") AND (createTime > "2021-04-12T08:15:10.40Z") OR (name = "example-
2184
+ # cluster-2") ```
2185
+ # @param [String] order_by
2186
+ # Sorts list results by a certain order. By default, returned results are
2187
+ # ordered by `name` in ascending order. You can also sort results in descending
2188
+ # order based on the `name` value using `orderBy="name desc"`. Currently, only
2189
+ # ordering by `name` is supported.
2190
+ # @param [Fixnum] page_size
2191
+ # The maximum number of clusters to return in one page. The service may return
2192
+ # fewer than this value. The maximum value is coerced to 1000. The default value
2193
+ # of this field is 500.
2194
+ # @param [String] page_token
2195
+ # A page token, received from a previous `ListClusters` call. Provide this to
2196
+ # retrieve the subsequent page. When paginating, all other parameters provided
2197
+ # to `ListClusters` must match the call that provided the page token.
2198
+ # @param [String] fields
2199
+ # Selector specifying which fields to include in a partial response.
2200
+ # @param [String] quota_user
2201
+ # Available to use for quota purposes for server-side applications. Can be any
2202
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2203
+ # @param [Google::Apis::RequestOptions] options
2204
+ # Request-specific options
2205
+ #
2206
+ # @yield [result, err] Result & error if block supplied
2207
+ # @yieldparam result [Google::Apis::VmwareengineV1::ListClustersResponse] parsed result object
2208
+ # @yieldparam err [StandardError] error object if request failed
2209
+ #
2210
+ # @return [Google::Apis::VmwareengineV1::ListClustersResponse]
2211
+ #
2212
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2213
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2214
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2215
+ def list_project_location_private_cloud_clusters(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2216
+ command = make_simple_command(:get, 'v1/{+parent}/clusters', options)
2217
+ command.response_representation = Google::Apis::VmwareengineV1::ListClustersResponse::Representation
2218
+ command.response_class = Google::Apis::VmwareengineV1::ListClustersResponse
2219
+ command.params['parent'] = parent unless parent.nil?
2220
+ command.query['filter'] = filter unless filter.nil?
2221
+ command.query['orderBy'] = order_by unless order_by.nil?
2222
+ command.query['pageSize'] = page_size unless page_size.nil?
2223
+ command.query['pageToken'] = page_token unless page_token.nil?
2224
+ command.query['fields'] = fields unless fields.nil?
2225
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2226
+ execute_or_queue_command(command, &block)
2227
+ end
2228
+
2229
+ # Modifies a `Cluster` resource. Only fields specified in `updateMask` are
2230
+ # applied. During operation processing, the resource is temporarily in the `
2231
+ # ACTIVE` state before the operation fully completes. For that period of time,
2232
+ # you can't update the resource. Use the operation status to determine when the
2233
+ # processing fully completes.
2234
+ # @param [String] name
2235
+ # Output only. The resource name of this cluster. Resource names are schemeless
2236
+ # URIs that follow the conventions in https://cloud.google.com/apis/design/
2237
+ # resource_names. For example: `projects/my-project/locations/us-central1-a/
2238
+ # privateClouds/my-cloud/clusters/my-cluster`
2239
+ # @param [Google::Apis::VmwareengineV1::Cluster] cluster_object
677
2240
  # @param [String] request_id
678
2241
  # Optional. The request ID must be a valid UUID with the exception that zero
679
2242
  # UUID is not supported (00000000-0000-0000-0000-000000000000).
2243
+ # @param [String] update_mask
2244
+ # Required. Field mask is used to specify the fields to be overwritten in the `
2245
+ # Cluster` resource by the update. The fields specified in the `updateMask` are
2246
+ # relative to the resource, not the full request. A field will be overwritten if
2247
+ # it is in the mask. If the user does not provide a mask then all fields will be
2248
+ # overwritten.
2249
+ # @param [Boolean] validate_only
2250
+ # Optional. True if you want the request to be validated and not executed; false
2251
+ # otherwise.
680
2252
  # @param [String] fields
681
2253
  # Selector specifying which fields to include in a partial response.
682
2254
  # @param [String] quota_user
@@ -694,25 +2266,29 @@ module Google
694
2266
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
695
2267
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
696
2268
  # @raise [Google::Apis::AuthorizationError] Authorization is required
697
- def delete_project_location_private_cloud(name, delay_hours: nil, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
698
- command = make_simple_command(:delete, 'v1/{+name}', options)
2269
+ def patch_project_location_private_cloud_cluster(name, cluster_object = nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
2270
+ command = make_simple_command(:patch, 'v1/{+name}', options)
2271
+ command.request_representation = Google::Apis::VmwareengineV1::Cluster::Representation
2272
+ command.request_object = cluster_object
699
2273
  command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
700
2274
  command.response_class = Google::Apis::VmwareengineV1::Operation
701
2275
  command.params['name'] = name unless name.nil?
702
- command.query['delayHours'] = delay_hours unless delay_hours.nil?
703
- command.query['force'] = force unless force.nil?
704
2276
  command.query['requestId'] = request_id unless request_id.nil?
2277
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2278
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
705
2279
  command.query['fields'] = fields unless fields.nil?
706
2280
  command.query['quotaUser'] = quota_user unless quota_user.nil?
707
2281
  execute_or_queue_command(command, &block)
708
2282
  end
709
2283
 
710
- # Retrieves a `PrivateCloud` resource by its resource name.
711
- # @param [String] name
712
- # Required. The resource name of the private cloud to retrieve. Resource names
713
- # are schemeless URIs that follow the conventions in https://cloud.google.com/
714
- # apis/design/resource_names. For example: `projects/my-project/locations/us-
715
- # central1-a/privateClouds/my-cloud`
2284
+ # Sets the access control policy on the specified resource. Replaces any
2285
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
2286
+ # PERMISSION_DENIED` errors.
2287
+ # @param [String] resource
2288
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
2289
+ # names](https://cloud.google.com/apis/design/resource_names) for the
2290
+ # appropriate value for this field.
2291
+ # @param [Google::Apis::VmwareengineV1::SetIamPolicyRequest] set_iam_policy_request_object
716
2292
  # @param [String] fields
717
2293
  # Selector specifying which fields to include in a partial response.
718
2294
  # @param [String] quota_user
@@ -722,41 +2298,36 @@ module Google
722
2298
  # Request-specific options
723
2299
  #
724
2300
  # @yield [result, err] Result & error if block supplied
725
- # @yieldparam result [Google::Apis::VmwareengineV1::PrivateCloud] parsed result object
2301
+ # @yieldparam result [Google::Apis::VmwareengineV1::Policy] parsed result object
726
2302
  # @yieldparam err [StandardError] error object if request failed
727
2303
  #
728
- # @return [Google::Apis::VmwareengineV1::PrivateCloud]
2304
+ # @return [Google::Apis::VmwareengineV1::Policy]
729
2305
  #
730
2306
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
731
2307
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
732
2308
  # @raise [Google::Apis::AuthorizationError] Authorization is required
733
- def get_project_location_private_cloud(name, fields: nil, quota_user: nil, options: nil, &block)
734
- command = make_simple_command(:get, 'v1/{+name}', options)
735
- command.response_representation = Google::Apis::VmwareengineV1::PrivateCloud::Representation
736
- command.response_class = Google::Apis::VmwareengineV1::PrivateCloud
737
- command.params['name'] = name unless name.nil?
2309
+ def set_cluster_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2310
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
2311
+ command.request_representation = Google::Apis::VmwareengineV1::SetIamPolicyRequest::Representation
2312
+ command.request_object = set_iam_policy_request_object
2313
+ command.response_representation = Google::Apis::VmwareengineV1::Policy::Representation
2314
+ command.response_class = Google::Apis::VmwareengineV1::Policy
2315
+ command.params['resource'] = resource unless resource.nil?
738
2316
  command.query['fields'] = fields unless fields.nil?
739
2317
  command.query['quotaUser'] = quota_user unless quota_user.nil?
740
2318
  execute_or_queue_command(command, &block)
741
2319
  end
742
2320
 
743
- # Gets the access control policy for a resource. Returns an empty policy if the
744
- # resource exists and does not have a policy set.
2321
+ # Returns permissions that a caller has on the specified resource. If the
2322
+ # resource does not exist, this will return an empty set of permissions, not a `
2323
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
2324
+ # permission-aware UIs and command-line tools, not for authorization checking.
2325
+ # This operation may "fail open" without warning.
745
2326
  # @param [String] resource
746
- # REQUIRED: The resource for which the policy is being requested. See [Resource
747
- # names](https://cloud.google.com/apis/design/resource_names) for the
2327
+ # REQUIRED: The resource for which the policy detail is being requested. See [
2328
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
748
2329
  # appropriate value for this field.
749
- # @param [Fixnum] options_requested_policy_version
750
- # Optional. The maximum policy version that will be used to format the policy.
751
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
752
- # rejected. Requests for policies with any conditional role bindings must
753
- # specify version 3. Policies with no conditional role bindings may specify any
754
- # valid value or leave the field unset. The policy in the response might use the
755
- # policy version that you specified, or it might use a lower policy version. For
756
- # example, if you specify version 3, but the policy has no conditional role
757
- # bindings, the response uses version 1. To learn which resources support
758
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
759
- # google.com/iam/help/conditions/resource-policies).
2330
+ # @param [Google::Apis::VmwareengineV1::TestIamPermissionsRequest] test_iam_permissions_request_object
760
2331
  # @param [String] fields
761
2332
  # Selector specifying which fields to include in a partial response.
762
2333
  # @param [String] quota_user
@@ -766,60 +2337,31 @@ module Google
766
2337
  # Request-specific options
767
2338
  #
768
2339
  # @yield [result, err] Result & error if block supplied
769
- # @yieldparam result [Google::Apis::VmwareengineV1::Policy] parsed result object
2340
+ # @yieldparam result [Google::Apis::VmwareengineV1::TestIamPermissionsResponse] parsed result object
770
2341
  # @yieldparam err [StandardError] error object if request failed
771
2342
  #
772
- # @return [Google::Apis::VmwareengineV1::Policy]
2343
+ # @return [Google::Apis::VmwareengineV1::TestIamPermissionsResponse]
773
2344
  #
774
2345
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
775
2346
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
776
2347
  # @raise [Google::Apis::AuthorizationError] Authorization is required
777
- def get_project_location_private_cloud_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
778
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
779
- command.response_representation = Google::Apis::VmwareengineV1::Policy::Representation
780
- command.response_class = Google::Apis::VmwareengineV1::Policy
2348
+ def test_cluster_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2349
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
2350
+ command.request_representation = Google::Apis::VmwareengineV1::TestIamPermissionsRequest::Representation
2351
+ command.request_object = test_iam_permissions_request_object
2352
+ command.response_representation = Google::Apis::VmwareengineV1::TestIamPermissionsResponse::Representation
2353
+ command.response_class = Google::Apis::VmwareengineV1::TestIamPermissionsResponse
781
2354
  command.params['resource'] = resource unless resource.nil?
782
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
783
2355
  command.query['fields'] = fields unless fields.nil?
784
2356
  command.query['quotaUser'] = quota_user unless quota_user.nil?
785
2357
  execute_or_queue_command(command, &block)
786
2358
  end
787
2359
 
788
- # Lists `PrivateCloud` resources in a given project and location.
789
- # @param [String] parent
790
- # Required. The resource name of the private cloud to be queried for clusters.
791
- # Resource names are schemeless URIs that follow the conventions in https://
792
- # cloud.google.com/apis/design/resource_names. For example: `projects/my-project/
793
- # locations/us-central1-a`
794
- # @param [String] filter
795
- # A filter expression that matches resources returned in the response. The
796
- # expression must specify the field name, a comparison operator, and the value
797
- # that you want to use for filtering. The value must be a string, a number, or a
798
- # boolean. The comparison operator must be `=`, `!=`, `>`, or `<`. For example,
799
- # if you are filtering a list of private clouds, you can exclude the ones named `
800
- # example-pc` by specifying `name != "example-pc"`. You can also filter nested
801
- # fields. For example, you could specify `networkConfig.managementCidr = "192.
802
- # 168.0.0/24"` to include private clouds only if they have a matching address in
803
- # their network configuration. To filter on multiple expressions, provide each
804
- # separate expression within parentheses. For example: ``` (name = "example-pc")
805
- # (createTime > "2021-04-12T08:15:10.40Z") ``` By default, each expression is an
806
- # `AND` expression. However, you can include `AND` and `OR` expressions
807
- # explicitly. For example: ``` (name = "private-cloud-1") AND (createTime > "
808
- # 2021-04-12T08:15:10.40Z") OR (name = "private-cloud-2") ```
809
- # @param [String] order_by
810
- # Sorts list results by a certain order. By default, returned results are
811
- # ordered by `name` in ascending order. You can also sort results in descending
812
- # order based on the `name` value using `orderBy="name desc"`. Currently, only
813
- # ordering by `name` is supported.
814
- # @param [Fixnum] page_size
815
- # The maximum number of private clouds to return in one page. The service may
816
- # return fewer than this value. The maximum value is coerced to 1000. The
817
- # default value of this field is 500.
818
- # @param [String] page_token
819
- # A page token, received from a previous `ListPrivateClouds` call. Provide this
820
- # to retrieve the subsequent page. When paginating, all other parameters
821
- # provided to `ListPrivateClouds` must match the call that provided the page
822
- # token.
2360
+ # Gets details of a single node.
2361
+ # @param [String] name
2362
+ # Required. The resource name of the node to retrieve. For example: `projects/`
2363
+ # project`/locations/`location`/privateClouds/`private_cloud`/clusters/`cluster`/
2364
+ # nodes/`node``
823
2365
  # @param [String] fields
824
2366
  # Selector specifying which fields to include in a partial response.
825
2367
  # @param [String] quota_user
@@ -829,49 +2371,38 @@ module Google
829
2371
  # Request-specific options
830
2372
  #
831
2373
  # @yield [result, err] Result & error if block supplied
832
- # @yieldparam result [Google::Apis::VmwareengineV1::ListPrivateCloudsResponse] parsed result object
2374
+ # @yieldparam result [Google::Apis::VmwareengineV1::Node] parsed result object
833
2375
  # @yieldparam err [StandardError] error object if request failed
834
2376
  #
835
- # @return [Google::Apis::VmwareengineV1::ListPrivateCloudsResponse]
2377
+ # @return [Google::Apis::VmwareengineV1::Node]
836
2378
  #
837
2379
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
838
2380
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
839
2381
  # @raise [Google::Apis::AuthorizationError] Authorization is required
840
- def list_project_location_private_clouds(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
841
- command = make_simple_command(:get, 'v1/{+parent}/privateClouds', options)
842
- command.response_representation = Google::Apis::VmwareengineV1::ListPrivateCloudsResponse::Representation
843
- command.response_class = Google::Apis::VmwareengineV1::ListPrivateCloudsResponse
844
- command.params['parent'] = parent unless parent.nil?
845
- command.query['filter'] = filter unless filter.nil?
846
- command.query['orderBy'] = order_by unless order_by.nil?
847
- command.query['pageSize'] = page_size unless page_size.nil?
848
- command.query['pageToken'] = page_token unless page_token.nil?
2382
+ def get_project_location_private_cloud_cluster_node(name, fields: nil, quota_user: nil, options: nil, &block)
2383
+ command = make_simple_command(:get, 'v1/{+name}', options)
2384
+ command.response_representation = Google::Apis::VmwareengineV1::Node::Representation
2385
+ command.response_class = Google::Apis::VmwareengineV1::Node
2386
+ command.params['name'] = name unless name.nil?
849
2387
  command.query['fields'] = fields unless fields.nil?
850
2388
  command.query['quotaUser'] = quota_user unless quota_user.nil?
851
2389
  execute_or_queue_command(command, &block)
852
2390
  end
853
2391
 
854
- # Modifies a `PrivateCloud` resource. Only the following fields can be updated: `
855
- # description`. Only fields specified in `updateMask` are applied. During
856
- # operation processing, the resource is temporarily in the `ACTIVE` state before
857
- # the operation fully completes. For that period of time, you can't update the
858
- # resource. Use the operation status to determine when the processing fully
859
- # completes.
860
- # @param [String] name
861
- # Output only. The resource name of this private cloud. Resource names are
862
- # schemeless URIs that follow the conventions in https://cloud.google.com/apis/
863
- # design/resource_names. For example: `projects/my-project/locations/us-central1-
864
- # a/privateClouds/my-cloud`
865
- # @param [Google::Apis::VmwareengineV1::PrivateCloud] private_cloud_object
866
- # @param [String] request_id
867
- # Optional. The request ID must be a valid UUID with the exception that zero
868
- # UUID is not supported (00000000-0000-0000-0000-000000000000).
869
- # @param [String] update_mask
870
- # Required. Field mask is used to specify the fields to be overwritten in the `
871
- # PrivateCloud` resource by the update. The fields specified in `updateMask` are
872
- # relative to the resource, not the full request. A field will be overwritten if
873
- # it is in the mask. If the user does not provide a mask then all fields will be
874
- # overwritten.
2392
+ # Lists nodes in a given cluster.
2393
+ # @param [String] parent
2394
+ # Required. The resource name of the cluster to be queried for nodes. Resource
2395
+ # names are schemeless URIs that follow the conventions in https://cloud.google.
2396
+ # com/apis/design/resource_names. For example: `projects/my-project/locations/us-
2397
+ # central1-a/privateClouds/my-cloud/clusters/my-cluster`
2398
+ # @param [Fixnum] page_size
2399
+ # The maximum number of nodes to return in one page. The service may return
2400
+ # fewer than this value. The maximum value is coerced to 1000. The default value
2401
+ # of this field is 500.
2402
+ # @param [String] page_token
2403
+ # A page token, received from a previous `ListNodes` call. Provide this to
2404
+ # retrieve the subsequent page. When paginating, all other parameters provided
2405
+ # to `ListNodes` must match the call that provided the page token.
875
2406
  # @param [String] fields
876
2407
  # Selector specifying which fields to include in a partial response.
877
2408
  # @param [String] quota_user
@@ -881,35 +2412,55 @@ module Google
881
2412
  # Request-specific options
882
2413
  #
883
2414
  # @yield [result, err] Result & error if block supplied
884
- # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
2415
+ # @yieldparam result [Google::Apis::VmwareengineV1::ListNodesResponse] parsed result object
885
2416
  # @yieldparam err [StandardError] error object if request failed
886
2417
  #
887
- # @return [Google::Apis::VmwareengineV1::Operation]
2418
+ # @return [Google::Apis::VmwareengineV1::ListNodesResponse]
888
2419
  #
889
2420
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
890
2421
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
891
2422
  # @raise [Google::Apis::AuthorizationError] Authorization is required
892
- def patch_project_location_private_cloud(name, private_cloud_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
893
- command = make_simple_command(:patch, 'v1/{+name}', options)
894
- command.request_representation = Google::Apis::VmwareengineV1::PrivateCloud::Representation
895
- command.request_object = private_cloud_object
896
- command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
897
- command.response_class = Google::Apis::VmwareengineV1::Operation
898
- command.params['name'] = name unless name.nil?
899
- command.query['requestId'] = request_id unless request_id.nil?
900
- command.query['updateMask'] = update_mask unless update_mask.nil?
2423
+ def list_project_location_private_cloud_cluster_nodes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2424
+ command = make_simple_command(:get, 'v1/{+parent}/nodes', options)
2425
+ command.response_representation = Google::Apis::VmwareengineV1::ListNodesResponse::Representation
2426
+ command.response_class = Google::Apis::VmwareengineV1::ListNodesResponse
2427
+ command.params['parent'] = parent unless parent.nil?
2428
+ command.query['pageSize'] = page_size unless page_size.nil?
2429
+ command.query['pageToken'] = page_token unless page_token.nil?
901
2430
  command.query['fields'] = fields unless fields.nil?
902
2431
  command.query['quotaUser'] = quota_user unless quota_user.nil?
903
2432
  execute_or_queue_command(command, &block)
904
2433
  end
905
2434
 
906
- # Resets credentials of the NSX appliance.
907
- # @param [String] private_cloud
908
- # Required. The resource name of the private cloud to reset credentials for.
909
- # Resource names are schemeless URIs that follow the conventions in https://
910
- # cloud.google.com/apis/design/resource_names. For example: `projects/my-project/
911
- # locations/us-central1-a/privateClouds/my-cloud`
912
- # @param [Google::Apis::VmwareengineV1::ResetNsxCredentialsRequest] reset_nsx_credentials_request_object
2435
+ # Creates a new `ExternalAddress` resource in a given private cloud. The network
2436
+ # policy that corresponds to the private cloud must have the external IP address
2437
+ # network service enabled (`NetworkPolicy.external_ip`).
2438
+ # @param [String] parent
2439
+ # Required. The resource name of the private cloud to create a new external IP
2440
+ # address in. Resource names are schemeless URIs that follow the conventions in
2441
+ # https://cloud.google.com/apis/design/resource_names. For example: `projects/my-
2442
+ # project/locations/us-central1-a/privateClouds/my-cloud`
2443
+ # @param [Google::Apis::VmwareengineV1::ExternalAddress] external_address_object
2444
+ # @param [String] external_address_id
2445
+ # Required. The user-provided identifier of the `ExternalAddress` to be created.
2446
+ # This identifier must be unique among `ExternalAddress` resources within the
2447
+ # parent and becomes the final token in the name URI. The identifier must meet
2448
+ # the following requirements: * Only contains 1-63 alphanumeric characters and
2449
+ # hyphens * Begins with an alphabetical character * Ends with a non-hyphen
2450
+ # character * Not formatted as a UUID * Complies with [RFC 1034](https://
2451
+ # datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
2452
+ # @param [String] request_id
2453
+ # Optional. A request ID to identify requests. Specify a unique request ID so
2454
+ # that if you must retry your request, the server will know to ignore the
2455
+ # request if it has already been completed. The server guarantees that a request
2456
+ # doesn't result in creation of duplicate commitments for at least 60 minutes.
2457
+ # For example, consider a situation where you make an initial request and the
2458
+ # request times out. If you make the request again with the same request ID, the
2459
+ # server can check if the original operation with the same request ID was
2460
+ # received, and if so, will ignore the second request. This prevents clients
2461
+ # from accidentally creating duplicate commitments. The request ID must be a
2462
+ # valid UUID with the exception that zero UUID is not supported (00000000-0000-
2463
+ # 0000-0000-000000000000).
913
2464
  # @param [String] fields
914
2465
  # Selector specifying which fields to include in a partial response.
915
2466
  # @param [String] quota_user
@@ -927,25 +2478,40 @@ module Google
927
2478
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
928
2479
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
929
2480
  # @raise [Google::Apis::AuthorizationError] Authorization is required
930
- def reset_private_cloud_nsx_credentials(private_cloud, reset_nsx_credentials_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
931
- command = make_simple_command(:post, 'v1/{+privateCloud}:resetNsxCredentials', options)
932
- command.request_representation = Google::Apis::VmwareengineV1::ResetNsxCredentialsRequest::Representation
933
- command.request_object = reset_nsx_credentials_request_object
2481
+ def create_project_location_private_cloud_external_address(parent, external_address_object = nil, external_address_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2482
+ command = make_simple_command(:post, 'v1/{+parent}/externalAddresses', options)
2483
+ command.request_representation = Google::Apis::VmwareengineV1::ExternalAddress::Representation
2484
+ command.request_object = external_address_object
934
2485
  command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
935
2486
  command.response_class = Google::Apis::VmwareengineV1::Operation
936
- command.params['privateCloud'] = private_cloud unless private_cloud.nil?
2487
+ command.params['parent'] = parent unless parent.nil?
2488
+ command.query['externalAddressId'] = external_address_id unless external_address_id.nil?
2489
+ command.query['requestId'] = request_id unless request_id.nil?
937
2490
  command.query['fields'] = fields unless fields.nil?
938
2491
  command.query['quotaUser'] = quota_user unless quota_user.nil?
939
2492
  execute_or_queue_command(command, &block)
940
2493
  end
941
2494
 
942
- # Resets credentials of the Vcenter appliance.
943
- # @param [String] private_cloud
944
- # Required. The resource name of the private cloud to reset credentials for.
945
- # Resource names are schemeless URIs that follow the conventions in https://
946
- # cloud.google.com/apis/design/resource_names. For example: `projects/my-project/
947
- # locations/us-central1-a/privateClouds/my-cloud`
948
- # @param [Google::Apis::VmwareengineV1::ResetVcenterCredentialsRequest] reset_vcenter_credentials_request_object
2495
+ # Deletes a single external IP address. When you delete an external IP address,
2496
+ # connectivity between the external IP address and the corresponding internal IP
2497
+ # address is lost.
2498
+ # @param [String] name
2499
+ # Required. The resource name of the external IP address to delete. Resource
2500
+ # names are schemeless URIs that follow the conventions in https://cloud.google.
2501
+ # com/apis/design/resource_names. For example: `projects/my-project/locations/us-
2502
+ # central1-a/privateClouds/my-cloud/externalAddresses/my-ip`
2503
+ # @param [String] request_id
2504
+ # Optional. A request ID to identify requests. Specify a unique request ID so
2505
+ # that if you must retry your request, the server will know to ignore the
2506
+ # request if it has already been completed. The server guarantees that a request
2507
+ # doesn't result in creation of duplicate commitments for at least 60 minutes.
2508
+ # For example, consider a situation where you make an initial request and the
2509
+ # request times out. If you make the request again with the same request ID, the
2510
+ # server can check if the original operation with the same request ID was
2511
+ # received, and if so, will ignore the second request. This prevents clients
2512
+ # from accidentally creating duplicate commitments. The request ID must be a
2513
+ # valid UUID with the exception that zero UUID is not supported (00000000-0000-
2514
+ # 0000-0000-000000000000).
949
2515
  # @param [String] fields
950
2516
  # Selector specifying which fields to include in a partial response.
951
2517
  # @param [String] quota_user
@@ -963,26 +2529,23 @@ module Google
963
2529
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
964
2530
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
965
2531
  # @raise [Google::Apis::AuthorizationError] Authorization is required
966
- def reset_private_cloud_vcenter_credentials(private_cloud, reset_vcenter_credentials_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
967
- command = make_simple_command(:post, 'v1/{+privateCloud}:resetVcenterCredentials', options)
968
- command.request_representation = Google::Apis::VmwareengineV1::ResetVcenterCredentialsRequest::Representation
969
- command.request_object = reset_vcenter_credentials_request_object
2532
+ def delete_project_location_private_cloud_external_address(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2533
+ command = make_simple_command(:delete, 'v1/{+name}', options)
970
2534
  command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
971
2535
  command.response_class = Google::Apis::VmwareengineV1::Operation
972
- command.params['privateCloud'] = private_cloud unless private_cloud.nil?
2536
+ command.params['name'] = name unless name.nil?
2537
+ command.query['requestId'] = request_id unless request_id.nil?
973
2538
  command.query['fields'] = fields unless fields.nil?
974
2539
  command.query['quotaUser'] = quota_user unless quota_user.nil?
975
2540
  execute_or_queue_command(command, &block)
976
2541
  end
977
2542
 
978
- # Sets the access control policy on the specified resource. Replaces any
979
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
980
- # PERMISSION_DENIED` errors.
981
- # @param [String] resource
982
- # REQUIRED: The resource for which the policy is being specified. See [Resource
983
- # names](https://cloud.google.com/apis/design/resource_names) for the
984
- # appropriate value for this field.
985
- # @param [Google::Apis::VmwareengineV1::SetIamPolicyRequest] set_iam_policy_request_object
2543
+ # Gets details of a single external IP address.
2544
+ # @param [String] name
2545
+ # Required. The resource name of the external IP address to retrieve. Resource
2546
+ # names are schemeless URIs that follow the conventions in https://cloud.google.
2547
+ # com/apis/design/resource_names. For example: `projects/my-project/locations/us-
2548
+ # central1-a/privateClouds/my-cloud/externalAddresses/my-ip`
986
2549
  # @param [String] fields
987
2550
  # Selector specifying which fields to include in a partial response.
988
2551
  # @param [String] quota_user
@@ -992,32 +2555,57 @@ module Google
992
2555
  # Request-specific options
993
2556
  #
994
2557
  # @yield [result, err] Result & error if block supplied
995
- # @yieldparam result [Google::Apis::VmwareengineV1::Policy] parsed result object
2558
+ # @yieldparam result [Google::Apis::VmwareengineV1::ExternalAddress] parsed result object
996
2559
  # @yieldparam err [StandardError] error object if request failed
997
2560
  #
998
- # @return [Google::Apis::VmwareengineV1::Policy]
2561
+ # @return [Google::Apis::VmwareengineV1::ExternalAddress]
999
2562
  #
1000
2563
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1001
2564
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1002
2565
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1003
- def set_private_cloud_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1004
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1005
- command.request_representation = Google::Apis::VmwareengineV1::SetIamPolicyRequest::Representation
1006
- command.request_object = set_iam_policy_request_object
1007
- command.response_representation = Google::Apis::VmwareengineV1::Policy::Representation
1008
- command.response_class = Google::Apis::VmwareengineV1::Policy
1009
- command.params['resource'] = resource unless resource.nil?
2566
+ def get_project_location_private_cloud_external_address(name, fields: nil, quota_user: nil, options: nil, &block)
2567
+ command = make_simple_command(:get, 'v1/{+name}', options)
2568
+ command.response_representation = Google::Apis::VmwareengineV1::ExternalAddress::Representation
2569
+ command.response_class = Google::Apis::VmwareengineV1::ExternalAddress
2570
+ command.params['name'] = name unless name.nil?
1010
2571
  command.query['fields'] = fields unless fields.nil?
1011
2572
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1012
2573
  execute_or_queue_command(command, &block)
1013
2574
  end
1014
2575
 
1015
- # Gets details of credentials for NSX appliance.
1016
- # @param [String] private_cloud
1017
- # Required. The resource name of the private cloud to be queried for credentials.
1018
- # Resource names are schemeless URIs that follow the conventions in https://
1019
- # cloud.google.com/apis/design/resource_names. For example: `projects/my-project/
1020
- # locations/us-central1-a/privateClouds/my-cloud`
2576
+ # Lists external IP addresses assigned to VMware workload VMs in a given private
2577
+ # cloud.
2578
+ # @param [String] parent
2579
+ # Required. The resource name of the private cloud to be queried for external IP
2580
+ # addresses. Resource names are schemeless URIs that follow the conventions in
2581
+ # https://cloud.google.com/apis/design/resource_names. For example: `projects/my-
2582
+ # project/locations/us-central1-a/privateClouds/my-cloud`
2583
+ # @param [String] filter
2584
+ # A filter expression that matches resources returned in the response. The
2585
+ # expression must specify the field name, a comparison operator, and the value
2586
+ # that you want to use for filtering. The value must be a string, a number, or a
2587
+ # boolean. The comparison operator must be `=`, `!=`, `>`, or `<`. For example,
2588
+ # if you are filtering a list of IP addresses, you can exclude the ones named `
2589
+ # example-ip` by specifying `name != "example-ip"`. To filter on multiple
2590
+ # expressions, provide each separate expression within parentheses. For example:
2591
+ # ``` (name = "example-ip") (createTime > "2021-04-12T08:15:10.40Z") ``` By
2592
+ # default, each expression is an `AND` expression. However, you can include `AND`
2593
+ # and `OR` expressions explicitly. For example: ``` (name = "example-ip-1") AND
2594
+ # (createTime > "2021-04-12T08:15:10.40Z") OR (name = "example-ip-2") ```
2595
+ # @param [String] order_by
2596
+ # Sorts list results by a certain order. By default, returned results are
2597
+ # ordered by `name` in ascending order. You can also sort results in descending
2598
+ # order based on the `name` value using `orderBy="name desc"`. Currently, only
2599
+ # ordering by `name` is supported.
2600
+ # @param [Fixnum] page_size
2601
+ # The maximum number of external IP addresses to return in one page. The service
2602
+ # may return fewer than this value. The maximum value is coerced to 1000. The
2603
+ # default value of this field is 500.
2604
+ # @param [String] page_token
2605
+ # A page token, received from a previous `ListExternalAddresses` call. Provide
2606
+ # this to retrieve the subsequent page. When paginating, all other parameters
2607
+ # provided to `ListExternalAddresses` must match the call that provided the page
2608
+ # token.
1021
2609
  # @param [String] fields
1022
2610
  # Selector specifying which fields to include in a partial response.
1023
2611
  # @param [String] quota_user
@@ -1027,30 +2615,57 @@ module Google
1027
2615
  # Request-specific options
1028
2616
  #
1029
2617
  # @yield [result, err] Result & error if block supplied
1030
- # @yieldparam result [Google::Apis::VmwareengineV1::Credentials] parsed result object
2618
+ # @yieldparam result [Google::Apis::VmwareengineV1::ListExternalAddressesResponse] parsed result object
1031
2619
  # @yieldparam err [StandardError] error object if request failed
1032
2620
  #
1033
- # @return [Google::Apis::VmwareengineV1::Credentials]
2621
+ # @return [Google::Apis::VmwareengineV1::ListExternalAddressesResponse]
1034
2622
  #
1035
2623
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1036
2624
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1037
2625
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1038
- def show_project_location_private_cloud_nsx_credentials(private_cloud, fields: nil, quota_user: nil, options: nil, &block)
1039
- command = make_simple_command(:get, 'v1/{+privateCloud}:showNsxCredentials', options)
1040
- command.response_representation = Google::Apis::VmwareengineV1::Credentials::Representation
1041
- command.response_class = Google::Apis::VmwareengineV1::Credentials
1042
- command.params['privateCloud'] = private_cloud unless private_cloud.nil?
2626
+ def list_project_location_private_cloud_external_addresses(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2627
+ command = make_simple_command(:get, 'v1/{+parent}/externalAddresses', options)
2628
+ command.response_representation = Google::Apis::VmwareengineV1::ListExternalAddressesResponse::Representation
2629
+ command.response_class = Google::Apis::VmwareengineV1::ListExternalAddressesResponse
2630
+ command.params['parent'] = parent unless parent.nil?
2631
+ command.query['filter'] = filter unless filter.nil?
2632
+ command.query['orderBy'] = order_by unless order_by.nil?
2633
+ command.query['pageSize'] = page_size unless page_size.nil?
2634
+ command.query['pageToken'] = page_token unless page_token.nil?
1043
2635
  command.query['fields'] = fields unless fields.nil?
1044
2636
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1045
2637
  execute_or_queue_command(command, &block)
1046
2638
  end
1047
2639
 
1048
- # Gets details of credentials for Vcenter appliance.
1049
- # @param [String] private_cloud
1050
- # Required. The resource name of the private cloud to be queried for credentials.
1051
- # Resource names are schemeless URIs that follow the conventions in https://
1052
- # cloud.google.com/apis/design/resource_names. For example: `projects/my-project/
1053
- # locations/us-central1-a/privateClouds/my-cloud`
2640
+ # Updates the parameters of a single external IP address. Only fields specified
2641
+ # in `update_mask` are applied. During operation processing, the resource is
2642
+ # temporarily in the `ACTIVE` state before the operation fully completes. For
2643
+ # that period of time, you can't update the resource. Use the operation status
2644
+ # to determine when the processing fully completes.
2645
+ # @param [String] name
2646
+ # Output only. The resource name of this external IP address. Resource names are
2647
+ # schemeless URIs that follow the conventions in https://cloud.google.com/apis/
2648
+ # design/resource_names. For example: `projects/my-project/locations/us-central1-
2649
+ # a/privateClouds/my-cloud/externalAddresses/my-address`
2650
+ # @param [Google::Apis::VmwareengineV1::ExternalAddress] external_address_object
2651
+ # @param [String] request_id
2652
+ # Optional. A request ID to identify requests. Specify a unique request ID so
2653
+ # that if you must retry your request, the server will know to ignore the
2654
+ # request if it has already been completed. The server guarantees that a request
2655
+ # doesn't result in creation of duplicate commitments for at least 60 minutes.
2656
+ # For example, consider a situation where you make an initial request and the
2657
+ # request times out. If you make the request again with the same request ID, the
2658
+ # server can check if the original operation with the same request ID was
2659
+ # received, and if so, will ignore the second request. This prevents clients
2660
+ # from accidentally creating duplicate commitments. The request ID must be a
2661
+ # valid UUID with the exception that zero UUID is not supported (00000000-0000-
2662
+ # 0000-0000-000000000000).
2663
+ # @param [String] update_mask
2664
+ # Required. Field mask is used to specify the fields to be overwritten in the `
2665
+ # ExternalAddress` resource by the update. The fields specified in the `
2666
+ # update_mask` are relative to the resource, not the full request. A field will
2667
+ # be overwritten if it is in the mask. If the user does not provide a mask then
2668
+ # all fields will be overwritten.
1054
2669
  # @param [String] fields
1055
2670
  # Selector specifying which fields to include in a partial response.
1056
2671
  # @param [String] quota_user
@@ -1060,34 +2675,55 @@ module Google
1060
2675
  # Request-specific options
1061
2676
  #
1062
2677
  # @yield [result, err] Result & error if block supplied
1063
- # @yieldparam result [Google::Apis::VmwareengineV1::Credentials] parsed result object
2678
+ # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
1064
2679
  # @yieldparam err [StandardError] error object if request failed
1065
2680
  #
1066
- # @return [Google::Apis::VmwareengineV1::Credentials]
2681
+ # @return [Google::Apis::VmwareengineV1::Operation]
1067
2682
  #
1068
2683
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1069
2684
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1070
2685
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1071
- def show_project_location_private_cloud_vcenter_credentials(private_cloud, fields: nil, quota_user: nil, options: nil, &block)
1072
- command = make_simple_command(:get, 'v1/{+privateCloud}:showVcenterCredentials', options)
1073
- command.response_representation = Google::Apis::VmwareengineV1::Credentials::Representation
1074
- command.response_class = Google::Apis::VmwareengineV1::Credentials
1075
- command.params['privateCloud'] = private_cloud unless private_cloud.nil?
2686
+ def patch_project_location_private_cloud_external_address(name, external_address_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2687
+ command = make_simple_command(:patch, 'v1/{+name}', options)
2688
+ command.request_representation = Google::Apis::VmwareengineV1::ExternalAddress::Representation
2689
+ command.request_object = external_address_object
2690
+ command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
2691
+ command.response_class = Google::Apis::VmwareengineV1::Operation
2692
+ command.params['name'] = name unless name.nil?
2693
+ command.query['requestId'] = request_id unless request_id.nil?
2694
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1076
2695
  command.query['fields'] = fields unless fields.nil?
1077
2696
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1078
2697
  execute_or_queue_command(command, &block)
1079
2698
  end
1080
2699
 
1081
- # Returns permissions that a caller has on the specified resource. If the
1082
- # resource does not exist, this will return an empty set of permissions, not a `
1083
- # NOT_FOUND` error. Note: This operation is designed to be used for building
1084
- # permission-aware UIs and command-line tools, not for authorization checking.
1085
- # This operation may "fail open" without warning.
1086
- # @param [String] resource
1087
- # REQUIRED: The resource for which the policy detail is being requested. See [
1088
- # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1089
- # appropriate value for this field.
1090
- # @param [Google::Apis::VmwareengineV1::TestIamPermissionsRequest] test_iam_permissions_request_object
2700
+ # Creates a new HCX activation key in a given private cloud.
2701
+ # @param [String] parent
2702
+ # Required. The resource name of the private cloud to create the key for.
2703
+ # Resource names are schemeless URIs that follow the conventions in https://
2704
+ # cloud.google.com/apis/design/resource_names. For example: `projects/my-project/
2705
+ # locations/us-central1/privateClouds/my-cloud`
2706
+ # @param [Google::Apis::VmwareengineV1::HcxActivationKey] hcx_activation_key_object
2707
+ # @param [String] hcx_activation_key_id
2708
+ # Required. The user-provided identifier of the `HcxActivationKey` to be created.
2709
+ # This identifier must be unique among `HcxActivationKey` resources within the
2710
+ # parent and becomes the final token in the name URI. The identifier must meet
2711
+ # the following requirements: * Only contains 1-63 alphanumeric characters and
2712
+ # hyphens * Begins with an alphabetical character * Ends with a non-hyphen
2713
+ # character * Not formatted as a UUID * Complies with [RFC 1034](https://
2714
+ # datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
2715
+ # @param [String] request_id
2716
+ # A request ID to identify requests. Specify a unique request ID so that if you
2717
+ # must retry your request, the server will know to ignore the request if it has
2718
+ # already been completed. The server guarantees that a request doesn't result in
2719
+ # creation of duplicate commitments for at least 60 minutes. For example,
2720
+ # consider a situation where you make an initial request and the request times
2721
+ # out. If you make the request again with the same request ID, the server can
2722
+ # check if original operation with the same request ID was received, and if so,
2723
+ # will ignore the second request. This prevents clients from accidentally
2724
+ # creating duplicate commitments. The request ID must be a valid UUID with the
2725
+ # exception that zero UUID is not supported (00000000-0000-0000-0000-
2726
+ # 000000000000).
1091
2727
  # @param [String] fields
1092
2728
  # Selector specifying which fields to include in a partial response.
1093
2729
  # @param [String] quota_user
@@ -1097,36 +2733,34 @@ module Google
1097
2733
  # Request-specific options
1098
2734
  #
1099
2735
  # @yield [result, err] Result & error if block supplied
1100
- # @yieldparam result [Google::Apis::VmwareengineV1::TestIamPermissionsResponse] parsed result object
2736
+ # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
1101
2737
  # @yieldparam err [StandardError] error object if request failed
1102
2738
  #
1103
- # @return [Google::Apis::VmwareengineV1::TestIamPermissionsResponse]
2739
+ # @return [Google::Apis::VmwareengineV1::Operation]
1104
2740
  #
1105
2741
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1106
2742
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1107
2743
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1108
- def test_private_cloud_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1109
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1110
- command.request_representation = Google::Apis::VmwareengineV1::TestIamPermissionsRequest::Representation
1111
- command.request_object = test_iam_permissions_request_object
1112
- command.response_representation = Google::Apis::VmwareengineV1::TestIamPermissionsResponse::Representation
1113
- command.response_class = Google::Apis::VmwareengineV1::TestIamPermissionsResponse
1114
- command.params['resource'] = resource unless resource.nil?
2744
+ def create_project_location_private_cloud_hcx_activation_key(parent, hcx_activation_key_object = nil, hcx_activation_key_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2745
+ command = make_simple_command(:post, 'v1/{+parent}/hcxActivationKeys', options)
2746
+ command.request_representation = Google::Apis::VmwareengineV1::HcxActivationKey::Representation
2747
+ command.request_object = hcx_activation_key_object
2748
+ command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
2749
+ command.response_class = Google::Apis::VmwareengineV1::Operation
2750
+ command.params['parent'] = parent unless parent.nil?
2751
+ command.query['hcxActivationKeyId'] = hcx_activation_key_id unless hcx_activation_key_id.nil?
2752
+ command.query['requestId'] = request_id unless request_id.nil?
1115
2753
  command.query['fields'] = fields unless fields.nil?
1116
2754
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1117
2755
  execute_or_queue_command(command, &block)
1118
2756
  end
1119
2757
 
1120
- # Restores a private cloud that was previously scheduled for deletion by `
1121
- # DeletePrivateCloud`. A `PrivateCloud` resource scheduled for deletion has `
1122
- # PrivateCloud.state` set to `DELETED` and `PrivateCloud.expireTime` set to the
1123
- # time when deletion can no longer be reversed.
2758
+ # Retrieves a `HcxActivationKey` resource by its resource name.
1124
2759
  # @param [String] name
1125
- # Required. The resource name of the private cloud scheduled for deletion.
1126
- # Resource names are schemeless URIs that follow the conventions in https://
1127
- # cloud.google.com/apis/design/resource_names. For example: `projects/my-project/
1128
- # locations/us-central1-a/privateClouds/my-cloud`
1129
- # @param [Google::Apis::VmwareengineV1::UndeletePrivateCloudRequest] undelete_private_cloud_request_object
2760
+ # Required. The resource name of the HCX activation key to retrieve. Resource
2761
+ # names are schemeless URIs that follow the conventions in https://cloud.google.
2762
+ # com/apis/design/resource_names. For example: `projects/my-project/locations/us-
2763
+ # central1/privateClouds/my-cloud/hcxActivationKeys/my-key`
1130
2764
  # @param [String] fields
1131
2765
  # Selector specifying which fields to include in a partial response.
1132
2766
  # @param [String] quota_user
@@ -1136,49 +2770,41 @@ module Google
1136
2770
  # Request-specific options
1137
2771
  #
1138
2772
  # @yield [result, err] Result & error if block supplied
1139
- # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
2773
+ # @yieldparam result [Google::Apis::VmwareengineV1::HcxActivationKey] parsed result object
1140
2774
  # @yieldparam err [StandardError] error object if request failed
1141
2775
  #
1142
- # @return [Google::Apis::VmwareengineV1::Operation]
2776
+ # @return [Google::Apis::VmwareengineV1::HcxActivationKey]
1143
2777
  #
1144
2778
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1145
2779
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1146
2780
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1147
- def undelete_private_cloud(name, undelete_private_cloud_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1148
- command = make_simple_command(:post, 'v1/{+name}:undelete', options)
1149
- command.request_representation = Google::Apis::VmwareengineV1::UndeletePrivateCloudRequest::Representation
1150
- command.request_object = undelete_private_cloud_request_object
1151
- command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
1152
- command.response_class = Google::Apis::VmwareengineV1::Operation
2781
+ def get_project_location_private_cloud_hcx_activation_key(name, fields: nil, quota_user: nil, options: nil, &block)
2782
+ command = make_simple_command(:get, 'v1/{+name}', options)
2783
+ command.response_representation = Google::Apis::VmwareengineV1::HcxActivationKey::Representation
2784
+ command.response_class = Google::Apis::VmwareengineV1::HcxActivationKey
1153
2785
  command.params['name'] = name unless name.nil?
1154
2786
  command.query['fields'] = fields unless fields.nil?
1155
2787
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1156
2788
  execute_or_queue_command(command, &block)
1157
2789
  end
1158
2790
 
1159
- # Creates a new cluster in a given private cloud. Creating a new cluster
1160
- # provides additional nodes for use in the parent private cloud and requires
1161
- # sufficient [node quota](https://cloud.google.com/vmware-engine/quotas).
1162
- # @param [String] parent
1163
- # Required. The resource name of the private cloud to create a new cluster in.
1164
- # Resource names are schemeless URIs that follow the conventions in https://
1165
- # cloud.google.com/apis/design/resource_names. For example: `projects/my-project/
1166
- # locations/us-central1-a/privateClouds/my-cloud`
1167
- # @param [Google::Apis::VmwareengineV1::Cluster] cluster_object
1168
- # @param [String] cluster_id
1169
- # Required. The user-provided identifier of the new `Cluster`. This identifier
1170
- # must be unique among clusters within the parent and becomes the final token in
1171
- # the name URI. The identifier must meet the following requirements: * Only
1172
- # contains 1-63 alphanumeric characters and hyphens * Begins with an
1173
- # alphabetical character * Ends with a non-hyphen character * Not formatted as a
1174
- # UUID * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
1175
- # (section 3.5)
1176
- # @param [String] request_id
1177
- # Optional. The request ID must be a valid UUID with the exception that zero
1178
- # UUID is not supported (00000000-0000-0000-0000-000000000000).
1179
- # @param [Boolean] validate_only
1180
- # Optional. True if you want the request to be validated and not executed; false
1181
- # otherwise.
2791
+ # Gets the access control policy for a resource. Returns an empty policy if the
2792
+ # resource exists and does not have a policy set.
2793
+ # @param [String] resource
2794
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
2795
+ # names](https://cloud.google.com/apis/design/resource_names) for the
2796
+ # appropriate value for this field.
2797
+ # @param [Fixnum] options_requested_policy_version
2798
+ # Optional. The maximum policy version that will be used to format the policy.
2799
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
2800
+ # rejected. Requests for policies with any conditional role bindings must
2801
+ # specify version 3. Policies with no conditional role bindings may specify any
2802
+ # valid value or leave the field unset. The policy in the response might use the
2803
+ # policy version that you specified, or it might use a lower policy version. For
2804
+ # example, if you specify version 3, but the policy has no conditional role
2805
+ # bindings, the response uses version 1. To learn which resources support
2806
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
2807
+ # google.com/iam/help/conditions/resource-policies).
1182
2808
  # @param [String] fields
1183
2809
  # Selector specifying which fields to include in a partial response.
1184
2810
  # @param [String] quota_user
@@ -1188,40 +2814,40 @@ module Google
1188
2814
  # Request-specific options
1189
2815
  #
1190
2816
  # @yield [result, err] Result & error if block supplied
1191
- # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
2817
+ # @yieldparam result [Google::Apis::VmwareengineV1::Policy] parsed result object
1192
2818
  # @yieldparam err [StandardError] error object if request failed
1193
2819
  #
1194
- # @return [Google::Apis::VmwareengineV1::Operation]
2820
+ # @return [Google::Apis::VmwareengineV1::Policy]
1195
2821
  #
1196
2822
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1197
2823
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1198
2824
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1199
- def create_project_location_private_cloud_cluster(parent, cluster_object = nil, cluster_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
1200
- command = make_simple_command(:post, 'v1/{+parent}/clusters', options)
1201
- command.request_representation = Google::Apis::VmwareengineV1::Cluster::Representation
1202
- command.request_object = cluster_object
1203
- command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
1204
- command.response_class = Google::Apis::VmwareengineV1::Operation
1205
- command.params['parent'] = parent unless parent.nil?
1206
- command.query['clusterId'] = cluster_id unless cluster_id.nil?
1207
- command.query['requestId'] = request_id unless request_id.nil?
1208
- command.query['validateOnly'] = validate_only unless validate_only.nil?
2825
+ def get_project_location_private_cloud_hcx_activation_key_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
2826
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
2827
+ command.response_representation = Google::Apis::VmwareengineV1::Policy::Representation
2828
+ command.response_class = Google::Apis::VmwareengineV1::Policy
2829
+ command.params['resource'] = resource unless resource.nil?
2830
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1209
2831
  command.query['fields'] = fields unless fields.nil?
1210
2832
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1211
2833
  execute_or_queue_command(command, &block)
1212
- end
1213
-
1214
- # Deletes a `Cluster` resource. To avoid unintended data loss, migrate or
1215
- # gracefully shut down any workloads running on the cluster before deletion. You
1216
- # cannot delete the management cluster of a private cloud using this method.
1217
- # @param [String] name
1218
- # Required. The resource name of the cluster to delete. Resource names are
1219
- # schemeless URIs that follow the conventions in https://cloud.google.com/apis/
1220
- # design/resource_names. For example: `projects/my-project/locations/us-central1-
1221
- # a/privateClouds/my-cloud/clusters/my-cluster`
1222
- # @param [String] request_id
1223
- # Optional. The request ID must be a valid UUID with the exception that zero
1224
- # UUID is not supported (00000000-0000-0000-0000-000000000000).
2834
+ end
2835
+
2836
+ # Lists `HcxActivationKey` resources in a given private cloud.
2837
+ # @param [String] parent
2838
+ # Required. The resource name of the private cloud to be queried for HCX
2839
+ # activation keys. Resource names are schemeless URIs that follow the
2840
+ # conventions in https://cloud.google.com/apis/design/resource_names. For
2841
+ # example: `projects/my-project/locations/us-central1/privateClouds/my-cloud`
2842
+ # @param [Fixnum] page_size
2843
+ # The maximum number of HCX activation keys to return in one page. The service
2844
+ # may return fewer than this value. The maximum value is coerced to 1000. The
2845
+ # default value of this field is 500.
2846
+ # @param [String] page_token
2847
+ # A page token, received from a previous `ListHcxActivationKeys` call. Provide
2848
+ # this to retrieve the subsequent page. When paginating, all other parameters
2849
+ # provided to `ListHcxActivationKeys` must match the call that provided the page
2850
+ # token.
1225
2851
  # @param [String] fields
1226
2852
  # Selector specifying which fields to include in a partial response.
1227
2853
  # @param [String] quota_user
@@ -1231,31 +2857,34 @@ module Google
1231
2857
  # Request-specific options
1232
2858
  #
1233
2859
  # @yield [result, err] Result & error if block supplied
1234
- # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
2860
+ # @yieldparam result [Google::Apis::VmwareengineV1::ListHcxActivationKeysResponse] parsed result object
1235
2861
  # @yieldparam err [StandardError] error object if request failed
1236
2862
  #
1237
- # @return [Google::Apis::VmwareengineV1::Operation]
2863
+ # @return [Google::Apis::VmwareengineV1::ListHcxActivationKeysResponse]
1238
2864
  #
1239
2865
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1240
2866
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1241
2867
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1242
- def delete_project_location_private_cloud_cluster(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1243
- command = make_simple_command(:delete, 'v1/{+name}', options)
1244
- command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
1245
- command.response_class = Google::Apis::VmwareengineV1::Operation
1246
- command.params['name'] = name unless name.nil?
1247
- command.query['requestId'] = request_id unless request_id.nil?
2868
+ def list_project_location_private_cloud_hcx_activation_keys(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2869
+ command = make_simple_command(:get, 'v1/{+parent}/hcxActivationKeys', options)
2870
+ command.response_representation = Google::Apis::VmwareengineV1::ListHcxActivationKeysResponse::Representation
2871
+ command.response_class = Google::Apis::VmwareengineV1::ListHcxActivationKeysResponse
2872
+ command.params['parent'] = parent unless parent.nil?
2873
+ command.query['pageSize'] = page_size unless page_size.nil?
2874
+ command.query['pageToken'] = page_token unless page_token.nil?
1248
2875
  command.query['fields'] = fields unless fields.nil?
1249
2876
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1250
2877
  execute_or_queue_command(command, &block)
1251
2878
  end
1252
2879
 
1253
- # Retrieves a `Cluster` resource by its resource name.
1254
- # @param [String] name
1255
- # Required. The cluster resource name to retrieve. Resource names are schemeless
1256
- # URIs that follow the conventions in https://cloud.google.com/apis/design/
1257
- # resource_names. For example: `projects/my-project/locations/us-central1-a/
1258
- # privateClouds/my-cloud/clusters/my-cluster`
2880
+ # Sets the access control policy on the specified resource. Replaces any
2881
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
2882
+ # PERMISSION_DENIED` errors.
2883
+ # @param [String] resource
2884
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
2885
+ # names](https://cloud.google.com/apis/design/resource_names) for the
2886
+ # appropriate value for this field.
2887
+ # @param [Google::Apis::VmwareengineV1::SetIamPolicyRequest] set_iam_policy_request_object
1259
2888
  # @param [String] fields
1260
2889
  # Selector specifying which fields to include in a partial response.
1261
2890
  # @param [String] quota_user
@@ -1265,41 +2894,36 @@ module Google
1265
2894
  # Request-specific options
1266
2895
  #
1267
2896
  # @yield [result, err] Result & error if block supplied
1268
- # @yieldparam result [Google::Apis::VmwareengineV1::Cluster] parsed result object
2897
+ # @yieldparam result [Google::Apis::VmwareengineV1::Policy] parsed result object
1269
2898
  # @yieldparam err [StandardError] error object if request failed
1270
2899
  #
1271
- # @return [Google::Apis::VmwareengineV1::Cluster]
2900
+ # @return [Google::Apis::VmwareengineV1::Policy]
1272
2901
  #
1273
2902
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1274
2903
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1275
2904
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1276
- def get_project_location_private_cloud_cluster(name, fields: nil, quota_user: nil, options: nil, &block)
1277
- command = make_simple_command(:get, 'v1/{+name}', options)
1278
- command.response_representation = Google::Apis::VmwareengineV1::Cluster::Representation
1279
- command.response_class = Google::Apis::VmwareengineV1::Cluster
1280
- command.params['name'] = name unless name.nil?
2905
+ def set_hcx_activation_key_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2906
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
2907
+ command.request_representation = Google::Apis::VmwareengineV1::SetIamPolicyRequest::Representation
2908
+ command.request_object = set_iam_policy_request_object
2909
+ command.response_representation = Google::Apis::VmwareengineV1::Policy::Representation
2910
+ command.response_class = Google::Apis::VmwareengineV1::Policy
2911
+ command.params['resource'] = resource unless resource.nil?
1281
2912
  command.query['fields'] = fields unless fields.nil?
1282
2913
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1283
2914
  execute_or_queue_command(command, &block)
1284
2915
  end
1285
2916
 
1286
- # Gets the access control policy for a resource. Returns an empty policy if the
1287
- # resource exists and does not have a policy set.
2917
+ # Returns permissions that a caller has on the specified resource. If the
2918
+ # resource does not exist, this will return an empty set of permissions, not a `
2919
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
2920
+ # permission-aware UIs and command-line tools, not for authorization checking.
2921
+ # This operation may "fail open" without warning.
1288
2922
  # @param [String] resource
1289
- # REQUIRED: The resource for which the policy is being requested. See [Resource
1290
- # names](https://cloud.google.com/apis/design/resource_names) for the
2923
+ # REQUIRED: The resource for which the policy detail is being requested. See [
2924
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1291
2925
  # appropriate value for this field.
1292
- # @param [Fixnum] options_requested_policy_version
1293
- # Optional. The maximum policy version that will be used to format the policy.
1294
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1295
- # rejected. Requests for policies with any conditional role bindings must
1296
- # specify version 3. Policies with no conditional role bindings may specify any
1297
- # valid value or leave the field unset. The policy in the response might use the
1298
- # policy version that you specified, or it might use a lower policy version. For
1299
- # example, if you specify version 3, but the policy has no conditional role
1300
- # bindings, the response uses version 1. To learn which resources support
1301
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1302
- # google.com/iam/help/conditions/resource-policies).
2926
+ # @param [Google::Apis::VmwareengineV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1303
2927
  # @param [String] fields
1304
2928
  # Selector specifying which fields to include in a partial response.
1305
2929
  # @param [String] quota_user
@@ -1309,51 +2933,53 @@ module Google
1309
2933
  # Request-specific options
1310
2934
  #
1311
2935
  # @yield [result, err] Result & error if block supplied
1312
- # @yieldparam result [Google::Apis::VmwareengineV1::Policy] parsed result object
2936
+ # @yieldparam result [Google::Apis::VmwareengineV1::TestIamPermissionsResponse] parsed result object
1313
2937
  # @yieldparam err [StandardError] error object if request failed
1314
2938
  #
1315
- # @return [Google::Apis::VmwareengineV1::Policy]
2939
+ # @return [Google::Apis::VmwareengineV1::TestIamPermissionsResponse]
1316
2940
  #
1317
2941
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1318
2942
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1319
2943
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1320
- def get_project_location_private_cloud_cluster_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1321
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
1322
- command.response_representation = Google::Apis::VmwareengineV1::Policy::Representation
1323
- command.response_class = Google::Apis::VmwareengineV1::Policy
2944
+ def test_hcx_activation_key_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2945
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
2946
+ command.request_representation = Google::Apis::VmwareengineV1::TestIamPermissionsRequest::Representation
2947
+ command.request_object = test_iam_permissions_request_object
2948
+ command.response_representation = Google::Apis::VmwareengineV1::TestIamPermissionsResponse::Representation
2949
+ command.response_class = Google::Apis::VmwareengineV1::TestIamPermissionsResponse
1324
2950
  command.params['resource'] = resource unless resource.nil?
1325
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1326
2951
  command.query['fields'] = fields unless fields.nil?
1327
2952
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1328
2953
  execute_or_queue_command(command, &block)
1329
2954
  end
1330
2955
 
1331
- # Lists `Cluster` resources in a given private cloud.
2956
+ # Create a new logging server for a given private cloud.
1332
2957
  # @param [String] parent
1333
- # Required. The resource name of the private cloud to query for clusters.
1334
- # Resource names are schemeless URIs that follow the conventions in https://
1335
- # cloud.google.com/apis/design/resource_names. For example: `projects/my-project/
1336
- # locations/us-central1-a/privateClouds/my-cloud`
1337
- # @param [String] filter
1338
- # To filter on multiple expressions, provide each separate expression within
1339
- # parentheses. For example: ``` (name = "example-cluster") (nodeCount = "3") ```
1340
- # By default, each expression is an `AND` expression. However, you can include `
1341
- # AND` and `OR` expressions explicitly. For example: ``` (name = "example-
1342
- # cluster-1") AND (createTime > "2021-04-12T08:15:10.40Z") OR (name = "example-
1343
- # cluster-2") ```
1344
- # @param [String] order_by
1345
- # Sorts list results by a certain order. By default, returned results are
1346
- # ordered by `name` in ascending order. You can also sort results in descending
1347
- # order based on the `name` value using `orderBy="name desc"`. Currently, only
1348
- # ordering by `name` is supported.
1349
- # @param [Fixnum] page_size
1350
- # The maximum number of clusters to return in one page. The service may return
1351
- # fewer than this value. The maximum value is coerced to 1000. The default value
1352
- # of this field is 500.
1353
- # @param [String] page_token
1354
- # A page token, received from a previous `ListClusters` call. Provide this to
1355
- # retrieve the subsequent page. When paginating, all other parameters provided
1356
- # to `ListClusters` must match the call that provided the page token.
2958
+ # Required. The resource name of the private cloud to create a new Logging
2959
+ # Server in. Resource names are schemeless URIs that follow the conventions in
2960
+ # https://cloud.google.com/apis/design/resource_names. For example: `projects/my-
2961
+ # project/locations/us-central1-a/privateClouds/my-cloud`
2962
+ # @param [Google::Apis::VmwareengineV1::LoggingServer] logging_server_object
2963
+ # @param [String] logging_server_id
2964
+ # Required. The user-provided identifier of the `LoggingServer` to be created.
2965
+ # This identifier must be unique among `LoggingServer` resources within the
2966
+ # parent and becomes the final token in the name URI. The identifier must meet
2967
+ # the following requirements: * Only contains 1-63 alphanumeric characters and
2968
+ # hyphens * Begins with an alphabetical character * Ends with a non-hyphen
2969
+ # character * Not formatted as a UUID * Complies with [RFC 1034](https://
2970
+ # datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
2971
+ # @param [String] request_id
2972
+ # Optional. A request ID to identify requests. Specify a unique request ID so
2973
+ # that if you must retry your request, the server will know to ignore the
2974
+ # request if it has already been completed. The server guarantees that a request
2975
+ # doesn't result in creation of duplicate commitments for at least 60 minutes.
2976
+ # For example, consider a situation where you make an initial request and the
2977
+ # request times out. If you make the request again with the same request ID, the
2978
+ # server can check if original operation with the same request ID was received,
2979
+ # and if so, will ignore the second request. This prevents clients from
2980
+ # accidentally creating duplicate commitments. The request ID must be a valid
2981
+ # UUID with the exception that zero UUID is not supported (00000000-0000-0000-
2982
+ # 0000-000000000000).
1357
2983
  # @param [String] fields
1358
2984
  # Selector specifying which fields to include in a partial response.
1359
2985
  # @param [String] quota_user
@@ -1363,51 +2989,46 @@ module Google
1363
2989
  # Request-specific options
1364
2990
  #
1365
2991
  # @yield [result, err] Result & error if block supplied
1366
- # @yieldparam result [Google::Apis::VmwareengineV1::ListClustersResponse] parsed result object
2992
+ # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
1367
2993
  # @yieldparam err [StandardError] error object if request failed
1368
2994
  #
1369
- # @return [Google::Apis::VmwareengineV1::ListClustersResponse]
2995
+ # @return [Google::Apis::VmwareengineV1::Operation]
1370
2996
  #
1371
2997
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1372
2998
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1373
2999
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1374
- def list_project_location_private_cloud_clusters(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1375
- command = make_simple_command(:get, 'v1/{+parent}/clusters', options)
1376
- command.response_representation = Google::Apis::VmwareengineV1::ListClustersResponse::Representation
1377
- command.response_class = Google::Apis::VmwareengineV1::ListClustersResponse
3000
+ def create_project_location_private_cloud_logging_server(parent, logging_server_object = nil, logging_server_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3001
+ command = make_simple_command(:post, 'v1/{+parent}/loggingServers', options)
3002
+ command.request_representation = Google::Apis::VmwareengineV1::LoggingServer::Representation
3003
+ command.request_object = logging_server_object
3004
+ command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
3005
+ command.response_class = Google::Apis::VmwareengineV1::Operation
1378
3006
  command.params['parent'] = parent unless parent.nil?
1379
- command.query['filter'] = filter unless filter.nil?
1380
- command.query['orderBy'] = order_by unless order_by.nil?
1381
- command.query['pageSize'] = page_size unless page_size.nil?
1382
- command.query['pageToken'] = page_token unless page_token.nil?
3007
+ command.query['loggingServerId'] = logging_server_id unless logging_server_id.nil?
3008
+ command.query['requestId'] = request_id unless request_id.nil?
1383
3009
  command.query['fields'] = fields unless fields.nil?
1384
3010
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1385
3011
  execute_or_queue_command(command, &block)
1386
3012
  end
1387
3013
 
1388
- # Modifies a `Cluster` resource. Only fields specified in `updateMask` are
1389
- # applied. During operation processing, the resource is temporarily in the `
1390
- # ACTIVE` state before the operation fully completes. For that period of time,
1391
- # you can't update the resource. Use the operation status to determine when the
1392
- # processing fully completes.
3014
+ # Deletes a single logging server.
1393
3015
  # @param [String] name
1394
- # Output only. The resource name of this cluster. Resource names are schemeless
1395
- # URIs that follow the conventions in https://cloud.google.com/apis/design/
1396
- # resource_names. For example: `projects/my-project/locations/us-central1-a/
1397
- # privateClouds/my-cloud/clusters/my-cluster`
1398
- # @param [Google::Apis::VmwareengineV1::Cluster] cluster_object
3016
+ # Required. The resource name of the logging server to delete. Resource names
3017
+ # are schemeless URIs that follow the conventions in https://cloud.google.com/
3018
+ # apis/design/resource_names. For example: `projects/my-project/locations/us-
3019
+ # central1-a/privateClouds/my-cloud/loggingServers/my-logging-server`
1399
3020
  # @param [String] request_id
1400
- # Optional. The request ID must be a valid UUID with the exception that zero
1401
- # UUID is not supported (00000000-0000-0000-0000-000000000000).
1402
- # @param [String] update_mask
1403
- # Required. Field mask is used to specify the fields to be overwritten in the `
1404
- # Cluster` resource by the update. The fields specified in the `updateMask` are
1405
- # relative to the resource, not the full request. A field will be overwritten if
1406
- # it is in the mask. If the user does not provide a mask then all fields will be
1407
- # overwritten.
1408
- # @param [Boolean] validate_only
1409
- # Optional. True if you want the request to be validated and not executed; false
1410
- # otherwise.
3021
+ # Optional. A request ID to identify requests. Specify a unique request ID so
3022
+ # that if you must retry your request, the server will know to ignore the
3023
+ # request if it has already been completed. The server guarantees that a request
3024
+ # doesn't result in creation of duplicate commitments for at least 60 minutes.
3025
+ # For example, consider a situation where you make an initial request and the
3026
+ # request times out. If you make the request again with the same request ID, the
3027
+ # server can check if original operation with the same request ID was received,
3028
+ # and if so, will ignore the second request. This prevents clients from
3029
+ # accidentally creating duplicate commitments. The request ID must be a valid
3030
+ # UUID with the exception that zero UUID is not supported (00000000-0000-0000-
3031
+ # 0000-000000000000).
1411
3032
  # @param [String] fields
1412
3033
  # Selector specifying which fields to include in a partial response.
1413
3034
  # @param [String] quota_user
@@ -1425,29 +3046,23 @@ module Google
1425
3046
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1426
3047
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1427
3048
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1428
- def patch_project_location_private_cloud_cluster(name, cluster_object = nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
1429
- command = make_simple_command(:patch, 'v1/{+name}', options)
1430
- command.request_representation = Google::Apis::VmwareengineV1::Cluster::Representation
1431
- command.request_object = cluster_object
3049
+ def delete_project_location_private_cloud_logging_server(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3050
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1432
3051
  command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
1433
3052
  command.response_class = Google::Apis::VmwareengineV1::Operation
1434
3053
  command.params['name'] = name unless name.nil?
1435
3054
  command.query['requestId'] = request_id unless request_id.nil?
1436
- command.query['updateMask'] = update_mask unless update_mask.nil?
1437
- command.query['validateOnly'] = validate_only unless validate_only.nil?
1438
3055
  command.query['fields'] = fields unless fields.nil?
1439
3056
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1440
3057
  execute_or_queue_command(command, &block)
1441
3058
  end
1442
3059
 
1443
- # Sets the access control policy on the specified resource. Replaces any
1444
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1445
- # PERMISSION_DENIED` errors.
1446
- # @param [String] resource
1447
- # REQUIRED: The resource for which the policy is being specified. See [Resource
1448
- # names](https://cloud.google.com/apis/design/resource_names) for the
1449
- # appropriate value for this field.
1450
- # @param [Google::Apis::VmwareengineV1::SetIamPolicyRequest] set_iam_policy_request_object
3060
+ # Gets details of a logging server.
3061
+ # @param [String] name
3062
+ # Required. The resource name of the Logging Server to retrieve. Resource names
3063
+ # are schemeless URIs that follow the conventions in https://cloud.google.com/
3064
+ # apis/design/resource_names. For example: `projects/my-project/locations/us-
3065
+ # central1-a/privateClouds/my-cloud/loggingServers/my-logging-server`
1451
3066
  # @param [String] fields
1452
3067
  # Selector specifying which fields to include in a partial response.
1453
3068
  # @param [String] quota_user
@@ -1457,36 +3072,114 @@ module Google
1457
3072
  # Request-specific options
1458
3073
  #
1459
3074
  # @yield [result, err] Result & error if block supplied
1460
- # @yieldparam result [Google::Apis::VmwareengineV1::Policy] parsed result object
3075
+ # @yieldparam result [Google::Apis::VmwareengineV1::LoggingServer] parsed result object
3076
+ # @yieldparam err [StandardError] error object if request failed
3077
+ #
3078
+ # @return [Google::Apis::VmwareengineV1::LoggingServer]
3079
+ #
3080
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3081
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3082
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3083
+ def get_project_location_private_cloud_logging_server(name, fields: nil, quota_user: nil, options: nil, &block)
3084
+ command = make_simple_command(:get, 'v1/{+name}', options)
3085
+ command.response_representation = Google::Apis::VmwareengineV1::LoggingServer::Representation
3086
+ command.response_class = Google::Apis::VmwareengineV1::LoggingServer
3087
+ command.params['name'] = name unless name.nil?
3088
+ command.query['fields'] = fields unless fields.nil?
3089
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3090
+ execute_or_queue_command(command, &block)
3091
+ end
3092
+
3093
+ # Lists logging servers configured for a given private cloud.
3094
+ # @param [String] parent
3095
+ # Required. The resource name of the private cloud to be queried for logging
3096
+ # servers. Resource names are schemeless URIs that follow the conventions in
3097
+ # https://cloud.google.com/apis/design/resource_names. For example: `projects/my-
3098
+ # project/locations/us-central1-a/privateClouds/my-cloud`
3099
+ # @param [String] filter
3100
+ # A filter expression that matches resources returned in the response. The
3101
+ # expression must specify the field name, a comparison operator, and the value
3102
+ # that you want to use for filtering. The value must be a string, a number, or a
3103
+ # boolean. The comparison operator must be `=`, `!=`, `>`, or `<`. For example,
3104
+ # if you are filtering a list of logging servers, you can exclude the ones named
3105
+ # `example-server` by specifying `name != "example-server"`. To filter on
3106
+ # multiple expressions, provide each separate expression within parentheses. For
3107
+ # example: ``` (name = "example-server") (createTime > "2021-04-12T08:15:10.40Z")
3108
+ # ``` By default, each expression is an `AND` expression. However, you can
3109
+ # include `AND` and `OR` expressions explicitly. For example: ``` (name = "
3110
+ # example-server-1") AND (createTime > "2021-04-12T08:15:10.40Z") OR (name = "
3111
+ # example-server-2") ```
3112
+ # @param [String] order_by
3113
+ # Sorts list results by a certain order. By default, returned results are
3114
+ # ordered by `name` in ascending order. You can also sort results in descending
3115
+ # order based on the `name` value using `orderBy="name desc"`. Currently, only
3116
+ # ordering by `name` is supported.
3117
+ # @param [Fixnum] page_size
3118
+ # The maximum number of logging servers to return in one page. The service may
3119
+ # return fewer than this value. The maximum value is coerced to 1000. The
3120
+ # default value of this field is 500.
3121
+ # @param [String] page_token
3122
+ # A page token, received from a previous `ListLoggingServersRequest` call.
3123
+ # Provide this to retrieve the subsequent page. When paginating, all other
3124
+ # parameters provided to `ListLoggingServersRequest` must match the call that
3125
+ # provided the page token.
3126
+ # @param [String] fields
3127
+ # Selector specifying which fields to include in a partial response.
3128
+ # @param [String] quota_user
3129
+ # Available to use for quota purposes for server-side applications. Can be any
3130
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3131
+ # @param [Google::Apis::RequestOptions] options
3132
+ # Request-specific options
3133
+ #
3134
+ # @yield [result, err] Result & error if block supplied
3135
+ # @yieldparam result [Google::Apis::VmwareengineV1::ListLoggingServersResponse] parsed result object
1461
3136
  # @yieldparam err [StandardError] error object if request failed
1462
3137
  #
1463
- # @return [Google::Apis::VmwareengineV1::Policy]
3138
+ # @return [Google::Apis::VmwareengineV1::ListLoggingServersResponse]
1464
3139
  #
1465
3140
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1466
3141
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1467
3142
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1468
- def set_cluster_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1469
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1470
- command.request_representation = Google::Apis::VmwareengineV1::SetIamPolicyRequest::Representation
1471
- command.request_object = set_iam_policy_request_object
1472
- command.response_representation = Google::Apis::VmwareengineV1::Policy::Representation
1473
- command.response_class = Google::Apis::VmwareengineV1::Policy
1474
- command.params['resource'] = resource unless resource.nil?
3143
+ def list_project_location_private_cloud_logging_servers(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3144
+ command = make_simple_command(:get, 'v1/{+parent}/loggingServers', options)
3145
+ command.response_representation = Google::Apis::VmwareengineV1::ListLoggingServersResponse::Representation
3146
+ command.response_class = Google::Apis::VmwareengineV1::ListLoggingServersResponse
3147
+ command.params['parent'] = parent unless parent.nil?
3148
+ command.query['filter'] = filter unless filter.nil?
3149
+ command.query['orderBy'] = order_by unless order_by.nil?
3150
+ command.query['pageSize'] = page_size unless page_size.nil?
3151
+ command.query['pageToken'] = page_token unless page_token.nil?
1475
3152
  command.query['fields'] = fields unless fields.nil?
1476
3153
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1477
3154
  execute_or_queue_command(command, &block)
1478
3155
  end
1479
3156
 
1480
- # Returns permissions that a caller has on the specified resource. If the
1481
- # resource does not exist, this will return an empty set of permissions, not a `
1482
- # NOT_FOUND` error. Note: This operation is designed to be used for building
1483
- # permission-aware UIs and command-line tools, not for authorization checking.
1484
- # This operation may "fail open" without warning.
1485
- # @param [String] resource
1486
- # REQUIRED: The resource for which the policy detail is being requested. See [
1487
- # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1488
- # appropriate value for this field.
1489
- # @param [Google::Apis::VmwareengineV1::TestIamPermissionsRequest] test_iam_permissions_request_object
3157
+ # Updates the parameters of a single logging server. Only fields specified in `
3158
+ # update_mask` are applied.
3159
+ # @param [String] name
3160
+ # Output only. The resource name of this logging server. Resource names are
3161
+ # schemeless URIs that follow the conventions in https://cloud.google.com/apis/
3162
+ # design/resource_names. For example: `projects/my-project/locations/us-central1-
3163
+ # a/privateClouds/my-cloud/loggingServers/my-logging-server`
3164
+ # @param [Google::Apis::VmwareengineV1::LoggingServer] logging_server_object
3165
+ # @param [String] request_id
3166
+ # Optional. A request ID to identify requests. Specify a unique request ID so
3167
+ # that if you must retry your request, the server will know to ignore the
3168
+ # request if it has already been completed. The server guarantees that a request
3169
+ # doesn't result in creation of duplicate commitments for at least 60 minutes.
3170
+ # For example, consider a situation where you make an initial request and the
3171
+ # request times out. If you make the request again with the same request ID, the
3172
+ # server can check if original operation with the same request ID was received,
3173
+ # and if so, will ignore the second request. This prevents clients from
3174
+ # accidentally creating duplicate commitments. The request ID must be a valid
3175
+ # UUID with the exception that zero UUID is not supported (00000000-0000-0000-
3176
+ # 0000-000000000000).
3177
+ # @param [String] update_mask
3178
+ # Required. Field mask is used to specify the fields to be overwritten in the `
3179
+ # LoggingServer` resource by the update. The fields specified in the `
3180
+ # update_mask` are relative to the resource, not the full request. A field will
3181
+ # be overwritten if it is in the mask. If the user does not provide a mask then
3182
+ # all fields will be overwritten.
1490
3183
  # @param [String] fields
1491
3184
  # Selector specifying which fields to include in a partial response.
1492
3185
  # @param [String] quota_user
@@ -1496,53 +3189,62 @@ module Google
1496
3189
  # Request-specific options
1497
3190
  #
1498
3191
  # @yield [result, err] Result & error if block supplied
1499
- # @yieldparam result [Google::Apis::VmwareengineV1::TestIamPermissionsResponse] parsed result object
3192
+ # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
1500
3193
  # @yieldparam err [StandardError] error object if request failed
1501
3194
  #
1502
- # @return [Google::Apis::VmwareengineV1::TestIamPermissionsResponse]
3195
+ # @return [Google::Apis::VmwareengineV1::Operation]
1503
3196
  #
1504
3197
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1505
3198
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1506
3199
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1507
- def test_cluster_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1508
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1509
- command.request_representation = Google::Apis::VmwareengineV1::TestIamPermissionsRequest::Representation
1510
- command.request_object = test_iam_permissions_request_object
1511
- command.response_representation = Google::Apis::VmwareengineV1::TestIamPermissionsResponse::Representation
1512
- command.response_class = Google::Apis::VmwareengineV1::TestIamPermissionsResponse
1513
- command.params['resource'] = resource unless resource.nil?
3200
+ def patch_project_location_private_cloud_logging_server(name, logging_server_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3201
+ command = make_simple_command(:patch, 'v1/{+name}', options)
3202
+ command.request_representation = Google::Apis::VmwareengineV1::LoggingServer::Representation
3203
+ command.request_object = logging_server_object
3204
+ command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
3205
+ command.response_class = Google::Apis::VmwareengineV1::Operation
3206
+ command.params['name'] = name unless name.nil?
3207
+ command.query['requestId'] = request_id unless request_id.nil?
3208
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1514
3209
  command.query['fields'] = fields unless fields.nil?
1515
3210
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1516
3211
  execute_or_queue_command(command, &block)
1517
3212
  end
1518
3213
 
1519
- # Creates a new HCX activation key in a given private cloud.
3214
+ # Creates a new `ManagementDnsZoneBinding` resource in a private cloud. This RPC
3215
+ # creates the DNS binding and the resource that represents the DNS binding of
3216
+ # the consumer VPC network to the management DNS zone. A management DNS zone is
3217
+ # the Cloud DNS cross-project binding zone that VMware Engine creates for each
3218
+ # private cloud. It contains FQDNs and corresponding IP addresses for the
3219
+ # private cloud's ESXi hosts and management VM appliances like vCenter and NSX
3220
+ # Manager.
1520
3221
  # @param [String] parent
1521
- # Required. The resource name of the private cloud to create the key for.
1522
- # Resource names are schemeless URIs that follow the conventions in https://
1523
- # cloud.google.com/apis/design/resource_names. For example: `projects/my-project/
1524
- # locations/us-central1/privateClouds/my-cloud`
1525
- # @param [Google::Apis::VmwareengineV1::HcxActivationKey] hcx_activation_key_object
1526
- # @param [String] hcx_activation_key_id
1527
- # Required. The user-provided identifier of the `HcxActivationKey` to be created.
1528
- # This identifier must be unique among `HcxActivationKey` resources within the
1529
- # parent and becomes the final token in the name URI. The identifier must meet
1530
- # the following requirements: * Only contains 1-63 alphanumeric characters and
1531
- # hyphens * Begins with an alphabetical character * Ends with a non-hyphen
1532
- # character * Not formatted as a UUID * Complies with [RFC 1034](https://
1533
- # datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
3222
+ # Required. The resource name of the private cloud to create a new management
3223
+ # DNS zone binding for. Resource names are schemeless URIs that follow the
3224
+ # conventions in https://cloud.google.com/apis/design/resource_names. For
3225
+ # example: `projects/my-project/locations/us-central1-a/privateClouds/my-cloud`
3226
+ # @param [Google::Apis::VmwareengineV1::ManagementDnsZoneBinding] management_dns_zone_binding_object
3227
+ # @param [String] management_dns_zone_binding_id
3228
+ # Required. The user-provided identifier of the `ManagementDnsZoneBinding`
3229
+ # resource to be created. This identifier must be unique among `
3230
+ # ManagementDnsZoneBinding` resources within the parent and becomes the final
3231
+ # token in the name URI. The identifier must meet the following requirements: *
3232
+ # Only contains 1-63 alphanumeric characters and hyphens * Begins with an
3233
+ # alphabetical character * Ends with a non-hyphen character * Not formatted as a
3234
+ # UUID * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
3235
+ # (section 3.5)
1534
3236
  # @param [String] request_id
1535
- # A request ID to identify requests. Specify a unique request ID so that if you
1536
- # must retry your request, the server will know to ignore the request if it has
1537
- # already been completed. The server guarantees that a request doesn't result in
1538
- # creation of duplicate commitments for at least 60 minutes. For example,
1539
- # consider a situation where you make an initial request and the request times
1540
- # out. If you make the request again with the same request ID, the server can
1541
- # check if original operation with the same request ID was received, and if so,
1542
- # will ignore the second request. This prevents clients from accidentally
1543
- # creating duplicate commitments. The request ID must be a valid UUID with the
1544
- # exception that zero UUID is not supported (00000000-0000-0000-0000-
1545
- # 000000000000).
3237
+ # Optional. A request ID to identify requests. Specify a unique request ID so
3238
+ # that if you must retry your request, the server will know to ignore the
3239
+ # request if it has already been completed. The server guarantees that a request
3240
+ # doesn't result in creation of duplicate commitments for at least 60 minutes.
3241
+ # For example, consider a situation where you make an initial request and the
3242
+ # request times out. If you make the request again with the same request ID, the
3243
+ # server can check if the original operation with the same request ID was
3244
+ # received, and if so, will ignore the second request. This prevents clients
3245
+ # from accidentally creating duplicate commitments. The request ID must be a
3246
+ # valid UUID with the exception that zero UUID is not supported (00000000-0000-
3247
+ # 0000-0000-000000000000).
1546
3248
  # @param [String] fields
1547
3249
  # Selector specifying which fields to include in a partial response.
1548
3250
  # @param [String] quota_user
@@ -1560,26 +3262,41 @@ module Google
1560
3262
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1561
3263
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1562
3264
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1563
- def create_project_location_private_cloud_hcx_activation_key(parent, hcx_activation_key_object = nil, hcx_activation_key_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1564
- command = make_simple_command(:post, 'v1/{+parent}/hcxActivationKeys', options)
1565
- command.request_representation = Google::Apis::VmwareengineV1::HcxActivationKey::Representation
1566
- command.request_object = hcx_activation_key_object
3265
+ def create_project_location_private_cloud_management_dns_zone_binding(parent, management_dns_zone_binding_object = nil, management_dns_zone_binding_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3266
+ command = make_simple_command(:post, 'v1/{+parent}/managementDnsZoneBindings', options)
3267
+ command.request_representation = Google::Apis::VmwareengineV1::ManagementDnsZoneBinding::Representation
3268
+ command.request_object = management_dns_zone_binding_object
1567
3269
  command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
1568
3270
  command.response_class = Google::Apis::VmwareengineV1::Operation
1569
3271
  command.params['parent'] = parent unless parent.nil?
1570
- command.query['hcxActivationKeyId'] = hcx_activation_key_id unless hcx_activation_key_id.nil?
3272
+ command.query['managementDnsZoneBindingId'] = management_dns_zone_binding_id unless management_dns_zone_binding_id.nil?
1571
3273
  command.query['requestId'] = request_id unless request_id.nil?
1572
3274
  command.query['fields'] = fields unless fields.nil?
1573
3275
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1574
3276
  execute_or_queue_command(command, &block)
1575
3277
  end
1576
3278
 
1577
- # Retrieves a `HcxActivationKey` resource by its resource name.
3279
+ # Deletes a `ManagementDnsZoneBinding` resource. When a management DNS zone
3280
+ # binding is deleted, the corresponding consumer VPC network is no longer bound
3281
+ # to the management DNS zone.
1578
3282
  # @param [String] name
1579
- # Required. The resource name of the HCX activation key to retrieve. Resource
1580
- # names are schemeless URIs that follow the conventions in https://cloud.google.
1581
- # com/apis/design/resource_names. For example: `projects/my-project/locations/us-
1582
- # central1/privateClouds/my-cloud/hcxActivationKeys/my-key`
3283
+ # Required. The resource name of the management DNS zone binding to delete.
3284
+ # Resource names are schemeless URIs that follow the conventions in https://
3285
+ # cloud.google.com/apis/design/resource_names. For example: `projects/my-project/
3286
+ # locations/us-central1-a/privateClouds/my-cloud/managementDnsZoneBindings/my-
3287
+ # management-dns-zone-binding`
3288
+ # @param [String] request_id
3289
+ # Optional. A request ID to identify requests. Specify a unique request ID so
3290
+ # that if you must retry your request, the server will know to ignore the
3291
+ # request if it has already been completed. The server guarantees that a request
3292
+ # doesn't result in creation of duplicate commitments for at least 60 minutes.
3293
+ # For example, consider a situation where you make an initial request and the
3294
+ # request times out. If you make the request again with the same request ID, the
3295
+ # server can check if the original operation with the same request ID was
3296
+ # received, and if so, will ignore the second request. This prevents clients
3297
+ # from accidentally creating duplicate commitments. The request ID must be a
3298
+ # valid UUID with the exception that zero UUID is not supported (00000000-0000-
3299
+ # 0000-0000-000000000000).
1583
3300
  # @param [String] fields
1584
3301
  # Selector specifying which fields to include in a partial response.
1585
3302
  # @param [String] quota_user
@@ -1589,41 +3306,32 @@ module Google
1589
3306
  # Request-specific options
1590
3307
  #
1591
3308
  # @yield [result, err] Result & error if block supplied
1592
- # @yieldparam result [Google::Apis::VmwareengineV1::HcxActivationKey] parsed result object
3309
+ # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
1593
3310
  # @yieldparam err [StandardError] error object if request failed
1594
3311
  #
1595
- # @return [Google::Apis::VmwareengineV1::HcxActivationKey]
3312
+ # @return [Google::Apis::VmwareengineV1::Operation]
1596
3313
  #
1597
3314
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1598
3315
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1599
3316
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1600
- def get_project_location_private_cloud_hcx_activation_key(name, fields: nil, quota_user: nil, options: nil, &block)
1601
- command = make_simple_command(:get, 'v1/{+name}', options)
1602
- command.response_representation = Google::Apis::VmwareengineV1::HcxActivationKey::Representation
1603
- command.response_class = Google::Apis::VmwareengineV1::HcxActivationKey
3317
+ def delete_project_location_private_cloud_management_dns_zone_binding(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3318
+ command = make_simple_command(:delete, 'v1/{+name}', options)
3319
+ command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
3320
+ command.response_class = Google::Apis::VmwareengineV1::Operation
1604
3321
  command.params['name'] = name unless name.nil?
3322
+ command.query['requestId'] = request_id unless request_id.nil?
1605
3323
  command.query['fields'] = fields unless fields.nil?
1606
3324
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1607
3325
  execute_or_queue_command(command, &block)
1608
3326
  end
1609
3327
 
1610
- # Gets the access control policy for a resource. Returns an empty policy if the
1611
- # resource exists and does not have a policy set.
1612
- # @param [String] resource
1613
- # REQUIRED: The resource for which the policy is being requested. See [Resource
1614
- # names](https://cloud.google.com/apis/design/resource_names) for the
1615
- # appropriate value for this field.
1616
- # @param [Fixnum] options_requested_policy_version
1617
- # Optional. The maximum policy version that will be used to format the policy.
1618
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1619
- # rejected. Requests for policies with any conditional role bindings must
1620
- # specify version 3. Policies with no conditional role bindings may specify any
1621
- # valid value or leave the field unset. The policy in the response might use the
1622
- # policy version that you specified, or it might use a lower policy version. For
1623
- # example, if you specify version 3, but the policy has no conditional role
1624
- # bindings, the response uses version 1. To learn which resources support
1625
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1626
- # google.com/iam/help/conditions/resource-policies).
3328
+ # Retrieves a 'ManagementDnsZoneBinding' resource by its resource name.
3329
+ # @param [String] name
3330
+ # Required. The resource name of the management DNS zone binding to retrieve.
3331
+ # Resource names are schemeless URIs that follow the conventions in https://
3332
+ # cloud.google.com/apis/design/resource_names. For example: `projects/my-project/
3333
+ # locations/us-central1-a/privateClouds/my-cloud/managementDnsZoneBindings/my-
3334
+ # management-dns-zone-binding`
1627
3335
  # @param [String] fields
1628
3336
  # Selector specifying which fields to include in a partial response.
1629
3337
  # @param [String] quota_user
@@ -1633,40 +3341,58 @@ module Google
1633
3341
  # Request-specific options
1634
3342
  #
1635
3343
  # @yield [result, err] Result & error if block supplied
1636
- # @yieldparam result [Google::Apis::VmwareengineV1::Policy] parsed result object
3344
+ # @yieldparam result [Google::Apis::VmwareengineV1::ManagementDnsZoneBinding] parsed result object
1637
3345
  # @yieldparam err [StandardError] error object if request failed
1638
3346
  #
1639
- # @return [Google::Apis::VmwareengineV1::Policy]
3347
+ # @return [Google::Apis::VmwareengineV1::ManagementDnsZoneBinding]
1640
3348
  #
1641
3349
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1642
3350
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1643
3351
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1644
- def get_project_location_private_cloud_hcx_activation_key_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1645
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
1646
- command.response_representation = Google::Apis::VmwareengineV1::Policy::Representation
1647
- command.response_class = Google::Apis::VmwareengineV1::Policy
1648
- command.params['resource'] = resource unless resource.nil?
1649
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
3352
+ def get_project_location_private_cloud_management_dns_zone_binding(name, fields: nil, quota_user: nil, options: nil, &block)
3353
+ command = make_simple_command(:get, 'v1/{+name}', options)
3354
+ command.response_representation = Google::Apis::VmwareengineV1::ManagementDnsZoneBinding::Representation
3355
+ command.response_class = Google::Apis::VmwareengineV1::ManagementDnsZoneBinding
3356
+ command.params['name'] = name unless name.nil?
1650
3357
  command.query['fields'] = fields unless fields.nil?
1651
3358
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1652
3359
  execute_or_queue_command(command, &block)
1653
3360
  end
1654
3361
 
1655
- # Lists `HcxActivationKey` resources in a given private cloud.
3362
+ # Lists Consumer VPCs bound to Management DNS Zone of a given private cloud.
1656
3363
  # @param [String] parent
1657
- # Required. The resource name of the private cloud to be queried for HCX
1658
- # activation keys. Resource names are schemeless URIs that follow the
3364
+ # Required. The resource name of the private cloud to be queried for management
3365
+ # DNS zone bindings. Resource names are schemeless URIs that follow the
1659
3366
  # conventions in https://cloud.google.com/apis/design/resource_names. For
1660
- # example: `projects/my-project/locations/us-central1/privateClouds/my-cloud`
3367
+ # example: `projects/my-project/locations/us-central1-a/privateClouds/my-cloud`
3368
+ # @param [String] filter
3369
+ # A filter expression that matches resources returned in the response. The
3370
+ # expression must specify the field name, a comparison operator, and the value
3371
+ # that you want to use for filtering. The value must be a string, a number, or a
3372
+ # boolean. The comparison operator must be `=`, `!=`, `>`, or `<`. For example,
3373
+ # if you are filtering a list of Management DNS Zone Bindings, you can exclude
3374
+ # the ones named `example-management-dns-zone-binding` by specifying `name != "
3375
+ # example-management-dns-zone-binding"`. To filter on multiple expressions,
3376
+ # provide each separate expression within parentheses. For example: ``` (name = "
3377
+ # example-management-dns-zone-binding") (createTime > "2021-04-12T08:15:10.40Z")
3378
+ # ``` By default, each expression is an `AND` expression. However, you can
3379
+ # include `AND` and `OR` expressions explicitly. For example: ``` (name = "
3380
+ # example-management-dns-zone-binding-1") AND (createTime > "2021-04-12T08:15:10.
3381
+ # 40Z") OR (name = "example-management-dns-zone-binding-2") ```
3382
+ # @param [String] order_by
3383
+ # Sorts list results by a certain order. By default, returned results are
3384
+ # ordered by `name` in ascending order. You can also sort results in descending
3385
+ # order based on the `name` value using `orderBy="name desc"`. Currently, only
3386
+ # ordering by `name` is supported.
1661
3387
  # @param [Fixnum] page_size
1662
- # The maximum number of HCX activation keys to return in one page. The service
1663
- # may return fewer than this value. The maximum value is coerced to 1000. The
1664
- # default value of this field is 500.
3388
+ # The maximum number of management DNS zone bindings to return in one page. The
3389
+ # service may return fewer than this value. The maximum value is coerced to 1000.
3390
+ # The default value of this field is 500.
1665
3391
  # @param [String] page_token
1666
- # A page token, received from a previous `ListHcxActivationKeys` call. Provide
1667
- # this to retrieve the subsequent page. When paginating, all other parameters
1668
- # provided to `ListHcxActivationKeys` must match the call that provided the page
1669
- # token.
3392
+ # A page token, received from a previous `ListManagementDnsZoneBindings` call.
3393
+ # Provide this to retrieve the subsequent page. When paginating, all other
3394
+ # parameters provided to `ListManagementDnsZoneBindings` must match the call
3395
+ # that provided the page token.
1670
3396
  # @param [String] fields
1671
3397
  # Selector specifying which fields to include in a partial response.
1672
3398
  # @param [String] quota_user
@@ -1676,19 +3402,21 @@ module Google
1676
3402
  # Request-specific options
1677
3403
  #
1678
3404
  # @yield [result, err] Result & error if block supplied
1679
- # @yieldparam result [Google::Apis::VmwareengineV1::ListHcxActivationKeysResponse] parsed result object
3405
+ # @yieldparam result [Google::Apis::VmwareengineV1::ListManagementDnsZoneBindingsResponse] parsed result object
1680
3406
  # @yieldparam err [StandardError] error object if request failed
1681
3407
  #
1682
- # @return [Google::Apis::VmwareengineV1::ListHcxActivationKeysResponse]
3408
+ # @return [Google::Apis::VmwareengineV1::ListManagementDnsZoneBindingsResponse]
1683
3409
  #
1684
3410
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1685
3411
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1686
3412
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1687
- def list_project_location_private_cloud_hcx_activation_keys(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1688
- command = make_simple_command(:get, 'v1/{+parent}/hcxActivationKeys', options)
1689
- command.response_representation = Google::Apis::VmwareengineV1::ListHcxActivationKeysResponse::Representation
1690
- command.response_class = Google::Apis::VmwareengineV1::ListHcxActivationKeysResponse
3413
+ def list_project_location_private_cloud_management_dns_zone_bindings(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3414
+ command = make_simple_command(:get, 'v1/{+parent}/managementDnsZoneBindings', options)
3415
+ command.response_representation = Google::Apis::VmwareengineV1::ListManagementDnsZoneBindingsResponse::Representation
3416
+ command.response_class = Google::Apis::VmwareengineV1::ListManagementDnsZoneBindingsResponse
1691
3417
  command.params['parent'] = parent unless parent.nil?
3418
+ command.query['filter'] = filter unless filter.nil?
3419
+ command.query['orderBy'] = order_by unless order_by.nil?
1692
3420
  command.query['pageSize'] = page_size unless page_size.nil?
1693
3421
  command.query['pageToken'] = page_token unless page_token.nil?
1694
3422
  command.query['fields'] = fields unless fields.nil?
@@ -1696,14 +3424,33 @@ module Google
1696
3424
  execute_or_queue_command(command, &block)
1697
3425
  end
1698
3426
 
1699
- # Sets the access control policy on the specified resource. Replaces any
1700
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1701
- # PERMISSION_DENIED` errors.
1702
- # @param [String] resource
1703
- # REQUIRED: The resource for which the policy is being specified. See [Resource
1704
- # names](https://cloud.google.com/apis/design/resource_names) for the
1705
- # appropriate value for this field.
1706
- # @param [Google::Apis::VmwareengineV1::SetIamPolicyRequest] set_iam_policy_request_object
3427
+ # Updates a `ManagementDnsZoneBinding` resource. Only fields specified in `
3428
+ # update_mask` are applied.
3429
+ # @param [String] name
3430
+ # Output only. The resource name of this binding. Resource names are schemeless
3431
+ # URIs that follow the conventions in https://cloud.google.com/apis/design/
3432
+ # resource_names. For example: `projects/my-project/locations/us-central1-a/
3433
+ # privateClouds/my-cloud/managementDnsZoneBindings/my-management-dns-zone-
3434
+ # binding`
3435
+ # @param [Google::Apis::VmwareengineV1::ManagementDnsZoneBinding] management_dns_zone_binding_object
3436
+ # @param [String] request_id
3437
+ # Optional. A request ID to identify requests. Specify a unique request ID so
3438
+ # that if you must retry your request, the server will know to ignore the
3439
+ # request if it has already been completed. The server guarantees that a request
3440
+ # doesn't result in creation of duplicate commitments for at least 60 minutes.
3441
+ # For example, consider a situation where you make an initial request and the
3442
+ # request times out. If you make the request again with the same request ID, the
3443
+ # server can check if the original operation with the same request ID was
3444
+ # received, and if so, will ignore the second request. This prevents clients
3445
+ # from accidentally creating duplicate commitments. The request ID must be a
3446
+ # valid UUID with the exception that zero UUID is not supported (00000000-0000-
3447
+ # 0000-0000-000000000000).
3448
+ # @param [String] update_mask
3449
+ # Required. Field mask is used to specify the fields to be overwritten in the `
3450
+ # ManagementDnsZoneBinding` resource by the update. The fields specified in the `
3451
+ # update_mask` are relative to the resource, not the full request. A field will
3452
+ # be overwritten if it is in the mask. If the user does not provide a mask then
3453
+ # all fields will be overwritten.
1707
3454
  # @param [String] fields
1708
3455
  # Selector specifying which fields to include in a partial response.
1709
3456
  # @param [String] quota_user
@@ -1713,36 +3460,37 @@ module Google
1713
3460
  # Request-specific options
1714
3461
  #
1715
3462
  # @yield [result, err] Result & error if block supplied
1716
- # @yieldparam result [Google::Apis::VmwareengineV1::Policy] parsed result object
3463
+ # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
1717
3464
  # @yieldparam err [StandardError] error object if request failed
1718
3465
  #
1719
- # @return [Google::Apis::VmwareengineV1::Policy]
3466
+ # @return [Google::Apis::VmwareengineV1::Operation]
1720
3467
  #
1721
3468
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1722
3469
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1723
3470
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1724
- def set_hcx_activation_key_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1725
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1726
- command.request_representation = Google::Apis::VmwareengineV1::SetIamPolicyRequest::Representation
1727
- command.request_object = set_iam_policy_request_object
1728
- command.response_representation = Google::Apis::VmwareengineV1::Policy::Representation
1729
- command.response_class = Google::Apis::VmwareengineV1::Policy
1730
- command.params['resource'] = resource unless resource.nil?
3471
+ def patch_project_location_private_cloud_management_dns_zone_binding(name, management_dns_zone_binding_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3472
+ command = make_simple_command(:patch, 'v1/{+name}', options)
3473
+ command.request_representation = Google::Apis::VmwareengineV1::ManagementDnsZoneBinding::Representation
3474
+ command.request_object = management_dns_zone_binding_object
3475
+ command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
3476
+ command.response_class = Google::Apis::VmwareengineV1::Operation
3477
+ command.params['name'] = name unless name.nil?
3478
+ command.query['requestId'] = request_id unless request_id.nil?
3479
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1731
3480
  command.query['fields'] = fields unless fields.nil?
1732
3481
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1733
3482
  execute_or_queue_command(command, &block)
1734
3483
  end
1735
3484
 
1736
- # Returns permissions that a caller has on the specified resource. If the
1737
- # resource does not exist, this will return an empty set of permissions, not a `
1738
- # NOT_FOUND` error. Note: This operation is designed to be used for building
1739
- # permission-aware UIs and command-line tools, not for authorization checking.
1740
- # This operation may "fail open" without warning.
1741
- # @param [String] resource
1742
- # REQUIRED: The resource for which the policy detail is being requested. See [
1743
- # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1744
- # appropriate value for this field.
1745
- # @param [Google::Apis::VmwareengineV1::TestIamPermissionsRequest] test_iam_permissions_request_object
3485
+ # Retries to create a `ManagementDnsZoneBinding` resource that is in failed
3486
+ # state.
3487
+ # @param [String] name
3488
+ # Required. The resource name of the management DNS zone binding to repair.
3489
+ # Resource names are schemeless URIs that follow the conventions in https://
3490
+ # cloud.google.com/apis/design/resource_names. For example: `projects/my-project/
3491
+ # locations/us-central1-a/privateClouds/my-cloud/managementDnsZoneBindings/my-
3492
+ # management-dns-zone-binding`
3493
+ # @param [Google::Apis::VmwareengineV1::RepairManagementDnsZoneBindingRequest] repair_management_dns_zone_binding_request_object
1746
3494
  # @param [String] fields
1747
3495
  # Selector specifying which fields to include in a partial response.
1748
3496
  # @param [String] quota_user
@@ -1752,21 +3500,21 @@ module Google
1752
3500
  # Request-specific options
1753
3501
  #
1754
3502
  # @yield [result, err] Result & error if block supplied
1755
- # @yieldparam result [Google::Apis::VmwareengineV1::TestIamPermissionsResponse] parsed result object
3503
+ # @yieldparam result [Google::Apis::VmwareengineV1::Operation] parsed result object
1756
3504
  # @yieldparam err [StandardError] error object if request failed
1757
3505
  #
1758
- # @return [Google::Apis::VmwareengineV1::TestIamPermissionsResponse]
3506
+ # @return [Google::Apis::VmwareengineV1::Operation]
1759
3507
  #
1760
3508
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1761
3509
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1762
3510
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1763
- def test_hcx_activation_key_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1764
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1765
- command.request_representation = Google::Apis::VmwareengineV1::TestIamPermissionsRequest::Representation
1766
- command.request_object = test_iam_permissions_request_object
1767
- command.response_representation = Google::Apis::VmwareengineV1::TestIamPermissionsResponse::Representation
1768
- command.response_class = Google::Apis::VmwareengineV1::TestIamPermissionsResponse
1769
- command.params['resource'] = resource unless resource.nil?
3511
+ def repair_management_dns_zone_binding(name, repair_management_dns_zone_binding_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3512
+ command = make_simple_command(:post, 'v1/{+name}:repair', options)
3513
+ command.request_representation = Google::Apis::VmwareengineV1::RepairManagementDnsZoneBindingRequest::Representation
3514
+ command.request_object = repair_management_dns_zone_binding_request_object
3515
+ command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation
3516
+ command.response_class = Google::Apis::VmwareengineV1::Operation
3517
+ command.params['name'] = name unless name.nil?
1770
3518
  command.query['fields'] = fields unless fields.nil?
1771
3519
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1772
3520
  execute_or_queue_command(command, &block)