From aa25ab014a4657897214713d4c50db6b94639964 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 12 Mar 2024 01:23:15 +0000 Subject: [PATCH] feat: Automated regeneration of Container client --- .../google_api/container/v1/api/projects.ex | 76 +++++++- .../lib/google_api/container/v1/metadata.ex | 2 +- .../container/v1/model/accelerator_config.ex | 6 + .../model/additional_node_network_config.ex | 49 +++++ .../v1/model/additional_pod_network_config.ex | 52 ++++++ .../v1/model/additional_pod_ranges_config.ex | 49 +++++ .../container/v1/model/addons_config.ex | 9 +- .../advanced_datapath_observability_config.ex | 52 ++++++ .../container/v1/model/autopilot.ex | 5 +- .../v1/model/autopilot_compatibility_issue.ex | 61 +++++++ .../autoprovisioning_node_pool_defaults.ex | 7 +- .../v1/model/best_effort_provisioning.ex | 49 +++++ .../check_autopilot_compatibility_response.ex | 49 +++++ .../google_api/container/v1/model/cluster.ex | 20 ++- .../cluster_network_performance_config.ex | 46 +++++ .../container/v1/model/cluster_update.ex | 67 +++++++ .../container/v1/model/database_encryption.ex | 2 +- .../container/v1/model/enterprise_config.ex | 46 +++++ .../ephemeral_storage_local_ssd_config.ex | 46 +++++ .../google_api/container/v1/model/fleet.ex | 52 ++++++ .../v1/model/gcs_fuse_csi_driver_config.ex | 46 +++++ .../model/gpu_driver_installation_config.ex | 46 +++++ .../v1/model/ip_allocation_policy.ex | 17 ++ .../container/v1/model/k8s_beta_api_config.ex | 46 +++++ .../v1/model/local_nvme_ssd_block_config.ex | 46 +++++ .../container/v1/model/monitoring_config.ex | 7 + .../container/v1/model/network_config.ex | 20 +++ .../container/v1/model/node_affinity.ex | 52 ++++++ .../container/v1/model/node_config.ex | 168 ++++++++++-------- .../container/v1/model/node_kubelet_config.ex | 3 + .../container/v1/model/node_network_config.ex | 23 +++ .../container/v1/model/node_pool.ex | 12 +- .../v1/model/node_pool_auto_config.ex | 5 +- .../container/v1/model/node_taint.ex | 2 +- .../container/v1/model/operation.ex | 4 +- .../v1/model/parent_product_config.ex | 49 +++++ .../container/v1/model/placement_policy.ex | 6 + .../v1/model/pod_cidr_overprovision_config.ex | 46 +++++ .../container/v1/model/queued_provisioning.ex | 46 +++++ .../container/v1/model/range_info.ex | 49 +++++ .../v1/model/resource_manager_tags.ex | 46 +++++ .../container/v1/model/secondary_boot_disk.ex | 49 +++++ .../v1/model/security_posture_config.ex | 49 +++++ .../container/v1/model/sole_tenant_config.ex | 46 +++++ .../container/v1/model/stateful_ha_config.ex | 46 +++++ .../v1/model/update_node_pool_request.ex | 23 ++- .../container/v1/model/windows_node_config.ex | 46 +++++ .../v1/model/workload_policy_config.ex | 46 +++++ 48 files changed, 1704 insertions(+), 85 deletions(-) create mode 100644 clients/container/lib/google_api/container/v1/model/additional_node_network_config.ex create mode 100644 clients/container/lib/google_api/container/v1/model/additional_pod_network_config.ex create mode 100644 clients/container/lib/google_api/container/v1/model/additional_pod_ranges_config.ex create mode 100644 clients/container/lib/google_api/container/v1/model/advanced_datapath_observability_config.ex create mode 100644 clients/container/lib/google_api/container/v1/model/autopilot_compatibility_issue.ex create mode 100644 clients/container/lib/google_api/container/v1/model/best_effort_provisioning.ex create mode 100644 clients/container/lib/google_api/container/v1/model/check_autopilot_compatibility_response.ex create mode 100644 clients/container/lib/google_api/container/v1/model/cluster_network_performance_config.ex create mode 100644 clients/container/lib/google_api/container/v1/model/enterprise_config.ex create mode 100644 clients/container/lib/google_api/container/v1/model/ephemeral_storage_local_ssd_config.ex create mode 100644 clients/container/lib/google_api/container/v1/model/fleet.ex create mode 100644 clients/container/lib/google_api/container/v1/model/gcs_fuse_csi_driver_config.ex create mode 100644 clients/container/lib/google_api/container/v1/model/gpu_driver_installation_config.ex create mode 100644 clients/container/lib/google_api/container/v1/model/k8s_beta_api_config.ex create mode 100644 clients/container/lib/google_api/container/v1/model/local_nvme_ssd_block_config.ex create mode 100644 clients/container/lib/google_api/container/v1/model/node_affinity.ex create mode 100644 clients/container/lib/google_api/container/v1/model/parent_product_config.ex create mode 100644 clients/container/lib/google_api/container/v1/model/pod_cidr_overprovision_config.ex create mode 100644 clients/container/lib/google_api/container/v1/model/queued_provisioning.ex create mode 100644 clients/container/lib/google_api/container/v1/model/range_info.ex create mode 100644 clients/container/lib/google_api/container/v1/model/resource_manager_tags.ex create mode 100644 clients/container/lib/google_api/container/v1/model/secondary_boot_disk.ex create mode 100644 clients/container/lib/google_api/container/v1/model/security_posture_config.ex create mode 100644 clients/container/lib/google_api/container/v1/model/sole_tenant_config.ex create mode 100644 clients/container/lib/google_api/container/v1/model/stateful_ha_config.ex create mode 100644 clients/container/lib/google_api/container/v1/model/windows_node_config.ex create mode 100644 clients/container/lib/google_api/container/v1/model/workload_policy_config.ex diff --git a/clients/container/lib/google_api/container/v1/api/projects.ex b/clients/container/lib/google_api/container/v1/api/projects.ex index ec7516a52f..fa7a943af4 100644 --- a/clients/container/lib/google_api/container/v1/api/projects.ex +++ b/clients/container/lib/google_api/container/v1/api/projects.ex @@ -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. @@ -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 @@ -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 diff --git a/clients/container/lib/google_api/container/v1/metadata.ex b/clients/container/lib/google_api/container/v1/metadata.ex index faedb5aab0..c1e43d3a89 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 "20221031" + @discovery_revision "20240213" def discovery_revision(), do: @discovery_revision end diff --git a/clients/container/lib/google_api/container/v1/model/accelerator_config.ex b/clients/container/lib/google_api/container/v1/model/accelerator_config.ex index af1b3f0b67..8f97f03479 100644 --- a/clients/container/lib/google_api/container/v1/model/accelerator_config.ex +++ b/clients/container/lib/google_api/container/v1/model/accelerator_config.ex @@ -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. """ @@ -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 diff --git a/clients/container/lib/google_api/container/v1/model/additional_node_network_config.ex b/clients/container/lib/google_api/container/v1/model/additional_node_network_config.ex new file mode 100644 index 0000000000..c784df90ec --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/additional_node_network_config.ex @@ -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 diff --git a/clients/container/lib/google_api/container/v1/model/additional_pod_network_config.ex b/clients/container/lib/google_api/container/v1/model/additional_pod_network_config.ex new file mode 100644 index 0000000000..f88d16368d --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/additional_pod_network_config.ex @@ -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 diff --git a/clients/container/lib/google_api/container/v1/model/additional_pod_ranges_config.ex b/clients/container/lib/google_api/container/v1/model/additional_pod_ranges_config.ex new file mode 100644 index 0000000000..63ac0620d4 --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/additional_pod_ranges_config.ex @@ -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 diff --git a/clients/container/lib/google_api/container/v1/model/addons_config.ex b/clients/container/lib/google_api/container/v1/model/addons_config.ex index 267b18b52f..fd51173945 100644 --- a/clients/container/lib/google_api/container/v1/model/addons_config.ex +++ b/clients/container/lib/google_api/container/v1/model/addons_config.ex @@ -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 @@ -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) @@ -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 diff --git a/clients/container/lib/google_api/container/v1/model/advanced_datapath_observability_config.ex b/clients/container/lib/google_api/container/v1/model/advanced_datapath_observability_config.ex new file mode 100644 index 0000000000..9b3451c123 --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/advanced_datapath_observability_config.ex @@ -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 diff --git a/clients/container/lib/google_api/container/v1/model/autopilot.ex b/clients/container/lib/google_api/container/v1/model/autopilot.ex index 176c2c0214..236149774e 100644 --- a/clients/container/lib/google_api/container/v1/model/autopilot.ex +++ b/clients/container/lib/google_api/container/v1/model/autopilot.ex @@ -22,15 +22,18 @@ defmodule GoogleApi.Container.V1.Model.Autopilot do ## Attributes * `enabled` (*type:* `boolean()`, *default:* `nil`) - Enable Autopilot + * `workloadPolicyConfig` (*type:* `GoogleApi.Container.V1.Model.WorkloadPolicyConfig.t`, *default:* `nil`) - Workload policy configuration for Autopilot. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :enabled => boolean() | nil + :enabled => boolean() | nil, + :workloadPolicyConfig => GoogleApi.Container.V1.Model.WorkloadPolicyConfig.t() | nil } field(:enabled) + field(:workloadPolicyConfig, as: GoogleApi.Container.V1.Model.WorkloadPolicyConfig) end defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.Autopilot do diff --git a/clients/container/lib/google_api/container/v1/model/autopilot_compatibility_issue.ex b/clients/container/lib/google_api/container/v1/model/autopilot_compatibility_issue.ex new file mode 100644 index 0000000000..3c137497fb --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/autopilot_compatibility_issue.ex @@ -0,0 +1,61 @@ +# 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.AutopilotCompatibilityIssue do + @moduledoc """ + AutopilotCompatibilityIssue contains information about a specific compatibility issue with Autopilot mode. + + ## Attributes + + * `constraintType` (*type:* `String.t`, *default:* `nil`) - The constraint type of the issue. + * `description` (*type:* `String.t`, *default:* `nil`) - The description of the issue. + * `documentationUrl` (*type:* `String.t`, *default:* `nil`) - A URL to a public documnetation, which addresses resolving this issue. + * `incompatibilityType` (*type:* `String.t`, *default:* `nil`) - The incompatibility type of this issue. + * `lastObservation` (*type:* `DateTime.t`, *default:* `nil`) - The last time when this issue was observed. + * `subjects` (*type:* `list(String.t)`, *default:* `nil`) - The name of the resources which are subject to this issue. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :constraintType => String.t() | nil, + :description => String.t() | nil, + :documentationUrl => String.t() | nil, + :incompatibilityType => String.t() | nil, + :lastObservation => DateTime.t() | nil, + :subjects => list(String.t()) | nil + } + + field(:constraintType) + field(:description) + field(:documentationUrl) + field(:incompatibilityType) + field(:lastObservation, as: DateTime) + field(:subjects, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.AutopilotCompatibilityIssue do + def decode(value, options) do + GoogleApi.Container.V1.Model.AutopilotCompatibilityIssue.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.AutopilotCompatibilityIssue do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/container/lib/google_api/container/v1/model/autoprovisioning_node_pool_defaults.ex b/clients/container/lib/google_api/container/v1/model/autoprovisioning_node_pool_defaults.ex index 4a20c7429e..1867c2c09e 100644 --- a/clients/container/lib/google_api/container/v1/model/autoprovisioning_node_pool_defaults.ex +++ b/clients/container/lib/google_api/container/v1/model/autoprovisioning_node_pool_defaults.ex @@ -24,9 +24,10 @@ defmodule GoogleApi.Container.V1.Model.AutoprovisioningNodePoolDefaults do * `bootDiskKmsKey` (*type:* `String.t`, *default:* `nil`) - The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool. This should be of the form projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption * `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. * `diskType` (*type:* `String.t`, *default:* `nil`) - Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or 'pd-balanced') If unspecified, the default disk type is 'pd-standard' - * `imageType` (*type:* `String.t`, *default:* `nil`) - The image type to use for NAP created node. + * `imageType` (*type:* `String.t`, *default:* `nil`) - The image type to use for NAP created node. Please see https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for available image types. + * `insecureKubeletReadonlyPortEnabled` (*type:* `boolean()`, *default:* `nil`) - Enable or disable Kubelet read only port. * `management` (*type:* `GoogleApi.Container.V1.Model.NodeManagement.t`, *default:* `nil`) - Specifies the node management options for NAP created node-pools. - * `minCpuPlatform` (*type:* `String.t`, *default:* `nil`) - Deprecated. Minimum CPU platform to be used for NAP created node pools. 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). This field is deprecated, min_cpu_platform should be specified using https://cloud.google.com/requested-min-cpu-platform label selector on the pod. To unset the min cpu platform field pass "automatic" as field value. + * `minCpuPlatform` (*type:* `String.t`, *default:* `nil`) - Deprecated. Minimum CPU platform to be used for NAP created node pools. 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). This field is deprecated, min_cpu_platform should be specified using `cloud.google.com/requested-min-cpu-platform` label selector on the pod. To unset the min cpu platform field pass "automatic" as field value. * `oauthScopes` (*type:* `list(String.t)`, *default:* `nil`) - Scopes that are used by NAP when creating node pools. * `serviceAccount` (*type:* `String.t`, *default:* `nil`) - The Google Cloud Platform Service Account to be used by the node VMs. * `shieldedInstanceConfig` (*type:* `GoogleApi.Container.V1.Model.ShieldedInstanceConfig.t`, *default:* `nil`) - Shielded Instance options. @@ -40,6 +41,7 @@ defmodule GoogleApi.Container.V1.Model.AutoprovisioningNodePoolDefaults do :diskSizeGb => integer() | nil, :diskType => String.t() | nil, :imageType => String.t() | nil, + :insecureKubeletReadonlyPortEnabled => boolean() | nil, :management => GoogleApi.Container.V1.Model.NodeManagement.t() | nil, :minCpuPlatform => String.t() | nil, :oauthScopes => list(String.t()) | nil, @@ -53,6 +55,7 @@ defmodule GoogleApi.Container.V1.Model.AutoprovisioningNodePoolDefaults do field(:diskSizeGb) field(:diskType) field(:imageType) + field(:insecureKubeletReadonlyPortEnabled) field(:management, as: GoogleApi.Container.V1.Model.NodeManagement) field(:minCpuPlatform) field(:oauthScopes, type: :list) diff --git a/clients/container/lib/google_api/container/v1/model/best_effort_provisioning.ex b/clients/container/lib/google_api/container/v1/model/best_effort_provisioning.ex new file mode 100644 index 0000000000..966d97a750 --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/best_effort_provisioning.ex @@ -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.BestEffortProvisioning do + @moduledoc """ + Best effort provisioning. + + ## Attributes + + * `enabled` (*type:* `boolean()`, *default:* `nil`) - When this is enabled, cluster/node pool creations will ignore non-fatal errors like stockout to best provision as many nodes as possible right now and eventually bring up all target number of nodes + * `minProvisionNodes` (*type:* `integer()`, *default:* `nil`) - Minimum number of nodes to be provisioned to be considered as succeeded, and the rest of nodes will be provisioned gradually and eventually when stockout issue has been resolved. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :enabled => boolean() | nil, + :minProvisionNodes => integer() | nil + } + + field(:enabled) + field(:minProvisionNodes) +end + +defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.BestEffortProvisioning do + def decode(value, options) do + GoogleApi.Container.V1.Model.BestEffortProvisioning.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.BestEffortProvisioning do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/container/lib/google_api/container/v1/model/check_autopilot_compatibility_response.ex b/clients/container/lib/google_api/container/v1/model/check_autopilot_compatibility_response.ex new file mode 100644 index 0000000000..6262778b51 --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/check_autopilot_compatibility_response.ex @@ -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.CheckAutopilotCompatibilityResponse do + @moduledoc """ + CheckAutopilotCompatibilityResponse has a list of compatibility issues. + + ## Attributes + + * `issues` (*type:* `list(GoogleApi.Container.V1.Model.AutopilotCompatibilityIssue.t)`, *default:* `nil`) - The list of issues for the given operation. + * `summary` (*type:* `String.t`, *default:* `nil`) - The summary of the autopilot compatibility response. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :issues => list(GoogleApi.Container.V1.Model.AutopilotCompatibilityIssue.t()) | nil, + :summary => String.t() | nil + } + + field(:issues, as: GoogleApi.Container.V1.Model.AutopilotCompatibilityIssue, type: :list) + field(:summary) +end + +defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.CheckAutopilotCompatibilityResponse do + def decode(value, options) do + GoogleApi.Container.V1.Model.CheckAutopilotCompatibilityResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.CheckAutopilotCompatibilityResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/container/lib/google_api/container/v1/model/cluster.ex b/clients/container/lib/google_api/container/v1/model/cluster.ex index ebacca36b9..466fb8e9a3 100644 --- a/clients/container/lib/google_api/container/v1/model/cluster.ex +++ b/clients/container/lib/google_api/container/v1/model/cluster.ex @@ -25,11 +25,13 @@ defmodule GoogleApi.Container.V1.Model.Cluster do * `meshCertificates` (*type:* `GoogleApi.Container.V1.Model.MeshCertificates.t`, *default:* `nil`) - Configuration for issuance of mTLS keys and certificates to Kubernetes pods. * `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`. * `instanceGroupUrls` (*type:* `list(String.t)`, *default:* `nil`) - Deprecated. Use node_pools.instance_group_urls. + * `etag` (*type:* `String.t`, *default:* `nil`) - This checksum is computed by the server based on the value of cluster fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding. * `currentMasterVersion` (*type:* `String.t`, *default:* `nil`) - [Output only] The current software version of the master endpoint. * `enableTpu` (*type:* `boolean()`, *default:* `nil`) - Enable the ability to use Cloud TPUs in this cluster. * `identityServiceConfig` (*type:* `GoogleApi.Container.V1.Model.IdentityServiceConfig.t`, *default:* `nil`) - Configuration for Identity Service component. * `nodeIpv4CidrSize` (*type:* `integer()`, *default:* `nil`) - [Output only] The size of the address space on each node for hosting containers. This is provisioned from within the `container_ipv4_cidr` range. This field will only be set when cluster is in route-based network mode. * `legacyAbac` (*type:* `GoogleApi.Container.V1.Model.LegacyAbac.t`, *default:* `nil`) - Configuration for the legacy ABAC authorization mode. + * `enableK8sBetaApis` (*type:* `GoogleApi.Container.V1.Model.K8sBetaAPIConfig.t`, *default:* `nil`) - Beta APIs Config * `shieldedNodes` (*type:* `GoogleApi.Container.V1.Model.ShieldedNodes.t`, *default:* `nil`) - Shielded Nodes configuration. * `statusMessage` (*type:* `String.t`, *default:* `nil`) - [Output only] Deprecated. Use conditions instead. Additional information about the current status of this cluster, if available. * `createTime` (*type:* `String.t`, *default:* `nil`) - [Output only] The time the cluster was created, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. @@ -51,13 +53,15 @@ defmodule GoogleApi.Container.V1.Model.Cluster do * `nodePoolAutoConfig` (*type:* `GoogleApi.Container.V1.Model.NodePoolAutoConfig.t`, *default:* `nil`) - Node pool configs that apply to all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters. * `masterAuthorizedNetworksConfig` (*type:* `GoogleApi.Container.V1.Model.MasterAuthorizedNetworksConfig.t`, *default:* `nil`) - The configuration options for master authorized networks feature. * `networkPolicy` (*type:* `GoogleApi.Container.V1.Model.NetworkPolicy.t`, *default:* `nil`) - Configuration options for the NetworkPolicy feature. + * `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. * `name` (*type:* `String.t`, *default:* `nil`) - The name of this cluster. The name must be unique within this project and location (e.g. zone or region), and can be up to 40 characters with the following restrictions: * Lowercase letters, numbers, and hyphens only. * Must start with a letter. * Must end with a number or a letter. - * `releaseChannel` (*type:* `GoogleApi.Container.V1.Model.ReleaseChannel.t`, *default:* `nil`) - Release channel configuration. + * `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. * `masterAuth` (*type:* `GoogleApi.Container.V1.Model.MasterAuth.t`, *default:* `nil`) - The authentication information for accessing the master endpoint. If unspecified, the defaults are used: For clusters before v1.12, if master_auth is unspecified, `username` will be set to "admin", a random password will be generated, and a client certificate will be issued. * `location` (*type:* `String.t`, *default:* `nil`) - [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides. * `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. * `status` (*type:* `String.t`, *default:* `nil`) - [Output only] The current status of this cluster. * `network` (*type:* `String.t`, *default:* `nil`) - The name of the Google Compute Engine [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the cluster is connected. If left unspecified, the `default` network will be used. + * `fleet` (*type:* `GoogleApi.Container.V1.Model.Fleet.t`, *default:* `nil`) - Fleet information for the cluster. * `nodeConfig` (*type:* `GoogleApi.Container.V1.Model.NodeConfig.t`, *default:* `nil`) - Parameters used in creating the cluster's nodes. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "initial_node_count") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. For responses, this field will be populated with the node configuration of the first node pool. (For configuration of each node pool, see `node_pool.config`) If unspecified, the defaults are used. This field is deprecated, use node_pool.config instead. * `tpuIpv4CidrBlock` (*type:* `String.t`, *default:* `nil`) - [Output only] The IP address range of the Cloud TPUs in this cluster, in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `1.2.3.4/29`). * `ipAllocationPolicy` (*type:* `GoogleApi.Container.V1.Model.IPAllocationPolicy.t`, *default:* `nil`) - Configuration for cluster IP allocation. @@ -65,6 +69,7 @@ defmodule GoogleApi.Container.V1.Model.Cluster do * `locations` (*type:* `list(String.t)`, *default:* `nil`) - The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes should be located. This field provides a default value if [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) are not specified during node pool creation. Warning: changing cluster locations will update the [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) of all node pools and will result in nodes being added and/or removed. * `autopilot` (*type:* `GoogleApi.Container.V1.Model.Autopilot.t`, *default:* `nil`) - Autopilot configuration for the cluster. * `resourceLabels` (*type:* `map()`, *default:* `nil`) - The resource labels for the cluster to use to annotate any related Google Compute Engine resources. + * `enterpriseConfig` (*type:* `GoogleApi.Container.V1.Model.EnterpriseConfig.t`, *default:* `nil`) - GKE Enterprise Configuration. * `labelFingerprint` (*type:* `String.t`, *default:* `nil`) - The fingerprint of the set of labels for this 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. * `currentNodeCount` (*type:* `integer()`, *default:* `nil`) - [Output only] The number of nodes currently in the cluster. Deprecated. Call Kubernetes API directly to retrieve node information. @@ -78,6 +83,7 @@ defmodule GoogleApi.Container.V1.Model.Cluster do * `nodePools` (*type:* `list(GoogleApi.Container.V1.Model.NodePool.t)`, *default:* `nil`) - The node pools associated with this cluster. This field should not be set if "node_config" or "initial_node_count" are specified. * `selfLink` (*type:* `String.t`, *default:* `nil`) - [Output only] Server-defined URL for the resource. * `servicesIpv4Cidr` (*type:* `String.t`, *default:* `nil`) - [Output only] The IP address range of the Kubernetes services in this cluster, in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `1.2.3.4/29`). Service addresses are typically put in the last `/16` from the container CIDR. + * `securityPostureConfig` (*type:* `GoogleApi.Container.V1.Model.SecurityPostureConfig.t`, *default:* `nil`) - Enable/Disable Security Posture API features for the cluster. * `databaseEncryption` (*type:* `GoogleApi.Container.V1.Model.DatabaseEncryption.t`, *default:* `nil`) - Configuration of etcd encryption. * `maintenancePolicy` (*type:* `GoogleApi.Container.V1.Model.MaintenancePolicy.t`, *default:* `nil`) - Configure the maintenance policy for this cluster. * `costManagementConfig` (*type:* `GoogleApi.Container.V1.Model.CostManagementConfig.t`, *default:* `nil`) - Configuration for the fine-grained cost management feature. @@ -93,11 +99,13 @@ defmodule GoogleApi.Container.V1.Model.Cluster do :meshCertificates => GoogleApi.Container.V1.Model.MeshCertificates.t() | nil, :clusterIpv4Cidr => String.t() | nil, :instanceGroupUrls => list(String.t()) | nil, + :etag => String.t() | nil, :currentMasterVersion => String.t() | nil, :enableTpu => boolean() | nil, :identityServiceConfig => GoogleApi.Container.V1.Model.IdentityServiceConfig.t() | nil, :nodeIpv4CidrSize => integer() | nil, :legacyAbac => GoogleApi.Container.V1.Model.LegacyAbac.t() | nil, + :enableK8sBetaApis => GoogleApi.Container.V1.Model.K8sBetaAPIConfig.t() | nil, :shieldedNodes => GoogleApi.Container.V1.Model.ShieldedNodes.t() | nil, :statusMessage => String.t() | nil, :createTime => String.t() | nil, @@ -122,6 +130,7 @@ defmodule GoogleApi.Container.V1.Model.Cluster do :masterAuthorizedNetworksConfig => GoogleApi.Container.V1.Model.MasterAuthorizedNetworksConfig.t() | nil, :networkPolicy => GoogleApi.Container.V1.Model.NetworkPolicy.t() | nil, + :parentProductConfig => GoogleApi.Container.V1.Model.ParentProductConfig.t() | nil, :name => String.t() | nil, :releaseChannel => GoogleApi.Container.V1.Model.ReleaseChannel.t() | nil, :masterAuth => GoogleApi.Container.V1.Model.MasterAuth.t() | nil, @@ -129,6 +138,7 @@ defmodule GoogleApi.Container.V1.Model.Cluster do :subnetwork => String.t() | nil, :status => String.t() | nil, :network => String.t() | nil, + :fleet => GoogleApi.Container.V1.Model.Fleet.t() | nil, :nodeConfig => GoogleApi.Container.V1.Model.NodeConfig.t() | nil, :tpuIpv4CidrBlock => String.t() | nil, :ipAllocationPolicy => GoogleApi.Container.V1.Model.IPAllocationPolicy.t() | nil, @@ -136,6 +146,7 @@ defmodule GoogleApi.Container.V1.Model.Cluster do :locations => list(String.t()) | nil, :autopilot => GoogleApi.Container.V1.Model.Autopilot.t() | nil, :resourceLabels => map() | nil, + :enterpriseConfig => GoogleApi.Container.V1.Model.EnterpriseConfig.t() | nil, :labelFingerprint => String.t() | nil, :expireTime => String.t() | nil, :currentNodeCount => integer() | nil, @@ -149,6 +160,7 @@ defmodule GoogleApi.Container.V1.Model.Cluster do :nodePools => list(GoogleApi.Container.V1.Model.NodePool.t()) | nil, :selfLink => String.t() | nil, :servicesIpv4Cidr => String.t() | nil, + :securityPostureConfig => GoogleApi.Container.V1.Model.SecurityPostureConfig.t() | nil, :databaseEncryption => GoogleApi.Container.V1.Model.DatabaseEncryption.t() | nil, :maintenancePolicy => GoogleApi.Container.V1.Model.MaintenancePolicy.t() | nil, :costManagementConfig => GoogleApi.Container.V1.Model.CostManagementConfig.t() | nil, @@ -160,11 +172,13 @@ defmodule GoogleApi.Container.V1.Model.Cluster do field(:meshCertificates, as: GoogleApi.Container.V1.Model.MeshCertificates) field(:clusterIpv4Cidr) field(:instanceGroupUrls, type: :list) + field(:etag) field(:currentMasterVersion) field(:enableTpu) field(:identityServiceConfig, as: GoogleApi.Container.V1.Model.IdentityServiceConfig) field(:nodeIpv4CidrSize) field(:legacyAbac, as: GoogleApi.Container.V1.Model.LegacyAbac) + field(:enableK8sBetaApis, as: GoogleApi.Container.V1.Model.K8sBetaAPIConfig) field(:shieldedNodes, as: GoogleApi.Container.V1.Model.ShieldedNodes) field(:statusMessage) field(:createTime) @@ -190,6 +204,7 @@ defmodule GoogleApi.Container.V1.Model.Cluster do ) field(:networkPolicy, as: GoogleApi.Container.V1.Model.NetworkPolicy) + field(:parentProductConfig, as: GoogleApi.Container.V1.Model.ParentProductConfig) field(:name) field(:releaseChannel, as: GoogleApi.Container.V1.Model.ReleaseChannel) field(:masterAuth, as: GoogleApi.Container.V1.Model.MasterAuth) @@ -197,6 +212,7 @@ defmodule GoogleApi.Container.V1.Model.Cluster do field(:subnetwork) field(:status) field(:network) + field(:fleet, as: GoogleApi.Container.V1.Model.Fleet) field(:nodeConfig, as: GoogleApi.Container.V1.Model.NodeConfig) field(:tpuIpv4CidrBlock) field(:ipAllocationPolicy, as: GoogleApi.Container.V1.Model.IPAllocationPolicy) @@ -204,6 +220,7 @@ defmodule GoogleApi.Container.V1.Model.Cluster do field(:locations, type: :list) field(:autopilot, as: GoogleApi.Container.V1.Model.Autopilot) field(:resourceLabels, type: :map) + field(:enterpriseConfig, as: GoogleApi.Container.V1.Model.EnterpriseConfig) field(:labelFingerprint) field(:expireTime) field(:currentNodeCount) @@ -217,6 +234,7 @@ defmodule GoogleApi.Container.V1.Model.Cluster do field(:nodePools, as: GoogleApi.Container.V1.Model.NodePool, type: :list) field(:selfLink) field(:servicesIpv4Cidr) + field(:securityPostureConfig, as: GoogleApi.Container.V1.Model.SecurityPostureConfig) field(:databaseEncryption, as: GoogleApi.Container.V1.Model.DatabaseEncryption) field(:maintenancePolicy, as: GoogleApi.Container.V1.Model.MaintenancePolicy) field(:costManagementConfig, as: GoogleApi.Container.V1.Model.CostManagementConfig) diff --git a/clients/container/lib/google_api/container/v1/model/cluster_network_performance_config.ex b/clients/container/lib/google_api/container/v1/model/cluster_network_performance_config.ex new file mode 100644 index 0000000000..a96c2df398 --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/cluster_network_performance_config.ex @@ -0,0 +1,46 @@ +# 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.ClusterNetworkPerformanceConfig do + @moduledoc """ + Configuration of network bandwidth tiers + + ## Attributes + + * `totalEgressBandwidthTier` (*type:* `String.t`, *default:* `nil`) - Specifies the total network bandwidth tier for NodePools in the cluster. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :totalEgressBandwidthTier => String.t() | nil + } + + field(:totalEgressBandwidthTier) +end + +defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.ClusterNetworkPerformanceConfig do + def decode(value, options) do + GoogleApi.Container.V1.Model.ClusterNetworkPerformanceConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.ClusterNetworkPerformanceConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +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 28d6401d0f..72cc4ffd94 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 @@ -24,14 +24,19 @@ defmodule GoogleApi.Container.V1.Model.ClusterUpdate do * `desiredServiceExternalIpsConfig` (*type:* `GoogleApi.Container.V1.Model.ServiceExternalIPsConfig.t`, *default:* `nil`) - ServiceExternalIPsConfig specifies the config for the use of Services with ExternalIPs field. * `desiredDnsConfig` (*type:* `GoogleApi.Container.V1.Model.DNSConfig.t`, *default:* `nil`) - DNSConfig contains clusterDNS config for this cluster. * `desiredGatewayApiConfig` (*type:* `GoogleApi.Container.V1.Model.GatewayAPIConfig.t`, *default:* `nil`) - The desired config of Gateway API on this cluster. + * `etag` (*type:* `String.t`, *default:* `nil`) - The current etag of the cluster. If an etag is provided and does not match the current etag of the cluster, update will be blocked and an ABORTED error will be returned. * `desiredDefaultSnatStatus` (*type:* `GoogleApi.Container.V1.Model.DefaultSnatStatus.t`, *default:* `nil`) - The desired status of whether to disable default sNAT for this cluster. + * `enableK8sBetaApis` (*type:* `GoogleApi.Container.V1.Model.K8sBetaAPIConfig.t`, *default:* `nil`) - Kubernetes open source beta apis enabled on the cluster. Only beta apis * `desiredMasterAuthorizedNetworksConfig` (*type:* `GoogleApi.Container.V1.Model.MasterAuthorizedNetworksConfig.t`, *default:* `nil`) - The desired configuration options for master authorized networks feature. * `desiredPrivateClusterConfig` (*type:* `GoogleApi.Container.V1.Model.PrivateClusterConfig.t`, *default:* `nil`) - The desired private cluster configuration. * `desiredNodeVersion` (*type:* `String.t`, *default:* `nil`) - The Kubernetes version to change the nodes to (typically an upgrade). Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior: - "latest": picks the highest valid Kubernetes version - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - "1.X.Y-gke.N": picks an explicit Kubernetes version - "-": picks the Kubernetes master version * `desiredMeshCertificates` (*type:* `GoogleApi.Container.V1.Model.MeshCertificates.t`, *default:* `nil`) - Configuration for issuance of mTLS keys and certificates to Kubernetes pods. * `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. + * `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. * `desiredAuthenticatorGroupsConfig` (*type:* `GoogleApi.Container.V1.Model.AuthenticatorGroupsConfig.t`, *default:* `nil`) - The desired authenticator groups config for the cluster. + * `desiredK8sBetaApis` (*type:* `GoogleApi.Container.V1.Model.K8sBetaAPIConfig.t`, *default:* `nil`) - Desired Beta APIs to be enabled for cluster. * `desiredCostManagementConfig` (*type:* `GoogleApi.Container.V1.Model.CostManagementConfig.t`, *default:* `nil`) - The desired configuration for the fine-grained cost management feature. + * `desiredEnableCiliumClusterwideNetworkPolicy` (*type:* `boolean()`, *default:* `nil`) - Enable/Disable Cilium Clusterwide Network Policy for the cluster. * `desiredShieldedNodes` (*type:* `GoogleApi.Container.V1.Model.ShieldedNodes.t`, *default:* `nil`) - Configuration for Shielded Nodes. * `desiredNodePoolId` (*type:* `String.t`, *default:* `nil`) - The node pool to be upgraded. This field is mandatory if "desired_node_version", "desired_image_family" or "desired_node_pool_autoscaling" is specified and there is more than one node pool on the cluster. * `desiredIntraNodeVisibilityConfig` (*type:* `GoogleApi.Container.V1.Model.IntraNodeVisibilityConfig.t`, *default:* `nil`) - The desired config of Intra-node visibility. @@ -39,25 +44,35 @@ defmodule GoogleApi.Container.V1.Model.ClusterUpdate do * `desiredEnablePrivateEndpoint` (*type:* `boolean()`, *default:* `nil`) - Enable/Disable private endpoint for the cluster's master. * `desiredNodePoolLoggingConfig` (*type:* `GoogleApi.Container.V1.Model.NodePoolLoggingConfig.t`, *default:* `nil`) - The desired node pool logging configuration defaults for the cluster. * `desiredPrivateIpv6GoogleAccess` (*type:* `String.t`, *default:* `nil`) - The desired state of IPv6 connectivity to Google Services. + * `desiredNodePoolAutoConfigResourceManagerTags` (*type:* `GoogleApi.Container.V1.Model.ResourceManagerTags.t`, *default:* `nil`) - The desired resource manager tags that apply to all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters. * `desiredDatabaseEncryption` (*type:* `GoogleApi.Container.V1.Model.DatabaseEncryption.t`, *default:* `nil`) - Configuration of etcd encryption. * `desiredResourceUsageExportConfig` (*type:* `GoogleApi.Container.V1.Model.ResourceUsageExportConfig.t`, *default:* `nil`) - The desired configuration for exporting resource usage. * `desiredNotificationConfig` (*type:* `GoogleApi.Container.V1.Model.NotificationConfig.t`, *default:* `nil`) - The desired notification configuration. * `desiredVerticalPodAutoscaling` (*type:* `GoogleApi.Container.V1.Model.VerticalPodAutoscaling.t`, *default:* `nil`) - Cluster-level Vertical Pod Autoscaling configuration. + * `desiredInTransitEncryptionConfig` (*type:* `String.t`, *default:* `nil`) - Specify the details of in-transit encryption. + * `desiredFleet` (*type:* `GoogleApi.Container.V1.Model.Fleet.t`, *default:* `nil`) - The desired fleet configuration for the cluster. * `desiredAddonsConfig` (*type:* `GoogleApi.Container.V1.Model.AddonsConfig.t`, *default:* `nil`) - Configurations for the various addons available to run in the cluster. * `desiredNodePoolAutoscaling` (*type:* `GoogleApi.Container.V1.Model.NodePoolAutoscaling.t`, *default:* `nil`) - Autoscaler configuration for the node pool specified in desired_node_pool_id. If there is only one pool in the cluster and desired_node_pool_id is not provided then the change applies to that single node pool. + * `removedAdditionalPodRangesConfig` (*type:* `GoogleApi.Container.V1.Model.AdditionalPodRangesConfig.t`, *default:* `nil`) - The additional pod ranges that are to be removed from the cluster. The pod ranges specified here must have been specified earlier in the 'additional_pod_ranges_config' argument. * `desiredLocations` (*type:* `list(String.t)`, *default:* `nil`) - The desired list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes should be located. This list must always include the cluster's primary zone. Warning: changing cluster locations will update the locations of all node pools and will result in nodes being added and/or removed. + * `desiredNetworkPerformanceConfig` (*type:* `GoogleApi.Container.V1.Model.ClusterNetworkPerformanceConfig.t`, *default:* `nil`) - The desired network performance config. + * `desiredAutopilotWorkloadPolicyConfig` (*type:* `GoogleApi.Container.V1.Model.WorkloadPolicyConfig.t`, *default:* `nil`) - The desired workload policy configuration for the autopilot cluster. * `desiredIdentityServiceConfig` (*type:* `GoogleApi.Container.V1.Model.IdentityServiceConfig.t`, *default:* `nil`) - The desired Identity Service component configuration. * `desiredLoggingConfig` (*type:* `GoogleApi.Container.V1.Model.LoggingConfig.t`, *default:* `nil`) - The desired logging configuration. + * `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. * `desiredMonitoringConfig` (*type:* `GoogleApi.Container.V1.Model.MonitoringConfig.t`, *default:* `nil`) - The desired monitoring configuration. * `desiredMonitoringService` (*type:* `String.t`, *default:* `nil`) - The monitoring service the cluster should use to write metrics. Currently available options: * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring service with a Kubernetes-native resource model * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no longer available as of GKE 1.15). * `none` - No metrics will be exported from the cluster. If left as an empty string,`monitoring.googleapis.com/kubernetes` will be used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. * `desiredL4ilbSubsettingConfig` (*type:* `GoogleApi.Container.V1.Model.ILBSubsettingConfig.t`, *default:* `nil`) - The desired L4 Internal Load Balancer Subsetting configuration. * `desiredGcfsConfig` (*type:* `GoogleApi.Container.V1.Model.GcfsConfig.t`, *default:* `nil`) - The desired GCFS config for the cluster * `desiredClusterAutoscaling` (*type:* `GoogleApi.Container.V1.Model.ClusterAutoscaling.t`, *default:* `nil`) - Cluster-level autoscaling configuration. + * `desiredSecurityPostureConfig` (*type:* `GoogleApi.Container.V1.Model.SecurityPostureConfig.t`, *default:* `nil`) - Enable/Disable Security Posture API features for the cluster. + * `desiredParentProductConfig` (*type:* `GoogleApi.Container.V1.Model.ParentProductConfig.t`, *default:* `nil`) - The desired parent product config for the cluster. * `desiredMasterVersion` (*type:* `String.t`, *default:* `nil`) - The Kubernetes version to change the master to. Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior: - "latest": picks the highest valid Kubernetes version - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - "1.X.Y-gke.N": picks an explicit Kubernetes version - "-": picks the default Kubernetes version * `desiredImageType` (*type:* `String.t`, *default:* `nil`) - The desired image type for the node pool. NOTE: Set the "desired_node_pool" field as well. * `desiredDatapathProvider` (*type:* `String.t`, *default:* `nil`) - The desired datapath provider for the cluster. * `desiredLoggingService` (*type:* `String.t`, *default:* `nil`) - The logging service the cluster should use to write logs. Currently available options: * `logging.googleapis.com/kubernetes` - The Cloud Logging service with a Kubernetes-native resource model * `logging.googleapis.com` - The legacy Cloud Logging service (no longer available as of GKE 1.15). * `none` - no logs will be exported from the cluster. If left as an empty string,`logging.googleapis.com/kubernetes` will be used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. * `desiredWorkloadIdentityConfig` (*type:* `GoogleApi.Container.V1.Model.WorkloadIdentityConfig.t`, *default:* `nil`) - Configuration for Workload Identity. + * `desiredEnableFqdnNetworkPolicy` (*type:* `boolean()`, *default:* `nil`) - Enable/Disable FQDN Network Policy for the cluster. * `desiredReleaseChannel` (*type:* `GoogleApi.Container.V1.Model.ReleaseChannel.t`, *default:* `nil`) - The desired release channel configuration. """ @@ -68,7 +83,9 @@ defmodule GoogleApi.Container.V1.Model.ClusterUpdate do GoogleApi.Container.V1.Model.ServiceExternalIPsConfig.t() | nil, :desiredDnsConfig => GoogleApi.Container.V1.Model.DNSConfig.t() | nil, :desiredGatewayApiConfig => GoogleApi.Container.V1.Model.GatewayAPIConfig.t() | nil, + :etag => String.t() | nil, :desiredDefaultSnatStatus => GoogleApi.Container.V1.Model.DefaultSnatStatus.t() | nil, + :enableK8sBetaApis => GoogleApi.Container.V1.Model.K8sBetaAPIConfig.t() | nil, :desiredMasterAuthorizedNetworksConfig => GoogleApi.Container.V1.Model.MasterAuthorizedNetworksConfig.t() | nil, :desiredPrivateClusterConfig => @@ -77,10 +94,14 @@ defmodule GoogleApi.Container.V1.Model.ClusterUpdate do :desiredMeshCertificates => GoogleApi.Container.V1.Model.MeshCertificates.t() | nil, :desiredNodePoolAutoConfigNetworkTags => GoogleApi.Container.V1.Model.NetworkTags.t() | nil, + :additionalPodRangesConfig => + GoogleApi.Container.V1.Model.AdditionalPodRangesConfig.t() | nil, :desiredAuthenticatorGroupsConfig => GoogleApi.Container.V1.Model.AuthenticatorGroupsConfig.t() | nil, + :desiredK8sBetaApis => GoogleApi.Container.V1.Model.K8sBetaAPIConfig.t() | nil, :desiredCostManagementConfig => GoogleApi.Container.V1.Model.CostManagementConfig.t() | nil, + :desiredEnableCiliumClusterwideNetworkPolicy => boolean() | nil, :desiredShieldedNodes => GoogleApi.Container.V1.Model.ShieldedNodes.t() | nil, :desiredNodePoolId => String.t() | nil, :desiredIntraNodeVisibilityConfig => @@ -91,31 +112,47 @@ defmodule GoogleApi.Container.V1.Model.ClusterUpdate do :desiredNodePoolLoggingConfig => GoogleApi.Container.V1.Model.NodePoolLoggingConfig.t() | nil, :desiredPrivateIpv6GoogleAccess => String.t() | nil, + :desiredNodePoolAutoConfigResourceManagerTags => + GoogleApi.Container.V1.Model.ResourceManagerTags.t() | nil, :desiredDatabaseEncryption => GoogleApi.Container.V1.Model.DatabaseEncryption.t() | nil, :desiredResourceUsageExportConfig => GoogleApi.Container.V1.Model.ResourceUsageExportConfig.t() | nil, :desiredNotificationConfig => GoogleApi.Container.V1.Model.NotificationConfig.t() | nil, :desiredVerticalPodAutoscaling => GoogleApi.Container.V1.Model.VerticalPodAutoscaling.t() | nil, + :desiredInTransitEncryptionConfig => String.t() | nil, + :desiredFleet => GoogleApi.Container.V1.Model.Fleet.t() | nil, :desiredAddonsConfig => GoogleApi.Container.V1.Model.AddonsConfig.t() | nil, :desiredNodePoolAutoscaling => GoogleApi.Container.V1.Model.NodePoolAutoscaling.t() | nil, + :removedAdditionalPodRangesConfig => + GoogleApi.Container.V1.Model.AdditionalPodRangesConfig.t() | nil, :desiredLocations => list(String.t()) | nil, + :desiredNetworkPerformanceConfig => + GoogleApi.Container.V1.Model.ClusterNetworkPerformanceConfig.t() | nil, + :desiredAutopilotWorkloadPolicyConfig => + GoogleApi.Container.V1.Model.WorkloadPolicyConfig.t() | nil, :desiredIdentityServiceConfig => GoogleApi.Container.V1.Model.IdentityServiceConfig.t() | nil, :desiredLoggingConfig => GoogleApi.Container.V1.Model.LoggingConfig.t() | nil, + :desiredStackType => String.t() | nil, :desiredMonitoringConfig => GoogleApi.Container.V1.Model.MonitoringConfig.t() | nil, :desiredMonitoringService => String.t() | nil, :desiredL4ilbSubsettingConfig => GoogleApi.Container.V1.Model.ILBSubsettingConfig.t() | nil, :desiredGcfsConfig => GoogleApi.Container.V1.Model.GcfsConfig.t() | nil, :desiredClusterAutoscaling => GoogleApi.Container.V1.Model.ClusterAutoscaling.t() | nil, + :desiredSecurityPostureConfig => + GoogleApi.Container.V1.Model.SecurityPostureConfig.t() | nil, + :desiredParentProductConfig => + GoogleApi.Container.V1.Model.ParentProductConfig.t() | nil, :desiredMasterVersion => String.t() | nil, :desiredImageType => String.t() | nil, :desiredDatapathProvider => String.t() | nil, :desiredLoggingService => String.t() | nil, :desiredWorkloadIdentityConfig => GoogleApi.Container.V1.Model.WorkloadIdentityConfig.t() | nil, + :desiredEnableFqdnNetworkPolicy => boolean() | nil, :desiredReleaseChannel => GoogleApi.Container.V1.Model.ReleaseChannel.t() | nil } @@ -125,7 +162,9 @@ defmodule GoogleApi.Container.V1.Model.ClusterUpdate do field(:desiredDnsConfig, as: GoogleApi.Container.V1.Model.DNSConfig) field(:desiredGatewayApiConfig, as: GoogleApi.Container.V1.Model.GatewayAPIConfig) + field(:etag) field(:desiredDefaultSnatStatus, as: GoogleApi.Container.V1.Model.DefaultSnatStatus) + field(:enableK8sBetaApis, as: GoogleApi.Container.V1.Model.K8sBetaAPIConfig) field(:desiredMasterAuthorizedNetworksConfig, as: GoogleApi.Container.V1.Model.MasterAuthorizedNetworksConfig @@ -135,12 +174,15 @@ defmodule GoogleApi.Container.V1.Model.ClusterUpdate do field(:desiredNodeVersion) field(:desiredMeshCertificates, as: GoogleApi.Container.V1.Model.MeshCertificates) field(:desiredNodePoolAutoConfigNetworkTags, as: GoogleApi.Container.V1.Model.NetworkTags) + field(:additionalPodRangesConfig, as: GoogleApi.Container.V1.Model.AdditionalPodRangesConfig) field(:desiredAuthenticatorGroupsConfig, as: GoogleApi.Container.V1.Model.AuthenticatorGroupsConfig ) + field(:desiredK8sBetaApis, as: GoogleApi.Container.V1.Model.K8sBetaAPIConfig) field(:desiredCostManagementConfig, as: GoogleApi.Container.V1.Model.CostManagementConfig) + field(:desiredEnableCiliumClusterwideNetworkPolicy) field(:desiredShieldedNodes, as: GoogleApi.Container.V1.Model.ShieldedNodes) field(:desiredNodePoolId) @@ -152,6 +194,11 @@ defmodule GoogleApi.Container.V1.Model.ClusterUpdate do field(:desiredEnablePrivateEndpoint) field(:desiredNodePoolLoggingConfig, as: GoogleApi.Container.V1.Model.NodePoolLoggingConfig) field(:desiredPrivateIpv6GoogleAccess) + + field(:desiredNodePoolAutoConfigResourceManagerTags, + as: GoogleApi.Container.V1.Model.ResourceManagerTags + ) + field(:desiredDatabaseEncryption, as: GoogleApi.Container.V1.Model.DatabaseEncryption) field(:desiredResourceUsageExportConfig, @@ -160,21 +207,41 @@ defmodule GoogleApi.Container.V1.Model.ClusterUpdate do field(:desiredNotificationConfig, as: GoogleApi.Container.V1.Model.NotificationConfig) field(:desiredVerticalPodAutoscaling, as: GoogleApi.Container.V1.Model.VerticalPodAutoscaling) + field(:desiredInTransitEncryptionConfig) + field(:desiredFleet, as: GoogleApi.Container.V1.Model.Fleet) field(:desiredAddonsConfig, as: GoogleApi.Container.V1.Model.AddonsConfig) field(:desiredNodePoolAutoscaling, as: GoogleApi.Container.V1.Model.NodePoolAutoscaling) + + field(:removedAdditionalPodRangesConfig, + as: GoogleApi.Container.V1.Model.AdditionalPodRangesConfig + ) + field(:desiredLocations, type: :list) + + field(:desiredNetworkPerformanceConfig, + as: GoogleApi.Container.V1.Model.ClusterNetworkPerformanceConfig + ) + + field(:desiredAutopilotWorkloadPolicyConfig, + as: GoogleApi.Container.V1.Model.WorkloadPolicyConfig + ) + field(:desiredIdentityServiceConfig, as: GoogleApi.Container.V1.Model.IdentityServiceConfig) field(:desiredLoggingConfig, as: GoogleApi.Container.V1.Model.LoggingConfig) + field(:desiredStackType) field(:desiredMonitoringConfig, as: GoogleApi.Container.V1.Model.MonitoringConfig) field(:desiredMonitoringService) field(:desiredL4ilbSubsettingConfig, as: GoogleApi.Container.V1.Model.ILBSubsettingConfig) field(:desiredGcfsConfig, as: GoogleApi.Container.V1.Model.GcfsConfig) field(:desiredClusterAutoscaling, as: GoogleApi.Container.V1.Model.ClusterAutoscaling) + field(:desiredSecurityPostureConfig, as: GoogleApi.Container.V1.Model.SecurityPostureConfig) + field(:desiredParentProductConfig, as: GoogleApi.Container.V1.Model.ParentProductConfig) field(:desiredMasterVersion) field(:desiredImageType) field(:desiredDatapathProvider) field(:desiredLoggingService) field(:desiredWorkloadIdentityConfig, as: GoogleApi.Container.V1.Model.WorkloadIdentityConfig) + field(:desiredEnableFqdnNetworkPolicy) field(:desiredReleaseChannel, as: GoogleApi.Container.V1.Model.ReleaseChannel) end diff --git a/clients/container/lib/google_api/container/v1/model/database_encryption.ex b/clients/container/lib/google_api/container/v1/model/database_encryption.ex index 6f337fd7b0..d7ec1395b2 100644 --- a/clients/container/lib/google_api/container/v1/model/database_encryption.ex +++ b/clients/container/lib/google_api/container/v1/model/database_encryption.ex @@ -22,7 +22,7 @@ defmodule GoogleApi.Container.V1.Model.DatabaseEncryption do ## Attributes * `keyName` (*type:* `String.t`, *default:* `nil`) - Name of CloudKMS key to use for the encryption of secrets in etcd. Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key - * `state` (*type:* `String.t`, *default:* `nil`) - Denotes the state of etcd encryption. + * `state` (*type:* `String.t`, *default:* `nil`) - The desired state of etcd encryption. """ use GoogleApi.Gax.ModelBase diff --git a/clients/container/lib/google_api/container/v1/model/enterprise_config.ex b/clients/container/lib/google_api/container/v1/model/enterprise_config.ex new file mode 100644 index 0000000000..9f5b2e91ee --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/enterprise_config.ex @@ -0,0 +1,46 @@ +# 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.EnterpriseConfig do + @moduledoc """ + EnterpriseConfig is the cluster enterprise configuration. + + ## Attributes + + * `clusterTier` (*type:* `String.t`, *default:* `nil`) - Output only. [Output only] cluster_tier specifies the premium tier of the cluster. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :clusterTier => String.t() | nil + } + + field(:clusterTier) +end + +defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.EnterpriseConfig do + def decode(value, options) do + GoogleApi.Container.V1.Model.EnterpriseConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.EnterpriseConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/container/lib/google_api/container/v1/model/ephemeral_storage_local_ssd_config.ex b/clients/container/lib/google_api/container/v1/model/ephemeral_storage_local_ssd_config.ex new file mode 100644 index 0000000000..1b71941505 --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/ephemeral_storage_local_ssd_config.ex @@ -0,0 +1,46 @@ +# 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.EphemeralStorageLocalSsdConfig do + @moduledoc """ + EphemeralStorageLocalSsdConfig contains configuration for the node ephemeral storage using Local SSDs. + + ## Attributes + + * `localSsdCount` (*type:* `integer()`, *default:* `nil`) - Number of local SSDs to use to back ephemeral storage. Uses NVMe interfaces. A zero (or unset) value has different meanings depending on machine type being used: 1. For pre-Gen3 machines, which support flexible numbers of local ssds, zero (or unset) means to disable using local SSDs as ephemeral storage. The limit for this value is dependent upon the maximum number of disk available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd for more information. 2. For Gen3 machines which dictate a specific number of local ssds, zero (or unset) means to use the default number of local ssds that goes with that machine type. For example, for a c3-standard-8-lssd machine, 2 local ssds would be provisioned. For c3-standard-8 (which doesn't support local ssds), 0 will be provisioned. See https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds for more info. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :localSsdCount => integer() | nil + } + + field(:localSsdCount) +end + +defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.EphemeralStorageLocalSsdConfig do + def decode(value, options) do + GoogleApi.Container.V1.Model.EphemeralStorageLocalSsdConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.EphemeralStorageLocalSsdConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/container/lib/google_api/container/v1/model/fleet.ex b/clients/container/lib/google_api/container/v1/model/fleet.ex new file mode 100644 index 0000000000..463bcf1b88 --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/fleet.ex @@ -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.Fleet do + @moduledoc """ + Fleet is the fleet configuration for the cluster. + + ## Attributes + + * `membership` (*type:* `String.t`, *default:* `nil`) - [Output only] The full resource name of the registered fleet membership of the cluster, in the format `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`. + * `preRegistered` (*type:* `boolean()`, *default:* `nil`) - [Output only] Whether the cluster has been registered through the fleet API. + * `project` (*type:* `String.t`, *default:* `nil`) - The Fleet host project(project ID or project number) where this cluster will be registered to. This field cannot be changed after the cluster has been registered. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :membership => String.t() | nil, + :preRegistered => boolean() | nil, + :project => String.t() | nil + } + + field(:membership) + field(:preRegistered) + field(:project) +end + +defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.Fleet do + def decode(value, options) do + GoogleApi.Container.V1.Model.Fleet.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.Fleet do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/container/lib/google_api/container/v1/model/gcs_fuse_csi_driver_config.ex b/clients/container/lib/google_api/container/v1/model/gcs_fuse_csi_driver_config.ex new file mode 100644 index 0000000000..a1408fd23a --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/gcs_fuse_csi_driver_config.ex @@ -0,0 +1,46 @@ +# 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.GcsFuseCsiDriverConfig do + @moduledoc """ + Configuration for the Cloud Storage Fuse CSI driver. + + ## Attributes + + * `enabled` (*type:* `boolean()`, *default:* `nil`) - Whether the Cloud Storage Fuse CSI driver is enabled for this cluster. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :enabled => boolean() | nil + } + + field(:enabled) +end + +defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.GcsFuseCsiDriverConfig do + def decode(value, options) do + GoogleApi.Container.V1.Model.GcsFuseCsiDriverConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.GcsFuseCsiDriverConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/container/lib/google_api/container/v1/model/gpu_driver_installation_config.ex b/clients/container/lib/google_api/container/v1/model/gpu_driver_installation_config.ex new file mode 100644 index 0000000000..e7318be9f6 --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/gpu_driver_installation_config.ex @@ -0,0 +1,46 @@ +# 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.GPUDriverInstallationConfig do + @moduledoc """ + GPUDriverInstallationConfig specifies the version of GPU driver to be auto installed. + + ## Attributes + + * `gpuDriverVersion` (*type:* `String.t`, *default:* `nil`) - Mode for how the GPU driver is installed. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :gpuDriverVersion => String.t() | nil + } + + field(:gpuDriverVersion) +end + +defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.GPUDriverInstallationConfig do + def decode(value, options) do + GoogleApi.Container.V1.Model.GPUDriverInstallationConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.GPUDriverInstallationConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/container/lib/google_api/container/v1/model/ip_allocation_policy.ex b/clients/container/lib/google_api/container/v1/model/ip_allocation_policy.ex index 1663c28810..d480d0441f 100644 --- a/clients/container/lib/google_api/container/v1/model/ip_allocation_policy.ex +++ b/clients/container/lib/google_api/container/v1/model/ip_allocation_policy.ex @@ -21,17 +21,22 @@ defmodule GoogleApi.Container.V1.Model.IPAllocationPolicy do ## Attributes + * `additionalPodRangesConfig` (*type:* `GoogleApi.Container.V1.Model.AdditionalPodRangesConfig.t`, *default:* `nil`) - Output only. [Output only] The additional pod ranges that are added to the cluster. These pod ranges can be used by new node pools to allocate pod IPs automatically. Once the range is removed it will not show up in IPAllocationPolicy. * `clusterIpv4Cidr` (*type:* `String.t`, *default:* `nil`) - This field is deprecated, use cluster_ipv4_cidr_block. * `clusterIpv4CidrBlock` (*type:* `String.t`, *default:* `nil`) - The IP address range for the cluster pod IPs. If this field is set, then `cluster.cluster_ipv4_cidr` must be left blank. This field is only applicable when `use_ip_aliases` is true. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. `/14`) to have a range chosen with a specific netmask. Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range to use. * `clusterSecondaryRangeName` (*type:* `String.t`, *default:* `nil`) - The name of the secondary range to be used for the cluster CIDR block. The secondary range will be used for pod IP addresses. This must be an existing secondary range associated with the cluster subnetwork. This field is only applicable with use_ip_aliases is true and create_subnetwork is false. * `createSubnetwork` (*type:* `boolean()`, *default:* `nil`) - Whether a new subnetwork will be created automatically for the cluster. This field is only applicable when `use_ip_aliases` is true. + * `defaultPodIpv4RangeUtilization` (*type:* `float()`, *default:* `nil`) - Output only. [Output only] The utilization of the cluster default IPv4 range for the pod. The ratio is Usage/[Total number of IPs in the secondary range], Usage=numNodes*numZones*podIPsPerNode. * `ipv6AccessType` (*type:* `String.t`, *default:* `nil`) - The ipv6 access type (internal or external) when create_subnetwork is true * `nodeIpv4Cidr` (*type:* `String.t`, *default:* `nil`) - This field is deprecated, use node_ipv4_cidr_block. * `nodeIpv4CidrBlock` (*type:* `String.t`, *default:* `nil`) - The IP address range of the instance IPs in this cluster. This is applicable only if `create_subnetwork` is true. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. `/14`) to have a range chosen with a specific netmask. Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range to use. + * `podCidrOverprovisionConfig` (*type:* `GoogleApi.Container.V1.Model.PodCIDROverprovisionConfig.t`, *default:* `nil`) - [PRIVATE FIELD] Pod CIDR size overprovisioning config for the cluster. Pod CIDR size per node depends on max_pods_per_node. By default, the value of max_pods_per_node is doubled and then rounded off to next power of 2 to get the size of pod CIDR block per node. Example: max_pods_per_node of 30 would result in 64 IPs (/26). This config can disable the doubling of IPs (we still round off to next power of 2) Example: max_pods_per_node of 30 will result in 32 IPs (/27) when overprovisioning is disabled. * `servicesIpv4Cidr` (*type:* `String.t`, *default:* `nil`) - This field is deprecated, use services_ipv4_cidr_block. * `servicesIpv4CidrBlock` (*type:* `String.t`, *default:* `nil`) - The IP address range of the services IPs in this cluster. If blank, a range will be automatically chosen with the default size. This field is only applicable when `use_ip_aliases` is true. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. `/14`) to have a range chosen with a specific netmask. Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range to use. + * `servicesIpv6CidrBlock` (*type:* `String.t`, *default:* `nil`) - Output only. [Output only] The services IPv6 CIDR block for the cluster. * `servicesSecondaryRangeName` (*type:* `String.t`, *default:* `nil`) - The name of the secondary range to be used as for the services CIDR block. The secondary range will be used for service ClusterIPs. This must be an existing secondary range associated with the cluster subnetwork. This field is only applicable with use_ip_aliases is true and create_subnetwork is false. * `stackType` (*type:* `String.t`, *default:* `nil`) - The IP stack type of the cluster + * `subnetIpv6CidrBlock` (*type:* `String.t`, *default:* `nil`) - Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and pods. * `subnetworkName` (*type:* `String.t`, *default:* `nil`) - A custom subnetwork name to be used if `create_subnetwork` is true. If this field is empty, then an automatic name will be chosen for the new subnetwork. * `tpuIpv4CidrBlock` (*type:* `String.t`, *default:* `nil`) - The IP address range of the Cloud TPUs in this cluster. If unspecified, a range will be automatically chosen with the default size. This field is only applicable when `use_ip_aliases` is true. If unspecified, the range will use the default size. Set to /netmask (e.g. `/14`) to have a range chosen with a specific netmask. Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range to use. * `useIpAliases` (*type:* `boolean()`, *default:* `nil`) - Whether alias IPs will be used for pod IPs in the cluster. This is used in conjunction with use_routes. It cannot be true if use_routes is true. If both use_ip_aliases and use_routes are false, then the server picks the default IP allocation mode @@ -41,34 +46,46 @@ defmodule GoogleApi.Container.V1.Model.IPAllocationPolicy do use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :additionalPodRangesConfig => + GoogleApi.Container.V1.Model.AdditionalPodRangesConfig.t() | nil, :clusterIpv4Cidr => String.t() | nil, :clusterIpv4CidrBlock => String.t() | nil, :clusterSecondaryRangeName => String.t() | nil, :createSubnetwork => boolean() | nil, + :defaultPodIpv4RangeUtilization => float() | nil, :ipv6AccessType => String.t() | nil, :nodeIpv4Cidr => String.t() | nil, :nodeIpv4CidrBlock => String.t() | nil, + :podCidrOverprovisionConfig => + GoogleApi.Container.V1.Model.PodCIDROverprovisionConfig.t() | nil, :servicesIpv4Cidr => String.t() | nil, :servicesIpv4CidrBlock => String.t() | nil, + :servicesIpv6CidrBlock => String.t() | nil, :servicesSecondaryRangeName => String.t() | nil, :stackType => String.t() | nil, + :subnetIpv6CidrBlock => String.t() | nil, :subnetworkName => String.t() | nil, :tpuIpv4CidrBlock => String.t() | nil, :useIpAliases => boolean() | nil, :useRoutes => boolean() | nil } + field(:additionalPodRangesConfig, as: GoogleApi.Container.V1.Model.AdditionalPodRangesConfig) field(:clusterIpv4Cidr) field(:clusterIpv4CidrBlock) field(:clusterSecondaryRangeName) field(:createSubnetwork) + field(:defaultPodIpv4RangeUtilization) field(:ipv6AccessType) field(:nodeIpv4Cidr) field(:nodeIpv4CidrBlock) + field(:podCidrOverprovisionConfig, as: GoogleApi.Container.V1.Model.PodCIDROverprovisionConfig) field(:servicesIpv4Cidr) field(:servicesIpv4CidrBlock) + field(:servicesIpv6CidrBlock) field(:servicesSecondaryRangeName) field(:stackType) + field(:subnetIpv6CidrBlock) field(:subnetworkName) field(:tpuIpv4CidrBlock) field(:useIpAliases) diff --git a/clients/container/lib/google_api/container/v1/model/k8s_beta_api_config.ex b/clients/container/lib/google_api/container/v1/model/k8s_beta_api_config.ex new file mode 100644 index 0000000000..dfc361858f --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/k8s_beta_api_config.ex @@ -0,0 +1,46 @@ +# 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.K8sBetaAPIConfig do + @moduledoc """ + K8sBetaAPIConfig , configuration for beta APIs + + ## Attributes + + * `enabledApis` (*type:* `list(String.t)`, *default:* `nil`) - Enabled k8s beta APIs. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :enabledApis => list(String.t()) | nil + } + + field(:enabledApis, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.K8sBetaAPIConfig do + def decode(value, options) do + GoogleApi.Container.V1.Model.K8sBetaAPIConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.K8sBetaAPIConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/container/lib/google_api/container/v1/model/local_nvme_ssd_block_config.ex b/clients/container/lib/google_api/container/v1/model/local_nvme_ssd_block_config.ex new file mode 100644 index 0000000000..d75dd763bb --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/local_nvme_ssd_block_config.ex @@ -0,0 +1,46 @@ +# 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.LocalNvmeSsdBlockConfig do + @moduledoc """ + LocalNvmeSsdBlockConfig contains configuration for using raw-block local NVMe SSDs + + ## Attributes + + * `localSsdCount` (*type:* `integer()`, *default:* `nil`) - Number of local NVMe SSDs to use. The limit for this value is dependent upon the maximum number of disk available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd for more information. A zero (or unset) value has different meanings depending on machine type being used: 1. For pre-Gen3 machines, which support flexible numbers of local ssds, zero (or unset) means to disable using local SSDs as ephemeral storage. 2. For Gen3 machines which dictate a specific number of local ssds, zero (or unset) means to use the default number of local ssds that goes with that machine type. For example, for a c3-standard-8-lssd machine, 2 local ssds would be provisioned. For c3-standard-8 (which doesn't support local ssds), 0 will be provisioned. See https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds for more info. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :localSsdCount => integer() | nil + } + + field(:localSsdCount) +end + +defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.LocalNvmeSsdBlockConfig do + def decode(value, options) do + GoogleApi.Container.V1.Model.LocalNvmeSsdBlockConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.LocalNvmeSsdBlockConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/container/lib/google_api/container/v1/model/monitoring_config.ex b/clients/container/lib/google_api/container/v1/model/monitoring_config.ex index 85a9517a2d..c4140014aa 100644 --- a/clients/container/lib/google_api/container/v1/model/monitoring_config.ex +++ b/clients/container/lib/google_api/container/v1/model/monitoring_config.ex @@ -21,6 +21,7 @@ defmodule GoogleApi.Container.V1.Model.MonitoringConfig do ## Attributes + * `advancedDatapathObservabilityConfig` (*type:* `GoogleApi.Container.V1.Model.AdvancedDatapathObservabilityConfig.t`, *default:* `nil`) - Configuration of Advanced Datapath Observability features. * `componentConfig` (*type:* `GoogleApi.Container.V1.Model.MonitoringComponentConfig.t`, *default:* `nil`) - Monitoring components configuration * `managedPrometheusConfig` (*type:* `GoogleApi.Container.V1.Model.ManagedPrometheusConfig.t`, *default:* `nil`) - Enable Google Cloud Managed Service for Prometheus in the cluster. """ @@ -28,11 +29,17 @@ defmodule GoogleApi.Container.V1.Model.MonitoringConfig do use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :advancedDatapathObservabilityConfig => + GoogleApi.Container.V1.Model.AdvancedDatapathObservabilityConfig.t() | nil, :componentConfig => GoogleApi.Container.V1.Model.MonitoringComponentConfig.t() | nil, :managedPrometheusConfig => GoogleApi.Container.V1.Model.ManagedPrometheusConfig.t() | nil } + field(:advancedDatapathObservabilityConfig, + as: GoogleApi.Container.V1.Model.AdvancedDatapathObservabilityConfig + ) + field(:componentConfig, as: GoogleApi.Container.V1.Model.MonitoringComponentConfig) field(:managedPrometheusConfig, as: GoogleApi.Container.V1.Model.ManagedPrometheusConfig) end diff --git a/clients/container/lib/google_api/container/v1/model/network_config.ex b/clients/container/lib/google_api/container/v1/model/network_config.ex index 9ea760e3a8..d828c909e4 100644 --- a/clients/container/lib/google_api/container/v1/model/network_config.ex +++ b/clients/container/lib/google_api/container/v1/model/network_config.ex @@ -24,10 +24,15 @@ defmodule GoogleApi.Container.V1.Model.NetworkConfig do * `datapathProvider` (*type:* `String.t`, *default:* `nil`) - The desired datapath provider for this cluster. By default, uses the IPTables-based kube-proxy implementation. * `defaultSnatStatus` (*type:* `GoogleApi.Container.V1.Model.DefaultSnatStatus.t`, *default:* `nil`) - Whether the cluster disables default in-node sNAT rules. In-node sNAT rules will be disabled when default_snat_status is disabled. When disabled is set to false, default IP masquerade rules will be applied to the nodes to prevent sNAT on cluster internal traffic. * `dnsConfig` (*type:* `GoogleApi.Container.V1.Model.DNSConfig.t`, *default:* `nil`) - DNSConfig contains clusterDNS config for this cluster. + * `enableCiliumClusterwideNetworkPolicy` (*type:* `boolean()`, *default:* `nil`) - Whether CiliumClusterwideNetworkPolicy is enabled on this cluster. + * `enableFqdnNetworkPolicy` (*type:* `boolean()`, *default:* `nil`) - Whether FQDN Network Policy is enabled on this cluster. * `enableIntraNodeVisibility` (*type:* `boolean()`, *default:* `nil`) - Whether Intra-node visibility is enabled for this cluster. This makes same node pod to pod traffic visible for VPC network. * `enableL4ilbSubsetting` (*type:* `boolean()`, *default:* `nil`) - Whether L4ILB Subsetting is enabled for this cluster. + * `enableMultiNetworking` (*type:* `boolean()`, *default:* `nil`) - Whether multi-networking is enabled for this cluster. * `gatewayApiConfig` (*type:* `GoogleApi.Container.V1.Model.GatewayAPIConfig.t`, *default:* `nil`) - GatewayAPIConfig contains the desired config of Gateway API on this cluster. + * `inTransitEncryptionConfig` (*type:* `String.t`, *default:* `nil`) - Specify the details of in-transit encryption. * `network` (*type:* `String.t`, *default:* `nil`) - Output only. The relative name of the Google Compute Engine network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the cluster is connected. Example: projects/my-project/global/networks/my-network + * `networkPerformanceConfig` (*type:* `GoogleApi.Container.V1.Model.ClusterNetworkPerformanceConfig.t`, *default:* `nil`) - Network bandwidth tier configuration. * `privateIpv6GoogleAccess` (*type:* `String.t`, *default:* `nil`) - The desired state of IPv6 connectivity to Google Services. By default, no private IPv6 access to or from Google Services (all access will be via IPv4) * `serviceExternalIpsConfig` (*type:* `GoogleApi.Container.V1.Model.ServiceExternalIPsConfig.t`, *default:* `nil`) - ServiceExternalIPsConfig specifies if services with externalIPs field are blocked or not. * `subnetwork` (*type:* `String.t`, *default:* `nil`) - Output only. The relative name of the Google Compute Engine [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the cluster is connected. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet @@ -39,10 +44,16 @@ defmodule GoogleApi.Container.V1.Model.NetworkConfig do :datapathProvider => String.t() | nil, :defaultSnatStatus => GoogleApi.Container.V1.Model.DefaultSnatStatus.t() | nil, :dnsConfig => GoogleApi.Container.V1.Model.DNSConfig.t() | nil, + :enableCiliumClusterwideNetworkPolicy => boolean() | nil, + :enableFqdnNetworkPolicy => boolean() | nil, :enableIntraNodeVisibility => boolean() | nil, :enableL4ilbSubsetting => boolean() | nil, + :enableMultiNetworking => boolean() | nil, :gatewayApiConfig => GoogleApi.Container.V1.Model.GatewayAPIConfig.t() | nil, + :inTransitEncryptionConfig => String.t() | nil, :network => String.t() | nil, + :networkPerformanceConfig => + GoogleApi.Container.V1.Model.ClusterNetworkPerformanceConfig.t() | nil, :privateIpv6GoogleAccess => String.t() | nil, :serviceExternalIpsConfig => GoogleApi.Container.V1.Model.ServiceExternalIPsConfig.t() | nil, @@ -52,10 +63,19 @@ defmodule GoogleApi.Container.V1.Model.NetworkConfig do field(:datapathProvider) field(:defaultSnatStatus, as: GoogleApi.Container.V1.Model.DefaultSnatStatus) field(:dnsConfig, as: GoogleApi.Container.V1.Model.DNSConfig) + field(:enableCiliumClusterwideNetworkPolicy) + field(:enableFqdnNetworkPolicy) field(:enableIntraNodeVisibility) field(:enableL4ilbSubsetting) + field(:enableMultiNetworking) field(:gatewayApiConfig, as: GoogleApi.Container.V1.Model.GatewayAPIConfig) + field(:inTransitEncryptionConfig) field(:network) + + field(:networkPerformanceConfig, + as: GoogleApi.Container.V1.Model.ClusterNetworkPerformanceConfig + ) + field(:privateIpv6GoogleAccess) field(:serviceExternalIpsConfig, as: GoogleApi.Container.V1.Model.ServiceExternalIPsConfig) field(:subnetwork) diff --git a/clients/container/lib/google_api/container/v1/model/node_affinity.ex b/clients/container/lib/google_api/container/v1/model/node_affinity.ex new file mode 100644 index 0000000000..c71217aeeb --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/node_affinity.ex @@ -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.NodeAffinity do + @moduledoc """ + Specifies the NodeAffinity key, values, and affinity operator according to [shared sole tenant node group affinities](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes#node_affinity_and_anti-affinity). + + ## Attributes + + * `key` (*type:* `String.t`, *default:* `nil`) - Key for NodeAffinity. + * `operator` (*type:* `String.t`, *default:* `nil`) - Operator for NodeAffinity. + * `values` (*type:* `list(String.t)`, *default:* `nil`) - Values for NodeAffinity. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :key => String.t() | nil, + :operator => String.t() | nil, + :values => list(String.t()) | nil + } + + field(:key) + field(:operator) + field(:values, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.NodeAffinity do + def decode(value, options) do + GoogleApi.Container.V1.Model.NodeAffinity.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.NodeAffinity do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end 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 6c2abc6357..d4acc4cbfb 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 @@ -21,105 +21,133 @@ defmodule GoogleApi.Container.V1.Model.NodeConfig do ## Attributes - * `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. * `advancedMachineFeatures` (*type:* `GoogleApi.Container.V1.Model.AdvancedMachineFeatures.t`, *default:* `nil`) - Advanced features for the Compute Engine VM. - * `bootDiskKmsKey` (*type:* `String.t`, *default:* `nil`) - The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool. This should be of the form projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption - * `confidentialNodes` (*type:* `GoogleApi.Container.V1.Model.ConfidentialNodes.t`, *default:* `nil`) - Confidential nodes config. All the nodes in the node pool will be Confidential VM once enabled. - * `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. - * `diskType` (*type:* `String.t`, *default:* `nil`) - Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or 'pd-balanced') If unspecified, the default disk type is 'pd-standard' - * `fastSocket` (*type:* `GoogleApi.Container.V1.Model.FastSocket.t`, *default:* `nil`) - Enable or disable NCCL fast socket for the node pool. - * `gcfsConfig` (*type:* `GoogleApi.Container.V1.Model.GcfsConfig.t`, *default:* `nil`) - Google Container File System (image streaming) configs. - * `gvnic` (*type:* `GoogleApi.Container.V1.Model.VirtualNIC.t`, *default:* `nil`) - Enable or disable gvnic in the node pool. - * `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. - * `kubeletConfig` (*type:* `GoogleApi.Container.V1.Model.NodeKubeletConfig.t`, *default:* `nil`) - Node kubelet configs. - * `labels` (*type:* `map()`, *default:* `nil`) - The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version -- it's best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - * `linuxNodeConfig` (*type:* `GoogleApi.Container.V1.Model.LinuxNodeConfig.t`, *default:* `nil`) - Parameters that can be configured on Linux nodes. - * `localSsdCount` (*type:* `integer()`, *default:* `nil`) - The number of local SSD disks to be attached to the node. The limit for this value is dependent upon the maximum number of disks available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd for more information. - * `loggingConfig` (*type:* `GoogleApi.Container.V1.Model.NodePoolLoggingConfig.t`, *default:* `nil`) - Logging configuration. * `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`. - * `metadata` (*type:* `map()`, *default:* `nil`) - The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the reserved keys: - "cluster-location" - "cluster-name" - "cluster-uid" - "configure-sh" - "containerd-configure-sh" - "enable-os-login" - "gci-ensure-gke-docker" - "gci-metrics-enabled" - "gci-update-strategy" - "instance-template" - "kube-env" - "startup-script" - "user-data" - "disable-address-manager" - "windows-startup-script-ps1" - "common-psm1" - "k8s-node-setup-psm1" - "install-ssh-psm1" - "user-profile-psm1" Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value's size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB. - * `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) - * `nodeGroup` (*type:* `String.t`, *default:* `nil`) - Setting this field will assign instances of this pool to run on the specified node group. This is useful for running workloads on [sole tenant nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). - * `oauthScopes` (*type:* `list(String.t)`, *default:* `nil`) - The set of Google API scopes to be made available on all of the node VMs under the "default" service account. The following scopes are recommended, but not required, and by default are not included: * `https://www.googleapis.com/auth/compute` is required for mounting persistent storage on your nodes. * `https://www.googleapis.com/auth/devstorage.read_only` is required for communicating with **gcr.io** (the [Google Container Registry](https://cloud.google.com/container-registry/)). If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added. * `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. - * `reservationAffinity` (*type:* `GoogleApi.Container.V1.Model.ReservationAffinity.t`, *default:* `nil`) - The optional reservation affinity. Setting this field will apply the specified [Zonal Compute Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) to this node pool. - * `resourceLabels` (*type:* `map()`, *default:* `nil`) - The resource labels for the node pool to use to annotate any related Google Compute Engine resources. - * `sandboxConfig` (*type:* `GoogleApi.Container.V1.Model.SandboxConfig.t`, *default:* `nil`) - Sandbox configuration for this node. - * `serviceAccount` (*type:* `String.t`, *default:* `nil`) - The Google Cloud Platform Service Account to be used by the node VMs. Specify the email address of the Service Account; otherwise, if no Service Account is specified, the "default" service account is used. + * `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. + * `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. + * `localSsdCount` (*type:* `integer()`, *default:* `nil`) - The number of local SSD disks to be attached to the node. The limit for this value is dependent upon the maximum number of disks available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd for more information. + * `soleTenantConfig` (*type:* `GoogleApi.Container.V1.Model.SoleTenantConfig.t`, *default:* `nil`) - Parameters for node pools to be backed by shared sole tenant node groups. + * `linuxNodeConfig` (*type:* `GoogleApi.Container.V1.Model.LinuxNodeConfig.t`, *default:* `nil`) - Parameters that can be configured on Linux nodes. + * `kubeletConfig` (*type:* `GoogleApi.Container.V1.Model.NodeKubeletConfig.t`, *default:* `nil`) - Node kubelet configs. + * `metadata` (*type:* `map()`, *default:* `nil`) - The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the reserved keys: - "cluster-location" - "cluster-name" - "cluster-uid" - "configure-sh" - "containerd-configure-sh" - "enable-os-login" - "gci-ensure-gke-docker" - "gci-metrics-enabled" - "gci-update-strategy" - "instance-template" - "kube-env" - "startup-script" - "user-data" - "disable-address-manager" - "windows-startup-script-ps1" - "common-psm1" - "k8s-node-setup-psm1" - "install-ssh-psm1" - "user-profile-psm1" Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value's size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB. + * `fastSocket` (*type:* `GoogleApi.Container.V1.Model.FastSocket.t`, *default:* `nil`) - Enable or disable NCCL fast socket for the node pool. + * `loggingConfig` (*type:* `GoogleApi.Container.V1.Model.NodePoolLoggingConfig.t`, *default:* `nil`) - Logging configuration. + * `resourceManagerTags` (*type:* `GoogleApi.Container.V1.Model.ResourceManagerTags.t`, *default:* `nil`) - A map of resource manager tag keys and values to be attached to the nodes. * `shieldedInstanceConfig` (*type:* `GoogleApi.Container.V1.Model.ShieldedInstanceConfig.t`, *default:* `nil`) - Shielded Instance options. * `spot` (*type:* `boolean()`, *default:* `nil`) - Spot flag for enabling Spot VM, which is a rebrand of the existing preemptible flag. - * `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. * `taints` (*type:* `list(GoogleApi.Container.V1.Model.NodeTaint.t)`, *default:* `nil`) - List of kubernetes taints to be applied to each node. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ + * `secondaryBootDisks` (*type:* `list(GoogleApi.Container.V1.Model.SecondaryBootDisk.t)`, *default:* `nil`) - List of secondary boot disks attached to the nodes. + * `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. + * `bootDiskKmsKey` (*type:* `String.t`, *default:* `nil`) - The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool. This should be of the form projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption + * `gcfsConfig` (*type:* `GoogleApi.Container.V1.Model.GcfsConfig.t`, *default:* `nil`) - Google Container File System (image streaming) configs. + * `ephemeralStorageLocalSsdConfig` (*type:* `GoogleApi.Container.V1.Model.EphemeralStorageLocalSsdConfig.t`, *default:* `nil`) - Parameters for the node ephemeral storage using Local SSDs. If unspecified, ephemeral storage is backed by the boot disk. + * `serviceAccount` (*type:* `String.t`, *default:* `nil`) - The Google Cloud Platform Service Account to be used by the node VMs. Specify the email address of the Service Account; otherwise, if no Service Account is specified, the "default" service account is used. + * `resourceLabels` (*type:* `map()`, *default:* `nil`) - The resource labels for the node pool to use to annotate any related Google Compute Engine resources. + * `enableConfidentialStorage` (*type:* `boolean()`, *default:* `nil`) - Optional. Reserved for future use. + * `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) + * `diskType` (*type:* `String.t`, *default:* `nil`) - Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or 'pd-balanced') If unspecified, the default disk type is 'pd-standard' * `workloadMetadataConfig` (*type:* `GoogleApi.Container.V1.Model.WorkloadMetadataConfig.t`, *default:* `nil`) - The workload metadata configuration for this node. + * `labels` (*type:* `map()`, *default:* `nil`) - The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version -- it's best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ + * `sandboxConfig` (*type:* `GoogleApi.Container.V1.Model.SandboxConfig.t`, *default:* `nil`) - Sandbox configuration for this node. + * `windowsNodeConfig` (*type:* `GoogleApi.Container.V1.Model.WindowsNodeConfig.t`, *default:* `nil`) - Parameters that can be configured on Windows nodes. + * `localNvmeSsdBlockConfig` (*type:* `GoogleApi.Container.V1.Model.LocalNvmeSsdBlockConfig.t`, *default:* `nil`) - Parameters for using raw-block Local NVMe SSDs. + * `reservationAffinity` (*type:* `GoogleApi.Container.V1.Model.ReservationAffinity.t`, *default:* `nil`) - The optional reservation affinity. Setting this field will apply the specified [Zonal Compute Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) to this node pool. + * `gvnic` (*type:* `GoogleApi.Container.V1.Model.VirtualNIC.t`, *default:* `nil`) - Enable or disable gvnic in the node pool. + * `oauthScopes` (*type:* `list(String.t)`, *default:* `nil`) - The set of Google API scopes to be made available on all of the node VMs under the "default" service account. The following scopes are recommended, but not required, and by default are not included: * `https://www.googleapis.com/auth/compute` is required for mounting persistent storage on your nodes. * `https://www.googleapis.com/auth/devstorage.read_only` is required for communicating with **gcr.io** (the [Google Container Registry](https://cloud.google.com/container-registry/)). If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added. + * `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. + * `confidentialNodes` (*type:* `GoogleApi.Container.V1.Model.ConfidentialNodes.t`, *default:* `nil`) - Confidential nodes config. All the nodes in the node pool will be Confidential VM once enabled. + * `nodeGroup` (*type:* `String.t`, *default:* `nil`) - Setting this field will assign instances of this pool to run on the specified node group. This is useful for running workloads on [sole tenant nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :accelerators => list(GoogleApi.Container.V1.Model.AcceleratorConfig.t()) | nil, :advancedMachineFeatures => GoogleApi.Container.V1.Model.AdvancedMachineFeatures.t() | nil, - :bootDiskKmsKey => String.t() | nil, - :confidentialNodes => GoogleApi.Container.V1.Model.ConfidentialNodes.t() | nil, - :diskSizeGb => integer() | nil, - :diskType => String.t() | nil, - :fastSocket => GoogleApi.Container.V1.Model.FastSocket.t() | nil, - :gcfsConfig => GoogleApi.Container.V1.Model.GcfsConfig.t() | nil, - :gvnic => GoogleApi.Container.V1.Model.VirtualNIC.t() | nil, - :imageType => String.t() | nil, - :kubeletConfig => GoogleApi.Container.V1.Model.NodeKubeletConfig.t() | nil, - :labels => map() | nil, - :linuxNodeConfig => GoogleApi.Container.V1.Model.LinuxNodeConfig.t() | nil, - :localSsdCount => integer() | nil, - :loggingConfig => GoogleApi.Container.V1.Model.NodePoolLoggingConfig.t() | nil, :machineType => String.t() | nil, - :metadata => map() | nil, - :minCpuPlatform => String.t() | nil, - :nodeGroup => String.t() | nil, - :oauthScopes => list(String.t()) | nil, :preemptible => boolean() | nil, - :reservationAffinity => GoogleApi.Container.V1.Model.ReservationAffinity.t() | nil, - :resourceLabels => map() | nil, - :sandboxConfig => GoogleApi.Container.V1.Model.SandboxConfig.t() | nil, - :serviceAccount => String.t() | nil, + :tags => list(String.t()) | nil, + :accelerators => list(GoogleApi.Container.V1.Model.AcceleratorConfig.t()) | nil, + :localSsdCount => integer() | nil, + :soleTenantConfig => GoogleApi.Container.V1.Model.SoleTenantConfig.t() | nil, + :linuxNodeConfig => GoogleApi.Container.V1.Model.LinuxNodeConfig.t() | nil, + :kubeletConfig => GoogleApi.Container.V1.Model.NodeKubeletConfig.t() | nil, + :metadata => map() | nil, + :fastSocket => GoogleApi.Container.V1.Model.FastSocket.t() | nil, + :loggingConfig => GoogleApi.Container.V1.Model.NodePoolLoggingConfig.t() | nil, + :resourceManagerTags => GoogleApi.Container.V1.Model.ResourceManagerTags.t() | nil, :shieldedInstanceConfig => GoogleApi.Container.V1.Model.ShieldedInstanceConfig.t() | nil, :spot => boolean() | nil, - :tags => list(String.t()) | nil, :taints => list(GoogleApi.Container.V1.Model.NodeTaint.t()) | nil, - :workloadMetadataConfig => GoogleApi.Container.V1.Model.WorkloadMetadataConfig.t() | nil + :secondaryBootDisks => list(GoogleApi.Container.V1.Model.SecondaryBootDisk.t()) | nil, + :diskSizeGb => integer() | nil, + :bootDiskKmsKey => String.t() | nil, + :gcfsConfig => GoogleApi.Container.V1.Model.GcfsConfig.t() | nil, + :ephemeralStorageLocalSsdConfig => + GoogleApi.Container.V1.Model.EphemeralStorageLocalSsdConfig.t() | nil, + :serviceAccount => String.t() | nil, + :resourceLabels => map() | nil, + :enableConfidentialStorage => boolean() | nil, + :minCpuPlatform => String.t() | nil, + :diskType => String.t() | nil, + :workloadMetadataConfig => + GoogleApi.Container.V1.Model.WorkloadMetadataConfig.t() | nil, + :labels => map() | nil, + :sandboxConfig => GoogleApi.Container.V1.Model.SandboxConfig.t() | nil, + :windowsNodeConfig => GoogleApi.Container.V1.Model.WindowsNodeConfig.t() | nil, + :localNvmeSsdBlockConfig => + GoogleApi.Container.V1.Model.LocalNvmeSsdBlockConfig.t() | nil, + :reservationAffinity => GoogleApi.Container.V1.Model.ReservationAffinity.t() | nil, + :gvnic => GoogleApi.Container.V1.Model.VirtualNIC.t() | nil, + :oauthScopes => list(String.t()) | nil, + :imageType => String.t() | nil, + :confidentialNodes => GoogleApi.Container.V1.Model.ConfidentialNodes.t() | nil, + :nodeGroup => String.t() | nil } - field(:accelerators, as: GoogleApi.Container.V1.Model.AcceleratorConfig, type: :list) field(:advancedMachineFeatures, as: GoogleApi.Container.V1.Model.AdvancedMachineFeatures) - field(:bootDiskKmsKey) - field(:confidentialNodes, as: GoogleApi.Container.V1.Model.ConfidentialNodes) - field(:diskSizeGb) - field(:diskType) - field(:fastSocket, as: GoogleApi.Container.V1.Model.FastSocket) - field(:gcfsConfig, as: GoogleApi.Container.V1.Model.GcfsConfig) - field(:gvnic, as: GoogleApi.Container.V1.Model.VirtualNIC) - field(:imageType) - field(:kubeletConfig, as: GoogleApi.Container.V1.Model.NodeKubeletConfig) - field(:labels, type: :map) - field(:linuxNodeConfig, as: GoogleApi.Container.V1.Model.LinuxNodeConfig) - field(:localSsdCount) - field(:loggingConfig, as: GoogleApi.Container.V1.Model.NodePoolLoggingConfig) field(:machineType) - field(:metadata, type: :map) - field(:minCpuPlatform) - field(:nodeGroup) - field(:oauthScopes, type: :list) field(:preemptible) - field(:reservationAffinity, as: GoogleApi.Container.V1.Model.ReservationAffinity) - field(:resourceLabels, type: :map) - field(:sandboxConfig, as: GoogleApi.Container.V1.Model.SandboxConfig) - field(:serviceAccount) + field(:tags, type: :list) + field(:accelerators, as: GoogleApi.Container.V1.Model.AcceleratorConfig, type: :list) + field(:localSsdCount) + field(:soleTenantConfig, as: GoogleApi.Container.V1.Model.SoleTenantConfig) + field(:linuxNodeConfig, as: GoogleApi.Container.V1.Model.LinuxNodeConfig) + field(:kubeletConfig, as: GoogleApi.Container.V1.Model.NodeKubeletConfig) + field(:metadata, type: :map) + field(:fastSocket, as: GoogleApi.Container.V1.Model.FastSocket) + field(:loggingConfig, as: GoogleApi.Container.V1.Model.NodePoolLoggingConfig) + field(:resourceManagerTags, as: GoogleApi.Container.V1.Model.ResourceManagerTags) field(:shieldedInstanceConfig, as: GoogleApi.Container.V1.Model.ShieldedInstanceConfig) field(:spot) - field(:tags, type: :list) field(:taints, as: GoogleApi.Container.V1.Model.NodeTaint, type: :list) + field(:secondaryBootDisks, as: GoogleApi.Container.V1.Model.SecondaryBootDisk, type: :list) + field(:diskSizeGb) + field(:bootDiskKmsKey) + field(:gcfsConfig, as: GoogleApi.Container.V1.Model.GcfsConfig) + + field(:ephemeralStorageLocalSsdConfig, + as: GoogleApi.Container.V1.Model.EphemeralStorageLocalSsdConfig + ) + + field(:serviceAccount) + field(:resourceLabels, type: :map) + field(:enableConfidentialStorage) + field(:minCpuPlatform) + field(:diskType) field(:workloadMetadataConfig, as: GoogleApi.Container.V1.Model.WorkloadMetadataConfig) + field(:labels, type: :map) + field(:sandboxConfig, as: GoogleApi.Container.V1.Model.SandboxConfig) + field(:windowsNodeConfig, as: GoogleApi.Container.V1.Model.WindowsNodeConfig) + field(:localNvmeSsdBlockConfig, as: GoogleApi.Container.V1.Model.LocalNvmeSsdBlockConfig) + field(:reservationAffinity, as: GoogleApi.Container.V1.Model.ReservationAffinity) + field(:gvnic, as: GoogleApi.Container.V1.Model.VirtualNIC) + field(:oauthScopes, type: :list) + field(:imageType) + field(:confidentialNodes, as: GoogleApi.Container.V1.Model.ConfidentialNodes) + field(:nodeGroup) end defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.NodeConfig do diff --git a/clients/container/lib/google_api/container/v1/model/node_kubelet_config.ex b/clients/container/lib/google_api/container/v1/model/node_kubelet_config.ex index 58961ef5dc..683070bb4b 100644 --- a/clients/container/lib/google_api/container/v1/model/node_kubelet_config.ex +++ b/clients/container/lib/google_api/container/v1/model/node_kubelet_config.ex @@ -24,6 +24,7 @@ defmodule GoogleApi.Container.V1.Model.NodeKubeletConfig do * `cpuCfsQuota` (*type:* `boolean()`, *default:* `nil`) - Enable CPU CFS quota enforcement for containers that specify CPU limits. This option is enabled by default which makes kubelet use CFS quota (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to enforce container CPU limits. Otherwise, CPU limits will not be enforced at all. Disable this option to mitigate CPU throttling problems while still having your pods to be in Guaranteed QoS class by specifying the CPU limits. The default value is 'true' if unspecified. * `cpuCfsQuotaPeriod` (*type:* `String.t`, *default:* `nil`) - Set the CPU CFS quota period value 'cpu.cfs_period_us'. The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". The value must be a positive duration. * `cpuManagerPolicy` (*type:* `String.t`, *default:* `nil`) - Control the CPU management policy on the node. See https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ The following values are allowed. * "none": the default, which represents the existing scheduling behavior. * "static": allows pods with certain resource characteristics to be granted increased CPU affinity and exclusivity on the node. The default value is 'none' if unspecified. + * `insecureKubeletReadonlyPortEnabled` (*type:* `boolean()`, *default:* `nil`) - Enable or disable Kubelet read only port. * `podPidsLimit` (*type:* `String.t`, *default:* `nil`) - Set the Pod PID limits. See https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits Controls the maximum number of processes allowed to run in a pod. The value must be greater than or equal to 1024 and less than 4194304. """ @@ -33,12 +34,14 @@ defmodule GoogleApi.Container.V1.Model.NodeKubeletConfig do :cpuCfsQuota => boolean() | nil, :cpuCfsQuotaPeriod => String.t() | nil, :cpuManagerPolicy => String.t() | nil, + :insecureKubeletReadonlyPortEnabled => boolean() | nil, :podPidsLimit => String.t() | nil } field(:cpuCfsQuota) field(:cpuCfsQuotaPeriod) field(:cpuManagerPolicy) + field(:insecureKubeletReadonlyPortEnabled) field(:podPidsLimit) end diff --git a/clients/container/lib/google_api/container/v1/model/node_network_config.ex b/clients/container/lib/google_api/container/v1/model/node_network_config.ex index 45a5b4b023..3882ffc9fb 100644 --- a/clients/container/lib/google_api/container/v1/model/node_network_config.ex +++ b/clients/container/lib/google_api/container/v1/model/node_network_config.ex @@ -21,28 +21,51 @@ defmodule GoogleApi.Container.V1.Model.NodeNetworkConfig do ## Attributes + * `additionalNodeNetworkConfigs` (*type:* `list(GoogleApi.Container.V1.Model.AdditionalNodeNetworkConfig.t)`, *default:* `nil`) - We specify the additional node networks for this node pool using this list. Each node network corresponds to an additional interface + * `additionalPodNetworkConfigs` (*type:* `list(GoogleApi.Container.V1.Model.AdditionalPodNetworkConfig.t)`, *default:* `nil`) - We specify the additional pod networks for this node pool using this list. Each pod network corresponds to an additional alias IP range for the node * `createPodRange` (*type:* `boolean()`, *default:* `nil`) - Input only. Whether to create a new range for pod IPs in this node pool. Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they are not specified. If neither `create_pod_range` or `pod_range` are specified, the cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is used. Only applicable if `ip_allocation_policy.use_ip_aliases` is true. This field cannot be changed after the node pool has been created. * `enablePrivateNodes` (*type:* `boolean()`, *default:* `nil`) - Whether nodes have internal IP addresses only. If enable_private_nodes is not specified, then the value is derived from cluster.privateClusterConfig.enablePrivateNodes * `networkPerformanceConfig` (*type:* `GoogleApi.Container.V1.Model.NetworkPerformanceConfig.t`, *default:* `nil`) - Network bandwidth tier configuration. + * `podCidrOverprovisionConfig` (*type:* `GoogleApi.Container.V1.Model.PodCIDROverprovisionConfig.t`, *default:* `nil`) - [PRIVATE FIELD] Pod CIDR size overprovisioning config for the nodepool. Pod CIDR size per node depends on max_pods_per_node. By default, the value of max_pods_per_node is rounded off to next power of 2 and we then double that to get the size of pod CIDR block per node. Example: max_pods_per_node of 30 would result in 64 IPs (/26). This config can disable the doubling of IPs (we still round off to next power of 2) Example: max_pods_per_node of 30 will result in 32 IPs (/27) when overprovisioning is disabled. * `podIpv4CidrBlock` (*type:* `String.t`, *default:* `nil`) - The IP address range for pod IPs in this node pool. Only applicable if `create_pod_range` is true. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. `/14`) to have a range chosen with a specific netmask. Set to a [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`) to pick a specific range to use. Only applicable if `ip_allocation_policy.use_ip_aliases` is true. This field cannot be changed after the node pool has been created. + * `podIpv4RangeUtilization` (*type:* `float()`, *default:* `nil`) - Output only. [Output only] The utilization of the IPv4 range for the pod. The ratio is Usage/[Total number of IPs in the secondary range], Usage=numNodes*numZones*podIPsPerNode. * `podRange` (*type:* `String.t`, *default:* `nil`) - The ID of the secondary range for pod IPs. If `create_pod_range` is true, this ID is used for the new range. If `create_pod_range` is false, uses an existing secondary range with this ID. Only applicable if `ip_allocation_policy.use_ip_aliases` is true. This field cannot be changed after the node pool has been created. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :additionalNodeNetworkConfigs => + list(GoogleApi.Container.V1.Model.AdditionalNodeNetworkConfig.t()) | nil, + :additionalPodNetworkConfigs => + list(GoogleApi.Container.V1.Model.AdditionalPodNetworkConfig.t()) | nil, :createPodRange => boolean() | nil, :enablePrivateNodes => boolean() | nil, :networkPerformanceConfig => GoogleApi.Container.V1.Model.NetworkPerformanceConfig.t() | nil, + :podCidrOverprovisionConfig => + GoogleApi.Container.V1.Model.PodCIDROverprovisionConfig.t() | nil, :podIpv4CidrBlock => String.t() | nil, + :podIpv4RangeUtilization => float() | nil, :podRange => String.t() | nil } + field(:additionalNodeNetworkConfigs, + as: GoogleApi.Container.V1.Model.AdditionalNodeNetworkConfig, + type: :list + ) + + field(:additionalPodNetworkConfigs, + as: GoogleApi.Container.V1.Model.AdditionalPodNetworkConfig, + type: :list + ) + field(:createPodRange) field(:enablePrivateNodes) field(:networkPerformanceConfig, as: GoogleApi.Container.V1.Model.NetworkPerformanceConfig) + field(:podCidrOverprovisionConfig, as: GoogleApi.Container.V1.Model.PodCIDROverprovisionConfig) field(:podIpv4CidrBlock) + field(:podIpv4RangeUtilization) field(:podRange) end diff --git a/clients/container/lib/google_api/container/v1/model/node_pool.ex b/clients/container/lib/google_api/container/v1/model/node_pool.ex index 26b6583315..3f0dea4c6c 100644 --- a/clients/container/lib/google_api/container/v1/model/node_pool.ex +++ b/clients/container/lib/google_api/container/v1/model/node_pool.ex @@ -22,8 +22,10 @@ defmodule GoogleApi.Container.V1.Model.NodePool do ## Attributes * `autoscaling` (*type:* `GoogleApi.Container.V1.Model.NodePoolAutoscaling.t`, *default:* `nil`) - Autoscaler configuration for this NodePool. Autoscaler is enabled only if a valid configuration is present. + * `bestEffortProvisioning` (*type:* `GoogleApi.Container.V1.Model.BestEffortProvisioning.t`, *default:* `nil`) - Enable best effort provisioning for nodes * `conditions` (*type:* `list(GoogleApi.Container.V1.Model.StatusCondition.t)`, *default:* `nil`) - Which conditions caused the current node pool state. * `config` (*type:* `GoogleApi.Container.V1.Model.NodeConfig.t`, *default:* `nil`) - The node configuration of the pool. + * `etag` (*type:* `String.t`, *default:* `nil`) - This checksum is computed by the server based on the value of node pool fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding. * `initialNodeCount` (*type:* `integer()`, *default:* `nil`) - The initial node count for the pool. You must ensure that your Compute Engine [resource quota](https://cloud.google.com/compute/quotas) is sufficient for this number of instances. You must also have available firewall and routes quota. * `instanceGroupUrls` (*type:* `list(String.t)`, *default:* `nil`) - [Output only] The resource URLs of the [managed instance groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) associated with this node pool. During the node pool blue-green upgrade operation, the URLs contain both blue and green resources. * `locations` (*type:* `list(String.t)`, *default:* `nil`) - The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the NodePool's nodes should be located. If this value is unspecified during node pool creation, the [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) value will be used, instead. Warning: changing node pool locations will result in nodes being added and/or removed. @@ -33,20 +35,24 @@ defmodule GoogleApi.Container.V1.Model.NodePool do * `networkConfig` (*type:* `GoogleApi.Container.V1.Model.NodeNetworkConfig.t`, *default:* `nil`) - Networking configuration for this NodePool. If specified, it overrides the cluster-level defaults. * `placementPolicy` (*type:* `GoogleApi.Container.V1.Model.PlacementPolicy.t`, *default:* `nil`) - Specifies the node placement policy. * `podIpv4CidrSize` (*type:* `integer()`, *default:* `nil`) - [Output only] The pod CIDR block size per node in this node pool. + * `queuedProvisioning` (*type:* `GoogleApi.Container.V1.Model.QueuedProvisioning.t`, *default:* `nil`) - Specifies the configuration of queued provisioning. * `selfLink` (*type:* `String.t`, *default:* `nil`) - [Output only] Server-defined URL for the resource. * `status` (*type:* `String.t`, *default:* `nil`) - [Output only] The status of the nodes in this pool instance. * `statusMessage` (*type:* `String.t`, *default:* `nil`) - [Output only] Deprecated. Use conditions instead. Additional information about the current status of this node pool instance, if available. * `updateInfo` (*type:* `GoogleApi.Container.V1.Model.UpdateInfo.t`, *default:* `nil`) - Output only. [Output only] Update info contains relevant information during a node pool update. * `upgradeSettings` (*type:* `GoogleApi.Container.V1.Model.UpgradeSettings.t`, *default:* `nil`) - Upgrade settings control disruption and speed of the upgrade. - * `version` (*type:* `String.t`, *default:* `nil`) - The version of the Kubernetes of this node. + * `version` (*type:* `String.t`, *default:* `nil`) - The version of Kubernetes running on this NodePool's nodes. If unspecified, it defaults as described [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :autoscaling => GoogleApi.Container.V1.Model.NodePoolAutoscaling.t() | nil, + :bestEffortProvisioning => + GoogleApi.Container.V1.Model.BestEffortProvisioning.t() | nil, :conditions => list(GoogleApi.Container.V1.Model.StatusCondition.t()) | nil, :config => GoogleApi.Container.V1.Model.NodeConfig.t() | nil, + :etag => String.t() | nil, :initialNodeCount => integer() | nil, :instanceGroupUrls => list(String.t()) | nil, :locations => list(String.t()) | nil, @@ -56,6 +62,7 @@ defmodule GoogleApi.Container.V1.Model.NodePool do :networkConfig => GoogleApi.Container.V1.Model.NodeNetworkConfig.t() | nil, :placementPolicy => GoogleApi.Container.V1.Model.PlacementPolicy.t() | nil, :podIpv4CidrSize => integer() | nil, + :queuedProvisioning => GoogleApi.Container.V1.Model.QueuedProvisioning.t() | nil, :selfLink => String.t() | nil, :status => String.t() | nil, :statusMessage => String.t() | nil, @@ -65,8 +72,10 @@ defmodule GoogleApi.Container.V1.Model.NodePool do } field(:autoscaling, as: GoogleApi.Container.V1.Model.NodePoolAutoscaling) + field(:bestEffortProvisioning, as: GoogleApi.Container.V1.Model.BestEffortProvisioning) field(:conditions, as: GoogleApi.Container.V1.Model.StatusCondition, type: :list) field(:config, as: GoogleApi.Container.V1.Model.NodeConfig) + field(:etag) field(:initialNodeCount) field(:instanceGroupUrls, type: :list) field(:locations, type: :list) @@ -76,6 +85,7 @@ defmodule GoogleApi.Container.V1.Model.NodePool do field(:networkConfig, as: GoogleApi.Container.V1.Model.NodeNetworkConfig) field(:placementPolicy, as: GoogleApi.Container.V1.Model.PlacementPolicy) field(:podIpv4CidrSize) + field(:queuedProvisioning, as: GoogleApi.Container.V1.Model.QueuedProvisioning) field(:selfLink) field(:status) field(:statusMessage) 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 69a0ed82f3..5f829b99cd 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 @@ -22,15 +22,18 @@ defmodule GoogleApi.Container.V1.Model.NodePoolAutoConfig do ## Attributes * `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. + * `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. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :networkTags => GoogleApi.Container.V1.Model.NetworkTags.t() | nil + :networkTags => GoogleApi.Container.V1.Model.NetworkTags.t() | nil, + :resourceManagerTags => GoogleApi.Container.V1.Model.ResourceManagerTags.t() | nil } field(:networkTags, as: GoogleApi.Container.V1.Model.NetworkTags) + field(:resourceManagerTags, as: GoogleApi.Container.V1.Model.ResourceManagerTags) end defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.NodePoolAutoConfig do diff --git a/clients/container/lib/google_api/container/v1/model/node_taint.ex b/clients/container/lib/google_api/container/v1/model/node_taint.ex index 4b8b1dd2a5..56146b5f41 100644 --- a/clients/container/lib/google_api/container/v1/model/node_taint.ex +++ b/clients/container/lib/google_api/container/v1/model/node_taint.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Container.V1.Model.NodeTaint do @moduledoc """ - Kubernetes taint is comprised of three fields: key, value, and effect. Effect can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. See [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration) for more information, including usage and the valid values. + Kubernetes taint is composed of three fields: key, value, and effect. Effect can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. See [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration) for more information, including usage and the valid values. ## Attributes diff --git a/clients/container/lib/google_api/container/v1/model/operation.ex b/clients/container/lib/google_api/container/v1/model/operation.ex index 426ae7ec33..ae46a925b3 100644 --- a/clients/container/lib/google_api/container/v1/model/operation.ex +++ b/clients/container/lib/google_api/container/v1/model/operation.ex @@ -30,11 +30,11 @@ defmodule GoogleApi.Container.V1.Model.Operation do * `nodepoolConditions` (*type:* `list(GoogleApi.Container.V1.Model.StatusCondition.t)`, *default:* `nil`) - Which conditions caused the current node pool state. Deprecated. Use field error instead. * `operationType` (*type:* `String.t`, *default:* `nil`) - The operation type. * `progress` (*type:* `GoogleApi.Container.V1.Model.OperationProgress.t`, *default:* `nil`) - Output only. [Output only] Progress information for an operation. - * `selfLink` (*type:* `String.t`, *default:* `nil`) - Server-defined URL for the resource. + * `selfLink` (*type:* `String.t`, *default:* `nil`) - Server-defined URI for the operation. Example: `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`. * `startTime` (*type:* `String.t`, *default:* `nil`) - [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. * `status` (*type:* `String.t`, *default:* `nil`) - The current status of the operation. * `statusMessage` (*type:* `String.t`, *default:* `nil`) - Output only. If an error has occurred, a textual description of the error. Deprecated. Use the field error instead. - * `targetLink` (*type:* `String.t`, *default:* `nil`) - Server-defined URL for the target of the operation. + * `targetLink` (*type:* `String.t`, *default:* `nil`) - Server-defined URI for the target of the operation. The format of this is a URI to the resource being modified (such as a cluster, node pool, or node). For node pool repairs, there may be multiple nodes being repaired, but only one will be the target. Examples: - ## `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster` ## `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np` `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node` * `zone` (*type:* `String.t`, *default:* `nil`) - The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead. """ diff --git a/clients/container/lib/google_api/container/v1/model/parent_product_config.ex b/clients/container/lib/google_api/container/v1/model/parent_product_config.ex new file mode 100644 index 0000000000..acbdeabcb2 --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/parent_product_config.ex @@ -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.ParentProductConfig do + @moduledoc """ + ParentProductConfig is the configuration of the parent product of the cluster. This field is used by Google internal products that are built on top of a GKE cluster and take the ownership of the cluster. + + ## Attributes + + * `labels` (*type:* `map()`, *default:* `nil`) - Labels contain the configuration of the parent product. + * `productName` (*type:* `String.t`, *default:* `nil`) - Name of the parent product associated with the cluster. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :labels => map() | nil, + :productName => String.t() | nil + } + + field(:labels, type: :map) + field(:productName) +end + +defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.ParentProductConfig do + def decode(value, options) do + GoogleApi.Container.V1.Model.ParentProductConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.ParentProductConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/container/lib/google_api/container/v1/model/placement_policy.ex b/clients/container/lib/google_api/container/v1/model/placement_policy.ex index df8332f422..6a21618646 100644 --- a/clients/container/lib/google_api/container/v1/model/placement_policy.ex +++ b/clients/container/lib/google_api/container/v1/model/placement_policy.ex @@ -21,15 +21,21 @@ defmodule GoogleApi.Container.V1.Model.PlacementPolicy do ## Attributes + * `policyName` (*type:* `String.t`, *default:* `nil`) - If set, refers to the name of a custom resource policy supplied by the user. The resource policy must be in the same project and region as the node pool. If not found, InvalidArgument error is returned. + * `tpuTopology` (*type:* `String.t`, *default:* `nil`) - Optional. TPU placement topology for pod slice node pool. https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies * `type` (*type:* `String.t`, *default:* `nil`) - The type of placement. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :policyName => String.t() | nil, + :tpuTopology => String.t() | nil, :type => String.t() | nil } + field(:policyName) + field(:tpuTopology) field(:type) end diff --git a/clients/container/lib/google_api/container/v1/model/pod_cidr_overprovision_config.ex b/clients/container/lib/google_api/container/v1/model/pod_cidr_overprovision_config.ex new file mode 100644 index 0000000000..f65f9bcc69 --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/pod_cidr_overprovision_config.ex @@ -0,0 +1,46 @@ +# 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.PodCIDROverprovisionConfig do + @moduledoc """ + [PRIVATE FIELD] Config for pod CIDR size overprovisioning. + + ## Attributes + + * `disable` (*type:* `boolean()`, *default:* `nil`) - Whether Pod CIDR overprovisioning is disabled. Note: Pod CIDR overprovisioning is enabled by default. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :disable => boolean() | nil + } + + field(:disable) +end + +defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.PodCIDROverprovisionConfig do + def decode(value, options) do + GoogleApi.Container.V1.Model.PodCIDROverprovisionConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.PodCIDROverprovisionConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/container/lib/google_api/container/v1/model/queued_provisioning.ex b/clients/container/lib/google_api/container/v1/model/queued_provisioning.ex new file mode 100644 index 0000000000..e75a3e5c4e --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/queued_provisioning.ex @@ -0,0 +1,46 @@ +# 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.QueuedProvisioning do + @moduledoc """ + QueuedProvisioning defines the queued provisioning used by the node pool. + + ## Attributes + + * `enabled` (*type:* `boolean()`, *default:* `nil`) - Denotes that this nodepool is QRM specific, meaning nodes can be only obtained through queuing via the Cluster Autoscaler ProvisioningRequest API. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :enabled => boolean() | nil + } + + field(:enabled) +end + +defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.QueuedProvisioning do + def decode(value, options) do + GoogleApi.Container.V1.Model.QueuedProvisioning.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.QueuedProvisioning do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/container/lib/google_api/container/v1/model/range_info.ex b/clients/container/lib/google_api/container/v1/model/range_info.ex new file mode 100644 index 0000000000..3683768b5d --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/range_info.ex @@ -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.RangeInfo do + @moduledoc """ + RangeInfo contains the range name and the range utilization by this cluster. + + ## Attributes + + * `rangeName` (*type:* `String.t`, *default:* `nil`) - Output only. [Output only] Name of a range. + * `utilization` (*type:* `float()`, *default:* `nil`) - Output only. [Output only] The utilization of the range. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :rangeName => String.t() | nil, + :utilization => float() | nil + } + + field(:rangeName) + field(:utilization) +end + +defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.RangeInfo do + def decode(value, options) do + GoogleApi.Container.V1.Model.RangeInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.RangeInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/container/lib/google_api/container/v1/model/resource_manager_tags.ex b/clients/container/lib/google_api/container/v1/model/resource_manager_tags.ex new file mode 100644 index 0000000000..06198645fa --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/resource_manager_tags.ex @@ -0,0 +1,46 @@ +# 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.ResourceManagerTags do + @moduledoc """ + A map of resource manager tag keys and values to be attached to the nodes for managing Compute Engine firewalls using Network Firewall Policies. Tags must be according to specifications in https://cloud.google.com/vpc/docs/tags-firewalls-overview#specifications. A maximum of 5 tag key-value pairs can be specified. Existing tags will be replaced with new values. + + ## Attributes + + * `tags` (*type:* `map()`, *default:* `nil`) - TagKeyValue must be in one of the following formats ([KEY]=[VALUE]) 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}` 2. `{org_id}/{tag_key_name}={tag_value_name}` 3. `{project_id}/{tag_key_name}={tag_value_name}` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :tags => map() | nil + } + + field(:tags, type: :map) +end + +defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.ResourceManagerTags do + def decode(value, options) do + GoogleApi.Container.V1.Model.ResourceManagerTags.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.ResourceManagerTags do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/container/lib/google_api/container/v1/model/secondary_boot_disk.ex b/clients/container/lib/google_api/container/v1/model/secondary_boot_disk.ex new file mode 100644 index 0000000000..3fe142d6c0 --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/secondary_boot_disk.ex @@ -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.SecondaryBootDisk do + @moduledoc """ + SecondaryBootDisk represents a persistent disk attached to a node with special configurations based on its mode. + + ## Attributes + + * `diskImage` (*type:* `String.t`, *default:* `nil`) - Fully-qualified resource ID for an existing disk image. + * `mode` (*type:* `String.t`, *default:* `nil`) - Disk mode (container image cache, etc.) + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :diskImage => String.t() | nil, + :mode => String.t() | nil + } + + field(:diskImage) + field(:mode) +end + +defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.SecondaryBootDisk do + def decode(value, options) do + GoogleApi.Container.V1.Model.SecondaryBootDisk.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.SecondaryBootDisk do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/container/lib/google_api/container/v1/model/security_posture_config.ex b/clients/container/lib/google_api/container/v1/model/security_posture_config.ex new file mode 100644 index 0000000000..c32578fbd7 --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/security_posture_config.ex @@ -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.SecurityPostureConfig do + @moduledoc """ + SecurityPostureConfig defines the flags needed to enable/disable features for the Security Posture API. + + ## Attributes + + * `mode` (*type:* `String.t`, *default:* `nil`) - Sets which mode to use for Security Posture features. + * `vulnerabilityMode` (*type:* `String.t`, *default:* `nil`) - Sets which mode to use for vulnerability scanning. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :mode => String.t() | nil, + :vulnerabilityMode => String.t() | nil + } + + field(:mode) + field(:vulnerabilityMode) +end + +defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.SecurityPostureConfig do + def decode(value, options) do + GoogleApi.Container.V1.Model.SecurityPostureConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.SecurityPostureConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/container/lib/google_api/container/v1/model/sole_tenant_config.ex b/clients/container/lib/google_api/container/v1/model/sole_tenant_config.ex new file mode 100644 index 0000000000..39e60afb6d --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/sole_tenant_config.ex @@ -0,0 +1,46 @@ +# 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.SoleTenantConfig do + @moduledoc """ + SoleTenantConfig contains the NodeAffinities to specify what shared sole tenant node groups should back the node pool. + + ## Attributes + + * `nodeAffinities` (*type:* `list(GoogleApi.Container.V1.Model.NodeAffinity.t)`, *default:* `nil`) - NodeAffinities used to match to a shared sole tenant node group. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :nodeAffinities => list(GoogleApi.Container.V1.Model.NodeAffinity.t()) | nil + } + + field(:nodeAffinities, as: GoogleApi.Container.V1.Model.NodeAffinity, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.SoleTenantConfig do + def decode(value, options) do + GoogleApi.Container.V1.Model.SoleTenantConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.SoleTenantConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/container/lib/google_api/container/v1/model/stateful_ha_config.ex b/clients/container/lib/google_api/container/v1/model/stateful_ha_config.ex new file mode 100644 index 0000000000..37fe85e956 --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/stateful_ha_config.ex @@ -0,0 +1,46 @@ +# 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.StatefulHAConfig do + @moduledoc """ + Configuration for the Stateful HA add-on. + + ## Attributes + + * `enabled` (*type:* `boolean()`, *default:* `nil`) - Whether the Stateful HA add-on is enabled for this cluster. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :enabled => boolean() | nil + } + + field(:enabled) +end + +defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.StatefulHAConfig do + def decode(value, options) do + GoogleApi.Container.V1.Model.StatefulHAConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.StatefulHAConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/container/lib/google_api/container/v1/model/update_node_pool_request.ex b/clients/container/lib/google_api/container/v1/model/update_node_pool_request.ex index 7b9d2ebb9b..b9733fdbad 100644 --- a/clients/container/lib/google_api/container/v1/model/update_node_pool_request.ex +++ b/clients/container/lib/google_api/container/v1/model/update_node_pool_request.ex @@ -23,24 +23,31 @@ defmodule GoogleApi.Container.V1.Model.UpdateNodePoolRequest do * `clusterId` (*type:* `String.t`, *default:* `nil`) - Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. * `confidentialNodes` (*type:* `GoogleApi.Container.V1.Model.ConfidentialNodes.t`, *default:* `nil`) - Confidential nodes config. All the nodes in the node pool will be Confidential VM once enabled. + * `diskSizeGb` (*type:* `String.t`, *default:* `nil`) - Optional. The desired disk size for nodes in the node pool specified in GB. The smallest allowed disk size is 10GB. Initiates an upgrade operation that migrates the nodes in the node pool to the specified disk size. + * `diskType` (*type:* `String.t`, *default:* `nil`) - Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or 'pd-balanced') for nodes in the node pool. Initiates an upgrade operation that migrates the nodes in the node pool to the specified disk type. + * `etag` (*type:* `String.t`, *default:* `nil`) - The current etag of the node pool. If an etag is provided and does not match the current etag of the node pool, update will be blocked and an ABORTED error will be returned. * `fastSocket` (*type:* `GoogleApi.Container.V1.Model.FastSocket.t`, *default:* `nil`) - Enable or disable NCCL fast socket for the node pool. * `gcfsConfig` (*type:* `GoogleApi.Container.V1.Model.GcfsConfig.t`, *default:* `nil`) - GCFS config. * `gvnic` (*type:* `GoogleApi.Container.V1.Model.VirtualNIC.t`, *default:* `nil`) - Enable or disable gvnic on the node pool. - * `imageType` (*type:* `String.t`, *default:* `nil`) - Required. The desired image type for the node pool. + * `imageType` (*type:* `String.t`, *default:* `nil`) - Required. The desired image type for the node pool. Please see https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for available image types. * `kubeletConfig` (*type:* `GoogleApi.Container.V1.Model.NodeKubeletConfig.t`, *default:* `nil`) - Node kubelet configs. * `labels` (*type:* `GoogleApi.Container.V1.Model.NodeLabels.t`, *default:* `nil`) - The desired node labels to be applied to all nodes in the node pool. If this field is not present, the labels will not be changed. Otherwise, the existing node labels will be *replaced* with the provided labels. * `linuxNodeConfig` (*type:* `GoogleApi.Container.V1.Model.LinuxNodeConfig.t`, *default:* `nil`) - Parameters that can be configured on Linux nodes. * `locations` (*type:* `list(String.t)`, *default:* `nil`) - The desired list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the node pool's nodes should be located. Changing the locations for a node pool will result in nodes being either created or removed from the node pool, depending on whether locations are being added or removed. * `loggingConfig` (*type:* `GoogleApi.Container.V1.Model.NodePoolLoggingConfig.t`, *default:* `nil`) - Logging configuration. + * `machineType` (*type:* `String.t`, *default:* `nil`) - Optional. The desired [Google Compute Engine machine type](https://cloud.google.com/compute/docs/machine-types) for nodes in the node pool. Initiates an upgrade operation that migrates the nodes in the node pool to the specified machine type. * `name` (*type:* `String.t`, *default:* `nil`) - The name (project, location, cluster, node pool) of the node pool to update. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. * `nodeNetworkConfig` (*type:* `GoogleApi.Container.V1.Model.NodeNetworkConfig.t`, *default:* `nil`) - Node network config. * `nodePoolId` (*type:* `String.t`, *default:* `nil`) - Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field. * `nodeVersion` (*type:* `String.t`, *default:* `nil`) - Required. The Kubernetes version to change the nodes to (typically an upgrade). Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior: - "latest": picks the highest valid Kubernetes version - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - "1.X.Y-gke.N": picks an explicit Kubernetes version - "-": picks the Kubernetes master version * `projectId` (*type:* `String.t`, *default:* `nil`) - Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field. + * `queuedProvisioning` (*type:* `GoogleApi.Container.V1.Model.QueuedProvisioning.t`, *default:* `nil`) - Specifies the configuration of queued provisioning. * `resourceLabels` (*type:* `GoogleApi.Container.V1.Model.ResourceLabels.t`, *default:* `nil`) - The resource labels for the node pool to use to annotate any related Google Compute Engine resources. + * `resourceManagerTags` (*type:* `GoogleApi.Container.V1.Model.ResourceManagerTags.t`, *default:* `nil`) - Desired resource manager tag keys and values to be attached to the nodes for managing Compute Engine firewalls using Network Firewall Policies. Existing tags will be replaced with new values. * `tags` (*type:* `GoogleApi.Container.V1.Model.NetworkTags.t`, *default:* `nil`) - The desired network tags to be applied to all nodes in the node pool. If this field is not present, the tags will not be changed. Otherwise, the existing network tags will be *replaced* with the provided tags. * `taints` (*type:* `GoogleApi.Container.V1.Model.NodeTaints.t`, *default:* `nil`) - The desired node taints to be applied to all nodes in the node pool. If this field is not present, the taints will not be changed. Otherwise, the existing node taints will be *replaced* with the provided taints. * `upgradeSettings` (*type:* `GoogleApi.Container.V1.Model.UpgradeSettings.t`, *default:* `nil`) - Upgrade settings control disruption and speed of the upgrade. + * `windowsNodeConfig` (*type:* `GoogleApi.Container.V1.Model.WindowsNodeConfig.t`, *default:* `nil`) - Parameters that can be configured on Windows nodes. * `workloadMetadataConfig` (*type:* `GoogleApi.Container.V1.Model.WorkloadMetadataConfig.t`, *default:* `nil`) - The desired workload metadata config for the node pool. * `zone` (*type:* `String.t`, *default:* `nil`) - Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. """ @@ -50,6 +57,9 @@ defmodule GoogleApi.Container.V1.Model.UpdateNodePoolRequest do @type t :: %__MODULE__{ :clusterId => String.t() | nil, :confidentialNodes => GoogleApi.Container.V1.Model.ConfidentialNodes.t() | nil, + :diskSizeGb => String.t() | nil, + :diskType => String.t() | nil, + :etag => String.t() | nil, :fastSocket => GoogleApi.Container.V1.Model.FastSocket.t() | nil, :gcfsConfig => GoogleApi.Container.V1.Model.GcfsConfig.t() | nil, :gvnic => GoogleApi.Container.V1.Model.VirtualNIC.t() | nil, @@ -59,15 +69,19 @@ defmodule GoogleApi.Container.V1.Model.UpdateNodePoolRequest do :linuxNodeConfig => GoogleApi.Container.V1.Model.LinuxNodeConfig.t() | nil, :locations => list(String.t()) | nil, :loggingConfig => GoogleApi.Container.V1.Model.NodePoolLoggingConfig.t() | nil, + :machineType => String.t() | nil, :name => String.t() | nil, :nodeNetworkConfig => GoogleApi.Container.V1.Model.NodeNetworkConfig.t() | nil, :nodePoolId => String.t() | nil, :nodeVersion => String.t() | nil, :projectId => String.t() | nil, + :queuedProvisioning => GoogleApi.Container.V1.Model.QueuedProvisioning.t() | nil, :resourceLabels => GoogleApi.Container.V1.Model.ResourceLabels.t() | nil, + :resourceManagerTags => GoogleApi.Container.V1.Model.ResourceManagerTags.t() | nil, :tags => GoogleApi.Container.V1.Model.NetworkTags.t() | nil, :taints => GoogleApi.Container.V1.Model.NodeTaints.t() | nil, :upgradeSettings => GoogleApi.Container.V1.Model.UpgradeSettings.t() | nil, + :windowsNodeConfig => GoogleApi.Container.V1.Model.WindowsNodeConfig.t() | nil, :workloadMetadataConfig => GoogleApi.Container.V1.Model.WorkloadMetadataConfig.t() | nil, :zone => String.t() | nil @@ -75,6 +89,9 @@ defmodule GoogleApi.Container.V1.Model.UpdateNodePoolRequest do field(:clusterId) field(:confidentialNodes, as: GoogleApi.Container.V1.Model.ConfidentialNodes) + field(:diskSizeGb) + field(:diskType) + field(:etag) field(:fastSocket, as: GoogleApi.Container.V1.Model.FastSocket) field(:gcfsConfig, as: GoogleApi.Container.V1.Model.GcfsConfig) field(:gvnic, as: GoogleApi.Container.V1.Model.VirtualNIC) @@ -84,15 +101,19 @@ defmodule GoogleApi.Container.V1.Model.UpdateNodePoolRequest do field(:linuxNodeConfig, as: GoogleApi.Container.V1.Model.LinuxNodeConfig) field(:locations, type: :list) field(:loggingConfig, as: GoogleApi.Container.V1.Model.NodePoolLoggingConfig) + field(:machineType) field(:name) field(:nodeNetworkConfig, as: GoogleApi.Container.V1.Model.NodeNetworkConfig) field(:nodePoolId) field(:nodeVersion) field(:projectId) + field(:queuedProvisioning, as: GoogleApi.Container.V1.Model.QueuedProvisioning) field(:resourceLabels, as: GoogleApi.Container.V1.Model.ResourceLabels) + field(:resourceManagerTags, as: GoogleApi.Container.V1.Model.ResourceManagerTags) field(:tags, as: GoogleApi.Container.V1.Model.NetworkTags) field(:taints, as: GoogleApi.Container.V1.Model.NodeTaints) field(:upgradeSettings, as: GoogleApi.Container.V1.Model.UpgradeSettings) + field(:windowsNodeConfig, as: GoogleApi.Container.V1.Model.WindowsNodeConfig) field(:workloadMetadataConfig, as: GoogleApi.Container.V1.Model.WorkloadMetadataConfig) field(:zone) end diff --git a/clients/container/lib/google_api/container/v1/model/windows_node_config.ex b/clients/container/lib/google_api/container/v1/model/windows_node_config.ex new file mode 100644 index 0000000000..915640b8c1 --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/windows_node_config.ex @@ -0,0 +1,46 @@ +# 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.WindowsNodeConfig do + @moduledoc """ + Parameters that can be configured on Windows nodes. Windows Node Config that define the parameters that will be used to configure the Windows node pool settings + + ## Attributes + + * `osVersion` (*type:* `String.t`, *default:* `nil`) - OSVersion specifies the Windows node config to be used on the node + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :osVersion => String.t() | nil + } + + field(:osVersion) +end + +defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.WindowsNodeConfig do + def decode(value, options) do + GoogleApi.Container.V1.Model.WindowsNodeConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.WindowsNodeConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/container/lib/google_api/container/v1/model/workload_policy_config.ex b/clients/container/lib/google_api/container/v1/model/workload_policy_config.ex new file mode 100644 index 0000000000..89a6dc80c0 --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/workload_policy_config.ex @@ -0,0 +1,46 @@ +# 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.WorkloadPolicyConfig do + @moduledoc """ + WorkloadPolicyConfig is the configuration of workload policy for autopilot clusters. + + ## Attributes + + * `allowNetAdmin` (*type:* `boolean()`, *default:* `nil`) - If true, workloads can use NET_ADMIN capability. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :allowNetAdmin => boolean() | nil + } + + field(:allowNetAdmin) +end + +defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.WorkloadPolicyConfig do + def decode(value, options) do + GoogleApi.Container.V1.Model.WorkloadPolicyConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.WorkloadPolicyConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end