Skip to content

Commit b96ab05

Browse files
feat: Automated regeneration of servicenetworking v1 client (googleapis#21883)
Auto-created at 2025-02-26 21:30:18 +0000 using the toys pull request generator.
1 parent a087e0c commit b96ab05

File tree

5 files changed

+105
-7
lines changed

5 files changed

+105
-7
lines changed

api_names_out.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322044,6 +322044,10 @@
322044322044
"/servicenetworking:v1/Api/sourceContext": source_context
322045322045
"/servicenetworking:v1/Api/syntax": syntax
322046322046
"/servicenetworking:v1/Api/version": version
322047+
"/servicenetworking:v1/Aspect": aspect
322048+
"/servicenetworking:v1/Aspect/kind": kind
322049+
"/servicenetworking:v1/Aspect/spec": spec
322050+
"/servicenetworking:v1/Aspect/spec/spec": spec
322047322051
"/servicenetworking:v1/AuthProvider": auth_provider
322048322052
"/servicenetworking:v1/AuthProvider/audiences": audiences
322049322053
"/servicenetworking:v1/AuthProvider/authorizationUrl": authorization_url
@@ -322076,6 +322080,7 @@
322076322080
"/servicenetworking:v1/BackendRule/deadline": deadline
322077322081
"/servicenetworking:v1/BackendRule/disableAuth": disable_auth
322078322082
"/servicenetworking:v1/BackendRule/jwtAudience": jwt_audience
322083+
"/servicenetworking:v1/BackendRule/loadBalancingPolicy": load_balancing_policy
322079322084
"/servicenetworking:v1/BackendRule/minDeadline": min_deadline
322080322085
"/servicenetworking:v1/BackendRule/operationDeadline": operation_deadline
322081322086
"/servicenetworking:v1/BackendRule/overridesByRequestProtocol": overrides_by_request_protocol
@@ -322245,6 +322250,7 @@
322245322250
"/servicenetworking:v1/ExperimentalFeatures": experimental_features
322246322251
"/servicenetworking:v1/ExperimentalFeatures/protobufPythonicTypesEnabled": protobuf_pythonic_types_enabled
322247322252
"/servicenetworking:v1/ExperimentalFeatures/restAsyncIoEnabled": rest_async_io_enabled
322253+
"/servicenetworking:v1/ExperimentalFeatures/unversionedPackageDisabled": unversioned_package_disabled
322248322254
"/servicenetworking:v1/Field": field
322249322255
"/servicenetworking:v1/Field/cardinality": cardinality
322250322256
"/servicenetworking:v1/Field/defaultValue": default_value
@@ -322522,11 +322528,14 @@
322522322528
"/servicenetworking:v1/SecondaryIpRangeSpec/rangeName": range_name
322523322529
"/servicenetworking:v1/SecondaryIpRangeSpec/requestedAddress": requested_address
322524322530
"/servicenetworking:v1/SelectiveGapicGeneration": selective_gapic_generation
322531+
"/servicenetworking:v1/SelectiveGapicGeneration/generateOmittedAsInternal": generate_omitted_as_internal
322525322532
"/servicenetworking:v1/SelectiveGapicGeneration/methods": methods_prop
322526322533
"/servicenetworking:v1/SelectiveGapicGeneration/methods/methods_prop": methods_prop
322527322534
"/servicenetworking:v1/Service": service
322528322535
"/servicenetworking:v1/Service/apis": apis
322529322536
"/servicenetworking:v1/Service/apis/api": api
322537+
"/servicenetworking:v1/Service/aspects": aspects
322538+
"/servicenetworking:v1/Service/aspects/aspect": aspect
322530322539
"/servicenetworking:v1/Service/authentication": authentication
322531322540
"/servicenetworking:v1/Service/backend": backend
322532322541
"/servicenetworking:v1/Service/billing": billing

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

3+
### v0.72.0 (2025-02-26)
4+
5+
* Regenerated from discovery document revision 20250218
6+
37
### v0.71.0 (2025-01-12)
48

59
* Regenerated from discovery document revision 20250107

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

Lines changed: 71 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,33 @@ def update!(**args)
483483
end
484484
end
485485

486+
# Aspect represents Generic aspect. It is used to configure an aspect without
487+
# making direct changes to service.proto
488+
class Aspect
489+
include Google::Apis::Core::Hashable
490+
491+
# The type of this aspect configuration.
492+
# Corresponds to the JSON property `kind`
493+
# @return [String]
494+
attr_accessor :kind
495+
496+
# Content of the configuration. The underlying schema should be defined by
497+
# Aspect owners as protobuf message under `apiserving/configaspects/proto`.
498+
# Corresponds to the JSON property `spec`
499+
# @return [Hash<String,Object>]
500+
attr_accessor :spec
501+
502+
def initialize(**args)
503+
update!(**args)
504+
end
505+
506+
# Update properties of this object
507+
def update!(**args)
508+
@kind = args[:kind] if args.key?(:kind)
509+
@spec = args[:spec] if args.key?(:spec)
510+
end
511+
end
512+
486513
# Configuration for an authentication provider, including support for [JSON Web
487514
# Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
488515
class AuthProvider
@@ -740,6 +767,14 @@ class BackendRule
740767
# @return [String]
741768
attr_accessor :jwt_audience
742769

770+
# The load balancing policy used for connection to the application backend.
771+
# Defined as an arbitrary string to accomondate custom load balancing policies
772+
# supported by the underlying channel, but suggest most users use one of the
773+
# standard policies, such as the default, "RoundRobin".
774+
# Corresponds to the JSON property `loadBalancingPolicy`
775+
# @return [String]
776+
attr_accessor :load_balancing_policy
777+
743778
# Deprecated, do not use.
744779
# Corresponds to the JSON property `minDeadline`
745780
# @return [Float]
@@ -790,6 +825,7 @@ def update!(**args)
790825
@deadline = args[:deadline] if args.key?(:deadline)
791826
@disable_auth = args[:disable_auth] if args.key?(:disable_auth)
792827
@jwt_audience = args[:jwt_audience] if args.key?(:jwt_audience)
828+
@load_balancing_policy = args[:load_balancing_policy] if args.key?(:load_balancing_policy)
793829
@min_deadline = args[:min_deadline] if args.key?(:min_deadline)
794830
@operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline)
795831
@overrides_by_request_protocol = args[:overrides_by_request_protocol] if args.key?(:overrides_by_request_protocol)
@@ -1651,9 +1687,8 @@ class Documentation
16511687
# @return [Array<Google::Apis::ServicenetworkingV1::DocumentationRule>]
16521688
attr_accessor :rules
16531689

