google-apis-container_v1 0.43.0 → 0.94.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.
@@ -31,8 +31,10 @@ module Google
31
31
  # Container = Google::Apis::ContainerV1 # Alias the module
32
32
  # service = Container::ContainerService.new
33
33
  #
34
- # @see https://cloud.google.com/container-engine/
34
+ # @see https://cloud.google.com/kubernetes-engine/docs/
35
35
  class ContainerService < Google::Apis::Core::BaseService
36
+ DEFAULT_ENDPOINT_TEMPLATE = "https://container.$UNIVERSE_DOMAIN$/"
37
+
36
38
  # @return [String]
37
39
  # API key. Your API key identifies your project and provides you with API access,
38
40
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -44,7 +46,7 @@ module Google
44
46
  attr_accessor :quota_user
45
47
 
46
48
  def initialize
47
- super('https://container.googleapis.com/', '',
49
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
48
50
  client_name: 'google-apis-container_v1',
49
51
  client_version: Google::Apis::ContainerV1::GEM_VERSION)
50
52
  @batch_path = 'batch'
@@ -138,6 +140,38 @@ module Google
138
140
  execute_or_queue_command(command, &block)
139
141
  end
140
142
 
143
+ # Checks the cluster compatibility with Autopilot mode, and returns a list of
144
+ # compatibility issues.
145
+ # @param [String] name
146
+ # The name (project, location, cluster) of the cluster to retrieve. Specified in
147
+ # the format `projects/*/locations/*/clusters/*`.
148
+ # @param [String] fields
149
+ # Selector specifying which fields to include in a partial response.
150
+ # @param [String] quota_user
151
+ # Available to use for quota purposes for server-side applications. Can be any
152
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
153
+ # @param [Google::Apis::RequestOptions] options
154
+ # Request-specific options
155
+ #
156
+ # @yield [result, err] Result & error if block supplied
157
+ # @yieldparam result [Google::Apis::ContainerV1::CheckAutopilotCompatibilityResponse] parsed result object
158
+ # @yieldparam err [StandardError] error object if request failed
159
+ #
160
+ # @return [Google::Apis::ContainerV1::CheckAutopilotCompatibilityResponse]
161
+ #
162
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
163
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
164
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
165
+ def check_project_location_cluster_autopilot_compatibility(name, fields: nil, quota_user: nil, options: nil, &block)
166
+ command = make_simple_command(:get, 'v1/{+name}:checkAutopilotCompatibility', options)
167
+ command.response_representation = Google::Apis::ContainerV1::CheckAutopilotCompatibilityResponse::Representation
168
+ command.response_class = Google::Apis::ContainerV1::CheckAutopilotCompatibilityResponse
169
+ command.params['name'] = name unless name.nil?
170
+ command.query['fields'] = fields unless fields.nil?
171
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
172
+ execute_or_queue_command(command, &block)
173
+ end
174
+
141
175
  # Completes master IP rotation.
142
176
  # @param [String] name
143
177
  # The name (project, location, cluster name) of the cluster to complete IP
@@ -262,6 +296,41 @@ module Google
262
296
  execute_or_queue_command(command, &block)
263
297
  end
264
298
 
299
+ # Fetch upgrade information of a specific cluster.
300
+ # @param [String] name
301
+ # Required. The name (project, location, cluster) of the cluster to get.
302
+ # Specified in the format `projects/*/locations/*/clusters/*` or `projects/*/
303
+ # zones/*/clusters/*`.
304
+ # @param [String] version
305
+ # API request version that initiates this operation.
306
+ # @param [String] fields
307
+ # Selector specifying which fields to include in a partial response.
308
+ # @param [String] quota_user
309
+ # Available to use for quota purposes for server-side applications. Can be any
310
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
311
+ # @param [Google::Apis::RequestOptions] options
312
+ # Request-specific options
313
+ #
314
+ # @yield [result, err] Result & error if block supplied
315
+ # @yieldparam result [Google::Apis::ContainerV1::ClusterUpgradeInfo] parsed result object
316
+ # @yieldparam err [StandardError] error object if request failed
317
+ #
318
+ # @return [Google::Apis::ContainerV1::ClusterUpgradeInfo]
319
+ #
320
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
321
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
322
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
323
+ def fetch_project_location_cluster_cluster_upgrade_info(name, version: nil, fields: nil, quota_user: nil, options: nil, &block)
324
+ command = make_simple_command(:get, 'v1/{+name}:fetchClusterUpgradeInfo', options)
325
+ command.response_representation = Google::Apis::ContainerV1::ClusterUpgradeInfo::Representation
326
+ command.response_class = Google::Apis::ContainerV1::ClusterUpgradeInfo
327
+ command.params['name'] = name unless name.nil?
328
+ command.query['version'] = version unless version.nil?
329
+ command.query['fields'] = fields unless fields.nil?
330
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
331
+ execute_or_queue_command(command, &block)
332
+ end
333
+
265
334
  # Gets the details of a specific cluster.
