google-apis-gkeonprem_v1 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google/apis/gkeonprem_v1/classes.rb +5073 -0
- data/lib/google/apis/gkeonprem_v1/gem_version.rb +28 -0
- data/lib/google/apis/gkeonprem_v1/representations.rb +2247 -0
- data/lib/google/apis/gkeonprem_v1/service.rb +3216 -0
- data/lib/google/apis/gkeonprem_v1.rb +36 -0
- data/lib/google-apis-gkeonprem_v1.rb +15 -0
- metadata +82 -0
@@ -0,0 +1,3216 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module GkeonpremV1
|
23
|
+
# Anthos On-Prem API
|
24
|
+
#
|
25
|
+
#
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/gkeonprem_v1'
|
29
|
+
#
|
30
|
+
# Gkeonprem = Google::Apis::GkeonpremV1 # Alias the module
|
31
|
+
# service = Gkeonprem::GKEOnPremService.new
|
32
|
+
#
|
33
|
+
# @see https://cloud.google.com/anthos/clusters/docs/on-prem/
|
34
|
+
class GKEOnPremService < Google::Apis::Core::BaseService
|
35
|
+
# @return [String]
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
+
attr_accessor :key
|
39
|
+
|
40
|
+
# @return [String]
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
+
attr_accessor :quota_user
|
44
|
+
|
45
|
+
def initialize
|
46
|
+
super('https://gkeonprem.googleapis.com/', '',
|
47
|
+
client_name: 'google-apis-gkeonprem_v1',
|
48
|
+
client_version: Google::Apis::GkeonpremV1::GEM_VERSION)
|
49
|
+
@batch_path = 'batch'
|
50
|
+
end
|
51
|
+
|
52
|
+
# Gets information about a location.
|
53
|
+
# @param [String] name
|
54
|
+
# Resource name for the location.
|
55
|
+
# @param [String] fields
|
56
|
+
# Selector specifying which fields to include in a partial response.
|
57
|
+
# @param [String] quota_user
|
58
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
59
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
60
|
+
# @param [Google::Apis::RequestOptions] options
|
61
|
+
# Request-specific options
|
62
|
+
#
|
63
|
+
# @yield [result, err] Result & error if block supplied
|
64
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Location] parsed result object
|
65
|
+
# @yieldparam err [StandardError] error object if request failed
|
66
|
+
#
|
67
|
+
# @return [Google::Apis::GkeonpremV1::Location]
|
68
|
+
#
|
69
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
70
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
71
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
72
|
+
def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
73
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
74
|
+
command.response_representation = Google::Apis::GkeonpremV1::Location::Representation
|
75
|
+
command.response_class = Google::Apis::GkeonpremV1::Location
|
76
|
+
command.params['name'] = name unless name.nil?
|
77
|
+
command.query['fields'] = fields unless fields.nil?
|
78
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
79
|
+
execute_or_queue_command(command, &block)
|
80
|
+
end
|
81
|
+
|
82
|
+
# Lists information about the supported locations for this service.
|
83
|
+
# @param [String] name
|
84
|
+
# The resource that owns the locations collection, if applicable.
|
85
|
+
# @param [String] filter
|
86
|
+
# A filter to narrow down results to a preferred subset. The filtering language
|
87
|
+
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
88
|
+
# in [AIP-160](https://google.aip.dev/160).
|
89
|
+
# @param [Fixnum] page_size
|
90
|
+
# The maximum number of results to return. If not set, the service selects a
|
91
|
+
# default.
|
92
|
+
# @param [String] page_token
|
93
|
+
# A page token received from the `next_page_token` field in the response. Send
|
94
|
+
# that page token to receive the subsequent page.
|
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::GkeonpremV1::ListLocationsResponse] parsed result object
|
105
|
+
# @yieldparam err [StandardError] error object if request failed
|
106
|
+
#
|
107
|
+
# @return [Google::Apis::GkeonpremV1::ListLocationsResponse]
|
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 list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
113
|
+
command = make_simple_command(:get, 'v1/{+name}/locations', options)
|
114
|
+
command.response_representation = Google::Apis::GkeonpremV1::ListLocationsResponse::Representation
|
115
|
+
command.response_class = Google::Apis::GkeonpremV1::ListLocationsResponse
|
116
|
+
command.params['name'] = name unless name.nil?
|
117
|
+
command.query['filter'] = filter unless filter.nil?
|
118
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
119
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
120
|
+
command.query['fields'] = fields unless fields.nil?
|
121
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
122
|
+
execute_or_queue_command(command, &block)
|
123
|
+
end
|
124
|
+
|
125
|
+
# Creates a new bare metal admin cluster in a given project and location. The
|
126
|
+
# API needs to be combined with creating a bootstrap cluster to work. See: https:
|
127
|
+
# //cloud.google.com/anthos/clusters/docs/bare-metal/latest/installing/creating-
|
128
|
+
# clusters/create-admin-cluster-api#prepare_bootstrap_environment
|
129
|
+
# @param [String] parent
|
130
|
+
# Required. The parent of the project and location where the cluster is created
|
131
|
+
# in. Format: "projects/`project`/locations/`location`"
|
132
|
+
# @param [Google::Apis::GkeonpremV1::BareMetalAdminCluster] bare_metal_admin_cluster_object
|
133
|
+
# @param [String] bare_metal_admin_cluster_id
|
134
|
+
# Required. User provided identifier that is used as part of the resource name;
|
135
|
+
# must conform to RFC-1034 and additionally restrict to lower-cased letters.
|
136
|
+
# This comes out roughly to: /^a-z+[a-z0-9]$/
|
137
|
+
# @param [Boolean] validate_only
|
138
|
+
# Validate the request without actually doing any updates.
|
139
|
+
# @param [String] fields
|
140
|
+
# Selector specifying which fields to include in a partial response.
|
141
|
+
# @param [String] quota_user
|
142
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
143
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
144
|
+
# @param [Google::Apis::RequestOptions] options
|
145
|
+
# Request-specific options
|
146
|
+
#
|
147
|
+
# @yield [result, err] Result & error if block supplied
|
148
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
149
|
+
# @yieldparam err [StandardError] error object if request failed
|
150
|
+
#
|
151
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
152
|
+
#
|
153
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
154
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
155
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
156
|
+
def create_project_location_bare_metal_admin_cluster(parent, bare_metal_admin_cluster_object = nil, bare_metal_admin_cluster_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
157
|
+
command = make_simple_command(:post, 'v1/{+parent}/bareMetalAdminClusters', options)
|
158
|
+
command.request_representation = Google::Apis::GkeonpremV1::BareMetalAdminCluster::Representation
|
159
|
+
command.request_object = bare_metal_admin_cluster_object
|
160
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
161
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
162
|
+
command.params['parent'] = parent unless parent.nil?
|
163
|
+
command.query['bareMetalAdminClusterId'] = bare_metal_admin_cluster_id unless bare_metal_admin_cluster_id.nil?
|
164
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
165
|
+
command.query['fields'] = fields unless fields.nil?
|
166
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
167
|
+
execute_or_queue_command(command, &block)
|
168
|
+
end
|
169
|
+
|
170
|
+
# Enrolls an existing bare metal admin cluster to the Anthos On-Prem API within
|
171
|
+
# a given project and location. Through enrollment, an existing admin cluster
|
172
|
+
# will become Anthos On-Prem API managed. The corresponding GCP resources will
|
173
|
+
# be created and all future modifications to the cluster will be expected to be
|
174
|
+
# performed through the API.
|
175
|
+
# @param [String] parent
|
176
|
+
# Required. The parent of the project and location where the cluster is enrolled
|
177
|
+
# in. Format: "projects/`project`/locations/`location`"
|
178
|
+
# @param [Google::Apis::GkeonpremV1::EnrollBareMetalAdminClusterRequest] enroll_bare_metal_admin_cluster_request_object
|
179
|
+
# @param [String] fields
|
180
|
+
# Selector specifying which fields to include in a partial response.
|
181
|
+
# @param [String] quota_user
|
182
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
183
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
184
|
+
# @param [Google::Apis::RequestOptions] options
|
185
|
+
# Request-specific options
|
186
|
+
#
|
187
|
+
# @yield [result, err] Result & error if block supplied
|
188
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
189
|
+
# @yieldparam err [StandardError] error object if request failed
|
190
|
+
#
|
191
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
192
|
+
#
|
193
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
194
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
195
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
196
|
+
def enroll_bare_metal_admin_cluster(parent, enroll_bare_metal_admin_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
197
|
+
command = make_simple_command(:post, 'v1/{+parent}/bareMetalAdminClusters:enroll', options)
|
198
|
+
command.request_representation = Google::Apis::GkeonpremV1::EnrollBareMetalAdminClusterRequest::Representation
|
199
|
+
command.request_object = enroll_bare_metal_admin_cluster_request_object
|
200
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
201
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
202
|
+
command.params['parent'] = parent unless parent.nil?
|
203
|
+
command.query['fields'] = fields unless fields.nil?
|
204
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
205
|
+
execute_or_queue_command(command, &block)
|
206
|
+
end
|
207
|
+
|
208
|
+
# Gets details of a single bare metal admin cluster.
|
209
|
+
# @param [String] name
|
210
|
+
# Required. Name of the bare metal admin cluster to get. Format: "projects/`
|
211
|
+
# project`/locations/`location`/bareMetalAdminClusters/`bare_metal_admin_cluster`
|
212
|
+
# "
|
213
|
+
# @param [String] fields
|
214
|
+
# Selector specifying which fields to include in a partial response.
|
215
|
+
# @param [String] quota_user
|
216
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
217
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
218
|
+
# @param [Google::Apis::RequestOptions] options
|
219
|
+
# Request-specific options
|
220
|
+
#
|
221
|
+
# @yield [result, err] Result & error if block supplied
|
222
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::BareMetalAdminCluster] parsed result object
|
223
|
+
# @yieldparam err [StandardError] error object if request failed
|
224
|
+
#
|
225
|
+
# @return [Google::Apis::GkeonpremV1::BareMetalAdminCluster]
|
226
|
+
#
|
227
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
228
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
229
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
230
|
+
def get_project_location_bare_metal_admin_cluster(name, fields: nil, quota_user: nil, options: nil, &block)
|
231
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
232
|
+
command.response_representation = Google::Apis::GkeonpremV1::BareMetalAdminCluster::Representation
|
233
|
+
command.response_class = Google::Apis::GkeonpremV1::BareMetalAdminCluster
|
234
|
+
command.params['name'] = name unless name.nil?
|
235
|
+
command.query['fields'] = fields unless fields.nil?
|
236
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
237
|
+
execute_or_queue_command(command, &block)
|
238
|
+
end
|
239
|
+
|
240
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
241
|
+
# resource exists and does not have a policy set.
|
242
|
+
# @param [String] resource
|
243
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
244
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
245
|
+
# appropriate value for this field.
|
246
|
+
# @param [Fixnum] options_requested_policy_version
|
247
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
248
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
249
|
+
# rejected. Requests for policies with any conditional role bindings must
|
250
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
251
|
+
# valid value or leave the field unset. The policy in the response might use the
|
252
|
+
# policy version that you specified, or it might use a lower policy version. For
|
253
|
+
# example, if you specify version 3, but the policy has no conditional role
|
254
|
+
# bindings, the response uses version 1. To learn which resources support
|
255
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
256
|
+
# google.com/iam/help/conditions/resource-policies).
|
257
|
+
# @param [String] fields
|
258
|
+
# Selector specifying which fields to include in a partial response.
|
259
|
+
# @param [String] quota_user
|
260
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
261
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
262
|
+
# @param [Google::Apis::RequestOptions] options
|
263
|
+
# Request-specific options
|
264
|
+
#
|
265
|
+
# @yield [result, err] Result & error if block supplied
|
266
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Policy] parsed result object
|
267
|
+
# @yieldparam err [StandardError] error object if request failed
|
268
|
+
#
|
269
|
+
# @return [Google::Apis::GkeonpremV1::Policy]
|
270
|
+
#
|
271
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
272
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
273
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
274
|
+
def get_project_location_bare_metal_admin_cluster_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
275
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
276
|
+
command.response_representation = Google::Apis::GkeonpremV1::Policy::Representation
|
277
|
+
command.response_class = Google::Apis::GkeonpremV1::Policy
|
278
|
+
command.params['resource'] = resource unless resource.nil?
|
279
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
280
|
+
command.query['fields'] = fields unless fields.nil?
|
281
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
282
|
+
execute_or_queue_command(command, &block)
|
283
|
+
end
|
284
|
+
|
285
|
+
# Lists bare metal admin clusters in a given project and location.
|
286
|
+
# @param [String] parent
|
287
|
+
# Required. The parent of the project and location where the clusters are listed
|
288
|
+
# in. Format: "projects/`project`/locations/`location`"
|
289
|
+
# @param [Fixnum] page_size
|
290
|
+
# Requested page size. Server may return fewer items than requested. If
|
291
|
+
# unspecified, at most 50 clusters will be returned. The maximum value is 1000;
|
292
|
+
# values above 1000 will be coerced to 1000.
|
293
|
+
# @param [String] page_token
|
294
|
+
# A token identifying a page of results the server should return.
|
295
|
+
# @param [String] view
|
296
|
+
# View for bare metal admin clusters. When `BASIC` is specified, only the admin
|
297
|
+
# cluster resource name and membership are returned. The default/unset value `
|
298
|
+
# CLUSTER_VIEW_UNSPECIFIED` is the same as `FULL', which returns the complete
|
299
|
+
# admin cluster configuration details.
|
300
|
+
# @param [String] fields
|
301
|
+
# Selector specifying which fields to include in a partial response.
|
302
|
+
# @param [String] quota_user
|
303
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
304
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
305
|
+
# @param [Google::Apis::RequestOptions] options
|
306
|
+
# Request-specific options
|
307
|
+
#
|
308
|
+
# @yield [result, err] Result & error if block supplied
|
309
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::ListBareMetalAdminClustersResponse] parsed result object
|
310
|
+
# @yieldparam err [StandardError] error object if request failed
|
311
|
+
#
|
312
|
+
# @return [Google::Apis::GkeonpremV1::ListBareMetalAdminClustersResponse]
|
313
|
+
#
|
314
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
315
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
316
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
317
|
+
def list_project_location_bare_metal_admin_clusters(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
318
|
+
command = make_simple_command(:get, 'v1/{+parent}/bareMetalAdminClusters', options)
|
319
|
+
command.response_representation = Google::Apis::GkeonpremV1::ListBareMetalAdminClustersResponse::Representation
|
320
|
+
command.response_class = Google::Apis::GkeonpremV1::ListBareMetalAdminClustersResponse
|
321
|
+
command.params['parent'] = parent unless parent.nil?
|
322
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
323
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
324
|
+
command.query['view'] = view unless view.nil?
|
325
|
+
command.query['fields'] = fields unless fields.nil?
|
326
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
327
|
+
execute_or_queue_command(command, &block)
|
328
|
+
end
|
329
|
+
|
330
|
+
# Updates the parameters of a single bare metal admin cluster.
|
331
|
+
# @param [String] name
|
332
|
+
# Immutable. The bare metal admin cluster resource name.
|
333
|
+
# @param [Google::Apis::GkeonpremV1::BareMetalAdminCluster] bare_metal_admin_cluster_object
|
334
|
+
# @param [String] update_mask
|
335
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
336
|
+
# BareMetalAdminCluster resource by the update. The fields specified in the
|
337
|
+
# update_mask are relative to the resource, not the full request. A field will
|
338
|
+
# be overwritten if it is in the mask. If the user does not provide a mask then
|
339
|
+
# all populated fields in the BareMetalAdminCluster message will be updated.
|
340
|
+
# Empty fields will be ignored unless a field mask is used.
|
341
|
+
# @param [Boolean] validate_only
|
342
|
+
# Validate the request without actually doing any updates.
|
343
|
+
# @param [String] fields
|
344
|
+
# Selector specifying which fields to include in a partial response.
|
345
|
+
# @param [String] quota_user
|
346
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
347
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
348
|
+
# @param [Google::Apis::RequestOptions] options
|
349
|
+
# Request-specific options
|
350
|
+
#
|
351
|
+
# @yield [result, err] Result & error if block supplied
|
352
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
353
|
+
# @yieldparam err [StandardError] error object if request failed
|
354
|
+
#
|
355
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
356
|
+
#
|
357
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
358
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
359
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
360
|
+
def patch_project_location_bare_metal_admin_cluster(name, bare_metal_admin_cluster_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
361
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
362
|
+
command.request_representation = Google::Apis::GkeonpremV1::BareMetalAdminCluster::Representation
|
363
|
+
command.request_object = bare_metal_admin_cluster_object
|
364
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
365
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
366
|
+
command.params['name'] = name unless name.nil?
|
367
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
368
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
369
|
+
command.query['fields'] = fields unless fields.nil?
|
370
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
371
|
+
execute_or_queue_command(command, &block)
|
372
|
+
end
|
373
|
+
|
374
|
+
# Queries the bare metal admin cluster version config.
|
375
|
+
# @param [String] parent
|
376
|
+
# Required. The parent of the project and location to query for version config.
|
377
|
+
# Format: "projects/`project`/locations/`location`"
|
378
|
+
# @param [String] upgrade_config_cluster_name
|
379
|
+
# The admin cluster resource name. This is the full resource name of the admin
|
380
|
+
# cluster resource. Format: "projects/`project`/locations/`location`/
|
381
|
+
# bareMetalAdminClusters/`bare_metal_admin_cluster`"
|
382
|
+
# @param [String] fields
|
383
|
+
# Selector specifying which fields to include in a partial response.
|
384
|
+
# @param [String] quota_user
|
385
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
386
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
387
|
+
# @param [Google::Apis::RequestOptions] options
|
388
|
+
# Request-specific options
|
389
|
+
#
|
390
|
+
# @yield [result, err] Result & error if block supplied
|
391
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::QueryBareMetalAdminVersionConfigResponse] parsed result object
|
392
|
+
# @yieldparam err [StandardError] error object if request failed
|
393
|
+
#
|
394
|
+
# @return [Google::Apis::GkeonpremV1::QueryBareMetalAdminVersionConfigResponse]
|
395
|
+
#
|
396
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
397
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
398
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
399
|
+
def query_project_location_bare_metal_admin_cluster_version_config(parent, upgrade_config_cluster_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
400
|
+
command = make_simple_command(:post, 'v1/{+parent}/bareMetalAdminClusters:queryVersionConfig', options)
|
401
|
+
command.response_representation = Google::Apis::GkeonpremV1::QueryBareMetalAdminVersionConfigResponse::Representation
|
402
|
+
command.response_class = Google::Apis::GkeonpremV1::QueryBareMetalAdminVersionConfigResponse
|
403
|
+
command.params['parent'] = parent unless parent.nil?
|
404
|
+
command.query['upgradeConfig.clusterName'] = upgrade_config_cluster_name unless upgrade_config_cluster_name.nil?
|
405
|
+
command.query['fields'] = fields unless fields.nil?
|
406
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
407
|
+
execute_or_queue_command(command, &block)
|
408
|
+
end
|
409
|
+
|
410
|
+
# Sets the access control policy on the specified resource. Replaces any
|
411
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
412
|
+
# PERMISSION_DENIED` errors.
|
413
|
+
# @param [String] resource
|
414
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
415
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
416
|
+
# appropriate value for this field.
|
417
|
+
# @param [Google::Apis::GkeonpremV1::SetIamPolicyRequest] set_iam_policy_request_object
|
418
|
+
# @param [String] fields
|
419
|
+
# Selector specifying which fields to include in a partial response.
|
420
|
+
# @param [String] quota_user
|
421
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
422
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
423
|
+
# @param [Google::Apis::RequestOptions] options
|
424
|
+
# Request-specific options
|
425
|
+
#
|
426
|
+
# @yield [result, err] Result & error if block supplied
|
427
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Policy] parsed result object
|
428
|
+
# @yieldparam err [StandardError] error object if request failed
|
429
|
+
#
|
430
|
+
# @return [Google::Apis::GkeonpremV1::Policy]
|
431
|
+
#
|
432
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
433
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
434
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
435
|
+
def set_bare_metal_admin_cluster_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
436
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
437
|
+
command.request_representation = Google::Apis::GkeonpremV1::SetIamPolicyRequest::Representation
|
438
|
+
command.request_object = set_iam_policy_request_object
|
439
|
+
command.response_representation = Google::Apis::GkeonpremV1::Policy::Representation
|
440
|
+
command.response_class = Google::Apis::GkeonpremV1::Policy
|
441
|
+
command.params['resource'] = resource unless resource.nil?
|
442
|
+
command.query['fields'] = fields unless fields.nil?
|
443
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
444
|
+
execute_or_queue_command(command, &block)
|
445
|
+
end
|
446
|
+
|
447
|
+
# Returns permissions that a caller has on the specified resource. If the
|
448
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
449
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
450
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
451
|
+
# This operation may "fail open" without warning.
|
452
|
+
# @param [String] resource
|
453
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
454
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
455
|
+
# appropriate value for this field.
|
456
|
+
# @param [Google::Apis::GkeonpremV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
457
|
+
# @param [String] fields
|
458
|
+
# Selector specifying which fields to include in a partial response.
|
459
|
+
# @param [String] quota_user
|
460
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
461
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
462
|
+
# @param [Google::Apis::RequestOptions] options
|
463
|
+
# Request-specific options
|
464
|
+
#
|
465
|
+
# @yield [result, err] Result & error if block supplied
|
466
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::TestIamPermissionsResponse] parsed result object
|
467
|
+
# @yieldparam err [StandardError] error object if request failed
|
468
|
+
#
|
469
|
+
# @return [Google::Apis::GkeonpremV1::TestIamPermissionsResponse]
|
470
|
+
#
|
471
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
472
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
473
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
474
|
+
def test_bare_metal_admin_cluster_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
475
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
476
|
+
command.request_representation = Google::Apis::GkeonpremV1::TestIamPermissionsRequest::Representation
|
477
|
+
command.request_object = test_iam_permissions_request_object
|
478
|
+
command.response_representation = Google::Apis::GkeonpremV1::TestIamPermissionsResponse::Representation
|
479
|
+
command.response_class = Google::Apis::GkeonpremV1::TestIamPermissionsResponse
|
480
|
+
command.params['resource'] = resource unless resource.nil?
|
481
|
+
command.query['fields'] = fields unless fields.nil?
|
482
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
483
|
+
execute_or_queue_command(command, &block)
|
484
|
+
end
|
485
|
+
|
486
|
+
# Unenrolls an existing bare metal admin cluster from the Anthos On-Prem API
|
487
|
+
# within a given project and location. Unenrollment removes the Cloud reference
|
488
|
+
# to the cluster without modifying the underlying OnPrem Resources. Clusters
|
489
|
+
# will continue to run; however, they will no longer be accessible through the
|
490
|
+
# Anthos On-Prem API or its clients.
|
491
|
+
# @param [String] name
|
492
|
+
# Required. Name of the bare metal admin cluster to be unenrolled. Format: "
|
493
|
+
# projects/`project`/locations/`location`/bareMetalAdminClusters/`cluster`"
|
494
|
+
# @param [Boolean] allow_missing
|
495
|
+
# If set to true, and the bare metal admin cluster is not found, the request
|
496
|
+
# will succeed but no action will be taken on the server and return a completed
|
497
|
+
# LRO.
|
498
|
+
# @param [String] etag
|
499
|
+
# The current etag of the bare metal admin cluster. If an etag is provided and
|
500
|
+
# does not match the current etag of the cluster, deletion will be blocked and
|
501
|
+
# an ABORTED error will be returned.
|
502
|
+
# @param [Boolean] validate_only
|
503
|
+
# Validate the request without actually doing any updates.
|
504
|
+
# @param [String] fields
|
505
|
+
# Selector specifying which fields to include in a partial response.
|
506
|
+
# @param [String] quota_user
|
507
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
508
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
509
|
+
# @param [Google::Apis::RequestOptions] options
|
510
|
+
# Request-specific options
|
511
|
+
#
|
512
|
+
# @yield [result, err] Result & error if block supplied
|
513
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
514
|
+
# @yieldparam err [StandardError] error object if request failed
|
515
|
+
#
|
516
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
517
|
+
#
|
518
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
519
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
520
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
521
|
+
def unenroll_project_location_bare_metal_admin_cluster(name, allow_missing: nil, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
522
|
+
command = make_simple_command(:delete, 'v1/{+name}:unenroll', options)
|
523
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
524
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
525
|
+
command.params['name'] = name unless name.nil?
|
526
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
527
|
+
command.query['etag'] = etag unless etag.nil?
|
528
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
529
|
+
command.query['fields'] = fields unless fields.nil?
|
530
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
531
|
+
execute_or_queue_command(command, &block)
|
532
|
+
end
|
533
|
+
|
534
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
535
|
+
# to poll the operation result at intervals as recommended by the API service.
|
536
|
+
# @param [String] name
|
537
|
+
# The name of the operation resource.
|
538
|
+
# @param [String] fields
|
539
|
+
# Selector specifying which fields to include in a partial response.
|
540
|
+
# @param [String] quota_user
|
541
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
542
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
543
|
+
# @param [Google::Apis::RequestOptions] options
|
544
|
+
# Request-specific options
|
545
|
+
#
|
546
|
+
# @yield [result, err] Result & error if block supplied
|
547
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
548
|
+
# @yieldparam err [StandardError] error object if request failed
|
549
|
+
#
|
550
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
551
|
+
#
|
552
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
553
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
554
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
555
|
+
def get_project_location_bare_metal_admin_cluster_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
556
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
557
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
558
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
559
|
+
command.params['name'] = name unless name.nil?
|
560
|
+
command.query['fields'] = fields unless fields.nil?
|
561
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
562
|
+
execute_or_queue_command(command, &block)
|
563
|
+
end
|
564
|
+
|
565
|
+
# Lists operations that match the specified filter in the request. If the server
|
566
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
567
|
+
# @param [String] name
|
568
|
+
# The name of the operation's parent resource.
|
569
|
+
# @param [String] filter
|
570
|
+
# The standard list filter.
|
571
|
+
# @param [Fixnum] page_size
|
572
|
+
# The standard list page size.
|
573
|
+
# @param [String] page_token
|
574
|
+
# The standard list page token.
|
575
|
+
# @param [String] fields
|
576
|
+
# Selector specifying which fields to include in a partial response.
|
577
|
+
# @param [String] quota_user
|
578
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
579
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
580
|
+
# @param [Google::Apis::RequestOptions] options
|
581
|
+
# Request-specific options
|
582
|
+
#
|
583
|
+
# @yield [result, err] Result & error if block supplied
|
584
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::ListOperationsResponse] parsed result object
|
585
|
+
# @yieldparam err [StandardError] error object if request failed
|
586
|
+
#
|
587
|
+
# @return [Google::Apis::GkeonpremV1::ListOperationsResponse]
|
588
|
+
#
|
589
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
590
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
591
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
592
|
+
def list_project_location_bare_metal_admin_cluster_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
593
|
+
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
594
|
+
command.response_representation = Google::Apis::GkeonpremV1::ListOperationsResponse::Representation
|
595
|
+
command.response_class = Google::Apis::GkeonpremV1::ListOperationsResponse
|
596
|
+
command.params['name'] = name unless name.nil?
|
597
|
+
command.query['filter'] = filter unless filter.nil?
|
598
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
599
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
600
|
+
command.query['fields'] = fields unless fields.nil?
|
601
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
602
|
+
execute_or_queue_command(command, &block)
|
603
|
+
end
|
604
|
+
|
605
|
+
# Creates a new bare metal cluster in a given project and location.
|
606
|
+
# @param [String] parent
|
607
|
+
# Required. The parent of the project and location where the cluster is created
|
608
|
+
# in. Format: "projects/`project`/locations/`location`"
|
609
|
+
# @param [Google::Apis::GkeonpremV1::BareMetalCluster] bare_metal_cluster_object
|
610
|
+
# @param [String] bare_metal_cluster_id
|
611
|
+
# Required. User provided identifier that is used as part of the resource name;
|
612
|
+
# must conform to RFC-1034 and additionally restrict to lower-cased letters.
|
613
|
+
# This comes out roughly to: /^a-z+[a-z0-9]$/
|
614
|
+
# @param [Boolean] validate_only
|
615
|
+
# Validate the request without actually doing any updates.
|
616
|
+
# @param [String] fields
|
617
|
+
# Selector specifying which fields to include in a partial response.
|
618
|
+
# @param [String] quota_user
|
619
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
620
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
621
|
+
# @param [Google::Apis::RequestOptions] options
|
622
|
+
# Request-specific options
|
623
|
+
#
|
624
|
+
# @yield [result, err] Result & error if block supplied
|
625
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
626
|
+
# @yieldparam err [StandardError] error object if request failed
|
627
|
+
#
|
628
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
629
|
+
#
|
630
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
631
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
632
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
633
|
+
def create_project_location_bare_metal_cluster(parent, bare_metal_cluster_object = nil, bare_metal_cluster_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
634
|
+
command = make_simple_command(:post, 'v1/{+parent}/bareMetalClusters', options)
|
635
|
+
command.request_representation = Google::Apis::GkeonpremV1::BareMetalCluster::Representation
|
636
|
+
command.request_object = bare_metal_cluster_object
|
637
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
638
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
639
|
+
command.params['parent'] = parent unless parent.nil?
|
640
|
+
command.query['bareMetalClusterId'] = bare_metal_cluster_id unless bare_metal_cluster_id.nil?
|
641
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
642
|
+
command.query['fields'] = fields unless fields.nil?
|
643
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
644
|
+
execute_or_queue_command(command, &block)
|
645
|
+
end
|
646
|
+
|
647
|
+
# Deletes a single bare metal Cluster.
|
648
|
+
# @param [String] name
|
649
|
+
# Required. Name of the bare metal user cluster to be deleted. Format: "projects/
|
650
|
+
# `project`/locations/`location`/bareMetalClusters/`bare_metal_cluster`"
|
651
|
+
# @param [Boolean] allow_missing
|
652
|
+
# If set to true, and the bare metal cluster is not found, the request will
|
653
|
+
# succeed but no action will be taken on the server and return a completed LRO.
|
654
|
+
# @param [String] etag
|
655
|
+
# The current etag of the bare metal Cluster. If an etag is provided and does
|
656
|
+
# not match the current etag of the cluster, deletion will be blocked and an
|
657
|
+
# ABORTED error will be returned.
|
658
|
+
# @param [Boolean] force
|
659
|
+
# If set to true, any node pools from the cluster will also be deleted.
|
660
|
+
# @param [Boolean] ignore_errors
|
661
|
+
# If set to true, the deletion of a bare metal user cluster resource will
|
662
|
+
# succeed even if errors occur during deletion. This parameter can be used when
|
663
|
+
# you want to delete GCP's cluster resource and the on-prem admin cluster that
|
664
|
+
# hosts your user cluster is disconnected / unreachable or deleted. WARNING:
|
665
|
+
# Using this parameter when your user cluster still exists may result in a
|
666
|
+
# deleted GCP user cluster but an existing on-prem user cluster.
|
667
|
+
# @param [Boolean] validate_only
|
668
|
+
# Validate the request without actually doing any updates.
|
669
|
+
# @param [String] fields
|
670
|
+
# Selector specifying which fields to include in a partial response.
|
671
|
+
# @param [String] quota_user
|
672
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
673
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
674
|
+
# @param [Google::Apis::RequestOptions] options
|
675
|
+
# Request-specific options
|
676
|
+
#
|
677
|
+
# @yield [result, err] Result & error if block supplied
|
678
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
679
|
+
# @yieldparam err [StandardError] error object if request failed
|
680
|
+
#
|
681
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
682
|
+
#
|
683
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
684
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
685
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
686
|
+
def delete_project_location_bare_metal_cluster(name, allow_missing: nil, etag: nil, force: nil, ignore_errors: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
687
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
688
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
689
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
690
|
+
command.params['name'] = name unless name.nil?
|
691
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
692
|
+
command.query['etag'] = etag unless etag.nil?
|
693
|
+
command.query['force'] = force unless force.nil?
|
694
|
+
command.query['ignoreErrors'] = ignore_errors unless ignore_errors.nil?
|
695
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
696
|
+
command.query['fields'] = fields unless fields.nil?
|
697
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
698
|
+
execute_or_queue_command(command, &block)
|
699
|
+
end
|
700
|
+
|
701
|
+
# Enrolls an existing bare metal user cluster and its node pools to the Anthos
|
702
|
+
# On-Prem API within a given project and location. Through enrollment, an
|
703
|
+
# existing cluster will become Anthos On-Prem API managed. The corresponding GCP
|
704
|
+
# resources will be created and all future modifications to the cluster and/or
|
705
|
+
# its node pools will be expected to be performed through the API.
|
706
|
+
# @param [String] parent
|
707
|
+
# Required. The parent of the project and location where the cluster is enrolled
|
708
|
+
# in. Format: "projects/`project`/locations/`location`"
|
709
|
+
# @param [Google::Apis::GkeonpremV1::EnrollBareMetalClusterRequest] enroll_bare_metal_cluster_request_object
|
710
|
+
# @param [String] fields
|
711
|
+
# Selector specifying which fields to include in a partial response.
|
712
|
+
# @param [String] quota_user
|
713
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
714
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
715
|
+
# @param [Google::Apis::RequestOptions] options
|
716
|
+
# Request-specific options
|
717
|
+
#
|
718
|
+
# @yield [result, err] Result & error if block supplied
|
719
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
720
|
+
# @yieldparam err [StandardError] error object if request failed
|
721
|
+
#
|
722
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
723
|
+
#
|
724
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
725
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
726
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
727
|
+
def enroll_bare_metal_cluster(parent, enroll_bare_metal_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
728
|
+
command = make_simple_command(:post, 'v1/{+parent}/bareMetalClusters:enroll', options)
|
729
|
+
command.request_representation = Google::Apis::GkeonpremV1::EnrollBareMetalClusterRequest::Representation
|
730
|
+
command.request_object = enroll_bare_metal_cluster_request_object
|
731
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
732
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
733
|
+
command.params['parent'] = parent unless parent.nil?
|
734
|
+
command.query['fields'] = fields unless fields.nil?
|
735
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
736
|
+
execute_or_queue_command(command, &block)
|
737
|
+
end
|
738
|
+
|
739
|
+
# Gets details of a single bare metal Cluster.
|
740
|
+
# @param [String] name
|
741
|
+
# Required. Name of the bare metal user cluster to get. Format: "projects/`
|
742
|
+
# project`/locations/`location`/bareMetalClusters/`bare_metal_cluster`"
|
743
|
+
# @param [String] fields
|
744
|
+
# Selector specifying which fields to include in a partial response.
|
745
|
+
# @param [String] quota_user
|
746
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
747
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
748
|
+
# @param [Google::Apis::RequestOptions] options
|
749
|
+
# Request-specific options
|
750
|
+
#
|
751
|
+
# @yield [result, err] Result & error if block supplied
|
752
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::BareMetalCluster] parsed result object
|
753
|
+
# @yieldparam err [StandardError] error object if request failed
|
754
|
+
#
|
755
|
+
# @return [Google::Apis::GkeonpremV1::BareMetalCluster]
|
756
|
+
#
|
757
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
758
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
759
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
760
|
+
def get_project_location_bare_metal_cluster(name, fields: nil, quota_user: nil, options: nil, &block)
|
761
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
762
|
+
command.response_representation = Google::Apis::GkeonpremV1::BareMetalCluster::Representation
|
763
|
+
command.response_class = Google::Apis::GkeonpremV1::BareMetalCluster
|
764
|
+
command.params['name'] = name unless name.nil?
|
765
|
+
command.query['fields'] = fields unless fields.nil?
|
766
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
767
|
+
execute_or_queue_command(command, &block)
|
768
|
+
end
|
769
|
+
|
770
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
771
|
+
# resource exists and does not have a policy set.
|
772
|
+
# @param [String] resource
|
773
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
774
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
775
|
+
# appropriate value for this field.
|
776
|
+
# @param [Fixnum] options_requested_policy_version
|
777
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
778
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
779
|
+
# rejected. Requests for policies with any conditional role bindings must
|
780
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
781
|
+
# valid value or leave the field unset. The policy in the response might use the
|
782
|
+
# policy version that you specified, or it might use a lower policy version. For
|
783
|
+
# example, if you specify version 3, but the policy has no conditional role
|
784
|
+
# bindings, the response uses version 1. To learn which resources support
|
785
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
786
|
+
# google.com/iam/help/conditions/resource-policies).
|
787
|
+
# @param [String] fields
|
788
|
+
# Selector specifying which fields to include in a partial response.
|
789
|
+
# @param [String] quota_user
|
790
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
791
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
792
|
+
# @param [Google::Apis::RequestOptions] options
|
793
|
+
# Request-specific options
|
794
|
+
#
|
795
|
+
# @yield [result, err] Result & error if block supplied
|
796
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Policy] parsed result object
|
797
|
+
# @yieldparam err [StandardError] error object if request failed
|
798
|
+
#
|
799
|
+
# @return [Google::Apis::GkeonpremV1::Policy]
|
800
|
+
#
|
801
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
802
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
803
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
804
|
+
def get_project_location_bare_metal_cluster_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
805
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
806
|
+
command.response_representation = Google::Apis::GkeonpremV1::Policy::Representation
|
807
|
+
command.response_class = Google::Apis::GkeonpremV1::Policy
|
808
|
+
command.params['resource'] = resource unless resource.nil?
|
809
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
810
|
+
command.query['fields'] = fields unless fields.nil?
|
811
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
812
|
+
execute_or_queue_command(command, &block)
|
813
|
+
end
|
814
|
+
|
815
|
+
# Lists bare metal clusters in a given project and location.
|
816
|
+
# @param [String] parent
|
817
|
+
# Required. The parent of the project and location where the clusters are listed
|
818
|
+
# in. Format: "projects/`project`/locations/`location`"
|
819
|
+
# @param [String] filter
|
820
|
+
# A resource filtering expression following https://google.aip.dev/160. When non-
|
821
|
+
# empty, only resource's whose attributes field matches the filter are returned.
|
822
|
+
# @param [Fixnum] page_size
|
823
|
+
# Requested page size. Server may return fewer items than requested. If
|
824
|
+
# unspecified, at most 50 clusters will be returned. The maximum value is 1000;
|
825
|
+
# values above 1000 will be coerced to 1000.
|
826
|
+
# @param [String] page_token
|
827
|
+
# A token identifying a page of results the server should return.
|
828
|
+
# @param [String] view
|
829
|
+
# View for bare metal Clusters. When `BASIC` is specified, only the cluster
|
830
|
+
# resource name and admin cluster membership are returned. The default/unset
|
831
|
+
# value `CLUSTER_VIEW_UNSPECIFIED` is the same as `FULL', which returns the
|
832
|
+
# complete cluster configuration details.
|
833
|
+
# @param [String] fields
|
834
|
+
# Selector specifying which fields to include in a partial response.
|
835
|
+
# @param [String] quota_user
|
836
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
837
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
838
|
+
# @param [Google::Apis::RequestOptions] options
|
839
|
+
# Request-specific options
|
840
|
+
#
|
841
|
+
# @yield [result, err] Result & error if block supplied
|
842
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::ListBareMetalClustersResponse] parsed result object
|
843
|
+
# @yieldparam err [StandardError] error object if request failed
|
844
|
+
#
|
845
|
+
# @return [Google::Apis::GkeonpremV1::ListBareMetalClustersResponse]
|
846
|
+
#
|
847
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
848
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
849
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
850
|
+
def list_project_location_bare_metal_clusters(parent, filter: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
851
|
+
command = make_simple_command(:get, 'v1/{+parent}/bareMetalClusters', options)
|
852
|
+
command.response_representation = Google::Apis::GkeonpremV1::ListBareMetalClustersResponse::Representation
|
853
|
+
command.response_class = Google::Apis::GkeonpremV1::ListBareMetalClustersResponse
|
854
|
+
command.params['parent'] = parent unless parent.nil?
|
855
|
+
command.query['filter'] = filter unless filter.nil?
|
856
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
857
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
858
|
+
command.query['view'] = view unless view.nil?
|
859
|
+
command.query['fields'] = fields unless fields.nil?
|
860
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
861
|
+
execute_or_queue_command(command, &block)
|
862
|
+
end
|
863
|
+
|
864
|
+
# Updates the parameters of a single bare metal Cluster.
|
865
|
+
# @param [String] name
|
866
|
+
# Immutable. The bare metal user cluster resource name.
|
867
|
+
# @param [Google::Apis::GkeonpremV1::BareMetalCluster] bare_metal_cluster_object
|
868
|
+
# @param [Boolean] allow_missing
|
869
|
+
# If set to true, and the bare metal cluster is not found, the request will
|
870
|
+
# create a new bare metal cluster with the provided configuration. The user must
|
871
|
+
# have both create and update permission to call Update with allow_missing set
|
872
|
+
# to true.
|
873
|
+
# @param [String] update_mask
|
874
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
875
|
+
# BareMetalCluster resource by the update. The fields specified in the
|
876
|
+
# update_mask are relative to the resource, not the full request. A field will
|
877
|
+
# be overwritten if it is in the mask. If the user does not provide a mask then
|
878
|
+
# all populated fields in the BareMetalCluster message will be updated. Empty
|
879
|
+
# fields will be ignored unless a field mask is used.
|
880
|
+
# @param [Boolean] validate_only
|
881
|
+
# Validate the request without actually doing any updates.
|
882
|
+
# @param [String] fields
|
883
|
+
# Selector specifying which fields to include in a partial response.
|
884
|
+
# @param [String] quota_user
|
885
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
886
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
887
|
+
# @param [Google::Apis::RequestOptions] options
|
888
|
+
# Request-specific options
|
889
|
+
#
|
890
|
+
# @yield [result, err] Result & error if block supplied
|
891
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
892
|
+
# @yieldparam err [StandardError] error object if request failed
|
893
|
+
#
|
894
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
895
|
+
#
|
896
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
897
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
898
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
899
|
+
def patch_project_location_bare_metal_cluster(name, bare_metal_cluster_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
900
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
901
|
+
command.request_representation = Google::Apis::GkeonpremV1::BareMetalCluster::Representation
|
902
|
+
command.request_object = bare_metal_cluster_object
|
903
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
904
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
905
|
+
command.params['name'] = name unless name.nil?
|
906
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
907
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
908
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
909
|
+
command.query['fields'] = fields unless fields.nil?
|
910
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
911
|
+
execute_or_queue_command(command, &block)
|
912
|
+
end
|
913
|
+
|
914
|
+
# Queries the bare metal user cluster version config.
|
915
|
+
# @param [String] parent
|
916
|
+
# Required. The parent of the project and location to query for version config.
|
917
|
+
# Format: "projects/`project`/locations/`location`"
|
918
|
+
# @param [String] create_config_admin_cluster_membership
|
919
|
+
# The admin cluster membership. This is the full resource name of the admin
|
920
|
+
# cluster's fleet membership. Format: "projects/`project`/locations/`location`/
|
921
|
+
# memberships/`membership`"
|
922
|
+
# @param [String] create_config_admin_cluster_name
|
923
|
+
# The admin cluster resource name. This is the full resource name of the admin
|
924
|
+
# cluster resource. Format: "projects/`project`/locations/`location`/
|
925
|
+
# bareMetalAdminClusters/`bare_metal_admin_cluster`"
|
926
|
+
# @param [String] upgrade_config_cluster_name
|
927
|
+
# The user cluster resource name. This is the full resource name of the user
|
928
|
+
# cluster resource. Format: "projects/`project`/locations/`location`/
|
929
|
+
# bareMetalClusters/`bare_metal_cluster`"
|
930
|
+
# @param [String] fields
|
931
|
+
# Selector specifying which fields to include in a partial response.
|
932
|
+
# @param [String] quota_user
|
933
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
934
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
935
|
+
# @param [Google::Apis::RequestOptions] options
|
936
|
+
# Request-specific options
|
937
|
+
#
|
938
|
+
# @yield [result, err] Result & error if block supplied
|
939
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::QueryBareMetalVersionConfigResponse] parsed result object
|
940
|
+
# @yieldparam err [StandardError] error object if request failed
|
941
|
+
#
|
942
|
+
# @return [Google::Apis::GkeonpremV1::QueryBareMetalVersionConfigResponse]
|
943
|
+
#
|
944
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
945
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
946
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
947
|
+
def query_project_location_bare_metal_cluster_version_config(parent, create_config_admin_cluster_membership: nil, create_config_admin_cluster_name: nil, upgrade_config_cluster_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
948
|
+
command = make_simple_command(:post, 'v1/{+parent}/bareMetalClusters:queryVersionConfig', options)
|
949
|
+
command.response_representation = Google::Apis::GkeonpremV1::QueryBareMetalVersionConfigResponse::Representation
|
950
|
+
command.response_class = Google::Apis::GkeonpremV1::QueryBareMetalVersionConfigResponse
|
951
|
+
command.params['parent'] = parent unless parent.nil?
|
952
|
+
command.query['createConfig.adminClusterMembership'] = create_config_admin_cluster_membership unless create_config_admin_cluster_membership.nil?
|
953
|
+
command.query['createConfig.adminClusterName'] = create_config_admin_cluster_name unless create_config_admin_cluster_name.nil?
|
954
|
+
command.query['upgradeConfig.clusterName'] = upgrade_config_cluster_name unless upgrade_config_cluster_name.nil?
|
955
|
+
command.query['fields'] = fields unless fields.nil?
|
956
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
957
|
+
execute_or_queue_command(command, &block)
|
958
|
+
end
|
959
|
+
|
960
|
+
# Sets the access control policy on the specified resource. Replaces any
|
961
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
962
|
+
# PERMISSION_DENIED` errors.
|
963
|
+
# @param [String] resource
|
964
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
965
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
966
|
+
# appropriate value for this field.
|
967
|
+
# @param [Google::Apis::GkeonpremV1::SetIamPolicyRequest] set_iam_policy_request_object
|
968
|
+
# @param [String] fields
|
969
|
+
# Selector specifying which fields to include in a partial response.
|
970
|
+
# @param [String] quota_user
|
971
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
972
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
973
|
+
# @param [Google::Apis::RequestOptions] options
|
974
|
+
# Request-specific options
|
975
|
+
#
|
976
|
+
# @yield [result, err] Result & error if block supplied
|
977
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Policy] parsed result object
|
978
|
+
# @yieldparam err [StandardError] error object if request failed
|
979
|
+
#
|
980
|
+
# @return [Google::Apis::GkeonpremV1::Policy]
|
981
|
+
#
|
982
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
983
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
984
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
985
|
+
def set_bare_metal_cluster_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
986
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
987
|
+
command.request_representation = Google::Apis::GkeonpremV1::SetIamPolicyRequest::Representation
|
988
|
+
command.request_object = set_iam_policy_request_object
|
989
|
+
command.response_representation = Google::Apis::GkeonpremV1::Policy::Representation
|
990
|
+
command.response_class = Google::Apis::GkeonpremV1::Policy
|
991
|
+
command.params['resource'] = resource unless resource.nil?
|
992
|
+
command.query['fields'] = fields unless fields.nil?
|
993
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
994
|
+
execute_or_queue_command(command, &block)
|
995
|
+
end
|
996
|
+
|
997
|
+
# Returns permissions that a caller has on the specified resource. If the
|
998
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
999
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
1000
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
1001
|
+
# This operation may "fail open" without warning.
|
1002
|
+
# @param [String] resource
|
1003
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
1004
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
1005
|
+
# appropriate value for this field.
|
1006
|
+
# @param [Google::Apis::GkeonpremV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
1007
|
+
# @param [String] fields
|
1008
|
+
# Selector specifying which fields to include in a partial response.
|
1009
|
+
# @param [String] quota_user
|
1010
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1011
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1012
|
+
# @param [Google::Apis::RequestOptions] options
|
1013
|
+
# Request-specific options
|
1014
|
+
#
|
1015
|
+
# @yield [result, err] Result & error if block supplied
|
1016
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::TestIamPermissionsResponse] parsed result object
|
1017
|
+
# @yieldparam err [StandardError] error object if request failed
|
1018
|
+
#
|
1019
|
+
# @return [Google::Apis::GkeonpremV1::TestIamPermissionsResponse]
|
1020
|
+
#
|
1021
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1022
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1023
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1024
|
+
def test_bare_metal_cluster_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1025
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
1026
|
+
command.request_representation = Google::Apis::GkeonpremV1::TestIamPermissionsRequest::Representation
|
1027
|
+
command.request_object = test_iam_permissions_request_object
|
1028
|
+
command.response_representation = Google::Apis::GkeonpremV1::TestIamPermissionsResponse::Representation
|
1029
|
+
command.response_class = Google::Apis::GkeonpremV1::TestIamPermissionsResponse
|
1030
|
+
command.params['resource'] = resource unless resource.nil?
|
1031
|
+
command.query['fields'] = fields unless fields.nil?
|
1032
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1033
|
+
execute_or_queue_command(command, &block)
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
# Unenrolls an existing bare metal user cluster and its node pools from the
|
1037
|
+
# Anthos On-Prem API within a given project and location. Unenrollment removes
|
1038
|
+
# the Cloud reference to the cluster without modifying the underlying OnPrem
|
1039
|
+
# Resources. Clusters and node pools will continue to run; however, they will no
|
1040
|
+
# longer be accessible through the Anthos On-Prem API or its clients.
|
1041
|
+
# @param [String] name
|
1042
|
+
# Required. Name of the bare metal user cluster to be unenrolled. Format: "
|
1043
|
+
# projects/`project`/locations/`location`/bareMetalClusters/`cluster`"
|
1044
|
+
# @param [Boolean] allow_missing
|
1045
|
+
# If set to true, and the bare metal cluster is not found, the request will
|
1046
|
+
# succeed but no action will be taken on the server and return a completed LRO.
|
1047
|
+
# @param [String] etag
|
1048
|
+
# The current etag of the bare metal Cluster. If an etag is provided and does
|
1049
|
+
# not match the current etag of the cluster, deletion will be blocked and an
|
1050
|
+
# ABORTED error will be returned.
|
1051
|
+
# @param [Boolean] force
|
1052
|
+
# This is required if the cluster has any associated node pools. When set, any
|
1053
|
+
# child node pools will also be unenrolled.
|
1054
|
+
# @param [Boolean] validate_only
|
1055
|
+
# Validate the request without actually doing any updates.
|
1056
|
+
# @param [String] fields
|
1057
|
+
# Selector specifying which fields to include in a partial response.
|
1058
|
+
# @param [String] quota_user
|
1059
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1060
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1061
|
+
# @param [Google::Apis::RequestOptions] options
|
1062
|
+
# Request-specific options
|
1063
|
+
#
|
1064
|
+
# @yield [result, err] Result & error if block supplied
|
1065
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
1066
|
+
# @yieldparam err [StandardError] error object if request failed
|
1067
|
+
#
|
1068
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
1069
|
+
#
|
1070
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1071
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1072
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1073
|
+
def unenroll_project_location_bare_metal_cluster(name, allow_missing: nil, etag: nil, force: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1074
|
+
command = make_simple_command(:delete, 'v1/{+name}:unenroll', options)
|
1075
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
1076
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
1077
|
+
command.params['name'] = name unless name.nil?
|
1078
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
1079
|
+
command.query['etag'] = etag unless etag.nil?
|
1080
|
+
command.query['force'] = force unless force.nil?
|
1081
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1082
|
+
command.query['fields'] = fields unless fields.nil?
|
1083
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1084
|
+
execute_or_queue_command(command, &block)
|
1085
|
+
end
|
1086
|
+
|
1087
|
+
# Creates a new bare metal node pool in a given project, location and Bare Metal
|
1088
|
+
# cluster.
|
1089
|
+
# @param [String] parent
|
1090
|
+
# Required. The parent resource where this node pool will be created. projects/`
|
1091
|
+
# project`/locations/`location`/bareMetalClusters/`cluster`
|
1092
|
+
# @param [Google::Apis::GkeonpremV1::BareMetalNodePool] bare_metal_node_pool_object
|
1093
|
+
# @param [String] bare_metal_node_pool_id
|
1094
|
+
# The ID to use for the node pool, which will become the final component of the
|
1095
|
+
# node pool's resource name. This value must be up to 63 characters, and valid
|
1096
|
+
# characters are /a-z-/. The value must not be permitted to be a UUID (or UUID-
|
1097
|
+
# like: anything matching /^[0-9a-f]`8`(-[0-9a-f]`4`)`3`-[0-9a-f]`12`$/i).
|
1098
|
+
# @param [Boolean] validate_only
|
1099
|
+
# If set, only validate the request, but do not actually create the node pool.
|
1100
|
+
# @param [String] fields
|
1101
|
+
# Selector specifying which fields to include in a partial response.
|
1102
|
+
# @param [String] quota_user
|
1103
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1104
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1105
|
+
# @param [Google::Apis::RequestOptions] options
|
1106
|
+
# Request-specific options
|
1107
|
+
#
|
1108
|
+
# @yield [result, err] Result & error if block supplied
|
1109
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
1110
|
+
# @yieldparam err [StandardError] error object if request failed
|
1111
|
+
#
|
1112
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
1113
|
+
#
|
1114
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1115
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1116
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1117
|
+
def create_project_location_bare_metal_cluster_bare_metal_node_pool(parent, bare_metal_node_pool_object = nil, bare_metal_node_pool_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1118
|
+
command = make_simple_command(:post, 'v1/{+parent}/bareMetalNodePools', options)
|
1119
|
+
command.request_representation = Google::Apis::GkeonpremV1::BareMetalNodePool::Representation
|
1120
|
+
command.request_object = bare_metal_node_pool_object
|
1121
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
1122
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
1123
|
+
command.params['parent'] = parent unless parent.nil?
|
1124
|
+
command.query['bareMetalNodePoolId'] = bare_metal_node_pool_id unless bare_metal_node_pool_id.nil?
|
1125
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1126
|
+
command.query['fields'] = fields unless fields.nil?
|
1127
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1128
|
+
execute_or_queue_command(command, &block)
|
1129
|
+
end
|
1130
|
+
|
1131
|
+
# Deletes a single bare metal node pool.
|
1132
|
+
# @param [String] name
|
1133
|
+
# Required. The name of the node pool to delete. Format: projects/`project`/
|
1134
|
+
# locations/`location`/bareMetalClusters/`cluster`/bareMetalNodePools/`nodepool`
|
1135
|
+
# @param [Boolean] allow_missing
|
1136
|
+
# If set to true, and the bare metal node pool is not found, the request will
|
1137
|
+
# succeed but no action will be taken on the server and return a completed LRO.
|
1138
|
+
# @param [String] etag
|
1139
|
+
# The current etag of the BareMetalNodePool. If an etag is provided and does not
|
1140
|
+
# match the current etag of the node pool, deletion will be blocked and an
|
1141
|
+
# ABORTED error will be returned.
|
1142
|
+
# @param [Boolean] ignore_errors
|
1143
|
+
# If set to true, the deletion of a bare metal node pool resource will succeed
|
1144
|
+
# even if errors occur during deletion. This parameter can be used when you want
|
1145
|
+
# to delete GCP's node pool resource and you've already deleted the on-prem
|
1146
|
+
# admin cluster that hosted your node pool. WARNING: Using this parameter when
|
1147
|
+
# your user cluster still exists may result in a deleted GCP node pool but an
|
1148
|
+
# existing on-prem node pool.
|
1149
|
+
# @param [Boolean] validate_only
|
1150
|
+
# If set, only validate the request, but do not actually delete the node pool.
|
1151
|
+
# @param [String] fields
|
1152
|
+
# Selector specifying which fields to include in a partial response.
|
1153
|
+
# @param [String] quota_user
|
1154
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1155
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1156
|
+
# @param [Google::Apis::RequestOptions] options
|
1157
|
+
# Request-specific options
|
1158
|
+
#
|
1159
|
+
# @yield [result, err] Result & error if block supplied
|
1160
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
1161
|
+
# @yieldparam err [StandardError] error object if request failed
|
1162
|
+
#
|
1163
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
1164
|
+
#
|
1165
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1166
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1167
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1168
|
+
def delete_project_location_bare_metal_cluster_bare_metal_node_pool(name, allow_missing: nil, etag: nil, ignore_errors: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1169
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1170
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
1171
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
1172
|
+
command.params['name'] = name unless name.nil?
|
1173
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
1174
|
+
command.query['etag'] = etag unless etag.nil?
|
1175
|
+
command.query['ignoreErrors'] = ignore_errors unless ignore_errors.nil?
|
1176
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1177
|
+
command.query['fields'] = fields unless fields.nil?
|
1178
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1179
|
+
execute_or_queue_command(command, &block)
|
1180
|
+
end
|
1181
|
+
|
1182
|
+
# Enrolls an existing bare metal node pool to the Anthos On-Prem API within a
|
1183
|
+
# given project and location. Through enrollment, an existing node pool will
|
1184
|
+
# become Anthos On-Prem API managed. The corresponding GCP resources will be
|
1185
|
+
# created.
|
1186
|
+
# @param [String] parent
|
1187
|
+
# Required. The parent resource where this node pool will be created. projects/`
|
1188
|
+
# project`/locations/`location`/bareMetalClusters/`cluster`
|
1189
|
+
# @param [Google::Apis::GkeonpremV1::EnrollBareMetalNodePoolRequest] enroll_bare_metal_node_pool_request_object
|
1190
|
+
# @param [String] fields
|
1191
|
+
# Selector specifying which fields to include in a partial response.
|
1192
|
+
# @param [String] quota_user
|
1193
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1194
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1195
|
+
# @param [Google::Apis::RequestOptions] options
|
1196
|
+
# Request-specific options
|
1197
|
+
#
|
1198
|
+
# @yield [result, err] Result & error if block supplied
|
1199
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
1200
|
+
# @yieldparam err [StandardError] error object if request failed
|
1201
|
+
#
|
1202
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
1203
|
+
#
|
1204
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1205
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1206
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1207
|
+
def enroll_bare_metal_node_pool(parent, enroll_bare_metal_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1208
|
+
command = make_simple_command(:post, 'v1/{+parent}/bareMetalNodePools:enroll', options)
|
1209
|
+
command.request_representation = Google::Apis::GkeonpremV1::EnrollBareMetalNodePoolRequest::Representation
|
1210
|
+
command.request_object = enroll_bare_metal_node_pool_request_object
|
1211
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
1212
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
1213
|
+
command.params['parent'] = parent unless parent.nil?
|
1214
|
+
command.query['fields'] = fields unless fields.nil?
|
1215
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1216
|
+
execute_or_queue_command(command, &block)
|
1217
|
+
end
|
1218
|
+
|
1219
|
+
# Gets details of a single bare metal node pool.
|
1220
|
+
# @param [String] name
|
1221
|
+
# Required. The name of the node pool to retrieve. projects/`project`/locations/`
|
1222
|
+
# location`/bareMetalClusters/`cluster`/bareMetalNodePools/`nodepool`
|
1223
|
+
# @param [String] fields
|
1224
|
+
# Selector specifying which fields to include in a partial response.
|
1225
|
+
# @param [String] quota_user
|
1226
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1227
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1228
|
+
# @param [Google::Apis::RequestOptions] options
|
1229
|
+
# Request-specific options
|
1230
|
+
#
|
1231
|
+
# @yield [result, err] Result & error if block supplied
|
1232
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::BareMetalNodePool] parsed result object
|
1233
|
+
# @yieldparam err [StandardError] error object if request failed
|
1234
|
+
#
|
1235
|
+
# @return [Google::Apis::GkeonpremV1::BareMetalNodePool]
|
1236
|
+
#
|
1237
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1238
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1239
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1240
|
+
def get_project_location_bare_metal_cluster_bare_metal_node_pool(name, fields: nil, quota_user: nil, options: nil, &block)
|
1241
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1242
|
+
command.response_representation = Google::Apis::GkeonpremV1::BareMetalNodePool::Representation
|
1243
|
+
command.response_class = Google::Apis::GkeonpremV1::BareMetalNodePool
|
1244
|
+
command.params['name'] = name unless name.nil?
|
1245
|
+
command.query['fields'] = fields unless fields.nil?
|
1246
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1247
|
+
execute_or_queue_command(command, &block)
|
1248
|
+
end
|
1249
|
+
|
1250
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
1251
|
+
# resource exists and does not have a policy set.
|
1252
|
+
# @param [String] resource
|
1253
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
1254
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1255
|
+
# appropriate value for this field.
|
1256
|
+
# @param [Fixnum] options_requested_policy_version
|
1257
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
1258
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
1259
|
+
# rejected. Requests for policies with any conditional role bindings must
|
1260
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
1261
|
+
# valid value or leave the field unset. The policy in the response might use the
|
1262
|
+
# policy version that you specified, or it might use a lower policy version. For
|
1263
|
+
# example, if you specify version 3, but the policy has no conditional role
|
1264
|
+
# bindings, the response uses version 1. To learn which resources support
|
1265
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1266
|
+
# google.com/iam/help/conditions/resource-policies).
|
1267
|
+
# @param [String] fields
|
1268
|
+
# Selector specifying which fields to include in a partial response.
|
1269
|
+
# @param [String] quota_user
|
1270
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1271
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1272
|
+
# @param [Google::Apis::RequestOptions] options
|
1273
|
+
# Request-specific options
|
1274
|
+
#
|
1275
|
+
# @yield [result, err] Result & error if block supplied
|
1276
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Policy] parsed result object
|
1277
|
+
# @yieldparam err [StandardError] error object if request failed
|
1278
|
+
#
|
1279
|
+
# @return [Google::Apis::GkeonpremV1::Policy]
|
1280
|
+
#
|
1281
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1282
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1283
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1284
|
+
def get_project_location_bare_metal_cluster_bare_metal_node_pool_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1285
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
1286
|
+
command.response_representation = Google::Apis::GkeonpremV1::Policy::Representation
|
1287
|
+
command.response_class = Google::Apis::GkeonpremV1::Policy
|
1288
|
+
command.params['resource'] = resource unless resource.nil?
|
1289
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
1290
|
+
command.query['fields'] = fields unless fields.nil?
|
1291
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1292
|
+
execute_or_queue_command(command, &block)
|
1293
|
+
end
|
1294
|
+
|
1295
|
+
# Lists bare metal node pools in a given project, location and bare metal
|
1296
|
+
# cluster.
|
1297
|
+
# @param [String] parent
|
1298
|
+
# Required. The parent, which owns this collection of node pools. Format:
|
1299
|
+
# projects/`project`/locations/`location`/bareMetalClusters/`bareMetalCluster`
|
1300
|
+
# @param [Fixnum] page_size
|
1301
|
+
# The maximum number of node pools to return. The service may return fewer than
|
1302
|
+
# this value. If unspecified, at most 50 node pools will be returned. The
|
1303
|
+
# maximum value is 1000; values above 1000 will be coerced to 1000.
|
1304
|
+
# @param [String] page_token
|
1305
|
+
# A page token, received from a previous `ListBareMetalNodePools` call. Provide
|
1306
|
+
# this to retrieve the subsequent page. When paginating, all other parameters
|
1307
|
+
# provided to `ListBareMetalNodePools` must match the call that provided the
|
1308
|
+
# page token.
|
1309
|
+
# @param [String] fields
|
1310
|
+
# Selector specifying which fields to include in a partial response.
|
1311
|
+
# @param [String] quota_user
|
1312
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1313
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1314
|
+
# @param [Google::Apis::RequestOptions] options
|
1315
|
+
# Request-specific options
|
1316
|
+
#
|
1317
|
+
# @yield [result, err] Result & error if block supplied
|
1318
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::ListBareMetalNodePoolsResponse] parsed result object
|
1319
|
+
# @yieldparam err [StandardError] error object if request failed
|
1320
|
+
#
|
1321
|
+
# @return [Google::Apis::GkeonpremV1::ListBareMetalNodePoolsResponse]
|
1322
|
+
#
|
1323
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1324
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1325
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1326
|
+
def list_project_location_bare_metal_cluster_bare_metal_node_pools(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1327
|
+
command = make_simple_command(:get, 'v1/{+parent}/bareMetalNodePools', options)
|
1328
|
+
command.response_representation = Google::Apis::GkeonpremV1::ListBareMetalNodePoolsResponse::Representation
|
1329
|
+
command.response_class = Google::Apis::GkeonpremV1::ListBareMetalNodePoolsResponse
|
1330
|
+
command.params['parent'] = parent unless parent.nil?
|
1331
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1332
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1333
|
+
command.query['fields'] = fields unless fields.nil?
|
1334
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1335
|
+
execute_or_queue_command(command, &block)
|
1336
|
+
end
|
1337
|
+
|
1338
|
+
# Updates the parameters of a single bare metal node pool.
|
1339
|
+
# @param [String] name
|
1340
|
+
# Immutable. The bare metal node pool resource name.
|
1341
|
+
# @param [Google::Apis::GkeonpremV1::BareMetalNodePool] bare_metal_node_pool_object
|
1342
|
+
# @param [String] update_mask
|
1343
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
1344
|
+
# BareMetalNodePool resource by the update. The fields specified in the
|
1345
|
+
# update_mask are relative to the resource, not the full request. A field will
|
1346
|
+
# be overwritten if it is in the mask. If the user does not provide a mask then
|
1347
|
+
# all populated fields in the BareMetalNodePool message will be updated. Empty
|
1348
|
+
# fields will be ignored unless a field mask is used.
|
1349
|
+
# @param [Boolean] validate_only
|
1350
|
+
# Validate the request without actually doing any updates.
|
1351
|
+
# @param [String] fields
|
1352
|
+
# Selector specifying which fields to include in a partial response.
|
1353
|
+
# @param [String] quota_user
|
1354
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1355
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1356
|
+
# @param [Google::Apis::RequestOptions] options
|
1357
|
+
# Request-specific options
|
1358
|
+
#
|
1359
|
+
# @yield [result, err] Result & error if block supplied
|
1360
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
1361
|
+
# @yieldparam err [StandardError] error object if request failed
|
1362
|
+
#
|
1363
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
1364
|
+
#
|
1365
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1366
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1367
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1368
|
+
def patch_project_location_bare_metal_cluster_bare_metal_node_pool(name, bare_metal_node_pool_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1369
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
1370
|
+
command.request_representation = Google::Apis::GkeonpremV1::BareMetalNodePool::Representation
|
1371
|
+
command.request_object = bare_metal_node_pool_object
|
1372
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
1373
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
1374
|
+
command.params['name'] = name unless name.nil?
|
1375
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1376
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1377
|
+
command.query['fields'] = fields unless fields.nil?
|
1378
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1379
|
+
execute_or_queue_command(command, &block)
|
1380
|
+
end
|
1381
|
+
|
1382
|
+
# Sets the access control policy on the specified resource. Replaces any
|
1383
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
1384
|
+
# PERMISSION_DENIED` errors.
|
1385
|
+
# @param [String] resource
|
1386
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
1387
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1388
|
+
# appropriate value for this field.
|
1389
|
+
# @param [Google::Apis::GkeonpremV1::SetIamPolicyRequest] set_iam_policy_request_object
|
1390
|
+
# @param [String] fields
|
1391
|
+
# Selector specifying which fields to include in a partial response.
|
1392
|
+
# @param [String] quota_user
|
1393
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1394
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1395
|
+
# @param [Google::Apis::RequestOptions] options
|
1396
|
+
# Request-specific options
|
1397
|
+
#
|
1398
|
+
# @yield [result, err] Result & error if block supplied
|
1399
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Policy] parsed result object
|
1400
|
+
# @yieldparam err [StandardError] error object if request failed
|
1401
|
+
#
|
1402
|
+
# @return [Google::Apis::GkeonpremV1::Policy]
|
1403
|
+
#
|
1404
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1405
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1406
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1407
|
+
def set_bare_metal_node_pool_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1408
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
1409
|
+
command.request_representation = Google::Apis::GkeonpremV1::SetIamPolicyRequest::Representation
|
1410
|
+
command.request_object = set_iam_policy_request_object
|
1411
|
+
command.response_representation = Google::Apis::GkeonpremV1::Policy::Representation
|
1412
|
+
command.response_class = Google::Apis::GkeonpremV1::Policy
|
1413
|
+
command.params['resource'] = resource unless resource.nil?
|
1414
|
+
command.query['fields'] = fields unless fields.nil?
|
1415
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1416
|
+
execute_or_queue_command(command, &block)
|
1417
|
+
end
|
1418
|
+
|
1419
|
+
# Returns permissions that a caller has on the specified resource. If the
|
1420
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
1421
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
1422
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
1423
|
+
# This operation may "fail open" without warning.
|
1424
|
+
# @param [String] resource
|
1425
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
1426
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
1427
|
+
# appropriate value for this field.
|
1428
|
+
# @param [Google::Apis::GkeonpremV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
1429
|
+
# @param [String] fields
|
1430
|
+
# Selector specifying which fields to include in a partial response.
|
1431
|
+
# @param [String] quota_user
|
1432
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1433
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1434
|
+
# @param [Google::Apis::RequestOptions] options
|
1435
|
+
# Request-specific options
|
1436
|
+
#
|
1437
|
+
# @yield [result, err] Result & error if block supplied
|
1438
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::TestIamPermissionsResponse] parsed result object
|
1439
|
+
# @yieldparam err [StandardError] error object if request failed
|
1440
|
+
#
|
1441
|
+
# @return [Google::Apis::GkeonpremV1::TestIamPermissionsResponse]
|
1442
|
+
#
|
1443
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1444
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1445
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1446
|
+
def test_bare_metal_node_pool_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1447
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
1448
|
+
command.request_representation = Google::Apis::GkeonpremV1::TestIamPermissionsRequest::Representation
|
1449
|
+
command.request_object = test_iam_permissions_request_object
|
1450
|
+
command.response_representation = Google::Apis::GkeonpremV1::TestIamPermissionsResponse::Representation
|
1451
|
+
command.response_class = Google::Apis::GkeonpremV1::TestIamPermissionsResponse
|
1452
|
+
command.params['resource'] = resource unless resource.nil?
|
1453
|
+
command.query['fields'] = fields unless fields.nil?
|
1454
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1455
|
+
execute_or_queue_command(command, &block)
|
1456
|
+
end
|
1457
|
+
|
1458
|
+
# Unenrolls a bare metal node pool from Anthos On-Prem API.
|
1459
|
+
# @param [String] name
|
1460
|
+
# Required. The name of the node pool to unenroll. Format: projects/`project`/
|
1461
|
+
# locations/`location`/bareMetalClusters/`cluster`/bareMetalNodePools/`nodepool`
|
1462
|
+
# @param [Boolean] allow_missing
|
1463
|
+
# If set to true, and the bare metal node pool is not found, the request will
|
1464
|
+
# succeed but no action will be taken on the server and return a completed LRO.
|
1465
|
+
# @param [String] etag
|
1466
|
+
# The current etag of the bare metal node pool. If an etag is provided and does
|
1467
|
+
# not match the current etag of node pool, deletion will be blocked and an
|
1468
|
+
# ABORTED error will be returned.
|
1469
|
+
# @param [Boolean] validate_only
|
1470
|
+
# If set, only validate the request, but do not actually unenroll the node pool.
|
1471
|
+
# @param [String] fields
|
1472
|
+
# Selector specifying which fields to include in a partial response.
|
1473
|
+
# @param [String] quota_user
|
1474
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1475
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1476
|
+
# @param [Google::Apis::RequestOptions] options
|
1477
|
+
# Request-specific options
|
1478
|
+
#
|
1479
|
+
# @yield [result, err] Result & error if block supplied
|
1480
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
1481
|
+
# @yieldparam err [StandardError] error object if request failed
|
1482
|
+
#
|
1483
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
1484
|
+
#
|
1485
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1486
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1487
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1488
|
+
def unenroll_project_location_bare_metal_cluster_bare_metal_node_pool(name, allow_missing: nil, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1489
|
+
command = make_simple_command(:delete, 'v1/{+name}:unenroll', options)
|
1490
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
1491
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
1492
|
+
command.params['name'] = name unless name.nil?
|
1493
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
1494
|
+
command.query['etag'] = etag unless etag.nil?
|
1495
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1496
|
+
command.query['fields'] = fields unless fields.nil?
|
1497
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1498
|
+
execute_or_queue_command(command, &block)
|
1499
|
+
end
|
1500
|
+
|
1501
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
1502
|
+
# to poll the operation result at intervals as recommended by the API service.
|
1503
|
+
# @param [String] name
|
1504
|
+
# The name of the operation resource.
|
1505
|
+
# @param [String] fields
|
1506
|
+
# Selector specifying which fields to include in a partial response.
|
1507
|
+
# @param [String] quota_user
|
1508
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1509
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1510
|
+
# @param [Google::Apis::RequestOptions] options
|
1511
|
+
# Request-specific options
|
1512
|
+
#
|
1513
|
+
# @yield [result, err] Result & error if block supplied
|
1514
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
1515
|
+
# @yieldparam err [StandardError] error object if request failed
|
1516
|
+
#
|
1517
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
1518
|
+
#
|
1519
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1520
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1521
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1522
|
+
def get_project_location_bare_metal_cluster_bare_metal_node_pool_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
1523
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1524
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
1525
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
1526
|
+
command.params['name'] = name unless name.nil?
|
1527
|
+
command.query['fields'] = fields unless fields.nil?
|
1528
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1529
|
+
execute_or_queue_command(command, &block)
|
1530
|
+
end
|
1531
|
+
|
1532
|
+
# Lists operations that match the specified filter in the request. If the server
|
1533
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
1534
|
+
# @param [String] name
|
1535
|
+
# The name of the operation's parent resource.
|
1536
|
+
# @param [String] filter
|
1537
|
+
# The standard list filter.
|
1538
|
+
# @param [Fixnum] page_size
|
1539
|
+
# The standard list page size.
|
1540
|
+
# @param [String] page_token
|
1541
|
+
# The standard list page token.
|
1542
|
+
# @param [String] fields
|
1543
|
+
# Selector specifying which fields to include in a partial response.
|
1544
|
+
# @param [String] quota_user
|
1545
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1546
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1547
|
+
# @param [Google::Apis::RequestOptions] options
|
1548
|
+
# Request-specific options
|
1549
|
+
#
|
1550
|
+
# @yield [result, err] Result & error if block supplied
|
1551
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::ListOperationsResponse] parsed result object
|
1552
|
+
# @yieldparam err [StandardError] error object if request failed
|
1553
|
+
#
|
1554
|
+
# @return [Google::Apis::GkeonpremV1::ListOperationsResponse]
|
1555
|
+
#
|
1556
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1557
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1558
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1559
|
+
def list_project_location_bare_metal_cluster_bare_metal_node_pool_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1560
|
+
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
1561
|
+
command.response_representation = Google::Apis::GkeonpremV1::ListOperationsResponse::Representation
|
1562
|
+
command.response_class = Google::Apis::GkeonpremV1::ListOperationsResponse
|
1563
|
+
command.params['name'] = name unless name.nil?
|
1564
|
+
command.query['filter'] = filter unless filter.nil?
|
1565
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1566
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1567
|
+
command.query['fields'] = fields unless fields.nil?
|
1568
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1569
|
+
execute_or_queue_command(command, &block)
|
1570
|
+
end
|
1571
|
+
|
1572
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
1573
|
+
# to poll the operation result at intervals as recommended by the API service.
|
1574
|
+
# @param [String] name
|
1575
|
+
# The name of the operation resource.
|
1576
|
+
# @param [String] fields
|
1577
|
+
# Selector specifying which fields to include in a partial response.
|
1578
|
+
# @param [String] quota_user
|
1579
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1580
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1581
|
+
# @param [Google::Apis::RequestOptions] options
|
1582
|
+
# Request-specific options
|
1583
|
+
#
|
1584
|
+
# @yield [result, err] Result & error if block supplied
|
1585
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
1586
|
+
# @yieldparam err [StandardError] error object if request failed
|
1587
|
+
#
|
1588
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
1589
|
+
#
|
1590
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1591
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1592
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1593
|
+
def get_project_location_bare_metal_cluster_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
1594
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1595
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
1596
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
1597
|
+
command.params['name'] = name unless name.nil?
|
1598
|
+
command.query['fields'] = fields unless fields.nil?
|
1599
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1600
|
+
execute_or_queue_command(command, &block)
|
1601
|
+
end
|
1602
|
+
|
1603
|
+
# Lists operations that match the specified filter in the request. If the server
|
1604
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
1605
|
+
# @param [String] name
|
1606
|
+
# The name of the operation's parent resource.
|
1607
|
+
# @param [String] filter
|
1608
|
+
# The standard list filter.
|
1609
|
+
# @param [Fixnum] page_size
|
1610
|
+
# The standard list page size.
|
1611
|
+
# @param [String] page_token
|
1612
|
+
# The standard list page token.
|
1613
|
+
# @param [String] fields
|
1614
|
+
# Selector specifying which fields to include in a partial response.
|
1615
|
+
# @param [String] quota_user
|
1616
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1617
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1618
|
+
# @param [Google::Apis::RequestOptions] options
|
1619
|
+
# Request-specific options
|
1620
|
+
#
|
1621
|
+
# @yield [result, err] Result & error if block supplied
|
1622
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::ListOperationsResponse] parsed result object
|
1623
|
+
# @yieldparam err [StandardError] error object if request failed
|
1624
|
+
#
|
1625
|
+
# @return [Google::Apis::GkeonpremV1::ListOperationsResponse]
|
1626
|
+
#
|
1627
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1628
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1629
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1630
|
+
def list_project_location_bare_metal_cluster_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1631
|
+
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
1632
|
+
command.response_representation = Google::Apis::GkeonpremV1::ListOperationsResponse::Representation
|
1633
|
+
command.response_class = Google::Apis::GkeonpremV1::ListOperationsResponse
|
1634
|
+
command.params['name'] = name unless name.nil?
|
1635
|
+
command.query['filter'] = filter unless filter.nil?
|
1636
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1637
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1638
|
+
command.query['fields'] = fields unless fields.nil?
|
1639
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1640
|
+
execute_or_queue_command(command, &block)
|
1641
|
+
end
|
1642
|
+
|
1643
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
1644
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
1645
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
1646
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
1647
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
1648
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
1649
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
1650
|
+
# corresponding to `Code.CANCELLED`.
|
1651
|
+
# @param [String] name
|
1652
|
+
# The name of the operation resource to be cancelled.
|
1653
|
+
# @param [Google::Apis::GkeonpremV1::CancelOperationRequest] cancel_operation_request_object
|
1654
|
+
# @param [String] fields
|
1655
|
+
# Selector specifying which fields to include in a partial response.
|
1656
|
+
# @param [String] quota_user
|
1657
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1658
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1659
|
+
# @param [Google::Apis::RequestOptions] options
|
1660
|
+
# Request-specific options
|
1661
|
+
#
|
1662
|
+
# @yield [result, err] Result & error if block supplied
|
1663
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Empty] parsed result object
|
1664
|
+
# @yieldparam err [StandardError] error object if request failed
|
1665
|
+
#
|
1666
|
+
# @return [Google::Apis::GkeonpremV1::Empty]
|
1667
|
+
#
|
1668
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1669
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1670
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1671
|
+
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1672
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
1673
|
+
command.request_representation = Google::Apis::GkeonpremV1::CancelOperationRequest::Representation
|
1674
|
+
command.request_object = cancel_operation_request_object
|
1675
|
+
command.response_representation = Google::Apis::GkeonpremV1::Empty::Representation
|
1676
|
+
command.response_class = Google::Apis::GkeonpremV1::Empty
|
1677
|
+
command.params['name'] = name unless name.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
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
1684
|
+
# longer interested in the operation result. It does not cancel the operation.
|
1685
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
1686
|
+
# UNIMPLEMENTED`.
|
1687
|
+
# @param [String] name
|
1688
|
+
# The name of the operation resource to be deleted.
|
1689
|
+
# @param [String] fields
|
1690
|
+
# Selector specifying which fields to include in a partial response.
|
1691
|
+
# @param [String] quota_user
|
1692
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1693
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1694
|
+
# @param [Google::Apis::RequestOptions] options
|
1695
|
+
# Request-specific options
|
1696
|
+
#
|
1697
|
+
# @yield [result, err] Result & error if block supplied
|
1698
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Empty] parsed result object
|
1699
|
+
# @yieldparam err [StandardError] error object if request failed
|
1700
|
+
#
|
1701
|
+
# @return [Google::Apis::GkeonpremV1::Empty]
|
1702
|
+
#
|
1703
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1704
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1705
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1706
|
+
def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
1707
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1708
|
+
command.response_representation = Google::Apis::GkeonpremV1::Empty::Representation
|
1709
|
+
command.response_class = Google::Apis::GkeonpremV1::Empty
|
1710
|
+
command.params['name'] = name unless name.nil?
|
1711
|
+
command.query['fields'] = fields unless fields.nil?
|
1712
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1713
|
+
execute_or_queue_command(command, &block)
|
1714
|
+
end
|
1715
|
+
|
1716
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
1717
|
+
# to poll the operation result at intervals as recommended by the API service.
|
1718
|
+
# @param [String] name
|
1719
|
+
# The name of the operation resource.
|
1720
|
+
# @param [String] fields
|
1721
|
+
# Selector specifying which fields to include in a partial response.
|
1722
|
+
# @param [String] quota_user
|
1723
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1724
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1725
|
+
# @param [Google::Apis::RequestOptions] options
|
1726
|
+
# Request-specific options
|
1727
|
+
#
|
1728
|
+
# @yield [result, err] Result & error if block supplied
|
1729
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
1730
|
+
# @yieldparam err [StandardError] error object if request failed
|
1731
|
+
#
|
1732
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
1733
|
+
#
|
1734
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1735
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1736
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1737
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
1738
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1739
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
1740
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
1741
|
+
command.params['name'] = name unless name.nil?
|
1742
|
+
command.query['fields'] = fields unless fields.nil?
|
1743
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1744
|
+
execute_or_queue_command(command, &block)
|
1745
|
+
end
|
1746
|
+
|
1747
|
+
# Lists operations that match the specified filter in the request. If the server
|
1748
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
1749
|
+
# @param [String] name
|
1750
|
+
# The name of the operation's parent resource.
|
1751
|
+
# @param [String] filter
|
1752
|
+
# The standard list filter.
|
1753
|
+
# @param [Fixnum] page_size
|
1754
|
+
# The standard list page size.
|
1755
|
+
# @param [String] page_token
|
1756
|
+
# The standard list page token.
|
1757
|
+
# @param [String] fields
|
1758
|
+
# Selector specifying which fields to include in a partial response.
|
1759
|
+
# @param [String] quota_user
|
1760
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1761
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1762
|
+
# @param [Google::Apis::RequestOptions] options
|
1763
|
+
# Request-specific options
|
1764
|
+
#
|
1765
|
+
# @yield [result, err] Result & error if block supplied
|
1766
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::ListOperationsResponse] parsed result object
|
1767
|
+
# @yieldparam err [StandardError] error object if request failed
|
1768
|
+
#
|
1769
|
+
# @return [Google::Apis::GkeonpremV1::ListOperationsResponse]
|
1770
|
+
#
|
1771
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1772
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1773
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1774
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1775
|
+
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
1776
|
+
command.response_representation = Google::Apis::GkeonpremV1::ListOperationsResponse::Representation
|
1777
|
+
command.response_class = Google::Apis::GkeonpremV1::ListOperationsResponse
|
1778
|
+
command.params['name'] = name unless name.nil?
|
1779
|
+
command.query['filter'] = filter unless filter.nil?
|
1780
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1781
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1782
|
+
command.query['fields'] = fields unless fields.nil?
|
1783
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1784
|
+
execute_or_queue_command(command, &block)
|
1785
|
+
end
|
1786
|
+
|
1787
|
+
# Enrolls an existing VMware admin cluster to the Anthos On-Prem API within a
|
1788
|
+
# given project and location. Through enrollment, an existing admin cluster will
|
1789
|
+
# become Anthos On-Prem API managed. The corresponding GCP resources will be
|
1790
|
+
# created and all future modifications to the cluster will be expected to be
|
1791
|
+
# performed through the API.
|
1792
|
+
# @param [String] parent
|
1793
|
+
# Required. The parent of the project and location where the cluster is enrolled
|
1794
|
+
# in. Format: "projects/`project`/locations/`location`"
|
1795
|
+
# @param [Google::Apis::GkeonpremV1::EnrollVmwareAdminClusterRequest] enroll_vmware_admin_cluster_request_object
|
1796
|
+
# @param [String] fields
|
1797
|
+
# Selector specifying which fields to include in a partial response.
|
1798
|
+
# @param [String] quota_user
|
1799
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1800
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1801
|
+
# @param [Google::Apis::RequestOptions] options
|
1802
|
+
# Request-specific options
|
1803
|
+
#
|
1804
|
+
# @yield [result, err] Result & error if block supplied
|
1805
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
1806
|
+
# @yieldparam err [StandardError] error object if request failed
|
1807
|
+
#
|
1808
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
1809
|
+
#
|
1810
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1811
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1812
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1813
|
+
def enroll_vmware_admin_cluster(parent, enroll_vmware_admin_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1814
|
+
command = make_simple_command(:post, 'v1/{+parent}/vmwareAdminClusters:enroll', options)
|
1815
|
+
command.request_representation = Google::Apis::GkeonpremV1::EnrollVmwareAdminClusterRequest::Representation
|
1816
|
+
command.request_object = enroll_vmware_admin_cluster_request_object
|
1817
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
1818
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
1819
|
+
command.params['parent'] = parent unless parent.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 a single VMware admin cluster.
|
1826
|
+
# @param [String] name
|
1827
|
+
# Required. Name of the VMware admin cluster to be returned. Format: "projects/`
|
1828
|
+
# project`/locations/`location`/vmwareAdminClusters/`vmware_admin_cluster`"
|
1829
|
+
# @param [String] fields
|
1830
|
+
# Selector specifying which fields to include in a partial response.
|
1831
|
+
# @param [String] quota_user
|
1832
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1833
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1834
|
+
# @param [Google::Apis::RequestOptions] options
|
1835
|
+
# Request-specific options
|
1836
|
+
#
|
1837
|
+
# @yield [result, err] Result & error if block supplied
|
1838
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::VmwareAdminCluster] parsed result object
|
1839
|
+
# @yieldparam err [StandardError] error object if request failed
|
1840
|
+
#
|
1841
|
+
# @return [Google::Apis::GkeonpremV1::VmwareAdminCluster]
|
1842
|
+
#
|
1843
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1844
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1845
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1846
|
+
def get_project_location_vmware_admin_cluster(name, fields: nil, quota_user: nil, options: nil, &block)
|
1847
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1848
|
+
command.response_representation = Google::Apis::GkeonpremV1::VmwareAdminCluster::Representation
|
1849
|
+
command.response_class = Google::Apis::GkeonpremV1::VmwareAdminCluster
|
1850
|
+
command.params['name'] = name unless name.nil?
|
1851
|
+
command.query['fields'] = fields unless fields.nil?
|
1852
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1853
|
+
execute_or_queue_command(command, &block)
|
1854
|
+
end
|
1855
|
+
|
1856
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
1857
|
+
# resource exists and does not have a policy set.
|
1858
|
+
# @param [String] resource
|
1859
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
1860
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1861
|
+
# appropriate value for this field.
|
1862
|
+
# @param [Fixnum] options_requested_policy_version
|
1863
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
1864
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
1865
|
+
# rejected. Requests for policies with any conditional role bindings must
|
1866
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
1867
|
+
# valid value or leave the field unset. The policy in the response might use the
|
1868
|
+
# policy version that you specified, or it might use a lower policy version. For
|
1869
|
+
# example, if you specify version 3, but the policy has no conditional role
|
1870
|
+
# bindings, the response uses version 1. To learn which resources support
|
1871
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1872
|
+
# google.com/iam/help/conditions/resource-policies).
|
1873
|
+
# @param [String] fields
|
1874
|
+
# Selector specifying which fields to include in a partial response.
|
1875
|
+
# @param [String] quota_user
|
1876
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1877
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1878
|
+
# @param [Google::Apis::RequestOptions] options
|
1879
|
+
# Request-specific options
|
1880
|
+
#
|
1881
|
+
# @yield [result, err] Result & error if block supplied
|
1882
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Policy] parsed result object
|
1883
|
+
# @yieldparam err [StandardError] error object if request failed
|
1884
|
+
#
|
1885
|
+
# @return [Google::Apis::GkeonpremV1::Policy]
|
1886
|
+
#
|
1887
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1888
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1889
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1890
|
+
def get_project_location_vmware_admin_cluster_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1891
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
1892
|
+
command.response_representation = Google::Apis::GkeonpremV1::Policy::Representation
|
1893
|
+
command.response_class = Google::Apis::GkeonpremV1::Policy
|
1894
|
+
command.params['resource'] = resource unless resource.nil?
|
1895
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
1896
|
+
command.query['fields'] = fields unless fields.nil?
|
1897
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1898
|
+
execute_or_queue_command(command, &block)
|
1899
|
+
end
|
1900
|
+
|
1901
|
+
# Lists VMware admin clusters in a given project and location.
|
1902
|
+
# @param [String] parent
|
1903
|
+
# Required. The parent of the project and location where the clusters are listed
|
1904
|
+
# in. Format: "projects/`project`/locations/`location`"
|
1905
|
+
# @param [Fixnum] page_size
|
1906
|
+
# Requested page size. Server may return fewer items than requested. If
|
1907
|
+
# unspecified, at most 50 clusters will be returned. The maximum value is 1000;
|
1908
|
+
# values above 1000 will be coerced to 1000.
|
1909
|
+
# @param [String] page_token
|
1910
|
+
# A token identifying a page of results the server should return.
|
1911
|
+
# @param [String] view
|
1912
|
+
# View for VMware admin clusters. When `BASIC` is specified, only the admin
|
1913
|
+
# cluster resource name and membership are returned. The default/unset value `
|
1914
|
+
# CLUSTER_VIEW_UNSPECIFIED` is the same as `FULL', which returns the complete
|
1915
|
+
# admin cluster configuration details.
|
1916
|
+
# @param [String] fields
|
1917
|
+
# Selector specifying which fields to include in a partial response.
|
1918
|
+
# @param [String] quota_user
|
1919
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1920
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1921
|
+
# @param [Google::Apis::RequestOptions] options
|
1922
|
+
# Request-specific options
|
1923
|
+
#
|
1924
|
+
# @yield [result, err] Result & error if block supplied
|
1925
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::ListVmwareAdminClustersResponse] parsed result object
|
1926
|
+
# @yieldparam err [StandardError] error object if request failed
|
1927
|
+
#
|
1928
|
+
# @return [Google::Apis::GkeonpremV1::ListVmwareAdminClustersResponse]
|
1929
|
+
#
|
1930
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1931
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1932
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1933
|
+
def list_project_location_vmware_admin_clusters(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1934
|
+
command = make_simple_command(:get, 'v1/{+parent}/vmwareAdminClusters', options)
|
1935
|
+
command.response_representation = Google::Apis::GkeonpremV1::ListVmwareAdminClustersResponse::Representation
|
1936
|
+
command.response_class = Google::Apis::GkeonpremV1::ListVmwareAdminClustersResponse
|
1937
|
+
command.params['parent'] = parent unless parent.nil?
|
1938
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1939
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1940
|
+
command.query['view'] = view unless view.nil?
|
1941
|
+
command.query['fields'] = fields unless fields.nil?
|
1942
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1943
|
+
execute_or_queue_command(command, &block)
|
1944
|
+
end
|
1945
|
+
|
1946
|
+
# Updates the parameters of a single VMware admin cluster.
|
1947
|
+
# @param [String] name
|
1948
|
+
# Immutable. The VMware admin cluster resource name.
|
1949
|
+
# @param [Google::Apis::GkeonpremV1::VmwareAdminCluster] vmware_admin_cluster_object
|
1950
|
+
# @param [String] update_mask
|
1951
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
1952
|
+
# VMwareAdminCluster resource by the update. The fields specified in the
|
1953
|
+
# update_mask are relative to the resource, not the full request. A field will
|
1954
|
+
# be overwritten if it is in the mask. If the user does not provide a mask then
|
1955
|
+
# all populated fields in the VmwareAdminCluster message will be updated. Empty
|
1956
|
+
# fields will be ignored unless a field mask is used.
|
1957
|
+
# @param [Boolean] validate_only
|
1958
|
+
# Validate the request without actually doing any updates.
|
1959
|
+
# @param [String] fields
|
1960
|
+
# Selector specifying which fields to include in a partial response.
|
1961
|
+
# @param [String] quota_user
|
1962
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1963
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1964
|
+
# @param [Google::Apis::RequestOptions] options
|
1965
|
+
# Request-specific options
|
1966
|
+
#
|
1967
|
+
# @yield [result, err] Result & error if block supplied
|
1968
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
1969
|
+
# @yieldparam err [StandardError] error object if request failed
|
1970
|
+
#
|
1971
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
1972
|
+
#
|
1973
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1974
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1975
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1976
|
+
def patch_project_location_vmware_admin_cluster(name, vmware_admin_cluster_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1977
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
1978
|
+
command.request_representation = Google::Apis::GkeonpremV1::VmwareAdminCluster::Representation
|
1979
|
+
command.request_object = vmware_admin_cluster_object
|
1980
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
1981
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
1982
|
+
command.params['name'] = name unless name.nil?
|
1983
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1984
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1985
|
+
command.query['fields'] = fields unless fields.nil?
|
1986
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1987
|
+
execute_or_queue_command(command, &block)
|
1988
|
+
end
|
1989
|
+
|
1990
|
+
# Sets the access control policy on the specified resource. Replaces any
|
1991
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
1992
|
+
# PERMISSION_DENIED` errors.
|
1993
|
+
# @param [String] resource
|
1994
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
1995
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1996
|
+
# appropriate value for this field.
|
1997
|
+
# @param [Google::Apis::GkeonpremV1::SetIamPolicyRequest] set_iam_policy_request_object
|
1998
|
+
# @param [String] fields
|
1999
|
+
# Selector specifying which fields to include in a partial response.
|
2000
|
+
# @param [String] quota_user
|
2001
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2002
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2003
|
+
# @param [Google::Apis::RequestOptions] options
|
2004
|
+
# Request-specific options
|
2005
|
+
#
|
2006
|
+
# @yield [result, err] Result & error if block supplied
|
2007
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Policy] parsed result object
|
2008
|
+
# @yieldparam err [StandardError] error object if request failed
|
2009
|
+
#
|
2010
|
+
# @return [Google::Apis::GkeonpremV1::Policy]
|
2011
|
+
#
|
2012
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2013
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2014
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2015
|
+
def set_vmware_admin_cluster_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2016
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
2017
|
+
command.request_representation = Google::Apis::GkeonpremV1::SetIamPolicyRequest::Representation
|
2018
|
+
command.request_object = set_iam_policy_request_object
|
2019
|
+
command.response_representation = Google::Apis::GkeonpremV1::Policy::Representation
|
2020
|
+
command.response_class = Google::Apis::GkeonpremV1::Policy
|
2021
|
+
command.params['resource'] = resource unless resource.nil?
|
2022
|
+
command.query['fields'] = fields unless fields.nil?
|
2023
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2024
|
+
execute_or_queue_command(command, &block)
|
2025
|
+
end
|
2026
|
+
|
2027
|
+
# Returns permissions that a caller has on the specified resource. If the
|
2028
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
2029
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
2030
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
2031
|
+
# This operation may "fail open" without warning.
|
2032
|
+
# @param [String] resource
|
2033
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
2034
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
2035
|
+
# appropriate value for this field.
|
2036
|
+
# @param [Google::Apis::GkeonpremV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
2037
|
+
# @param [String] fields
|
2038
|
+
# Selector specifying which fields to include in a partial response.
|
2039
|
+
# @param [String] quota_user
|
2040
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2041
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2042
|
+
# @param [Google::Apis::RequestOptions] options
|
2043
|
+
# Request-specific options
|
2044
|
+
#
|
2045
|
+
# @yield [result, err] Result & error if block supplied
|
2046
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::TestIamPermissionsResponse] parsed result object
|
2047
|
+
# @yieldparam err [StandardError] error object if request failed
|
2048
|
+
#
|
2049
|
+
# @return [Google::Apis::GkeonpremV1::TestIamPermissionsResponse]
|
2050
|
+
#
|
2051
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2052
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2053
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2054
|
+
def test_vmware_admin_cluster_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2055
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
2056
|
+
command.request_representation = Google::Apis::GkeonpremV1::TestIamPermissionsRequest::Representation
|
2057
|
+
command.request_object = test_iam_permissions_request_object
|
2058
|
+
command.response_representation = Google::Apis::GkeonpremV1::TestIamPermissionsResponse::Representation
|
2059
|
+
command.response_class = Google::Apis::GkeonpremV1::TestIamPermissionsResponse
|
2060
|
+
command.params['resource'] = resource unless resource.nil?
|
2061
|
+
command.query['fields'] = fields unless fields.nil?
|
2062
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2063
|
+
execute_or_queue_command(command, &block)
|
2064
|
+
end
|
2065
|
+
|
2066
|
+
# Unenrolls an existing VMware admin cluster from the Anthos On-Prem API within
|
2067
|
+
# a given project and location. Unenrollment removes the Cloud reference to the
|
2068
|
+
# cluster without modifying the underlying OnPrem Resources. Clusters will
|
2069
|
+
# continue to run; however, they will no longer be accessible through the Anthos
|
2070
|
+
# On-Prem API or its clients.
|
2071
|
+
# @param [String] name
|
2072
|
+
# Required. Name of the VMware admin cluster to be unenrolled. Format: "projects/
|
2073
|
+
# `project`/locations/`location`/vmwareAdminClusters/`cluster`"
|
2074
|
+
# @param [Boolean] allow_missing
|
2075
|
+
# If set to true, and the VMware admin cluster is not found, the request will
|
2076
|
+
# succeed but no action will be taken on the server and return a completed LRO.
|
2077
|
+
# @param [String] etag
|
2078
|
+
# The current etag of the VMware admin cluster. If an etag is provided and does
|
2079
|
+
# not match the current etag of the cluster, deletion will be blocked and an
|
2080
|
+
# ABORTED error will be returned.
|
2081
|
+
# @param [Boolean] validate_only
|
2082
|
+
# Validate the request without actually doing any updates.
|
2083
|
+
# @param [String] fields
|
2084
|
+
# Selector specifying which fields to include in a partial response.
|
2085
|
+
# @param [String] quota_user
|
2086
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2087
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2088
|
+
# @param [Google::Apis::RequestOptions] options
|
2089
|
+
# Request-specific options
|
2090
|
+
#
|
2091
|
+
# @yield [result, err] Result & error if block supplied
|
2092
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
2093
|
+
# @yieldparam err [StandardError] error object if request failed
|
2094
|
+
#
|
2095
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
2096
|
+
#
|
2097
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2098
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2099
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2100
|
+
def unenroll_project_location_vmware_admin_cluster(name, allow_missing: nil, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2101
|
+
command = make_simple_command(:delete, 'v1/{+name}:unenroll', options)
|
2102
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
2103
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
2104
|
+
command.params['name'] = name unless name.nil?
|
2105
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
2106
|
+
command.query['etag'] = etag unless etag.nil?
|
2107
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
2108
|
+
command.query['fields'] = fields unless fields.nil?
|
2109
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2110
|
+
execute_or_queue_command(command, &block)
|
2111
|
+
end
|
2112
|
+
|
2113
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
2114
|
+
# to poll the operation result at intervals as recommended by the API service.
|
2115
|
+
# @param [String] name
|
2116
|
+
# The name of the operation resource.
|
2117
|
+
# @param [String] fields
|
2118
|
+
# Selector specifying which fields to include in a partial response.
|
2119
|
+
# @param [String] quota_user
|
2120
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2121
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2122
|
+
# @param [Google::Apis::RequestOptions] options
|
2123
|
+
# Request-specific options
|
2124
|
+
#
|
2125
|
+
# @yield [result, err] Result & error if block supplied
|
2126
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
2127
|
+
# @yieldparam err [StandardError] error object if request failed
|
2128
|
+
#
|
2129
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
2130
|
+
#
|
2131
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2132
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2133
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2134
|
+
def get_project_location_vmware_admin_cluster_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
2135
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
2136
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
2137
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
2138
|
+
command.params['name'] = name unless name.nil?
|
2139
|
+
command.query['fields'] = fields unless fields.nil?
|
2140
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2141
|
+
execute_or_queue_command(command, &block)
|
2142
|
+
end
|
2143
|
+
|
2144
|
+
# Lists operations that match the specified filter in the request. If the server
|
2145
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
2146
|
+
# @param [String] name
|
2147
|
+
# The name of the operation's parent resource.
|
2148
|
+
# @param [String] filter
|
2149
|
+
# The standard list filter.
|
2150
|
+
# @param [Fixnum] page_size
|
2151
|
+
# The standard list page size.
|
2152
|
+
# @param [String] page_token
|
2153
|
+
# The standard list page token.
|
2154
|
+
# @param [String] fields
|
2155
|
+
# Selector specifying which fields to include in a partial response.
|
2156
|
+
# @param [String] quota_user
|
2157
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2158
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2159
|
+
# @param [Google::Apis::RequestOptions] options
|
2160
|
+
# Request-specific options
|
2161
|
+
#
|
2162
|
+
# @yield [result, err] Result & error if block supplied
|
2163
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::ListOperationsResponse] parsed result object
|
2164
|
+
# @yieldparam err [StandardError] error object if request failed
|
2165
|
+
#
|
2166
|
+
# @return [Google::Apis::GkeonpremV1::ListOperationsResponse]
|
2167
|
+
#
|
2168
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2169
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2170
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2171
|
+
def list_project_location_vmware_admin_cluster_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2172
|
+
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
2173
|
+
command.response_representation = Google::Apis::GkeonpremV1::ListOperationsResponse::Representation
|
2174
|
+
command.response_class = Google::Apis::GkeonpremV1::ListOperationsResponse
|
2175
|
+
command.params['name'] = name unless name.nil?
|
2176
|
+
command.query['filter'] = filter unless filter.nil?
|
2177
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2178
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2179
|
+
command.query['fields'] = fields unless fields.nil?
|
2180
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2181
|
+
execute_or_queue_command(command, &block)
|
2182
|
+
end
|
2183
|
+
|
2184
|
+
# Creates a new VMware cluster in a given project and location.
|
2185
|
+
# @param [String] parent
|
2186
|
+
# Required. The parent of the project and location where this cluster is created
|
2187
|
+
# in. Format: "projects/`project`/locations/`location`"
|
2188
|
+
# @param [Google::Apis::GkeonpremV1::VmwareCluster] vmware_cluster_object
|
2189
|
+
# @param [Boolean] validate_only
|
2190
|
+
# Validate the request without actually doing any updates.
|
2191
|
+
# @param [String] vmware_cluster_id
|
2192
|
+
# User provided identifier that is used as part of the resource name; This value
|
2193
|
+
# must be up to 40 characters and follow RFC-1123 (https://tools.ietf.org/html/
|
2194
|
+
# rfc1123) format.
|
2195
|
+
# @param [String] fields
|
2196
|
+
# Selector specifying which fields to include in a partial response.
|
2197
|
+
# @param [String] quota_user
|
2198
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2199
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2200
|
+
# @param [Google::Apis::RequestOptions] options
|
2201
|
+
# Request-specific options
|
2202
|
+
#
|
2203
|
+
# @yield [result, err] Result & error if block supplied
|
2204
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
2205
|
+
# @yieldparam err [StandardError] error object if request failed
|
2206
|
+
#
|
2207
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
2208
|
+
#
|
2209
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2210
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2211
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2212
|
+
def create_project_location_vmware_cluster(parent, vmware_cluster_object = nil, validate_only: nil, vmware_cluster_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2213
|
+
command = make_simple_command(:post, 'v1/{+parent}/vmwareClusters', options)
|
2214
|
+
command.request_representation = Google::Apis::GkeonpremV1::VmwareCluster::Representation
|
2215
|
+
command.request_object = vmware_cluster_object
|
2216
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
2217
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
2218
|
+
command.params['parent'] = parent unless parent.nil?
|
2219
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
2220
|
+
command.query['vmwareClusterId'] = vmware_cluster_id unless vmware_cluster_id.nil?
|
2221
|
+
command.query['fields'] = fields unless fields.nil?
|
2222
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2223
|
+
execute_or_queue_command(command, &block)
|
2224
|
+
end
|
2225
|
+
|
2226
|
+
# Deletes a single VMware Cluster.
|
2227
|
+
# @param [String] name
|
2228
|
+
# Required. Name of the VMware user cluster to be deleted. Format: "projects/`
|
2229
|
+
# project`/locations/`location`/vmwareClusters/`vmware_cluster`"
|
2230
|
+
# @param [Boolean] allow_missing
|
2231
|
+
# If set to true, and the VMware cluster is not found, the request will succeed
|
2232
|
+
# but no action will be taken on the server and return a completed LRO.
|
2233
|
+
# @param [String] etag
|
2234
|
+
# The current etag of the VMware cluster. If an etag is provided and does not
|
2235
|
+
# match the current etag of the cluster, deletion will be blocked and an ABORTED
|
2236
|
+
# error will be returned.
|
2237
|
+
# @param [Boolean] force
|
2238
|
+
# If set to true, any node pools from the cluster will also be deleted.
|
2239
|
+
# @param [Boolean] ignore_errors
|
2240
|
+
# If set to true, the deletion of a VMware user cluster resource will succeed
|
2241
|
+
# even if errors occur during deletion. This parameter can be used when you want
|
2242
|
+
# to delete GCP's cluster resource and the on-prem admin cluster that hosts your
|
2243
|
+
# user cluster is disconnected / unreachable or deleted. WARNING: Using this
|
2244
|
+
# parameter when your user cluster still exists may result in a deleted GCP user
|
2245
|
+
# cluster but an existing on-prem user cluster.
|
2246
|
+
# @param [Boolean] validate_only
|
2247
|
+
# Validate the request without actually doing any updates.
|
2248
|
+
# @param [String] fields
|
2249
|
+
# Selector specifying which fields to include in a partial response.
|
2250
|
+
# @param [String] quota_user
|
2251
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2252
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2253
|
+
# @param [Google::Apis::RequestOptions] options
|
2254
|
+
# Request-specific options
|
2255
|
+
#
|
2256
|
+
# @yield [result, err] Result & error if block supplied
|
2257
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
2258
|
+
# @yieldparam err [StandardError] error object if request failed
|
2259
|
+
#
|
2260
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
2261
|
+
#
|
2262
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2263
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2264
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2265
|
+
def delete_project_location_vmware_cluster(name, allow_missing: nil, etag: nil, force: nil, ignore_errors: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2266
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
2267
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
2268
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
2269
|
+
command.params['name'] = name unless name.nil?
|
2270
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
2271
|
+
command.query['etag'] = etag unless etag.nil?
|
2272
|
+
command.query['force'] = force unless force.nil?
|
2273
|
+
command.query['ignoreErrors'] = ignore_errors unless ignore_errors.nil?
|
2274
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
2275
|
+
command.query['fields'] = fields unless fields.nil?
|
2276
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2277
|
+
execute_or_queue_command(command, &block)
|
2278
|
+
end
|
2279
|
+
|
2280
|
+
# Enrolls an existing VMware user cluster and its node pools to the Anthos On-
|
2281
|
+
# Prem API within a given project and location. Through enrollment, an existing
|
2282
|
+
# cluster will become Anthos On-Prem API managed. The corresponding GCP
|
2283
|
+
# resources will be created and all future modifications to the cluster and/or
|
2284
|
+
# its node pools will be expected to be performed through the API.
|
2285
|
+
# @param [String] parent
|
2286
|
+
# Required. The parent of the project and location where the cluster is Enrolled
|
2287
|
+
# in. Format: "projects/`project`/locations/`location`"
|
2288
|
+
# @param [Google::Apis::GkeonpremV1::EnrollVmwareClusterRequest] enroll_vmware_cluster_request_object
|
2289
|
+
# @param [String] fields
|
2290
|
+
# Selector specifying which fields to include in a partial response.
|
2291
|
+
# @param [String] quota_user
|
2292
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2293
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2294
|
+
# @param [Google::Apis::RequestOptions] options
|
2295
|
+
# Request-specific options
|
2296
|
+
#
|
2297
|
+
# @yield [result, err] Result & error if block supplied
|
2298
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
2299
|
+
# @yieldparam err [StandardError] error object if request failed
|
2300
|
+
#
|
2301
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
2302
|
+
#
|
2303
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2304
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2305
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2306
|
+
def enroll_vmware_cluster(parent, enroll_vmware_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2307
|
+
command = make_simple_command(:post, 'v1/{+parent}/vmwareClusters:enroll', options)
|
2308
|
+
command.request_representation = Google::Apis::GkeonpremV1::EnrollVmwareClusterRequest::Representation
|
2309
|
+
command.request_object = enroll_vmware_cluster_request_object
|
2310
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
2311
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
2312
|
+
command.params['parent'] = parent unless parent.nil?
|
2313
|
+
command.query['fields'] = fields unless fields.nil?
|
2314
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2315
|
+
execute_or_queue_command(command, &block)
|
2316
|
+
end
|
2317
|
+
|
2318
|
+
# Gets details of a single VMware Cluster.
|
2319
|
+
# @param [String] name
|
2320
|
+
# Required. Name of the VMware user cluster to be returned. Format: "projects/`
|
2321
|
+
# project`/locations/`location`/vmwareClusters/`vmware_cluster`"
|
2322
|
+
# @param [String] fields
|
2323
|
+
# Selector specifying which fields to include in a partial response.
|
2324
|
+
# @param [String] quota_user
|
2325
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2326
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2327
|
+
# @param [Google::Apis::RequestOptions] options
|
2328
|
+
# Request-specific options
|
2329
|
+
#
|
2330
|
+
# @yield [result, err] Result & error if block supplied
|
2331
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::VmwareCluster] parsed result object
|
2332
|
+
# @yieldparam err [StandardError] error object if request failed
|
2333
|
+
#
|
2334
|
+
# @return [Google::Apis::GkeonpremV1::VmwareCluster]
|
2335
|
+
#
|
2336
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2337
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2338
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2339
|
+
def get_project_location_vmware_cluster(name, fields: nil, quota_user: nil, options: nil, &block)
|
2340
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
2341
|
+
command.response_representation = Google::Apis::GkeonpremV1::VmwareCluster::Representation
|
2342
|
+
command.response_class = Google::Apis::GkeonpremV1::VmwareCluster
|
2343
|
+
command.params['name'] = name unless name.nil?
|
2344
|
+
command.query['fields'] = fields unless fields.nil?
|
2345
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2346
|
+
execute_or_queue_command(command, &block)
|
2347
|
+
end
|
2348
|
+
|
2349
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
2350
|
+
# resource exists and does not have a policy set.
|
2351
|
+
# @param [String] resource
|
2352
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
2353
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
2354
|
+
# appropriate value for this field.
|
2355
|
+
# @param [Fixnum] options_requested_policy_version
|
2356
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
2357
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
2358
|
+
# rejected. Requests for policies with any conditional role bindings must
|
2359
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
2360
|
+
# valid value or leave the field unset. The policy in the response might use the
|
2361
|
+
# policy version that you specified, or it might use a lower policy version. For
|
2362
|
+
# example, if you specify version 3, but the policy has no conditional role
|
2363
|
+
# bindings, the response uses version 1. To learn which resources support
|
2364
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
2365
|
+
# google.com/iam/help/conditions/resource-policies).
|
2366
|
+
# @param [String] fields
|
2367
|
+
# Selector specifying which fields to include in a partial response.
|
2368
|
+
# @param [String] quota_user
|
2369
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2370
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2371
|
+
# @param [Google::Apis::RequestOptions] options
|
2372
|
+
# Request-specific options
|
2373
|
+
#
|
2374
|
+
# @yield [result, err] Result & error if block supplied
|
2375
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Policy] parsed result object
|
2376
|
+
# @yieldparam err [StandardError] error object if request failed
|
2377
|
+
#
|
2378
|
+
# @return [Google::Apis::GkeonpremV1::Policy]
|
2379
|
+
#
|
2380
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2381
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2382
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2383
|
+
def get_project_location_vmware_cluster_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2384
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
2385
|
+
command.response_representation = Google::Apis::GkeonpremV1::Policy::Representation
|
2386
|
+
command.response_class = Google::Apis::GkeonpremV1::Policy
|
2387
|
+
command.params['resource'] = resource unless resource.nil?
|
2388
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
2389
|
+
command.query['fields'] = fields unless fields.nil?
|
2390
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2391
|
+
execute_or_queue_command(command, &block)
|
2392
|
+
end
|
2393
|
+
|
2394
|
+
# Lists VMware Clusters in a given project and location.
|
2395
|
+
# @param [String] parent
|
2396
|
+
# Required. The parent of the project and location where the clusters are listed
|
2397
|
+
# in. Format: "projects/`project`/locations/`location`"
|
2398
|
+
# @param [String] filter
|
2399
|
+
# A resource filtering expression following https://google.aip.dev/160. When non-
|
2400
|
+
# empty, only resource's whose attributes field matches the filter are returned.
|
2401
|
+
# @param [Fixnum] page_size
|
2402
|
+
# Requested page size. Server may return fewer items than requested. If
|
2403
|
+
# unspecified, at most 50 clusters will be returned. The maximum value is 1000;
|
2404
|
+
# values above 1000 will be coerced to 1000.
|
2405
|
+
# @param [String] page_token
|
2406
|
+
# A token identifying a page of results the server should return.
|
2407
|
+
# @param [String] view
|
2408
|
+
# View for VMware clusters. When `BASIC` is specified, only the cluster resource
|
2409
|
+
# name and admin cluster membership are returned. The default/unset value `
|
2410
|
+
# CLUSTER_VIEW_UNSPECIFIED` is the same as `FULL', which returns the complete
|
2411
|
+
# cluster configuration details.
|
2412
|
+
# @param [String] fields
|
2413
|
+
# Selector specifying which fields to include in a partial response.
|
2414
|
+
# @param [String] quota_user
|
2415
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2416
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2417
|
+
# @param [Google::Apis::RequestOptions] options
|
2418
|
+
# Request-specific options
|
2419
|
+
#
|
2420
|
+
# @yield [result, err] Result & error if block supplied
|
2421
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::ListVmwareClustersResponse] parsed result object
|
2422
|
+
# @yieldparam err [StandardError] error object if request failed
|
2423
|
+
#
|
2424
|
+
# @return [Google::Apis::GkeonpremV1::ListVmwareClustersResponse]
|
2425
|
+
#
|
2426
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2427
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2428
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2429
|
+
def list_project_location_vmware_clusters(parent, filter: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2430
|
+
command = make_simple_command(:get, 'v1/{+parent}/vmwareClusters', options)
|
2431
|
+
command.response_representation = Google::Apis::GkeonpremV1::ListVmwareClustersResponse::Representation
|
2432
|
+
command.response_class = Google::Apis::GkeonpremV1::ListVmwareClustersResponse
|
2433
|
+
command.params['parent'] = parent unless parent.nil?
|
2434
|
+
command.query['filter'] = filter unless filter.nil?
|
2435
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2436
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2437
|
+
command.query['view'] = view unless view.nil?
|
2438
|
+
command.query['fields'] = fields unless fields.nil?
|
2439
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2440
|
+
execute_or_queue_command(command, &block)
|
2441
|
+
end
|
2442
|
+
|
2443
|
+
# Updates the parameters of a single VMware cluster.
|
2444
|
+
# @param [String] name
|
2445
|
+
# Immutable. The VMware user cluster resource name.
|
2446
|
+
# @param [Google::Apis::GkeonpremV1::VmwareCluster] vmware_cluster_object
|
2447
|
+
# @param [String] update_mask
|
2448
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
2449
|
+
# VMwareCluster resource by the update. The fields specified in the update_mask
|
2450
|
+
# are relative to the resource, not the full request. A field will be
|
2451
|
+
# overwritten if it is in the mask. If the user does not provide a mask then all
|
2452
|
+
# populated fields in the VmwareCluster message will be updated. Empty fields
|
2453
|
+
# will be ignored unless a field mask is used.
|
2454
|
+
# @param [Boolean] validate_only
|
2455
|
+
# Validate the request without actually doing any updates.
|
2456
|
+
# @param [String] fields
|
2457
|
+
# Selector specifying which fields to include in a partial response.
|
2458
|
+
# @param [String] quota_user
|
2459
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2460
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2461
|
+
# @param [Google::Apis::RequestOptions] options
|
2462
|
+
# Request-specific options
|
2463
|
+
#
|
2464
|
+
# @yield [result, err] Result & error if block supplied
|
2465
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
2466
|
+
# @yieldparam err [StandardError] error object if request failed
|
2467
|
+
#
|
2468
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
2469
|
+
#
|
2470
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2471
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2472
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2473
|
+
def patch_project_location_vmware_cluster(name, vmware_cluster_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2474
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
2475
|
+
command.request_representation = Google::Apis::GkeonpremV1::VmwareCluster::Representation
|
2476
|
+
command.request_object = vmware_cluster_object
|
2477
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
2478
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
2479
|
+
command.params['name'] = name unless name.nil?
|
2480
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2481
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
2482
|
+
command.query['fields'] = fields unless fields.nil?
|
2483
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2484
|
+
execute_or_queue_command(command, &block)
|
2485
|
+
end
|
2486
|
+
|
2487
|
+
# Queries the VMware user cluster version config.
|
2488
|
+
# @param [String] parent
|
2489
|
+
# Required. The parent of the project and location to query for version config.
|
2490
|
+
# Format: "projects/`project`/locations/`location`"
|
2491
|
+
# @param [String] create_config_admin_cluster_membership
|
2492
|
+
# The admin cluster membership. This is the full resource name of the admin
|
2493
|
+
# cluster's fleet membership. Format: "projects/`project`/locations/`location`/
|
2494
|
+
# memberships/`membership`"
|
2495
|
+
# @param [String] create_config_admin_cluster_name
|
2496
|
+
# The admin cluster resource name. This is the full resource name of the admin
|
2497
|
+
# cluster resource. Format: "projects/`project`/locations/`location`/
|
2498
|
+
# vmwareAdminClusters/`vmware_admin_cluster`"
|
2499
|
+
# @param [String] upgrade_config_cluster_name
|
2500
|
+
# The user cluster resource name. This is the full resource name of the user
|
2501
|
+
# cluster resource. Format: "projects/`project`/locations/`location`/
|
2502
|
+
# vmwareClusters/`vmware_cluster`"
|
2503
|
+
# @param [String] fields
|
2504
|
+
# Selector specifying which fields to include in a partial response.
|
2505
|
+
# @param [String] quota_user
|
2506
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2507
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2508
|
+
# @param [Google::Apis::RequestOptions] options
|
2509
|
+
# Request-specific options
|
2510
|
+
#
|
2511
|
+
# @yield [result, err] Result & error if block supplied
|
2512
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::QueryVmwareVersionConfigResponse] parsed result object
|
2513
|
+
# @yieldparam err [StandardError] error object if request failed
|
2514
|
+
#
|
2515
|
+
# @return [Google::Apis::GkeonpremV1::QueryVmwareVersionConfigResponse]
|
2516
|
+
#
|
2517
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2518
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2519
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2520
|
+
def query_project_location_vmware_cluster_version_config(parent, create_config_admin_cluster_membership: nil, create_config_admin_cluster_name: nil, upgrade_config_cluster_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2521
|
+
command = make_simple_command(:post, 'v1/{+parent}/vmwareClusters:queryVersionConfig', options)
|
2522
|
+
command.response_representation = Google::Apis::GkeonpremV1::QueryVmwareVersionConfigResponse::Representation
|
2523
|
+
command.response_class = Google::Apis::GkeonpremV1::QueryVmwareVersionConfigResponse
|
2524
|
+
command.params['parent'] = parent unless parent.nil?
|
2525
|
+
command.query['createConfig.adminClusterMembership'] = create_config_admin_cluster_membership unless create_config_admin_cluster_membership.nil?
|
2526
|
+
command.query['createConfig.adminClusterName'] = create_config_admin_cluster_name unless create_config_admin_cluster_name.nil?
|
2527
|
+
command.query['upgradeConfig.clusterName'] = upgrade_config_cluster_name unless upgrade_config_cluster_name.nil?
|
2528
|
+
command.query['fields'] = fields unless fields.nil?
|
2529
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2530
|
+
execute_or_queue_command(command, &block)
|
2531
|
+
end
|
2532
|
+
|
2533
|
+
# Sets the access control policy on the specified resource. Replaces any
|
2534
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
2535
|
+
# PERMISSION_DENIED` errors.
|
2536
|
+
# @param [String] resource
|
2537
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
2538
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
2539
|
+
# appropriate value for this field.
|
2540
|
+
# @param [Google::Apis::GkeonpremV1::SetIamPolicyRequest] set_iam_policy_request_object
|
2541
|
+
# @param [String] fields
|
2542
|
+
# Selector specifying which fields to include in a partial response.
|
2543
|
+
# @param [String] quota_user
|
2544
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2545
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2546
|
+
# @param [Google::Apis::RequestOptions] options
|
2547
|
+
# Request-specific options
|
2548
|
+
#
|
2549
|
+
# @yield [result, err] Result & error if block supplied
|
2550
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Policy] parsed result object
|
2551
|
+
# @yieldparam err [StandardError] error object if request failed
|
2552
|
+
#
|
2553
|
+
# @return [Google::Apis::GkeonpremV1::Policy]
|
2554
|
+
#
|
2555
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2556
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2557
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2558
|
+
def set_vmware_cluster_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2559
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
2560
|
+
command.request_representation = Google::Apis::GkeonpremV1::SetIamPolicyRequest::Representation
|
2561
|
+
command.request_object = set_iam_policy_request_object
|
2562
|
+
command.response_representation = Google::Apis::GkeonpremV1::Policy::Representation
|
2563
|
+
command.response_class = Google::Apis::GkeonpremV1::Policy
|
2564
|
+
command.params['resource'] = resource unless resource.nil?
|
2565
|
+
command.query['fields'] = fields unless fields.nil?
|
2566
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2567
|
+
execute_or_queue_command(command, &block)
|
2568
|
+
end
|
2569
|
+
|
2570
|
+
# Returns permissions that a caller has on the specified resource. If the
|
2571
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
2572
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
2573
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
2574
|
+
# This operation may "fail open" without warning.
|
2575
|
+
# @param [String] resource
|
2576
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
2577
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
2578
|
+
# appropriate value for this field.
|
2579
|
+
# @param [Google::Apis::GkeonpremV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
2580
|
+
# @param [String] fields
|
2581
|
+
# Selector specifying which fields to include in a partial response.
|
2582
|
+
# @param [String] quota_user
|
2583
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2584
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2585
|
+
# @param [Google::Apis::RequestOptions] options
|
2586
|
+
# Request-specific options
|
2587
|
+
#
|
2588
|
+
# @yield [result, err] Result & error if block supplied
|
2589
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::TestIamPermissionsResponse] parsed result object
|
2590
|
+
# @yieldparam err [StandardError] error object if request failed
|
2591
|
+
#
|
2592
|
+
# @return [Google::Apis::GkeonpremV1::TestIamPermissionsResponse]
|
2593
|
+
#
|
2594
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2595
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2596
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2597
|
+
def test_vmware_cluster_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2598
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
2599
|
+
command.request_representation = Google::Apis::GkeonpremV1::TestIamPermissionsRequest::Representation
|
2600
|
+
command.request_object = test_iam_permissions_request_object
|
2601
|
+
command.response_representation = Google::Apis::GkeonpremV1::TestIamPermissionsResponse::Representation
|
2602
|
+
command.response_class = Google::Apis::GkeonpremV1::TestIamPermissionsResponse
|
2603
|
+
command.params['resource'] = resource unless resource.nil?
|
2604
|
+
command.query['fields'] = fields unless fields.nil?
|
2605
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2606
|
+
execute_or_queue_command(command, &block)
|
2607
|
+
end
|
2608
|
+
|
2609
|
+
# Unenrolls an existing VMware user cluster and its node pools from the Anthos
|
2610
|
+
# On-Prem API within a given project and location. Unenrollment removes the
|
2611
|
+
# Cloud reference to the cluster without modifying the underlying OnPrem
|
2612
|
+
# Resources. Clusters and node pools will continue to run; however, they will no
|
2613
|
+
# longer be accessible through the Anthos On-Prem API or UI.
|
2614
|
+
# @param [String] name
|
2615
|
+
# Required. Name of the VMware user cluster to be unenrolled. Format: "projects/`
|
2616
|
+
# project`/locations/`location`/vmwareClusters/`vmware_cluster`"
|
2617
|
+
# @param [Boolean] allow_missing
|
2618
|
+
# If set to true, and the VMware cluster is not found, the request will succeed
|
2619
|
+
# but no action will be taken on the server and return a completed LRO.
|
2620
|
+
# @param [String] etag
|
2621
|
+
# The current etag of the VMware Cluster. If an etag is provided and does not
|
2622
|
+
# match the current etag of the cluster, deletion will be blocked and an ABORTED
|
2623
|
+
# error will be returned.
|
2624
|
+
# @param [Boolean] force
|
2625
|
+
# This is required if the cluster has any associated node pools. When set, any
|
2626
|
+
# child node pools will also be unenrolled.
|
2627
|
+
# @param [Boolean] validate_only
|
2628
|
+
# Validate the request without actually doing any updates.
|
2629
|
+
# @param [String] fields
|
2630
|
+
# Selector specifying which fields to include in a partial response.
|
2631
|
+
# @param [String] quota_user
|
2632
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2633
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2634
|
+
# @param [Google::Apis::RequestOptions] options
|
2635
|
+
# Request-specific options
|
2636
|
+
#
|
2637
|
+
# @yield [result, err] Result & error if block supplied
|
2638
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
2639
|
+
# @yieldparam err [StandardError] error object if request failed
|
2640
|
+
#
|
2641
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
2642
|
+
#
|
2643
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2644
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2645
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2646
|
+
def unenroll_project_location_vmware_cluster(name, allow_missing: nil, etag: nil, force: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2647
|
+
command = make_simple_command(:delete, 'v1/{+name}:unenroll', options)
|
2648
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
2649
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
2650
|
+
command.params['name'] = name unless name.nil?
|
2651
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
2652
|
+
command.query['etag'] = etag unless etag.nil?
|
2653
|
+
command.query['force'] = force unless force.nil?
|
2654
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
2655
|
+
command.query['fields'] = fields unless fields.nil?
|
2656
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2657
|
+
execute_or_queue_command(command, &block)
|
2658
|
+
end
|
2659
|
+
|
2660
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
2661
|
+
# to poll the operation result at intervals as recommended by the API service.
|
2662
|
+
# @param [String] name
|
2663
|
+
# The name of the operation resource.
|
2664
|
+
# @param [String] fields
|
2665
|
+
# Selector specifying which fields to include in a partial response.
|
2666
|
+
# @param [String] quota_user
|
2667
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2668
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2669
|
+
# @param [Google::Apis::RequestOptions] options
|
2670
|
+
# Request-specific options
|
2671
|
+
#
|
2672
|
+
# @yield [result, err] Result & error if block supplied
|
2673
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
2674
|
+
# @yieldparam err [StandardError] error object if request failed
|
2675
|
+
#
|
2676
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
2677
|
+
#
|
2678
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2679
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2680
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2681
|
+
def get_project_location_vmware_cluster_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
2682
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
2683
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
2684
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
2685
|
+
command.params['name'] = name unless name.nil?
|
2686
|
+
command.query['fields'] = fields unless fields.nil?
|
2687
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2688
|
+
execute_or_queue_command(command, &block)
|
2689
|
+
end
|
2690
|
+
|
2691
|
+
# Lists operations that match the specified filter in the request. If the server
|
2692
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
2693
|
+
# @param [String] name
|
2694
|
+
# The name of the operation's parent resource.
|
2695
|
+
# @param [String] filter
|
2696
|
+
# The standard list filter.
|
2697
|
+
# @param [Fixnum] page_size
|
2698
|
+
# The standard list page size.
|
2699
|
+
# @param [String] page_token
|
2700
|
+
# The standard list page token.
|
2701
|
+
# @param [String] fields
|
2702
|
+
# Selector specifying which fields to include in a partial response.
|
2703
|
+
# @param [String] quota_user
|
2704
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2705
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2706
|
+
# @param [Google::Apis::RequestOptions] options
|
2707
|
+
# Request-specific options
|
2708
|
+
#
|
2709
|
+
# @yield [result, err] Result & error if block supplied
|
2710
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::ListOperationsResponse] parsed result object
|
2711
|
+
# @yieldparam err [StandardError] error object if request failed
|
2712
|
+
#
|
2713
|
+
# @return [Google::Apis::GkeonpremV1::ListOperationsResponse]
|
2714
|
+
#
|
2715
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2716
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2717
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2718
|
+
def list_project_location_vmware_cluster_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2719
|
+
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
2720
|
+
command.response_representation = Google::Apis::GkeonpremV1::ListOperationsResponse::Representation
|
2721
|
+
command.response_class = Google::Apis::GkeonpremV1::ListOperationsResponse
|
2722
|
+
command.params['name'] = name unless name.nil?
|
2723
|
+
command.query['filter'] = filter unless filter.nil?
|
2724
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2725
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2726
|
+
command.query['fields'] = fields unless fields.nil?
|
2727
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2728
|
+
execute_or_queue_command(command, &block)
|
2729
|
+
end
|
2730
|
+
|
2731
|
+
# Creates a new VMware node pool in a given project, location and VMWare cluster.
|
2732
|
+
# @param [String] parent
|
2733
|
+
# Required. The parent resource where this node pool will be created. projects/`
|
2734
|
+
# project`/locations/`location`/vmwareClusters/`cluster`
|
2735
|
+
# @param [Google::Apis::GkeonpremV1::VmwareNodePool] vmware_node_pool_object
|
2736
|
+
# @param [Boolean] validate_only
|
2737
|
+
# If set, only validate the request, but do not actually create the node pool.
|
2738
|
+
# @param [String] vmware_node_pool_id
|
2739
|
+
# The ID to use for the node pool, which will become the final component of the
|
2740
|
+
# node pool's resource name. This value must be up to 40 characters and follow
|
2741
|
+
# RFC-1123 (https://tools.ietf.org/html/rfc1123) format. The value must not be
|
2742
|
+
# permitted to be a UUID (or UUID-like: anything matching /^[0-9a-f]`8`(-[0-9a-f]
|
2743
|
+
# `4`)`3`-[0-9a-f]`12`$/i).
|
2744
|
+
# @param [String] fields
|
2745
|
+
# Selector specifying which fields to include in a partial response.
|
2746
|
+
# @param [String] quota_user
|
2747
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2748
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2749
|
+
# @param [Google::Apis::RequestOptions] options
|
2750
|
+
# Request-specific options
|
2751
|
+
#
|
2752
|
+
# @yield [result, err] Result & error if block supplied
|
2753
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
2754
|
+
# @yieldparam err [StandardError] error object if request failed
|
2755
|
+
#
|
2756
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
2757
|
+
#
|
2758
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2759
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2760
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2761
|
+
def create_project_location_vmware_cluster_vmware_node_pool(parent, vmware_node_pool_object = nil, validate_only: nil, vmware_node_pool_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2762
|
+
command = make_simple_command(:post, 'v1/{+parent}/vmwareNodePools', options)
|
2763
|
+
command.request_representation = Google::Apis::GkeonpremV1::VmwareNodePool::Representation
|
2764
|
+
command.request_object = vmware_node_pool_object
|
2765
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
2766
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
2767
|
+
command.params['parent'] = parent unless parent.nil?
|
2768
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
2769
|
+
command.query['vmwareNodePoolId'] = vmware_node_pool_id unless vmware_node_pool_id.nil?
|
2770
|
+
command.query['fields'] = fields unless fields.nil?
|
2771
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2772
|
+
execute_or_queue_command(command, &block)
|
2773
|
+
end
|
2774
|
+
|
2775
|
+
# Deletes a single VMware node pool.
|
2776
|
+
# @param [String] name
|
2777
|
+
# Required. The name of the node pool to delete. Format: projects/`project`/
|
2778
|
+
# locations/`location`/vmwareClusters/`cluster`/vmwareNodePools/`nodepool`
|
2779
|
+
# @param [Boolean] allow_missing
|
2780
|
+
# If set to true, and the VMware node pool is not found, the request will
|
2781
|
+
# succeed but no action will be taken on the server and return a completed LRO.
|
2782
|
+
# @param [String] etag
|
2783
|
+
# The current etag of the VmwareNodePool. If an etag is provided and does not
|
2784
|
+
# match the current etag of the node pool, deletion will be blocked and an
|
2785
|
+
# ABORTED error will be returned.
|
2786
|
+
# @param [Boolean] ignore_errors
|
2787
|
+
# If set to true, the deletion of a VMware node pool resource will succeed even
|
2788
|
+
# if errors occur during deletion. This parameter can be used when you want to
|
2789
|
+
# delete GCP's node pool resource and you've already deleted the on-prem admin
|
2790
|
+
# cluster that hosted your node pool. WARNING: Using this parameter when your
|
2791
|
+
# user cluster still exists may result in a deleted GCP node pool but an
|
2792
|
+
# existing on-prem node pool.
|
2793
|
+
# @param [Boolean] validate_only
|
2794
|
+
# If set, only validate the request, but do not actually delete the node pool.
|
2795
|
+
# @param [String] fields
|
2796
|
+
# Selector specifying which fields to include in a partial response.
|
2797
|
+
# @param [String] quota_user
|
2798
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2799
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2800
|
+
# @param [Google::Apis::RequestOptions] options
|
2801
|
+
# Request-specific options
|
2802
|
+
#
|
2803
|
+
# @yield [result, err] Result & error if block supplied
|
2804
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
2805
|
+
# @yieldparam err [StandardError] error object if request failed
|
2806
|
+
#
|
2807
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
2808
|
+
#
|
2809
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2810
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2811
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2812
|
+
def delete_project_location_vmware_cluster_vmware_node_pool(name, allow_missing: nil, etag: nil, ignore_errors: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2813
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
2814
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
2815
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
2816
|
+
command.params['name'] = name unless name.nil?
|
2817
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
2818
|
+
command.query['etag'] = etag unless etag.nil?
|
2819
|
+
command.query['ignoreErrors'] = ignore_errors unless ignore_errors.nil?
|
2820
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
2821
|
+
command.query['fields'] = fields unless fields.nil?
|
2822
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2823
|
+
execute_or_queue_command(command, &block)
|
2824
|
+
end
|
2825
|
+
|
2826
|
+
# Enrolls a VMware node pool to Anthos On-Prem API
|
2827
|
+
# @param [String] parent
|
2828
|
+
# Required. The parent resource where the node pool is enrolled in.
|
2829
|
+
# @param [Google::Apis::GkeonpremV1::EnrollVmwareNodePoolRequest] enroll_vmware_node_pool_request_object
|
2830
|
+
# @param [String] fields
|
2831
|
+
# Selector specifying which fields to include in a partial response.
|
2832
|
+
# @param [String] quota_user
|
2833
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2834
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2835
|
+
# @param [Google::Apis::RequestOptions] options
|
2836
|
+
# Request-specific options
|
2837
|
+
#
|
2838
|
+
# @yield [result, err] Result & error if block supplied
|
2839
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
2840
|
+
# @yieldparam err [StandardError] error object if request failed
|
2841
|
+
#
|
2842
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
2843
|
+
#
|
2844
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2845
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2846
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2847
|
+
def enroll_vmware_node_pool(parent, enroll_vmware_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2848
|
+
command = make_simple_command(:post, 'v1/{+parent}/vmwareNodePools:enroll', options)
|
2849
|
+
command.request_representation = Google::Apis::GkeonpremV1::EnrollVmwareNodePoolRequest::Representation
|
2850
|
+
command.request_object = enroll_vmware_node_pool_request_object
|
2851
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
2852
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
2853
|
+
command.params['parent'] = parent unless parent.nil?
|
2854
|
+
command.query['fields'] = fields unless fields.nil?
|
2855
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2856
|
+
execute_or_queue_command(command, &block)
|
2857
|
+
end
|
2858
|
+
|
2859
|
+
# Gets details of a single VMware node pool.
|
2860
|
+
# @param [String] name
|
2861
|
+
# Required. The name of the node pool to retrieve. projects/`project`/locations/`
|
2862
|
+
# location`/vmwareClusters/`cluster`/vmwareNodePools/`nodepool`
|
2863
|
+
# @param [String] fields
|
2864
|
+
# Selector specifying which fields to include in a partial response.
|
2865
|
+
# @param [String] quota_user
|
2866
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2867
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2868
|
+
# @param [Google::Apis::RequestOptions] options
|
2869
|
+
# Request-specific options
|
2870
|
+
#
|
2871
|
+
# @yield [result, err] Result & error if block supplied
|
2872
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::VmwareNodePool] parsed result object
|
2873
|
+
# @yieldparam err [StandardError] error object if request failed
|
2874
|
+
#
|
2875
|
+
# @return [Google::Apis::GkeonpremV1::VmwareNodePool]
|
2876
|
+
#
|
2877
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2878
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2879
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2880
|
+
def get_project_location_vmware_cluster_vmware_node_pool(name, fields: nil, quota_user: nil, options: nil, &block)
|
2881
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
2882
|
+
command.response_representation = Google::Apis::GkeonpremV1::VmwareNodePool::Representation
|
2883
|
+
command.response_class = Google::Apis::GkeonpremV1::VmwareNodePool
|
2884
|
+
command.params['name'] = name unless name.nil?
|
2885
|
+
command.query['fields'] = fields unless fields.nil?
|
2886
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2887
|
+
execute_or_queue_command(command, &block)
|
2888
|
+
end
|
2889
|
+
|
2890
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
2891
|
+
# resource exists and does not have a policy set.
|
2892
|
+
# @param [String] resource
|
2893
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
2894
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
2895
|
+
# appropriate value for this field.
|
2896
|
+
# @param [Fixnum] options_requested_policy_version
|
2897
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
2898
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
2899
|
+
# rejected. Requests for policies with any conditional role bindings must
|
2900
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
2901
|
+
# valid value or leave the field unset. The policy in the response might use the
|
2902
|
+
# policy version that you specified, or it might use a lower policy version. For
|
2903
|
+
# example, if you specify version 3, but the policy has no conditional role
|
2904
|
+
# bindings, the response uses version 1. To learn which resources support
|
2905
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
2906
|
+
# google.com/iam/help/conditions/resource-policies).
|
2907
|
+
# @param [String] fields
|
2908
|
+
# Selector specifying which fields to include in a partial response.
|
2909
|
+
# @param [String] quota_user
|
2910
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2911
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2912
|
+
# @param [Google::Apis::RequestOptions] options
|
2913
|
+
# Request-specific options
|
2914
|
+
#
|
2915
|
+
# @yield [result, err] Result & error if block supplied
|
2916
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Policy] parsed result object
|
2917
|
+
# @yieldparam err [StandardError] error object if request failed
|
2918
|
+
#
|
2919
|
+
# @return [Google::Apis::GkeonpremV1::Policy]
|
2920
|
+
#
|
2921
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2922
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2923
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2924
|
+
def get_project_location_vmware_cluster_vmware_node_pool_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2925
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
2926
|
+
command.response_representation = Google::Apis::GkeonpremV1::Policy::Representation
|
2927
|
+
command.response_class = Google::Apis::GkeonpremV1::Policy
|
2928
|
+
command.params['resource'] = resource unless resource.nil?
|
2929
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
2930
|
+
command.query['fields'] = fields unless fields.nil?
|
2931
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2932
|
+
execute_or_queue_command(command, &block)
|
2933
|
+
end
|
2934
|
+
|
2935
|
+
# Lists VMware node pools in a given project, location and VMWare cluster.
|
2936
|
+
# @param [String] parent
|
2937
|
+
# Required. The parent, which owns this collection of node pools. Format:
|
2938
|
+
# projects/`project`/locations/`location`/vmwareClusters/`vmwareCluster`
|
2939
|
+
# @param [Fixnum] page_size
|
2940
|
+
# The maximum number of node pools to return. The service may return fewer than
|
2941
|
+
# this value. If unspecified, at most 50 node pools will be returned. The
|
2942
|
+
# maximum value is 1000; values above 1000 will be coerced to 1000.
|
2943
|
+
# @param [String] page_token
|
2944
|
+
# A page token, received from a previous `ListVmwareNodePools` call. Provide
|
2945
|
+
# this to retrieve the subsequent page. When paginating, all other parameters
|
2946
|
+
# provided to `ListVmwareNodePools` must match the call that provided the page
|
2947
|
+
# token.
|
2948
|
+
# @param [String] fields
|
2949
|
+
# Selector specifying which fields to include in a partial response.
|
2950
|
+
# @param [String] quota_user
|
2951
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2952
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2953
|
+
# @param [Google::Apis::RequestOptions] options
|
2954
|
+
# Request-specific options
|
2955
|
+
#
|
2956
|
+
# @yield [result, err] Result & error if block supplied
|
2957
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::ListVmwareNodePoolsResponse] parsed result object
|
2958
|
+
# @yieldparam err [StandardError] error object if request failed
|
2959
|
+
#
|
2960
|
+
# @return [Google::Apis::GkeonpremV1::ListVmwareNodePoolsResponse]
|
2961
|
+
#
|
2962
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2963
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2964
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2965
|
+
def list_project_location_vmware_cluster_vmware_node_pools(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2966
|
+
command = make_simple_command(:get, 'v1/{+parent}/vmwareNodePools', options)
|
2967
|
+
command.response_representation = Google::Apis::GkeonpremV1::ListVmwareNodePoolsResponse::Representation
|
2968
|
+
command.response_class = Google::Apis::GkeonpremV1::ListVmwareNodePoolsResponse
|
2969
|
+
command.params['parent'] = parent unless parent.nil?
|
2970
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2971
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2972
|
+
command.query['fields'] = fields unless fields.nil?
|
2973
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2974
|
+
execute_or_queue_command(command, &block)
|
2975
|
+
end
|
2976
|
+
|
2977
|
+
# Updates the parameters of a single VMware node pool.
|
2978
|
+
# @param [String] name
|
2979
|
+
# Immutable. The resource name of this node pool.
|
2980
|
+
# @param [Google::Apis::GkeonpremV1::VmwareNodePool] vmware_node_pool_object
|
2981
|
+
# @param [String] update_mask
|
2982
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
2983
|
+
# VMwareNodePool resource by the update. The fields specified in the update_mask
|
2984
|
+
# are relative to the resource, not the full request. A field will be
|
2985
|
+
# overwritten if it is in the mask. If the user does not provide a mask then all
|
2986
|
+
# populated fields in the VMwareNodePool message will be updated. Empty fields
|
2987
|
+
# will be ignored unless a field mask is used.
|
2988
|
+
# @param [Boolean] validate_only
|
2989
|
+
# Validate the request without actually doing any updates.
|
2990
|
+
# @param [String] fields
|
2991
|
+
# Selector specifying which fields to include in a partial response.
|
2992
|
+
# @param [String] quota_user
|
2993
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2994
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2995
|
+
# @param [Google::Apis::RequestOptions] options
|
2996
|
+
# Request-specific options
|
2997
|
+
#
|
2998
|
+
# @yield [result, err] Result & error if block supplied
|
2999
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
3000
|
+
# @yieldparam err [StandardError] error object if request failed
|
3001
|
+
#
|
3002
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
3003
|
+
#
|
3004
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3005
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3006
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3007
|
+
def patch_project_location_vmware_cluster_vmware_node_pool(name, vmware_node_pool_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3008
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
3009
|
+
command.request_representation = Google::Apis::GkeonpremV1::VmwareNodePool::Representation
|
3010
|
+
command.request_object = vmware_node_pool_object
|
3011
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
3012
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
3013
|
+
command.params['name'] = name unless name.nil?
|
3014
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
3015
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
3016
|
+
command.query['fields'] = fields unless fields.nil?
|
3017
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3018
|
+
execute_or_queue_command(command, &block)
|
3019
|
+
end
|
3020
|
+
|
3021
|
+
# Sets the access control policy on the specified resource. Replaces any
|
3022
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
3023
|
+
# PERMISSION_DENIED` errors.
|
3024
|
+
# @param [String] resource
|
3025
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
3026
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
3027
|
+
# appropriate value for this field.
|
3028
|
+
# @param [Google::Apis::GkeonpremV1::SetIamPolicyRequest] set_iam_policy_request_object
|
3029
|
+
# @param [String] fields
|
3030
|
+
# Selector specifying which fields to include in a partial response.
|
3031
|
+
# @param [String] quota_user
|
3032
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3033
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3034
|
+
# @param [Google::Apis::RequestOptions] options
|
3035
|
+
# Request-specific options
|
3036
|
+
#
|
3037
|
+
# @yield [result, err] Result & error if block supplied
|
3038
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Policy] parsed result object
|
3039
|
+
# @yieldparam err [StandardError] error object if request failed
|
3040
|
+
#
|
3041
|
+
# @return [Google::Apis::GkeonpremV1::Policy]
|
3042
|
+
#
|
3043
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3044
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3045
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3046
|
+
def set_vmware_node_pool_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3047
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
3048
|
+
command.request_representation = Google::Apis::GkeonpremV1::SetIamPolicyRequest::Representation
|
3049
|
+
command.request_object = set_iam_policy_request_object
|
3050
|
+
command.response_representation = Google::Apis::GkeonpremV1::Policy::Representation
|
3051
|
+
command.response_class = Google::Apis::GkeonpremV1::Policy
|
3052
|
+
command.params['resource'] = resource unless resource.nil?
|
3053
|
+
command.query['fields'] = fields unless fields.nil?
|
3054
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3055
|
+
execute_or_queue_command(command, &block)
|
3056
|
+
end
|
3057
|
+
|
3058
|
+
# Returns permissions that a caller has on the specified resource. If the
|
3059
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
3060
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
3061
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
3062
|
+
# This operation may "fail open" without warning.
|
3063
|
+
# @param [String] resource
|
3064
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
3065
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
3066
|
+
# appropriate value for this field.
|
3067
|
+
# @param [Google::Apis::GkeonpremV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
3068
|
+
# @param [String] fields
|
3069
|
+
# Selector specifying which fields to include in a partial response.
|
3070
|
+
# @param [String] quota_user
|
3071
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3072
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3073
|
+
# @param [Google::Apis::RequestOptions] options
|
3074
|
+
# Request-specific options
|
3075
|
+
#
|
3076
|
+
# @yield [result, err] Result & error if block supplied
|
3077
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::TestIamPermissionsResponse] parsed result object
|
3078
|
+
# @yieldparam err [StandardError] error object if request failed
|
3079
|
+
#
|
3080
|
+
# @return [Google::Apis::GkeonpremV1::TestIamPermissionsResponse]
|
3081
|
+
#
|
3082
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3083
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3084
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3085
|
+
def test_vmware_node_pool_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3086
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
3087
|
+
command.request_representation = Google::Apis::GkeonpremV1::TestIamPermissionsRequest::Representation
|
3088
|
+
command.request_object = test_iam_permissions_request_object
|
3089
|
+
command.response_representation = Google::Apis::GkeonpremV1::TestIamPermissionsResponse::Representation
|
3090
|
+
command.response_class = Google::Apis::GkeonpremV1::TestIamPermissionsResponse
|
3091
|
+
command.params['resource'] = resource unless resource.nil?
|
3092
|
+
command.query['fields'] = fields unless fields.nil?
|
3093
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3094
|
+
execute_or_queue_command(command, &block)
|
3095
|
+
end
|
3096
|
+
|
3097
|
+
# Unenrolls a VMware node pool to Anthos On-Prem API
|
3098
|
+
# @param [String] name
|
3099
|
+
# Required. The name of the node pool to unenroll. Format: projects/`project`/
|
3100
|
+
# locations/`location`/vmwareClusters/`cluster`/vmwareNodePools/`nodepool`
|
3101
|
+
# @param [String] etag
|
3102
|
+
# The current etag of the VMware node pool. If an etag is provided and does not
|
3103
|
+
# match the current etag of node pool, deletion will be blocked and an ABORTED
|
3104
|
+
# error will be returned.
|
3105
|
+
# @param [Boolean] validate_only
|
3106
|
+
# If set, only validate the request, but do not actually unenroll the node pool.
|
3107
|
+
# @param [String] fields
|
3108
|
+
# Selector specifying which fields to include in a partial response.
|
3109
|
+
# @param [String] quota_user
|
3110
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3111
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3112
|
+
# @param [Google::Apis::RequestOptions] options
|
3113
|
+
# Request-specific options
|
3114
|
+
#
|
3115
|
+
# @yield [result, err] Result & error if block supplied
|
3116
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
3117
|
+
# @yieldparam err [StandardError] error object if request failed
|
3118
|
+
#
|
3119
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
3120
|
+
#
|
3121
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3122
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3123
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3124
|
+
def unenroll_project_location_vmware_cluster_vmware_node_pool(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3125
|
+
command = make_simple_command(:delete, 'v1/{+name}:unenroll', options)
|
3126
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
3127
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
3128
|
+
command.params['name'] = name unless name.nil?
|
3129
|
+
command.query['etag'] = etag unless etag.nil?
|
3130
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
3131
|
+
command.query['fields'] = fields unless fields.nil?
|
3132
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3133
|
+
execute_or_queue_command(command, &block)
|
3134
|
+
end
|
3135
|
+
|
3136
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
3137
|
+
# to poll the operation result at intervals as recommended by the API service.
|
3138
|
+
# @param [String] name
|
3139
|
+
# The name of the operation resource.
|
3140
|
+
# @param [String] fields
|
3141
|
+
# Selector specifying which fields to include in a partial response.
|
3142
|
+
# @param [String] quota_user
|
3143
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3144
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3145
|
+
# @param [Google::Apis::RequestOptions] options
|
3146
|
+
# Request-specific options
|
3147
|
+
#
|
3148
|
+
# @yield [result, err] Result & error if block supplied
|
3149
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
|
3150
|
+
# @yieldparam err [StandardError] error object if request failed
|
3151
|
+
#
|
3152
|
+
# @return [Google::Apis::GkeonpremV1::Operation]
|
3153
|
+
#
|
3154
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3155
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3156
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3157
|
+
def get_project_location_vmware_cluster_vmware_node_pool_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
3158
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
3159
|
+
command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
|
3160
|
+
command.response_class = Google::Apis::GkeonpremV1::Operation
|
3161
|
+
command.params['name'] = name unless name.nil?
|
3162
|
+
command.query['fields'] = fields unless fields.nil?
|
3163
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3164
|
+
execute_or_queue_command(command, &block)
|
3165
|
+
end
|
3166
|
+
|
3167
|
+
# Lists operations that match the specified filter in the request. If the server
|
3168
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
3169
|
+
# @param [String] name
|
3170
|
+
# The name of the operation's parent resource.
|
3171
|
+
# @param [String] filter
|
3172
|
+
# The standard list filter.
|
3173
|
+
# @param [Fixnum] page_size
|
3174
|
+
# The standard list page size.
|
3175
|
+
# @param [String] page_token
|
3176
|
+
# The standard list page token.
|
3177
|
+
# @param [String] fields
|
3178
|
+
# Selector specifying which fields to include in a partial response.
|
3179
|
+
# @param [String] quota_user
|
3180
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3181
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3182
|
+
# @param [Google::Apis::RequestOptions] options
|
3183
|
+
# Request-specific options
|
3184
|
+
#
|
3185
|
+
# @yield [result, err] Result & error if block supplied
|
3186
|
+
# @yieldparam result [Google::Apis::GkeonpremV1::ListOperationsResponse] parsed result object
|
3187
|
+
# @yieldparam err [StandardError] error object if request failed
|
3188
|
+
#
|
3189
|
+
# @return [Google::Apis::GkeonpremV1::ListOperationsResponse]
|
3190
|
+
#
|
3191
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3192
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3193
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3194
|
+
def list_project_location_vmware_cluster_vmware_node_pool_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3195
|
+
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
3196
|
+
command.response_representation = Google::Apis::GkeonpremV1::ListOperationsResponse::Representation
|
3197
|
+
command.response_class = Google::Apis::GkeonpremV1::ListOperationsResponse
|
3198
|
+
command.params['name'] = name unless name.nil?
|
3199
|
+
command.query['filter'] = filter unless filter.nil?
|
3200
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
3201
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
3202
|
+
command.query['fields'] = fields unless fields.nil?
|
3203
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3204
|
+
execute_or_queue_command(command, &block)
|
3205
|
+
end
|
3206
|
+
|
3207
|
+
protected
|
3208
|
+
|
3209
|
+
def apply_command_defaults(command)
|
3210
|
+
command.query['key'] = key unless key.nil?
|
3211
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3212
|
+
end
|
3213
|
+
end
|
3214
|
+
end
|
3215
|
+
end
|
3216
|
+
end
|