1654-
# Specifies section and content to override boilerplate content provided by go/
1655-
# api-docgen. Currently overrides following sections: 1. rest.service.
1656-
# client_libraries
1690+
# Specifies section and content to override the boilerplate content. Currently
1691+
# overrides following sections: 1. rest.service.client_libraries
16571692
# Corresponds to the JSON property `sectionOverrides`
16581693
# @return [Array<Google::Apis::ServicenetworkingV1::Page>]
16591694
attr_accessor :section_overrides
@@ -1707,7 +1742,7 @@ class DocumentationRule
17071742
attr_accessor :description
17081743

17091744
# String of comma or space separated case-sensitive words for which method/field
1710-
# name replacement will be disabled by go/api-docgen.
1745+
# name replacement will be disabled.
17111746
# Corresponds to the JSON property `disableReplacementWords`
17121747
# @return [String]
17131748
attr_accessor :disable_replacement_words
@@ -1994,6 +2029,15 @@ class ExperimentalFeatures
19942029
attr_accessor :rest_async_io_enabled
19952030
alias_method :rest_async_io_enabled?, :rest_async_io_enabled
19962031

2032+
# Disables generation of an unversioned Python package for this client library.
2033+
# This means that the module names will need to be versioned in import
2034+
# statements. For example `import google.cloud.library_v2` instead of `import
2035+
# google.cloud.library`.
2036+
# Corresponds to the JSON property `unversionedPackageDisabled`
2037+
# @return [Boolean]
2038+
attr_accessor :unversioned_package_disabled
2039+
alias_method :unversioned_package_disabled?, :unversioned_package_disabled
2040+
19972041
def initialize(**args)
19982042
update!(**args)
19992043
end
@@ -2002,6 +2046,7 @@ def initialize(**args)
20022046
def update!(**args)
20032047
@protobuf_pythonic_types_enabled = args[:protobuf_pythonic_types_enabled] if args.key?(:protobuf_pythonic_types_enabled)
20042048
@rest_async_io_enabled = args[:rest_async_io_enabled] if args.key?(:rest_async_io_enabled)
2049+
@unversioned_package_disabled = args[:unversioned_package_disabled] if args.key?(:unversioned_package_disabled)
20052050
end
20062051
end
20072052

