Skip to content

Commit 5c8e7ce

Browse files
feat: Automated regeneration of alloydb v1 client (googleapis#21989)
Auto-created at 2025-03-09 09:50:16 +0000 using the toys pull request generator.
1 parent 4100af0 commit 5c8e7ce

File tree

5 files changed

+127
-8
lines changed

5 files changed

+127
-8
lines changed

api_names_out.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22570,6 +22570,7 @@
2257022570
"/alloydb:v1/Instance/networkConfig": network_config
2257122571
"/alloydb:v1/Instance/nodes": nodes
2257222572
"/alloydb:v1/Instance/nodes/node": node
22573+
"/alloydb:v1/Instance/observabilityConfig": observability_config
2257322574
"/alloydb:v1/Instance/outboundPublicIpAddresses": outbound_public_ip_addresses
2257422575
"/alloydb:v1/Instance/outboundPublicIpAddresses/outbound_public_ip_address": outbound_public_ip_address
2257522576
"/alloydb:v1/Instance/pscInstanceConfig": psc_instance_config
@@ -22648,6 +22649,15 @@
2264822649
"/alloydb:v1/Node/ip": ip
2264922650
"/alloydb:v1/Node/state": state
2265022651
"/alloydb:v1/Node/zoneId": zone_id
22652+
"/alloydb:v1/ObservabilityInstanceConfig": observability_instance_config
22653+
"/alloydb:v1/ObservabilityInstanceConfig/enabled": enabled
22654+
"/alloydb:v1/ObservabilityInstanceConfig/maxQueryStringLength": max_query_string_length
22655+
"/alloydb:v1/ObservabilityInstanceConfig/preserveComments": preserve_comments
22656+
"/alloydb:v1/ObservabilityInstanceConfig/queryPlansPerMinute": query_plans_per_minute
22657+
"/alloydb:v1/ObservabilityInstanceConfig/recordApplicationTags": record_application_tags
22658+
"/alloydb:v1/ObservabilityInstanceConfig/trackActiveQueries": track_active_queries
22659+
"/alloydb:v1/ObservabilityInstanceConfig/trackWaitEventTypes": track_wait_event_types
22660+
"/alloydb:v1/ObservabilityInstanceConfig/trackWaitEvents": track_wait_events
2265122661
"/alloydb:v1/Operation": operation
2265222662
"/alloydb:v1/Operation/done": done
2265322663
"/alloydb:v1/Operation/error": error

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

59
* Regenerated from discovery document revision 20250219

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

Lines changed: 89 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,6 +1488,11 @@ class Instance
14881488
# @return [Array<Google::Apis::AlloydbV1::Node>]
14891489
attr_accessor :nodes
14901490

1491+
# Observability Instance specific configuration.
1492+
# Corresponds to the JSON property `observabilityConfig`
1493+
# @return [Google::Apis::AlloydbV1::ObservabilityInstanceConfig]
1494+
attr_accessor :observability_config
1495+
14911496
# Output only. All outbound public IP addresses configured for the instance.
14921497
# Corresponds to the JSON property `outboundPublicIpAddresses`
14931498
# @return [Array<String>]
@@ -1576,6 +1581,7 @@ def update!(**args)
15761581
@name = args[:name] if args.key?(:name)
15771582
@network_config = args[:network_config] if args.key?(:network_config)
15781583
@nodes = args[:nodes] if args.key?(:nodes)
1584+
@observability_config = args[:observability_config] if args.key?(:observability_config)
15791585
@outbound_public_ip_addresses = args[:outbound_public_ip_addresses] if args.key?(:outbound_public_ip_addresses)
15801586
@psc_instance_config = args[:psc_instance_config] if args.key?(:psc_instance_config)
15811587
@public_ip_address = args[:public_ip_address] if args.key?(:public_ip_address)
@@ -2051,6 +2057,83 @@ def update!(**args)
20512057
end
20522058
end
20532059

2060+
# Observability Instance specific configuration.
2061+
class ObservabilityInstanceConfig
2062+
include Google::Apis::Core::Hashable
2063+
2064+
# Observability feature status for an instance. This flag is turned "off" by
2065+
# default.
2066+
# Corresponds to the JSON property `enabled`
2067+
# @return [Boolean]
2068+
attr_accessor :enabled
2069+
alias_method :enabled?, :enabled
2070+
2071+
# Query string length. The default value is 10k.
2072+
# Corresponds to the JSON property `maxQueryStringLength`
2073+
# @return [Fixnum]
2074+
attr_accessor :max_query_string_length
2075+
2076+
# Preserve comments in query string for an instance. This flag is turned "off"
2077+
# by default.
2078+
# Corresponds to the JSON property `preserveComments`
2079+
# @return [Boolean]
2080+
attr_accessor :preserve_comments
2081+
alias_method :preserve_comments?, :preserve_comments
2082+
2083+
# Number of query execution plans captured by Insights per minute for all
2084+
# queries combined. The default value is 200. Any integer between 0 to 200 is
2085+
# considered valid.
2086+
# Corresponds to the JSON property `queryPlansPerMinute`
2087+
# @return [Fixnum]
2088+
attr_accessor :query_plans_per_minute
2089+
2090+
# Record application tags for an instance. This flag is turned "off" by default.
2091+
# Corresponds to the JSON property `recordApplicationTags`
2092+
# @return [Boolean]
2093+
attr_accessor :record_application_tags
2094+
alias_method :record_application_tags?, :record_application_tags
2095+
2096+
# Track actively running queries on the instance. If not set, this flag is "off"
2097+
# by default.
2098+
# Corresponds to the JSON property `trackActiveQueries`
2099+
# @return [Boolean]
2100+
attr_accessor :track_active_queries
2101+
alias_method :track_active_queries?, :track_active_queries
2102+
2103+
# Output only. Track wait event types during query execution for an instance.
2104+
# This flag is turned "on" by default but tracking is enabled only after
2105+
# observability enabled flag is also turned on. This is read-only flag and only
2106+
# modifiable by internal API.
2107+
# Corresponds to the JSON property `trackWaitEventTypes`
2108+
# @return [Boolean]
2109+
attr_accessor :track_wait_event_types
2110+
alias_method :track_wait_event_types?, :track_wait_event_types
2111+
2112+
# Track wait events during query execution for an instance. This flag is turned "
2113+
# on" by default but tracking is enabled only after observability enabled flag
2114+
# is also turned on.
2115+
# Corresponds to the JSON property `trackWaitEvents`
2116+
# @return [Boolean]
2117+
attr_accessor :track_wait_events
2118+
alias_method :track_wait_events?, :track_wait_events
2119+
2120+
def initialize(**args)
2121+
update!(**args)
2122+
end
2123+
2124+
# Update properties of this object
2125+
def update!(**args)
2126+
@enabled = args[:enabled] if args.key?(:enabled)
2127+
@max_query_string_length = args[:max_query_string_length] if args.key?(:max_query_string_length)
2128+
@preserve_comments = args[:preserve_comments] if args.key?(:preserve_comments)
2129+
@query_plans_per_minute = args[:query_plans_per_minute] if args.key?(:query_plans_per_minute)
2130+
@record_application_tags = args[:record_application_tags] if args.key?(:record_application_tags)
2131+
@track_active_queries = args[:track_active_queries] if args.key?(:track_active_queries)
2132+
@track_wait_event_types = args[:track_wait_event_types] if args.key?(:track_wait_event_types)
2133+
@track_wait_events = args[:track_wait_events] if args.key?(:track_wait_events)
2134+
end
2135+
end
2136+
20542137
# This resource represents a long-running operation that is the result of a
20552138
# network API call.
20562139
class Operation
@@ -3639,14 +3722,14 @@ def update!(**args)
36393722
class StorageDatabasecenterPartnerapiV1mainMachineConfiguration
36403723
include Google::Apis::Core::Hashable
36413724

3642-
# The number of CPUs. Deprecated. Use vcpu_count instead. TODO(b/342344482, b/
3643-
# 342346271) add proto validations again after bug fix.
3725+
# The number of CPUs. Deprecated. Use vcpu_count instead. TODO(b/342344482) add
3726+
# proto validations again after bug fix.
36443727
# Corresponds to the JSON property `cpuCount`
36453728
# @return [Fixnum]
36463729
attr_accessor :cpu_count
36473730

3648-
# Memory size in bytes. TODO(b/342344482, b/342346271) add proto validations
3649-
# again after bug fix.
3731+
# Memory size in bytes. TODO(b/342344482) add proto validations again after bug
3732+
# fix.
36503733
# Corresponds to the JSON property `memorySizeInBytes`
36513734
# @return [Fixnum]
36523735
attr_accessor :memory_size_in_bytes
@@ -3656,8 +3739,8 @@ class StorageDatabasecenterPartnerapiV1mainMachineConfiguration
36563739
# @return [Fixnum]
36573740
attr_accessor :shard_count
36583741

3659-
# Optional. The number of vCPUs. TODO(b/342344482, b/342346271) add proto
3660-
# validations again after bug fix.
3742+
# Optional. The number of vCPUs. TODO(b/342344482) add proto validations again
3743+
# after bug fix.
36613744
# Corresponds to the JSON property `vcpuCount`
36623745
# @return [Float]
36633746
attr_accessor :vcpu_count

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.30.0"
19+
GEM_VERSION = "0.31.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_v1/lib/google/apis/alloydb_v1/representations.rb

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
298298
include Google::Apis::Core::JsonObjectSupport
299299
end
300300

301+
class ObservabilityInstanceConfig
302+
class Representation < Google::Apis::Core::JsonRepresentation; end
303+
304+
include Google::Apis::Core::JsonObjectSupport
305+
end
306+
301307
class Operation
302308
class Representation < Google::Apis::Core::JsonRepresentation; end
303309

@@ -1001,6 +1007,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
10011007

10021008
collection :nodes, as: 'nodes', class: Google::Apis::AlloydbV1::Node, decorator: Google::Apis::AlloydbV1::Node::Representation
10031009

1010+
property :observability_config, as: 'observabilityConfig', class: Google::Apis::AlloydbV1::ObservabilityInstanceConfig, decorator: Google::Apis::AlloydbV1::ObservabilityInstanceConfig::Representation
1011+
10041012
collection :outbound_public_ip_addresses, as: 'outboundPublicIpAddresses'
10051013
property :psc_instance_config, as: 'pscInstanceConfig', class: Google::Apis::AlloydbV1::PscInstanceConfig, decorator: Google::Apis::AlloydbV1::PscInstanceConfig::Representation
10061014

@@ -1162,6 +1170,20 @@ class Representation < Google::Apis::Core::JsonRepresentation
11621170
end
11631171
end
11641172

1173+
class ObservabilityInstanceConfig
1174+
# @private
1175+
class Representation < Google::Apis::Core::JsonRepresentation
1176+
property :enabled, as: 'enabled'
1177+
property :max_query_string_length, as: 'maxQueryStringLength'
1178+
property :preserve_comments, as: 'preserveComments'
1179+
property :query_plans_per_minute, as: 'queryPlansPerMinute'
1180+
property :record_application_tags, as: 'recordApplicationTags'
1181+
property :track_active_queries, as: 'trackActiveQueries'
1182+
property :track_wait_event_types, as: 'trackWaitEventTypes'
1183+
property :track_wait_events, as: 'trackWaitEvents'
1184+
end
1185+
end
1186+
11651187
class Operation
11661188
# @private
11671189
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)