google-apis-gkeonprem_v1 0.2.0 → 0.4.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: 8533d183f672b3fa4cd4b1815ba337adb81a579a91b879e9483bf8b8868b6c5b
4
- data.tar.gz: 6bb2723615b409a6debb994da384f415c669780d7ff1cd245d3667d4402b9e97
3
+ metadata.gz: 25480b091fcea789c2d5892fac801e89996306d2a09797be2d8164e54570ce41
4
+ data.tar.gz: 88723a9b99e6176802902fa1d7f31d388c4fb074621bf5ba6ebde2000cca3dba
5
5
  SHA512:
6
- metadata.gz: 1723c47165c657dc4e24b69b611e416c16a0fb534e78f1aa742fef729f03a71cd4e82a60d400c95539b3ba5255e0d4a8ba3612c038d4097c101f6d42d5b11380
7
- data.tar.gz: abb68806b6fd5d6c79000630ac37d78dc9a91e6955aac8d9d820f35318588b126492eefd92d70f6593e4c2248e81192d98546b39f15638b81225c14a2d29cbea
6
+ metadata.gz: 2b2f11462d0d0677300d8cc34f1eb8dae6fc811456e6e8290508fe2dba50e82cfb9fbc7683c06b42a60c68a9872257c673bb57ddfd88a60a413872352a7e8c52
7
+ data.tar.gz: 5cdf1f9283020134dd77746f70fb8d72c25ad9e820a7e0d189821c560bcbcbd9bd0c88cb61d5228155a529de92cd458f76bd310dfa82a95158eeca8d252f2c0b
data/CHANGELOG.md CHANGED
@@ -1,8 +1,16 @@
1
1
  # Release history for google-apis-gkeonprem_v1
2
2
 
3
- ### v0.2.0 (2023-05-07)
3
+ ### v0.4.0 (2023-06-11)
4
4
 
5
- * Regenerated from discovery document revision 20230426
5
+ * Regenerated from discovery document revision 20230607
6
+
7
+ ### v0.3.0 (2023-05-28)
8
+
9
+ * Regenerated from discovery document revision 20230517
10
+
11
+ ### v0.2.0 (2023-05-14)
12
+
13
+ * Regenerated from discovery document revision 20230507
6
14
 
7
15
  ### v0.1.0 (2023-04-30)
8
16
 
@@ -27,10 +27,10 @@ module Google
27
27
  class Authorization
28
28
  include Google::Apis::Core::Hashable
29
29
 
30
- # Required. For VMware user, bare metal user and standalone clusters, users that
31
- # will be granted the cluster-admin role on the cluster, providing full access
32
- # to the cluster. For bare metal Admin cluster, users will be granted the view
33
- # role, which is a view only access.
30
+ # Required. For VMware and bare metal user clusters, users will be granted the
31
+ # cluster-admin role on the cluster, which provides full administrative access
32
+ # to the cluster. For bare metal admin clusters, users will be granted the
33
+ # cluster-view role, which limits users to read-only access.
34
34
  # Corresponds to the JSON property `adminUsers`
35
35
  # @return [Array<Google::Apis::GkeonpremV1::ClusterUser>]
36
36
  attr_accessor :admin_users
@@ -1215,7 +1215,7 @@ module Google
1215
1215
  end
1216
1216
  end
1217
1217
 
1218
- # KubeletConfig defines the modifiable kubelet configurations for baremetal
1218
+ # KubeletConfig defines the modifiable kubelet configurations for bare metal
1219
1219
  # machines. Note: this list includes fields supported in GKE (see https://cloud.
1220
1220
  # google.com/kubernetes-engine/docs/how-to/node-system-config#kubelet-options).
1221
1221
  class BareMetalKubeletConfig
@@ -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
 
@@ -1739,7 +1745,7 @@ module Google
1739
1745
  class BareMetalNodePoolConfig
1740
1746
  include Google::Apis::Core::Hashable
1741
1747
 
1742
- # KubeletConfig defines the modifiable kubelet configurations for baremetal
1748
+ # KubeletConfig defines the modifiable kubelet configurations for bare metal
1743
1749
  # machines. Note: this list includes fields supported in GKE (see https://cloud.
1744
1750
  # google.com/kubernetes-engine/docs/how-to/node-system-config#kubelet-options).
1745
1751
  # Corresponds to the JSON property `kubeletConfig`
