Skip to content

Commit c9926dd

Browse files
feat: Automated regeneration of serviceusage v1 client (googleapis#23213)
Auto-created at 2025-05-21 21:24:38 +0000 using the toys pull request generator.
1 parent 35507c9 commit c9926dd

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
@@ -334987,6 +334987,23 @@
334987334987
"/serviceusage:v1/BatchGetServicesResponse": batch_get_services_response
334988334988
"/serviceusage:v1/BatchGetServicesResponse/services": services
334989334989
"/serviceusage:v1/BatchGetServicesResponse/services/service": service
334990+
"/serviceusage:v1/BatchingConfigProto": batching_config_proto
334991+
"/serviceusage:v1/BatchingConfigProto/batchDescriptor": batch_descriptor
334992+
"/serviceusage:v1/BatchingConfigProto/thresholds": thresholds
334993+
"/serviceusage:v1/BatchingDescriptorProto": batching_descriptor_proto
334994+
"/serviceusage:v1/BatchingDescriptorProto/batchedField": batched_field
334995+
"/serviceusage:v1/BatchingDescriptorProto/discriminatorFields": discriminator_fields
334996+
"/serviceusage:v1/BatchingDescriptorProto/discriminatorFields/discriminator_field": discriminator_field
334997+
"/serviceusage:v1/BatchingDescriptorProto/subresponseField": subresponse_field
334998+
"/serviceusage:v1/BatchingSettingsProto": batching_settings_proto
334999+
"/serviceusage:v1/BatchingSettingsProto/delayThreshold": delay_threshold
335000+
"/serviceusage:v1/BatchingSettingsProto/elementCountLimit": element_count_limit
335001+
"/serviceusage:v1/BatchingSettingsProto/elementCountThreshold": element_count_threshold
335002+
"/serviceusage:v1/BatchingSettingsProto/flowControlByteLimit": flow_control_byte_limit
335003+
"/serviceusage:v1/BatchingSettingsProto/flowControlElementLimit": flow_control_element_limit
335004+
"/serviceusage:v1/BatchingSettingsProto/flowControlLimitExceededBehavior": flow_control_limit_exceeded_behavior
335005+
"/serviceusage:v1/BatchingSettingsProto/requestByteLimit": request_byte_limit
335006+
"/serviceusage:v1/BatchingSettingsProto/requestByteThreshold": request_byte_threshold
334990335007
"/serviceusage:v1/Billing": billing
334991335008
"/serviceusage:v1/Billing/consumerDestinations": consumer_destinations
334992335009
"/serviceusage:v1/Billing/consumerDestinations/consumer_destination": consumer_destination
@@ -335401,6 +335418,7 @@
335401335418
"/serviceusage:v1/MethodSettings": method_settings
335402335419
"/serviceusage:v1/MethodSettings/autoPopulatedFields": auto_populated_fields
335403335420
"/serviceusage:v1/MethodSettings/autoPopulatedFields/auto_populated_field": auto_populated_field
335421+
"/serviceusage:v1/MethodSettings/batching": batching
335404335422
"/serviceusage:v1/MethodSettings/longRunning": long_running
335405335423
"/serviceusage:v1/MethodSettings/selector": selector
335406335424
"/serviceusage:v1/MetricDescriptor": metric_descriptor

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

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,140 @@ def update!(**args)
762762
end
763763
end
764764

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

3833+
# `BatchingConfigProto` defines the batching configuration for an API method.
3834+
# Corresponds to the JSON property `batching`
3835+
# @return [Google::Apis::ServiceusageV1::BatchingConfigProto]
3836+
attr_accessor :batching
3837+
36993838
# Describes settings to use when generating API methods that use the long-
37003839
# running operation pattern. All default values below are from those used in the
37013840
# client library generators (e.g. [Java](https://github.com/googleapis/gapic-
@@ -3720,6 +3859,7 @@ def initialize(**args)
37203859
# Update properties of this object
37213860
def update!(**args)
37223861
@auto_populated_fields = args[:auto_populated_fields] if args.key?(:auto_populated_fields)
3862+
@batching = args[:batching] if args.key?(:batching)
37233863
@long_running = args[:long_running] if args.key?(:long_running)
37243864
@selector = args[:selector] if args.key?(:selector)
37253865
end

generated/google-apis-serviceusage_v1/lib/google/apis/serviceusage_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 ServiceusageV1
1818
# Version of the google-apis-serviceusage_v1 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_v1/lib/google/apis/serviceusage_v1/representations.rb

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
142142
include Google::Apis::Core::JsonObjectSupport
143143
end
144144

145+
class BatchingConfigProto
146+
class Representation < Google::Apis::Core::JsonRepresentation; end
147+
148+
include Google::Apis::Core::JsonObjectSupport
149+
end
150+
151+
class BatchingDescriptorProto
152+
class Representation < Google::Apis::Core::JsonRepresentation; end
153+
154+
include Google::Apis::Core::JsonObjectSupport
155+
end
156+
157+
class BatchingSettingsProto
158+
class Representation < Google::Apis::Core::JsonRepresentation; end
159+
160+
include Google::Apis::Core::JsonObjectSupport
161+
end
162+
145163
class Billing
146164
class Representation < Google::Apis::Core::JsonRepresentation; end
147165

@@ -980,6 +998,39 @@ class Representation < Google::Apis::Core::JsonRepresentation
980998
end
981999
end
9821000

1001+
class BatchingConfigProto
1002+
# @private
1003+
class Representation < Google::Apis::Core::JsonRepresentation
1004+
property :batch_descriptor, as: 'batchDescriptor', class: Google::Apis::ServiceusageV1::BatchingDescriptorProto, decorator: Google::Apis::ServiceusageV1::BatchingDescriptorProto::Representation
1005+
1006+
property :thresholds, as: 'thresholds', class: Google::Apis::ServiceusageV1::BatchingSettingsProto, decorator: Google::Apis::ServiceusageV1::BatchingSettingsProto::Representation
1007+
1008+
end
1009+
end
1010+
1011+
class BatchingDescriptorProto
1012+
# @private
1013+
class Representation < Google::Apis::Core::JsonRepresentation
1014+
property :batched_field, as: 'batchedField'
1015+
collection :discriminator_fields, as: 'discriminatorFields'
1016+
property :subresponse_field, as: 'subresponseField'
1017+
end
1018+
end
1019+
1020+
class BatchingSettingsProto
1021+
# @private
1022+
class Representation < Google::Apis::Core::JsonRepresentation
1023+
property :delay_threshold, as: 'delayThreshold'
1024+
property :element_count_limit, as: 'elementCountLimit'
1025+
property :element_count_threshold, as: 'elementCountThreshold'
1026+
property :flow_control_byte_limit, as: 'flowControlByteLimit'
1027+
property :flow_control_element_limit, as: 'flowControlElementLimit'
1028+
property :flow_control_limit_exceeded_behavior, as: 'flowControlLimitExceededBehavior'
1029+
property :request_byte_limit, as: 'requestByteLimit'
1030+
property :request_byte_threshold, :numeric_string => true, as: 'requestByteThreshold'
1031+
end
1032+
end
1033+
9831034
class Billing
9841035
# @private
9851036
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1714,6 +1765,8 @@ class MethodSettings
17141765
# @private
17151766
class Representation < Google::Apis::Core::JsonRepresentation
17161767
collection :auto_populated_fields, as: 'autoPopulatedFields'
1768+
property :batching, as: 'batching', class: Google::Apis::ServiceusageV1::BatchingConfigProto, decorator: Google::Apis::ServiceusageV1::BatchingConfigProto::Representation
1769+
17171770
property :long_running, as: 'longRunning', class: Google::Apis::ServiceusageV1::LongRunning, decorator: Google::Apis::ServiceusageV1::LongRunning::Representation
17181771

17191772
property :selector, as: 'selector'

0 commit comments

Comments
 (0)