Skip to content

Commit dbad86f

Browse files
feat: Automated regeneration of alloydb v1beta client (googleapis#22031)
Auto-created at 2025-03-09 10:33:53 +0000 using the toys pull request generator.
1 parent cc6aadb commit dbad86f

File tree

5 files changed

+58
-17
lines changed

5 files changed

+58
-17
lines changed

api_names_out.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24116,6 +24116,8 @@
2411624116
"/alloydb:v1beta/FailoverInstanceRequest": failover_instance_request
2411724117
"/alloydb:v1beta/FailoverInstanceRequest/requestId": request_id
2411824118
"/alloydb:v1beta/FailoverInstanceRequest/validateOnly": validate_only
24119+
"/alloydb:v1beta/GCAInstanceConfig": gca_instance_config
24120+
"/alloydb:v1beta/GCAInstanceConfig/gcaEntitlement": gca_entitlement
2411924121
"/alloydb:v1beta/GcsDestination": gcs_destination
2412024122
"/alloydb:v1beta/GcsDestination/uri": uri
2412124123
"/alloydb:v1beta/GeminiClusterConfig": gemini_cluster_config
@@ -24175,6 +24177,7 @@
2417524177
"/alloydb:v1beta/Instance/deleteTime": delete_time
2417624178
"/alloydb:v1beta/Instance/displayName": display_name
2417724179
"/alloydb:v1beta/Instance/etag": etag
24180+
"/alloydb:v1beta/Instance/gcaConfig": gca_config
2417824181
"/alloydb:v1beta/Instance/gceZone": gce_zone
2417924182
"/alloydb:v1beta/Instance/geminiConfig": gemini_config
2418024183
"/alloydb:v1beta/Instance/instanceType": instance_type

generated/google-apis-alloydb_v1beta/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_v1beta
22

3+
### v0.23.0 (2025-03-09)
4+
5+
* Regenerated from discovery document revision 20250227
6+
37
### v0.22.0 (2025-03-02)
48

59
* Regenerated from discovery document revision 20250219

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

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,6 +1115,26 @@ def update!(**args)
11151115
end
11161116
end
11171117

1118+
# Instance level configuration parameters related to the Gemini Cloud Assist
1119+
# product.
1120+
class GcaInstanceConfig
1121+
include Google::Apis::Core::Hashable
1122+
1123+
# Output only. Represents the GCA entitlement state of the instance.
1124+
# Corresponds to the JSON property `gcaEntitlement`
1125+
# @return [String]
1126+
attr_accessor :gca_entitlement
1127+
1128+
def initialize(**args)
1129+
update!(**args)
1130+
end
1131+
1132+
# Update properties of this object
1133+
def update!(**args)
1134+
@gca_entitlement = args[:gca_entitlement] if args.key?(:gca_entitlement)
1135+
end
1136+
end
1137+
11181138
# Destination for Export. Export will be done to cloud storage.
11191139
class GcsDestination
11201140
include Google::Apis::Core::Hashable
@@ -1452,6 +1472,12 @@ class Instance
14521472
# @return [String]
14531473
attr_accessor :etag
14541474

1475+
# Instance level configuration parameters related to the Gemini Cloud Assist
1476+
# product.
1477+
# Corresponds to the JSON property `gcaConfig`
1478+
# @return [Google::Apis::AlloydbV1beta::GcaInstanceConfig]
1479+
attr_accessor :gca_config
1480+
14551481
# The Compute Engine zone that the instance should serve from, per https://cloud.
14561482
# google.com/compute/docs/regions-zones This can ONLY be specified for ZONAL
14571483
# instances. If present for a REGIONAL instance, an error will be thrown. If
@@ -1601,6 +1627,7 @@ def update!(**args)
16011627
@delete_time = args[:delete_time] if args.key?(:delete_time)
16021628
@display_name = args[:display_name] if args.key?(:display_name)
16031629
@etag = args[:etag] if args.key?(:etag)
1630+
@gca_config = args[:gca_config] if args.key?(:gca_config)
16041631
@gce_zone = args[:gce_zone] if args.key?(:gce_zone)
16051632
@gemini_config = args[:gemini_config] if args.key?(:gemini_config)
16061633
@instance_type = args[:instance_type] if args.key?(:instance_type)
@@ -2130,16 +2157,10 @@ class ObservabilityInstanceConfig
21302157
attr_accessor :track_active_queries
21312158
alias_method :track_active_queries?, :track_active_queries
21322159

2133-
# Track client address for an instance. If not set, default value is "off".
2134-
# Corresponds to the JSON property `trackClientAddress`
2135-
# @return [Boolean]
2136-
attr_accessor :track_client_address
2137-
alias_method :track_client_address?, :track_client_address
2138-
21392160
# Output only. Track wait event types during query execution for an instance.
21402161
# This flag is turned "on" by default but tracking is enabled only after
21412162
# observability enabled flag is also turned on. This is read-only flag and only
2142-
# modifiable by producer API.
2163+
# modifiable by internal API.
21432164
# Corresponds to the JSON property `trackWaitEventTypes`
21442165
# @return [Boolean]
21452166
attr_accessor :track_wait_event_types
@@ -2165,7 +2186,6 @@ def update!(**args)
21652186
@query_plans_per_minute = args[:query_plans_per_minute] if args.key?(:query_plans_per_minute)
21662187
@record_application_tags = args[:record_application_tags] if args.key?(:record_application_tags)
21672188
@track_active_queries = args[:track_active_queries] if args.key?(:track_active_queries)
2168-
@track_client_address = args[:track_client_address] if args.key?(:track_client_address)
21692189
@track_wait_event_types = args[:track_wait_event_types] if args.key?(:track_wait_event_types)
21702190
@track_wait_events = args[:track_wait_events] if args.key?(:track_wait_events)
21712191
end
@@ -3759,14 +3779,14 @@ def update!(**args)
37593779
class StorageDatabasecenterPartnerapiV1mainMachineConfiguration
37603780
include Google::Apis::Core::Hashable
37613781

3762-
# The number of CPUs. Deprecated. Use vcpu_count instead. TODO(b/342344482, b/
3763-
# 342346271) add proto validations again after bug fix.
3782+
# The number of CPUs. Deprecated. Use vcpu_count instead. TODO(b/342344482) add
3783+
# proto validations again after bug fix.
37643784
# Corresponds to the JSON property `cpuCount`
37653785
# @return [Fixnum]
37663786
attr_accessor :cpu_count
37673787

3768-
# Memory size in bytes. TODO(b/342344482, b/342346271) add proto validations
3769-
# again after bug fix.
3788+
# Memory size in bytes. TODO(b/342344482) add proto validations again after bug
3789+
# fix.
37703790
# Corresponds to the JSON property `memorySizeInBytes`
37713791
# @return [Fixnum]
37723792
attr_accessor :memory_size_in_bytes
@@ -3776,8 +3796,8 @@ class StorageDatabasecenterPartnerapiV1mainMachineConfiguration
37763796
# @return [Fixnum]
37773797
attr_accessor :shard_count
37783798

3779-
# Optional. The number of vCPUs. TODO(b/342344482, b/342346271) add proto
3780-
# validations again after bug fix.
3799+
# Optional. The number of vCPUs. TODO(b/342344482) add proto validations again
3800+
# after bug fix.
37813801
# Corresponds to the JSON property `vcpuCount`
37823802
# @return [Float]
37833803
attr_accessor :vcpu_count

generated/google-apis-alloydb_v1beta/lib/google/apis/alloydb_v1beta/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 AlloydbV1beta
1818
# Version of the google-apis-alloydb_v1beta gem
19-
GEM_VERSION = "0.22.0"
19+
GEM_VERSION = "0.23.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 = "20250219"
25+
REVISION = "20250227"
2626
end
2727
end
2828
end

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

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
142142
include Google::Apis::Core::JsonObjectSupport
143143
end
144144

145+
class GcaInstanceConfig
146+
class Representation < Google::Apis::Core::JsonRepresentation; end
147+
148+
include Google::Apis::Core::JsonObjectSupport
149+
end
150+
145151
class GcsDestination
146152
class Representation < Google::Apis::Core::JsonRepresentation; end
147153

@@ -908,6 +914,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
908914
end
909915
end
910916

917+
class GcaInstanceConfig
918+
# @private
919+
class Representation < Google::Apis::Core::JsonRepresentation
920+
property :gca_entitlement, as: 'gcaEntitlement'
921+
end
922+
end
923+
911924
class GcsDestination
912925
# @private
913926
class Representation < Google::Apis::Core::JsonRepresentation
@@ -993,6 +1006,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
9931006
property :delete_time, as: 'deleteTime'
9941007
property :display_name, as: 'displayName'
9951008
property :etag, as: 'etag'
1009+
property :gca_config, as: 'gcaConfig', class: Google::Apis::AlloydbV1beta::GcaInstanceConfig, decorator: Google::Apis::AlloydbV1beta::GcaInstanceConfig::Representation
1010+
9961011
property :gce_zone, as: 'gceZone'
9971012
property :gemini_config, as: 'geminiConfig', class: Google::Apis::AlloydbV1beta::GeminiInstanceConfig, decorator: Google::Apis::AlloydbV1beta::GeminiInstanceConfig::Representation
9981013

@@ -1180,7 +1195,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
11801195
property :query_plans_per_minute, as: 'queryPlansPerMinute'
11811196
property :record_application_tags, as: 'recordApplicationTags'
11821197
property :track_active_queries, as: 'trackActiveQueries'
1183-
property :track_client_address, as: 'trackClientAddress'
11841198
property :track_wait_event_types, as: 'trackWaitEventTypes'
11851199
property :track_wait_events, as: 'trackWaitEvents'
11861200
end

0 commit comments

Comments
 (0)