Skip to content

Commit 939f50c

Browse files
feat: Automated regeneration of Container client (googleapis#13213)
Auto-created at 2025-03-22 13:11:58 +0000 using the toys pull request generator.
1 parent 38a01cb commit 939f50c

File tree

12 files changed

+540
-8
lines changed

12 files changed

+540
-8
lines changed

clients/container/lib/google_api/container/v1/api/projects.ex

Lines changed: 288 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,78 @@ defmodule GoogleApi.Container.V1.Api.Projects do
469469
|> Response.decode(opts ++ [struct: %GoogleApi.Container.V1.Model.Operation{}])
470470
end
471471

472+
@doc """
473+
Fetch upgrade information of a specific cluster.
474+
475+
## Parameters
476+
477+
* `connection` (*type:* `GoogleApi.Container.V1.Connection.t`) - Connection to server
478+
* `name` (*type:* `String.t`) - Required. The name (project, location, cluster) of the cluster to get. Specified in the format `projects/*/locations/*/clusters/*` or `projects/*/zones/*/clusters/*`.
479+
* `optional_params` (*type:* `keyword()`) - Optional parameters
480+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
481+
* `:access_token` (*type:* `String.t`) - OAuth access token.
482+
* `:alt` (*type:* `String.t`) - Data format for response.
483+
* `:callback` (*type:* `String.t`) - JSONP
484+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
485+
* `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
486+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
487+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
488+
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
489+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
490+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
491+
* `:version` (*type:* `String.t`) - API request version that initiates this operation.
492+
* `opts` (*type:* `keyword()`) - Call options
493+
494+
## Returns
495+
496+
* `{:ok, %GoogleApi.Container.V1.Model.ClusterUpgradeInfo{}}` on success
497+
* `{:error, info}` on failure
498+
"""
499+
@spec container_projects_locations_clusters_fetch_cluster_upgrade_info(
500+
Tesla.Env.client(),
501+
String.t(),
502+
keyword(),
503+
keyword()
504+
) ::
505+
{:ok, GoogleApi.Container.V1.Model.ClusterUpgradeInfo.t()}
506+
| {:ok, Tesla.Env.t()}
507+
| {:ok, list()}
508+
| {:error, any()}
509+
def container_projects_locations_clusters_fetch_cluster_upgrade_info(
510+
connection,
511+
name,
512+
optional_params \\ [],
513+
opts \\ []
514+
) do
515+
optional_params_config = %{
516+
:"$.xgafv" => :query,
517+
:access_token => :query,
518+
:alt => :query,
519+
:callback => :query,
520+
:fields => :query,
521+
:key => :query,
522+
:oauth_token => :query,
523+
:prettyPrint => :query,
524+
:quotaUser => :query,
525+
:uploadType => :query,
526+
:upload_protocol => :query,
527+
:version => :query
528+
}
529+
530+
request =
531+
Request.new()
532+
|> Request.method(:get)
533+
|> Request.url("/v1/{+name}:fetchClusterUpgradeInfo", %{
534+
"name" => URI.encode(name, &URI.char_unreserved?/1)
535+
})
536+
|> Request.add_optional_params(optional_params_config, optional_params)
537+
|> Request.library_version(@library_version)
538+
539+
connection
540+
|> Connection.execute(request)
541+
|> Response.decode(opts ++ [struct: %GoogleApi.Container.V1.Model.ClusterUpgradeInfo{}])
542+
end
543+
472544
@doc """
473545
Gets the details of a specific cluster.
474546
@@ -1775,6 +1847,78 @@ defmodule GoogleApi.Container.V1.Api.Projects do
17751847
|> Response.decode(opts ++ [struct: %GoogleApi.Container.V1.Model.Operation{}])
17761848
end
17771849

1850+
@doc """
1851+
Fetch upgrade information of a specific nodepool.
1852+
1853+
## Parameters
1854+
1855+
* `connection` (*type:* `GoogleApi.Container.V1.Connection.t`) - Connection to server
1856+
* `name` (*type:* `String.t`) - Required. The name (project, location, cluster, nodepool) of the nodepool to get. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*` or `projects/*/zones/*/clusters/*/nodePools/*`.
1857+
* `optional_params` (*type:* `keyword()`) - Optional parameters
1858+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
1859+
* `:access_token` (*type:* `String.t`) - OAuth access token.
1860+
* `:alt` (*type:* `String.t`) - Data format for response.
1861+
* `:callback` (*type:* `String.t`) - JSONP
1862+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
1863+
* `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
1864+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
1865+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
1866+
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
1867+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
1868+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
1869+
* `:version` (*type:* `String.t`) - API request version that initiates this operation.
1870+
* `opts` (*type:* `keyword()`) - Call options
1871+
1872+
## Returns
1873+
1874+
* `{:ok, %GoogleApi.Container.V1.Model.NodePoolUpgradeInfo{}}` on success
1875+
* `{:error, info}` on failure
1876+
"""
1877+
@spec container_projects_locations_clusters_node_pools_fetch_node_pool_upgrade_info(
1878+
Tesla.Env.client(),
1879+
String.t(),
1880+
keyword(),
1881+
keyword()
1882+
) ::
1883+
{:ok, GoogleApi.Container.V1.Model.NodePoolUpgradeInfo.t()}
1884+
| {:ok, Tesla.Env.t()}
1885+
| {:ok, list()}
1886+
| {:error, any()}
1887+
def container_projects_locations_clusters_node_pools_fetch_node_pool_upgrade_info(
1888+
connection,
1889+
name,
1890+
optional_params \\ [],
1891+
opts \\ []
1892+
) do
1893+
optional_params_config = %{
1894+
:"$.xgafv" => :query,
1895+
:access_token => :query,
1896+
:alt => :query,
1897+
:callback => :query,
1898+
:fields => :query,
1899+
:key => :query,
1900+
:oauth_token => :query,
1901+
:prettyPrint => :query,
1902+
:quotaUser => :query,
1903+
:uploadType => :query,
1904+
:upload_protocol => :query,
1905+
:version => :query
1906+
}
1907+
1908+
request =
1909+
Request.new()
1910+
|> Request.method(:get)
1911+
|> Request.url("/v1/{+name}:fetchNodePoolUpgradeInfo", %{
1912+
"name" => URI.encode(name, &URI.char_unreserved?/1)
1913+
})
1914+
|> Request.add_optional_params(optional_params_config, optional_params)
1915+
|> Request.library_version(@library_version)
1916+
1917+
connection
1918+
|> Connection.execute(request)
1919+
|> Response.decode(opts ++ [struct: %GoogleApi.Container.V1.Model.NodePoolUpgradeInfo{}])
1920+
end
1921+
17781922
@doc """
17791923
Retrieves the requested node pool.
17801924
@@ -2976,6 +3120,78 @@ defmodule GoogleApi.Container.V1.Api.Projects do
29763120
|> Response.decode(opts ++ [struct: %GoogleApi.Container.V1.Model.Operation{}])
29773121
end
29783122

3123+
@doc """
3124+
Fetch upgrade information of a specific cluster.
3125+
3126+
## Parameters
3127+
3128+
* `connection` (*type:* `GoogleApi.Container.V1.Connection.t`) - Connection to server
3129+
* `name` (*type:* `String.t`) - Required. The name (project, location, cluster) of the cluster to get. Specified in the format `projects/*/locations/*/clusters/*` or `projects/*/zones/*/clusters/*`.
3130+
* `optional_params` (*type:* `keyword()`) - Optional parameters
3131+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
3132+
* `:access_token` (*type:* `String.t`) - OAuth access token.
3133+
* `:alt` (*type:* `String.t`) - Data format for response.
3134+
* `:callback` (*type:* `String.t`) - JSONP
3135+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
3136+
* `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
3137+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
3138+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
3139+
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
3140+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
3141+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
3142+
* `:version` (*type:* `String.t`) - API request version that initiates this operation.
3143+
* `opts` (*type:* `keyword()`) - Call options
3144+
3145+
## Returns
3146+
3147+
* `{:ok, %GoogleApi.Container.V1.Model.ClusterUpgradeInfo{}}` on success
3148+
* `{:error, info}` on failure
3149+
"""
3150+
@spec container_projects_zones_clusters_fetch_cluster_upgrade_info(
3151+
Tesla.Env.client(),
3152+
String.t(),
3153+
keyword(),
3154+
keyword()
3155+
) ::
3156+
{:ok, GoogleApi.Container.V1.Model.ClusterUpgradeInfo.t()}
3157+
| {:ok, Tesla.Env.t()}
3158+
| {:ok, list()}
3159+
| {:error, any()}
3160+
def container_projects_zones_clusters_fetch_cluster_upgrade_info(
3161+
connection,
3162+
name,
3163+
optional_params \\ [],
3164+
opts \\ []
3165+
) do
3166+
optional_params_config = %{
3167+
:"$.xgafv" => :query,
3168+
:access_token => :query,
3169+
:alt => :query,
3170+
:callback => :query,
3171+
:fields => :query,
3172+
:key => :query,
3173+
:oauth_token => :query,
3174+
:prettyPrint => :query,
3175+
:quotaUser => :query,
3176+
:uploadType => :query,
3177+
:upload_protocol => :query,
3178+
:version => :query
3179+
}
3180+
3181+
request =
3182+
Request.new()
3183+
|> Request.method(:get)
3184+
|> Request.url("/v1/{+name}:fetchClusterUpgradeInfo", %{
3185+
"name" => URI.encode(name, &URI.char_unreserved?/1)
3186+
})
3187+
|> Request.add_optional_params(optional_params_config, optional_params)
3188+
|> Request.library_version(@library_version)
3189+
3190+
connection
3191+
|> Connection.execute(request)
3192+
|> Response.decode(opts ++ [struct: %GoogleApi.Container.V1.Model.ClusterUpgradeInfo{}])
3193+
end
3194+
29793195
@doc """
29803196
Gets the details of a specific cluster.
29813197
@@ -4281,6 +4497,78 @@ defmodule GoogleApi.Container.V1.Api.Projects do
42814497
|> Response.decode(opts ++ [struct: %GoogleApi.Container.V1.Model.Operation{}])
42824498
end
42834499

4500+
@doc """
4501+
Fetch upgrade information of a specific nodepool.
4502+
4503+
## Parameters
4504+
4505+
* `connection` (*type:* `GoogleApi.Container.V1.Connection.t`) - Connection to server
4506+
* `name` (*type:* `String.t`) - Required. The name (project, location, cluster, nodepool) of the nodepool to get. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*` or `projects/*/zones/*/clusters/*/nodePools/*`.
4507+
* `optional_params` (*type:* `keyword()`) - Optional parameters
4508+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
4509+
* `:access_token` (*type:* `String.t`) - OAuth access token.
4510+
* `:alt` (*type:* `String.t`) - Data format for response.
4511+
* `:callback` (*type:* `String.t`) - JSONP
4512+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
4513+
* `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
4514+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
4515+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
4516+
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
4517+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
4518+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
4519+
* `:version` (*type:* `String.t`) - API request version that initiates this operation.
4520+
* `opts` (*type:* `keyword()`) - Call options
4521+
4522+
## Returns
4523+
4524+
* `{:ok, %GoogleApi.Container.V1.Model.NodePoolUpgradeInfo{}}` on success
4525+
* `{:error, info}` on failure
4526+
"""
4527+
@spec container_projects_zones_clusters_node_pools_fetch_node_pool_upgrade_info(
4528+
Tesla.Env.client(),
4529+
String.t(),
4530+
keyword(),
4531+
keyword()
4532+
) ::
4533+
{:ok, GoogleApi.Container.V1.Model.NodePoolUpgradeInfo.t()}
4534+
| {:ok, Tesla.Env.t()}
4535+
| {:ok, list()}
4536+
| {:error, any()}
4537+
def container_projects_zones_clusters_node_pools_fetch_node_pool_upgrade_info(
4538+
connection,
4539+
name,
4540+
optional_params \\ [],
4541+
opts \\ []
4542+
) do
4543+
optional_params_config = %{
4544+
:"$.xgafv" => :query,
4545+
:access_token => :query,
4546+
:alt => :query,
4547+
:callback => :query,
4548+
:fields => :query,
4549+
:key => :query,
4550+
:oauth_token => :query,
4551+
:prettyPrint => :query,
4552+
:quotaUser => :query,
4553+
:uploadType => :query,
4554+
:upload_protocol => :query,
4555+
:version => :query
4556+
}
4557+
4558+
request =
4559+
Request.new()
4560+
|> Request.method(:get)
4561+
|> Request.url("/v1/{+name}:fetchNodePoolUpgradeInfo", %{
4562+
"name" => URI.encode(name, &URI.char_unreserved?/1)
4563+
})
4564+
|> Request.add_optional_params(optional_params_config, optional_params)
4565+
|> Request.library_version(@library_version)
4566+
4567+
connection
4568+
|> Connection.execute(request)
4569+
|> Response.decode(opts ++ [struct: %GoogleApi.Container.V1.Model.NodePoolUpgradeInfo{}])
4570+
end
4571+
42844572
@doc """
42854573
Retrieves the requested node pool.
42864574

clients/container/lib/google_api/container/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.Container.V1 do
2020
API client metadata for GoogleApi.Container.V1.
2121
"""
2222

23-
@discovery_revision "20250225"
23+
@discovery_revision "20250311"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/container/lib/google_api/container/v1/model/autoprovisioning_node_pool_defaults.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ defmodule GoogleApi.Container.V1.Model.AutoprovisioningNodePoolDefaults do
2525
* `diskSizeGb` (*type:* `integer()`, *default:* `nil`) - Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. If unspecified, the default disk size is 100GB.
2626
* `diskType` (*type:* `String.t`, *default:* `nil`) - Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or 'pd-balanced') If unspecified, the default disk type is 'pd-standard'
2727
* `imageType` (*type:* `String.t`, *default:* `nil`) - The image type to use for NAP created node. Please see https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for available image types.
28-
* `insecureKubeletReadonlyPortEnabled` (*type:* `boolean()`, *default:* `nil`) - Enable or disable Kubelet read only port.
28+
* `insecureKubeletReadonlyPortEnabled` (*type:* `boolean()`, *default:* `nil`) - DEPRECATED. Use NodePoolAutoConfig.NodeKubeletConfig instead.
2929
* `management` (*type:* `GoogleApi.Container.V1.Model.NodeManagement.t`, *default:* `nil`) - Specifies the node management options for NAP created node-pools.
3030
* `minCpuPlatform` (*type:* `String.t`, *default:* `nil`) - Deprecated. Minimum CPU platform to be used for NAP created node pools. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: Intel Haswell or minCpuPlatform: Intel Sandy Bridge. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). This field is deprecated, min_cpu_platform should be specified using `cloud.google.com/requested-min-cpu-platform` label selector on the pod. To unset the min cpu platform field pass "automatic" as field value.
3131
* `oauthScopes` (*type:* `list(String.t)`, *default:* `nil`) - Scopes that are used by NAP when creating node pools.

0 commit comments

Comments
 (0)