-
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 Spanner client (#12842)
Auto-created at 2025-01-19 13:13:40 +0000 using the toys pull request generator.
- Loading branch information
1 parent
26f2dbf
commit 26d9044
Showing
6 changed files
with
264 additions
and
1 deletion.
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
49 changes: 49 additions & 0 deletions
49
clients/spanner/lib/google_api/spanner/v1/model/add_split_points_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,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.Spanner.V1.Model.AddSplitPointsRequest do | ||
@moduledoc """ | ||
The request for AddSplitPoints. | ||
## Attributes | ||
* `initiator` (*type:* `String.t`, *default:* `nil`) - Optional. A user-supplied tag associated with the split points. For example, "intital_data_load", "special_event_1". Defaults to "CloudAddSplitPointsAPI" if not specified. The length of the tag must not exceed 50 characters,else will be trimmed. Only valid UTF8 characters are allowed. | ||
* `splitPoints` (*type:* `list(GoogleApi.Spanner.V1.Model.SplitPoints.t)`, *default:* `nil`) - Required. The split points to add. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:initiator => String.t() | nil, | ||
:splitPoints => list(GoogleApi.Spanner.V1.Model.SplitPoints.t()) | nil | ||
} | ||
|
||
field(:initiator) | ||
field(:splitPoints, as: GoogleApi.Spanner.V1.Model.SplitPoints, type: :list) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Spanner.V1.Model.AddSplitPointsRequest do | ||
def decode(value, options) do | ||
GoogleApi.Spanner.V1.Model.AddSplitPointsRequest.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Spanner.V1.Model.AddSplitPointsRequest do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
41 changes: 41 additions & 0 deletions
41
clients/spanner/lib/google_api/spanner/v1/model/add_split_points_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,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.Spanner.V1.Model.AddSplitPointsResponse do | ||
@moduledoc """ | ||
The response for AddSplitPoints. | ||
## Attributes | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{} | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Spanner.V1.Model.AddSplitPointsResponse do | ||
def decode(value, options) do | ||
GoogleApi.Spanner.V1.Model.AddSplitPointsResponse.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Spanner.V1.Model.AddSplitPointsResponse 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
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.Spanner.V1.Model.Key do | ||
@moduledoc """ | ||
A split key. | ||
## Attributes | ||
* `keyParts` (*type:* `list(any())`, *default:* `nil`) - Required. The column values making up the split key. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:keyParts => list(any()) | nil | ||
} | ||
|
||
field(:keyParts, type: :list) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Spanner.V1.Model.Key do | ||
def decode(value, options) do | ||
GoogleApi.Spanner.V1.Model.Key.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Spanner.V1.Model.Key do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
55 changes: 55 additions & 0 deletions
55
clients/spanner/lib/google_api/spanner/v1/model/split_points.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,55 @@ | ||
# 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.Spanner.V1.Model.SplitPoints do | ||
@moduledoc """ | ||
The split points of a table/index. | ||
## Attributes | ||
* `expireTime` (*type:* `DateTime.t`, *default:* `nil`) - Optional. The expiration timestamp of the split points. A timestamp in the past means immediate expiration. The maximum value can be 30 days in the future. Defaults to 10 days in the future if not specified. | ||
* `index` (*type:* `String.t`, *default:* `nil`) - The index to split. If specified, the `table` field must refer to the index's base table. | ||
* `keys` (*type:* `list(GoogleApi.Spanner.V1.Model.Key.t)`, *default:* `nil`) - Required. The list of split keys, i.e., the split boundaries. | ||
* `table` (*type:* `String.t`, *default:* `nil`) - The table to split. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:expireTime => DateTime.t() | nil, | ||
:index => String.t() | nil, | ||
:keys => list(GoogleApi.Spanner.V1.Model.Key.t()) | nil, | ||
:table => String.t() | nil | ||
} | ||
|
||
field(:expireTime, as: DateTime) | ||
field(:index) | ||
field(:keys, as: GoogleApi.Spanner.V1.Model.Key, type: :list) | ||
field(:table) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Spanner.V1.Model.SplitPoints do | ||
def decode(value, options) do | ||
GoogleApi.Spanner.V1.Model.SplitPoints.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Spanner.V1.Model.SplitPoints do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |