Skip to content

Commit 83cef09

Browse files
feat: Automated regeneration of AlloyDB client (googleapis#13097)
Auto-created at 2025-03-05 13:17:09 +0000 using the toys pull request generator.
1 parent 162acf0 commit 83cef09

File tree

5 files changed

+76
-5
lines changed

5 files changed

+76
-5
lines changed

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 "20250219"
23+
@discovery_revision "20250227"
2424

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ defmodule GoogleApi.AlloyDB.V1.Model.AutomatedBackupPolicy do
2323
2424
* `backupWindow` (*type:* `String.t`, *default:* `nil`) - The length of the time window during which a backup can be taken. If a backup does not succeed within this time window, it will be canceled and considered failed. The backup window must be at least 5 minutes long. There is no upper bound on the window. If not set, it defaults to 1 hour.
2525
* `enabled` (*type:* `boolean()`, *default:* `nil`) - Whether automated automated backups are enabled. If not set, defaults to true.
26-
* `encryptionConfig` (*type:* `GoogleApi.AlloyDB.V1.Model.EncryptionConfig.t`, *default:* `nil`) - Optional. The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data.
26+
* `encryptionConfig` (*type:* `GoogleApi.AlloyDB.V1.Model.EncryptionConfig.t`, *default:* `nil`) - Optional. The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK). When this field is not specified, the backup will use the cluster's encryption config.
2727
* `labels` (*type:* `map()`, *default:* `nil`) - Labels to apply to backups created using this configuration.
2828
* `location` (*type:* `String.t`, *default:* `nil`) - The location where the backup will be stored. Currently, the only supported option is to store the backup in the same region as the cluster. If empty, defaults to the region of the cluster.
2929
* `quantityBasedRetention` (*type:* `GoogleApi.AlloyDB.V1.Model.QuantityBasedRetention.t`, *default:* `nil`) - Quantity-based Backup retention policy to retain recent backups.

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ defmodule GoogleApi.AlloyDB.V1.Model.Instance do
3737
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. The name of the instance resource with the format: * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id} where the cluster and instance ID segments should satisfy the regex expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of lowercase letters, numbers, and dashes, starting with a letter, and ending with a letter or number. For more details see https://google.aip.dev/122. The prefix of the instance resource name is the name of the parent resource: * projects/{project}/locations/{region}/clusters/{cluster_id}
3838
* `networkConfig` (*type:* `GoogleApi.AlloyDB.V1.Model.InstanceNetworkConfig.t`, *default:* `nil`) - Optional. Instance-level network configuration.
3939
* `nodes` (*type:* `list(GoogleApi.AlloyDB.V1.Model.Node.t)`, *default:* `nil`) - Output only. List of available read-only VMs in this instance, including the standby for a PRIMARY instance.
40+
* `observabilityConfig` (*type:* `GoogleApi.AlloyDB.V1.Model.ObservabilityInstanceConfig.t`, *default:* `nil`) - Configuration for observability.
4041
* `outboundPublicIpAddresses` (*type:* `list(String.t)`, *default:* `nil`) - Output only. All outbound public IP addresses configured for the instance.
4142
* `pscInstanceConfig` (*type:* `GoogleApi.AlloyDB.V1.Model.PscInstanceConfig.t`, *default:* `nil`) - Optional. The configuration for Private Service Connect (PSC) for the instance.
4243
* `publicIpAddress` (*type:* `String.t`, *default:* `nil`) - Output only. The public IP addresses for the Instance. This is available ONLY when enable_public_ip is set. This is the connection endpoint for an end-user application.
@@ -69,6 +70,8 @@ defmodule GoogleApi.AlloyDB.V1.Model.Instance do
6970
:name => String.t() | nil,
7071
:networkConfig => GoogleApi.AlloyDB.V1.Model.InstanceNetworkConfig.t() | nil,
7172
:nodes => list(GoogleApi.AlloyDB.V1.Model.Node.t()) | nil,
73+
:observabilityConfig =>
74+
GoogleApi.AlloyDB.V1.Model.ObservabilityInstanceConfig.t() | nil,
7275
:outboundPublicIpAddresses => list(String.t()) | nil,
7376
:pscInstanceConfig => GoogleApi.AlloyDB.V1.Model.PscInstanceConfig.t() | nil,
7477
:publicIpAddress => String.t() | nil,
@@ -99,6 +102,7 @@ defmodule GoogleApi.AlloyDB.V1.Model.Instance do
99102
field(:name)
100103
field(:networkConfig, as: GoogleApi.AlloyDB.V1.Model.InstanceNetworkConfig)
101104
field(:nodes, as: GoogleApi.AlloyDB.V1.Model.Node, type: :list)
105+
field(:observabilityConfig, as: GoogleApi.AlloyDB.V1.Model.ObservabilityInstanceConfig)
102106
field(:outboundPublicIpAddresses, type: :list)
103107
field(:pscInstanceConfig, as: GoogleApi.AlloyDB.V1.Model.PscInstanceConfig)
104108
field(:publicIpAddress)
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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.ObservabilityInstanceConfig do
19+
@moduledoc """
20+
Observability Instance specific configuration.
21+
22+
## Attributes
23+
24+
* `enabled` (*type:* `boolean()`, *default:* `nil`) - Observability feature status for an instance. This flag is turned "off" by default.
25+
* `maxQueryStringLength` (*type:* `integer()`, *default:* `nil`) - Query string length. The default value is 10k.
26+
* `preserveComments` (*type:* `boolean()`, *default:* `nil`) - Preserve comments in query string for an instance. This flag is turned "off" by default.
27+
* `queryPlansPerMinute` (*type:* `integer()`, *default:* `nil`) - Number of query execution plans captured by Insights per minute for all queries combined. The default value is 200. Any integer between 0 to 200 is considered valid.
28+
* `recordApplicationTags` (*type:* `boolean()`, *default:* `nil`) - Record application tags for an instance. This flag is turned "off" by default.
29+
* `trackActiveQueries` (*type:* `boolean()`, *default:* `nil`) - Track actively running queries on the instance. If not set, this flag is "off" by default.
30+
* `trackWaitEventTypes` (*type:* `boolean()`, *default:* `nil`) - Output only. Track wait event types during query execution for an instance. This flag is turned "on" by default but tracking is enabled only after observability enabled flag is also turned on. This is read-only flag and only modifiable by internal API.
31+
* `trackWaitEvents` (*type:* `boolean()`, *default:* `nil`) - Track wait events during query execution for an instance. This flag is turned "on" by default but tracking is enabled only after observability enabled flag is also turned on.
32+
"""
33+
34+
use GoogleApi.Gax.ModelBase
35+
36+
@type t :: %__MODULE__{
37+
:enabled => boolean() | nil,
38+
:maxQueryStringLength => integer() | nil,
39+
:preserveComments => boolean() | nil,
40+
:queryPlansPerMinute => integer() | nil,
41+
:recordApplicationTags => boolean() | nil,
42+
:trackActiveQueries => boolean() | nil,
43+
:trackWaitEventTypes => boolean() | nil,
44+
:trackWaitEvents => boolean() | nil
45+
}
46+
47+
field(:enabled)
48+
field(:maxQueryStringLength)
49+
field(:preserveComments)
50+
field(:queryPlansPerMinute)
51+
field(:recordApplicationTags)
52+
field(:trackActiveQueries)
53+
field(:trackWaitEventTypes)
54+
field(:trackWaitEvents)
55+
end
56+
57+
defimpl Poison.Decoder, for: GoogleApi.AlloyDB.V1.Model.ObservabilityInstanceConfig do
58+
def decode(value, options) do
59+
GoogleApi.AlloyDB.V1.Model.ObservabilityInstanceConfig.decode(value, options)
60+
end
61+
end
62+
63+
defimpl Poison.Encoder, for: GoogleApi.AlloyDB.V1.Model.ObservabilityInstanceConfig do
64+
def encode(value, options) do
65+
GoogleApi.Gax.ModelBase.encode(value, options)
66+
end
67+
end

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ defmodule GoogleApi.AlloyDB.V1.Model.StorageDatabasecenterPartnerapiV1mainMachin
2121
2222
## Attributes
2323
24-
* `cpuCount` (*type:* `integer()`, *default:* `nil`) - The number of CPUs. Deprecated. Use vcpu_count instead. TODO(b/342344482, b/342346271) add proto validations again after bug fix.
25-
* `memorySizeInBytes` (*type:* `String.t`, *default:* `nil`) - Memory size in bytes. TODO(b/342344482, b/342346271) add proto validations again after bug fix.
24+
* `cpuCount` (*type:* `integer()`, *default:* `nil`) - The number of CPUs. Deprecated. Use vcpu_count instead. TODO(b/342344482) add proto validations again after bug fix.
25+
* `memorySizeInBytes` (*type:* `String.t`, *default:* `nil`) - Memory size in bytes. TODO(b/342344482) 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.
27+
* `vcpuCount` (*type:* `float()`, *default:* `nil`) - Optional. The number of vCPUs. TODO(b/342344482) add proto validations again after bug fix.
2828
"""
2929

3030
use GoogleApi.Gax.ModelBase

0 commit comments

Comments
 (0)