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 #10836

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
76 changes: 74 additions & 2 deletions clients/container/lib/google_api/container/v1/api/projects.ex
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,78 @@ defmodule GoogleApi.Container.V1.Api.Projects do
|> Response.decode(opts ++ [struct: %GoogleApi.Container.V1.Model.ServerConfig{}])
end

@doc """
Checks the cluster compatibility with Autopilot mode, and returns a list of compatibility issues.

## Parameters

* `connection` (*type:* `GoogleApi.Container.V1.Connection.t`) - Connection to server
* `name` (*type:* `String.t`) - The name (project, location, cluster) of the cluster to retrieve. Specified in the format `projects/*/locations/*/clusters/*`.
* `optional_params` (*type:* `keyword()`) - Optional parameters
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
* `:access_token` (*type:* `String.t`) - OAuth access token.
* `:alt` (*type:* `String.t`) - Data format for response.
* `:callback` (*type:* `String.t`) - JSONP
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
* `: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.
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
* `: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.
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
* `opts` (*type:* `keyword()`) - Call options

## Returns

* `{:ok, %GoogleApi.Container.V1.Model.CheckAutopilotCompatibilityResponse{}}` on success
* `{:error, info}` on failure
"""
@spec container_projects_locations_clusters_check_autopilot_compatibility(
Tesla.Env.client(),
String.t(),
keyword(),
keyword()
) ::
{:ok, GoogleApi.Container.V1.Model.CheckAutopilotCompatibilityResponse.t()}
| {:ok, Tesla.Env.t()}
| {:ok, list()}
| {:error, any()}
def container_projects_locations_clusters_check_autopilot_compatibility(
connection,
name,
optional_params \\ [],
opts \\ []
) do
optional_params_config = %{
:"$.xgafv" => :query,
:access_token => :query,
:alt => :query,
:callback => :query,
:fields => :query,
:key => :query,
:oauth_token => :query,
:prettyPrint => :query,
:quotaUser => :query,
:uploadType => :query,
:upload_protocol => :query
}

request =
Request.new()
|> Request.method(:get)
|> Request.url("/v1/{+name}:checkAutopilotCompatibility", %{
"name" => URI.encode(name, &URI.char_unreserved?/1)
})
|> Request.add_optional_params(optional_params_config, optional_params)
|> Request.library_version(@library_version)

connection
|> Connection.execute(request)
|> Response.decode(
opts ++ [struct: %GoogleApi.Container.V1.Model.CheckAutopilotCompatibilityResponse{}]
)
end

@doc """
Completes master IP rotation.

Expand Down Expand Up @@ -474,7 +546,7 @@ defmodule GoogleApi.Container.V1.Api.Projects do
end

@doc """
Gets the public component of the cluster signing keys in JSON Web Key format. This API is not yet intended for general use, and is not available for all clusters.
Gets the public component of the cluster signing keys in JSON Web Key format.

## Parameters

Expand Down Expand Up @@ -2218,7 +2290,7 @@ defmodule GoogleApi.Container.V1.Api.Projects do
end

@doc """
Gets the OIDC discovery document for the cluster. See the [OpenID Connect Discovery 1.0 specification](https://openid.net/specs/openid-connect-discovery-1_0.html) for details. This API is not yet intended for general use, and is not available for all clusters.
Gets the OIDC discovery document for the cluster. See the [OpenID Connect Discovery 1.0 specification](https://openid.net/specs/openid-connect-discovery-1_0.html) for details.

## Parameters

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 "20221031"
@discovery_revision "20240213"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ defmodule GoogleApi.Container.V1.Model.AcceleratorConfig do

* `acceleratorCount` (*type:* `String.t`, *default:* `nil`) - The number of the accelerator cards exposed to an instance.
* `acceleratorType` (*type:* `String.t`, *default:* `nil`) - The accelerator type resource name. List of supported accelerators [here](https://cloud.google.com/compute/docs/gpus)
* `gpuDriverInstallationConfig` (*type:* `GoogleApi.Container.V1.Model.GPUDriverInstallationConfig.t`, *default:* `nil`) - The configuration for auto installation of GPU driver.
* `gpuPartitionSize` (*type:* `String.t`, *default:* `nil`) - Size of partitions to create on the GPU. Valid values are described in the NVIDIA [mig user guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
* `gpuSharingConfig` (*type:* `GoogleApi.Container.V1.Model.GPUSharingConfig.t`, *default:* `nil`) - The configuration for GPU sharing options.
"""
Expand All @@ -32,12 +33,17 @@ defmodule GoogleApi.Container.V1.Model.AcceleratorConfig do
@type t :: %__MODULE__{
:acceleratorCount => String.t() | nil,
:acceleratorType => String.t() | nil,
:gpuDriverInstallationConfig =>
GoogleApi.Container.V1.Model.GPUDriverInstallationConfig.t() | nil,
:gpuPartitionSize => String.t() | nil,
:gpuSharingConfig => GoogleApi.Container.V1.Model.GPUSharingConfig.t() | nil
}

