Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of Container client #12279

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clients/container/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding

```elixir
def deps do
[{:google_api_container, "~> 0.50"}]
[{:google_api_container, "~> 0.51"}]
end
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.Container.V1 do
API client metadata for GoogleApi.Container.V1.
"""

@discovery_revision "20240905"
@discovery_revision "20240912"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ defmodule GoogleApi.Container.V1.Model.Cluster do
* `clusterIpv4Cidr` (*type:* `String.t`, *default:* `nil`) - The IP address range of the container pods in this cluster, in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`). Leave blank to have one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
* `compliancePostureConfig` (*type:* `GoogleApi.Container.V1.Model.CompliancePostureConfig.t`, *default:* `nil`) - Enable/Disable Compliance Posture features for the cluster.
* `expireTime` (*type:* `String.t`, *default:* `nil`) - Output only. The time the cluster will be automatically deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
* `userManagedKeysConfig` (*type:* `GoogleApi.Container.V1.Model.UserManagedKeysConfig.t`, *default:* `nil`) - The Custom keys configuration for the cluster.
* `subnetwork` (*type:* `String.t`, *default:* `nil`) - The name of the Google Compute Engine [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which the cluster is connected.
* `releaseChannel` (*type:* `GoogleApi.Container.V1.Model.ReleaseChannel.t`, *default:* `nil`) - Release channel configuration. If left unspecified on cluster creation and a version is specified, the cluster is enrolled in the most mature release channel where the version is available (first checking STABLE, then REGULAR, and finally RAPID). Otherwise, if no release channel configuration and no version is specified, the cluster is enrolled in the REGULAR channel with its default version.
* `parentProductConfig` (*type:* `GoogleApi.Container.V1.Model.ParentProductConfig.t`, *default:* `nil`) - The configuration of the parent product of the cluster. This field is used by Google internal products that are built on top of the GKE cluster and take the ownership of the cluster.
Expand Down Expand Up @@ -136,6 +137,7 @@ defmodule GoogleApi.Container.V1.Model.Cluster do
:compliancePostureConfig =>
GoogleApi.Container.V1.Model.CompliancePostureConfig.t() | nil,
:expireTime => String.t() | nil,
:userManagedKeysConfig => GoogleApi.Container.V1.Model.UserManagedKeysConfig.t() | nil,
:subnetwork => String.t() | nil,
:releaseChannel => GoogleApi.Container.V1.Model.ReleaseChannel.t() | nil,
:parentProductConfig => GoogleApi.Container.V1.Model.ParentProductConfig.t() | nil,
Expand Down Expand Up @@ -214,6 +216,7 @@ defmodule GoogleApi.Container.V1.Model.Cluster do
field(:clusterIpv4Cidr)
field(:compliancePostureConfig, as: GoogleApi.Container.V1.Model.CompliancePostureConfig)
field(:expireTime)
field(:userManagedKeysConfig, as: GoogleApi.Container.V1.Model.UserManagedKeysConfig)
field(:subnetwork)
field(:releaseChannel, as: GoogleApi.Container.V1.Model.ReleaseChannel)
field(:parentProductConfig, as: GoogleApi.Container.V1.Model.ParentProductConfig)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ defmodule GoogleApi.Container.V1.Model.ClusterUpdate do
* `desiredShieldedNodes` (*type:* `GoogleApi.Container.V1.Model.ShieldedNodes.t`, *default:* `nil`) - Configuration for Shielded Nodes.
* `desiredMasterAuthorizedNetworksConfig` (*type:* `GoogleApi.Container.V1.Model.MasterAuthorizedNetworksConfig.t`, *default:* `nil`) - The desired configuration options for master authorized networks feature.
* `desiredInTransitEncryptionConfig` (*type:* `String.t`, *default:* `nil`) - Specify the details of in-transit encryption.
* `userManagedKeysConfig` (*type:* `GoogleApi.Container.V1.Model.UserManagedKeysConfig.t`, *default:* `nil`) - The Custom keys configuration for the cluster.
* `desiredStackType` (*type:* `String.t`, *default:* `nil`) - The desired stack type of the cluster. If a stack type is provided and does not match the current stack type of the cluster, update will attempt to change the stack type to the new type.
* `desiredWorkloadIdentityConfig` (*type:* `GoogleApi.Container.V1.Model.WorkloadIdentityConfig.t`, *default:* `nil`) - Configuration for Workload Identity.
* `desiredIdentityServiceConfig` (*type:* `GoogleApi.Container.V1.Model.IdentityServiceConfig.t`, *default:* `nil`) - The desired Identity Service component configuration.
Expand Down Expand Up @@ -122,6 +123,7 @@ defmodule GoogleApi.Container.V1.Model.ClusterUpdate do
:desiredMasterAuthorizedNetworksConfig =>
GoogleApi.Container.V1.Model.MasterAuthorizedNetworksConfig.t() | nil,
:desiredInTransitEncryptionConfig => String.t() | nil,
:userManagedKeysConfig => GoogleApi.Container.V1.Model.UserManagedKeysConfig.t() | nil,
:desiredStackType => String.t() | nil,
:desiredWorkloadIdentityConfig =>
GoogleApi.Container.V1.Model.WorkloadIdentityConfig.t() | nil,
Expand Down Expand Up @@ -214,6 +216,7 @@ defmodule GoogleApi.Container.V1.Model.ClusterUpdate do
)

