-
Notifications
You must be signed in to change notification settings - Fork 464
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 AlloyDB client (#12606)
Auto-created at 2024-11-21 13:24:39 +0000 using the toys pull request generator.
- Loading branch information
1 parent
b5eb053
commit efdd622
Showing
8 changed files
with
265 additions
and
3 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
46 changes: 46 additions & 0 deletions
46
clients/alloy_db/lib/google_api/alloy_db/v1/model/csv_export_options.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.AlloyDB.V1.Model.CsvExportOptions do | ||
@moduledoc """ | ||
Options for exporting data in CSV format. For now, we only support a query to get the data that needs to be exported. | ||
## Attributes | ||
* `selectQuery` (*type:* `String.t`, *default:* `nil`) - Required. The select_query used to extract the data. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:selectQuery => String.t() | nil | ||
} | ||
|
||
field(:selectQuery) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.AlloyDB.V1.Model.CsvExportOptions do | ||
def decode(value, options) do | ||
GoogleApi.AlloyDB.V1.Model.CsvExportOptions.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.AlloyDB.V1.Model.CsvExportOptions do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
52 changes: 52 additions & 0 deletions
52
clients/alloy_db/lib/google_api/alloy_db/v1/model/export_cluster_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,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.AlloyDB.V1.Model.ExportClusterRequest do | ||
@moduledoc """ | ||
Export cluster request. | ||
## Attributes | ||
* `csvExportOptions` (*type:* `GoogleApi.AlloyDB.V1.Model.CsvExportOptions.t`, *default:* `nil`) - Options for exporting data in CSV format. Required field to be set for CSV file type. | ||
* `database` (*type:* `String.t`, *default:* `nil`) - Required. Name of the database where the query will be executed. Note - Value provided should be the same as expected from `SELECT current_database();` and NOT as a resource reference. | ||
* `gcsDestination` (*type:* `GoogleApi.AlloyDB.V1.Model.GcsDestination.t`, *default:* `nil`) - Required. Option to export data to cloud storage. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:csvExportOptions => GoogleApi.AlloyDB.V1.Model.CsvExportOptions.t() | nil, | ||
:database => String.t() | nil, | ||
:gcsDestination => GoogleApi.AlloyDB.V1.Model.GcsDestination.t() | nil | ||
} | ||
|
||
field(:csvExportOptions, as: GoogleApi.AlloyDB.V1.Model.CsvExportOptions) | ||
field(:database) | ||
field(:gcsDestination, as: GoogleApi.AlloyDB.V1.Model.GcsDestination) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.AlloyDB.V1.Model.ExportClusterRequest do | ||
def decode(value, options) do | ||
GoogleApi.AlloyDB.V1.Model.ExportClusterRequest.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.AlloyDB.V1.Model.ExportClusterRequest do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
46 changes: 46 additions & 0 deletions
46
clients/alloy_db/lib/google_api/alloy_db/v1/model/export_cluster_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.AlloyDB.V1.Model.ExportClusterResponse do | ||
@moduledoc """ | ||
Response of export cluster rpc. | ||
## Attributes | ||
* `gcsDestination` (*type:* `GoogleApi.AlloyDB.V1.Model.GcsDestination.t`, *default:* `nil`) - Required. Option to export data to cloud storage. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:gcsDestination => GoogleApi.AlloyDB.V1.Model.GcsDestination.t() | nil | ||
} | ||
|
||
field(:gcsDestination, as: GoogleApi.AlloyDB.V1.Model.GcsDestination) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.AlloyDB.V1.Model.ExportClusterResponse do | ||
def decode(value, options) do | ||
GoogleApi.AlloyDB.V1.Model.ExportClusterResponse.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.AlloyDB.V1.Model.ExportClusterResponse do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
46 changes: 46 additions & 0 deletions
46
clients/alloy_db/lib/google_api/alloy_db/v1/model/gcs_destination.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.AlloyDB.V1.Model.GcsDestination do | ||
@moduledoc """ | ||
Destination for Export. Export will be done to cloud storage. | ||
## Attributes | ||
* `uri` (*type:* `String.t`, *default:* `nil`) - Required. The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:uri => String.t() | nil | ||
} | ||
|
||
field(:uri) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.AlloyDB.V1.Model.GcsDestination do | ||
def decode(value, options) do | ||
GoogleApi.AlloyDB.V1.Model.GcsDestination.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.AlloyDB.V1.Model.GcsDestination do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
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