266
335
  # @param [String] name
267
336
  # The name (project, location, cluster) of the cluster to retrieve. Specified in
@@ -308,8 +377,6 @@ module Google
308
377
  end
309
378
 
310
379
  # Gets the public component of the cluster signing keys in JSON Web Key format.
311
- # This API is not yet intended for general use, and is not available for all
312
- # clusters.
313
380
  # @param [String] parent
314
381
  # The cluster (project, location, cluster name) to get keys for. Specified in
315
382
  # the format `projects/*/locations/*/clusters/*`.
@@ -913,6 +980,41 @@ module Google
913
980
  execute_or_queue_command(command, &block)
914
981
  end
915
982
 
983
+ # Fetch upgrade information of a specific nodepool.
984
+ # @param [String] name
985
+ # Required. The name (project, location, cluster, nodepool) of the nodepool to
986
+ # get. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`
987
+ # or `projects/*/zones/*/clusters/*/nodePools/*`.
988
+ # @param [String] version
989
+ # API request version that initiates this operation.
990
+ # @param [String] fields
991
+ # Selector specifying which fields to include in a partial response.
992
+ # @param [String] quota_user
993
+ # Available to use for quota purposes for server-side applications. Can be any
994
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
995
+ # @param [Google::Apis::RequestOptions] options
996
+ # Request-specific options
997
+ #
998
+ # @yield [result, err] Result & error if block supplied
999
+ # @yieldparam result [Google::Apis::ContainerV1::NodePoolUpgradeInfo] parsed result object
1000
+ # @yieldparam err [StandardError] error object if request failed
1001
+ #
1002
+ # @return [Google::Apis::ContainerV1::NodePoolUpgradeInfo]
1003
+ #
1004
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1005
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1006
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1007
+ def fetch_project_location_cluster_node_pool_node_pool_upgrade_info(name, version: nil, fields: nil, quota_user: nil, options: nil, &block)
1008
+ command = make_simple_command(:get, 'v1/{+name}:fetchNodePoolUpgradeInfo', options)
1009
+ command.response_representation = Google::Apis::ContainerV1::NodePoolUpgradeInfo::Representation
1010
+ command.response_class = Google::Apis::ContainerV1::NodePoolUpgradeInfo
1011
+ command.params['name'] = name unless name.nil?
1012
+ command.query['version'] = version unless version.nil?
1013
+ command.query['fields'] = fields unless fields.nil?
1014
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1015
+ execute_or_queue_command(command, &block)
1016
+ end
1017
+
916
1018
  # Retrieves the requested node pool.
917
1019
  # @param [String] name
918
1020
  # The name (project, location, cluster, node pool id) of the node pool to get.
@@ -1184,8 +1286,7 @@ module Google
1184
1286
 
1185
1287
  # Gets the OIDC discovery document for the cluster. See the [OpenID Connect
1186
1288
  # Discovery 1.0 specification](https://openid.net/specs/openid-connect-discovery-
1187
- # 1_0.html) for details. This API is not yet intended for general use, and is
1188
- # not available for all clusters.
1289
+ # 1_0.html) for details.
1189
1290
  # @param [String] parent
1190
1291
  # The cluster (project, location, cluster name) to get the discovery document
1191
1292
  # for. Specified in the format `projects/*/locations/*/clusters/*`.
@@ -1562,6 +1663,41 @@ module Google
1562
1663
  execute_or_queue_command(command, &block)
1563
1664
  end
1564
1665
 
1666
+ # Fetch upgrade information of a specific cluster.
1667
+ # @param [String] name
1668
+ # Required. The name (project, location, cluster) of the cluster to get.
1669
+ # Specified in the format `projects/*/locations/*/clusters/*` or `projects/*/
1670
+ # zones/*/clusters/*`.
1671
+ # @param [String] version
1672
+ # API request version that initiates this operation.
1673
+ # @param [String] fields
1674
+ # Selector specifying which fields to include in a partial response.
1675
+ # @param [String] quota_user
1676
+ # Available to use for quota purposes for server-side applications. Can be any
1677
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1678
+ # @param [Google::Apis::RequestOptions] options
1679
+ # Request-specific options
1680
+ #
1681
+ # @yield [result, err] Result & error if block supplied
1682
+ # @yieldparam result [Google::Apis::ContainerV1::ClusterUpgradeInfo] parsed result object
1683
+ # @yieldparam err [StandardError] error object if request failed
1684
+ #
1685
+ # @return [Google::Apis::ContainerV1::ClusterUpgradeInfo]
1686
+ #
1687
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1688
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1689
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1690
+ def fetch_project_zone_cluster_cluster_upgrade_info(name, version: nil, fields: nil, quota_user: nil, options: nil, &block)
1691
+ command = make_simple_command(:get, 'v1/{+name}:fetchClusterUpgradeInfo', options)
1692
+ command.response_representation = Google::Apis::ContainerV1::ClusterUpgradeInfo::Representation
1693
+ command.response_class = Google::Apis::ContainerV1::ClusterUpgradeInfo
1694
+ command.params['name'] = name unless name.nil?
1695
+ command.query['version'] = version unless version.nil?
1696
+ command.query['fields'] = fields unless fields.nil?
1697
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1698
+ execute_or_queue_command(command, &block)
1699
+ end
1700
+
1565
1701
  # Gets the details of a specific cluster.
