Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat: Automated regeneration of Dataproc client #10978

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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,135 changes: 1,648 additions & 487 deletions clients/dataproc/lib/google_api/dataproc/v1/api/projects.ex

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion clients/dataproc/lib/google_api/dataproc/v1/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.Dataproc.V1 do
API client metadata for GoogleApi.Dataproc.V1.
"""

@discovery_revision "20221114"
@discovery_revision "20240303"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ defmodule GoogleApi.Dataproc.V1.Model.AcceleratorConfig do
## Attributes

* `acceleratorCount` (*type:* `integer()`, *default:* `nil`) - The number of the accelerator cards of this type exposed to this instance.
* `acceleratorTypeUri` (*type:* `String.t`, *default:* `nil`) - Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).Examples: https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 nvidia-tesla-k80Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
* `acceleratorTypeUri` (*type:* `String.t`, *default:* `nil`) - Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/v1/acceleratorTypes).Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-k80 projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-k80 nvidia-tesla-k80Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
"""

use GoogleApi.Gax.ModelBase
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.Dataproc.V1.Model.AnalyzeOperationMetadata do
@moduledoc """
Metadata describing the Analyze operation.

## Attributes

* `analyzedWorkloadName` (*type:* `String.t`, *default:* `nil`) - Output only. name of the workload being analyzed.
* `analyzedWorkloadType` (*type:* `String.t`, *default:* `nil`) - Output only. Type of the workload being analyzed.
* `analyzedWorkloadUuid` (*type:* `String.t`, *default:* `nil`) - Output only. unique identifier of the workload typically generated by control plane. E.g. batch uuid.
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the operation was created.
* `description` (*type:* `String.t`, *default:* `nil`) - Output only. Short description of the operation.
* `doneTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the operation finished.
* `labels` (*type:* `map()`, *default:* `nil`) - Output only. Labels associated with the operation.
* `warnings` (*type:* `list(String.t)`, *default:* `nil`) - Output only. Warnings encountered during operation execution.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:analyzedWorkloadName => String.t() | nil,
:analyzedWorkloadType => String.t() | nil,
:analyzedWorkloadUuid => String.t() | nil,
:createTime => DateTime.t() | nil,
:description => String.t() | nil,
:doneTime => DateTime.t() | nil,
:labels => map() | nil,
:warnings => list(String.t()) | nil
}

field(:analyzedWorkloadName)
field(:analyzedWorkloadType)
field(:analyzedWorkloadUuid)
field(:createTime, as: DateTime)
field(:description)
field(:doneTime, as: DateTime)
field(:labels, type: :map)
field(:warnings, type: :list)
end

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

defimpl Poison.Encoder, for: GoogleApi.Dataproc.V1.Model.AnalyzeOperationMetadata do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.Dataproc.V1.Model.AuxiliaryNodeGroup do
@moduledoc """
Node group identification and configuration information.

## Attributes

* `nodeGroup` (*type:* `GoogleApi.Dataproc.V1.Model.NodeGroup.t`, *default:* `nil`) - Required. Node group configuration.
* `nodeGroupId` (*type:* `String.t`, *default:* `nil`) - Optional. A node group ID. Generated if not specified.The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of from 3 to 33 characters.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:nodeGroup => GoogleApi.Dataproc.V1.Model.NodeGroup.t() | nil,
:nodeGroupId => String.t() | nil
}

field(:nodeGroup, as: GoogleApi.Dataproc.V1.Model.NodeGroup)
field(:nodeGroupId)
end

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

defimpl Poison.Encoder, for: GoogleApi.Dataproc.V1.Model.AuxiliaryNodeGroup do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ defmodule GoogleApi.Dataproc.V1.Model.Binding do
## Attributes

