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 BigQueryConnection client #11055

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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 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.BigQueryConnection.V1.Connection do
@moduledoc """
Handle Tesla connections for GoogleApi.BigQueryConnection.V1.
"""

@type t :: Tesla.Env.client()

use GoogleApi.Gax.Connection,
scopes: [
# View and manage your data in Google BigQuery and see the email address for your Google Account
"https://www.googleapis.com/auth/bigquery",

# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
"https://www.googleapis.com/auth/cloud-platform"
],
otp_app: :google_api_big_query_connection,
base_url: "https://bigqueryconnection.googleapis.com/"
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2020 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.BigQueryConnection.V1 do
@moduledoc """
API client metadata for GoogleApi.BigQueryConnection.V1.
"""

@discovery_revision "20240229"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 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.BigQueryConnection.V1.Model.AuditConfig do
@moduledoc """
Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:[email protected]" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `[email protected]` from DATA_READ logging, and `[email protected]` from DATA_WRITE logging.

## Attributes

* `auditLogConfigs` (*type:* `list(GoogleApi.BigQueryConnection.V1.Model.AuditLogConfig.t)`, *default:* `nil`) - The configuration for logging of each type of permission.
* `service` (*type:* `String.t`, *default:* `nil`) - Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:auditLogConfigs =>
list(GoogleApi.BigQueryConnection.V1.Model.AuditLogConfig.t()) | nil,
:service => String.t() | nil
}

field(:auditLogConfigs, as: GoogleApi.BigQueryConnection.V1.Model.AuditLogConfig, type: :list)
field(:service)
end

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

defimpl Poison.Encoder, for: GoogleApi.BigQueryConnection.V1.Model.AuditConfig 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.BigQueryConnection.V1.Model.AuditLogConfig do
@moduledoc """
Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting [email protected] from DATA_READ logging.

## Attributes

* `exemptedMembers` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
* `logType` (*type:* `String.t`, *default:* `nil`) - The log type that this config enables.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:exemptedMembers => list(String.t()) | nil,
:logType => String.t() | nil
}

field(:exemptedMembers, type: :list)
field(:logType)
end

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

defimpl Poison.Encoder, for: GoogleApi.BigQueryConnection.V1.Model.AuditLogConfig 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.BigQueryConnection.V1.Model.AwsAccessRole do
@moduledoc """
Authentication method for Amazon Web Services (AWS) that uses Google owned Google service account to assume into customer's AWS IAM Role.

## Attributes

* `iamRoleId` (*type:* `String.t`, *default:* `nil`) - The user’s AWS IAM Role that trusts the Google-owned AWS IAM user Connection.
* `identity` (*type:* `String.t`, *default:* `nil`) - A unique Google-owned and Google-generated identity for the Connection. This identity will be used to access the user's AWS IAM Role.
"""

use GoogleApi.Gax.ModelBase

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

field(:iamRoleId)
field(:identity)
end

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

defimpl Poison.Encoder, for: GoogleApi.BigQueryConnection.V1.Model.AwsAccessRole 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,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.BigQueryConnection.V1.Model.AwsProperties do
@moduledoc """
Connection properties specific to Amazon Web Services (AWS).

## Attributes

* `accessRole` (*type:* `GoogleApi.BigQueryConnection.V1.Model.AwsAccessRole.t`, *default:* `nil`) - Authentication using Google owned service account to assume into customer's AWS IAM Role.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:accessRole => GoogleApi.BigQueryConnection.V1.Model.AwsAccessRole.t() | nil
}

field(:accessRole, as: GoogleApi.BigQueryConnection.V1.Model.AwsAccessRole)
end

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

defimpl Poison.Encoder, for: GoogleApi.BigQueryConnection.V1.Model.AwsProperties 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,64 @@
# 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.BigQueryConnection.V1.Model.AzureProperties do
@moduledoc """
Container for connection properties specific to Azure.

## Attributes

* `application` (*type:* `String.t`, *default:* `nil`) - Output only. The name of the Azure Active Directory Application.
* `clientId` (*type:* `String.t`, *default:* `nil`) - Output only. The client id of the Azure Active Directory Application.
* `customerTenantId` (*type:* `String.t`, *default:* `nil`) - The id of customer's directory that host the data.
* `federatedApplicationClientId` (*type:* `String.t`, *default:* `nil`) - The client ID of the user's Azure Active Directory Application used for a federated connection.
* `identity` (*type:* `String.t`, *default:* `nil`) - Output only. A unique Google-owned and Google-generated identity for the Connection. This identity will be used to access the user's Azure Active Directory Application.
* `objectId` (*type:* `String.t`, *default:* `nil`) - Output only. The object id of the Azure Active Directory Application.
* `redirectUri` (*type:* `String.t`, *default:* `nil`) - The URL user will be redirected to after granting consent during connection setup.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:application => String.t() | nil,
:clientId => String.t() | nil,
:customerTenantId => String.t() | nil,
:federatedApplicationClientId => String.t() | nil,
:identity => String.t() | nil,
:objectId => String.t() | nil,
:redirectUri => String.t() | nil
}

field(:application)
field(:clientId)
field(:customerTenantId)
field(:federatedApplicationClientId)
field(:identity)
field(:objectId)
field(:redirectUri)
end

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

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