field(:acceleratorCount)
field(:acceleratorType)

field(:gpuDriverInstallationConfig, as: GoogleApi.Container.V1.Model.GPUDriverInstallationConfig)

field(:gpuPartitionSize)
field(:gpuSharingConfig, as: GoogleApi.Container.V1.Model.GPUSharingConfig)
end
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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.AdditionalNodeNetworkConfig do
@moduledoc """
AdditionalNodeNetworkConfig is the configuration for additional node networks within the NodeNetworkConfig message

## Attributes

* `network` (*type:* `String.t`, *default:* `nil`) - Name of the VPC where the additional interface belongs
* `subnetwork` (*type:* `String.t`, *default:* `nil`) - Name of the subnetwork where the additional interface belongs
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:network => String.t() | nil,
:subnetwork => String.t() | nil
}

field(:network)
field(:subnetwork)
end

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

defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.AdditionalNodeNetworkConfig do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# 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.AdditionalPodNetworkConfig do
@moduledoc """
AdditionalPodNetworkConfig is the configuration for additional pod networks within the NodeNetworkConfig message

## Attributes

* `maxPodsPerNode` (*type:* `GoogleApi.Container.V1.Model.MaxPodsConstraint.t`, *default:* `nil`) - The maximum number of pods per node which use this pod network
* `secondaryPodRange` (*type:* `String.t`, *default:* `nil`) - The name of the secondary range on the subnet which provides IP address for this pod range
* `subnetwork` (*type:* `String.t`, *default:* `nil`) - Name of the subnetwork where the additional pod network belongs
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:maxPodsPerNode => GoogleApi.Container.V1.Model.MaxPodsConstraint.t() | nil,
:secondaryPodRange => String.t() | nil,
:subnetwork => String.t() | nil
}

field(:maxPodsPerNode, as: GoogleApi.Container.V1.Model.MaxPodsConstraint)
field(:secondaryPodRange)
field(:subnetwork)
end

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

defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.AdditionalPodNetworkConfig do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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.AdditionalPodRangesConfig do
@moduledoc """
AdditionalPodRangesConfig is the configuration for additional pod secondary ranges supporting the ClusterUpdate message.

## Attributes

* `podRangeInfo` (*type:* `list(GoogleApi.Container.V1.Model.RangeInfo.t)`, *default:* `nil`) - Output only. [Output only] Information for additional pod range.
* `podRangeNames` (*type:* `list(String.t)`, *default:* `nil`) - Name for pod secondary ipv4 range which has the actual range defined ahead.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:podRangeInfo => list(GoogleApi.Container.V1.Model.RangeInfo.t()) | nil,
:podRangeNames => list(String.t()) | nil
}

field(:podRangeInfo, as: GoogleApi.Container.V1.Model.RangeInfo, type: :list)
field(:podRangeNames, type: :list)
end

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

defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.AdditionalPodRangesConfig do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ defmodule GoogleApi.Container.V1.Model.AddonsConfig do
* `dnsCacheConfig` (*type:* `GoogleApi.Container.V1.Model.DnsCacheConfig.t`, *default:* `nil`) - Configuration for NodeLocalDNS, a dns cache running on cluster nodes
* `gcePersistentDiskCsiDriverConfig` (*type:* `GoogleApi.Container.V1.Model.GcePersistentDiskCsiDriverConfig.t`, *default:* `nil`) - Configuration for the Compute Engine Persistent Disk CSI driver.
* `gcpFilestoreCsiDriverConfig` (*type:* `GoogleApi.Container.V1.Model.GcpFilestoreCsiDriverConfig.t`, *default:* `nil`) - Configuration for the GCP Filestore CSI driver.
* `gcsFuseCsiDriverConfig` (*type:* `GoogleApi.Container.V1.Model.GcsFuseCsiDriverConfig.t`, *default:* `nil`) - Configuration for the Cloud Storage Fuse CSI driver.
* `gkeBackupAgentConfig` (*type:* `GoogleApi.Container.V1.Model.GkeBackupAgentConfig.t`, *default:* `nil`) - Configuration for the Backup for GKE agent addon.
* `horizontalPodAutoscaling` (*type:* `GoogleApi.Container.V1.Model.HorizontalPodAutoscaling.t`, *default:* `nil`) - Configuration for the horizontal pod autoscaling feature, which increases or decreases the number of replica pods a replication controller has based on the resource usage of the existing pods.
* `httpLoadBalancing` (*type:* `GoogleApi.Container.V1.Model.HttpLoadBalancing.t`, *default:* `nil`) - Configuration for the HTTP (L7) load balancing controller addon, which makes it easy to set up HTTP load balancers for services in a cluster.
* `kubernetesDashboard` (*type:* `GoogleApi.Container.V1.Model.KubernetesDashboard.t`, *default:* `nil`) - Configuration for the Kubernetes Dashboard. This addon is deprecated, and will be disabled in 1.15. It is recommended to use the Cloud Console to manage and monitor your Kubernetes clusters, workloads and applications. For more information, see: https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
* `networkPolicyConfig` (*type:* `GoogleApi.Container.V1.Model.NetworkPolicyConfig.t`, *default:* `nil`) - Configuration for NetworkPolicy. This only tracks whether the addon is enabled or not on the Master, it does not track whether network policy is enabled for the nodes.
* `statefulHaConfig` (*type:* `GoogleApi.Container.V1.Model.StatefulHAConfig.t`, *default:* `nil`) - Optional. Configuration for the StatefulHA add-on.
"""