field(:desiredInTransitEncryptionConfig)
field(:userManagedKeysConfig, as: GoogleApi.Container.V1.Model.UserManagedKeysConfig)
field(:desiredStackType)
field(:desiredWorkloadIdentityConfig, as: GoogleApi.Container.V1.Model.WorkloadIdentityConfig)
field(:desiredIdentityServiceConfig, as: GoogleApi.Container.V1.Model.IdentityServiceConfig)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ defmodule GoogleApi.Container.V1.Model.NodeConfig do
* `accelerators` (*type:* `list(GoogleApi.Container.V1.Model.AcceleratorConfig.t)`, *default:* `nil`) - A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
* `windowsNodeConfig` (*type:* `GoogleApi.Container.V1.Model.WindowsNodeConfig.t`, *default:* `nil`) - Parameters that can be configured on Windows nodes.
* `linuxNodeConfig` (*type:* `GoogleApi.Container.V1.Model.LinuxNodeConfig.t`, *default:* `nil`) - Parameters that can be configured on Linux nodes.
* `effectiveCgroupMode` (*type:* `String.t`, *default:* `nil`) - Output only. effective_cgroup_mode is the cgroup mode actually used by the node pool. It is determined by the cgroup mode specified in the LinuxNodeConfig or the default cgroup mode based on the cluster creation version.
* `minCpuPlatform` (*type:* `String.t`, *default:* `nil`) - Minimum CPU platform to be used by this instance. 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)
* `resourceLabels` (*type:* `map()`, *default:* `nil`) - The resource labels for the node pool to use to annotate any related Google Compute Engine resources.
* `tags` (*type:* `list(String.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 or node pool creation. Each tag within the list must comply with RFC1035.
Expand Down Expand Up @@ -92,6 +93,7 @@ defmodule GoogleApi.Container.V1.Model.NodeConfig do
:accelerators => list(GoogleApi.Container.V1.Model.AcceleratorConfig.t()) | nil,
:windowsNodeConfig => GoogleApi.Container.V1.Model.WindowsNodeConfig.t() | nil,
:linuxNodeConfig => GoogleApi.Container.V1.Model.LinuxNodeConfig.t() | nil,
:effectiveCgroupMode => String.t() | nil,
:minCpuPlatform => String.t() | nil,
:resourceLabels => map() | nil,
:tags => list(String.t()) | nil,
Expand Down Expand Up @@ -137,6 +139,7 @@ defmodule GoogleApi.Container.V1.Model.NodeConfig do
field(:accelerators, as: GoogleApi.Container.V1.Model.AcceleratorConfig, type: :list)
field(:windowsNodeConfig, as: GoogleApi.Container.V1.Model.WindowsNodeConfig)
field(:linuxNodeConfig, as: GoogleApi.Container.V1.Model.LinuxNodeConfig)
field(:effectiveCgroupMode)
field(:minCpuPlatform)
field(:resourceLabels, type: :map)
field(:tags, type: :list)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# 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.UserManagedKeysConfig do
@moduledoc """
UserManagedKeysConfig holds the resource address to Keys which are used for signing certs and token that are used for communication within cluster.

## Attributes

* `aggregationCa` (*type:* `String.t`, *default:* `nil`) - The Certificate Authority Service caPool to use for the aggregation CA in this cluster.
* `clusterCa` (*type:* `String.t`, *default:* `nil`) - The Certificate Authority Service caPool to use for the cluster CA in this cluster.
* `controlPlaneDiskEncryptionKey` (*type:* `String.t`, *default:* `nil`) - The Cloud KMS cryptoKey to use for Confidential Hyperdisk on the control plane nodes.
* `etcdApiCa` (*type:* `String.t`, *default:* `nil`) - Resource path of the Certificate Authority Service caPool to use for the etcd API CA in this cluster.
* `etcdPeerCa` (*type:* `String.t`, *default:* `nil`) - Resource path of the Certificate Authority Service caPool to use for the etcd peer CA in this cluster.
* `gkeopsEtcdBackupEncryptionKey` (*type:* `String.t`, *default:* `nil`) - Resource path of the Cloud KMS cryptoKey to use for encryption of internal etcd backups.
* `serviceAccountSigningKeys` (*type:* `list(String.t)`, *default:* `nil`) - The Cloud KMS cryptoKeyVersions to use for signing service account JWTs issued by this cluster. Format: `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
* `serviceAccountVerificationKeys` (*type:* `list(String.t)`, *default:* `nil`) - The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs issued by this cluster. Format: `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}`
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:aggregationCa => String.t() | nil,
:clusterCa => String.t() | nil,
:controlPlaneDiskEncryptionKey => String.t() | nil,
:etcdApiCa => String.t() | nil,
:etcdPeerCa => String.t() | nil,
:gkeopsEtcdBackupEncryptionKey => String.t() | nil,
:serviceAccountSigningKeys => list(String.t()) | nil,
:serviceAccountVerificationKeys => list(String.t()) | nil
}

field(:aggregationCa)
field(:clusterCa)
field(:controlPlaneDiskEncryptionKey)
field(:etcdApiCa)
field(:etcdPeerCa)
field(:gkeopsEtcdBackupEncryptionKey)
field(:serviceAccountSigningKeys, type: :list)
field(:serviceAccountVerificationKeys, type: :list)
end

defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.UserManagedKeysConfig do
def decode(value, options) do
GoogleApi.Container.V1.Model.UserManagedKeysConfig.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.UserManagedKeysConfig do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
2 changes: 1 addition & 1 deletion clients/container/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.Container.Mixfile do
use Mix.Project

@version "0.50.0"
@version "0.51.0"

def project() do
[
Expand Down
Loading