Skip to content

Commit 18529d1

Browse files
feat: Automated regeneration of alloydb v1alpha client (googleapis#22002)
Auto-created at 2025-03-09 10:07:10 +0000 using the toys pull request generator.
1 parent d06f3cb commit 18529d1

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
@@ -23282,6 +23282,8 @@
2328223282
"/alloydb:v1alpha/FailoverInstanceRequest": failover_instance_request
2328323283
"/alloydb:v1alpha/FailoverInstanceRequest/requestId": request_id
2328423284
"/alloydb:v1alpha/FailoverInstanceRequest/validateOnly": validate_only
23285+
"/alloydb:v1alpha/GCAInstanceConfig": gca_instance_config
23286+
"/alloydb:v1alpha/GCAInstanceConfig/gcaEntitlement": gca_entitlement
2328523287
"/alloydb:v1alpha/GcsDestination": gcs_destination
2328623288
"/alloydb:v1alpha/GcsDestination/uri": uri
2328723289
"/alloydb:v1alpha/GeminiClusterConfig": gemini_cluster_config
@@ -23341,6 +23343,7 @@
2334123343
"/alloydb:v1alpha/Instance/deleteTime": delete_time
2334223344
"/alloydb:v1alpha/Instance/displayName": display_name
2334323345
"/alloydb:v1alpha/Instance/etag": etag
23346+
"/alloydb:v1alpha/Instance/gcaConfig": gca_config
2334423347
"/alloydb:v1alpha/Instance/gceZone": gce_zone
2334523348
"/alloydb:v1alpha/Instance/geminiConfig": gemini_config
2334623349
"/alloydb:v1alpha/Instance/instanceType": instance_type

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.23.0 (2025-03-09)
4+
5+
* Regenerated from discovery document revision 20250227
6+
37
### v0.22.0 (2025-02-26)
48

59
* Regenerated from discovery document revision 20250219

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

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,6 +1142,26 @@ def update!(**args)
11421142
end
11431143
end
11441144

1145+
# Instance level configuration parameters related to the Gemini Cloud Assist
1146+
# product.
1147+
class GcaInstanceConfig
1148+
include Google::Apis::Core::Hashable
1149+
1150+
# Output only. Represents the GCA entitlement state of the instance.
1151+
# Corresponds to the JSON property `gcaEntitlement`
1152+
# @return [String]
1153+
attr_accessor :gca_entitlement
1154+
1155+
def initialize(**args)
1156+
update!(**args)
1157+
end
1158+
1159+
# Update properties of this object
1160+
def update!(**args)
1161+
@gca_entitlement = args[:gca_entitlement] if args.key?(:gca_entitlement)
1162+
end
1163+
end
1164+
11451165
# Destination for Export. Export will be done to cloud storage.
11461166
class GcsDestination
11471167
include Google::Apis::Core::Hashable
@@ -1479,6 +1499,12 @@ class Instance
14791499
# @return [String]
14801500
attr_accessor :etag
14811501

1502+
# Instance level configuration parameters related to the Gemini Cloud Assist
1503+
# product.
1504+
# Corresponds to the JSON property `gcaConfig`
1505+
# @return [Google::Apis::AlloydbV1alpha::GcaInstanceConfig]
1506+
attr_accessor :gca_config
1507+
14821508
# The Compute Engine zone that the instance should serve from, per https://cloud.
14831509
# google.com/compute/docs/regions-zones This can ONLY be specified for ZONAL
14841510
# instances. If present for a REGIONAL instance, an error will be thrown. If
@@ -1634,6 +1660,7 @@ def update!(**args)
16341660
@delete_time = args[:delete_time] if args.key?(:delete_time)
16351661
@display_name = args[:display_name] if args.key?(:display_name)
16361662
@etag = args[:etag] if args.key?(:etag)
1663+
@gca_config = args[:gca_config] if args.key?(:gca_config)
16371664
@gce_zone = args[:gce_zone] if args.key?(:gce_zone)
16381665
@gemini_config = args[:gemini_config] if args.key?(:gemini_config)
16391666
@instance_type = args[:instance_type] if args.key?(:instance_type)
@@ -2164,16 +2191,10 @@ class ObservabilityInstanceConfig
21642191
attr_accessor :track_active_queries
21652192
alias_method :track_active_queries?, :track_active_queries
21662193

2167-
# Track client address for an instance. If not set, default value is "off".
2168-
# Corresponds to the JSON property `trackClientAddress`
2169-
# @return [Boolean]
2170-
attr_accessor :track_client_address
2171-
alias_method :track_client_address?, :track_client_address
2172-
21732194
# Output only. Track wait event types during query execution for an instance.
21742195
# This flag is turned "on" by default but tracking is enabled only after
21752196
# observability enabled flag is also turned on. This is read-only flag and only
2176-
# modifiable by producer API.
2197+
# modifiable by internal API.
21772198
# Corresponds to the JSON property `trackWaitEventTypes`
21782199
# @return [Boolean]
21792200
attr_accessor :track_wait_event_types
@@ -2199,7 +2220,6 @@ def update!(**args)
21992220
@query_plans_per_minute = args[:query_plans_per_minute] if args.key?(:query_plans_per_minute)
22002221
@record_application_tags = args[:record_application_tags] if args.key?(:record_application_tags)
22012222
@track_active_queries = args[:track_active_queries] if args.key?(:track_active_queries)
2202-
@track_client_address = args[:track_client_address] if args.key?(:track_client_address)
22032223
@track_wait_event_types = args[:track_wait_event_types] if args.key?(:track_wait_event_types)
22042224
@track_wait_events = args[:track_wait_events] if args.key?(:track_wait_events)
22052225
end
@@ -3793,14 +3813,14 @@ def update!(**args)
37933813
class StorageDatabasecenterPartnerapiV1mainMachineConfiguration
37943814
include Google::Apis::Core::Hashable
37953815

3796-
# The number of CPUs. Deprecated. Use vcpu_count instead. TODO(b/342344482, b/
3797-
# 342346271) add proto validations again after bug fix.
3816+
# The number of CPUs. Deprecated. Use vcpu_count instead. TODO(b/342344482) add
3817+
# proto validations again after bug fix.
37983818
# Corresponds to the JSON property `cpuCount`
37993819
# @return [Fixnum]
38003820
attr_accessor :cpu_count
38013821

3802-
# Memory size in bytes. TODO(b/342344482, b/342346271) add proto validations
3803-
# again after bug fix.
3822+
# Memory size in bytes. TODO(b/342344482) add proto validations again after bug
3823+
# fix.
38043824
# Corresponds to the JSON property `memorySizeInBytes`
38053825
# @return [Fixnum]
38063826
attr_accessor :memory_size_in_bytes
@@ -3810,8 +3830,8 @@ class StorageDatabasecenterPartnerapiV1mainMachineConfiguration
38103830
# @return [Fixnum]
38113831
attr_accessor :shard_count
38123832

3813-
# Optional. The number of vCPUs. TODO(b/342344482, b/342346271) add proto
3814-
# validations again after bug fix.
3833+
# Optional. The number of vCPUs. TODO(b/342344482) add proto validations again
3834+
# after bug fix.
38153835
# Corresponds to the JSON property `vcpuCount`
38163836
# @return [Float]
38173837
attr_accessor :vcpu_count

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.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_v1alpha/lib/google/apis/alloydb_v1alpha/representations.rb

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
148148
include Google::Apis::Core::JsonObjectSupport
149149
end
150150

151+
class GcaInstanceConfig
152+
class Representation < Google::Apis::Core::JsonRepresentation; end
153+
154+
include Google::Apis::Core::JsonObjectSupport
155+
end
156+
151157
class GcsDestination
152158
class Representation < Google::Apis::Core::JsonRepresentation; end
153159

@@ -922,6 +928,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
922928
end
923929
end
924930

931+
class GcaInstanceConfig
932+
# @private
933+
class Representation < Google::Apis::Core::JsonRepresentation
934+
property :gca_entitlement, as: 'gcaEntitlement'
935+
end
936+
end
937+
925938
class GcsDestination
926939
# @private
927940
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1007,6 +1020,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
10071020
property :delete_time, as: 'deleteTime'
10081021
property :display_name, as: 'displayName'
10091022
property :etag, as: 'etag'
1023+
property :gca_config, as: 'gcaConfig', class: Google::Apis::AlloydbV1alpha::GcaInstanceConfig, decorator: Google::Apis::AlloydbV1alpha::GcaInstanceConfig::Representation
1024+
10101025
property :gce_zone, as: 'gceZone'
10111026
property :gemini_config, as: 'geminiConfig', class: Google::Apis::AlloydbV1alpha::GeminiInstanceConfig, decorator: Google::Apis::AlloydbV1alpha::GeminiInstanceConfig::Representation
10121027

@@ -1195,7 +1210,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
11951210
property :query_plans_per_minute, as: 'queryPlansPerMinute'
11961211
property :record_application_tags, as: 'recordApplicationTags'
11971212
property :track_active_queries, as: 'trackActiveQueries'
1198-
property :track_client_address, as: 'trackClientAddress'
11991213
property :track_wait_event_types, as: 'trackWaitEventTypes'
12001214
property :track_wait_events, as: 'trackWaitEvents'
12011215
end

0 commit comments

Comments
 (0)