google-apis-gkehub_v1alpha 0.15.0 → 0.16.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7b10916097ca4d3112440d34bf8335df618a3c195ea635460dbf35e8d1863d0
4
- data.tar.gz: dd6520f4090328de91f8c787eaee6df87b59e69e28ed71b2cb20292d05ae4149
3
+ metadata.gz: d6721771e96ff3b1105ef7936f86c80bd5b01d6957d608ef16bcf85316f0f2df
4
+ data.tar.gz: 771fb2f7acc28b8f4c932e2cca93b2b13420d33564bd4b9f4d416da69d744a74
5
5
  SHA512:
6
- metadata.gz: c571f35a8494af322207415fa9c5c3ab1b4761e5bc5cf985b1a0ec7b987aee4032d82b53e58db8dcbf1be478285804ca1f5b41aefc318df3ff795810c9b683cb
7
- data.tar.gz: 1675980291105294aa44b7b4db230df1dfc06f16cacc1ff8862232d8ae553723754a4994e4b5ed53e8946ad2098ce8eb1506dd280b578e514515d66304756e2b
6
+ metadata.gz: d6bc8e6e0eaa23507afb8c917dcaef28111180499b825106650d39bf0d2534f56d3ecb4cbdab8a97b738ab6be0f8630991f377c989d8424a284b9d9197d73684
7
+ data.tar.gz: 16f4bf948a5174a3864c6fbe424b77d0bccc1f1c62f992f3d2a13aa98152051b87e89bf07f303657bbc75d891da42a6d31805fa1b06bda7dc6236c45d20d0062
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-gkehub_v1alpha
2
2
 
3
+ ### v0.16.0 (2021-11-20)
4
+
5
+ * Regenerated from discovery document revision 20211111
6
+
3
7
  ### v0.15.0 (2021-11-13)
4
8
 
5
9
  * Regenerated from discovery document revision 20211105
@@ -1471,6 +1471,72 @@ module Google
1471
1471
  end
1472
1472
  end
1473
1473
 
1474
+ # Fleet contains the Fleet-wide metadata and configuration.
1475
+ class Fleet
1476
+ include Google::Apis::Core::Hashable
1477
+
1478
+ # Output only. When the Fleet was created.
1479
+ # Corresponds to the JSON property `createTime`
1480
+ # @return [String]
1481
+ attr_accessor :create_time
1482
+
1483
+ # Output only. When the Fleet was deleted.
1484
+ # Corresponds to the JSON property `deleteTime`
1485
+ # @return [String]
1486
+ attr_accessor :delete_time
1487
+
1488
+ # Optional. A user-assigned display name of the Fleet. When present, it must be
1489
+ # between 4 to 30 characters. Allowed characters are: lowercase and uppercase
1490
+ # letters, numbers, hyphen, single-quote, double-quote, space, and exclamation
1491
+ # point. Example: `Production Fleet`
1492
+ # Corresponds to the JSON property `displayName`
1493
+ # @return [String]
1494
+ attr_accessor :display_name
1495
+
1496
+ # The name for the fleet. The name must meet the following constraints: + The
1497
+ # name of a fleet should be unique within the organization; + It must consist of
1498
+ # lower case alphanumeric characters or `-`; + The length of the name must be
1499
+ # less than or equal to 63; + Unicode names must be expressed in Punycode format
1500
+ # (rfc3492). Examples: + prod-fleet + xn--wlq33vhyw9jb (Punycode form for "生产环境")
1501
+ # Corresponds to the JSON property `fleetName`
1502
+ # @return [String]
1503
+ attr_accessor :fleet_name
1504
+
1505
+ # Output only. The full, unique resource name of this fleet in the format of `
1506
+ # projects/`project`/locations/`location`/fleets/`fleet``. Each GCP project can
1507
+ # have at most one fleet resource, named "default".
1508
+ # Corresponds to the JSON property `name`
1509
+ # @return [String]
1510
+ attr_accessor :name
1511
+
1512
+ # Output only. Google-generated UUID for this resource. This is unique across
1513
+ # all Fleet resources. If a Fleet resource is deleted and another resource with
1514
+ # the same name is created, it gets a different uid.
1515
+ # Corresponds to the JSON property `uid`
1516
+ # @return [String]
1517
+ attr_accessor :uid
1518
+
1519
+ # Output only. When the Fleet was last updated.
1520
+ # Corresponds to the JSON property `updateTime`
1521
+ # @return [String]
1522
+ attr_accessor :update_time
1523
+
1524
+ def initialize(**args)
1525
+ update!(**args)
1526
+ end
1527
+
1528
+ # Update properties of this object
1529
+ def update!(**args)
1530
+ @create_time = args[:create_time] if args.key?(:create_time)
1531
+ @delete_time = args[:delete_time] if args.key?(:delete_time)
1532
+ @display_name = args[:display_name] if args.key?(:display_name)
1533
+ @fleet_name = args[:fleet_name] if args.key?(:fleet_name)
1534
+ @name = args[:name] if args.key?(:name)
1535
+ @uid = args[:uid] if args.key?(:uid)
1536
+ @update_time = args[:update_time] if args.key?(:update_time)
1537
+ end
1538
+ end
1539
+
1474
1540
  # GenerateConnectManifestResponse contains manifest information for installing/
