Skip to content

Commit 342aea0

Browse files
feat: Automated regeneration of AlloyDB client (#13163)
Auto-created at 2025-03-15 13:11:04 +0000 using the toys pull request generator.
1 parent 151842d commit 342aea0

File tree

6 files changed

+118
-3
lines changed

6 files changed

+118
-3
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 "20250227"
23+
@discovery_revision "20250308"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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.DenyMaintenancePeriod do
19+
@moduledoc """
20+
DenyMaintenancePeriod definition. Excepting emergencies, maintenance will not be scheduled to start within this deny period. The start_date must be less than the end_date.
21+
22+
## Attributes
23+
24+
* `endDate` (*type:* `GoogleApi.AlloyDB.V1.Model.GoogleTypeDate.t`, *default:* `nil`) - Deny period end date. This can be: * A full date, with non-zero year, month and day values OR * A month and day value, with a zero year for recurring
25+
* `startDate` (*type:* `GoogleApi.AlloyDB.V1.Model.GoogleTypeDate.t`, *default:* `nil`) - Deny period start date. This can be: * A full date, with non-zero year, month and day values OR * A month and day value, with a zero year for recurring
26+
* `time` (*type:* `GoogleApi.AlloyDB.V1.Model.GoogleTypeTimeOfDay.t`, *default:* `nil`) - Time in UTC when the deny period starts on start_date and ends on end_date. This can be: * Full time OR * All zeros for 00:00:00 UTC
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:endDate => GoogleApi.AlloyDB.V1.Model.GoogleTypeDate.t() | nil,
33+
:startDate => GoogleApi.AlloyDB.V1.Model.GoogleTypeDate.t() | nil,
34+
:time => GoogleApi.AlloyDB.V1.Model.GoogleTypeTimeOfDay.t() | nil
35+
}
36+
37+
field(:endDate, as: GoogleApi.AlloyDB.V1.Model.GoogleTypeDate)
38+
field(:startDate, as: GoogleApi.AlloyDB.V1.Model.GoogleTypeDate)
39+
field(:time, as: GoogleApi.AlloyDB.V1.Model.GoogleTypeTimeOfDay)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.AlloyDB.V1.Model.DenyMaintenancePeriod do
43+
def decode(value, options) do
44+
GoogleApi.AlloyDB.V1.Model.DenyMaintenancePeriod.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.AlloyDB.V1.Model.DenyMaintenancePeriod do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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.GoogleTypeDate do
19+
@moduledoc """
20+
Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
21+
22+
## Attributes
23+
24+
* `day` (*type:* `integer()`, *default:* `nil`) - Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
25+
* `month` (*type:* `integer()`, *default:* `nil`) - Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
26+
* `year` (*type:* `integer()`, *default:* `nil`) - Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:day => integer() | nil,
33+
:month => integer() | nil,
34+
:year => integer() | nil
35+
}
36+
37+
field(:day)
38+
field(:month)
39+
field(:year)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.AlloyDB.V1.Model.GoogleTypeDate do
43+
def decode(value, options) do
44+
GoogleApi.AlloyDB.V1.Model.GoogleTypeDate.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.AlloyDB.V1.Model.GoogleTypeDate do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ defmodule GoogleApi.AlloyDB.V1.Model.InstanceNetworkConfig do
2424
* `authorizedExternalNetworks` (*type:* `list(GoogleApi.AlloyDB.V1.Model.AuthorizedNetwork.t)`, *default:* `nil`) - Optional. A list of external network authorized to access this instance.
2525
* `enableOutboundPublicIp` (*type:* `boolean()`, *default:* `nil`) - Optional. Enabling an outbound public IP address to support a database server sending requests out into the internet.
2626
* `enablePublicIp` (*type:* `boolean()`, *default:* `nil`) - Optional. Enabling public ip for the instance.
27+
* `network` (*type:* `String.t`, *default:* `nil`) - Output only. The resource link for the VPC network in which instance resources are created and from which they are accessible via Private IP. This will be the same value as the parent cluster's network. It is specified in the form: // `projects/{project_number}/global/networks/{network_id}`.
2728
"""
2829

2930
use GoogleApi.Gax.ModelBase
@@ -32,13 +33,15 @@ defmodule GoogleApi.AlloyDB.V1.Model.InstanceNetworkConfig do
3233
:authorizedExternalNetworks =>
3334
list(GoogleApi.AlloyDB.V1.Model.AuthorizedNetwork.t()) | nil,
3435
:enableOutboundPublicIp => boolean() | nil,
35-
:enablePublicIp => boolean() | nil
36+
:enablePublicIp => boolean() | nil,
37+
:network => String.t() | nil
3638
}
3739

3840
field(:authorizedExternalNetworks, as: GoogleApi.AlloyDB.V1.Model.AuthorizedNetwork, type: :list)
3941

4042
field(:enableOutboundPublicIp)
4143
field(:enablePublicIp)
44+
field(:network)
4245
end
4346

4447
defimpl Poison.Decoder, for: GoogleApi.AlloyDB.V1.Model.InstanceNetworkConfig do

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,18 @@ defmodule GoogleApi.AlloyDB.V1.Model.MachineConfig do
2222
## Attributes
2323
2424
* `cpuCount` (*type:* `integer()`, *default:* `nil`) - The number of CPU's in the VM instance.
25+
* `machineType` (*type:* `String.t`, *default:* `nil`) - Machine type of the VM instance. E.g. "n2-highmem-4", "n2-highmem-8", "c4a-highmem-4-lssd". cpu_count must match the number of vCPUs in the machine type.
2526
"""
2627

2728
use GoogleApi.Gax.ModelBase
2829

2930
@type t :: %__MODULE__{
30-
:cpuCount => integer() | nil
31+
:cpuCount => integer() | nil,
32+
:machineType => String.t() | nil
3133
}
3234

3335
field(:cpuCount)
36+
field(:machineType)
3437
end
3538

3639
defimpl Poison.Decoder, for: GoogleApi.AlloyDB.V1.Model.MachineConfig do

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,20 @@ defmodule GoogleApi.AlloyDB.V1.Model.MaintenanceUpdatePolicy do
2121
2222
## Attributes
2323
24+
* `denyMaintenancePeriods` (*type:* `list(GoogleApi.AlloyDB.V1.Model.DenyMaintenancePeriod.t)`, *default:* `nil`) - Periods to deny maintenance. Currently limited to 1.
2425
* `maintenanceWindows` (*type:* `list(GoogleApi.AlloyDB.V1.Model.MaintenanceWindow.t)`, *default:* `nil`) - Preferred windows to perform maintenance. Currently limited to 1.
2526
"""
2627

2728
use GoogleApi.Gax.ModelBase
2829

2930
@type t :: %__MODULE__{
31+
:denyMaintenancePeriods =>
32+
list(GoogleApi.AlloyDB.V1.Model.DenyMaintenancePeriod.t()) | nil,
3033
:maintenanceWindows => list(GoogleApi.AlloyDB.V1.Model.MaintenanceWindow.t()) | nil
3134
}
3235

36+
field(:denyMaintenancePeriods, as: GoogleApi.AlloyDB.V1.Model.DenyMaintenancePeriod, type: :list)
37+
3338
field(:maintenanceWindows, as: GoogleApi.AlloyDB.V1.Model.MaintenanceWindow, type: :list)
3439
end
3540

0 commit comments

Comments
 (0)