Skip to content

Commit 060c527

Browse files
feat: Automated regeneration of serviceconsumermanagement v1 client (googleapis#23194)
Auto-created at 2025-05-21 20:40:17 +0000 using the toys pull request generator.
1 parent 81c2c54 commit 060c527

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
@@ -330332,6 +330332,23 @@
330332330332
"/serviceconsumermanagement:v1/BackendRule/pathTranslation": path_translation
330333330333
"/serviceconsumermanagement:v1/BackendRule/protocol": protocol
330334330334
"/serviceconsumermanagement:v1/BackendRule/selector": selector
330335+
"/serviceconsumermanagement:v1/BatchingConfigProto": batching_config_proto
330336+
"/serviceconsumermanagement:v1/BatchingConfigProto/batchDescriptor": batch_descriptor
330337+
"/serviceconsumermanagement:v1/BatchingConfigProto/thresholds": thresholds
330338+
"/serviceconsumermanagement:v1/BatchingDescriptorProto": batching_descriptor_proto
330339+
"/serviceconsumermanagement:v1/BatchingDescriptorProto/batchedField": batched_field
330340+
"/serviceconsumermanagement:v1/BatchingDescriptorProto/discriminatorFields": discriminator_fields
330341+
"/serviceconsumermanagement:v1/BatchingDescriptorProto/discriminatorFields/discriminator_field": discriminator_field
330342+
"/serviceconsumermanagement:v1/BatchingDescriptorProto/subresponseField": subresponse_field
330343+
"/serviceconsumermanagement:v1/BatchingSettingsProto": batching_settings_proto
330344+
"/serviceconsumermanagement:v1/BatchingSettingsProto/delayThreshold": delay_threshold
330345+
"/serviceconsumermanagement:v1/BatchingSettingsProto/elementCountLimit": element_count_limit
330346+
"/serviceconsumermanagement:v1/BatchingSettingsProto/elementCountThreshold": element_count_threshold
330347+
"/serviceconsumermanagement:v1/BatchingSettingsProto/flowControlByteLimit": flow_control_byte_limit
330348+
"/serviceconsumermanagement:v1/BatchingSettingsProto/flowControlElementLimit": flow_control_element_limit
330349+
"/serviceconsumermanagement:v1/BatchingSettingsProto/flowControlLimitExceededBehavior": flow_control_limit_exceeded_behavior
330350+
"/serviceconsumermanagement:v1/BatchingSettingsProto/requestByteLimit": request_byte_limit
330351+
"/serviceconsumermanagement:v1/BatchingSettingsProto/requestByteThreshold": request_byte_threshold
330335330352
"/serviceconsumermanagement:v1/Billing": billing
330336330353
"/serviceconsumermanagement:v1/Billing/consumerDestinations": consumer_destinations
330337330354
"/serviceconsumermanagement:v1/Billing/consumerDestinations/consumer_destination": consumer_destination
@@ -330571,6 +330588,7 @@
330571330588
"/serviceconsumermanagement:v1/MethodSettings": method_settings
330572330589
"/serviceconsumermanagement:v1/MethodSettings/autoPopulatedFields": auto_populated_fields
330573330590
"/serviceconsumermanagement:v1/MethodSettings/autoPopulatedFields/auto_populated_field": auto_populated_field
330591+
"/serviceconsumermanagement:v1/MethodSettings/batching": batching
330574330592
"/serviceconsumermanagement:v1/MethodSettings/longRunning": long_running
330575330593
"/serviceconsumermanagement:v1/MethodSettings/selector": selector
330576330594
"/serviceconsumermanagement:v1/MetricDescriptor": metric_descriptor

generated/google-apis-serviceconsumermanagement_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-serviceconsumermanagement_v1
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_v1/lib/google/apis/serviceconsumermanagement_v1/classes.rb

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,140 @@ def update!(**args)
541541
end
542542
end
543543

544+
# `BatchingConfigProto` defines the batching configuration for an API method.
545+
class BatchingConfigProto
546+
include Google::Apis::Core::Hashable
547+
548+
# `BatchingDescriptorProto` specifies the fields of the request message to be
549+
# used for batching, and, optionally, the fields of the response message to be
550+
# used for demultiplexing.
551+
# Corresponds to the JSON property `batchDescriptor`
552+
# @return [Google::Apis::ServiceconsumermanagementV1::BatchingDescriptorProto]
553+
attr_accessor :batch_descriptor
554+
555+
# `BatchingSettingsProto` specifies a set of batching thresholds, each of which
556+
# acts as a trigger to send a batch of messages as a request. At least one
557+
# threshold must be positive nonzero.
558+
# Corresponds to the JSON property `thresholds`
559+
# @return [Google::Apis::ServiceconsumermanagementV1::BatchingSettingsProto]
560+
attr_accessor :thresholds
561+
562+
def initialize(**args)
563+
update!(**args)
564+
end
565+
566+
# Update properties of this object
567+
def update!(**args)
568+
@batch_descriptor = args[:batch_descriptor] if args.key?(:batch_descriptor)
569+
@thresholds = args[:thresholds] if args.key?(:thresholds)
570+
end
571+
end
572+
573+
# `BatchingDescriptorProto` specifies the fields of the request message to be
574+
# used for batching, and, optionally, the fields of the response message to be
575+
# used for demultiplexing.
576+
class BatchingDescriptorProto
577+
include Google::Apis::Core::Hashable
578+
579+
# The repeated field in the request message to be aggregated by batching.
580+
# Corresponds to the JSON property `batchedField`
581+
# @return [String]
582+
attr_accessor :batched_field
583+
584+
# A list of the fields in the request message. Two requests will be batched
585+
# together only if the values of every field specified in `
586+
# request_discriminator_fields` is equal between the two requests.
587+
# Corresponds to the JSON property `discriminatorFields`
588+
# @return [Array<String>]
589+
attr_accessor :discriminator_fields
590+
591+
# Optional. When present, indicates the field in the response message to be used
592+
# to demultiplex the response into multiple response messages, in correspondence
593+
# with the multiple request messages originally batched together.
594+
# Corresponds to the JSON property `subresponseField`
595+
# @return [String]
596+
attr_accessor :subresponse_field
597+
598+
def initialize(**args)
599+
update!(**args)
600+
end
601+
602+
# Update properties of this object
603+
def update!(**args)
604+
@batched_field = args[:batched_field] if args.key?(:batched_field)
605+
@discriminator_fields = args[:discriminator_fields] if args.key?(:discriminator_fields)
606+
@subresponse_field = args[:subresponse_field] if args.key?(:subresponse_field)
607+
end
608+
end
609+
610+
# `BatchingSettingsProto` specifies a set of batching thresholds, each of which
611+
# acts as a trigger to send a batch of messages as a request. At least one
612+
# threshold must be positive nonzero.
613+
class BatchingSettingsProto
614+
include Google::Apis::Core::Hashable
615+
616+
# The duration after which a batch should be sent, starting from the addition of
617+
# the first message to that batch.
618+
# Corresponds to the JSON property `delayThreshold`
619+
# @return [String]
620+
attr_accessor :delay_threshold
621+
622+
# The maximum number of elements collected in a batch that could be accepted by
623+
# server.
624+
# Corresponds to the JSON property `elementCountLimit`
625+
# @return [Fixnum]
626+
attr_accessor :element_count_limit
627+
628+
# The number of elements of a field collected into a batch which, if exceeded,
629+
# causes the batch to be sent.
630+
# Corresponds to the JSON property `elementCountThreshold`
631+
# @return [Fixnum]
632+
attr_accessor :element_count_threshold
633+
634+
# The maximum size of data allowed by flow control.
635+
# Corresponds to the JSON property `flowControlByteLimit`
636+
# @return [Fixnum]
637+
attr_accessor :flow_control_byte_limit
638+
639+
# The maximum number of elements allowed by flow control.
640+
# Corresponds to the JSON property `flowControlElementLimit`
641+
# @return [Fixnum]
642+
attr_accessor :flow_control_element_limit
643+
644+
# The behavior to take when the flow control limit is exceeded.
645+
# Corresponds to the JSON property `flowControlLimitExceededBehavior`
646+
# @return [String]
647+
attr_accessor :flow_control_limit_exceeded_behavior
648+
649+
# The maximum size of the request that could be accepted by server.
650+
# Corresponds to the JSON property `requestByteLimit`
651+
# @return [Fixnum]
652+
attr_accessor :request_byte_limit
653+
654+
# The aggregated size of the batched field which, if exceeded, causes the batch
655+
# to be sent. This size is computed by aggregating the sizes of the request
656+
# field to be batched, not of the entire request message.
657+
# Corresponds to the JSON property `requestByteThreshold`
658+
# @return [Fixnum]
659+
attr_accessor :request_byte_threshold
660+
661+
def initialize(**args)
662+
update!(**args)
663+
end
664+
665+
# Update properties of this object
666+
def update!(**args)
667+
@delay_threshold = args[:delay_threshold] if args.key?(:delay_threshold)
668+
@element_count_limit = args[:element_count_limit] if args.key?(:element_count_limit)
669+
@element_count_threshold = args[:element_count_threshold] if args.key?(:element_count_threshold)
670+
@flow_control_byte_limit = args[:flow_control_byte_limit] if args.key?(:flow_control_byte_limit)
671+
@flow_control_element_limit = args[:flow_control_element_limit] if args.key?(:flow_control_element_limit)
672+
@flow_control_limit_exceeded_behavior = args[:flow_control_limit_exceeded_behavior] if args.key?(:flow_control_limit_exceeded_behavior)
673+
@request_byte_limit = args[:request_byte_limit] if args.key?(:request_byte_limit)
674+
@request_byte_threshold = args[:request_byte_threshold] if args.key?(:request_byte_threshold)
675+
end
676+
end
677+
544678
# Billing related configuration of the service. The following example shows how
545679
# to configure monitored resources and metrics for billing, `
546680
# consumer_destinations` is the only supported destination and the monitored
@@ -2218,6 +2352,11 @@ class MethodSettings
22182352
# @return [Array<String>]
22192353
attr_accessor :auto_populated_fields
22202354

2355+
# `BatchingConfigProto` defines the batching configuration for an API method.
2356+
# Corresponds to the JSON property `batching`
2357+
# @return [Google::Apis::ServiceconsumermanagementV1::BatchingConfigProto]
2358+
attr_accessor :batching
2359+
22212360
# Describes settings to use when generating API methods that use the long-
22222361
# running operation pattern. All default values below are from those used in the
22232362
# client library generators (e.g. [Java](https://github.com/googleapis/gapic-
@@ -2242,6 +2381,7 @@ def initialize(**args)
22422381
# Update properties of this object
22432382
def update!(**args)
22442383
@auto_populated_fields = args[:auto_populated_fields] if args.key?(:auto_populated_fields)
2384+
@batching = args[:batching] if args.key?(:batching)
22452385
@long_running = args[:long_running] if args.key?(:long_running)
22462386
@selector = args[:selector] if args.key?(:selector)
22472387
end

generated/google-apis-serviceconsumermanagement_v1/lib/google/apis/serviceconsumermanagement_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 ServiceconsumermanagementV1
1818
# Version of the google-apis-serviceconsumermanagement_v1 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_v1/lib/google/apis/serviceconsumermanagement_v1/representations.rb

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

91+
class BatchingConfigProto
92+
class Representation < Google::Apis::Core::JsonRepresentation; end
93+
94+
include Google::Apis::Core::JsonObjectSupport
95+
end
96+
97+
class BatchingDescriptorProto
98+
class Representation < Google::Apis::Core::JsonRepresentation; end
99+
100+
include Google::Apis::Core::JsonObjectSupport
101+
end
102+
103+
class BatchingSettingsProto
104+
class Representation < Google::Apis::Core::JsonRepresentation; end
105+
106+
include Google::Apis::Core::JsonObjectSupport
107+
end
108+
91109
class Billing
92110
class Representation < Google::Apis::Core::JsonRepresentation; end
93111

@@ -791,6 +809,39 @@ class Representation < Google::Apis::Core::JsonRepresentation
791809
end
792810
end
793811

812+
class BatchingConfigProto
813+
# @private
814+
class Representation < Google::Apis::Core::JsonRepresentation
815+
property :batch_descriptor, as: 'batchDescriptor', class: Google::Apis::ServiceconsumermanagementV1::BatchingDescriptorProto, decorator: Google::Apis::ServiceconsumermanagementV1::BatchingDescriptorProto::Representation
816+
817+
property :thresholds, as: 'thresholds', class: Google::Apis::ServiceconsumermanagementV1::BatchingSettingsProto, decorator: Google::Apis::ServiceconsumermanagementV1::BatchingSettingsProto::Representation
818+
819+
end
820+
end
821+
822+
class BatchingDescriptorProto
823+
# @private
824+
class Representation < Google::Apis::Core::JsonRepresentation
825+
property :batched_field, as: 'batchedField'
826+
collection :discriminator_fields, as: 'discriminatorFields'
827+
property :subresponse_field, as: 'subresponseField'
828+
end
829+
end
830+
831+
class BatchingSettingsProto
832+
# @private
833+
class Representation < Google::Apis::Core::JsonRepresentation
834+
property :delay_threshold, as: 'delayThreshold'
835+
property :element_count_limit, as: 'elementCountLimit'
836+
property :element_count_threshold, as: 'elementCountThreshold'
837+
property :flow_control_byte_limit, as: 'flowControlByteLimit'
838+
property :flow_control_element_limit, as: 'flowControlElementLimit'
839+
property :flow_control_limit_exceeded_behavior, as: 'flowControlLimitExceededBehavior'
840+
property :request_byte_limit, as: 'requestByteLimit'
841+
property :request_byte_threshold, :numeric_string => true, as: 'requestByteThreshold'
842+
end
843+
end
844+
794845
class Billing
795846
# @private
796847
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1195,6 +1246,8 @@ class MethodSettings
11951246
# @private
11961247
class Representation < Google::Apis::Core::JsonRepresentation
11971248
collection :auto_populated_fields, as: 'autoPopulatedFields'
1249+
property :batching, as: 'batching', class: Google::Apis::ServiceconsumermanagementV1::BatchingConfigProto, decorator: Google::Apis::ServiceconsumermanagementV1::BatchingConfigProto::Representation
1250+
11981251
property :long_running, as: 'longRunning', class: Google::Apis::ServiceconsumermanagementV1::LongRunning, decorator: Google::Apis::ServiceconsumermanagementV1::LongRunning::Representation
11991252

12001253
property :selector, as: 'selector'

0 commit comments

Comments
 (0)