use GoogleApi.Gax.ModelBase
Expand All @@ -43,12 +45,15 @@ defmodule GoogleApi.Container.V1.Model.AddonsConfig do
GoogleApi.Container.V1.Model.GcePersistentDiskCsiDriverConfig.t() | nil,
:gcpFilestoreCsiDriverConfig =>
GoogleApi.Container.V1.Model.GcpFilestoreCsiDriverConfig.t() | nil,
:gcsFuseCsiDriverConfig =>
GoogleApi.Container.V1.Model.GcsFuseCsiDriverConfig.t() | nil,
:gkeBackupAgentConfig => GoogleApi.Container.V1.Model.GkeBackupAgentConfig.t() | nil,
:horizontalPodAutoscaling =>
GoogleApi.Container.V1.Model.HorizontalPodAutoscaling.t() | nil,
:httpLoadBalancing => GoogleApi.Container.V1.Model.HttpLoadBalancing.t() | nil,
:kubernetesDashboard => GoogleApi.Container.V1.Model.KubernetesDashboard.t() | nil,
:networkPolicyConfig => GoogleApi.Container.V1.Model.NetworkPolicyConfig.t() | nil
:networkPolicyConfig => GoogleApi.Container.V1.Model.NetworkPolicyConfig.t() | nil,
:statefulHaConfig => GoogleApi.Container.V1.Model.StatefulHAConfig.t() | nil
}

field(:cloudRunConfig, as: GoogleApi.Container.V1.Model.CloudRunConfig)
Expand All @@ -61,11 +66,13 @@ defmodule GoogleApi.Container.V1.Model.AddonsConfig do

field(:gcpFilestoreCsiDriverConfig, as: GoogleApi.Container.V1.Model.GcpFilestoreCsiDriverConfig)

field(:gcsFuseCsiDriverConfig, as: GoogleApi.Container.V1.Model.GcsFuseCsiDriverConfig)
field(:gkeBackupAgentConfig, as: GoogleApi.Container.V1.Model.GkeBackupAgentConfig)
field(:horizontalPodAutoscaling, as: GoogleApi.Container.V1.Model.HorizontalPodAutoscaling)
field(:httpLoadBalancing, as: GoogleApi.Container.V1.Model.HttpLoadBalancing)
field(:kubernetesDashboard, as: GoogleApi.Container.V1.Model.KubernetesDashboard)
field(:networkPolicyConfig, as: GoogleApi.Container.V1.Model.NetworkPolicyConfig)
field(:statefulHaConfig, as: GoogleApi.Container.V1.Model.StatefulHAConfig)
end

defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.AddonsConfig do
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# 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.AdvancedDatapathObservabilityConfig do
@moduledoc """
AdvancedDatapathObservabilityConfig specifies configuration of observability features of advanced datapath.

## Attributes

* `enableMetrics` (*type:* `boolean()`, *default:* `nil`) - Expose flow metrics on nodes
* `enableRelay` (*type:* `boolean()`, *default:* `nil`) - Enable Relay component
* `relayMode` (*type:* `String.t`, *default:* `nil`) - Method used to make Relay available
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:enableMetrics => boolean() | nil,
:enableRelay => boolean() | nil,
:relayMode => String.t() | nil
}

field(:enableMetrics)
field(:enableRelay)
field(:relayMode)
end

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

defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.AdvancedDatapathObservabilityConfig do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Loading
Loading