Skip to content

Commit 06b5fb9

Browse files
feat: Automated regeneration of managedkafka v1 client (#24225)
Auto-created at 2025-09-07 10:34:20 +0000 using the toys pull request generator.
1 parent 6745edc commit 06b5fb9

File tree

5 files changed

+59
-2
lines changed

5 files changed

+59
-2
lines changed

api_names_out.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282667,6 +282667,7 @@
282667282667
"/managedkafka:v1/Cluster/satisfiesPzs": satisfies_pzs
282668282668
"/managedkafka:v1/Cluster/state": state
282669282669
"/managedkafka:v1/Cluster/tlsConfig": tls_config
282670+
"/managedkafka:v1/Cluster/updateOptions": update_options
282670282671
"/managedkafka:v1/Cluster/updateTime": update_time
282671282672
"/managedkafka:v1/ConnectAccessConfig": connect_access_config
282672282673
"/managedkafka:v1/ConnectAccessConfig/networkConfigs": network_configs
@@ -282871,6 +282872,8 @@
282871282872
"/managedkafka:v1/TrustConfig": trust_config
282872282873
"/managedkafka:v1/TrustConfig/casConfigs": cas_configs
282873282874
"/managedkafka:v1/TrustConfig/casConfigs/cas_config": cas_config
282875+
"/managedkafka:v1/UpdateOptions": update_options
282876+
"/managedkafka:v1/UpdateOptions/allowBrokerDownscaleOnClusterUpscale": allow_broker_downscale_on_cluster_upscale
282874282877
"/managedkafka:v1/UpdateSchemaConfigRequest": update_schema_config_request
282875282878
"/managedkafka:v1/UpdateSchemaConfigRequest/compatibility": compatibility
282876282879
"/managedkafka:v1/UpdateSchemaConfigRequest/normalize": normalize

generated/google-apis-managedkafka_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-managedkafka_v1
22

3+
### v0.13.0 (2025-09-07)
4+
5+
* Regenerated from discovery document revision 20250901
6+
37
### v0.12.0 (2025-08-31)
48

59
* Regenerated from discovery document revision 20250814

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

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,13 @@ class Cluster
369369
# @return [Google::Apis::ManagedkafkaV1::TlsConfig]
370370
attr_accessor :tls_config
371371

372+
# UpdateOptions specifies options that influence how a cluster update is applied.
373+
# These options control the behavior of the update process, rather than
374+
# defining the desired end-state of a cluster.
375+
# Corresponds to the JSON property `updateOptions`
376+
# @return [Google::Apis::ManagedkafkaV1::UpdateOptions]
377+
attr_accessor :update_options
378+
372379
# Output only. The time when the cluster was last updated.
373380
# Corresponds to the JSON property `updateTime`
374381
# @return [String]
@@ -390,6 +397,7 @@ def update!(**args)
390397
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
391398
@state = args[:state] if args.key?(:state)
392399
@tls_config = args[:tls_config] if args.key?(:tls_config)
400+
@update_options = args[:update_options] if args.key?(:update_options)
393401
@update_time = args[:update_time] if args.key?(:update_time)
394402
end
395403
end
@@ -1925,6 +1933,33 @@ def update!(**args)
19251933
end
19261934
end
19271935

1936+
# UpdateOptions specifies options that influence how a cluster update is applied.
1937+
# These options control the behavior of the update process, rather than
1938+
# defining the desired end-state of a cluster.
1939+
class UpdateOptions
1940+
include Google::Apis::Core::Hashable
1941+
1942+
# Optional. If true, allows an update operation that increases the total vCPU
1943+
# and/or memory allocation of the cluster to significantly decrease the per-
1944+
# broker vCPU and/or memory allocation. This can result in reduced performance
1945+
# and availability. By default, the update operation will fail if an upscale
1946+
# request results in a vCPU or memory allocation for the brokers that is smaller
1947+
# than 90% of the current broker size.
1948+
# Corresponds to the JSON property `allowBrokerDownscaleOnClusterUpscale`
1949+
# @return [Boolean]
1950+
attr_accessor :allow_broker_downscale_on_cluster_upscale
1951+
alias_method :allow_broker_downscale_on_cluster_upscale?, :allow_broker_downscale_on_cluster_upscale
1952+
1953+
def initialize(**args)
1954+
update!(**args)
1955+
end
1956+
1957+
# Update properties of this object
1958+
def update!(**args)
1959+
@allow_broker_downscale_on_cluster_upscale = args[:allow_broker_downscale_on_cluster_upscale] if args.key?(:allow_broker_downscale_on_cluster_upscale)
1960+
end
1961+
end
1962+
19281963
# Request for updating schema config. On a SchemaSubject-level SchemaConfig, an
19291964
# unset field will be removed from the SchemaConfig.
19301965
class UpdateSchemaConfigRequest

generated/google-apis-managedkafka_v1/lib/google/apis/managedkafka_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 ManagedkafkaV1
1818
# Version of the google-apis-managedkafka_v1 gem
19-
GEM_VERSION = "0.12.0"
19+
GEM_VERSION = "0.13.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 = "20250814"
25+
REVISION = "20250901"
2626
end
2727
end
2828
end

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
382382
include Google::Apis::Core::JsonObjectSupport
383383
end
384384

385+
class UpdateOptions
386+
class Representation < Google::Apis::Core::JsonRepresentation; end
387+
388+
include Google::Apis::Core::JsonObjectSupport
389+
end
390+
385391
class UpdateSchemaConfigRequest
386392
class Representation < Google::Apis::Core::JsonRepresentation; end
387393

@@ -491,6 +497,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
491497
property :state, as: 'state'
492498
property :tls_config, as: 'tlsConfig', class: Google::Apis::ManagedkafkaV1::TlsConfig, decorator: Google::Apis::ManagedkafkaV1::TlsConfig::Representation
493499

500+
property :update_options, as: 'updateOptions', class: Google::Apis::ManagedkafkaV1::UpdateOptions, decorator: Google::Apis::ManagedkafkaV1::UpdateOptions::Representation
501+
494502
property :update_time, as: 'updateTime'
495503
end
496504
end
@@ -938,6 +946,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
938946
end
939947
end
940948

949+
class UpdateOptions
950+
# @private
951+
class Representation < Google::Apis::Core::JsonRepresentation
952+
property :allow_broker_downscale_on_cluster_upscale, as: 'allowBrokerDownscaleOnClusterUpscale'
953+
end
954+
end
955+
941956
class UpdateSchemaConfigRequest
942957
# @private
943958
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)