google-apis-gkehub_v1 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -122,6 +122,132 @@ module Google
122
122
  execute_or_queue_command(command, &block)
123
123
  end
124
124
 
125
+ # Adds a new Feature.
126
+ # @param [String] parent
127
+ # The parent (project and location) where the Feature will be created. Specified
128
+ # in the format `projects/*/locations/*`.
129
+ # @param [Google::Apis::GkehubV1::Feature] feature_object
130
+ # @param [String] feature_id
131
+ # The ID of the feature to create.
132
+ # @param [String] request_id
133
+ # Optional. A request ID to identify requests. Specify a unique request ID so
134
+ # that if you must retry your request, the server will know to ignore the
135
+ # request if it has already been completed. The server will guarantee that for
136
+ # at least 60 minutes after the first request. For example, consider a situation
137
+ # where you make an initial request and the request times out. If you make the
138
+ # request again with the same request ID, the server can check if original
139
+ # operation with the same request ID was received, and if so, will ignore the
140
+ # second request. This prevents clients from accidentally creating duplicate
141
+ # commitments. The request ID must be a valid UUID with the exception that zero
142
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
143
+ # @param [String] fields
144
+ # Selector specifying which fields to include in a partial response.
145
+ # @param [String] quota_user
146
+ # Available to use for quota purposes for server-side applications. Can be any
147
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
148
+ # @param [Google::Apis::RequestOptions] options
149
+ # Request-specific options
150
+ #
151
+ # @yield [result, err] Result & error if block supplied
152
+ # @yieldparam result [Google::Apis::GkehubV1::Operation] parsed result object
153
+ # @yieldparam err [StandardError] error object if request failed
154
+ #
155
+ # @return [Google::Apis::GkehubV1::Operation]
156
+ #
157
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
158
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
159
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
160
+ def create_project_location_feature(parent, feature_object = nil, feature_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
161
+ command = make_simple_command(:post, 'v1/{+parent}/features', options)
162
+ command.request_representation = Google::Apis::GkehubV1::Feature::Representation
163
+ command.request_object = feature_object
164
+ command.response_representation = Google::Apis::GkehubV1::Operation::Representation
165
+ command.response_class = Google::Apis::GkehubV1::Operation
166
+ command.params['parent'] = parent unless parent.nil?
167
+ command.query['featureId'] = feature_id unless feature_id.nil?
168
+ command.query['requestId'] = request_id unless request_id.nil?
169
+ command.query['fields'] = fields unless fields.nil?
170
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
171
+ execute_or_queue_command(command, &block)
172
+ end
173
+
174
+ # Removes a Feature.
175
+ # @param [String] name
176
+ # The Feature resource name in the format `projects/*/locations/*/features/*`.
177
+ # @param [Boolean] force
178
+ # If set to true, the delete will ignore any outstanding resources for this
179
+ # Feature (that is, `FeatureState.has_resources` is set to true). These
180
+ # resources will NOT be cleaned up or modified in any way.
181
+ # @param [String] request_id
182
+ # Optional. A request ID to identify requests. Specify a unique request ID so
183
+ # that if you must retry your request, the server will know to ignore the
184
+ # request if it has already been completed. The server will guarantee that for
185
+ # at least 60 minutes after the first request. For example, consider a situation
186
+ # where you make an initial request and the request times out. If you make the
187
+ # request again with the same request ID, the server can check if original
188
+ # operation with the same request ID was received, and if so, will ignore the
189
+ # second request. This prevents clients from accidentally creating duplicate
190
+ # commitments. The request ID must be a valid UUID with the exception that zero
191
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
192
+ # @param [String] fields
193
+ # Selector specifying which fields to include in a partial response.
194
+ # @param [String] quota_user
195
+ # Available to use for quota purposes for server-side applications. Can be any
196
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
197
+ # @param [Google::Apis::RequestOptions] options
198
+ # Request-specific options
199
+ #
200
+ # @yield [result, err] Result & error if block supplied
201
+ # @yieldparam result [Google::Apis::GkehubV1::Operation] parsed result object
202
+ # @yieldparam err [StandardError] error object if request failed
203
+ #
204
+ # @return [Google::Apis::GkehubV1::Operation]
205
+ #
206
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
207
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
208
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
209
+ def delete_project_location_feature(name, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
210
+ command = make_simple_command(:delete, 'v1/{+name}', options)
211
+ command.response_representation = Google::Apis::GkehubV1::Operation::Representation
212
+ command.response_class = Google::Apis::GkehubV1::Operation
213
+ command.params['name'] = name unless name.nil?
214
+ command.query['force'] = force unless force.nil?
215
+ command.query['requestId'] = request_id unless request_id.nil?
216
+ command.query['fields'] = fields unless fields.nil?
217
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
218
+ execute_or_queue_command(command, &block)
219
+ end
220
+
221
+ # Gets details of a single Feature.
222
+ # @param [String] name
223
+ # The Feature resource name in the format `projects/*/locations/*/features/*`
224
+ # @param [String] fields
225
+ # Selector specifying which fields to include in a partial response.
226
+ # @param [String] quota_user
227
+ # Available to use for quota purposes for server-side applications. Can be any
228
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
229
+ # @param [Google::Apis::RequestOptions] options
230
+ # Request-specific options
231
+ #
232
+ # @yield [result, err] Result & error if block supplied
233
+ # @yieldparam result [Google::Apis::GkehubV1::Feature] parsed result object
234
+ # @yieldparam err [StandardError] error object if request failed
235
+ #
236
+ # @return [Google::Apis::GkehubV1::Feature]
237
+ #
238
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
239
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
240
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
241
+ def get_project_location_feature(name, fields: nil, quota_user: nil, options: nil, &block)
242
+ command = make_simple_command(:get, 'v1/{+name}', options)
243
+ command.response_representation = Google::Apis::GkehubV1::Feature::Representation
244
+ command.response_class = Google::Apis::GkehubV1::Feature
245
+ command.params['name'] = name unless name.nil?
246
+ command.query['fields'] = fields unless fields.nil?
247
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
248
+ execute_or_queue_command(command, &block)
249
+ end
250
+
125
251
  # Gets the access control policy for a resource. Returns an empty policy if the
126
252
  # resource exists and does not have a policy set.
127
253
  # @param [String] resource
@@ -163,6 +289,105 @@ module Google
163
289
  execute_or_queue_command(command, &block)
164
290
  end
165
291
 
292
+ # Lists Features in a given project and location.
293
+ # @param [String] parent
294
+ # The parent (project and location) where the Features will be listed. Specified
295
+ # in the format `projects/*/locations/*`.
296
+ # @param [String] filter
297
+ # Lists Features that match the filter expression, following the syntax outlined
298
+ # in https://google.aip.dev/160. Examples: - Feature with the name "servicemesh"
299
+ # in project "foo-proj": name = "projects/foo-proj/locations/global/features/
300
+ # servicemesh" - Features that have a label called `foo`: labels.foo:* -
301
+ # Features that have a label called `foo` whose value is `bar`: labels.foo = bar
302
+ # @param [String] order_by
303
+ # One or more fields to compare and use to sort the output. See https://google.
304
+ # aip.dev/132#ordering.
305
+ # @param [Fixnum] page_size
306
+ # When requesting a 'page' of resources, `page_size` specifies number of
307
+ # resources to return. If unspecified or set to 0, all resources will be
308
+ # returned.
309
+ # @param [String] page_token
310
+ # Token returned by previous call to `ListFeatures` which specifies the position
311
+ # in the list from where to continue listing the resources.
312
+ # @param [String] fields
313
+ # Selector specifying which fields to include in a partial response.
314
+ # @param [String] quota_user
315
+ # Available to use for quota purposes for server-side applications. Can be any
316
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
317
+ # @param [Google::Apis::RequestOptions] options
318
+ # Request-specific options
319
+ #
320
+ # @yield [result, err] Result & error if block supplied
321
+ # @yieldparam result [Google::Apis::GkehubV1::ListFeaturesResponse] parsed result object
322
+ # @yieldparam err [StandardError] error object if request failed
323
+ #
324
+ # @return [Google::Apis::GkehubV1::ListFeaturesResponse]
325
+ #
326
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
327
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
328
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
329
+ def list_project_location_features(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
330
+ command = make_simple_command(:get, 'v1/{+parent}/features', options)
331
+ command.response_representation = Google::Apis::GkehubV1::ListFeaturesResponse::Representation
332
+ command.response_class = Google::Apis::GkehubV1::ListFeaturesResponse
333
+ command.params['parent'] = parent unless parent.nil?
334
+ command.query['filter'] = filter unless filter.nil?
335
+ command.query['orderBy'] = order_by unless order_by.nil?
336
+ command.query['pageSize'] = page_size unless page_size.nil?
337
+ command.query['pageToken'] = page_token unless page_token.nil?
338
+ command.query['fields'] = fields unless fields.nil?
339
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
340
+ execute_or_queue_command(command, &block)
341
+ end
342
+
343
+ # Updates an existing Feature.
344
+ # @param [String] name
345
+ # The Feature resource name in the format `projects/*/locations/*/features/*`.
346
+ # @param [Google::Apis::GkehubV1::Feature] feature_object
347
+ # @param [String] request_id
348
+ # Optional. A request ID to identify requests. Specify a unique request ID so
349
+ # that if you must retry your request, the server will know to ignore the
350
+ # request if it has already been completed. The server will guarantee that for
351
+ # at least 60 minutes after the first request. For example, consider a situation
352
+ # where you make an initial request and the request times out. If you make the
353
+ # request again with the same request ID, the server can check if original
354
+ # operation with the same request ID was received, and if so, will ignore the
355
+ # second request. This prevents clients from accidentally creating duplicate
356
+ # commitments. The request ID must be a valid UUID with the exception that zero
357
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
358
+ # @param [String] update_mask
359
+ # Mask of fields to update.
360
+ # @param [String] fields
361
+ # Selector specifying which fields to include in a partial response.
362
+ # @param [String] quota_user
363
+ # Available to use for quota purposes for server-side applications. Can be any
364
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
365
+ # @param [Google::Apis::RequestOptions] options
366
+ # Request-specific options
367
+ #
368
+ # @yield [result, err] Result & error if block supplied
369
+ # @yieldparam result [Google::Apis::GkehubV1::Operation] parsed result object
370
+ # @yieldparam err [StandardError] error object if request failed
371
+ #
372
+ # @return [Google::Apis::GkehubV1::Operation]
373
+ #
374
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
375
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
376
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
377
+ def patch_project_location_feature(name, feature_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
378
+ command = make_simple_command(:patch, 'v1/{+name}', options)
379
+ command.request_representation = Google::Apis::GkehubV1::Feature::Representation
380
+ command.request_object = feature_object
381
+ command.response_representation = Google::Apis::GkehubV1::Operation::Representation
382
+ command.response_class = Google::Apis::GkehubV1::Operation
383
+ command.params['name'] = name unless name.nil?
384
+ command.query['requestId'] = request_id unless request_id.nil?
385
+ command.query['updateMask'] = update_mask unless update_mask.nil?
386
+ command.query['fields'] = fields unless fields.nil?
387
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
388
+ execute_or_queue_command(command, &block)
389
+ end
390
+
166
391
  # Sets the access control policy on the specified resource. Replaces any
167
392
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
168
393
  # PERMISSION_DENIED` errors.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-gkehub_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-31 00:00:00.000000000 Z
11
+ date: 2021-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-gkehub_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1/v0.4.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1/v0.5.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-gkehub_v1
57
57
  post_install_message:
58
58
  rdoc_options: []