google-apis-gkehub_v1beta 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -237,6 +237,234 @@ module Google
237
237
  execute_or_queue_command(command, &block)
238
238
  end
239
239
 
240
+ # Adds a new Feature.
241
+ # @param [String] parent
242
+ # The parent (project and location) where the Feature will be created. Specified
243
+ # in the format `projects/*/locations/global`.
244
+ # @param [Google::Apis::GkehubV1beta::Feature] feature_object
245
+ # @param [String] feature_id
246
+ # The ID of the feature to create.
247
+ # @param [String] request_id
248
+ # Optional. A request ID to identify requests. Specify a unique request ID so
249
+ # that if you must retry your request, the server will know to ignore the
250
+ # request if it has already been completed. The server will guarantee that for
251
+ # at least 60 minutes after the first request. For example, consider a situation
252
+ # where you make an initial request and the request times out. If you make the
253
+ # request again with the same request ID, the server can check if original
254
+ # operation with the same request ID was received, and if so, will ignore the
255
+ # second request. This prevents clients from accidentally creating duplicate
256
+ # commitments. The request ID must be a valid UUID with the exception that zero
257
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
258
+ # @param [String] fields
259
+ # Selector specifying which fields to include in a partial response.
260
+ # @param [String] quota_user
261
+ # Available to use for quota purposes for server-side applications. Can be any
262
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
263
+ # @param [Google::Apis::RequestOptions] options
264
+ # Request-specific options
265
+ #
266
+ # @yield [result, err] Result & error if block supplied
267
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
268
+ # @yieldparam err [StandardError] error object if request failed
269
+ #
270
+ # @return [Google::Apis::GkehubV1beta::Operation]
271
+ #
272
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
273
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
274
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
275
+ def create_project_location_global_feature(parent, feature_object = nil, feature_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
276
+ command = make_simple_command(:post, 'v1beta/{+parent}/features', options)
277
+ command.request_representation = Google::Apis::GkehubV1beta::Feature::Representation
278
+ command.request_object = feature_object
279
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
280
+ command.response_class = Google::Apis::GkehubV1beta::Operation
281
+ command.params['parent'] = parent unless parent.nil?
282
+ command.query['featureId'] = feature_id unless feature_id.nil?
283
+ command.query['requestId'] = request_id unless request_id.nil?
284
+ command.query['fields'] = fields unless fields.nil?
285
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
286
+ execute_or_queue_command(command, &block)
287
+ end
288
+
289
+ # Removes a Feature.
290
+ # @param [String] name
291
+ # The Feature resource name in the format `projects/*/locations/global/features/*
292
+ # `.
293
+ # @param [Boolean] force
294
+ # If set to true, the delete will ignore any outstanding resources for this
295
+ # Feature (that is, `FeatureState.has_resources` is set to true). These
296
+ # resources will NOT be cleaned up or modified in any way.
297
+ # @param [String] request_id
298
+ # Optional. A request ID to identify requests. Specify a unique request ID so
299
+ # that if you must retry your request, the server will know to ignore the
300
+ # request if it has already been completed. The server will guarantee that for
301
+ # at least 60 minutes after the first request. For example, consider a situation
302
+ # where you make an initial request and the request times out. If you make the
303
+ # request again with the same request ID, the server can check if original
304
+ # operation with the same request ID was received, and if so, will ignore the
305
+ # second request. This prevents clients from accidentally creating duplicate
306
+ # commitments. The request ID must be a valid UUID with the exception that zero
307
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
308
+ # @param [String] fields
309
+ # Selector specifying which fields to include in a partial response.
310
+ # @param [String] quota_user
311
+ # Available to use for quota purposes for server-side applications. Can be any
312
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
313
+ # @param [Google::Apis::RequestOptions] options
314
+ # Request-specific options
315
+ #
316
+ # @yield [result, err] Result & error if block supplied
317
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
318
+ # @yieldparam err [StandardError] error object if request failed
319
+ #
320
+ # @return [Google::Apis::GkehubV1beta::Operation]
321
+ #
322
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
323
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
324
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
325
+ def delete_project_location_global_feature(name, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
326
+ command = make_simple_command(:delete, 'v1beta/{+name}', options)
327
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
328
+ command.response_class = Google::Apis::GkehubV1beta::Operation
329
+ command.params['name'] = name unless name.nil?
330
+ command.query['force'] = force unless force.nil?
331
+ command.query['requestId'] = request_id unless request_id.nil?
332
+ command.query['fields'] = fields unless fields.nil?
333
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
334
+ execute_or_queue_command(command, &block)
335
+ end
336
+
337
+ # Gets details of a single Feature.
338
+ # @param [String] name
339
+ # The Feature resource name in the format `projects/*/locations/global/features/*
340
+ # `
341
+ # @param [String] fields
342
+ # Selector specifying which fields to include in a partial response.
343
+ # @param [String] quota_user
344
+ # Available to use for quota purposes for server-side applications. Can be any
345
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
346
+ # @param [Google::Apis::RequestOptions] options
347
+ # Request-specific options
348
+ #
349
+ # @yield [result, err] Result & error if block supplied
350
+ # @yieldparam result [Google::Apis::GkehubV1beta::Feature] parsed result object
351
+ # @yieldparam err [StandardError] error object if request failed
352
+ #
353
+ # @return [Google::Apis::GkehubV1beta::Feature]
354
+ #
355
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
356
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
357
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
358
+ def get_project_location_global_feature(name, fields: nil, quota_user: nil, options: nil, &block)
359
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
360
+ command.response_representation = Google::Apis::GkehubV1beta::Feature::Representation
361
+ command.response_class = Google::Apis::GkehubV1beta::Feature
362
+ command.params['name'] = name unless name.nil?
363
+ command.query['fields'] = fields unless fields.nil?
364
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
365
+ execute_or_queue_command(command, &block)
366
+ end
367
+
368
+ # Lists Features in a given project and location.
369
+ # @param [String] parent
370
+ # The parent (project and location) where the Features will be listed. Specified
371
+ # in the format `projects/*/locations/global`.
372
+ # @param [String] filter
373
+ # Lists Features that match the filter expression, following the syntax outlined
374
+ # in https://google.aip.dev/160. Examples: - Feature with the name "servicemesh"
375
+ # in project "foo-proj": name = "projects/foo-proj/locations/global/features/
376
+ # servicemesh" - Features that have a label called `foo`: labels.foo:* -
377
+ # Features that have a label called `foo` whose value is `bar`: labels.foo = bar
378
+ # @param [String] order_by
379
+ # One or more fields to compare and use to sort the output. See https://google.
380
+ # aip.dev/132#ordering.
381
+ # @param [Fixnum] page_size
382
+ # When requesting a 'page' of resources, `page_size` specifies number of
383
+ # resources to return. If unspecified or set to 0, all resources will be
384
+ # returned.
385
+ # @param [String] page_token
386
+ # Token returned by previous call to `ListFeatures` which specifies the position
387
+ # in the list from where to continue listing the resources.
388
+ # @param [String] fields
389
+ # Selector specifying which fields to include in a partial response.
390
+ # @param [String] quota_user
391
+ # Available to use for quota purposes for server-side applications. Can be any
392
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
393
+ # @param [Google::Apis::RequestOptions] options
394
+ # Request-specific options
395
+ #
396
+ # @yield [result, err] Result & error if block supplied
397
+ # @yieldparam result [Google::Apis::GkehubV1beta::ListFeaturesResponse] parsed result object
398
+ # @yieldparam err [StandardError] error object if request failed
399
+ #
400
+ # @return [Google::Apis::GkehubV1beta::ListFeaturesResponse]
401
+ #
402
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
403
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
404
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
405
+ def list_project_location_global_features(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
406
+ command = make_simple_command(:get, 'v1beta/{+parent}/features', options)
407
+ command.response_representation = Google::Apis::GkehubV1beta::ListFeaturesResponse::Representation
408
+ command.response_class = Google::Apis::GkehubV1beta::ListFeaturesResponse
409
+ command.params['parent'] = parent unless parent.nil?
410
+ command.query['filter'] = filter unless filter.nil?
411
+ command.query['orderBy'] = order_by unless order_by.nil?
412
+ command.query['pageSize'] = page_size unless page_size.nil?
413
+ command.query['pageToken'] = page_token unless page_token.nil?
414
+ command.query['fields'] = fields unless fields.nil?
415
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
416
+ execute_or_queue_command(command, &block)
417
+ end
418
+
419
+ # Updates an existing Feature.
420
+ # @param [String] name
421
+ # The Feature resource name in the format `projects/*/locations/global/features/*
422
+ # `.
423
+ # @param [Google::Apis::GkehubV1beta::Feature] feature_object
424
+ # @param [String] request_id
425
+ # Optional. A request ID to identify requests. Specify a unique request ID so
426
+ # that if you must retry your request, the server will know to ignore the
427
+ # request if it has already been completed. The server will guarantee that for
428
+ # at least 60 minutes after the first request. For example, consider a situation
429
+ # where you make an initial request and the request times out. If you make the
430
+ # request again with the same request ID, the server can check if original
431
+ # operation with the same request ID was received, and if so, will ignore the
432
+ # second request. This prevents clients from accidentally creating duplicate
433
+ # commitments. The request ID must be a valid UUID with the exception that zero
434
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
435
+ # @param [String] update_mask
436
+ # Mask of fields to update.
437
+ # @param [String] fields
438
+ # Selector specifying which fields to include in a partial response.
439
+ # @param [String] quota_user
440
+ # Available to use for quota purposes for server-side applications. Can be any
441
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
442
+ # @param [Google::Apis::RequestOptions] options
443
+ # Request-specific options
444
+ #
445
+ # @yield [result, err] Result & error if block supplied
446
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
447
+ # @yieldparam err [StandardError] error object if request failed
448
+ #
449
+ # @return [Google::Apis::GkehubV1beta::Operation]
450
+ #
451
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
452
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
453
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
454
+ def patch_project_location_global_feature(name, feature_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
455
+ command = make_simple_command(:patch, 'v1beta/{+name}', options)
456
+ command.request_representation = Google::Apis::GkehubV1beta::Feature::Representation
457
+ command.request_object = feature_object
458
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
459
+ command.response_class = Google::Apis::GkehubV1beta::Operation
460
+ command.params['name'] = name unless name.nil?
461
+ command.query['requestId'] = request_id unless request_id.nil?
462
+ command.query['updateMask'] = update_mask unless update_mask.nil?
463
+ command.query['fields'] = fields unless fields.nil?
464
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
465
+ execute_or_queue_command(command, &block)
466
+ end
467
+
240
468
  # Gets the access control policy for a resource. Returns an empty policy if the
241
469
  # resource exists and does not have a policy set.
242
470
  # @param [String] resource
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-gkehub_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.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-03-22 00:00:00.000000000 Z
11
+ date: 2021-03-29 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_v1beta/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1beta/v0.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1beta/v0.2.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-gkehub_v1beta
57
57
  post_install_message:
58
58
  rdoc_options: []