Skip to content

Commit 56240c9

Browse files
feat: Automated regeneration of serviceusage v1beta1 client (googleapis#23180)
Auto-created at 2025-05-21 20:08:28 +0000 using the toys pull request generator.
1 parent b6d8b4e commit 56240c9

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
@@ -335405,6 +335405,23 @@
335405335405
"/serviceusage:v1beta1/BatchEnableServicesResponse/failures/failure": failure
335406335406
"/serviceusage:v1beta1/BatchEnableServicesResponse/services": services
335407335407
"/serviceusage:v1beta1/BatchEnableServicesResponse/services/service": service
335408+
"/serviceusage:v1beta1/BatchingConfigProto": batching_config_proto
335409+
"/serviceusage:v1beta1/BatchingConfigProto/batchDescriptor": batch_descriptor
335410+
"/serviceusage:v1beta1/BatchingConfigProto/thresholds": thresholds
335411+
"/serviceusage:v1beta1/BatchingDescriptorProto": batching_descriptor_proto
335412+
"/serviceusage:v1beta1/BatchingDescriptorProto/batchedField": batched_field
335413+
"/serviceusage:v1beta1/BatchingDescriptorProto/discriminatorFields": discriminator_fields
335414+
"/serviceusage:v1beta1/BatchingDescriptorProto/discriminatorFields/discriminator_field": discriminator_field
335415+
"/serviceusage:v1beta1/BatchingDescriptorProto/subresponseField": subresponse_field
335416+
"/serviceusage:v1beta1/BatchingSettingsProto": batching_settings_proto
335417+
"/serviceusage:v1beta1/BatchingSettingsProto/delayThreshold": delay_threshold
335418+
"/serviceusage:v1beta1/BatchingSettingsProto/elementCountLimit": element_count_limit
335419+
"/serviceusage:v1beta1/BatchingSettingsProto/elementCountThreshold": element_count_threshold
335420+
"/serviceusage:v1beta1/BatchingSettingsProto/flowControlByteLimit": flow_control_byte_limit
335421+
"/serviceusage:v1beta1/BatchingSettingsProto/flowControlElementLimit": flow_control_element_limit
335422+
"/serviceusage:v1beta1/BatchingSettingsProto/flowControlLimitExceededBehavior": flow_control_limit_exceeded_behavior
335423+
"/serviceusage:v1beta1/BatchingSettingsProto/requestByteLimit": request_byte_limit
335424+
"/serviceusage:v1beta1/BatchingSettingsProto/requestByteThreshold": request_byte_threshold
335408335425
"/serviceusage:v1beta1/Billing": billing
335409335426
"/serviceusage:v1beta1/Billing/consumerDestinations": consumer_destinations
335410335427
"/serviceusage:v1beta1/Billing/consumerDestinations/consumer_destination": consumer_destination
@@ -335851,6 +335868,7 @@
335851335868
"/serviceusage:v1beta1/MethodSettings": method_settings
335852335869
"/serviceusage:v1beta1/MethodSettings/autoPopulatedFields": auto_populated_fields
335853335870
"/serviceusage:v1beta1/MethodSettings/autoPopulatedFields/auto_populated_field": auto_populated_field
335871+
"/serviceusage:v1beta1/MethodSettings/batching": batching
335854335872
"/serviceusage:v1beta1/MethodSettings/longRunning": long_running
335855335873
"/serviceusage:v1beta1/MethodSettings/selector": selector
335856335874
"/serviceusage:v1beta1/MetricDescriptor": metric_descriptor

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

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

59
* Regenerated from discovery document revision 20250511

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

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,140 @@ def update!(**args)
745745
end
746746
end
747747

748+
# `BatchingConfigProto` defines the batching configuration for an API method.
749+
class BatchingConfigProto
750+
include Google::Apis::Core::Hashable
751+
752+
# `BatchingDescriptorProto` specifies the fields of the request message to be
753+
# used for batching, and, optionally, the fields of the response message to be
754+
# used for demultiplexing.
755+
# Corresponds to the JSON property `batchDescriptor`
756+
# @return [Google::Apis::ServiceusageV1beta1::BatchingDescriptorProto]
757+
attr_accessor :batch_descriptor
758+
759+
# `BatchingSettingsProto` specifies a set of batching thresholds, each of which
760+
# acts as a trigger to send a batch of messages as a request. At least one
761+
# threshold must be positive nonzero.
762+
# Corresponds to the JSON property `thresholds`
763+
# @return [Google::Apis::ServiceusageV1beta1::BatchingSettingsProto]
764+
attr_accessor :thresholds
765+
766+
def initialize(**args)
767+
update!(**args)
768+
end
769+
770+
# Update properties of this object
771+
def update!(**args)
772+
@batch_descriptor = args[:batch_descriptor] if args.key?(:batch_descriptor)
773+
@thresholds = args[:thresholds] if args.key?(:thresholds)
774+
end
775+
end
776+
777+
# `BatchingDescriptorProto` specifies the fields of the request message to be
778+
# used for batching, and, optionally, the fields of the response message to be
779+
# used for demultiplexing.
780+
class BatchingDescriptorProto
781+
include Google::Apis::Core::Hashable
782+
783+
# The repeated field in the request message to be aggregated by batching.
784+
# Corresponds to the JSON property `batchedField`
785+
# @return [String]
786+
attr_accessor :batched_field
787+
788+
# A list of the fields in the request message. Two requests will be batched
789+
# together only if the values of every field specified in `
790+
# request_discriminator_fields` is equal between the two requests.
791+
# Corresponds to the JSON property `discriminatorFields`
792+
# @return [Array<String>]
793+
attr_accessor :discriminator_fields
794+
795+
# Optional. When present, indicates the field in the response message to be used
796+
# to demultiplex the response into multiple response messages, in correspondence
797+
# with the multiple request messages originally batched together.
798+
# Corresponds to the JSON property `subresponseField`
799+
# @return [String]
800+
attr_accessor :subresponse_field
801+
802+
def initialize(**args)
803+
update!(**args)
804+
end
805+
806+
# Update properties of this object
807+
def update!(**args)
808+
@batched_field = args[:batched_field] if args.key?(:batched_field)
809+
@discriminator_fields = args[:discriminator_fields] if args.key?(:discriminator_fields)
810+
@subresponse_field = args[:subresponse_field] if args.key?(:subresponse_field)
811+
end
812+
end
813+
814+
# `BatchingSettingsProto` specifies a set of batching thresholds, each of which
815+
# acts as a trigger to send a batch of messages as a request. At least one
816+
# threshold must be positive nonzero.
817+
class BatchingSettingsProto
818+
include Google::Apis::Core::Hashable
819+
820+
# The duration after which a batch should be sent, starting from the addition of
821+
# the first message to that batch.
822+
# Corresponds to the JSON property `delayThreshold`
823+
# @return [String]
824+
attr_accessor :delay_threshold
825+
826+
# The maximum number of elements collected in a batch that could be accepted by
827+
# server.
828+
# Corresponds to the JSON property `elementCountLimit`
829+
# @return [Fixnum]
830+
attr_accessor :element_count_limit
831+
832+
# The number of elements of a field collected into a batch which, if exceeded,
833+
# causes the batch to be sent.
834+
# Corresponds to the JSON property `elementCountThreshold`
835+
# @return [Fixnum]
836+
attr_accessor :element_count_threshold
837+
838+
# The maximum size of data allowed by flow control.
839+
# Corresponds to the JSON property `flowControlByteLimit`
840+
# @return [Fixnum]
841+
attr_accessor :flow_control_byte_limit
842+
843+
# The maximum number of elements allowed by flow control.
844+
# Corresponds to the JSON property `flowControlElementLimit`
845+
# @return [Fixnum]
846+
attr_accessor :flow_control_element_limit
847+
848+
# The behavior to take when the flow control limit is exceeded.
849+
# Corresponds to the JSON property `flowControlLimitExceededBehavior`
850+
# @return [String]
851+
attr_accessor :flow_control_limit_exceeded_behavior
852+
853+
# The maximum size of the request that could be accepted by server.
854+
# Corresponds to the JSON property `requestByteLimit`
855+
# @return [Fixnum]
856+
attr_accessor :request_byte_limit
857+
858+
# The aggregated size of the batched field which, if exceeded, causes the batch
859+
# to be sent. This size is computed by aggregating the sizes of the request
860+
# field to be batched, not of the entire request message.
861+
# Corresponds to the JSON property `requestByteThreshold`
862+
# @return [Fixnum]
863+
attr_accessor :request_byte_threshold
864+
865+
def initialize(**args)
866+
update!(**args)
867+
end
868+
869+
# Update properties of this object
870+
def update!(**args)
871+
@delay_threshold = args[:delay_threshold] if args.key?(:delay_threshold)
872+
@element_count_limit = args[:element_count_limit] if args.key?(:element_count_limit)
873+
@element_count_threshold = args[:element_count_threshold] if args.key?(:element_count_threshold)
874+
@flow_control_byte_limit = args[:flow_control_byte_limit] if args.key?(:flow_control_byte_limit)
875+
@flow_control_element_limit = args[:flow_control_element_limit] if args.key?(:flow_control_element_limit)
876+
@flow_control_limit_exceeded_behavior = args[:flow_control_limit_exceeded_behavior] if args.key?(:flow_control_limit_exceeded_behavior)
877+
@request_byte_limit = args[:request_byte_limit] if args.key?(:request_byte_limit)
878+
@request_byte_threshold = args[:request_byte_threshold] if args.key?(:request_byte_threshold)
879+
end
880+
end
881+
748882
# Billing related configuration of the service. The following example shows how
749883
# to configure monitored resources and metrics for billing, `
750884
# consumer_destinations` is the only supported destination and the monitored
@@ -3931,6 +4065,11 @@ class MethodSettings
39314065
# @return [Array<String>]
39324066
attr_accessor :auto_populated_fields
39334067

4068+
# `BatchingConfigProto` defines the batching configuration for an API method.
4069+
# Corresponds to the JSON property `batching`
4070+
# @return [Google::Apis::ServiceusageV1beta1::BatchingConfigProto]
4071+
attr_accessor :batching
4072+
39344073
# Describes settings to use when generating API methods that use the long-
39354074
# running operation pattern. All default values below are from those used in the
39364075
# client library generators (e.g. [Java](https://github.com/googleapis/gapic-
@@ -3955,6 +4094,7 @@ def initialize(**args)
39554094
# Update properties of this object
39564095
def update!(**args)
39574096
@auto_populated_fields = args[:auto_populated_fields] if args.key?(:auto_populated_fields)
4097+
@batching = args[:batching] if args.key?(:batching)
39584098
@long_running = args[:long_running] if args.key?(:long_running)
39594099
@selector = args[:selector] if args.key?(:selector)
39604100
end

generated/google-apis-serviceusage_v1beta1/lib/google/apis/serviceusage_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 ServiceusageV1beta1
1818
# Version of the google-apis-serviceusage_v1beta1 gem
19-
GEM_VERSION = "0.67.0"
19+
GEM_VERSION = "0.68.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-serviceusage_v1beta1/lib/google/apis/serviceusage_v1beta1/representations.rb

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
136136
include Google::Apis::Core::JsonObjectSupport
137137
end
138138

139+
class BatchingConfigProto
140+
class Representation < Google::Apis::Core::JsonRepresentation; end
141+
142+
include Google::Apis::Core::JsonObjectSupport
143+
end
144+
145+
class BatchingDescriptorProto
146+
class Representation < Google::Apis::Core::JsonRepresentation; end
147+
148+
include Google::Apis::Core::JsonObjectSupport
149+
end
150+
151+
class BatchingSettingsProto
152+
class Representation < Google::Apis::Core::JsonRepresentation; end
153+
154+
include Google::Apis::Core::JsonObjectSupport
155+
end
156+
139157
class Billing
140158
class Representation < Google::Apis::Core::JsonRepresentation; end
141159

@@ -1038,6 +1056,39 @@ class Representation < Google::Apis::Core::JsonRepresentation
10381056
end
10391057
end
10401058

1059+
class BatchingConfigProto
1060+
# @private
1061+
class Representation < Google::Apis::Core::JsonRepresentation
1062+
property :batch_descriptor, as: 'batchDescriptor', class: Google::Apis::ServiceusageV1beta1::BatchingDescriptorProto, decorator: Google::Apis::ServiceusageV1beta1::BatchingDescriptorProto::Representation
1063+
1064+
property :thresholds, as: 'thresholds', class: Google::Apis::ServiceusageV1beta1::BatchingSettingsProto, decorator: Google::Apis::ServiceusageV1beta1::BatchingSettingsProto::Representation
1065+
1066+
end
1067+
end
1068+
1069+
class BatchingDescriptorProto
1070+
# @private
1071+
class Representation < Google::Apis::Core::JsonRepresentation
1072+
property :batched_field, as: 'batchedField'
1073+
collection :discriminator_fields, as: 'discriminatorFields'
1074+
property :subresponse_field, as: 'subresponseField'
1075+
end
1076+
end
1077+
1078+
class BatchingSettingsProto
1079+
# @private
1080+
class Representation < Google::Apis::Core::JsonRepresentation
1081+
property :delay_threshold, as: 'delayThreshold'
1082+
property :element_count_limit, as: 'elementCountLimit'
1083+
property :element_count_threshold, as: 'elementCountThreshold'
1084+
property :flow_control_byte_limit, as: 'flowControlByteLimit'
1085+
property :flow_control_element_limit, as: 'flowControlElementLimit'
1086+
property :flow_control_limit_exceeded_behavior, as: 'flowControlLimitExceededBehavior'
1087+
property :request_byte_limit, as: 'requestByteLimit'
1088+
property :request_byte_threshold, :numeric_string => true, as: 'requestByteThreshold'
1089+
end
1090+
end
1091+
10411092
class Billing
10421093
# @private
10431094
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1839,6 +1890,8 @@ class MethodSettings
18391890
# @private
18401891
class Representation < Google::Apis::Core::JsonRepresentation
18411892
collection :auto_populated_fields, as: 'autoPopulatedFields'
1893+
property :batching, as: 'batching', class: Google::Apis::ServiceusageV1beta1::BatchingConfigProto, decorator: Google::Apis::ServiceusageV1beta1::BatchingConfigProto::Representation
1894+
18421895
property :long_running, as: 'longRunning', class: Google::Apis::ServiceusageV1beta1::LongRunning, decorator: Google::Apis::ServiceusageV1beta1::LongRunning::Representation
18431896

18441897
property :selector, as: 'selector'

0 commit comments

Comments
 (0)