1566
1702
  # @param [String] project_id
1567
1703
  # Deprecated. The Google Developers Console [project ID or project number](https:
@@ -2276,6 +2412,41 @@ module Google
2276
2412
  execute_or_queue_command(command, &block)
2277
2413
  end
2278
2414
 
2415
+ # Fetch upgrade information of a specific nodepool.
2416
+ # @param [String] name
2417
+ # Required. The name (project, location, cluster, nodepool) of the nodepool to
2418
+ # get. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`
2419
+ # or `projects/*/zones/*/clusters/*/nodePools/*`.
2420
+ # @param [String] version
2421
+ # API request version that initiates this operation.
2422
+ # @param [String] fields
2423
+ # Selector specifying which fields to include in a partial response.
2424
+ # @param [String] quota_user
2425
+ # Available to use for quota purposes for server-side applications. Can be any
2426
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2427
+ # @param [Google::Apis::RequestOptions] options
2428
+ # Request-specific options
2429
+ #
2430
+ # @yield [result, err] Result & error if block supplied
2431
+ # @yieldparam result [Google::Apis::ContainerV1::NodePoolUpgradeInfo] parsed result object
2432
+ # @yieldparam err [StandardError] error object if request failed
2433
+ #
2434
+ # @return [Google::Apis::ContainerV1::NodePoolUpgradeInfo]
2435
+ #
2436
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2437
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2438
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2439
+ def fetch_project_zone_cluster_node_pool_node_pool_upgrade_info(name, version: nil, fields: nil, quota_user: nil, options: nil, &block)
2440
+ command = make_simple_command(:get, 'v1/{+name}:fetchNodePoolUpgradeInfo', options)
2441
+ command.response_representation = Google::Apis::ContainerV1::NodePoolUpgradeInfo::Representation
2442
+ command.response_class = Google::Apis::ContainerV1::NodePoolUpgradeInfo
2443
+ command.params['name'] = name unless name.nil?
2444
+ command.query['version'] = version unless version.nil?
2445
+ command.query['fields'] = fields unless fields.nil?
2446
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2447
+ execute_or_queue_command(command, &block)
2448
+ end
2449
+
2279
2450
  # Retrieves the requested node pool.
2280
2451
  # @param [String] project_id
2281
2452
  # Deprecated. The Google Developers Console [project ID or project number](https:
@@ -24,7 +24,7 @@ module Google
24
24
  # Builds and manages container-based applications, powered by the open source
25
25
  # Kubernetes technology.
26
26
  #
27
- # @see https://cloud.google.com/container-engine/
27
+ # @see https://cloud.google.com/kubernetes-engine/docs/
28
28
  module ContainerV1
29
29
  # Version of the Kubernetes Engine API this client connects to.
30
30
  # This is NOT the gem version.
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-container_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.43.0
4
+ version: 0.94.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-01-08 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-apis-core
@@ -16,7 +15,7 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: 0.9.1
18
+ version: 0.15.0
20
19
  - - "<"
21
20
  - !ruby/object:Gem::Version
22
21
  version: 2.a
@@ -26,7 +25,7 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- version: 0.9.1
28
+ version: 0.15.0
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
31
  version: 2.a
@@ -58,9 +57,8 @@ licenses:
58
57
  metadata:
59
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-container_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-container_v1/v0.43.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-container_v1/v0.94.0
62
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-container_v1
63
- post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
@@ -68,15 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
66
  requirements:
69
67
  - - ">="
70
68
  - !ruby/object:Gem::Version
71
- version: '2.5'
69
+ version: '3.1'
72
70
  required_rubygems_version: !ruby/object:Gem::Requirement
73
71
  requirements:
74
72
  - - ">="
75
73
  - !ruby/object:Gem::Version
76
74
  version: '0'
77
75
  requirements: []
78
- rubygems_version: 3.4.2
79
- signing_key:
76
+ rubygems_version: 3.6.8
80
77
  specification_version: 4
81
78
  summary: Simple REST client for Kubernetes Engine API V1
82
79
  test_files: []