Skip to content

Commit 2533a88

Browse files
feat: Automated regeneration of AlloyDB client (googleapis#12183)
Auto-created at 2024-09-21 13:08:32 +0000 using the toys pull request generator.
1 parent 8ec1c54 commit 2533a88

File tree

6 files changed

+58
-5
lines changed

6 files changed

+58
-5
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.9"}]
14+
[{:google_api_alloy_db, "~> 0.10"}]
1515
end
1616
```
1717

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 "20240828"
23+
@discovery_revision "20240909"
2424

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

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
defmodule GoogleApi.AlloyDB.V1.Model.StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata do
1919
@moduledoc """
20-
Common model for database resource instance metadata.
20+
Common model for database resource instance metadata. Next ID: 21
2121
2222
## Attributes
2323
@@ -37,6 +37,7 @@ defmodule GoogleApi.AlloyDB.V1.Model.StorageDatabasecenterPartnerapiV1mainDataba
3737
* `product` (*type:* `GoogleApi.AlloyDB.V1.Model.StorageDatabasecenterProtoCommonProduct.t`, *default:* `nil`) - The product this resource represents.
3838
* `resourceContainer` (*type:* `String.t`, *default:* `nil`) - Closest parent Cloud Resource Manager container of this resource. It must be resource name of a Cloud Resource Manager project with the format of "/", such as "projects/123". For GCP provided resources, number should be project number.
3939
* `resourceName` (*type:* `String.t`, *default:* `nil`) - Required. Different from DatabaseResourceId.unique_id, a resource name can be reused over time. That is, after a resource named "ABC" is deleted, the name "ABC" can be used to to create a new resource within the same source. Resource name to follow CAIS resource_name format as noted here go/condor-common-datamodel
40+
* `tagsSet` (*type:* `GoogleApi.AlloyDB.V1.Model.StorageDatabasecenterPartnerapiV1mainTags.t`, *default:* `nil`) - Optional. Tags associated with this resources.
4041
* `updationTime` (*type:* `DateTime.t`, *default:* `nil`) - The time at which the resource was updated and recorded at partner service.
4142
* `userLabelSet` (*type:* `GoogleApi.AlloyDB.V1.Model.StorageDatabasecenterPartnerapiV1mainUserLabels.t`, *default:* `nil`) - User-provided labels associated with the resource
4243
"""
@@ -76,6 +77,8 @@ defmodule GoogleApi.AlloyDB.V1.Model.StorageDatabasecenterPartnerapiV1mainDataba
7677
GoogleApi.AlloyDB.V1.Model.StorageDatabasecenterProtoCommonProduct.t() | nil,
7778
:resourceContainer => String.t() | nil,
7879
:resourceName => String.t() | nil,
80+
:tagsSet =>
81+
GoogleApi.AlloyDB.V1.Model.StorageDatabasecenterPartnerapiV1mainTags.t() | nil,
7982
:updationTime => DateTime.t() | nil,
8083
:userLabelSet =>
8184
GoogleApi.AlloyDB.V1.Model.StorageDatabasecenterPartnerapiV1mainUserLabels.t() | nil
@@ -122,6 +125,7 @@ defmodule GoogleApi.AlloyDB.V1.Model.StorageDatabasecenterPartnerapiV1mainDataba
122125
field(:product, as: GoogleApi.AlloyDB.V1.Model.StorageDatabasecenterProtoCommonProduct)
123126
field(:resourceContainer)
124127
field(:resourceName)
128+
field(:tagsSet, as: GoogleApi.AlloyDB.V1.Model.StorageDatabasecenterPartnerapiV1mainTags)
125129
field(:updationTime, as: DateTime)
126130

127131
field(:userLabelSet,

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
@@ -23,17 +23,20 @@ defmodule GoogleApi.AlloyDB.V1.Model.StorageDatabasecenterPartnerapiV1mainMachin
2323
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.
26+
* `shardCount` (*type:* `integer()`, *default:* `nil`) - Optional. Number of shards (if applicable).
2627
"""
2728

2829
use GoogleApi.Gax.ModelBase
2930

3031
@type t :: %__MODULE__{
3132
:cpuCount => integer() | nil,
32-
:memorySizeInBytes => String.t() | nil
33+
:memorySizeInBytes => String.t() | nil,
34+
:shardCount => integer() | nil
3335
}
3436

3537
field(:cpuCount)
3638
field(:memorySizeInBytes)
39+
field(:shardCount)
3740
end
3841

3942
defimpl Poison.Decoder,
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.StorageDatabasecenterPartnerapiV1mainTags do
19+
@moduledoc """
20+
Message type for storing tags. Tags provide a way to create annotations for resources, and in some cases conditionally allow or deny policies based on whether a resource has a specific tag.
21+
22+
## Attributes
23+
24+
* `tags` (*type:* `map()`, *default:* `nil`) - The Tag key/value mappings.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:tags => map() | nil
31+
}
32+
33+
field(:tags, type: :map)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.AlloyDB.V1.Model.StorageDatabasecenterPartnerapiV1mainTags do
37+
def decode(value, options) do
38+
GoogleApi.AlloyDB.V1.Model.StorageDatabasecenterPartnerapiV1mainTags.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.AlloyDB.V1.Model.StorageDatabasecenterPartnerapiV1mainTags do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

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.9.0"
21+
@version "0.10.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)