* `condition` (*type:* `GoogleApi.Dataproc.V1.Model.Expr.t`, *default:* `nil`) - The condition that is associated with this binding.If the condition evaluates to true, then this binding applies to the current request.If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
* `members` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the principals requesting access for a Google Cloud resource. members can have the following values: allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account. allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. user:{emailid}: An email address that represents a specific Google account. For example, [email protected] . serviceAccount:{emailid}: An email address that represents a Google service account. For example, [email protected]. serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: An identifier for a Kubernetes service account (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, my-project.svc.id.goog[my-namespace/my-kubernetes-sa]. group:{emailid}: An email address that represents a Google group. For example, [email protected]. deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that has been recently deleted. For example, [email protected]?uid=123456789012345678901. If the user is recovered, this value reverts to user:{emailid} and the recovered user retains the role in the binding. deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, [email protected]?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the undeleted service account retains the role in the binding. deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, [email protected]?uid=123456789012345678901. If the group is recovered, this value reverts to group:{emailid} and the recovered group retains the role in the binding. domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com.
* `role` (*type:* `String.t`, *default:* `nil`) - Role that is assigned to the list of members, or principals. For example, roles/viewer, roles/editor, or roles/owner.
* `members` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the principals requesting access for a Google Cloud resource. members can have the following values: allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account. allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. user:{emailid}: An email address that represents a specific Google account. For example, [email protected] . serviceAccount:{emailid}: An email address that represents a Google service account. For example, [email protected]. serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: An identifier for a Kubernetes service account (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, my-project.svc.id.goog[my-namespace/my-kubernetes-sa]. group:{emailid}: An email address that represents a Google group. For example, [email protected]. domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com. principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}: A single identity in a workforce identity pool. principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}: All workforce identities in a group. principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}: All workforce identities with a specific attribute value. principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*: All identities in a workforce identity pool. principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}: A single identity in a workload identity pool. principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}: A workload identity pool group. principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}: All identities in a workload identity pool with a certain attribute. principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*: All identities in a workload identity pool. deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that has been recently deleted. For example, [email protected]?uid=123456789012345678901. If the user is recovered, this value reverts to user:{emailid} and the recovered user retains the role in the binding. deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, [email protected]?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the undeleted service account retains the role in the binding. deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, [email protected]?uid=123456789012345678901. If the group is recovered, this value reverts to group:{emailid} and the recovered group retains the role in the binding. deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}: Deleted single identity in a workforce identity pool. For example, deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value.
* `role` (*type:* `String.t`, *default:* `nil`) - Role that is assigned to the list of members, or principals. For example, roles/viewer, roles/editor, or roles/owner.For an overview of the IAM roles and permissions, see the IAM documentation (https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see here (https://cloud.google.com/iam/docs/understanding-roles).
"""

use GoogleApi.Gax.ModelBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ defmodule GoogleApi.Dataproc.V1.Model.Cluster do
* `projectId` (*type:* `String.t`, *default:* `nil`) - Required. The Google Cloud Platform project ID that the cluster belongs to.
* `status` (*type:* `GoogleApi.Dataproc.V1.Model.ClusterStatus.t`, *default:* `nil`) - Output only. Cluster status.
* `statusHistory` (*type:* `list(GoogleApi.Dataproc.V1.Model.ClusterStatus.t)`, *default:* `nil`) - Output only. The previous cluster status.
* `virtualClusterConfig` (*type:* `GoogleApi.Dataproc.V1.Model.VirtualClusterConfig.t`, *default:* `nil`) - Optional. The virtual cluster config is used when creating a Dataproc cluster that does not directly control the underlying compute resources, for example, when creating a Dataproc-on-GKE cluster (https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke). Dataproc may set default values, and values may change when clusters are updated. Exactly one of config or virtual_cluster_config must be specified.
* `virtualClusterConfig` (*type:* `GoogleApi.Dataproc.V1.Model.VirtualClusterConfig.t`, *default:* `nil`) - Optional. The virtual cluster config is used when creating a Dataproc cluster that does not directly control the underlying compute resources, for example, when creating a Dataproc-on-GKE cluster (https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke-overview). Dataproc may set default values, and values may change when clusters are updated. Exactly one of config or virtual_cluster_config must be specified.
"""

use GoogleApi.Gax.ModelBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ defmodule GoogleApi.Dataproc.V1.Model.ClusterConfig do
## Attributes

* `autoscalingConfig` (*type:* `GoogleApi.Dataproc.V1.Model.AutoscalingConfig.t`, *default:* `nil`) - Optional. Autoscaling config for the policy associated with the cluster. Cluster does not autoscale if this field is unset.
* `auxiliaryNodeGroups` (*type:* `list(GoogleApi.Dataproc.V1.Model.AuxiliaryNodeGroup.t)`, *default:* `nil`) - Optional. The node group settings.
* `configBucket` (*type:* `String.t`, *default:* `nil`) - Optional. A Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's staging bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see Dataproc staging and temp buckets (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). This field requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage bucket.
* `dataprocMetricConfig` (*type:* `GoogleApi.Dataproc.V1.Model.DataprocMetricConfig.t`, *default:* `nil`) - Optional. The config for Dataproc metrics.
* `encryptionConfig` (*type:* `GoogleApi.Dataproc.V1.Model.EncryptionConfig.t`, *default:* `nil`) - Optional. Encryption settings for the cluster.
Expand All @@ -43,6 +44,7 @@ defmodule GoogleApi.Dataproc.V1.Model.ClusterConfig do

@type t :: %__MODULE__{
:autoscalingConfig => GoogleApi.Dataproc.V1.Model.AutoscalingConfig.t() | nil,
:auxiliaryNodeGroups => list(GoogleApi.Dataproc.V1.Model.AuxiliaryNodeGroup.t()) | nil,
:configBucket => String.t() | nil,
:dataprocMetricConfig => GoogleApi.Dataproc.V1.Model.DataprocMetricConfig.t() | nil,
:encryptionConfig => GoogleApi.Dataproc.V1.Model.EncryptionConfig.t() | nil,
Expand All @@ -62,6 +64,7 @@ defmodule GoogleApi.Dataproc.V1.Model.ClusterConfig do
}

field(:autoscalingConfig, as: GoogleApi.Dataproc.V1.Model.AutoscalingConfig)
field(:auxiliaryNodeGroups, as: GoogleApi.Dataproc.V1.Model.AuxiliaryNodeGroup, type: :list)
field(:configBucket)
field(:dataprocMetricConfig, as: GoogleApi.Dataproc.V1.Model.DataprocMetricConfig)
field(:encryptionConfig, as: GoogleApi.Dataproc.V1.Model.EncryptionConfig)
Expand Down
Loading
Loading