@@ -3617,7 +3662,7 @@ def update!(**args)
36173662
class Page
36183663
include Google::Apis::Core::Hashable
36193664

3620-
# The Markdown content of the page. You can use (== include `path` ==) to
3665+
# The Markdown content of the page. You can use ```(== include `path` ==)``` to
36213666
# include content from a Markdown file. The content can be used to produce the
36223667
# documentation page such as HTML format page.
36233668
# Corresponds to the JSON property `content`
@@ -4399,6 +4444,17 @@ def update!(**args)
43994444
class SelectiveGapicGeneration
44004445
include Google::Apis::Core::Hashable
44014446

4447+
# Setting this to true indicates to the client generators that methods that
4448+
# would be excluded from the generation should instead be generated in a way
4449+
# that indicates these methods should not be consumed by end users. How this is
4450+
# expressed is up to individual language implementations to decide. Some
4451+
# examples may be: added annotations, obfuscated identifiers, or other language
4452+
# idiomatic patterns.
4453+
# Corresponds to the JSON property `generateOmittedAsInternal`
4454+
# @return [Boolean]
4455+
attr_accessor :generate_omitted_as_internal
4456+
alias_method :generate_omitted_as_internal?, :generate_omitted_as_internal
4457+
44024458
# An allowlist of the fully qualified names of RPCs that should be included on
44034459
# public client surfaces.
44044460
# Corresponds to the JSON property `methods`
@@ -4411,6 +4467,7 @@ def initialize(**args)
44114467

44124468
# Update properties of this object
44134469
def update!(**args)
4470+
@generate_omitted_as_internal = args[:generate_omitted_as_internal] if args.key?(:generate_omitted_as_internal)
44144471
@methods_prop = args[:methods_prop] if args.key?(:methods_prop)
44154472
end
44164473
end
@@ -4440,6 +4497,14 @@ class Service
44404497
# @return [Array<Google::Apis::ServicenetworkingV1::Api>]
44414498
attr_accessor :apis
44424499

4500+
# Configuration aspects. This is a repeated field to allow multiple aspects to
4501+
# be configured. The kind field in each ConfigAspect specifies the type of
4502+
# aspect. The spec field contains the configuration for that aspect. The schema
4503+
# for the spec field is defined by the backend service owners.
4504+
# Corresponds to the JSON property `aspects`
4505+
# @return [Array<Google::Apis::ServicenetworkingV1::Aspect>]
4506+
attr_accessor :aspects
4507+
44434508
# `Authentication` defines the authentication configuration for API methods
44444509
# provided by an API service. Example: name: calendar.googleapis.com
44454510
# authentication: providers: - id: google_calendar_auth jwks_uri: https://www.
@@ -4719,6 +4784,7 @@ def initialize(**args)
47194784
# Update properties of this object
47204785
def update!(**args)
47214786
@apis = args[:apis] if args.key?(:apis)
4787+
@aspects = args[:aspects] if args.key?(:aspects)
47224788
@authentication = args[:authentication] if args.key?(:authentication)
47234789
@backend = args[:backend] if args.key?(:backend)
47244790
@billing = args[:billing] if args.key?(:billing)

