Skip to content

Commit 44a093d

Browse files
feat: Automated regeneration of AlloyDB client (#12704)
Auto-created at 2024-12-13 13:16:38 +0000 using the toys pull request generator.
1 parent 247aa88 commit 44a093d

File tree

10 files changed

+81
-11
lines changed

10 files changed

+81
-11
lines changed

clients/alloy_db/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_alloy_db, "~> 0.14"}]
14+
[{:google_api_alloy_db, "~> 0.15"}]
1515
end
1616
```
1717

clients/alloy_db/lib/google_api/alloy_db/v1/api/projects.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2482,7 +2482,7 @@ defmodule GoogleApi.AlloyDB.V1.Api.Projects do
24822482
end
24832483

24842484
@doc """
2485-
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
2485+
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
24862486
24872487
## Parameters
24882488

clients/alloy_db/lib/google_api/alloy_db/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.AlloyDB.V1 do
2020
API client metadata for GoogleApi.AlloyDB.V1.
2121
"""
2222

23-
@discovery_revision "20241106"
23+
@discovery_revision "20241204"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/alloy_db/lib/google_api/alloy_db/v1/model/csv_export_options.ex

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,28 @@
1717

1818
defmodule GoogleApi.AlloyDB.V1.Model.CsvExportOptions do
1919
@moduledoc """
20-
Options for exporting data in CSV format. For now, we only support a query to get the data that needs to be exported.
20+
Options for exporting data in CSV format.
2121
2222
## Attributes
2323
24-
* `selectQuery` (*type:* `String.t`, *default:* `nil`) - Required. The select_query used to extract the data.
24+
* `escapeCharacter` (*type:* `String.t`, *default:* `nil`) - Optional. Specifies the character that should appear before a data character that needs to be escaped. The default is the same as quote character. The value of this argument has to be a character in Hex ASCII Code.
25+
* `fieldDelimiter` (*type:* `String.t`, *default:* `nil`) - Optional. Specifies the character that separates columns within each row (line) of the file. The default is comma. The value of this argument has to be a character in Hex ASCII Code.
26+
* `quoteCharacter` (*type:* `String.t`, *default:* `nil`) - Optional. Specifies the quoting character to be used when a data value is quoted. The default is double-quote. The value of this argument has to be a character in Hex ASCII Code.
27+
* `selectQuery` (*type:* `String.t`, *default:* `nil`) - Required. The SELECT query used to extract the data.
2528
"""
2629

2730
use GoogleApi.Gax.ModelBase
2831

2932
@type t :: %__MODULE__{
33+
:escapeCharacter => String.t() | nil,
34+
:fieldDelimiter => String.t() | nil,
35+
:quoteCharacter => String.t() | nil,
3036
:selectQuery => String.t() | nil
3137
}
3238

39+
field(:escapeCharacter)
40+
field(:fieldDelimiter)
41+
field(:quoteCharacter)
3342
field(:selectQuery)
3443
end
3544

clients/alloy_db/lib/google_api/alloy_db/v1/model/export_cluster_request.ex

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,24 @@ defmodule GoogleApi.AlloyDB.V1.Model.ExportClusterRequest do
2222
## Attributes
2323
2424
* `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.
25-
* `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.
25+
* `database` (*type:* `String.t`, *default:* `nil`) - Required. Name of the database where the export command will be executed. Note - Value provided should be the same as expected from `SELECT current_database();` and NOT as a resource reference.
2626
* `gcsDestination` (*type:* `GoogleApi.AlloyDB.V1.Model.GcsDestination.t`, *default:* `nil`) - Required. Option to export data to cloud storage.
27+
* `sqlExportOptions` (*type:* `GoogleApi.AlloyDB.V1.Model.SqlExportOptions.t`, *default:* `nil`) - Options for exporting data in SQL format. Required field to be set for SQL file type.
2728
"""
2829

2930
use GoogleApi.Gax.ModelBase
3031

3132
@type t :: %__MODULE__{
3233
:csvExportOptions => GoogleApi.AlloyDB.V1.Model.CsvExportOptions.t() | nil,
3334
:database => String.t() | nil,
34-
:gcsDestination => GoogleApi.AlloyDB.V1.Model.GcsDestination.t() | nil
35+
:gcsDestination => GoogleApi.AlloyDB.V1.Model.GcsDestination.t() | nil,
36+
:sqlExportOptions => GoogleApi.AlloyDB.V1.Model.SqlExportOptions.t() | nil
3537
}
3638

3739
field(:csvExportOptions, as: GoogleApi.AlloyDB.V1.Model.CsvExportOptions)
3840
field(:database)
3941
field(:gcsDestination, as: GoogleApi.AlloyDB.V1.Model.GcsDestination)
42+
field(:sqlExportOptions, as: GoogleApi.AlloyDB.V1.Model.SqlExportOptions)
4043
end
4144

4245
defimpl Poison.Decoder, for: GoogleApi.AlloyDB.V1.Model.ExportClusterRequest do

clients/alloy_db/lib/google_api/alloy_db/v1/model/gcs_destination.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule GoogleApi.AlloyDB.V1.Model.GcsDestination do
2121
2222
## Attributes
2323
24-
* `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.
24+
* `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`.
2525
"""
2626

2727
use GoogleApi.Gax.ModelBase

clients/alloy_db/lib/google_api/alloy_db/v1/model/operation_metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ defmodule GoogleApi.AlloyDB.V1.Model.OperationMetadata do
2424
* `apiVersion` (*type:* `String.t`, *default:* `nil`) - Output only. API version used to start the operation.
2525
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation was created.
2626
* `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation finished running.
27-
* `requestedCancellation` (*type:* `boolean()`, *default:* `nil`) - Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
27+
* `requestedCancellation` (*type:* `boolean()`, *default:* `nil`) - Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
2828
* `statusMessage` (*type:* `String.t`, *default:* `nil`) - Output only. Human-readable status of the operation, if any.
2929
* `target` (*type:* `String.t`, *default:* `nil`) - Output only. Server-defined resource path for the target of the operation.
3030
* `verb` (*type:* `String.t`, *default:* `nil`) - Output only. Name of the verb executed by the operation.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.AlloyDB.V1.Model.SqlExportOptions do
19+
@moduledoc """
20+
Options for exporting data in SQL format.
21+
22+
## Attributes
23+
24+
* `cleanTargetObjects` (*type:* `boolean()`, *default:* `nil`) - Optional. If true, output commands to DROP all the dumped database objects prior to outputting the commands for creating them.
25+
* `ifExistTargetObjects` (*type:* `boolean()`, *default:* `nil`) - Optional. If true, use DROP ... IF EXISTS commands to check for the object's existence before dropping it in clean_target_objects mode.
26+
* `schemaOnly` (*type:* `boolean()`, *default:* `nil`) - Optional. If true, only export the schema.
27+
* `tables` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Tables to export from.
28+
"""
29+
30+
use GoogleApi.Gax.ModelBase
31+
32+
@type t :: %__MODULE__{
33+
:cleanTargetObjects => boolean() | nil,
34+
:ifExistTargetObjects => boolean() | nil,
35+
:schemaOnly => boolean() | nil,
36+
:tables => list(String.t()) | nil
37+
}
38+
39+
field(:cleanTargetObjects)
40+
field(:ifExistTargetObjects)
41+
field(:schemaOnly)
42+
field(:tables, type: :list)
43+
end
44+
45+
defimpl Poison.Decoder, for: GoogleApi.AlloyDB.V1.Model.SqlExportOptions do
46+
def decode(value, options) do
47+
GoogleApi.AlloyDB.V1.Model.SqlExportOptions.decode(value, options)
48+
end
49+
end
50+
51+
defimpl Poison.Encoder, for: GoogleApi.AlloyDB.V1.Model.SqlExportOptions do
52+
def encode(value, options) do
53+
GoogleApi.Gax.ModelBase.encode(value, options)
54+
end
55+
end

clients/alloy_db/lib/google_api/alloy_db/v1/model/storage_databasecenter_partnerapi_v1main_machine_configuration.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,22 @@ defmodule GoogleApi.AlloyDB.V1.Model.StorageDatabasecenterPartnerapiV1mainMachin
2424
* `cpuCount` (*type:* `integer()`, *default:* `nil`) - The number of CPUs. TODO(b/342344482, b/342346271) add proto validations again after bug fix.
2525
* `memorySizeInBytes` (*type:* `String.t`, *default:* `nil`) - Memory size in bytes. TODO(b/342344482, b/342346271) add proto validations again after bug fix.
2626
* `shardCount` (*type:* `integer()`, *default:* `nil`) - Optional. Number of shards (if applicable).
27+
* `vcpuCount` (*type:* `float()`, *default:* `nil`) - Optional. The number of vCPUs. TODO(b/342344482, b/342346271) add proto validations again after bug fix.
2728
"""
2829

2930
use GoogleApi.Gax.ModelBase
3031

3132
@type t :: %__MODULE__{
3233
:cpuCount => integer() | nil,
3334
:memorySizeInBytes => String.t() | nil,
34-
:shardCount => integer() | nil
35+
:shardCount => integer() | nil,
36+
:vcpuCount => float() | nil
3537
}
3638

3739
field(:cpuCount)
3840
field(:memorySizeInBytes)
3941
field(:shardCount)
42+
field(:vcpuCount)
4043
end
4144

4245
defimpl Poison.Decoder,

clients/alloy_db/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.AlloyDB.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.14.0"
21+
@version "0.15.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)