Skip to content

Commit 622255e

Browse files
feat: Automated regeneration of alloydb v1alpha client (googleapis#22097)
Auto-created at 2025-03-16 10:06:27 +0000 using the toys pull request generator.
1 parent 5f6641a commit 622255e

File tree

5 files changed

+166
-2
lines changed

5 files changed

+166
-2
lines changed

api_names_out.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23416,6 +23416,7 @@
2341623416
"/alloydb:v1alpha/InstanceNetworkConfig/authorizedExternalNetworks/authorized_external_network": authorized_external_network
2341723417
"/alloydb:v1alpha/InstanceNetworkConfig/enableOutboundPublicIp": enable_outbound_public_ip
2341823418
"/alloydb:v1alpha/InstanceNetworkConfig/enablePublicIp": enable_public_ip
23419+
"/alloydb:v1alpha/InstanceNetworkConfig/network": network
2341923420
"/alloydb:v1alpha/InstanceUpgradeDetails": instance_upgrade_details
2342023421
"/alloydb:v1alpha/InstanceUpgradeDetails/instanceType": instance_type
2342123422
"/alloydb:v1alpha/InstanceUpgradeDetails/name": name
@@ -23457,6 +23458,7 @@
2345723458
"/alloydb:v1alpha/ListUsersResponse/users/user": user
2345823459
"/alloydb:v1alpha/MachineConfig": machine_config
2345923460
"/alloydb:v1alpha/MachineConfig/cpuCount": cpu_count
23461+
"/alloydb:v1alpha/MachineConfig/machineType": machine_type
2346023462
"/alloydb:v1alpha/MaintenanceSchedule": maintenance_schedule
2346123463
"/alloydb:v1alpha/MaintenanceSchedule/startTime": start_time
2346223464
"/alloydb:v1alpha/MaintenanceUpdatePolicy": maintenance_update_policy
@@ -23480,6 +23482,7 @@
2348023482
"/alloydb:v1alpha/Node/state": state
2348123483
"/alloydb:v1alpha/Node/zoneId": zone_id
2348223484
"/alloydb:v1alpha/ObservabilityInstanceConfig": observability_instance_config
23485+
"/alloydb:v1alpha/ObservabilityInstanceConfig/assistiveExperiencesEnabled": assistive_experiences_enabled
2348323486
"/alloydb:v1alpha/ObservabilityInstanceConfig/enabled": enabled
2348423487
"/alloydb:v1alpha/ObservabilityInstanceConfig/maxQueryStringLength": max_query_string_length
2348523488
"/alloydb:v1alpha/ObservabilityInstanceConfig/preserveComments": preserve_comments

generated/google-apis-alloydb_v1alpha/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_v1alpha
22

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

59
* Regenerated from discovery document revision 20250227

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

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,55 @@ def update!(**args)
10021002
end
10031003
end
10041004

1005+
# DenyMaintenancePeriod definition. Excepting emergencies, maintenance will not
1006+
# be scheduled to start within this deny period. The start_date must be less
1007+
# than the end_date.
1008+
class DenyMaintenancePeriod
1009+
include Google::Apis::Core::Hashable
1010+
1011+
# Represents a whole or partial calendar date, such as a birthday. The time of
1012+
# day and time zone are either specified elsewhere or are insignificant. The
1013+
# date is relative to the Gregorian Calendar. This can represent one of the
1014+
# following: * A full date, with non-zero year, month, and day values. * A month
1015+
# and day, with a zero year (for example, an anniversary). * A year on its own,
1016+
# with a zero month and a zero day. * A year and month, with a zero day (for
1017+
# example, a credit card expiration date). Related types: * google.type.
1018+
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
1019+
# Corresponds to the JSON property `endDate`
1020+
# @return [Google::Apis::AlloydbV1alpha::GoogleTypeDate]
1021+
attr_accessor :end_date
1022+
1023+
# Represents a whole or partial calendar date, such as a birthday. The time of
1024+
# day and time zone are either specified elsewhere or are insignificant. The
1025+
# date is relative to the Gregorian Calendar. This can represent one of the
1026+
# following: * A full date, with non-zero year, month, and day values. * A month
1027+
# and day, with a zero year (for example, an anniversary). * A year on its own,
1028+
# with a zero month and a zero day. * A year and month, with a zero day (for
1029+
# example, a credit card expiration date). Related types: * google.type.
1030+
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
1031+
# Corresponds to the JSON property `startDate`
1032+
# @return [Google::Apis::AlloydbV1alpha::GoogleTypeDate]
1033+
attr_accessor :start_date
1034+
1035+
# Represents a time of day. The date and time zone are either not significant or
1036+
# are specified elsewhere. An API may choose to allow leap seconds. Related
1037+
# types are google.type.Date and `google.protobuf.Timestamp`.
1038+
# Corresponds to the JSON property `time`
1039+
# @return [Google::Apis::AlloydbV1alpha::GoogleTypeTimeOfDay]
1040+
attr_accessor :time
1041+
1042+
def initialize(**args)
1043+
update!(**args)
1044+
end
1045+
1046+
# Update properties of this object
1047+
def update!(**args)
1048+
@end_date = args[:end_date] if args.key?(:end_date)
1049+
@start_date = args[:start_date] if args.key?(:start_date)
1050+
@time = args[:time] if args.key?(:time)
1051+
end
1052+
end
1053+
10051054
# A generic empty message that you can re-use to avoid defining duplicated empty
10061055
# messages in your APIs. A typical example is to use it as the request or the
10071056
# response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -1302,6 +1351,47 @@ def update!(**args)
13021351
end
13031352
end
13041353

1354+
# Represents a whole or partial calendar date, such as a birthday. The time of
1355+
# day and time zone are either specified elsewhere or are insignificant. The
1356+
# date is relative to the Gregorian Calendar. This can represent one of the
1357+
# following: * A full date, with non-zero year, month, and day values. * A month
1358+
# and day, with a zero year (for example, an anniversary). * A year on its own,
1359+
# with a zero month and a zero day. * A year and month, with a zero day (for
1360+
# example, a credit card expiration date). Related types: * google.type.
1361+
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
1362+
class GoogleTypeDate
1363+
include Google::Apis::Core::Hashable
1364+
1365+
# Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
1366+
# specify a year by itself or a year and month where the day isn't significant.
1367+
# Corresponds to the JSON property `day`
1368+
# @return [Fixnum]
1369+
attr_accessor :day
1370+
1371+
# Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
1372+
# and day.
1373+
# Corresponds to the JSON property `month`
1374+
# @return [Fixnum]
1375+
attr_accessor :month
1376+
1377+
# Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
1378+
# year.
1379+
# Corresponds to the JSON property `year`
1380+
# @return [Fixnum]
1381+
attr_accessor :year
1382+
1383+
def initialize(**args)
1384+
update!(**args)
1385+
end
1386+
1387+
# Update properties of this object
1388+
def update!(**args)
1389+
@day = args[:day] if args.key?(:day)
1390+
@month = args[:month] if args.key?(:month)
1391+
@year = args[:year] if args.key?(:year)
1392+
end
1393+
end
1394+
13051395
# Represents a time of day. The date and time zone are either not significant or
13061396
# are specified elsewhere. An API may choose to allow leap seconds. Related
13071397
# types are google.type.Date and `google.protobuf.Timestamp`.
@@ -1709,6 +1799,14 @@ class InstanceNetworkConfig
17091799
attr_accessor :enable_public_ip
17101800
alias_method :enable_public_ip?, :enable_public_ip
17111801

1802+
# Output only. The resource link for the VPC network in which instance resources
1803+
# are created and from which they are accessible via Private IP. This will be
1804+
# the same value as the parent cluster's network. It is specified in the form: //
1805+
# `projects/`project_number`/global/networks/`network_id``.
1806+
# Corresponds to the JSON property `network`
1807+
# @return [String]
1808+
attr_accessor :network
1809+
17121810
def initialize(**args)
17131811
update!(**args)
17141812
end
@@ -1718,6 +1816,7 @@ def update!(**args)
17181816
@authorized_external_networks = args[:authorized_external_networks] if args.key?(:authorized_external_networks)
17191817
@enable_outbound_public_ip = args[:enable_outbound_public_ip] if args.key?(:enable_outbound_public_ip)
17201818
@enable_public_ip = args[:enable_public_ip] if args.key?(:enable_public_ip)
1819+
@network = args[:network] if args.key?(:network)
17211820
end
17221821
end
17231822

@@ -1960,13 +2059,20 @@ class MachineConfig
19602059
# @return [Fixnum]
19612060
attr_accessor :cpu_count
19622061

2062+
# Machine type of the VM instance. E.g. "n2-highmem-4", "n2-highmem-8", "c4a-
2063+
# highmem-4-lssd". cpu_count must match the number of vCPUs in the machine type.
2064+
# Corresponds to the JSON property `machineType`
2065+
# @return [String]
2066+
attr_accessor :machine_type
2067+
19632068
def initialize(**args)
19642069
update!(**args)
19652070
end
19662071

19672072
# Update properties of this object
19682073
def update!(**args)
19692074
@cpu_count = args[:cpu_count] if args.key?(:cpu_count)
2075+
@machine_type = args[:machine_type] if args.key?(:machine_type)
19702076
end
19712077
end
19722078

@@ -1997,6 +2103,11 @@ def update!(**args)
19972103
class MaintenanceUpdatePolicy
19982104
include Google::Apis::Core::Hashable
19992105

2106+
# Periods to deny maintenance. Currently limited to 1.
2107+
# Corresponds to the JSON property `denyMaintenancePeriods`
2108+
# @return [Array<Google::Apis::AlloydbV1alpha::DenyMaintenancePeriod>]
2109+
attr_accessor :deny_maintenance_periods
2110+
20002111
# Preferred windows to perform maintenance. Currently limited to 1.
20012112
# Corresponds to the JSON property `maintenanceWindows`
20022113
# @return [Array<Google::Apis::AlloydbV1alpha::MaintenanceWindow>]
@@ -2008,6 +2119,7 @@ def initialize(**args)
20082119

20092120
# Update properties of this object
20102121
def update!(**args)
2122+
@deny_maintenance_periods = args[:deny_maintenance_periods] if args.key?(:deny_maintenance_periods)
20112123
@maintenance_windows = args[:maintenance_windows] if args.key?(:maintenance_windows)
20122124
end
20132125
end
@@ -2152,6 +2264,12 @@ def update!(**args)
21522264
class ObservabilityInstanceConfig
21532265
include Google::Apis::Core::Hashable
21542266

2267+
# Whether assistive experiences are enabled for this AlloyDB instance.
2268+
# Corresponds to the JSON property `assistiveExperiencesEnabled`
2269+
# @return [Boolean]
2270+
attr_accessor :assistive_experiences_enabled
2271+
alias_method :assistive_experiences_enabled?, :assistive_experiences_enabled
2272+
21552273
# Observability feature status for an instance. This flag is turned "off" by
21562274
# default.
21572275
# Corresponds to the JSON property `enabled`
@@ -2214,6 +2332,7 @@ def initialize(**args)
22142332

22152333
# Update properties of this object
22162334
def update!(**args)
2335+
@assistive_experiences_enabled = args[:assistive_experiences_enabled] if args.key?(:assistive_experiences_enabled)
22172336
@enabled = args[:enabled] if args.key?(:enabled)
22182337
@max_query_string_length = args[:max_query_string_length] if args.key?(:max_query_string_length)
22192338
@preserve_comments = args[:preserve_comments] if args.key?(:preserve_comments)

generated/google-apis-alloydb_v1alpha/lib/google/apis/alloydb_v1alpha/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 AlloydbV1alpha
1818
# Version of the google-apis-alloydb_v1alpha gem
19-
GEM_VERSION = "0.23.0"
19+
GEM_VERSION = "0.24.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_v1alpha/lib/google/apis/alloydb_v1alpha/representations.rb

Lines changed: 38 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

@@ -184,6 +190,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
184190
include Google::Apis::Core::JsonObjectSupport
185191
end
186192

193+
class GoogleTypeDate
194+
class Representation < Google::Apis::Core::JsonRepresentation; end
195+
196+
include Google::Apis::Core::JsonObjectSupport
197+
end
198+
187199
class GoogleTypeTimeOfDay
188200
class Representation < Google::Apis::Core::JsonRepresentation; end
189201

@@ -886,6 +898,18 @@ class Representation < Google::Apis::Core::JsonRepresentation
886898
end
887899
end
888900

901+
class DenyMaintenancePeriod
902+
# @private
903+
class Representation < Google::Apis::Core::JsonRepresentation
904+
property :end_date, as: 'endDate', class: Google::Apis::AlloydbV1alpha::GoogleTypeDate, decorator: Google::Apis::AlloydbV1alpha::GoogleTypeDate::Representation
905+
906+
property :start_date, as: 'startDate', class: Google::Apis::AlloydbV1alpha::GoogleTypeDate, decorator: Google::Apis::AlloydbV1alpha::GoogleTypeDate::Representation
907+
908+
property :time, as: 'time', class: Google::Apis::AlloydbV1alpha::GoogleTypeTimeOfDay, decorator: Google::Apis::AlloydbV1alpha::GoogleTypeTimeOfDay::Representation
909+
910+
end
911+
end
912+
889913
class Empty
890914
# @private
891915
class Representation < Google::Apis::Core::JsonRepresentation
@@ -976,6 +1000,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
9761000
end
9771001
end
9781002

1003+
class GoogleTypeDate
1004+
# @private
1005+
class Representation < Google::Apis::Core::JsonRepresentation
1006+
property :day, as: 'day'
1007+
property :month, as: 'month'
1008+
property :year, as: 'year'
1009+
end
1010+
end
1011+
9791012
class GoogleTypeTimeOfDay
9801013
# @private
9811014
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1065,6 +1098,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
10651098

10661099
property :enable_outbound_public_ip, as: 'enableOutboundPublicIp'
10671100
property :enable_public_ip, as: 'enablePublicIp'
1101+
property :network, as: 'network'
10681102
end
10691103
end
10701104

@@ -1147,6 +1181,7 @@ class MachineConfig
11471181
# @private
11481182
class Representation < Google::Apis::Core::JsonRepresentation
11491183
property :cpu_count, as: 'cpuCount'
1184+
property :machine_type, as: 'machineType'
11501185
end
11511186
end
11521187

@@ -1160,6 +1195,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
11601195
class MaintenanceUpdatePolicy
11611196
# @private
11621197
class Representation < Google::Apis::Core::JsonRepresentation
1198+
collection :deny_maintenance_periods, as: 'denyMaintenancePeriods', class: Google::Apis::AlloydbV1alpha::DenyMaintenancePeriod, decorator: Google::Apis::AlloydbV1alpha::DenyMaintenancePeriod::Representation
1199+
11631200
collection :maintenance_windows, as: 'maintenanceWindows', class: Google::Apis::AlloydbV1alpha::MaintenanceWindow, decorator: Google::Apis::AlloydbV1alpha::MaintenanceWindow::Representation
11641201

11651202
end
@@ -1204,6 +1241,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
12041241
class ObservabilityInstanceConfig
12051242
# @private
12061243
class Representation < Google::Apis::Core::JsonRepresentation
1244+
property :assistive_experiences_enabled, as: 'assistiveExperiencesEnabled'
12071245
property :enabled, as: 'enabled'
12081246
property :max_query_string_length, as: 'maxQueryStringLength'
12091247
property :preserve_comments, as: 'preserveComments'

0 commit comments

Comments
 (0)