google-apis-gkeonprem_v1 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd84659bba3fc8c83cf5e948443b7a3dda4d040da52243a646074357852dc0b5
4
- data.tar.gz: cb8f06f5dda6afdcc2d9eb2d7afb2cc8138834716ba4a5661682ecc3030f55e2
3
+ metadata.gz: 25480b091fcea789c2d5892fac801e89996306d2a09797be2d8164e54570ce41
4
+ data.tar.gz: 88723a9b99e6176802902fa1d7f31d388c4fb074621bf5ba6ebde2000cca3dba
5
5
  SHA512:
6
- metadata.gz: e1009fe2da788f30cf843f974bbf575582a57ecf6bc16cc794123dc659a880903038baac5bb8f4121f45b306acd98a22893a40deb8ef077e891ed7737dd493d4
7
- data.tar.gz: 26bc79909c32eb7d81f7f4bb30b50b2002c0d5218661b30c3f6ed8733aa7b5f5bb0452f80a22489ab282ef5675b8b05ece05424a46263d865397bb8421d7168c
6
+ metadata.gz: 2b2f11462d0d0677300d8cc34f1eb8dae6fc811456e6e8290508fe2dba50e82cfb9fbc7683c06b42a60c68a9872257c673bb57ddfd88a60a413872352a7e8c52
7
+ data.tar.gz: 5cdf1f9283020134dd77746f70fb8d72c25ad9e820a7e0d189821c560bcbcbd9bd0c88cb61d5228155a529de92cd458f76bd310dfa82a95158eeca8d252f2c0b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-gkeonprem_v1
2
2
 
3
+ ### v0.4.0 (2023-06-11)
4
+
5
+ * Regenerated from discovery document revision 20230607
6
+
3
7
  ### v0.3.0 (2023-05-28)
4
8
 
5
9
  * Regenerated from discovery document revision 20230517
@@ -1713,6 +1713,11 @@ module Google
1713
1713
  # @return [String]
1714
1714
  attr_accessor :update_time
1715
1715
 
1716
+ # BareMetalNodePoolUpgradePolicy defines the node pool upgrade policy.
1717
+ # Corresponds to the JSON property `upgradePolicy`
1718
+ # @return [Google::Apis::GkeonpremV1::BareMetalNodePoolUpgradePolicy]
1719
+ attr_accessor :upgrade_policy
1720
+
1716
1721
  def initialize(**args)
1717
1722
  update!(**args)
1718
1723
  end
@@ -1731,6 +1736,7 @@ module Google
1731
1736
  @status = args[:status] if args.key?(:status)
1732
1737
  @uid = args[:uid] if args.key?(:uid)
1733
1738
  @update_time = args[:update_time] if args.key?(:update_time)
1739
+ @upgrade_policy = args[:upgrade_policy] if args.key?(:upgrade_policy)
1734
1740
  end
1735
1741
  end
1736
1742
 
@@ -1781,6 +1787,26 @@ module Google
1781
1787
  end
1782
1788
  end
1783
1789
 
1790
+ # BareMetalNodePoolUpgradePolicy defines the node pool upgrade policy.
1791
+ class BareMetalNodePoolUpgradePolicy
1792
+ include Google::Apis::Core::Hashable
1793
+
1794
+ # BareMetalParallelUpgradeConfig defines the parallel upgrade settings for
1795
+ # worker node pools.
1796
+ # Corresponds to the JSON property `parallelUpgradeConfig`
1797
+ # @return [Google::Apis::GkeonpremV1::BareMetalParallelUpgradeConfig]
1798
+ attr_accessor :parallel_upgrade_config
1799
+
1800
+ def initialize(**args)
1801
+ update!(**args)
1802
+ end
1803
+
1804
+ # Update properties of this object
1805
+ def update!(**args)
1806
+ @parallel_upgrade_config = args[:parallel_upgrade_config] if args.key?(:parallel_upgrade_config)
1807
+ end
1808
+ end
1809
+
1784
1810
  # Specifies operating system settings for cluster provisioning.
1785
1811
  class BareMetalOsEnvironmentConfig
1786
1812
  include Google::Apis::Core::Hashable
