Skip to content

Commit 3ee7b6d

Browse files
feat: Automated regeneration of Container client (googleapis#12489)
Auto-created at 2024-11-06 13:16:06 +0000 using the toys pull request generator.
1 parent dcd3d26 commit 3ee7b6d

File tree

8 files changed

+91
-7
lines changed

8 files changed

+91
-7
lines changed

clients/container/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_container, "~> 0.54"}]
14+
[{:google_api_container, "~> 0.55"}]
1515
end
1616
```
1717

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 "20241017"
23+
@discovery_revision "20241024"
2424

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

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ defmodule GoogleApi.Container.V1.Model.ClusterUpdate do
5757
* `desiredIdentityServiceConfig` (*type:* `GoogleApi.Container.V1.Model.IdentityServiceConfig.t`, *default:* `nil`) - The desired Identity Service component configuration.
5858
* `desiredEnablePrivateEndpoint` (*type:* `boolean()`, *default:* `nil`) - Enable/Disable private endpoint for the cluster's master. Deprecated: Use desired_control_plane_endpoints_config.ip_endpoints_config.enable_public_endpoint instead. Note that the value of enable_public_endpoint is reversed: if enable_private_endpoint is false, then enable_public_endpoint will be true.
5959
* `additionalPodRangesConfig` (*type:* `GoogleApi.Container.V1.Model.AdditionalPodRangesConfig.t`, *default:* `nil`) - The additional pod ranges to be added to the cluster. These pod ranges can be used by node pools to allocate pod IPs.
60+
* `desiredNodePoolAutoConfigLinuxNodeConfig` (*type:* `GoogleApi.Container.V1.Model.LinuxNodeConfig.t`, *default:* `nil`) - The desired Linux node config for all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters. Currently only `cgroup_mode` can be set here.
6061
* `desiredNodePoolAutoConfigNetworkTags` (*type:* `GoogleApi.Container.V1.Model.NetworkTags.t`, *default:* `nil`) - The desired network tags that apply to all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters.
6162
* `desiredGatewayApiConfig` (*type:* `GoogleApi.Container.V1.Model.GatewayAPIConfig.t`, *default:* `nil`) - The desired config of Gateway API on this cluster.
6263
* `desiredCostManagementConfig` (*type:* `GoogleApi.Container.V1.Model.CostManagementConfig.t`, *default:* `nil`) - The desired configuration for the fine-grained cost management feature.
@@ -140,6 +141,8 @@ defmodule GoogleApi.Container.V1.Model.ClusterUpdate do
140141
:desiredEnablePrivateEndpoint => boolean() | nil,
141142
:additionalPodRangesConfig =>
142143
GoogleApi.Container.V1.Model.AdditionalPodRangesConfig.t() | nil,
144+
:desiredNodePoolAutoConfigLinuxNodeConfig =>
145+
GoogleApi.Container.V1.Model.LinuxNodeConfig.t() | nil,
143146
:desiredNodePoolAutoConfigNetworkTags =>
144147
GoogleApi.Container.V1.Model.NetworkTags.t() | nil,
145148
:desiredGatewayApiConfig => GoogleApi.Container.V1.Model.GatewayAPIConfig.t() | nil,
@@ -237,6 +240,11 @@ defmodule GoogleApi.Container.V1.Model.ClusterUpdate do
237240
field(:desiredIdentityServiceConfig, as: GoogleApi.Container.V1.Model.IdentityServiceConfig)
238241
field(:desiredEnablePrivateEndpoint)
239242
field(:additionalPodRangesConfig, as: GoogleApi.Container.V1.Model.AdditionalPodRangesConfig)
243+
244+
field(:desiredNodePoolAutoConfigLinuxNodeConfig,
245+
as: GoogleApi.Container.V1.Model.LinuxNodeConfig
246+
)
247+
240248
field(:desiredNodePoolAutoConfigNetworkTags, as: GoogleApi.Container.V1.Model.NetworkTags)
241249
field(:desiredGatewayApiConfig, as: GoogleApi.Container.V1.Model.GatewayAPIConfig)
242250
field(:desiredCostManagementConfig, as: GoogleApi.Container.V1.Model.CostManagementConfig)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ defmodule GoogleApi.Container.V1.Model.NodeConfig do
5555
* `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.
5656
* `machineType` (*type:* `String.t`, *default:* `nil`) - The name of a Google Compute Engine [machine type](https://cloud.google.com/compute/docs/machine-types) If unspecified, the default machine type is `e2-medium`.
5757
* `imageType` (*type:* `String.t`, *default:* `nil`) - The image type to use for this node. Note that for a given image type, the latest version of it will be used. Please see https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for available image types.
58+
* `localSsdEncryptionMode` (*type:* `String.t`, *default:* `nil`) - Specifies which method should be used for encrypting the Local SSDs attahced to the node.
5859
* `preemptible` (*type:* `boolean()`, *default:* `nil`) - Whether the nodes are created as preemptible VM instances. See: https://cloud.google.com/compute/docs/instances/preemptible for more information about preemptible VM instances.
5960
* `spot` (*type:* `boolean()`, *default:* `nil`) - Spot flag for enabling Spot VM, which is a rebrand of the existing preemptible flag.
6061
* `storagePools` (*type:* `list(String.t)`, *default:* `nil`) - List of Storage Pools where boot disks are provisioned.
@@ -106,6 +107,7 @@ defmodule GoogleApi.Container.V1.Model.NodeConfig do
106107
:diskSizeGb => integer() | nil,
107108
:machineType => String.t() | nil,
108109
:imageType => String.t() | nil,
110+
:localSsdEncryptionMode => String.t() | nil,
109111
:preemptible => boolean() | nil,
110112
:spot => boolean() | nil,
111113
:storagePools => list(String.t()) | nil,
@@ -158,6 +160,7 @@ defmodule GoogleApi.Container.V1.Model.NodeConfig do
158160
field(:diskSizeGb)
159161
field(:machineType)
160162
field(:imageType)
163+
field(:localSsdEncryptionMode)
161164
field(:preemptible)
162165
field(:spot)
163166
field(:storagePools, type: :list)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ defmodule GoogleApi.Container.V1.Model.NodePoolAutoConfig do
2121
2222
## Attributes
2323
24+
* `linuxNodeConfig` (*type:* `GoogleApi.Container.V1.Model.LinuxNodeConfig.t`, *default:* `nil`) - Output only. Configuration options for Linux nodes.
2425
* `networkTags` (*type:* `GoogleApi.Container.V1.Model.NetworkTags.t`, *default:* `nil`) - The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster creation. Each tag within the list must comply with RFC1035.
2526
* `nodeKubeletConfig` (*type:* `GoogleApi.Container.V1.Model.NodeKubeletConfig.t`, *default:* `nil`) - NodeKubeletConfig controls the defaults for autoprovisioned node-pools. Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
2627
* `resourceManagerTags` (*type:* `GoogleApi.Container.V1.Model.ResourceManagerTags.t`, *default:* `nil`) - Resource manager tag keys and values to be attached to the nodes for managing Compute Engine firewalls using Network Firewall Policies.
@@ -29,11 +30,13 @@ defmodule GoogleApi.Container.V1.Model.NodePoolAutoConfig do
2930
use GoogleApi.Gax.ModelBase
3031

3132
@type t :: %__MODULE__{
33+
:linuxNodeConfig => GoogleApi.Container.V1.Model.LinuxNodeConfig.t() | nil,
3234
:networkTags => GoogleApi.Container.V1.Model.NetworkTags.t() | nil,
3335
:nodeKubeletConfig => GoogleApi.Container.V1.Model.NodeKubeletConfig.t() | nil,
3436
:resourceManagerTags => GoogleApi.Container.V1.Model.ResourceManagerTags.t() | nil
3537
}
3638

39+
field(:linuxNodeConfig, as: GoogleApi.Container.V1.Model.LinuxNodeConfig)
3740
field(:networkTags, as: GoogleApi.Container.V1.Model.NetworkTags)
3841
field(:nodeKubeletConfig, as: GoogleApi.Container.V1.Model.NodeKubeletConfig)
3942
field(:resourceManagerTags, as: GoogleApi.Container.V1.Model.ResourceManagerTags)

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ defmodule GoogleApi.Container.V1.Model.NodePoolAutoscaling do
2424
* `autoprovisioned` (*type:* `boolean()`, *default:* `nil`) - Can this node pool be deleted automatically.
2525
* `enabled` (*type:* `boolean()`, *default:* `nil`) - Is autoscaling enabled for this node pool.
2626
* `locationPolicy` (*type:* `String.t`, *default:* `nil`) - Location policy used when scaling up a nodepool.
27-
* `maxNodeCount` (*type:* `integer()`, *default:* `nil`) - Maximum number of nodes for one location in the NodePool. Must be >= min_node_count. There has to be enough quota to scale up the cluster.
28-
* `minNodeCount` (*type:* `integer()`, *default:* `nil`) - Minimum number of nodes for one location in the NodePool. Must be >= 1 and <= max_node_count.
29-
* `totalMaxNodeCount` (*type:* `integer()`, *default:* `nil`) - Maximum number of nodes in the node pool. Must be greater than total_min_node_count. There has to be enough quota to scale up the cluster. The total_*_node_count fields are mutually exclusive with the *_node_count fields.
30-
* `totalMinNodeCount` (*type:* `integer()`, *default:* `nil`) - Minimum number of nodes in the node pool. Must be greater than 1 less than total_max_node_count. The total_*_node_count fields are mutually exclusive with the *_node_count fields.
27+
* `maxNodeCount` (*type:* `integer()`, *default:* `nil`) - Maximum number of nodes for one location in the node pool. Must be >= min_node_count. There has to be enough quota to scale up the cluster.
28+
* `minNodeCount` (*type:* `integer()`, *default:* `nil`) - Minimum number of nodes for one location in the node pool. Must be greater than or equal to 0 and less than or equal to max_node_count.
29+
* `totalMaxNodeCount` (*type:* `integer()`, *default:* `nil`) - Maximum number of nodes in the node pool. Must be greater than or equal to total_min_node_count. There has to be enough quota to scale up the cluster. The total_*_node_count fields are mutually exclusive with the *_node_count fields.
30+
* `totalMinNodeCount` (*type:* `integer()`, *default:* `nil`) - Minimum number of nodes in the node pool. Must be greater than or equal to 0 and less than or equal to total_max_node_count. The total_*_node_count fields are mutually exclusive with the *_node_count fields.
3131
"""
3232

3333
use GoogleApi.Gax.ModelBase
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.Container.V1.Model.UpgradeInfoEvent do
19+
@moduledoc """
20+
UpgradeInfoEvent is a notification sent to customers about the upgrade information of a resource.
21+
22+
## Attributes
23+
24+
* `currentVersion` (*type:* `String.t`, *default:* `nil`) - The current version before the upgrade.
25+
* `description` (*type:* `String.t`, *default:* `nil`) - A brief description of the event.
26+
* `endTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the operation ended.
27+
* `operation` (*type:* `String.t`, *default:* `nil`) - The operation associated with this upgrade.
28+
* `resource` (*type:* `String.t`, *default:* `nil`) - Optional relative path to the resource. For example in node pool upgrades, the relative path of the node pool.
29+
* `resourceType` (*type:* `String.t`, *default:* `nil`) - The resource type associated with the upgrade.
30+
* `startTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the operation was started.
31+
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. The state of the upgrade.
32+
* `targetVersion` (*type:* `String.t`, *default:* `nil`) - The target version for the upgrade.
33+
"""
34+
35+
use GoogleApi.Gax.ModelBase
36+
37+
@type t :: %__MODULE__{
38+
:currentVersion => String.t() | nil,
39+
:description => String.t() | nil,
40+
:endTime => DateTime.t() | nil,
41+
:operation => String.t() | nil,
42+
:resource => String.t() | nil,
43+
:resourceType => String.t() | nil,
44+
:startTime => DateTime.t() | nil,
45+
:state => String.t() | nil,
46+
:targetVersion => String.t() | nil
47+
}
48+
49+
field(:currentVersion)
50+
field(:description)
51+
field(:endTime, as: DateTime)
52+
field(:operation)
53+
field(:resource)
54+
field(:resourceType)
55+
field(:startTime, as: DateTime)
56+
field(:state)
57+
field(:targetVersion)
58+
end
59+
60+
defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.UpgradeInfoEvent do
61+
def decode(value, options) do
62+
GoogleApi.Container.V1.Model.UpgradeInfoEvent.decode(value, options)
63+
end
64+
end
65+
66+
defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.UpgradeInfoEvent do
67+
def encode(value, options) do
68+
GoogleApi.Gax.ModelBase.encode(value, options)
69+
end
70+
end

clients/container/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.Container.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.54.0"
21+
@version "0.55.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)