@@ -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
@@ -2133,16 +2194,6 @@ module Google
2133
2194
  # @return [String]
2134
2195
  attr_accessor :bare_metal_admin_cluster_id
2135
2196
 
2136
- # The object name of the bare metal OnPremAdminCluster custom resource on the
2137
- # associated admin cluster. This field is used to support conflicting resource
2138
- # names when enrolling existing clusters to the API. When not provided, this
2139
- # field will resolve to the bare_metal_admin_cluster_id. Otherwise, it must
2140
- # match the object name of the bare metal OnPremAdminCluster custom resource. It
2141
- # is not modifiable outside / beyond the enrollment operation.
2142
- # Corresponds to the JSON property `localName`
2143
- # @return [String]
2144
- attr_accessor :local_name
2145
-
2146
2197
  # Required. This is the full resource name of this admin cluster's fleet
2147
2198
  # membership.
2148
2199
  # Corresponds to the JSON property `membership`
@@ -2156,7 +2207,6 @@ module Google
2156
2207
  # Update properties of this object
2157
2208
  def update!(**args)
2158
2209
  @bare_metal_admin_cluster_id = args[:bare_metal_admin_cluster_id] if args.key?(:bare_metal_admin_cluster_id)
2159
- @local_name = args[:local_name] if args.key?(:local_name)
2160
2210
  @membership = args[:membership] if args.key?(:membership)
2161
2211
  end
2162
2212
  end
@@ -2236,16 +2286,6 @@ module Google
2236
2286
  class EnrollVmwareAdminClusterRequest
2237
2287
  include Google::Apis::Core::Hashable
2238
2288
 
2239
- # The object name of the VMware OnPremAdminCluster custom resource on the
2240
- # associated admin cluster. This field is used to support conflicting resource
2241
- # names when enrolling existing clusters to the API. When not provided, this
2242
- # field will resolve to the vmware_admin_cluster_id. Otherwise, it must match
2243
- # the object name of the VMware OnPremAdminCluster custom resource. It is not
2244
- # modifiable outside / beyond the enrollment operation.
2245
- # Corresponds to the JSON property `localName`
2246
- # @return [String]
2247
- attr_accessor :local_name
2248
-
2249
2289
  # Required. This is the full resource name of this admin cluster's fleet
2250
2290
  # membership.
2251
2291
  # Corresponds to the JSON property `membership`
@@ -2267,7 +2307,6 @@ module Google
2267
2307
 
2268
2308
  # Update properties of this object
2269
2309
  def update!(**args)
2270
- @local_name = args[:local_name] if args.key?(:local_name)
2271
2310
  @membership = args[:membership] if args.key?(:membership)
2272
2311
  @vmware_admin_cluster_id = args[:vmware_admin_cluster_id] if args.key?(:vmware_admin_cluster_id)
2273
2312
  end
@@ -2818,6 +2857,14 @@ module Google
2818
2857
  # @return [String]
2819
2858
  attr_accessor :api_version
2820
2859
 
2860
+ # Output only. Denotes if the local managing cluster's control plane is
2861
+ # currently disconnected. This is expected to occur temporarily during self-
2862
+ # managed cluster upgrades.
2863
+ # Corresponds to the JSON property `controlPlaneDisconnected`
2864
+ # @return [Boolean]
2865
+ attr_accessor :control_plane_disconnected
2866
+ alias_method :control_plane_disconnected?, :control_plane_disconnected
2867
+
2821
2868
  # Output only. The time the operation was created.
2822
2869
  # Corresponds to the JSON property `createTime`
2823
2870
  # @return [String]
@@ -2864,6 +2911,7 @@ module Google
2864
2911
  # Update properties of this object
2865
2912
  def update!(**args)
2866
2913
  @api_version = args[:api_version] if args.key?(:api_version)
2914
+ @control_plane_disconnected = args[:control_plane_disconnected] if args.key?(:control_plane_disconnected)
2867
2915
  @create_time = args[:create_time] if args.key?(:create_time)
2868
2916
  @end_time = args[:end_time] if args.key?(:end_time)
2869
2917
  @requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
@@ -3220,6 +3268,44 @@ module Google
3220
3268
  end
3221
3269
  end
3222
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
+
3223
3309
  # ValidationCheck represents the result of preflight check.
3224
3310
  class ValidationCheck