1475
1541
  # upgrading a Connect agent.
1476
1542
  class GenerateConnectManifestResponse
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module GkehubV1alpha
18
18
  # Version of the google-apis-gkehub_v1alpha gem
19
- GEM_VERSION = "0.15.0"
19
+ GEM_VERSION = "0.16.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211105"
25
+ REVISION = "20211111"
26
26
  end
27
27
  end
28
28
  end
@@ -262,6 +262,12 @@ module Google
262
262
  include Google::Apis::Core::JsonObjectSupport
263
263
  end
264
264
 
265
+ class Fleet
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
265
271
  class GenerateConnectManifestResponse
266
272
  class Representation < Google::Apis::Core::JsonRepresentation; end
267
273
 
@@ -907,6 +913,19 @@ module Google
907
913
  end
908
914
  end
909
915
 
916
+ class Fleet
917
+ # @private
918
+ class Representation < Google::Apis::Core::JsonRepresentation
919
+ property :create_time, as: 'createTime'
920
+ property :delete_time, as: 'deleteTime'
921
+ property :display_name, as: 'displayName'
922
+ property :fleet_name, as: 'fleetName'
923
+ property :name, as: 'name'
924
+ property :uid, as: 'uid'
925
+ property :update_time, as: 'updateTime'
926
+ end
927
+ end
928
+
910
929
  class GenerateConnectManifestResponse
911
930
  # @private
912
931
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -465,6 +465,140 @@ module Google
465
465
  execute_or_queue_command(command, &block)
466
466
  end
467
467
 
