Skip to content

Commit 082da17

Browse files
feat: Automated regeneration of alloydb v1 client (googleapis#22102)
Auto-created at 2025-03-16 10:12:04 +0000 using the toys pull request generator.
1 parent f3b345b commit 082da17

File tree

5 files changed

+167
-2
lines changed

5 files changed

+167
-2
lines changed

api_names_out.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22533,6 +22533,10 @@
2253322533
"/alloydb:v1/CsvImportOptions/fieldDelimiter": field_delimiter
2253422534
"/alloydb:v1/CsvImportOptions/quoteCharacter": quote_character
2253522535
"/alloydb:v1/CsvImportOptions/table": table
22536+
"/alloydb:v1/DenyMaintenancePeriod": deny_maintenance_period
22537+
"/alloydb:v1/DenyMaintenancePeriod/endDate": end_date
22538+
"/alloydb:v1/DenyMaintenancePeriod/startDate": start_date
22539+
"/alloydb:v1/DenyMaintenancePeriod/time": time
2253622540
"/alloydb:v1/Empty": empty
2253722541
"/alloydb:v1/EncryptionConfig": encryption_config
2253822542
"/alloydb:v1/EncryptionConfig/kmsKeyName": kms_key_name
@@ -22573,6 +22577,10 @@
2257322577
"/alloydb:v1/GoogleCloudLocationLocation/metadata": metadata
2257422578
"/alloydb:v1/GoogleCloudLocationLocation/metadata/metadatum": metadatum
2257522579
"/alloydb:v1/GoogleCloudLocationLocation/name": name
22580+
"/alloydb:v1/GoogleTypeDate": google_type_date
22581+
"/alloydb:v1/GoogleTypeDate/day": day
22582+
"/alloydb:v1/GoogleTypeDate/month": month
22583+
"/alloydb:v1/GoogleTypeDate/year": year
2257622584
"/alloydb:v1/GoogleTypeTimeOfDay": google_type_time_of_day
2257722585
"/alloydb:v1/GoogleTypeTimeOfDay/hours": hours
2257822586
"/alloydb:v1/GoogleTypeTimeOfDay/minutes": minutes
@@ -22629,6 +22637,7 @@
2262922637
"/alloydb:v1/InstanceNetworkConfig/authorizedExternalNetworks/authorized_external_network": authorized_external_network
2263022638
"/alloydb:v1/InstanceNetworkConfig/enableOutboundPublicIp": enable_outbound_public_ip
2263122639
"/alloydb:v1/InstanceNetworkConfig/enablePublicIp": enable_public_ip
22640+
"/alloydb:v1/InstanceNetworkConfig/network": network
2263222641
"/alloydb:v1/InstanceUpgradeDetails": instance_upgrade_details
2263322642
"/alloydb:v1/InstanceUpgradeDetails/instanceType": instance_type
2263422643
"/alloydb:v1/InstanceUpgradeDetails/name": name
@@ -22670,9 +22679,12 @@
2267022679
"/alloydb:v1/ListUsersResponse/users/user": user
2267122680
"/alloydb:v1/MachineConfig": machine_config
2267222681
"/alloydb:v1/MachineConfig/cpuCount": cpu_count
22682+
"/alloydb:v1/MachineConfig/machineType": machine_type
2267322683
"/alloydb:v1/MaintenanceSchedule": maintenance_schedule
2267422684
"/alloydb:v1/MaintenanceSchedule/startTime": start_time
2267522685
"/alloydb:v1/MaintenanceUpdatePolicy": maintenance_update_policy
22686+
"/alloydb:v1/MaintenanceUpdatePolicy/denyMaintenancePeriods": deny_maintenance_periods
22687+
"/alloydb:v1/MaintenanceUpdatePolicy/denyMaintenancePeriods/deny_maintenance_period": deny_maintenance_period
2267622688
"/alloydb:v1/MaintenanceUpdatePolicy/maintenanceWindows": maintenance_windows
2267722689
"/alloydb:v1/MaintenanceUpdatePolicy/maintenanceWindows/maintenance_window": maintenance_window
2267822690
"/alloydb:v1/MaintenanceWindow": maintenance_window

generated/google-apis-alloydb_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-alloydb_v1
22

3+
### v0.32.0 (2025-03-16)
4+
5+
* Regenerated from discovery document revision 20250308
6+
37
### v0.31.0 (2025-03-09)
48

59
* Regenerated from discovery document revision 20250227

generated/google-apis-alloydb_v1/lib/google/apis/alloydb_v1/classes.rb

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,55 @@ def update!(**args)
968968
end
969969
end
970970

971+
# DenyMaintenancePeriod definition. Excepting emergencies, maintenance will not
972+
# be scheduled to start within this deny period. The start_date must be less
973+
# than the end_date.
974+
class DenyMaintenancePeriod
975+
include Google::Apis::Core::Hashable
976+
977+
# Represents a whole or partial calendar date, such as a birthday. The time of
978+
# day and time zone are either specified elsewhere or are insignificant. The
979+
# date is relative to the Gregorian Calendar. This can represent one of the
980+
# following: * A full date, with non-zero year, month, and day values. * A month
981+
# and day, with a zero year (for example, an anniversary). * A year on its own,
982+
# with a zero month and a zero day. * A year and month, with a zero day (for
983+
# example, a credit card expiration date). Related types: * google.type.
984+
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
985+
# Corresponds to the JSON property `endDate`
986+
# @return [Google::Apis::AlloydbV1::GoogleTypeDate]
987+
attr_accessor :end_date
988+
989+
# Represents a whole or partial calendar date, such as a birthday. The time of
990+
# day and time zone are either specified elsewhere or are insignificant. The
991+
# date is relative to the Gregorian Calendar. This can represent one of the
992+
# following: * A full date, with non-zero year, month, and day values. * A month
993+
# and day, with a zero year (for example, an anniversary). * A year on its own,
994+
# with a zero month and a zero day. * A year and month, with a zero day (for
995+
# example, a credit card expiration date). Related types: * google.type.
996+
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
997+
# Corresponds to the JSON property `startDate`
998+
# @return [Google::Apis::AlloydbV1::GoogleTypeDate]
999+
attr_accessor :start_date
1000+
1001+
# Represents a time of day. The date and time zone are either not significant or
1002+
# are specified elsewhere. An API may choose to allow leap seconds. Related
1003+
# types are google.type.Date and `google.protobuf.Timestamp`.
1004+
# Corresponds to the JSON property `time`
1005+
# @return [Google::Apis::AlloydbV1::GoogleTypeTimeOfDay]
1006+
attr_accessor :time
1007+
1008+
def initialize(**args)
1009+
update!(**args)
1010+
end
1011+
1012+
# Update properties of this object
1013+
def update!(**args)
1014+
@end_date = args[:end_date] if args.key?(:end_date)
1015+
@start_date = args[:start_date] if args.key?(:start_date)
1016+
@time = args[:time] if args.key?(:time)
1017+
end
1018+
end
1019+
9711020
# A generic empty message that you can re-use to avoid defining duplicated empty
9721021
# messages in your APIs. A typical example is to use it as the request or the
9731022
# response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -1219,6 +1268,47 @@ def update!(**args)
12191268
end
12201269
end
12211270

1271+
# Represents a whole or partial calendar date, such as a birthday. The time of
1272+
# day and time zone are either specified elsewhere or are insignificant. The
1273+
# date is relative to the Gregorian Calendar. This can represent one of the
1274+
# following: * A full date, with non-zero year, month, and day values. * A month
1275+
# and day, with a zero year (for example, an anniversary). * A year on its own,
1276+
# with a zero month and a zero day. * A year and month, with a zero day (for
1277+
# example, a credit card expiration date). Related types: * google.type.
1278+
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
1279+
class GoogleTypeDate
1280+
include Google::Apis::Core::Hashable
1281+
1282+
# Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
1283+
# specify a year by itself or a year and month where the day isn't significant.
1284+
# Corresponds to the JSON property `day`
1285+
# @return [Fixnum]
1286+
attr_accessor :day
1287+
1288+
# Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
1289+
# and day.
1290+
# Corresponds to the JSON property `month`
1291+
# @return [Fixnum]
1292+
attr_accessor :month
1293+
1294+
# Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
1295+
# year.
1296+
# Corresponds to the JSON property `year`
1297+
# @return [Fixnum]
1298+
attr_accessor :year
1299+
1300+
def initialize(**args)
1301+
update!(**args)
1302+
end
1303+
1304+
# Update properties of this object
1305+
def update!(**args)
1306+
@day = args[:day] if args.key?(:day)
1307+
@month = args[:month] if args.key?(:month)
1308+
@year = args[:year] if args.key?(:year)
1309+
end
1310+
end
1311+
12221312
# Represents a time of day. The date and time zone are either not significant or
12231313
# are specified elsewhere. An API may choose to allow leap seconds. Related
12241314
# types are google.type.Date and `google.protobuf.Timestamp`.
@@ -1618,6 +1708,14 @@ class InstanceNetworkConfig
16181708
attr_accessor :enable_public_ip
16191709
alias_method :enable_public_ip?, :enable_public_ip
16201710

1711+
# Output only. The resource link for the VPC network in which instance resources
1712+
# are created and from which they are accessible via Private IP. This will be
1713+
# the same value as the parent cluster's network. It is specified in the form: //
1714+
# `projects/`project_number`/global/networks/`network_id``.
1715+
# Corresponds to the JSON property `network`
1716+
# @return [String]
1717+
attr_accessor :network
1718+
16211719
def initialize(**args)
16221720
update!(**args)
16231721
end
@@ -1627,6 +1725,7 @@ def update!(**args)
16271725
@authorized_external_networks = args[:authorized_external_networks] if args.key?(:authorized_external_networks)
16281726
@enable_outbound_public_ip = args[:enable_outbound_public_ip] if args.key?(:enable_outbound_public_ip)
16291727
@enable_public_ip = args[:enable_public_ip] if args.key?(:enable_public_ip)
1728+
@network = args[:network] if args.key?(:network)
16301729
end
16311730
end
16321731

@@ -1869,13 +1968,20 @@ class MachineConfig
18691968
# @return [Fixnum]
18701969
attr_accessor :cpu_count
18711970

1971+
# Machine type of the VM instance. E.g. "n2-highmem-4", "n2-highmem-8", "c4a-
1972+
# highmem-4-lssd". cpu_count must match the number of vCPUs in the machine type.
1973+
# Corresponds to the JSON property `machineType`
1974+
# @return [String]
1975+
attr_accessor :machine_type
1976+
18721977
def initialize(**args)
18731978
update!(**args)
18741979
end
18751980

18761981
# Update properties of this object
18771982
def update!(**args)
18781983
@cpu_count = args[:cpu_count] if args.key?(:cpu_count)
1984+
@machine_type = args[:machine_type] if args.key?(:machine_type)
18791985
end
18801986
end
18811987

@@ -1906,6 +2012,11 @@ def update!(**args)
19062012
class MaintenanceUpdatePolicy
19072013
include Google::Apis::Core::Hashable
19082014

2015+
# Periods to deny maintenance. Currently limited to 1.
2016+
# Corresponds to the JSON property `denyMaintenancePeriods`
2017+
# @return [Array<Google::Apis::AlloydbV1::DenyMaintenancePeriod>]
2018+
attr_accessor :deny_maintenance_periods
2019+
19092020
# Preferred windows to perform maintenance. Currently limited to 1.
19102021
# Corresponds to the JSON property `maintenanceWindows`
19112022
# @return [Array<Google::Apis::AlloydbV1::MaintenanceWindow>]
@@ -1917,6 +2028,7 @@ def initialize(**args)
19172028

19182029
# Update properties of this object
19192030
def update!(**args)
2031+
@deny_maintenance_periods = args[:deny_maintenance_periods] if args.key?(:deny_maintenance_periods)
19202032
@maintenance_windows = args[:maintenance_windows] if args.key?(:maintenance_windows)
19212033
end
19222034
end

generated/google-apis-alloydb_v1/lib/google/apis/alloydb_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module AlloydbV1
1818
# Version of the google-apis-alloydb_v1 gem
19-
GEM_VERSION = "0.31.0"
19+
GEM_VERSION = "0.32.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250227"
25+
REVISION = "20250308"
2626
end
2727
end
2828
end

generated/google-apis-alloydb_v1/lib/google/apis/alloydb_v1/representations.rb

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
118118
include Google::Apis::Core::JsonObjectSupport
119119
end
120120

121+
class DenyMaintenancePeriod
122+
class Representation < Google::Apis::Core::JsonRepresentation; end
123+
124+
include Google::Apis::Core::JsonObjectSupport
125+
end
126+
121127
class Empty
122128
class Representation < Google::Apis::Core::JsonRepresentation; end
123129

@@ -172,6 +178,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
172178
include Google::Apis::Core::JsonObjectSupport
173179
end
174180

181+
class GoogleTypeDate
182+
class Representation < Google::Apis::Core::JsonRepresentation; end
183+
184+
include Google::Apis::Core::JsonObjectSupport
185+
end
186+
175187
class GoogleTypeTimeOfDay
176188
class Representation < Google::Apis::Core::JsonRepresentation; end
177189

@@ -868,6 +880,18 @@ class Representation < Google::Apis::Core::JsonRepresentation
868880
end
869881
end
870882

883+
class DenyMaintenancePeriod
884+
# @private
885+
class Representation < Google::Apis::Core::JsonRepresentation
886+
property :end_date, as: 'endDate', class: Google::Apis::AlloydbV1::GoogleTypeDate, decorator: Google::Apis::AlloydbV1::GoogleTypeDate::Representation
887+
888+
property :start_date, as: 'startDate', class: Google::Apis::AlloydbV1::GoogleTypeDate, decorator: Google::Apis::AlloydbV1::GoogleTypeDate::Representation
889+
890+
property :time, as: 'time', class: Google::Apis::AlloydbV1::GoogleTypeTimeOfDay, decorator: Google::Apis::AlloydbV1::GoogleTypeTimeOfDay::Representation
891+
892+
end
893+
end
894+
871895
class Empty
872896
# @private
873897
class Representation < Google::Apis::Core::JsonRepresentation
@@ -945,6 +969,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
945969
end
946970
end
947971

972+
class GoogleTypeDate
973+
# @private
974+
class Representation < Google::Apis::Core::JsonRepresentation
975+
property :day, as: 'day'
976+
property :month, as: 'month'
977+
property :year, as: 'year'
978+
end
979+
end
980+
948981
class GoogleTypeTimeOfDay
949982
# @private
950983
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1034,6 +1067,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
10341067

10351068
property :enable_outbound_public_ip, as: 'enableOutboundPublicIp'
10361069
property :enable_public_ip, as: 'enablePublicIp'
1070+
property :network, as: 'network'
10371071
end
10381072
end
10391073

@@ -1116,6 +1150,7 @@ class MachineConfig
11161150
# @private
11171151
class Representation < Google::Apis::Core::JsonRepresentation
11181152
property :cpu_count, as: 'cpuCount'
1153+
property :machine_type, as: 'machineType'
11191154
end
11201155
end
11211156

@@ -1129,6 +1164,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
11291164
class MaintenanceUpdatePolicy
11301165
# @private
11311166
class Representation < Google::Apis::Core::JsonRepresentation
1167+
collection :deny_maintenance_periods, as: 'denyMaintenancePeriods', class: Google::Apis::AlloydbV1::DenyMaintenancePeriod, decorator: Google::Apis::AlloydbV1::DenyMaintenancePeriod::Representation
1168+
11321169
collection :maintenance_windows, as: 'maintenanceWindows', class: Google::Apis::AlloydbV1::MaintenanceWindow, decorator: Google::Apis::AlloydbV1::MaintenanceWindow::Representation
11331170

11341171
end

0 commit comments

Comments
 (0)