@@ -1802,6 +1828,35 @@ module Google
1802
1828
  end
1803
1829
  end
1804
1830
 
1831
+ # BareMetalParallelUpgradeConfig defines the parallel upgrade settings for
1832
+ # worker node pools.
1833
+ class BareMetalParallelUpgradeConfig
1834
+ include Google::Apis::Core::Hashable
1835
+
1836
+ # Required. The maximum number of nodes that can be upgraded at once. Defaults
1837
+ # to 1.
1838
+ # Corresponds to the JSON property `concurrentNodes`
1839
+ # @return [Fixnum]
1840
+ attr_accessor :concurrent_nodes
1841
+
1842
+ # The minimum number of nodes that should be healthy and available during an
1843
+ # upgrade. If set to the default value of 0, it is possible that none of the
1844
+ # nodes will be available during an upgrade.
1845
+ # Corresponds to the JSON property `minimumAvailableNodes`
1846
+ # @return [Fixnum]
1847
+ attr_accessor :minimum_available_nodes
1848
+
1849
+ def initialize(**args)
1850
+ update!(**args)
1851
+ end
1852
+
1853
+ # Update properties of this object
1854
+ def update!(**args)
1855
+ @concurrent_nodes = args[:concurrent_nodes] if args.key?(:concurrent_nodes)
1856
+ @minimum_available_nodes = args[:minimum_available_nodes] if args.key?(:minimum_available_nodes)
1857
+ end
1858
+ end
1859
+
1805
1860
  # Specifies load balancer ports for the bare metal user cluster.
1806
1861
  class BareMetalPortConfig
1807
1862
  include Google::Apis::Core::Hashable
@@ -1918,6 +1973,11 @@ module Google
1918
1973
  class BareMetalVersionInfo
1919
1974
  include Google::Apis::Core::Hashable
1920
1975
 
1976
+ # The list of upgrade dependencies for this version.
1977
+ # Corresponds to the JSON property `dependencies`
1978
+ # @return [Array<Google::Apis::GkeonpremV1::UpgradeDependency>]
1979
+ attr_accessor :dependencies
1980
+
1921
1981
  # If set, the cluster dependencies (e.g. the admin cluster, other user clusters
1922
1982
  # managed by the same admin cluster, version skew policy, etc) must be upgraded
1923
1983
  # before this version can be installed or upgraded to.
@@ -1937,6 +1997,7 @@ module Google
1937
1997
 
1938
1998
  # Update properties of this object
1939
1999
  def update!(**args)
2000
+ @dependencies = args[:dependencies] if args.key?(:dependencies)
1940
2001
  @has_dependencies = args[:has_dependencies] if args.key?(:has_dependencies)
1941
2002
  @version = args[:version] if args.key?(:version)
1942
2003
  end
@@ -2221,35 +2282,6 @@ module Google
2221
2282
  end
2222
2283
  end
2223
2284
 
2224
- # Message for enrolling an existing bare metal standalone node pool to the GKE
2225
- # on-prem API.
2226
- class EnrollBareMetalStandaloneNodePoolRequest
2227
- include Google::Apis::Core::Hashable
2228
-
2229
- # User provided OnePlatform identifier that is used as part of the resource name.
2230
- # This value must be up to 40 characters and follow RFC-1123 (https://tools.
2231
- # ietf.org/html/rfc1123) format.
2232
- # Corresponds to the JSON property `bareMetalStandaloneNodePoolId`
2233
- # @return [String]
2234
- attr_accessor :bare_metal_standalone_node_pool_id
2235
-
2236
- # If set, only validate the request, but do not actually enroll the node pool.
2237
- # Corresponds to the JSON property `validateOnly`
2238
- # @return [Boolean]
2239
- attr_accessor :validate_only
2240
- alias_method :validate_only?, :validate_only
2241
-
2242
- def initialize(**args)
2243
- update!(**args)
2244
- end
2245
-
2246
- # Update properties of this object
2247
- def update!(**args)
2248
- @bare_metal_standalone_node_pool_id = args[:bare_metal_standalone_node_pool_id] if args.key?(:bare_metal_standalone_node_pool_id)
2249
- @validate_only = args[:validate_only] if args.key?(:validate_only)
2250
- end
2251
- end
2252
-
2253
2285
  # Message for enrolling an existing VMware admin cluster to the GKE on-prem API.