3225
3311
  include Google::Apis::Core::Hashable
@@ -4080,8 +4166,7 @@ module Google
4080
4166
  # @return [Google::Apis::GkeonpremV1::VmwareNetworkConfig]
4081
4167
  attr_accessor :network_config
4082
4168
 
4083
- # The Anthos clusters on the VMware version for your user cluster. Defaults to
4084
- # the admin cluster version.
4169
+ # Required. The Anthos clusters on the VMware version for your user cluster.
4085
4170
  # Corresponds to the JSON property `onPremVersion`
4086
4171
  # @return [String]
4087
4172
  attr_accessor :on_prem_version
@@ -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.2.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 = "20230426"
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
 
@@ -580,6 +592,12 @@ module Google
580
592
  include Google::Apis::Core::JsonObjectSupport
581
593
  end
582
594
 
595
+ class UpgradeDependency
596
+ class Representation < Google::Apis::Core::JsonRepresentation; end
597
+
598
+ include Google::Apis::Core::JsonObjectSupport
599
+ end
600
+
583
601
  class ValidationCheck
584
602
  class Representation < Google::Apis::Core::JsonRepresentation; end
585
603
 
@@ -1347,6 +1365,8 @@ module Google
1347
1365
 
1348
1366
  property :uid, as: 'uid'
1349
1367
  property :update_time, as: 'updateTime'
1368
+ property :upgrade_policy, as: 'upgradePolicy', class: Google::Apis::GkeonpremV1::BareMetalNodePoolUpgradePolicy, decorator: Google::Apis::GkeonpremV1::BareMetalNodePoolUpgradePolicy::Representation
1369
+
1350
1370
  end
1351
1371
  end
1352
1372
 
@@ -1364,6 +1384,14 @@ module Google
1364
1384
  end
1365
1385
  end
1366
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
+
1367
1395
  class BareMetalOsEnvironmentConfig
1368
1396
  # @private
1369
1397
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1371,6 +1399,14 @@ module Google
1371
1399
  end
1372
1400
  end
1373
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
+
1374
1410
  class BareMetalPortConfig
1375
1411
  # @private
1376
1412
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1414,6 +1450,8 @@ module Google
1414
1450
  class BareMetalVersionInfo
1415
1451
  # @private
1416
1452
  class Representation < Google::Apis::Core::JsonRepresentation
1453
+ collection :dependencies, as: 'dependencies', class: Google::Apis::GkeonpremV1::UpgradeDependency, decorator: Google::Apis::GkeonpremV1::UpgradeDependency::Representation
1454
+
1417
1455
  property :has_dependencies, as: 'hasDependencies'
1418
1456
  property :version, as: 'version'
1419
1457
  end
@@ -1468,7 +1506,6 @@ module Google
1468
1506
  # @private
1469
1507
  class Representation < Google::Apis::Core::JsonRepresentation
1470
1508
  property :bare_metal_admin_cluster_id, as: 'bareMetalAdminClusterId'
1471
- property :local_name, as: 'localName'
1472
1509
  property :membership, as: 'membership'
1473
1510
  end
1474
1511
  end
@@ -1493,7 +1530,6 @@ module Google
1493
1530
  class EnrollVmwareAdminClusterRequest
1494
1531
  # @private
1495
1532
  class Representation < Google::Apis::Core::JsonRepresentation
1496
- property :local_name, as: 'localName'
1497
1533
  property :membership, as: 'membership'
1498
1534
  property :vmware_admin_cluster_id, as: 'vmwareAdminClusterId'
1499
1535
  end
@@ -1647,6 +1683,7 @@ module Google
1647
1683
  # @private
1648
1684
  class Representation < Google::Apis::Core::JsonRepresentation
1649
1685
  property :api_version, as: 'apiVersion'
1686
+ property :control_plane_disconnected, as: 'controlPlaneDisconnected'
1650
1687
  property :create_time, as: 'createTime'
1651
1688
  property :end_time, as: 'endTime'
1652
1689
  property :requested_cancellation, as: 'requestedCancellation'
@@ -1742,6 +1779,16 @@ module Google
1742
1779
  end
1743
1780
  end
1744
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
+
1745
1792
  class ValidationCheck
1746
1793
  # @private
1747
1794
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -210,6 +210,11 @@ module Google
210
210
  # Required. Name of the bare metal admin cluster to get. Format: "projects/`
