diff --git a/clients/container/README.md b/clients/container/README.md index 72f5f3c7cb..3151e8a1ca 100644 --- a/clients/container/README.md +++ b/clients/container/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_container, "~> 0.54"}] + [{:google_api_container, "~> 0.55"}] end ``` diff --git a/clients/container/lib/google_api/container/v1/metadata.ex b/clients/container/lib/google_api/container/v1/metadata.ex index 6801cbb29a..3652388498 100644 --- a/clients/container/lib/google_api/container/v1/metadata.ex +++ b/clients/container/lib/google_api/container/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.Container.V1 do API client metadata for GoogleApi.Container.V1. """ - @discovery_revision "20241017" + @discovery_revision "20241024" def discovery_revision(), do: @discovery_revision end diff --git a/clients/container/lib/google_api/container/v1/model/cluster_update.ex b/clients/container/lib/google_api/container/v1/model/cluster_update.ex index 2a59dfbcd5..fe3d045203 100644 --- a/clients/container/lib/google_api/container/v1/model/cluster_update.ex +++ b/clients/container/lib/google_api/container/v1/model/cluster_update.ex @@ -57,6 +57,7 @@ defmodule GoogleApi.Container.V1.Model.ClusterUpdate do * `desiredIdentityServiceConfig` (*type:* `GoogleApi.Container.V1.Model.IdentityServiceConfig.t`, *default:* `nil`) - The desired Identity Service component configuration. * `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. * `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. + * `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. * `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. * `desiredGatewayApiConfig` (*type:* `GoogleApi.Container.V1.Model.GatewayAPIConfig.t`, *default:* `nil`) - The desired config of Gateway API on this cluster. * `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 :desiredEnablePrivateEndpoint => boolean() | nil, :additionalPodRangesConfig => GoogleApi.Container.V1.Model.AdditionalPodRangesConfig.t() | nil, + :desiredNodePoolAutoConfigLinuxNodeConfig => + GoogleApi.Container.V1.Model.LinuxNodeConfig.t() | nil, :desiredNodePoolAutoConfigNetworkTags => GoogleApi.Container.V1.Model.NetworkTags.t() | nil, :desiredGatewayApiConfig => GoogleApi.Container.V1.Model.GatewayAPIConfig.t() | nil, @@ -237,6 +240,11 @@ defmodule GoogleApi.Container.V1.Model.ClusterUpdate do field(:desiredIdentityServiceConfig, as: GoogleApi.Container.V1.Model.IdentityServiceConfig) field(:desiredEnablePrivateEndpoint) field(:additionalPodRangesConfig, as: GoogleApi.Container.V1.Model.AdditionalPodRangesConfig) + + field(:desiredNodePoolAutoConfigLinuxNodeConfig, + as: GoogleApi.Container.V1.Model.LinuxNodeConfig + ) + field(:desiredNodePoolAutoConfigNetworkTags, as: GoogleApi.Container.V1.Model.NetworkTags) field(:desiredGatewayApiConfig, as: GoogleApi.Container.V1.Model.GatewayAPIConfig) field(:desiredCostManagementConfig, as: GoogleApi.Container.V1.Model.CostManagementConfig) diff --git a/clients/container/lib/google_api/container/v1/model/node_config.ex b/clients/container/lib/google_api/container/v1/model/node_config.ex index 82d73e3f0b..25ae9d8731 100644 --- a/clients/container/lib/google_api/container/v1/model/node_config.ex +++ b/clients/container/lib/google_api/container/v1/model/node_config.ex @@ -55,6 +55,7 @@ defmodule GoogleApi.Container.V1.Model.NodeConfig do * `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. * `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`. * `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. + * `localSsdEncryptionMode` (*type:* `String.t`, *default:* `nil`) - Specifies which method should be used for encrypting the Local SSDs attahced to the node. * `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. * `spot` (*type:* `boolean()`, *default:* `nil`) - Spot flag for enabling Spot VM, which is a rebrand of the existing preemptible flag. * `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 :diskSizeGb => integer() | nil, :machineType => String.t() | nil, :imageType => String.t() | nil, + :localSsdEncryptionMode => String.t() | nil, :preemptible => boolean() | nil, :spot => boolean() | nil, :storagePools => list(String.t()) | nil, @@ -158,6 +160,7 @@ defmodule GoogleApi.Container.V1.Model.NodeConfig do field(:diskSizeGb) field(:machineType) field(:imageType) + field(:localSsdEncryptionMode) field(:preemptible) field(:spot) field(:storagePools, type: :list) diff --git a/clients/container/lib/google_api/container/v1/model/node_pool_auto_config.ex b/clients/container/lib/google_api/container/v1/model/node_pool_auto_config.ex index 640c61521d..32e4b03fad 100644 --- a/clients/container/lib/google_api/container/v1/model/node_pool_auto_config.ex +++ b/clients/container/lib/google_api/container/v1/model/node_pool_auto_config.ex @@ -21,6 +21,7 @@ defmodule GoogleApi.Container.V1.Model.NodePoolAutoConfig do ## Attributes + * `linuxNodeConfig` (*type:* `GoogleApi.Container.V1.Model.LinuxNodeConfig.t`, *default:* `nil`) - Output only. Configuration options for Linux nodes. * `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. * `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. * `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 use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :linuxNodeConfig => GoogleApi.Container.V1.Model.LinuxNodeConfig.t() | nil, :networkTags => GoogleApi.Container.V1.Model.NetworkTags.t() | nil, :nodeKubeletConfig => GoogleApi.Container.V1.Model.NodeKubeletConfig.t() | nil, :resourceManagerTags => GoogleApi.Container.V1.Model.ResourceManagerTags.t() | nil } + field(:linuxNodeConfig, as: GoogleApi.Container.V1.Model.LinuxNodeConfig) field(:networkTags, as: GoogleApi.Container.V1.Model.NetworkTags) field(:nodeKubeletConfig, as: GoogleApi.Container.V1.Model.NodeKubeletConfig) field(:resourceManagerTags, as: GoogleApi.Container.V1.Model.ResourceManagerTags) diff --git a/clients/container/lib/google_api/container/v1/model/node_pool_autoscaling.ex b/clients/container/lib/google_api/container/v1/model/node_pool_autoscaling.ex index aada97ba15..0b88d661a0 100644 --- a/clients/container/lib/google_api/container/v1/model/node_pool_autoscaling.ex +++ b/clients/container/lib/google_api/container/v1/model/node_pool_autoscaling.ex @@ -24,10 +24,10 @@ defmodule GoogleApi.Container.V1.Model.NodePoolAutoscaling do * `autoprovisioned` (*type:* `boolean()`, *default:* `nil`) - Can this node pool be deleted automatically. * `enabled` (*type:* `boolean()`, *default:* `nil`) - Is autoscaling enabled for this node pool. * `locationPolicy` (*type:* `String.t`, *default:* `nil`) - Location policy used when scaling up a nodepool. - * `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. - * `minNodeCount` (*type:* `integer()`, *default:* `nil`) - Minimum number of nodes for one location in the NodePool. Must be >= 1 and <= max_node_count. - * `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. - * `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. + * `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. + * `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. + * `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. + * `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. """ use GoogleApi.Gax.ModelBase diff --git a/clients/container/lib/google_api/container/v1/model/upgrade_info_event.ex b/clients/container/lib/google_api/container/v1/model/upgrade_info_event.ex new file mode 100644 index 0000000000..f85af8d8b3 --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/upgrade_info_event.ex @@ -0,0 +1,70 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Container.V1.Model.UpgradeInfoEvent do + @moduledoc """ + UpgradeInfoEvent is a notification sent to customers about the upgrade information of a resource. + + ## Attributes + + * `currentVersion` (*type:* `String.t`, *default:* `nil`) - The current version before the upgrade. + * `description` (*type:* `String.t`, *default:* `nil`) - A brief description of the event. + * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the operation ended. + * `operation` (*type:* `String.t`, *default:* `nil`) - The operation associated with this upgrade. + * `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. + * `resourceType` (*type:* `String.t`, *default:* `nil`) - The resource type associated with the upgrade. + * `startTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the operation was started. + * `state` (*type:* `String.t`, *default:* `nil`) - Output only. The state of the upgrade. + * `targetVersion` (*type:* `String.t`, *default:* `nil`) - The target version for the upgrade. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :currentVersion => String.t() | nil, + :description => String.t() | nil, + :endTime => DateTime.t() | nil, + :operation => String.t() | nil, + :resource => String.t() | nil, + :resourceType => String.t() | nil, + :startTime => DateTime.t() | nil, + :state => String.t() | nil, + :targetVersion => String.t() | nil + } + + field(:currentVersion) + field(:description) + field(:endTime, as: DateTime) + field(:operation) + field(:resource) + field(:resourceType) + field(:startTime, as: DateTime) + field(:state) + field(:targetVersion) +end + +defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.UpgradeInfoEvent do + def decode(value, options) do + GoogleApi.Container.V1.Model.UpgradeInfoEvent.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.UpgradeInfoEvent do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/container/mix.exs b/clients/container/mix.exs index 9c23476a98..5b4b8db2c0 100644 --- a/clients/container/mix.exs +++ b/clients/container/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.Container.Mixfile do use Mix.Project - @version "0.54.0" + @version "0.55.0" def project() do [