Skip to content

Commit 409bf9b

Browse files
feat: Automated regeneration of serviceconsumermanagement v1beta1 client (googleapis#23192)
Auto-created at 2025-05-21 20:36:20 +0000 using the toys pull request generator.
1 parent 424ee8a commit 409bf9b

File tree

5 files changed

+217
-2
lines changed

5 files changed

+217
-2
lines changed

api_names_out.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330965,6 +330965,23 @@
330965330965
"/serviceconsumermanagement:v1beta1/BackendRule/pathTranslation": path_translation
330966330966
"/serviceconsumermanagement:v1beta1/BackendRule/protocol": protocol
330967330967
"/serviceconsumermanagement:v1beta1/BackendRule/selector": selector
330968+
"/serviceconsumermanagement:v1beta1/BatchingConfigProto": batching_config_proto
330969+
"/serviceconsumermanagement:v1beta1/BatchingConfigProto/batchDescriptor": batch_descriptor
330970+
"/serviceconsumermanagement:v1beta1/BatchingConfigProto/thresholds": thresholds
330971+
"/serviceconsumermanagement:v1beta1/BatchingDescriptorProto": batching_descriptor_proto
330972+
"/serviceconsumermanagement:v1beta1/BatchingDescriptorProto/batchedField": batched_field
330973+
"/serviceconsumermanagement:v1beta1/BatchingDescriptorProto/discriminatorFields": discriminator_fields
330974+
"/serviceconsumermanagement:v1beta1/BatchingDescriptorProto/discriminatorFields/discriminator_field": discriminator_field
330975+
"/serviceconsumermanagement:v1beta1/BatchingDescriptorProto/subresponseField": subresponse_field
330976+
"/serviceconsumermanagement:v1beta1/BatchingSettingsProto": batching_settings_proto
330977+
"/serviceconsumermanagement:v1beta1/BatchingSettingsProto/delayThreshold": delay_threshold
330978+
"/serviceconsumermanagement:v1beta1/BatchingSettingsProto/elementCountLimit": element_count_limit
330979+
"/serviceconsumermanagement:v1beta1/BatchingSettingsProto/elementCountThreshold": element_count_threshold
330980+
"/serviceconsumermanagement:v1beta1/BatchingSettingsProto/flowControlByteLimit": flow_control_byte_limit
330981+
"/serviceconsumermanagement:v1beta1/BatchingSettingsProto/flowControlElementLimit": flow_control_element_limit
330982+
"/serviceconsumermanagement:v1beta1/BatchingSettingsProto/flowControlLimitExceededBehavior": flow_control_limit_exceeded_behavior
330983+
"/serviceconsumermanagement:v1beta1/BatchingSettingsProto/requestByteLimit": request_byte_limit
330984+
"/serviceconsumermanagement:v1beta1/BatchingSettingsProto/requestByteThreshold": request_byte_threshold
330968330985
"/serviceconsumermanagement:v1beta1/Billing": billing
330969330986
"/serviceconsumermanagement:v1beta1/Billing/consumerDestinations": consumer_destinations
330970330987
"/serviceconsumermanagement:v1beta1/Billing/consumerDestinations/consumer_destination": consumer_destination
@@ -331160,6 +331177,7 @@
331160331177
"/serviceconsumermanagement:v1beta1/MethodSettings": method_settings
331161331178
"/serviceconsumermanagement:v1beta1/MethodSettings/autoPopulatedFields": auto_populated_fields
331162331179
"/serviceconsumermanagement:v1beta1/MethodSettings/autoPopulatedFields/auto_populated_field": auto_populated_field
331180+
"/serviceconsumermanagement:v1beta1/MethodSettings/batching": batching
331163331181
"/serviceconsumermanagement:v1beta1/MethodSettings/longRunning": long_running
331164331182
"/serviceconsumermanagement:v1beta1/MethodSettings/selector": selector
331165331183
"/serviceconsumermanagement:v1beta1/MetricDescriptor": metric_descriptor

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

3+
### v0.60.0 (2025-05-21)
4+
5+
* Regenerated from discovery document revision 20250515
6+
37
### v0.59.0 (2025-05-18)
48

59
* Regenerated from discovery document revision 20250511

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

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,140 @@ def update!(**args)
449449
end
450450
end
451451

452+
# `BatchingConfigProto` defines the batching configuration for an API method.
453+
class BatchingConfigProto
454+
include Google::Apis::Core::Hashable
455+
456+
# `BatchingDescriptorProto` specifies the fields of the request message to be
457+
# used for batching, and, optionally, the fields of the response message to be
458+
# used for demultiplexing.
459+
# Corresponds to the JSON property `batchDescriptor`
460+
# @return [Google::Apis::ServiceconsumermanagementV1beta1::BatchingDescriptorProto]
461+
attr_accessor :batch_descriptor
462+
463+
# `BatchingSettingsProto` specifies a set of batching thresholds, each of which
464+
# acts as a trigger to send a batch of messages as a request. At least one
465+
# threshold must be positive nonzero.
466+
# Corresponds to the JSON property `thresholds`
467+
# @return [Google::Apis::ServiceconsumermanagementV1beta1::BatchingSettingsProto]
468+
attr_accessor :thresholds
469+
470+
def initialize(**args)
471+
update!(**args)
472+
end
473+
474+
# Update properties of this object
475+
def update!(**args)
476+
@batch_descriptor = args[:batch_descriptor] if args.key?(:batch_descriptor)
477+
@thresholds = args[:thresholds] if args.key?(:thresholds)
478+
end
479+
end
480+
481+
# `BatchingDescriptorProto` specifies the fields of the request message to be
482+
# used for batching, and, optionally, the fields of the response message to be
483+
# used for demultiplexing.
484+
class BatchingDescriptorProto
485+
include Google::Apis::Core::Hashable
486+
487+
# The repeated field in the request message to be aggregated by batching.
488+
# Corresponds to the JSON property `batchedField`
489+
# @return [String]
490+
attr_accessor :batched_field
491+
492+
# A list of the fields in the request message. Two requests will be batched
493+
# together only if the values of every field specified in `
494+
# request_discriminator_fields` is equal between the two requests.
495+
# Corresponds to the JSON property `discriminatorFields`
496+
# @return [Array<String>]
497+
attr_accessor :discriminator_fields
498+
499+
# Optional. When present, indicates the field in the response message to be used
500+
# to demultiplex the response into multiple response messages, in correspondence
501+
# with the multiple request messages originally batched together.
502+
# Corresponds to the JSON property `subresponseField`
503+
# @return [String]
504+
attr_accessor :subresponse_field
505+
506+
def initialize(**args)
507+
update!(**args)
508+
end
509+
510+
# Update properties of this object
511+
def update!(**args)
512+
@batched_field = args[:batched_field] if args.key?(:batched_field)
513+
@discriminator_fields = args[:discriminator_fields] if args.key?(:discriminator_fields)
514+
@subresponse_field = args[:subresponse_field] if args.key?(:subresponse_field)
515+
end
516+
end
517+
518+
# `BatchingSettingsProto` specifies a set of batching thresholds, each of which
519+
# acts as a trigger to send a batch of messages as a request. At least one
520+
# threshold must be positive nonzero.
521+
class BatchingSettingsProto
522+
include Google::Apis::Core::Hashable
523+
524+
# The duration after which a batch should be sent, starting from the addition of
525+
# the first message to that batch.
526+
# Corresponds to the JSON property `delayThreshold`
527+
# @return [String]
528+
attr_accessor :delay_threshold
529+
530+
# The maximum number of elements collected in a batch that could be accepted by
531+
# server.
532+
# Corresponds to the JSON property `elementCountLimit`
533+
# @return [Fixnum]
534+
attr_accessor :element_count_limit
535+
536+
# The number of elements of a field collected into a batch which, if exceeded,
537+
# causes the batch to be sent.
538+
# Corresponds to the JSON property `elementCountThreshold`
539+
# @return [Fixnum]
540+
attr_accessor :element_count_threshold
541+
542+
# The maximum size of data allowed by flow control.
543+
# Corresponds to the JSON property `flowControlByteLimit`
544+
# @return [Fixnum]
545+
attr_accessor :flow_control_byte_limit
546+
547+
# The maximum number of elements allowed by flow control.
548+
# Corresponds to the JSON property `flowControlElementLimit`
549+
# @return [Fixnum]
550+
attr_accessor :flow_control_element_limit
551+
552+
# The behavior to take when the flow control limit is exceeded.
553+
# Corresponds to the JSON property `flowControlLimitExceededBehavior`
554+
# @return [String]
555+
attr_accessor :flow_control_limit_exceeded_behavior
556+
557+
# The maximum size of the request that could be accepted by server.
558+
# Corresponds to the JSON property `requestByteLimit`
559+
# @return [Fixnum]
560+
attr_accessor :request_byte_limit
561+
562+
# The aggregated size of the batched field which, if exceeded, causes the batch
563+
# to be sent. This size is computed by aggregating the sizes of the request
564+
# field to be batched, not of the entire request message.
565+
# Corresponds to the JSON property `requestByteThreshold`
566+
# @return [Fixnum]
567+
attr_accessor :request_byte_threshold
568+
569+
def initialize(**args)
570+
update!(**args)
571+
end
572+
573+
# Update properties of this object
574+
def update!(**args)
575+
@delay_threshold = args[:delay_threshold] if args.key?(:delay_threshold)
576+
@element_count_limit = args[:element_count_limit] if args.key?(:element_count_limit)
577+
@element_count_threshold = args[:element_count_threshold] if args.key?(:element_count_threshold)
578+
@flow_control_byte_limit = args[:flow_control_byte_limit] if args.key?(:flow_control_byte_limit)
579+
@flow_control_element_limit = args[:flow_control_element_limit] if args.key?(:flow_control_element_limit)
580+
@flow_control_limit_exceeded_behavior = args[:flow_control_limit_exceeded_behavior] if args.key?(:flow_control_limit_exceeded_behavior)
581+
@request_byte_limit = args[:request_byte_limit] if args.key?(:request_byte_limit)
582+
@request_byte_threshold = args[:request_byte_threshold] if args.key?(:request_byte_threshold)
583+
end
584+
end
585+
452586
# Billing related configuration of the service. The following example shows how
453587
# to configure monitored resources and metrics for billing, `
454588
# consumer_destinations` is the only supported destination and the monitored
@@ -1999,6 +2133,11 @@ class MethodSettings
19992133
# @return [Array<String>]
20002134
attr_accessor :auto_populated_fields
20012135

2136+
# `BatchingConfigProto` defines the batching configuration for an API method.
2137+
# Corresponds to the JSON property `batching`
2138+
# @return [Google::Apis::ServiceconsumermanagementV1beta1::BatchingConfigProto]
2139+
attr_accessor :batching
2140+
20022141
# Describes settings to use when generating API methods that use the long-
20032142
# running operation pattern. All default values below are from those used in the
20042143
# client library generators (e.g. [Java](https://github.com/googleapis/gapic-
@@ -2023,6 +2162,7 @@ def initialize(**args)
20232162
# Update properties of this object
20242163
def update!(**args)
20252164
@auto_populated_fields = args[:auto_populated_fields] if args.key?(:auto_populated_fields)
2165+
@batching = args[:batching] if args.key?(:batching)
20262166
@long_running = args[:long_running] if args.key?(:long_running)
20272167
@selector = args[:selector] if args.key?(:selector)
20282168
end

generated/google-apis-serviceconsumermanagement_v1beta1/lib/google/apis/serviceconsumermanagement_v1beta1/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 ServiceconsumermanagementV1beta1
1818
# Version of the google-apis-serviceconsumermanagement_v1beta1 gem
19-
GEM_VERSION = "0.59.0"
19+
GEM_VERSION = "0.60.0"
2020

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

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

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

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
7070
include Google::Apis::Core::JsonObjectSupport
7171
end
7272

73+
class BatchingConfigProto
74+
class Representation < Google::Apis::Core::JsonRepresentation; end
75+
76+
include Google::Apis::Core::JsonObjectSupport
77+
end
78+
79+
class BatchingDescriptorProto
80+
class Representation < Google::Apis::Core::JsonRepresentation; end
81+
82+
include Google::Apis::Core::JsonObjectSupport
83+
end
84+
85+
class BatchingSettingsProto
86+
class Representation < Google::Apis::Core::JsonRepresentation; end
87+
88+
include Google::Apis::Core::JsonObjectSupport
89+
end
90+
7391
class Billing
7492
class Representation < Google::Apis::Core::JsonRepresentation; end
7593

@@ -722,6 +740,39 @@ class Representation < Google::Apis::Core::JsonRepresentation
722740
end
723741
end
724742

743+
class BatchingConfigProto
744+
# @private
745+
class Representation < Google::Apis::Core::JsonRepresentation
746+
property :batch_descriptor, as: 'batchDescriptor', class: Google::Apis::ServiceconsumermanagementV1beta1::BatchingDescriptorProto, decorator: Google::Apis::ServiceconsumermanagementV1beta1::BatchingDescriptorProto::Representation
747+
748+
property :thresholds, as: 'thresholds', class: Google::Apis::ServiceconsumermanagementV1beta1::BatchingSettingsProto, decorator: Google::Apis::ServiceconsumermanagementV1beta1::BatchingSettingsProto::Representation
749+
750+
end
751+
end
752+
753+
class BatchingDescriptorProto
754+
# @private
755+
class Representation < Google::Apis::Core::JsonRepresentation
756+
property :batched_field, as: 'batchedField'
757+
collection :discriminator_fields, as: 'discriminatorFields'
758+
property :subresponse_field, as: 'subresponseField'
759+
end
760+
end
761+
762+
class BatchingSettingsProto
763+
# @private
764+
class Representation < Google::Apis::Core::JsonRepresentation
765+
property :delay_threshold, as: 'delayThreshold'
766+
property :element_count_limit, as: 'elementCountLimit'
767+
property :element_count_threshold, as: 'elementCountThreshold'
768+
property :flow_control_byte_limit, as: 'flowControlByteLimit'
769+
property :flow_control_element_limit, as: 'flowControlElementLimit'
770+
property :flow_control_limit_exceeded_behavior, as: 'flowControlLimitExceededBehavior'
771+
property :request_byte_limit, as: 'requestByteLimit'
772+
property :request_byte_threshold, :numeric_string => true, as: 'requestByteThreshold'
773+
end
774+
end
775+
725776
class Billing
726777
# @private
727778
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1081,6 +1132,8 @@ class MethodSettings
10811132
# @private
10821133
class Representation < Google::Apis::Core::JsonRepresentation
10831134
collection :auto_populated_fields, as: 'autoPopulatedFields'
1135+
property :batching, as: 'batching', class: Google::Apis::ServiceconsumermanagementV1beta1::BatchingConfigProto, decorator: Google::Apis::ServiceconsumermanagementV1beta1::BatchingConfigProto::Representation
1136+
10841137
property :long_running, as: 'longRunning', class: Google::Apis::ServiceconsumermanagementV1beta1::LongRunning, decorator: Google::Apis::ServiceconsumermanagementV1beta1::LongRunning::Representation
10851138

10861139
property :selector, as: 'selector'

0 commit comments

Comments
 (0)