211
211
  # project`/locations/`location`/bareMetalAdminClusters/`bare_metal_admin_cluster`
212
212
  # "
213
+ # @param [String] view
214
+ # View for bare metal admin cluster. When `BASIC` is specified, only the cluster
215
+ # resource name and membership are returned. The default/unset value `
216
+ # CLUSTER_VIEW_UNSPECIFIED` is the same as `FULL', which returns the complete
217
+ # cluster configuration details.
213
218
  # @param [String] fields
214
219
  # Selector specifying which fields to include in a partial response.
215
220
  # @param [String] quota_user
@@ -227,11 +232,12 @@ module Google
227
232
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
228
233
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
229
234
  # @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)
235
+ def get_project_location_bare_metal_admin_cluster(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
231
236
  command = make_simple_command(:get, 'v1/{+name}', options)
232
237
  command.response_representation = Google::Apis::GkeonpremV1::BareMetalAdminCluster::Representation
233
238
  command.response_class = Google::Apis::GkeonpremV1::BareMetalAdminCluster
234
239
  command.params['name'] = name unless name.nil?
240
+ command.query['view'] = view unless view.nil?
235
241
  command.query['fields'] = fields unless fields.nil?
236
242
  command.query['quotaUser'] = quota_user unless quota_user.nil?
237
243
  execute_or_queue_command(command, &block)
@@ -499,6 +505,13 @@ module Google
499
505
  # The current etag of the bare metal admin cluster. If an etag is provided and
500
506
  # does not match the current etag of the cluster, deletion will be blocked and
501
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.
502
515
  # @param [Boolean] validate_only
503
516
  # Validate the request without actually doing any updates.
504
517
  # @param [String] fields
@@ -518,13 +531,14 @@ module Google
518
531
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
519
532
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
520
533
  # @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)
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)
522
535
  command = make_simple_command(:delete, 'v1/{+name}:unenroll', options)
523
536
  command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
524
537
  command.response_class = Google::Apis::GkeonpremV1::Operation
525
538
  command.params['name'] = name unless name.nil?
526
539
  command.query['allowMissing'] = allow_missing unless allow_missing.nil?
527
540
  command.query['etag'] = etag unless etag.nil?
541
+ command.query['ignoreErrors'] = ignore_errors unless ignore_errors.nil?
528
542
  command.query['validateOnly'] = validate_only unless validate_only.nil?
529
543
  command.query['fields'] = fields unless fields.nil?
530
544
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -740,6 +754,11 @@ module Google
740
754
  # @param [String] name
741
755
  # Required. Name of the bare metal user cluster to get. Format: "projects/`
742
756
  # project`/locations/`location`/bareMetalClusters/`bare_metal_cluster`"
757
+ # @param [String] view
758
+ # View for bare metal user cluster. When `BASIC` is specified, only the cluster
759
+ # resource name and admin cluster membership are returned. The default/unset
760
+ # value `CLUSTER_VIEW_UNSPECIFIED` is the same as `FULL', which returns the
761
+ # complete cluster configuration details.
743
762
  # @param [String] fields
744
763
  # Selector specifying which fields to include in a partial response.
745
764
  # @param [String] quota_user
@@ -757,11 +776,12 @@ module Google
757
776
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
758
777
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
759
778
  # @raise [Google::Apis::AuthorizationError] Authorization is required