2254
2286
  class EnrollVmwareAdminClusterRequest
2255
2287
  include Google::Apis::Core::Hashable
@@ -3236,6 +3268,44 @@ module Google
3236
3268
  end
3237
3269
  end
3238
3270
 
3271
+ # UpgradeDependency represents a dependency when upgrading a resource.
3272
+ class UpgradeDependency
3273
+ include Google::Apis::Core::Hashable
3274
+
3275
+ # Current version of the dependency e.g. 1.15.0.
3276
+ # Corresponds to the JSON property `currentVersion`
3277
+ # @return [String]
3278
+ attr_accessor :current_version
3279
+
3280
+ # Local name of the dependency.
3281
+ # Corresponds to the JSON property `localName`
3282
+ # @return [String]
3283
+ attr_accessor :local_name
3284
+
3285
+ # Resource name of the dependency.
3286
+ # Corresponds to the JSON property `resourceName`
3287
+ # @return [String]
3288
+ attr_accessor :resource_name
3289
+
3290
+ # Target version of the dependency e.g. 1.16.1. This is the version the
3291
+ # dependency needs to be upgraded to before a resource can be upgraded.
3292
+ # Corresponds to the JSON property `targetVersion`
3293
+ # @return [String]
3294
+ attr_accessor :target_version
3295
+
3296
+ def initialize(**args)
3297
+ update!(**args)
3298
+ end
3299
+
3300
+ # Update properties of this object
3301
+ def update!(**args)
3302
+ @current_version = args[:current_version] if args.key?(:current_version)
3303
+ @local_name = args[:local_name] if args.key?(:local_name)
3304
+ @resource_name = args[:resource_name] if args.key?(:resource_name)
3305
+ @target_version = args[:target_version] if args.key?(:target_version)
3306
+ end
3307
+ end
3308
+
3239
3309
  # ValidationCheck represents the result of preflight check.
3240
3310
  class ValidationCheck
3241
3311
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module GkeonpremV1
18
18
  # Version of the google-apis-gkeonprem_v1 gem
19
- GEM_VERSION = "0.3.0"
19
+ GEM_VERSION = "0.4.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230517"
25
+ REVISION = "20230607"
26
26
  end
27
27
  end
28
28
  end
@@ -322,12 +322,24 @@ module Google
322
322
  include Google::Apis::Core::JsonObjectSupport
323
323
  end
324
324
 
325
+ class BareMetalNodePoolUpgradePolicy
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
325
331
  class BareMetalOsEnvironmentConfig
326
332
  class Representation < Google::Apis::Core::JsonRepresentation; end
327
333
 
328
334
  include Google::Apis::Core::JsonObjectSupport
329
335
  end
330
336
 
337
+ class BareMetalParallelUpgradeConfig
338
+ class Representation < Google::Apis::Core::JsonRepresentation; end
339
+
340
+ include Google::Apis::Core::JsonObjectSupport
341
+ end
342
+
331
343
  class BareMetalPortConfig
332
344
  class Representation < Google::Apis::Core::JsonRepresentation; end
333
345
 
@@ -418,12 +430,6 @@ module Google
418
430
  include Google::Apis::Core::JsonObjectSupport
419
431
  end
420
432
 
421
- class EnrollBareMetalStandaloneNodePoolRequest
422
- class Representation < Google::Apis::Core::JsonRepresentation; end
423
-
424
- include Google::Apis::Core::JsonObjectSupport
425
- end
426
-
427
433
  class EnrollVmwareAdminClusterRequest
428
434
  class Representation < Google::Apis::Core::JsonRepresentation; end
429
435
 
@@ -586,6 +592,12 @@ module Google
586
592
  include Google::Apis::Core::JsonObjectSupport
587
593
  end
588
594
 
595
+ class UpgradeDependency
596
+ class Representation < Google::Apis::Core::JsonRepresentation; end
597
+
598
+ include Google::Apis::Core::JsonObjectSupport
599
+ end
600
+
589
601
  class ValidationCheck
