Skip to content

Commit 040bd75

Browse files
feat: Automated regeneration of alloydb v1 client (#24391)
Auto-created at 2025-09-28 09:22:42 +0000 using the toys pull request generator.
1 parent 846220f commit 040bd75

File tree

5 files changed

+68
-3
lines changed

5 files changed

+68
-3
lines changed

api_names_out.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24785,6 +24785,11 @@
2478524785
"/alloydb:v1/ConnectionInfo/ipAddress": ip_address
2478624786
"/alloydb:v1/ConnectionInfo/name": name
2478724787
"/alloydb:v1/ConnectionInfo/publicIpAddress": public_ip_address
24788+
"/alloydb:v1/ConnectionPoolConfig": connection_pool_config
24789+
"/alloydb:v1/ConnectionPoolConfig/enabled": enabled
24790+
"/alloydb:v1/ConnectionPoolConfig/flags": flags
24791+
"/alloydb:v1/ConnectionPoolConfig/flags/flag": flag
24792+
"/alloydb:v1/ConnectionPoolConfig/poolerCount": pooler_count
2478824793
"/alloydb:v1/ContinuousBackupConfig": continuous_backup_config
2478924794
"/alloydb:v1/ContinuousBackupConfig/enabled": enabled
2479024795
"/alloydb:v1/ContinuousBackupConfig/encryptionConfig": encryption_config
@@ -24881,6 +24886,7 @@
2488124886
"/alloydb:v1/Instance/annotations/annotation": annotation
2488224887
"/alloydb:v1/Instance/availabilityType": availability_type
2488324888
"/alloydb:v1/Instance/clientConnectionConfig": client_connection_config
24889+
"/alloydb:v1/Instance/connectionPoolConfig": connection_pool_config
2488424890
"/alloydb:v1/Instance/createTime": create_time
2488524891
"/alloydb:v1/Instance/databaseFlags": database_flags
2488624892
"/alloydb:v1/Instance/databaseFlags/database_flag": database_flag

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.46.0 (2025-09-28)
4+
5+
* Regenerated from discovery document revision 20250910
6+
37
### v0.45.0 (2025-09-14)
48

59
* Regenerated from discovery document revision 20250904

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

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,38 @@ def update!(**args)
780780
end
781781
end
782782

783+
# Configuration for Managed Connection Pool (MCP).
784+
class ConnectionPoolConfig
785+
include Google::Apis::Core::Hashable
786+
787+
# Optional. Whether to enable Managed Connection Pool (MCP).
788+
# Corresponds to the JSON property `enabled`
789+
# @return [Boolean]
790+
attr_accessor :enabled
791+
alias_method :enabled?, :enabled
792+
793+
# Optional. Connection Pool flags, as a list of "key": "value" pairs.
794+
# Corresponds to the JSON property `flags`
795+
# @return [Hash<String,String>]
796+
attr_accessor :flags
797+
798+
# Output only. The number of running poolers per instance.
799+
# Corresponds to the JSON property `poolerCount`
800+
# @return [Fixnum]
801+
attr_accessor :pooler_count
802+
803+
def initialize(**args)
804+
update!(**args)
805+
end
806+
807+
# Update properties of this object
808+
def update!(**args)
809+
@enabled = args[:enabled] if args.key?(:enabled)
810+
@flags = args[:flags] if args.key?(:flags)
811+
@pooler_count = args[:pooler_count] if args.key?(:pooler_count)
812+
end
813+
end
814+
783815
# ContinuousBackupConfig describes the continuous backups recovery
784816
# configurations of a cluster.
785817
class ContinuousBackupConfig
@@ -1515,6 +1547,11 @@ class Instance
15151547
# @return [Google::Apis::AlloydbV1::ClientConnectionConfig]
15161548
attr_accessor :client_connection_config
15171549

1550+
# Configuration for Managed Connection Pool (MCP).
1551+
# Corresponds to the JSON property `connectionPoolConfig`
1552+
# @return [Google::Apis::AlloydbV1::ConnectionPoolConfig]
1553+
attr_accessor :connection_pool_config
1554+
15181555
# Output only. Create time stamp
15191556
# Corresponds to the JSON property `createTime`
15201557
# @return [String]
@@ -1684,6 +1721,7 @@ def update!(**args)
16841721
@annotations = args[:annotations] if args.key?(:annotations)
16851722
@availability_type = args[:availability_type] if args.key?(:availability_type)
16861723
@client_connection_config = args[:client_connection_config] if args.key?(:client_connection_config)
1724+
@connection_pool_config = args[:connection_pool_config] if args.key?(:connection_pool_config)
16871725
@create_time = args[:create_time] if args.key?(:create_time)
16881726
@database_flags = args[:database_flags] if args.key?(:database_flags)
16891727
@delete_time = args[:delete_time] if args.key?(:delete_time)
@@ -3492,7 +3530,7 @@ def update!(**args)
34923530
end
34933531

34943532
# DatabaseResourceFeed is the top level proto to be used to ingest different
3495-
# database resource level events into Condor platform. Next ID: 12
3533+
# database resource level events into Condor platform. Next ID: 13
34963534
class StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed
34973535
include Google::Apis::Core::Hashable
34983536

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.45.0"
19+
GEM_VERSION = "0.46.0"
2020

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

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

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
8888
include Google::Apis::Core::JsonObjectSupport
8989
end
9090

91+
class ConnectionPoolConfig
92+
class Representation < Google::Apis::Core::JsonRepresentation; end
93+
94+
include Google::Apis::Core::JsonObjectSupport
95+
end
96+
9197
class ContinuousBackupConfig
9298
class Representation < Google::Apis::Core::JsonRepresentation; end
9399

@@ -861,6 +867,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
861867
end
862868
end
863869

870+
class ConnectionPoolConfig
871+
# @private
872+
class Representation < Google::Apis::Core::JsonRepresentation
873+
property :enabled, as: 'enabled'
874+
hash :flags, as: 'flags'
875+
property :pooler_count, as: 'poolerCount'
876+
end
877+
end
878+
864879
class ContinuousBackupConfig
865880
# @private
866881
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1056,6 +1071,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
10561071
property :availability_type, as: 'availabilityType'
10571072
property :client_connection_config, as: 'clientConnectionConfig', class: Google::Apis::AlloydbV1::ClientConnectionConfig, decorator: Google::Apis::AlloydbV1::ClientConnectionConfig::Representation
10581073

1074+
property :connection_pool_config, as: 'connectionPoolConfig', class: Google::Apis::AlloydbV1::ConnectionPoolConfig, decorator: Google::Apis::AlloydbV1::ConnectionPoolConfig::Representation
1075+
10591076
property :create_time, as: 'createTime'
10601077
hash :database_flags, as: 'databaseFlags'
10611078
property :delete_time, as: 'deleteTime'

0 commit comments

Comments
 (0)