Skip to content

Commit bb07fbb

Browse files
feat: Automated regeneration of Spanner client (googleapis#12397)
Auto-created at 2024-10-24 13:14:44 +0000 using the toys pull request generator.
1 parent 87eed3c commit bb07fbb

File tree

11 files changed

+14
-39
lines changed

11 files changed

+14
-39
lines changed

clients/spanner/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_spanner, "~> 0.45"}]
14+
[{:google_api_spanner, "~> 0.46"}]
1515
end
1616
```
1717

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1987,7 +1987,7 @@ defmodule GoogleApi.Spanner.V1.Api.Projects do
19871987
end
19881988

19891989
@doc """
1990-
Gets the access control policy for a database or backup resource. Returns an empty policy if a database or backup exists but does not have a policy set. Authorization requires `spanner.databases.getIamPolicy` permission on resource. For backups, authorization requires `spanner.backups.getIamPolicy` permission on resource. For backup schedules, authorization requires `spanner.backupSchedules.getIamPolicy` permission on resource.
1990+
Gets the access control policy for a database or backup resource. Returns an empty policy if a database or backup exists but does not have a policy set. Authorization requires `spanner.databases.getIamPolicy` permission on resource. For backups, authorization requires `spanner.backups.getIamPolicy` permission on resource.
19911991
19921992
## Parameters
19931993
@@ -2209,7 +2209,7 @@ defmodule GoogleApi.Spanner.V1.Api.Projects do
22092209
end
22102210

22112211
@doc """
2212-
Sets the access control policy on a database or backup resource. Replaces any existing policy. Authorization requires `spanner.databases.setIamPolicy` permission on resource. For backups, authorization requires `spanner.backups.setIamPolicy` permission on resource. For backup schedules, authorization requires `spanner.backupSchedules.setIamPolicy` permission on resource.
2212+
Sets the access control policy on a database or backup resource. Replaces any existing policy. Authorization requires `spanner.databases.setIamPolicy` permission on resource. For backups, authorization requires `spanner.backups.setIamPolicy` permission on resource.
22132213
22142214
## Parameters
22152215
@@ -2281,7 +2281,7 @@ defmodule GoogleApi.Spanner.V1.Api.Projects do
22812281
end
22822282

22832283
@doc """
2284-
Returns permissions that the caller has on the specified database or backup resource. Attempting this RPC on a non-existent Cloud Spanner database will result in a NOT_FOUND error if the user has `spanner.databases.list` permission on the containing Cloud Spanner instance. Otherwise returns an empty set of permissions. Calling this method on a backup that does not exist will result in a NOT_FOUND error if the user has `spanner.backups.list` permission on the containing instance. Calling this method on a backup schedule that does not exist will result in a NOT_FOUND error if the user has `spanner.backupSchedules.list` permission on the containing database.
2284+
Returns permissions that the caller has on the specified database or backup resource. Attempting this RPC on a non-existent Cloud Spanner database will result in a NOT_FOUND error if the user has `spanner.databases.list` permission on the containing Cloud Spanner instance. Otherwise returns an empty set of permissions. Calling this method on a backup that does not exist will result in a NOT_FOUND error if the user has `spanner.backups.list` permission on the containing instance.
22852285
22862286
## Parameters
22872287
@@ -3071,7 +3071,7 @@ defmodule GoogleApi.Spanner.V1.Api.Projects do
30713071
end
30723072

30733073
@doc """
3074-
Gets the access control policy for a database or backup resource. Returns an empty policy if a database or backup exists but does not have a policy set. Authorization requires `spanner.databases.getIamPolicy` permission on resource. For backups, authorization requires `spanner.backups.getIamPolicy` permission on resource. For backup schedules, authorization requires `spanner.backupSchedules.getIamPolicy` permission on resource.
3074+
Gets the access control policy for a database or backup resource. Returns an empty policy if a database or backup exists but does not have a policy set. Authorization requires `spanner.databases.getIamPolicy` permission on resource. For backups, authorization requires `spanner.backups.getIamPolicy` permission on resource.
30753075
30763076
## Parameters
30773077
@@ -3439,7 +3439,7 @@ defmodule GoogleApi.Spanner.V1.Api.Projects do
34393439
end
34403440

34413441
@doc """
3442-
Sets the access control policy on a database or backup resource. Replaces any existing policy. Authorization requires `spanner.databases.setIamPolicy` permission on resource. For backups, authorization requires `spanner.backups.setIamPolicy` permission on resource. For backup schedules, authorization requires `spanner.backupSchedules.setIamPolicy` permission on resource.
3442+
Sets the access control policy on a database or backup resource. Replaces any existing policy. Authorization requires `spanner.databases.setIamPolicy` permission on resource. For backups, authorization requires `spanner.backups.setIamPolicy` permission on resource.
34433443
34443444
## Parameters
34453445
@@ -3511,7 +3511,7 @@ defmodule GoogleApi.Spanner.V1.Api.Projects do
35113511
end
35123512

35133513
@doc """
3514-
Returns permissions that the caller has on the specified database or backup resource. Attempting this RPC on a non-existent Cloud Spanner database will result in a NOT_FOUND error if the user has `spanner.databases.list` permission on the containing Cloud Spanner instance. Otherwise returns an empty set of permissions. Calling this method on a backup that does not exist will result in a NOT_FOUND error if the user has `spanner.backups.list` permission on the containing instance. Calling this method on a backup schedule that does not exist will result in a NOT_FOUND error if the user has `spanner.backupSchedules.list` permission on the containing database.
3514+
Returns permissions that the caller has on the specified database or backup resource. Attempting this RPC on a non-existent Cloud Spanner database will result in a NOT_FOUND error if the user has `spanner.databases.list` permission on the containing Cloud Spanner instance. Otherwise returns an empty set of permissions. Calling this method on a backup that does not exist will result in a NOT_FOUND error if the user has `spanner.backups.list` permission on the containing instance.
35153515
35163516
## Parameters
35173517
@@ -3869,7 +3869,7 @@ defmodule GoogleApi.Spanner.V1.Api.Projects do
38693869
end
38703870

38713871
@doc """
3872-
Gets the access control policy for a database or backup resource. Returns an empty policy if a database or backup exists but does not have a policy set. Authorization requires `spanner.databases.getIamPolicy` permission on resource. For backups, authorization requires `spanner.backups.getIamPolicy` permission on resource. For backup schedules, authorization requires `spanner.backupSchedules.getIamPolicy` permission on resource.
3872+
Gets the access control policy for a database or backup resource. Returns an empty policy if a database or backup exists but does not have a policy set. Authorization requires `spanner.databases.getIamPolicy` permission on resource. For backups, authorization requires `spanner.backups.getIamPolicy` permission on resource.
38733873
38743874
## Parameters
38753875
@@ -4091,7 +4091,7 @@ defmodule GoogleApi.Spanner.V1.Api.Projects do
40914091
end
40924092

40934093
@doc """
4094-
Sets the access control policy on a database or backup resource. Replaces any existing policy. Authorization requires `spanner.databases.setIamPolicy` permission on resource. For backups, authorization requires `spanner.backups.setIamPolicy` permission on resource. For backup schedules, authorization requires `spanner.backupSchedules.setIamPolicy` permission on resource.
4094+
Sets the access control policy on a database or backup resource. Replaces any existing policy. Authorization requires `spanner.databases.setIamPolicy` permission on resource. For backups, authorization requires `spanner.backups.setIamPolicy` permission on resource.
40954095
40964096
## Parameters
40974097
@@ -4163,7 +4163,7 @@ defmodule GoogleApi.Spanner.V1.Api.Projects do
41634163
end
41644164

41654165
@doc """
4166-
Returns permissions that the caller has on the specified database or backup resource. Attempting this RPC on a non-existent Cloud Spanner database will result in a NOT_FOUND error if the user has `spanner.databases.list` permission on the containing Cloud Spanner instance. Otherwise returns an empty set of permissions. Calling this method on a backup that does not exist will result in a NOT_FOUND error if the user has `spanner.backups.list` permission on the containing instance. Calling this method on a backup schedule that does not exist will result in a NOT_FOUND error if the user has `spanner.backupSchedules.list` permission on the containing database.
4166+
Returns permissions that the caller has on the specified database or backup resource. Attempting this RPC on a non-existent Cloud Spanner database will result in a NOT_FOUND error if the user has `spanner.databases.list` permission on the containing Cloud Spanner instance. Otherwise returns an empty set of permissions. Calling this method on a backup that does not exist will result in a NOT_FOUND error if the user has `spanner.backups.list` permission on the containing instance.
41674167
41684168
## Parameters
41694169
@@ -4309,7 +4309,7 @@ defmodule GoogleApi.Spanner.V1.Api.Projects do
43094309
end
43104310

43114311
@doc """
4312-
Returns permissions that the caller has on the specified database or backup resource. Attempting this RPC on a non-existent Cloud Spanner database will result in a NOT_FOUND error if the user has `spanner.databases.list` permission on the containing Cloud Spanner instance. Otherwise returns an empty set of permissions. Calling this method on a backup that does not exist will result in a NOT_FOUND error if the user has `spanner.backups.list` permission on the containing instance. Calling this method on a backup schedule that does not exist will result in a NOT_FOUND error if the user has `spanner.backupSchedules.list` permission on the containing database.
4312+
Returns permissions that the caller has on the specified database or backup resource. Attempting this RPC on a non-existent Cloud Spanner database will result in a NOT_FOUND error if the user has `spanner.databases.list` permission on the containing Cloud Spanner instance. Otherwise returns an empty set of permissions. Calling this method on a backup that does not exist will result in a NOT_FOUND error if the user has `spanner.backups.list` permission on the containing instance.
43134313
43144314
## Parameters
43154315

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

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

23-
@discovery_revision "20241015"
23+
@discovery_revision "20241018"
2424

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

clients/spanner/lib/google_api/spanner/v1/model/begin_transaction_request.ex

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,17 @@ defmodule GoogleApi.Spanner.V1.Model.BeginTransactionRequest do
2121
2222
## Attributes
2323
24-
* `mutationKey` (*type:* `GoogleApi.Spanner.V1.Model.Mutation.t`, *default:* `nil`) - Optional. Required for read-write transactions on a multiplexed session that commit mutations but do not perform any reads or queries. Clients should randomly select one of the mutations from the mutation set and send it as a part of this request.
2524
* `options` (*type:* `GoogleApi.Spanner.V1.Model.TransactionOptions.t`, *default:* `nil`) - Required. Options for the new transaction.
2625
* `requestOptions` (*type:* `GoogleApi.Spanner.V1.Model.RequestOptions.t`, *default:* `nil`) - Common options for this request. Priority is ignored for this request. Setting the priority in this request_options struct will not do anything. To set the priority for a transaction, set it on the reads and writes that are part of this transaction instead.
2726
"""
2827

2928
use GoogleApi.Gax.ModelBase
3029

3130
@type t :: %__MODULE__{
32-
:mutationKey => GoogleApi.Spanner.V1.Model.Mutation.t() | nil,
3331
:options => GoogleApi.Spanner.V1.Model.TransactionOptions.t() | nil,
3432
:requestOptions => GoogleApi.Spanner.V1.Model.RequestOptions.t() | nil
3533
}
3634

37-
field(:mutationKey, as: GoogleApi.Spanner.V1.Model.Mutation)
3835
field(:options, as: GoogleApi.Spanner.V1.Model.TransactionOptions)
3936
field(:requestOptions, as: GoogleApi.Spanner.V1.Model.RequestOptions)
4037
end

clients/spanner/lib/google_api/spanner/v1/model/commit_request.ex

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ defmodule GoogleApi.Spanner.V1.Model.CommitRequest do
2323
2424
* `maxCommitDelay` (*type:* `String.t`, *default:* `nil`) - Optional. The amount of latency this request is configured to incur in order to improve throughput. If this field is not set, Spanner assumes requests are relatively latency sensitive and automatically determines an appropriate delay time. You can specify a commit delay value between 0 and 500 ms.
2525
* `mutations` (*type:* `list(GoogleApi.Spanner.V1.Model.Mutation.t)`, *default:* `nil`) - The mutations to be executed when this transaction commits. All mutations are applied atomically, in the order they appear in this list.
26-
* `precommitToken` (*type:* `GoogleApi.Spanner.V1.Model.MultiplexedSessionPrecommitToken.t`, *default:* `nil`) - Optional. If the read-write transaction was executed on a multiplexed session, the precommit token with the highest sequence number received in this transaction attempt, should be included here. Failing to do so will result in a FailedPrecondition error.
2726
* `requestOptions` (*type:* `GoogleApi.Spanner.V1.Model.RequestOptions.t`, *default:* `nil`) - Common options for this request.
2827
* `returnCommitStats` (*type:* `boolean()`, *default:* `nil`) - If `true`, then statistics related to the transaction will be included in the CommitResponse. Default value is `false`.
2928
* `singleUseTransaction` (*type:* `GoogleApi.Spanner.V1.Model.TransactionOptions.t`, *default:* `nil`) - Execute mutations in a temporary transaction. Note that unlike commit of a previously-started transaction, commit with a temporary transaction is non-idempotent. That is, if the `CommitRequest` is sent to Cloud Spanner more than once (for instance, due to retries in the application, or in the transport library), it is possible that the mutations are executed more than once. If this is undesirable, use BeginTransaction and Commit instead.
@@ -35,8 +34,6 @@ defmodule GoogleApi.Spanner.V1.Model.CommitRequest do
3534
@type t :: %__MODULE__{
3635
:maxCommitDelay => String.t() | nil,
3736
:mutations => list(GoogleApi.Spanner.V1.Model.Mutation.t()) | nil,
38-
:precommitToken =>
39-
GoogleApi.Spanner.V1.Model.MultiplexedSessionPrecommitToken.t() | nil,
4037
:requestOptions => GoogleApi.Spanner.V1.Model.RequestOptions.t() | nil,
4138
:returnCommitStats => boolean() | nil,
4239
:singleUseTransaction => GoogleApi.Spanner.V1.Model.TransactionOptions.t() | nil,
@@ -45,7 +42,6 @@ defmodule GoogleApi.Spanner.V1.Model.CommitRequest do
4542

4643
field(:maxCommitDelay)
4744
field(:mutations, as: GoogleApi.Spanner.V1.Model.Mutation, type: :list)
48-
field(:precommitToken, as: GoogleApi.Spanner.V1.Model.MultiplexedSessionPrecommitToken)
4945
field(:requestOptions, as: GoogleApi.Spanner.V1.Model.RequestOptions)
5046
field(:returnCommitStats)
5147
field(:singleUseTransaction, as: GoogleApi.Spanner.V1.Model.TransactionOptions)

clients/spanner/lib/google_api/spanner/v1/model/commit_response.ex

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,17 @@ defmodule GoogleApi.Spanner.V1.Model.CommitResponse do
2323
2424
* `commitStats` (*type:* `GoogleApi.Spanner.V1.Model.CommitStats.t`, *default:* `nil`) - The statistics about this Commit. Not returned by default. For more information, see CommitRequest.return_commit_stats.
2525
* `commitTimestamp` (*type:* `DateTime.t`, *default:* `nil`) - The Cloud Spanner timestamp at which the transaction committed.
26-
* `precommitToken` (*type:* `GoogleApi.Spanner.V1.Model.MultiplexedSessionPrecommitToken.t`, *default:* `nil`) - If specified, transaction has not committed yet. Clients must retry the commit with the new precommit token.
2726
"""
2827

2928
use GoogleApi.Gax.ModelBase
3029

3130
@type t :: %__MODULE__{
3231
:commitStats => GoogleApi.Spanner.V1.Model.CommitStats.t() | nil,
33-
:commitTimestamp => DateTime.t() | nil,
34-
:precommitToken => GoogleApi.Spanner.V1.Model.MultiplexedSessionPrecommitToken.t() | nil
32+
:commitTimestamp => DateTime.t() | nil
3533
}
3634

3735
field(:commitStats, as: GoogleApi.Spanner.V1.Model.CommitStats)
3836
field(:commitTimestamp, as: DateTime)
39-
field(:precommitToken, as: GoogleApi.Spanner.V1.Model.MultiplexedSessionPrecommitToken)
4037
end
4138

4239
defimpl Poison.Decoder, for: GoogleApi.Spanner.V1.Model.CommitResponse do

clients/spanner/lib/google_api/spanner/v1/model/execute_batch_dml_response.ex

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,17 @@ defmodule GoogleApi.Spanner.V1.Model.ExecuteBatchDmlResponse do
2121
2222
## Attributes
2323
24-
* `precommitToken` (*type:* `GoogleApi.Spanner.V1.Model.MultiplexedSessionPrecommitToken.t`, *default:* `nil`) - Optional. A precommit token will be included if the read-write transaction is on a multiplexed session. The precommit token with the highest sequence number from this transaction attempt should be passed to the Commit request for this transaction.
2524
* `resultSets` (*type:* `list(GoogleApi.Spanner.V1.Model.ResultSet.t)`, *default:* `nil`) - One ResultSet for each statement in the request that ran successfully, in the same order as the statements in the request. Each ResultSet does not contain any rows. The ResultSetStats in each ResultSet contain the number of rows modified by the statement. Only the first ResultSet in the response contains valid ResultSetMetadata.
2625
* `status` (*type:* `GoogleApi.Spanner.V1.Model.Status.t`, *default:* `nil`) - If all DML statements are executed successfully, the status is `OK`. Otherwise, the error status of the first failed statement.
2726
"""
2827

2928
use GoogleApi.Gax.ModelBase
3029

3130
@type t :: %__MODULE__{
32-
:precommitToken =>
33-
GoogleApi.Spanner.V1.Model.MultiplexedSessionPrecommitToken.t() | nil,
3431
:resultSets => list(GoogleApi.Spanner.V1.Model.ResultSet.t()) | nil,
3532
:status => GoogleApi.Spanner.V1.Model.Status.t() | nil
3633
}
3734

38-
field(:precommitToken, as: GoogleApi.Spanner.V1.Model.MultiplexedSessionPrecommitToken)
3935
field(:resultSets, as: GoogleApi.Spanner.V1.Model.ResultSet, type: :list)
4036
field(:status, as: GoogleApi.Spanner.V1.Model.Status)
4137
end

0 commit comments

Comments
 (0)