Skip to content

Commit 98bf3bc

Browse files
feat: Automated regeneration of servicenetworking v1beta client (googleapis#23205)
Auto-created at 2025-05-21 21:08:39 +0000 using the toys pull request generator.
1 parent 8180766 commit 98bf3bc

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
@@ -334313,6 +334313,23 @@
334313334313
"/servicenetworking:v1beta/BackendRule/pathTranslation": path_translation
334314334314
"/servicenetworking:v1beta/BackendRule/protocol": protocol
334315334315
"/servicenetworking:v1beta/BackendRule/selector": selector
334316+
"/servicenetworking:v1beta/BatchingConfigProto": batching_config_proto
334317+
"/servicenetworking:v1beta/BatchingConfigProto/batchDescriptor": batch_descriptor
334318+
"/servicenetworking:v1beta/BatchingConfigProto/thresholds": thresholds
334319+
"/servicenetworking:v1beta/BatchingDescriptorProto": batching_descriptor_proto
334320+
"/servicenetworking:v1beta/BatchingDescriptorProto/batchedField": batched_field
334321+
"/servicenetworking:v1beta/BatchingDescriptorProto/discriminatorFields": discriminator_fields
334322+
"/servicenetworking:v1beta/BatchingDescriptorProto/discriminatorFields/discriminator_field": discriminator_field
334323+
"/servicenetworking:v1beta/BatchingDescriptorProto/subresponseField": subresponse_field
334324+
"/servicenetworking:v1beta/BatchingSettingsProto": batching_settings_proto
334325+
"/servicenetworking:v1beta/BatchingSettingsProto/delayThreshold": delay_threshold
334326+
"/servicenetworking:v1beta/BatchingSettingsProto/elementCountLimit": element_count_limit
334327+
"/servicenetworking:v1beta/BatchingSettingsProto/elementCountThreshold": element_count_threshold
334328+
"/servicenetworking:v1beta/BatchingSettingsProto/flowControlByteLimit": flow_control_byte_limit
334329+
"/servicenetworking:v1beta/BatchingSettingsProto/flowControlElementLimit": flow_control_element_limit
334330+
"/servicenetworking:v1beta/BatchingSettingsProto/flowControlLimitExceededBehavior": flow_control_limit_exceeded_behavior
334331+
"/servicenetworking:v1beta/BatchingSettingsProto/requestByteLimit": request_byte_limit
334332+
"/servicenetworking:v1beta/BatchingSettingsProto/requestByteThreshold": request_byte_threshold
334316334333
"/servicenetworking:v1beta/Billing": billing
334317334334
"/servicenetworking:v1beta/Billing/consumerDestinations": consumer_destinations
334318334335
"/servicenetworking:v1beta/Billing/consumerDestinations/consumer_destination": consumer_destination
@@ -334568,6 +334585,7 @@
334568334585
"/servicenetworking:v1beta/MethodSettings": method_settings
334569334586
"/servicenetworking:v1beta/MethodSettings/autoPopulatedFields": auto_populated_fields
334570334587
"/servicenetworking:v1beta/MethodSettings/autoPopulatedFields/auto_populated_field": auto_populated_field
334588+
"/servicenetworking:v1beta/MethodSettings/batching": batching
334571334589
"/servicenetworking:v1beta/MethodSettings/longRunning": long_running
334572334590
"/servicenetworking:v1beta/MethodSettings/selector": selector
334573334591
"/servicenetworking:v1beta/MetricDescriptor": metric_descriptor

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

3+
### v0.63.0 (2025-05-21)
4+
5+
* Regenerated from discovery document revision 20250518
6+
37
### v0.62.0 (2025-05-11)
48

59
* Regenerated from discovery document revision 20250506

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

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,140 @@ def update!(**args)
617617
end
618618
end
619619

620+
# `BatchingConfigProto` defines the batching configuration for an API method.
621+
class BatchingConfigProto
622+
include Google::Apis::Core::Hashable
623+
624+
# `BatchingDescriptorProto` specifies the fields of the request message to be
625+
# used for batching, and, optionally, the fields of the response message to be
626+
# used for demultiplexing.
627+
# Corresponds to the JSON property `batchDescriptor`
628+
# @return [Google::Apis::ServicenetworkingV1beta::BatchingDescriptorProto]
629+
attr_accessor :batch_descriptor
630+
631+
# `BatchingSettingsProto` specifies a set of batching thresholds, each of which
632+
# acts as a trigger to send a batch of messages as a request. At least one
633+
# threshold must be positive nonzero.
634+
# Corresponds to the JSON property `thresholds`
635+
# @return [Google::Apis::ServicenetworkingV1beta::BatchingSettingsProto]
636+
attr_accessor :thresholds
637+
638+
def initialize(**args)
639+
update!(**args)
640+
end
641+
642+
# Update properties of this object
643+
def update!(**args)
644+
@batch_descriptor = args[:batch_descriptor] if args.key?(:batch_descriptor)
645+
@thresholds = args[:thresholds] if args.key?(:thresholds)
646+
end
647+
end
648+
649+
# `BatchingDescriptorProto` specifies the fields of the request message to be
650+
# used for batching, and, optionally, the fields of the response message to be
651+
# used for demultiplexing.
652+
class BatchingDescriptorProto
653+
include Google::Apis::Core::Hashable
654+
655+
# The repeated field in the request message to be aggregated by batching.
656+
# Corresponds to the JSON property `batchedField`
657+
# @return [String]
658+
attr_accessor :batched_field
659+
660+
# A list of the fields in the request message. Two requests will be batched
661+
# together only if the values of every field specified in `
662+
# request_discriminator_fields` is equal between the two requests.
663+
# Corresponds to the JSON property `discriminatorFields`
664+
# @return [Array<String>]
665+
attr_accessor :discriminator_fields
666+
667+
# Optional. When present, indicates the field in the response message to be used
668+
# to demultiplex the response into multiple response messages, in correspondence
669+
# with the multiple request messages originally batched together.
670+
# Corresponds to the JSON property `subresponseField`
671+
# @return [String]
672+
attr_accessor :subresponse_field
673+
674+
def initialize(**args)
675+
update!(**args)
676+
end
677+
678+
# Update properties of this object
679+
def update!(**args)
680+
@batched_field = args[:batched_field] if args.key?(:batched_field)
681+
@discriminator_fields = args[:discriminator_fields] if args.key?(:discriminator_fields)
682+
@subresponse_field = args[:subresponse_field] if args.key?(:subresponse_field)
683+
end
684+
end
685+
686+
# `BatchingSettingsProto` specifies a set of batching thresholds, each of which
687+
# acts as a trigger to send a batch of messages as a request. At least one
688+
# threshold must be positive nonzero.
689+
class BatchingSettingsProto
690+
include Google::Apis::Core::Hashable
691+
692+
# The duration after which a batch should be sent, starting from the addition of
693+
# the first message to that batch.
694+
# Corresponds to the JSON property `delayThreshold`
695+
# @return [String]
696+
attr_accessor :delay_threshold
697+
698+
# The maximum number of elements collected in a batch that could be accepted by
699+
# server.
700+
# Corresponds to the JSON property `elementCountLimit`
701+
# @return [Fixnum]
702+
attr_accessor :element_count_limit
703+
704+
# The number of elements of a field collected into a batch which, if exceeded,
705+
# causes the batch to be sent.
706+
# Corresponds to the JSON property `elementCountThreshold`
707+
# @return [Fixnum]
708+
attr_accessor :element_count_threshold
709+
710+
# The maximum size of data allowed by flow control.
711+
# Corresponds to the JSON property `flowControlByteLimit`
712+
# @return [Fixnum]
713+
attr_accessor :flow_control_byte_limit
714+
715+
# The maximum number of elements allowed by flow control.
716+
# Corresponds to the JSON property `flowControlElementLimit`
717+
# @return [Fixnum]
718+
attr_accessor :flow_control_element_limit
719+
720+
# The behavior to take when the flow control limit is exceeded.
721+
# Corresponds to the JSON property `flowControlLimitExceededBehavior`
722+
# @return [String]
723+
attr_accessor :flow_control_limit_exceeded_behavior
724+
725+
# The maximum size of the request that could be accepted by server.
726+
# Corresponds to the JSON property `requestByteLimit`
727+
# @return [Fixnum]
728+
attr_accessor :request_byte_limit
729+
730+
# The aggregated size of the batched field which, if exceeded, causes the batch
731+
# to be sent. This size is computed by aggregating the sizes of the request
732+
# field to be batched, not of the entire request message.
733+
# Corresponds to the JSON property `requestByteThreshold`
734+
# @return [Fixnum]
735+
attr_accessor :request_byte_threshold
736+
737+
def initialize(**args)
738+
update!(**args)
739+
end
740+
741+
# Update properties of this object
742+
def update!(**args)
743+
@delay_threshold = args[:delay_threshold] if args.key?(:delay_threshold)
744+
@element_count_limit = args[:element_count_limit] if args.key?(:element_count_limit)
745+
@element_count_threshold = args[:element_count_threshold] if args.key?(:element_count_threshold)
746+
@flow_control_byte_limit = args[:flow_control_byte_limit] if args.key?(:flow_control_byte_limit)
747+
@flow_control_element_limit = args[:flow_control_element_limit] if args.key?(:flow_control_element_limit)
748+
@flow_control_limit_exceeded_behavior = args[:flow_control_limit_exceeded_behavior] if args.key?(:flow_control_limit_exceeded_behavior)
749+
@request_byte_limit = args[:request_byte_limit] if args.key?(:request_byte_limit)
750+
@request_byte_threshold = args[:request_byte_threshold] if args.key?(:request_byte_threshold)
751+
end
752+
end
753+
620754
# Billing related configuration of the service. The following example shows how
621755
# to configure monitored resources and metrics for billing, `
622756
# consumer_destinations` is the only supported destination and the monitored
@@ -2593,6 +2727,11 @@ class MethodSettings
25932727
# @return [Array<String>]
25942728
attr_accessor :auto_populated_fields
25952729

2730+
# `BatchingConfigProto` defines the batching configuration for an API method.
2731+
# Corresponds to the JSON property `batching`
2732+
# @return [Google::Apis::ServicenetworkingV1beta::BatchingConfigProto]
2733+
attr_accessor :batching
2734+
25962735
# Describes settings to use when generating API methods that use the long-
25972736
# running operation pattern. All default values below are from those used in the
25982737
# client library generators (e.g. [Java](https://github.com/googleapis/gapic-
@@ -2617,6 +2756,7 @@ def initialize(**args)
26172756
# Update properties of this object
26182757
def update!(**args)
26192758
@auto_populated_fields = args[:auto_populated_fields] if args.key?(:auto_populated_fields)
2759+
@batching = args[:batching] if args.key?(:batching)
26202760
@long_running = args[:long_running] if args.key?(:long_running)
26212761
@selector = args[:selector] if args.key?(:selector)
26222762
end

generated/google-apis-servicenetworking_v1beta/lib/google/apis/servicenetworking_v1beta/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 ServicenetworkingV1beta
1818
# Version of the google-apis-servicenetworking_v1beta gem
19-
GEM_VERSION = "0.62.0"
19+
GEM_VERSION = "0.63.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 = "20250506"
25+
REVISION = "20250518"
2626
end
2727
end
2828
end

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

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
106106
include Google::Apis::Core::JsonObjectSupport
107107
end
108108

109+
class BatchingConfigProto
110+
class Representation < Google::Apis::Core::JsonRepresentation; end
111+
112+
include Google::Apis::Core::JsonObjectSupport
113+
end
114+
115+
class BatchingDescriptorProto
116+
class Representation < Google::Apis::Core::JsonRepresentation; end
117+
118+
include Google::Apis::Core::JsonObjectSupport
119+
end
120+
121+
class BatchingSettingsProto
122+
class Representation < Google::Apis::Core::JsonRepresentation; end
123+
124+
include Google::Apis::Core::JsonObjectSupport
125+
end
126+
109127
class Billing
110128
class Representation < Google::Apis::Core::JsonRepresentation; end
111129

@@ -784,6 +802,39 @@ class Representation < Google::Apis::Core::JsonRepresentation
784802
end
785803
end
786804

805+
class BatchingConfigProto
806+
# @private
807+
class Representation < Google::Apis::Core::JsonRepresentation
808+
property :batch_descriptor, as: 'batchDescriptor', class: Google::Apis::ServicenetworkingV1beta::BatchingDescriptorProto, decorator: Google::Apis::ServicenetworkingV1beta::BatchingDescriptorProto::Representation
809+
810+
property :thresholds, as: 'thresholds', class: Google::Apis::ServicenetworkingV1beta::BatchingSettingsProto, decorator: Google::Apis::ServicenetworkingV1beta::BatchingSettingsProto::Representation
811+
812+
end
813+
end
814+
815+
class BatchingDescriptorProto
816+
# @private
817+
class Representation < Google::Apis::Core::JsonRepresentation
818+
property :batched_field, as: 'batchedField'
819+
collection :discriminator_fields, as: 'discriminatorFields'
820+
property :subresponse_field, as: 'subresponseField'
821+
end
822+
end
823+
824+
class BatchingSettingsProto
825+
# @private
826+
class Representation < Google::Apis::Core::JsonRepresentation
827+
property :delay_threshold, as: 'delayThreshold'
828+
property :element_count_limit, as: 'elementCountLimit'
829+
property :element_count_threshold, as: 'elementCountThreshold'
830+
property :flow_control_byte_limit, as: 'flowControlByteLimit'
831+
property :flow_control_element_limit, as: 'flowControlElementLimit'
832+
property :flow_control_limit_exceeded_behavior, as: 'flowControlLimitExceededBehavior'
833+
property :request_byte_limit, as: 'requestByteLimit'
834+
property :request_byte_threshold, :numeric_string => true, as: 'requestByteThreshold'
835+
end
836+
end
837+
787838
class Billing
788839
# @private
789840
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1250,6 +1301,8 @@ class MethodSettings
12501301
# @private
12511302
class Representation < Google::Apis::Core::JsonRepresentation
12521303
collection :auto_populated_fields, as: 'autoPopulatedFields'
1304+
property :batching, as: 'batching', class: Google::Apis::ServicenetworkingV1beta::BatchingConfigProto, decorator: Google::Apis::ServicenetworkingV1beta::BatchingConfigProto::Representation
1305+
12531306
property :long_running, as: 'longRunning', class: Google::Apis::ServicenetworkingV1beta::LongRunning, decorator: Google::Apis::ServicenetworkingV1beta::LongRunning::Representation
12541307

12551308
property :selector, as: 'selector'

0 commit comments

Comments
 (0)