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 DataFusion client #11432

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

Filter by extension

Filter by extension

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

```elixir
def deps do
[{:google_api_data_fusion, "~> 0.23"}]
[{:google_api_data_fusion, "~> 0.24"}]
end
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ defmodule GoogleApi.DataFusion.V1.Api.Projects do
* `: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").
* `:filter` (*type:* `String.t`) - A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
* `:includeUnrevealedLocations` (*type:* `boolean()`) - If true, the returned list will include locations which are not yet revealed.
* `:pageSize` (*type:* `integer()`) - The maximum number of results to return. If not set, the service selects a default.
* `:pageToken` (*type:* `String.t`) - A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
* `opts` (*type:* `keyword()`) - Call options
Expand Down Expand Up @@ -134,7 +133,6 @@ defmodule GoogleApi.DataFusion.V1.Api.Projects do
:uploadType => :query,
:upload_protocol => :query,
:filter => :query,
:includeUnrevealedLocations => :query,
:pageSize => :query,
:pageToken => :query
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.DataFusion.V1 do
API client metadata for GoogleApi.DataFusion.V1.
"""

@discovery_revision "20240111"
@discovery_revision "20240618"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ defmodule GoogleApi.DataFusion.V1.Model.Accelerator do

## Attributes

* `acceleratorType` (*type:* `String.t`, *default:* `nil`) - The type of an accelator for a CDF instance.
* `state` (*type:* `String.t`, *default:* `nil`) - The state of the accelerator.
* `acceleratorType` (*type:* `String.t`, *default:* `nil`) - Optional. The type of an accelator for a Cloud Data Fusion instance.
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. The state of the accelerator.
"""

use GoogleApi.Gax.ModelBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ defmodule GoogleApi.DataFusion.V1.Model.Binding do