590
602
  class Representation < Google::Apis::Core::JsonRepresentation; end
591
603
 
@@ -1353,6 +1365,8 @@ module Google
1353
1365
 
1354
1366
  property :uid, as: 'uid'
1355
1367
  property :update_time, as: 'updateTime'
1368
+ property :upgrade_policy, as: 'upgradePolicy', class: Google::Apis::GkeonpremV1::BareMetalNodePoolUpgradePolicy, decorator: Google::Apis::GkeonpremV1::BareMetalNodePoolUpgradePolicy::Representation
1369
+
1356
1370
  end
1357
1371
  end
1358
1372
 
@@ -1370,6 +1384,14 @@ module Google
1370
1384
  end
1371
1385
  end
1372
1386
 
1387
+ class BareMetalNodePoolUpgradePolicy
1388
+ # @private
1389
+ class Representation < Google::Apis::Core::JsonRepresentation
1390
+ property :parallel_upgrade_config, as: 'parallelUpgradeConfig', class: Google::Apis::GkeonpremV1::BareMetalParallelUpgradeConfig, decorator: Google::Apis::GkeonpremV1::BareMetalParallelUpgradeConfig::Representation
1391
+
1392
+ end
1393
+ end
1394
+
1373
1395
  class BareMetalOsEnvironmentConfig
1374
1396
  # @private
1375
1397
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1377,6 +1399,14 @@ module Google
1377
1399
  end
1378
1400
  end
1379
1401
 
1402
+ class BareMetalParallelUpgradeConfig
1403
+ # @private
1404
+ class Representation < Google::Apis::Core::JsonRepresentation
1405
+ property :concurrent_nodes, as: 'concurrentNodes'
1406
+ property :minimum_available_nodes, as: 'minimumAvailableNodes'
1407
+ end
1408
+ end
1409
+
1380
1410
  class BareMetalPortConfig
1381
1411
  # @private
1382
1412
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1420,6 +1450,8 @@ module Google
1420
1450
  class BareMetalVersionInfo
1421
1451
  # @private
1422
1452
  class Representation < Google::Apis::Core::JsonRepresentation
1453
+ collection :dependencies, as: 'dependencies', class: Google::Apis::GkeonpremV1::UpgradeDependency, decorator: Google::Apis::GkeonpremV1::UpgradeDependency::Representation
1454
+
1423
1455
  property :has_dependencies, as: 'hasDependencies'
1424
1456
  property :version, as: 'version'
1425
1457
  end
@@ -1495,14 +1527,6 @@ module Google
1495
1527
  end
1496
1528
  end
1497
1529
 
1498
- class EnrollBareMetalStandaloneNodePoolRequest
1499
- # @private
1500
- class Representation < Google::Apis::Core::JsonRepresentation
1501
- property :bare_metal_standalone_node_pool_id, as: 'bareMetalStandaloneNodePoolId'
1502
- property :validate_only, as: 'validateOnly'
1503
- end
1504
- end
1505
-
1506
1530
  class EnrollVmwareAdminClusterRequest
1507
1531
  # @private
1508
1532
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1755,6 +1779,16 @@ module Google
1755
1779
  end
1756
1780
  end
1757
1781
 
1782
+ class UpgradeDependency
1783
+ # @private
1784
+ class Representation < Google::Apis::Core::JsonRepresentation
1785
+ property :current_version, as: 'currentVersion'
1786
+ property :local_name, as: 'localName'
1787
+ property :resource_name, as: 'resourceName'
1788
+ property :target_version, as: 'targetVersion'
1789
+ end
1790
+ end
1791
+
1758
1792
  class ValidationCheck
1759
1793
  # @private
1760
1794
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -505,6 +505,13 @@ module Google
505
505
  # The current etag of the bare metal admin cluster. If an etag is provided and
506
506
  # does not match the current etag of the cluster, deletion will be blocked and
507
507
  # an ABORTED error will be returned.
