Skip to content

Commit

Permalink
feat: Automated regeneration of Container client
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed Nov 6, 2024
1 parent f979d31 commit 55aa4fa
Show file tree
Hide file tree
Showing 8 changed files with 91 additions and 7 deletions.
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.54"}]
[{:google_api_container, "~> 0.55"}]
end
```

Expand Down
2 changes: 1 addition & 1 deletion clients/container/lib/google_api/container/v1/metadata.ex
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 "20241017"
@discovery_revision "20241024"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
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.54.0"
@version "0.55.0"

def project() do
[
Expand Down

0 comments on commit 55aa4fa

Please sign in to comment.