* `condition` (*type:* `GoogleApi.DataFusion.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]`. * `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`.
* `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

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@ defmodule GoogleApi.DataFusion.V1.Model.Instance do
* `displayName` (*type:* `String.t`, *default:* `nil`) - Display name for an instance.
* `satisfiesPzs` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use.
* `serviceEndpoint` (*type:* `String.t`, *default:* `nil`) - Output only. Endpoint on which the Data Fusion UI is accessible.
* `maintenancePolicy` (*type:* `GoogleApi.DataFusion.V1.Model.MaintenancePolicy.t`, *default:* `nil`) - Optional. Configure the maintenance policy for this instance.
* `options` (*type:* `map()`, *default:* `nil`) - Map of additional options used to configure the behavior of Data Fusion instance.
* `gcsBucket` (*type:* `String.t`, *default:* `nil`) - Output only. Cloud Storage bucket generated by Data Fusion in the customer project.
* `accelerators` (*type:* `list(GoogleApi.DataFusion.V1.Model.Accelerator.t)`, *default:* `nil`) - Output only. List of accelerators enabled for this CDF instance.
* `enableRbac` (*type:* `boolean()`, *default:* `nil`) - Option to enable granular role-based access control.
* `workforceIdentityServiceEndpoint` (*type:* `String.t`, *default:* `nil`) - Output only. Endpoint on which the Data Fusion UI is accessible to third-party users
* `p4ServiceAccount` (*type:* `String.t`, *default:* `nil`) - Output only. P4 service account for the customer project.
* `p4ServiceAccount` (*type:* `String.t`, *default:* `nil`) - Output only. Service agent for the customer project.
* `enableStackdriverMonitoring` (*type:* `boolean()`, *default:* `nil`) - Option to enable Stackdriver Monitoring.
* `version` (*type:* `String.t`, *default:* `nil`) - Current version of the Data Fusion. Only specifiable in Update.
* `patchRevision` (*type:* `String.t`, *default:* `nil`) - Optional. Current patch revision of the Data Fusion.
Expand Down Expand Up @@ -74,6 +75,7 @@ defmodule GoogleApi.DataFusion.V1.Model.Instance do
:displayName => String.t() | nil,
:satisfiesPzs => boolean() | nil,
:serviceEndpoint => String.t() | nil,
:maintenancePolicy => GoogleApi.DataFusion.V1.Model.MaintenancePolicy.t() | nil,
:options => map() | nil,
:gcsBucket => String.t() | nil,
:accelerators => list(GoogleApi.DataFusion.V1.Model.Accelerator.t()) | nil,
Expand Down Expand Up @@ -110,6 +112,7 @@ defmodule GoogleApi.DataFusion.V1.Model.Instance do
field(:displayName)
field(:satisfiesPzs)
field(:serviceEndpoint)
field(:maintenancePolicy, as: GoogleApi.DataFusion.V1.Model.MaintenancePolicy)
field(:options, type: :map)
field(:gcsBucket)
field(:accelerators, as: GoogleApi.DataFusion.V1.Model.Accelerator, type: :list)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

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

defmodule GoogleApi.DataFusion.V1.Model.MaintenancePolicy do
@moduledoc """
Maintenance policy of the instance.

## Attributes

* `maintenanceExclusionWindow` (*type:* `GoogleApi.DataFusion.V1.Model.TimeWindow.t`, *default:* `nil`) - Optional. The maintenance exclusion window of the instance.
* `maintenanceWindow` (*type:* `GoogleApi.DataFusion.V1.Model.MaintenanceWindow.t`, *default:* `nil`) - Optional. The maintenance window of the instance.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:maintenanceExclusionWindow => GoogleApi.DataFusion.V1.Model.TimeWindow.t() | nil,
:maintenanceWindow => GoogleApi.DataFusion.V1.Model.MaintenanceWindow.t() | nil
}

field(:maintenanceExclusionWindow, as: GoogleApi.DataFusion.V1.Model.TimeWindow)
field(:maintenanceWindow, as: GoogleApi.DataFusion.V1.Model.MaintenanceWindow)
end

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

defimpl Poison.Encoder, for: GoogleApi.DataFusion.V1.Model.MaintenancePolicy 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 @@ -15,31 +15,31 @@
# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.DataFusion.V1.Model.ServiceData do
defmodule GoogleApi.DataFusion.V1.Model.MaintenanceWindow do
@moduledoc """
This message defines service-specific data that certain service teams must provide as part of the Data Residency Augmented View for a resource. Next ID: 2
Maintenance window of the instance.

## Attributes

* `pd` (*type:* `GoogleApi.DataFusion.V1.Model.PersistentDiskData.t`, *default:* `nil`) - Auxiliary data for the persistent disk pipeline provided to provide the LSV Colossus Roots and GCS Buckets.
* `recurringTimeWindow` (*type:* `GoogleApi.DataFusion.V1.Model.RecurringTimeWindow.t`, *default:* `nil`) - Required. The recurring time window of the maintenance window.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:pd => GoogleApi.DataFusion.V1.Model.PersistentDiskData.t() | nil
:recurringTimeWindow => GoogleApi.DataFusion.V1.Model.RecurringTimeWindow.t() | nil
}

field(:pd, as: GoogleApi.DataFusion.V1.Model.PersistentDiskData)
field(:recurringTimeWindow, as: GoogleApi.DataFusion.V1.Model.RecurringTimeWindow)
end

defimpl Poison.Decoder, for: GoogleApi.DataFusion.V1.Model.ServiceData do
defimpl Poison.Decoder, for: GoogleApi.DataFusion.V1.Model.MaintenanceWindow do
def decode(value, options) do
GoogleApi.DataFusion.V1.Model.ServiceData.decode(value, options)
GoogleApi.DataFusion.V1.Model.MaintenanceWindow.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.DataFusion.V1.Model.ServiceData do
defimpl Poison.Encoder, for: GoogleApi.DataFusion.V1.Model.MaintenanceWindow do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ defmodule GoogleApi.DataFusion.V1.Model.NetworkConfig do

* `connectionType` (*type:* `String.t`, *default:* `nil`) - Optional. Type of connection for establishing private IP connectivity between the Data Fusion customer project VPC and the corresponding tenant project from a predefined list of available connection modes. If this field is unspecified for a private instance, VPC peering is used.
* `ipAllocation` (*type:* `String.t`, *default:* `nil`) - Optional. The IP range in CIDR notation to use for the managed Data Fusion instance nodes. This range must not overlap with any other ranges used in the Data Fusion instance network. This is required only when using connection type VPC_PEERING. Format: a.b.c.d/22 Example: 192.168.0.0/22
* `network` (*type:* `String.t`, *default:* `nil`) - Optional. Name of the network in the customer project with which the Tenant Project will be peered for executing pipelines. This is required only when using connection type VPC peering. In case of shared VPC where the network resides in another host project the network should specified in the form of projects/{host-project-id}/global/networks/{network}. This is only required for connectivity type VPC_PEERING.
* `network` (*type:* `String.t`, *default:* `nil`) - Optional. Name of the network in the customer project with which the Tenant Project will be peered for executing pipelines. In case of shared VPC where the network resides in another host project the network should specified in the form of projects/{host-project-id}/global/networks/{network}. This is only required for connectivity type VPC_PEERING.
* `privateServiceConnectConfig` (*type:* `GoogleApi.DataFusion.V1.Model.PrivateServiceConnectConfig.t`, *default:* `nil`) - Optional. Configuration for Private Service Connect. This is required only when using connection type PRIVATE_SERVICE_CONNECT_INTERFACES.
"""

Expand Down
Loading
Loading