generated/google-apis-servicenetworking_v1/lib/google/apis/servicenetworking_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 ServicenetworkingV1
1818
# Version of the google-apis-servicenetworking_v1 gem
19-
GEM_VERSION = "0.71.0"
19+
GEM_VERSION = "0.72.0"
2020

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

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

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
8282
include Google::Apis::Core::JsonObjectSupport
8383
end
8484

85+
class Aspect
86+
class Representation < Google::Apis::Core::JsonRepresentation; end
87+
88+
include Google::Apis::Core::JsonObjectSupport
89+
end
90+
8591
class AuthProvider
8692
class Representation < Google::Apis::Core::JsonRepresentation; end
8793

@@ -880,6 +886,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
880886
end
881887
end
882888

889+
class Aspect
890+
# @private
891+
class Representation < Google::Apis::Core::JsonRepresentation
892+
property :kind, as: 'kind'
893+
hash :spec, as: 'spec'
894+
end
895+
end
896+
883897
class AuthProvider
884898
# @private
885899
class Representation < Google::Apis::Core::JsonRepresentation
@@ -938,6 +952,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
938952
property :deadline, as: 'deadline'
939953
property :disable_auth, as: 'disableAuth'
940954
property :jwt_audience, as: 'jwtAudience'
955+
property :load_balancing_policy, as: 'loadBalancingPolicy'
941956
property :min_deadline, as: 'minDeadline'
942957
property :operation_deadline, as: 'operationDeadline'
943958
hash :overrides_by_request_protocol, as: 'overridesByRequestProtocol', class: Google::Apis::ServicenetworkingV1::BackendRule, decorator: Google::Apis::ServicenetworkingV1::BackendRule::Representation
@@ -1266,6 +1281,7 @@ class ExperimentalFeatures
12661281
class Representation < Google::Apis::Core::JsonRepresentation
12671282
property :protobuf_pythonic_types_enabled, as: 'protobufPythonicTypesEnabled'
12681283
property :rest_async_io_enabled, as: 'restAsyncIoEnabled'
1284+
property :unversioned_package_disabled, as: 'unversionedPackageDisabled'
12691285
end
12701286
end
12711287

@@ -1832,6 +1848,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
18321848
class SelectiveGapicGeneration
18331849
# @private
18341850
class Representation < Google::Apis::Core::JsonRepresentation
1851+
property :generate_omitted_as_internal, as: 'generateOmittedAsInternal'
18351852
collection :methods_prop, as: 'methods'
18361853
end
18371854
end
@@ -1841,6 +1858,8 @@ class Service
18411858
class Representation < Google::Apis::Core::JsonRepresentation
18421859
collection :apis, as: 'apis', class: Google::Apis::ServicenetworkingV1::Api, decorator: Google::Apis::ServicenetworkingV1::Api::Representation
18431860

1861+
collection :aspects, as: 'aspects', class: Google::Apis::ServicenetworkingV1::Aspect, decorator: Google::Apis::ServicenetworkingV1::Aspect::Representation
1862+
18441863
property :authentication, as: 'authentication', class: Google::Apis::ServicenetworkingV1::Authentication, decorator: Google::Apis::ServicenetworkingV1::Authentication::Representation
18451864

18461865
property :backend, as: 'backend', class: Google::Apis::ServicenetworkingV1::Backend, decorator: Google::Apis::ServicenetworkingV1::Backend::Representation

0 commit comments

Comments
 (0)