468
+ # Creates a fleet.
469
+ # @param [String] parent
470
+ # Required. The parent (project and location) where the Fleet will be created.
471
+ # Specified in the format `projects/*/locations/*`.
472
+ # @param [Google::Apis::GkehubV1alpha::Fleet] fleet_object
473
+ # @param [String] fields
474
+ # Selector specifying which fields to include in a partial response.
475
+ # @param [String] quota_user
476
+ # Available to use for quota purposes for server-side applications. Can be any
477
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
478
+ # @param [Google::Apis::RequestOptions] options
479
+ # Request-specific options
480
+ #
481
+ # @yield [result, err] Result & error if block supplied
482
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Fleet] parsed result object
483
+ # @yieldparam err [StandardError] error object if request failed
484
+ #
485
+ # @return [Google::Apis::GkehubV1alpha::Fleet]
486
+ #
487
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
488
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
489
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
490
+ def create_project_location_fleet(parent, fleet_object = nil, fields: nil, quota_user: nil, options: nil, &block)
491
+ command = make_simple_command(:post, 'v1alpha/{+parent}/fleets', options)
492
+ command.request_representation = Google::Apis::GkehubV1alpha::Fleet::Representation
493
+ command.request_object = fleet_object
494
+ command.response_representation = Google::Apis::GkehubV1alpha::Fleet::Representation
495
+ command.response_class = Google::Apis::GkehubV1alpha::Fleet
496
+ command.params['parent'] = parent unless parent.nil?
497
+ command.query['fields'] = fields unless fields.nil?
498
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
499
+ execute_or_queue_command(command, &block)
500
+ end
501
+
502
+ # Removes a Fleet. There must be no memberships remaining in the Fleet.
503
+ # @param [String] name
504
+ # Required. The Fleet resource name in the format `projects/*/locations/*/fleets/
505
+ # *`.
506
+ # @param [String] fields
507
+ # Selector specifying which fields to include in a partial response.
508
+ # @param [String] quota_user
509
+ # Available to use for quota purposes for server-side applications. Can be any
510
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
511
+ # @param [Google::Apis::RequestOptions] options
512
+ # Request-specific options
513
+ #
514
+ # @yield [result, err] Result & error if block supplied
515
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Empty] parsed result object
516
+ # @yieldparam err [StandardError] error object if request failed
517
+ #
518
+ # @return [Google::Apis::GkehubV1alpha::Empty]
519
+ #
520
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
521
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
522
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
523
+ def delete_project_location_fleet(name, fields: nil, quota_user: nil, options: nil, &block)
524
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
525
+ command.response_representation = Google::Apis::GkehubV1alpha::Empty::Representation
526
+ command.response_class = Google::Apis::GkehubV1alpha::Empty
527
+ command.params['name'] = name unless name.nil?
528
+ command.query['fields'] = fields unless fields.nil?
529
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
530
+ execute_or_queue_command(command, &block)
531
+ end
532
+
533
+ # Returns the details of a fleet.
534
+ # @param [String] name
535
+ # Required. The Fleet resource name in the format `projects/*/locations/*/fleets/
536
+ # *`.
537
+ # @param [String] fields
538
+ # Selector specifying which fields to include in a partial response.
539
+ # @param [String] quota_user
540
+ # Available to use for quota purposes for server-side applications. Can be any
541
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
542
+ # @param [Google::Apis::RequestOptions] options
543
+ # Request-specific options
544
+ #
545
+ # @yield [result, err] Result & error if block supplied
546
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Fleet] parsed result object
547
+ # @yieldparam err [StandardError] error object if request failed
548
+ #
549
+ # @return [Google::Apis::GkehubV1alpha::Fleet]
550
+ #
551
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
552
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
553
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
554
+ def get_project_location_fleet(name, fields: nil, quota_user: nil, options: nil, &block)
555
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
556
+ command.response_representation = Google::Apis::GkehubV1alpha::Fleet::Representation
557
+ command.response_class = Google::Apis::GkehubV1alpha::Fleet
558
+ command.params['name'] = name unless name.nil?
559
+ command.query['fields'] = fields unless fields.nil?
560
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
561
+ execute_or_queue_command(command, &block)
562
+ end
563
+
564
+ # Updates a fleet.
565
+ # @param [String] name
566
+ # Output only. The full, unique resource name of this fleet in the format of `
567
+ # projects/`project`/locations/`location`/fleets/`fleet``. Each GCP project can
568
+ # have at most one fleet resource, named "default".
569
+ # @param [Google::Apis::GkehubV1alpha::Fleet] fleet_object
570
+ # @param [String] update_mask
571
+ # Required. The fields to be updated;
572
+ # @param [String] fields
573
+ # Selector specifying which fields to include in a partial response.
574
+ # @param [String] quota_user
575
+ # Available to use for quota purposes for server-side applications. Can be any
576
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
577
+ # @param [Google::Apis::RequestOptions] options
578
+ # Request-specific options
579
+ #
580
+ # @yield [result, err] Result & error if block supplied
581
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Fleet] parsed result object
582
+ # @yieldparam err [StandardError] error object if request failed
583
+ #
584
+ # @return [Google::Apis::GkehubV1alpha::Fleet]
585
+ #
586
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
587
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
588
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
589
+ def patch_project_location_fleet(name, fleet_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
590
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
591
+ command.request_representation = Google::Apis::GkehubV1alpha::Fleet::Representation
592
+ command.request_object = fleet_object
593
+ command.response_representation = Google::Apis::GkehubV1alpha::Fleet::Representation
594
+ command.response_class = Google::Apis::GkehubV1alpha::Fleet
595
+ command.params['name'] = name unless name.nil?
596
+ command.query['updateMask'] = update_mask unless update_mask.nil?
597
+ command.query['fields'] = fields unless fields.nil?
598
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
599
+ execute_or_queue_command(command, &block)
600
+ end
601
+
468
602
  # Creates a new Membership. **This is currently only supported for GKE clusters
469
603
  # on Google Cloud**. To register other clusters, follow the instructions at
470
604
  # https://cloud.google.com/anthos/multicluster-management/connect/registering-a-
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-gkehub_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.16.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-11-15 00:00:00.000000000 Z
11
+ date: 2021-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gkehub_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1alpha/v0.15.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1alpha/v0.16.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gkehub_v1alpha
63
63
  post_install_message:
64
64
  rdoc_options: []