760
- def get_project_location_bare_metal_cluster(name, fields: nil, quota_user: nil, options: nil, &block)
779
+ def get_project_location_bare_metal_cluster(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
761
780
  command = make_simple_command(:get, 'v1/{+name}', options)
762
781
  command.response_representation = Google::Apis::GkeonpremV1::BareMetalCluster::Representation
763
782
  command.response_class = Google::Apis::GkeonpremV1::BareMetalCluster
764
783
  command.params['name'] = name unless name.nil?
784
+ command.query['view'] = view unless view.nil?
765
785
  command.query['fields'] = fields unless fields.nil?
766
786
  command.query['quotaUser'] = quota_user unless quota_user.nil?
767
787
  execute_or_queue_command(command, &block)
@@ -1220,6 +1240,11 @@ module Google
1220
1240
  # @param [String] name
1221
1241
  # Required. The name of the node pool to retrieve. projects/`project`/locations/`
1222
1242
  # location`/bareMetalClusters/`cluster`/bareMetalNodePools/`nodepool`
1243
+ # @param [String] view
1244
+ # View for bare metal node pool. When `BASIC` is specified, only the node pool
1245
+ # resource name is returned. The default/unset value `NODE_POOL_VIEW_UNSPECIFIED`
1246
+ # is the same as `FULL', which returns the complete node pool configuration
1247
+ # details.
1223
1248
  # @param [String] fields
1224
1249
  # Selector specifying which fields to include in a partial response.
1225
1250
  # @param [String] quota_user
@@ -1237,11 +1262,12 @@ module Google
1237
1262
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1238
1263
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1239
1264
  # @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)
1265
+ def get_project_location_bare_metal_cluster_bare_metal_node_pool(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
1241
1266
  command = make_simple_command(:get, 'v1/{+name}', options)
1242
1267
  command.response_representation = Google::Apis::GkeonpremV1::BareMetalNodePool::Representation
1243
1268
  command.response_class = Google::Apis::GkeonpremV1::BareMetalNodePool
1244
1269
  command.params['name'] = name unless name.nil?
1270
+ command.query['view'] = view unless view.nil?
1245
1271
  command.query['fields'] = fields unless fields.nil?
1246
1272
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1247
1273
  execute_or_queue_command(command, &block)
@@ -1306,6 +1332,11 @@ module Google
1306
1332
  # this to retrieve the subsequent page. When paginating, all other parameters
1307
1333
  # provided to `ListBareMetalNodePools` must match the call that provided the
1308
1334
  # page token.
1335
+ # @param [String] view
1336
+ # View for bare metal node pools. When `BASIC` is specified, only the node pool
1337
+ # resource name is returned. The default/unset value `NODE_POOL_VIEW_UNSPECIFIED`
1338
+ # is the same as `FULL', which returns the complete node pool configuration
1339
+ # details.
1309
1340
  # @param [String] fields
1310
1341
  # Selector specifying which fields to include in a partial response.
1311
1342
  # @param [String] quota_user
@@ -1323,13 +1354,14 @@ module Google
1323
1354
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1324
1355
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1325
1356
  # @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)
1357
+ def list_project_location_bare_metal_cluster_bare_metal_node_pools(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
1327
1358
  command = make_simple_command(:get, 'v1/{+parent}/bareMetalNodePools', options)
1328
1359
  command.response_representation = Google::Apis::GkeonpremV1::ListBareMetalNodePoolsResponse::Representation
1329
1360
  command.response_class = Google::Apis::GkeonpremV1::ListBareMetalNodePoolsResponse
1330
1361
  command.params['parent'] = parent unless parent.nil?
1331
1362
  command.query['pageSize'] = page_size unless page_size.nil?
1332
1363
  command.query['pageToken'] = page_token unless page_token.nil?
1364
+ command.query['view'] = view unless view.nil?
1333
1365
  command.query['fields'] = fields unless fields.nil?
1334
1366
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1335
1367
  execute_or_queue_command(command, &block)
@@ -1339,6 +1371,11 @@ module Google
1339
1371
  # @param [String] name
1340
1372
  # Immutable. The bare metal node pool resource name.
1341
1373
  # @param [Google::Apis::GkeonpremV1::BareMetalNodePool] bare_metal_node_pool_object
1374
+ # @param [Boolean] allow_missing
1375
+ # If set to true, and the bare metal node pool is not found, the request will
1376
+ # create a new bare metal node pool with the provided configuration. The user
1377
+ # must have both create and update permission to call Update with allow_missing
1378
+ # set to true.
1342
1379
  # @param [String] update_mask
1343
1380
  # Required. Field mask is used to specify the fields to be overwritten in the
1344
1381
  # BareMetalNodePool resource by the update. The fields specified in the
@@ -1365,13 +1402,14 @@ module Google
1365
1402
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1366
1403
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1367
1404
  # @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)
1405
+ def patch_project_location_bare_metal_cluster_bare_metal_node_pool(name, bare_metal_node_pool_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
1369
1406
  command = make_simple_command(:patch, 'v1/{+name}', options)
1370
1407
  command.request_representation = Google::Apis::GkeonpremV1::BareMetalNodePool::Representation
1371
1408
  command.request_object = bare_metal_node_pool_object
1372
1409
  command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
1373
1410
  command.response_class = Google::Apis::GkeonpremV1::Operation
1374
1411
  command.params['name'] = name unless name.nil?
1412
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
1375
1413
  command.query['updateMask'] = update_mask unless update_mask.nil?
1376
1414
  command.query['validateOnly'] = validate_only unless validate_only.nil?
1377
1415
  command.query['fields'] = fields unless fields.nil?
@@ -1826,6 +1864,11 @@ module Google
1826
1864
  # @param [String] name
1827
1865
  # Required. Name of the VMware admin cluster to be returned. Format: "projects/`
1828
1866
  # project`/locations/`location`/vmwareAdminClusters/`vmware_admin_cluster`"
1867
+ # @param [String] view
1868
+ # View for VMware admin cluster. When `BASIC` is specified, only the cluster
1869
+ # resource name and membership are returned. The default/unset value `
1870
+ # CLUSTER_VIEW_UNSPECIFIED` is the same as `FULL', which returns the complete
1871
+ # cluster configuration details.
1829
1872
  # @param [String] fields
1830
1873
  # Selector specifying which fields to include in a partial response.
1831
1874
  # @param [String] quota_user
@@ -1843,11 +1886,12 @@ module Google
1843
1886
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1844
1887
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1845
1888
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1846
- def get_project_location_vmware_admin_cluster(name, fields: nil, quota_user: nil, options: nil, &block)
1889
+ def get_project_location_vmware_admin_cluster(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
1847
1890
  command = make_simple_command(:get, 'v1/{+name}', options)
1848
1891
  command.response_representation = Google::Apis::GkeonpremV1::VmwareAdminCluster::Representation
1849
1892
  command.response_class = Google::Apis::GkeonpremV1::VmwareAdminCluster
1850
1893
  command.params['name'] = name unless name.nil?
1894
+ command.query['view'] = view unless view.nil?
1851
1895
  command.query['fields'] = fields unless fields.nil?
1852
1896
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1853
1897
  execute_or_queue_command(command, &block)
@@ -2181,7 +2225,7 @@ module Google
2181
2225
  execute_or_queue_command(command, &block)
2182
2226
  end
2183
2227
 
2184
- # Creates a new VMware cluster in a given project and location.
2228
+ # Creates a new VMware user cluster in a given project and location.
2185
2229
  # @param [String] parent
2186
2230
  # Required. The parent of the project and location where this cluster is created
2187
2231
  # in. Format: "projects/`project`/locations/`location`"
@@ -2319,6 +2363,11 @@ module Google
2319
2363
  # @param [String] name
2320
2364
  # Required. Name of the VMware user cluster to be returned. Format: "projects/`
2321
2365
  # project`/locations/`location`/vmwareClusters/`vmware_cluster`"
2366
+ # @param [String] view
2367
+ # View for VMware user cluster. When `BASIC` is specified, only the cluster
2368
+ # resource name and admin cluster membership are returned. The default/unset
2369
+ # value `CLUSTER_VIEW_UNSPECIFIED` is the same as `FULL', which returns the
2370
+ # complete cluster configuration details.
2322
2371
  # @param [String] fields
2323
2372
  # Selector specifying which fields to include in a partial response.
2324
2373
  # @param [String] quota_user
@@ -2336,11 +2385,12 @@ module Google
2336
2385
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2337
2386
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2338
2387
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2339
- def get_project_location_vmware_cluster(name, fields: nil, quota_user: nil, options: nil, &block)
2388
+ def get_project_location_vmware_cluster(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
2340
2389
  command = make_simple_command(:get, 'v1/{+name}', options)
2341
2390
  command.response_representation = Google::Apis::GkeonpremV1::VmwareCluster::Representation
2342
2391
  command.response_class = Google::Apis::GkeonpremV1::VmwareCluster
2343
2392
  command.params['name'] = name unless name.nil?
2393
+ command.query['view'] = view unless view.nil?
2344
2394
  command.query['fields'] = fields unless fields.nil?
2345
2395
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2346
2396
  execute_or_queue_command(command, &block)
@@ -2860,6 +2910,11 @@ module Google
2860
2910
  # @param [String] name
2861
2911
  # Required. The name of the node pool to retrieve. projects/`project`/locations/`
2862
2912
  # location`/vmwareClusters/`cluster`/vmwareNodePools/`nodepool`
2913
+ # @param [String] view
2914
+ # View for VMware node pool. When `BASIC` is specified, only the node pool
2915
+ # resource name is returned. The default/unset value `NODE_POOL_VIEW_UNSPECIFIED`
2916
+ # is the same as `FULL', which returns the complete node pool configuration
2917
+ # details.
2863
2918
  # @param [String] fields
2864
2919
  # Selector specifying which fields to include in a partial response.
2865
2920
  # @param [String] quota_user
@@ -2877,11 +2932,12 @@ module Google
2877
2932
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2878
2933
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2879
2934
  # @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)
2935
+ def get_project_location_vmware_cluster_vmware_node_pool(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
2881
2936
  command = make_simple_command(:get, 'v1/{+name}', options)
2882
2937
  command.response_representation = Google::Apis::GkeonpremV1::VmwareNodePool::Representation
2883
2938
  command.response_class = Google::Apis::GkeonpremV1::VmwareNodePool
2884
2939
  command.params['name'] = name unless name.nil?
2940
+ command.query['view'] = view unless view.nil?
2885
2941
  command.query['fields'] = fields unless fields.nil?
2886
2942
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2887
2943
  execute_or_queue_command(command, &block)
@@ -2945,6 +3001,11 @@ module Google
2945
3001
  # this to retrieve the subsequent page. When paginating, all other parameters
2946
3002
  # provided to `ListVmwareNodePools` must match the call that provided the page
2947
3003
  # token.
3004
+ # @param [String] view
3005
+ # View for VMware node pools. When `BASIC` is specified, only the node pool
3006
+ # resource name is returned. The default/unset value `NODE_POOL_VIEW_UNSPECIFIED`
3007
+ # is the same as `FULL', which returns the complete node pool configuration
3008
+ # details.
2948
3009
  # @param [String] fields
2949
3010
  # Selector specifying which fields to include in a partial response.
2950
3011
  # @param [String] quota_user
@@ -2962,13 +3023,14 @@ module Google
2962
3023
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2963
3024
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2964
3025
  # @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)
3026
+ def list_project_location_vmware_cluster_vmware_node_pools(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
2966
3027
  command = make_simple_command(:get, 'v1/{+parent}/vmwareNodePools', options)
2967
3028
  command.response_representation = Google::Apis::GkeonpremV1::ListVmwareNodePoolsResponse::Representation
2968
3029
  command.response_class = Google::Apis::GkeonpremV1::ListVmwareNodePoolsResponse
2969
3030
  command.params['parent'] = parent unless parent.nil?
2970
3031
  command.query['pageSize'] = page_size unless page_size.nil?
2971
3032
  command.query['pageToken'] = page_token unless page_token.nil?
3033
+ command.query['view'] = view unless view.nil?
2972
3034
  command.query['fields'] = fields unless fields.nil?
2973
3035
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2974
3036
  execute_or_queue_command(command, &block)
@@ -3098,6 +3160,9 @@ module Google
3098
3160
  # @param [String] name
3099
3161
  # Required. The name of the node pool to unenroll. Format: projects/`project`/
3100
3162
  # locations/`location`/vmwareClusters/`cluster`/vmwareNodePools/`nodepool`
3163
+ # @param [Boolean] allow_missing
3164
+ # If set to true, and the VMware node pool is not found, the request will
3165
+ # succeed but no action will be taken on the server and return a completed LRO.
3101
3166
  # @param [String] etag
3102
3167
  # The current etag of the VMware node pool. If an etag is provided and does not
3103
3168
  # match the current etag of node pool, deletion will be blocked and an ABORTED
@@ -3121,11 +3186,12 @@ module Google
3121
3186
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3122
3187
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3123
3188
  # @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)
3189
+ def unenroll_project_location_vmware_cluster_vmware_node_pool(name, allow_missing: nil, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
3125
3190
  command = make_simple_command(:delete, 'v1/{+name}:unenroll', options)
3126
3191
  command.response_representation = Google::Apis::GkeonpremV1::Operation::Representation
3127
3192
  command.response_class = Google::Apis::GkeonpremV1::Operation
3128
3193
  command.params['name'] = name unless name.nil?
3194
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
3129
3195
  command.query['etag'] = etag unless etag.nil?
3130
3196
  command.query['validateOnly'] = validate_only unless validate_only.nil?
3131
3197
  command.query['fields'] = fields unless fields.nil?
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.2.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-14 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.2.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: []