Skip to content

Commit d14f341

Browse files
feat: Automated regeneration of container v1beta1 client (#20867)
Auto-created at 2024-12-02 23:21:09 +0000 using the toys pull request generator.
1 parent b340213 commit d14f341

File tree

8 files changed

+1239
-23
lines changed

8 files changed

+1239
-23
lines changed

api_names_out.yaml

Lines changed: 112 additions & 0 deletions
Large diffs are not rendered by default.

generated/google-apis-container_v1beta1/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release history for google-apis-container_v1beta1
22

3+
### v0.76.0 (2024-12-02)
4+
5+
* Regenerated from discovery document revision 20241112
6+
* Regenerated using generator version 0.15.1
7+
38
### v0.75.0 (2024-07-25)
49

510
* Regenerated from discovery document revision 20240708

generated/google-apis-container_v1beta1/OVERVIEW.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Gem names for modern clients are often of the form `google-cloud-<service_name>`
7979

8080
**For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
8181

82-
The [product documentation](https://cloud.google.com/container-engine/) may provide guidance regarding the preferred client library to use.
82+
The [product documentation](https://cloud.google.com/kubernetes-engine/docs/) may provide guidance regarding the preferred client library to use.
8383

8484
## Supported Ruby versions
8585

generated/google-apis-container_v1beta1/lib/google/apis/container_v1beta1.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module Apis
2424
# Builds and manages container-based applications, powered by the open source
2525
# Kubernetes technology.
2626
#
27-
# @see https://cloud.google.com/container-engine/
27+
# @see https://cloud.google.com/kubernetes-engine/docs/
2828
module ContainerV1beta1
2929
# Version of the Kubernetes Engine API this client connects to.
3030
# This is NOT the gem version.

generated/google-apis-container_v1beta1/lib/google/apis/container_v1beta1/classes.rb

Lines changed: 724 additions & 17 deletions
Large diffs are not rendered by default.

generated/google-apis-container_v1beta1/lib/google/apis/container_v1beta1/gem_version.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module ContainerV1beta1
1818
# Version of the google-apis-container_v1beta1 gem
19-
GEM_VERSION = "0.75.0"
19+
GEM_VERSION = "0.76.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.15.0"
22+
GENERATOR_VERSION = "0.15.1"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20240708"
25+
REVISION = "20241112"
2626
end
2727
end
2828
end

generated/google-apis-container_v1beta1/lib/google/apis/container_v1beta1/representations.rb

Lines changed: 252 additions & 0 deletions
Large diffs are not rendered by default.

generated/google-apis-container_v1beta1/lib/google/apis/container_v1beta1/service.rb

Lines changed: 141 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module ContainerV1beta1
3131
# Container = Google::Apis::ContainerV1beta1 # Alias the module
3232
# service = Container::ContainerService.new
3333
#
34-
# @see https://cloud.google.com/container-engine/
34+
# @see https://cloud.google.com/kubernetes-engine/docs/
3535
class ContainerService < Google::Apis::Core::BaseService
3636
DEFAULT_ENDPOINT_TEMPLATE = "https://container.$UNIVERSE_DOMAIN$/"
3737

@@ -327,6 +327,41 @@ def delete_project_location_cluster(name, cluster_id: nil, project_id: nil, zone
327327
execute_or_queue_command(command, &block)
328328
end
329329

330+
# Fetch upgrade information of a specific cluster.
331+
# @param [String] name
332+
# Required. The name (project, location, cluster) of the cluster to get.
333+
# Specified in the format `projects/*/locations/*/clusters/*` or `projects/*/
334+
# zones/*/clusters/*`.
335+
# @param [String] version
336+
# API request version that initiates this operation.
337+
# @param [String] fields
338+
# Selector specifying which fields to include in a partial response.
339+
# @param [String] quota_user
340+
# Available to use for quota purposes for server-side applications. Can be any
341+
# arbitrary string assigned to a user, but should not exceed 40 characters.
342+
# @param [Google::Apis::RequestOptions] options
343+
# Request-specific options
344+
#
345+
# @yield [result, err] Result & error if block supplied
346+
# @yieldparam result [Google::Apis::ContainerV1beta1::ClusterUpgradeInfo] parsed result object
347+
# @yieldparam err [StandardError] error object if request failed
348+
#
349+
# @return [Google::Apis::ContainerV1beta1::ClusterUpgradeInfo]
350+
#
351+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
352+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
353+
# @raise [Google::Apis::AuthorizationError] Authorization is required
354+
def fetch_project_location_cluster_cluster_upgrade_info(name, version: nil, fields: nil, quota_user: nil, options: nil, &block)
355+
command = make_simple_command(:get, 'v1beta1/{+name}:fetchClusterUpgradeInfo', options)
356+
command.response_representation = Google::Apis::ContainerV1beta1::ClusterUpgradeInfo::Representation
357+
command.response_class = Google::Apis::ContainerV1beta1::ClusterUpgradeInfo
358+
command.params['name'] = name unless name.nil?
359+
command.query['version'] = version unless version.nil?
360+
command.query['fields'] = fields unless fields.nil?
361+
command.query['quotaUser'] = quota_user unless quota_user.nil?
362+
execute_or_queue_command(command, &block)
363+
end
364+
330365
# Gets the details for a specific cluster.
331366
# @param [String] name
332367
# The name (project, location, cluster) of the cluster to retrieve. Specified in
@@ -977,6 +1012,41 @@ def delete_project_location_cluster_node_pool(name, cluster_id: nil, node_pool_i
9771012
execute_or_queue_command(command, &block)
9781013
end
9791014

1015+
# Fetch upgrade information of a specific nodepool.
1016+
# @param [String] name
1017+
# Required. The name (project, location, cluster, nodepool) of the nodepool to
1018+
# get. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`
1019+
# or `projects/*/zones/*/clusters/*/nodePools/*`.
1020+
# @param [String] version
1021+
# API request version that initiates this operation.
1022+
# @param [String] fields
1023+
# Selector specifying which fields to include in a partial response.
1024+
# @param [String] quota_user
1025+
# Available to use for quota purposes for server-side applications. Can be any
1026+
# arbitrary string assigned to a user, but should not exceed 40 characters.
1027+
# @param [Google::Apis::RequestOptions] options
1028+
# Request-specific options
1029+
#
1030+
# @yield [result, err] Result & error if block supplied
1031+
# @yieldparam result [Google::Apis::ContainerV1beta1::NodePoolUpgradeInfo] parsed result object
1032+
# @yieldparam err [StandardError] error object if request failed
1033+
#
1034+
# @return [Google::Apis::ContainerV1beta1::NodePoolUpgradeInfo]
1035+
#
1036+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1037+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1038+
# @raise [Google::Apis::AuthorizationError] Authorization is required
1039+
def fetch_project_location_cluster_node_pool_node_pool_upgrade_info(name, version: nil, fields: nil, quota_user: nil, options: nil, &block)
1040+
command = make_simple_command(:get, 'v1beta1/{+name}:fetchNodePoolUpgradeInfo', options)
1041+
command.response_representation = Google::Apis::ContainerV1beta1::NodePoolUpgradeInfo::Representation
1042+
command.response_class = Google::Apis::ContainerV1beta1::NodePoolUpgradeInfo
1043+
command.params['name'] = name unless name.nil?
1044+
command.query['version'] = version unless version.nil?
1045+
command.query['fields'] = fields unless fields.nil?
1046+
command.query['quotaUser'] = quota_user unless quota_user.nil?
1047+
execute_or_queue_command(command, &block)
1048+
end
1049+
9801050
# Retrieves the requested node pool.
9811051
# @param [String] name
9821052
# The name (project, location, cluster, node pool id) of the node pool to get.
@@ -1627,6 +1697,41 @@ def delete_zone_cluster(project_id, zone, cluster_id, name: nil, fields: nil, qu
16271697
execute_or_queue_command(command, &block)
16281698
end
16291699

1700+
# Fetch upgrade information of a specific cluster.
1701+
# @param [String] name
1702+
# Required. The name (project, location, cluster) of the cluster to get.
1703+
# Specified in the format `projects/*/locations/*/clusters/*` or `projects/*/
1704+
# zones/*/clusters/*`.
1705+
# @param [String] version
1706+
# API request version that initiates this operation.
1707+
# @param [String] fields
1708+
# Selector specifying which fields to include in a partial response.
1709+
# @param [String] quota_user
1710+
# Available to use for quota purposes for server-side applications. Can be any
1711+
# arbitrary string assigned to a user, but should not exceed 40 characters.
1712+
# @param [Google::Apis::RequestOptions] options
1713+
# Request-specific options
1714+
#
1715+
# @yield [result, err] Result & error if block supplied
1716+
# @yieldparam result [Google::Apis::ContainerV1beta1::ClusterUpgradeInfo] parsed result object
1717+
# @yieldparam err [StandardError] error object if request failed
1718+
#
1719+
# @return [Google::Apis::ContainerV1beta1::ClusterUpgradeInfo]
1720+
#
1721+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1722+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1723+
# @raise [Google::Apis::AuthorizationError] Authorization is required
1724+
def fetch_project_zone_cluster_cluster_upgrade_info(name, version: nil, fields: nil, quota_user: nil, options: nil, &block)
1725+
command = make_simple_command(:get, 'v1beta1/{+name}:fetchClusterUpgradeInfo', options)
1726+
command.response_representation = Google::Apis::ContainerV1beta1::ClusterUpgradeInfo::Representation
1727+
command.response_class = Google::Apis::ContainerV1beta1::ClusterUpgradeInfo
1728+
command.params['name'] = name unless name.nil?
1729+
command.query['version'] = version unless version.nil?
1730+
command.query['fields'] = fields unless fields.nil?
1731+
command.query['quotaUser'] = quota_user unless quota_user.nil?
1732+
execute_or_queue_command(command, &block)
1733+
end
1734+
16301735
# Gets the details for a specific cluster.
16311736
# @param [String] project_id
16321737
# Required. Deprecated. The Google Developers Console [project ID or project
@@ -2342,6 +2447,41 @@ def delete_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_poo
23422447
execute_or_queue_command(command, &block)
23432448
end
23442449

2450+
# Fetch upgrade information of a specific nodepool.
2451+
# @param [String] name
2452+
# Required. The name (project, location, cluster, nodepool) of the nodepool to
2453+
# get. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`
2454+
# or `projects/*/zones/*/clusters/*/nodePools/*`.
2455+
# @param [String] version
2456+
# API request version that initiates this operation.
2457+
# @param [String] fields
2458+
# Selector specifying which fields to include in a partial response.
2459+
# @param [String] quota_user
2460+
# Available to use for quota purposes for server-side applications. Can be any
2461+
# arbitrary string assigned to a user, but should not exceed 40 characters.
2462+
# @param [Google::Apis::RequestOptions] options
2463+
# Request-specific options
2464+
#
2465+
# @yield [result, err] Result & error if block supplied
2466+
# @yieldparam result [Google::Apis::ContainerV1beta1::NodePoolUpgradeInfo] parsed result object
2467+
# @yieldparam err [StandardError] error object if request failed
2468+
#
2469+
# @return [Google::Apis::ContainerV1beta1::NodePoolUpgradeInfo]
2470+
#
2471+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2472+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2473+
# @raise [Google::Apis::AuthorizationError] Authorization is required
2474+
def fetch_project_zone_cluster_node_pool_node_pool_upgrade_info(name, version: nil, fields: nil, quota_user: nil, options: nil, &block)
2475+
command = make_simple_command(:get, 'v1beta1/{+name}:fetchNodePoolUpgradeInfo', options)
2476+
command.response_representation = Google::Apis::ContainerV1beta1::NodePoolUpgradeInfo::Representation
2477+
command.response_class = Google::Apis::ContainerV1beta1::NodePoolUpgradeInfo
2478+
command.params['name'] = name unless name.nil?
2479+
command.query['version'] = version unless version.nil?
2480+
command.query['fields'] = fields unless fields.nil?
2481+
command.query['quotaUser'] = quota_user unless quota_user.nil?
2482+
execute_or_queue_command(command, &block)
2483+
end
2484+
23452485
# Retrieves the requested node pool.
23462486
# @param [String] project_id
23472487
# Required. Deprecated. The Google Developers Console [project ID or project

0 commit comments

Comments
 (0)