-
Notifications
You must be signed in to change notification settings - Fork 461
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Automated regeneration of Metastore client (#11234)
Auto-created at 2024-03-31 13:05:58 +0000 using the toys pull request generator.
- Loading branch information
1 parent
6b22d1c
commit 7fa6b7f
Showing
17 changed files
with
1,043 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
514 changes: 514 additions & 0 deletions
514
clients/metastore/lib/google_api/metastore/v1beta/api/projects.ex
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
clients/metastore/lib/google_api/metastore/v1beta/model/cancel_migration_request.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# 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.Metastore.V1beta.Model.CancelMigrationRequest do | ||
@moduledoc """ | ||
Request message for DataprocMetastore.CancelMigration. | ||
## Attributes | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{} | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Metastore.V1beta.Model.CancelMigrationRequest do | ||
def decode(value, options) do | ||
GoogleApi.Metastore.V1beta.Model.CancelMigrationRequest.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Metastore.V1beta.Model.CancelMigrationRequest do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
46 changes: 46 additions & 0 deletions
46
clients/metastore/lib/google_api/metastore/v1beta/model/cancel_migration_response.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.Metastore.V1beta.Model.CancelMigrationResponse do | ||
@moduledoc """ | ||
Response message for DataprocMetastore.CancelMigration. | ||
## Attributes | ||
* `migrationExecution` (*type:* `String.t`, *default:* `nil`) - The relative resource name of the migration execution, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions/{migration_execution_id}. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:migrationExecution => String.t() | nil | ||
} | ||
|
||
field(:migrationExecution) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Metastore.V1beta.Model.CancelMigrationResponse do | ||
def decode(value, options) do | ||
GoogleApi.Metastore.V1beta.Model.CancelMigrationResponse.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Metastore.V1beta.Model.CancelMigrationResponse do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
64 changes: 64 additions & 0 deletions
64
clients/metastore/lib/google_api/metastore/v1beta/model/cdc_config.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.Metastore.V1beta.Model.CdcConfig do | ||
@moduledoc """ | ||
Configuration information to start the Change Data Capture (CDC) streams from customer database to backend database of Dataproc Metastore. | ||
## Attributes | ||
* `bucket` (*type:* `String.t`, *default:* `nil`) - Optional. The bucket to write the intermediate stream event data in. The bucket name must be without any prefix like "gs://". See the bucket naming requirements (https://cloud.google.com/storage/docs/buckets#naming). This field is optional. If not set, the Artifacts Cloud Storage bucket will be used. | ||
* `password` (*type:* `String.t`, *default:* `nil`) - Required. Input only. The password for the user that Datastream service should use for the MySQL connection. This field is not returned on request. | ||
* `reverseProxySubnet` (*type:* `String.t`, *default:* `nil`) - Required. The URL of the subnetwork resource to create the VM instance hosting the reverse proxy in. More context in https://cloud.google.com/datastream/docs/private-connectivity#reverse-csql-proxy The subnetwork should reside in the network provided in the request that Datastream will peer to and should be in the same region as Datastream, in the following format. projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} | ||
* `rootPath` (*type:* `String.t`, *default:* `nil`) - Optional. The root path inside the Cloud Storage bucket. The stream event data will be written to this path. The default value is /migration. | ||
* `subnetIpRange` (*type:* `String.t`, *default:* `nil`) - Required. A /29 CIDR IP range for peering with datastream. | ||
* `username` (*type:* `String.t`, *default:* `nil`) - Required. The username that the Datastream service should use for the MySQL connection. | ||
* `vpcNetwork` (*type:* `String.t`, *default:* `nil`) - Required. Fully qualified name of the Cloud SQL instance's VPC network or the shared VPC network that Datastream will peer to, in the following format: projects/{project_id}/locations/global/networks/{network_id}. More context in https://cloud.google.com/datastream/docs/network-connectivity-options#privateconnectivity | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:bucket => String.t() | nil, | ||
:password => String.t() | nil, | ||
:reverseProxySubnet => String.t() | nil, | ||
:rootPath => String.t() | nil, | ||
:subnetIpRange => String.t() | nil, | ||
:username => String.t() | nil, | ||
:vpcNetwork => String.t() | nil | ||
} | ||
|
||
field(:bucket) | ||
field(:password) | ||
field(:reverseProxySubnet) | ||
field(:rootPath) | ||
field(:subnetIpRange) | ||
field(:username) | ||
field(:vpcNetwork) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Metastore.V1beta.Model.CdcConfig do | ||
def decode(value, options) do | ||
GoogleApi.Metastore.V1beta.Model.CdcConfig.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Metastore.V1beta.Model.CdcConfig do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
67 changes: 67 additions & 0 deletions
67
clients/metastore/lib/google_api/metastore/v1beta/model/cloud_sql_connection_config.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.Metastore.V1beta.Model.CloudSQLConnectionConfig do | ||
@moduledoc """ | ||
Configuration information to establish customer database connection before the cutover phase of migration | ||
## Attributes | ||
* `hiveDatabaseName` (*type:* `String.t`, *default:* `nil`) - Required. The hive database name. | ||
* `instanceConnectionName` (*type:* `String.t`, *default:* `nil`) - Required. Cloud SQL database connection name (project_id:region:instance_name) | ||
* `ipAddress` (*type:* `String.t`, *default:* `nil`) - Required. The private IP address of the Cloud SQL instance. | ||
* `natSubnet` (*type:* `String.t`, *default:* `nil`) - Required. The relative resource name of the subnetwork to be used for Private Service Connect. Note that this cannot be a regular subnet and is used only for NAT. (https://cloud.google.com/vpc/docs/about-vpc-hosted-services#psc-subnets) This subnet is used to publish the SOCKS5 proxy service. The subnet size must be at least /29 and it should reside in a network through which the Cloud SQL instance is accessible. The resource name should be in the format, projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} | ||
* `password` (*type:* `String.t`, *default:* `nil`) - Required. Input only. The password for the user that Dataproc Metastore service will be using to connect to the database. This field is not returned on request. | ||
* `port` (*type:* `integer()`, *default:* `nil`) - Required. The network port of the database. | ||
* `proxySubnet` (*type:* `String.t`, *default:* `nil`) - Required. The relative resource name of the subnetwork to deploy the SOCKS5 proxy service in. The subnetwork should reside in a network through which the Cloud SQL instance is accessible. The resource name should be in the format, projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} | ||
* `username` (*type:* `String.t`, *default:* `nil`) - Required. The username that Dataproc Metastore service will use to connect to the database. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:hiveDatabaseName => String.t() | nil, | ||
:instanceConnectionName => String.t() | nil, | ||
:ipAddress => String.t() | nil, | ||
:natSubnet => String.t() | nil, | ||
:password => String.t() | nil, | ||
:port => integer() | nil, | ||
:proxySubnet => String.t() | nil, | ||
:username => String.t() | nil | ||
} | ||
|
||
field(:hiveDatabaseName) | ||
field(:instanceConnectionName) | ||
field(:ipAddress) | ||
field(:natSubnet) | ||
field(:password) | ||
field(:port) | ||
field(:proxySubnet) | ||
field(:username) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Metastore.V1beta.Model.CloudSQLConnectionConfig do | ||
def decode(value, options) do | ||
GoogleApi.Metastore.V1beta.Model.CloudSQLConnectionConfig.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Metastore.V1beta.Model.CloudSQLConnectionConfig do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
50 changes: 50 additions & 0 deletions
50
clients/metastore/lib/google_api/metastore/v1beta/model/cloud_sql_migration_config.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.Metastore.V1beta.Model.CloudSQLMigrationConfig do | ||
@moduledoc """ | ||
Configuration information for migrating from self-managed hive metastore on GCP using Cloud SQL as the backend database to DPMS. | ||
## Attributes | ||
* `cdcConfig` (*type:* `GoogleApi.Metastore.V1beta.Model.CdcConfig.t`, *default:* `nil`) - Required. Configuration information to start the Change Data Capture (CDC) streams from customer database to backend database of Dataproc Metastore. Dataproc Metastore switches to using its backend database after the cutover phase of migration. | ||
* `cloudSqlConnectionConfig` (*type:* `GoogleApi.Metastore.V1beta.Model.CloudSQLConnectionConfig.t`, *default:* `nil`) - Required. Configuration information to establish customer database connection before the cutover phase of migration | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:cdcConfig => GoogleApi.Metastore.V1beta.Model.CdcConfig.t() | nil, | ||
:cloudSqlConnectionConfig => | ||
GoogleApi.Metastore.V1beta.Model.CloudSQLConnectionConfig.t() | nil | ||
} | ||
|
||
field(:cdcConfig, as: GoogleApi.Metastore.V1beta.Model.CdcConfig) | ||
field(:cloudSqlConnectionConfig, as: GoogleApi.Metastore.V1beta.Model.CloudSQLConnectionConfig) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Metastore.V1beta.Model.CloudSQLMigrationConfig do | ||
def decode(value, options) do | ||
GoogleApi.Metastore.V1beta.Model.CloudSQLMigrationConfig.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Metastore.V1beta.Model.CloudSQLMigrationConfig do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
41 changes: 41 additions & 0 deletions
41
clients/metastore/lib/google_api/metastore/v1beta/model/complete_migration_request.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# 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.Metastore.V1beta.Model.CompleteMigrationRequest do | ||
@moduledoc """ | ||
Request message for DataprocMetastore.CompleteMigration. | ||
## Attributes | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{} | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Metastore.V1beta.Model.CompleteMigrationRequest do | ||
def decode(value, options) do | ||
GoogleApi.Metastore.V1beta.Model.CompleteMigrationRequest.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Metastore.V1beta.Model.CompleteMigrationRequest do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
46 changes: 46 additions & 0 deletions
46
clients/metastore/lib/google_api/metastore/v1beta/model/complete_migration_response.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.Metastore.V1beta.Model.CompleteMigrationResponse do | ||
@moduledoc """ | ||
Response message for DataprocMetastore.CompleteMigration. | ||
## Attributes | ||
* `migrationExecution` (*type:* `String.t`, *default:* `nil`) - The relative resource name of the migration execution, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions/{migration_execution_id}. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:migrationExecution => String.t() | nil | ||
} | ||
|
||
field(:migrationExecution) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Metastore.V1beta.Model.CompleteMigrationResponse do | ||
def decode(value, options) do | ||
GoogleApi.Metastore.V1beta.Model.CompleteMigrationResponse.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Metastore.V1beta.Model.CompleteMigrationResponse do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
Oops, something went wrong.