508
+ # @param [Boolean] ignore_errors
509
+ # If set to true, the unenrollment of a bare metal admin cluster resource will
510
+ # succeed even if errors occur during unenrollment. This parameter can be used
511
+ # when you want to unenroll admin cluster resource and the on-prem admin cluster
512
+ # is disconnected / unreachable. WARNING: Using this parameter when your admin
513
+ # cluster still exists may result in a deleted GCP admin cluster but existing
514
+ # resourcelink in on-prem admin cluster and membership.
508
515
  # @param [Boolean] validate_only
509
516
  # Validate the request without actually doing any updates.
510
517
  # @param [String] fields
@@ -524,13 +531,14 @@ module Google
524
531
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
525
532
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
526
533
  # @raise [Google::Apis::AuthorizationError] Authorization is required
527
- 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)
534
+ def unenroll_project_location_bare_metal_admin_cluster(name, allow_missing: nil, etag: nil, ignore_errors: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
528
535
  command = make_simple_command(:delete, 'v1/{+name}:unenroll', options)
529
536
  command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
530
537
  command.response_class = Google::Apis::GkeonpremV1::Operation
531
538
  command.params['name'] = name unless name.nil?
532
539
  command.query['allowMissing'] = allow_missing unless allow_missing.nil?
533
540
  command.query['etag'] = etag unless etag.nil?
541
+ command.query['ignoreErrors'] = ignore_errors unless ignore_errors.nil?
534
542
  command.query['validateOnly'] = validate_only unless validate_only.nil?
535
543
  command.query['fields'] = fields unless fields.nil?
536
544
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1670,43 +1678,6 @@ module Google
1670
1678
  execute_or_queue_command(command, &block)
1671
1679
  end
1672
1680
 
1673
- # Enrolls an existing bare metal standalone node pool to the Anthos On-Prem API
1674
- # within a given project and location. Through enrollment, an existing
1675
- # standalone node pool will become Anthos On-Prem API managed. The corresponding
1676
- # GCP resources will be created.
1677
- # @param [String] parent
1678
- # Required. The parent resource where this node pool will be created. projects/`
1679
- # project`/locations/`location`/bareMetalStandaloneClusters/`cluster`
1680
- # @param [Google::Apis::GkeonpremV1::EnrollBareMetalStandaloneNodePoolRequest] enroll_bare_metal_standalone_node_pool_request_object
1681
- # @param [String] fields
1682
- # Selector specifying which fields to include in a partial response.
1683
- # @param [String] quota_user
1684
- # Available to use for quota purposes for server-side applications. Can be any
1685
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1686
- # @param [Google::Apis::RequestOptions] options
1687
- # Request-specific options
1688
- #
1689
- # @yield [result, err] Result & error if block supplied
1690
- # @yieldparam result [Google::Apis::GkeonpremV1::Operation] parsed result object
1691
- # @yieldparam err [StandardError] error object if request failed
1692
- #
1693
- # @return [Google::Apis::GkeonpremV1::Operation]
1694
- #
1695
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1696
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1697
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1698
- def enroll_bare_metal_standalone_node_pool(parent, enroll_bare_metal_standalone_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1699
- command = make_simple_command(:post, 'v1/{+parent}/bareMetalStandaloneNodePools:enroll', options)
1700
- command.request_representation = Google::Apis::GkeonpremV1::EnrollBareMetalStandaloneNodePoolRequest::Representation
1701
- command.request_object = enroll_bare_metal_standalone_node_pool_request_object
1702
- command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
1703
- command.response_class = Google::Apis::GkeonpremV1::Operation
1704
- command.params['parent'] = parent unless parent.nil?
1705
- command.query['fields'] = fields unless fields.nil?
1706
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1707
- execute_or_queue_command(command, &block)
1708
- end
1709
-
1710
1681
  # Starts asynchronous cancellation on a long-running operation. The server makes
1711
1682
  # a best effort to cancel the operation, but success is not guaranteed. If the
1712
1683
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-gkeonprem_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.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: 2023-05-28 00:00:00.000000000 Z
11
+ date: 2023-06-11 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-gkeonprem_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-gkeonprem_v1/v0.3.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-gkeonprem_v1/v0.4.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gkeonprem_v1
63
63
  post_install_message:
64
64
  rdoc_options: []