Skip to content

Commit 01c4b3f

Browse files
feat: Automated regeneration of servicenetworking v1beta client (googleapis#21873)
Auto-created at 2025-02-26 21:24:17 +0000 using the toys pull request generator.
1 parent baae942 commit 01c4b3f

File tree

5 files changed

+107
-8
lines changed

5 files changed

+107
-8
lines changed

api_names_out.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322677,6 +322677,10 @@
322677322677
"/servicenetworking:v1beta/Api/sourceContext": source_context
322678322678
"/servicenetworking:v1beta/Api/syntax": syntax
322679322679
"/servicenetworking:v1beta/Api/version": version
322680+
"/servicenetworking:v1beta/Aspect": aspect
322681+
"/servicenetworking:v1beta/Aspect/kind": kind
322682+
"/servicenetworking:v1beta/Aspect/spec": spec
322683+
"/servicenetworking:v1beta/Aspect/spec/spec": spec
322680322684
"/servicenetworking:v1beta/AuthProvider": auth_provider
322681322685
"/servicenetworking:v1beta/AuthProvider/audiences": audiences
322682322686
"/servicenetworking:v1beta/AuthProvider/authorizationUrl": authorization_url
@@ -322709,6 +322713,7 @@
322709322713
"/servicenetworking:v1beta/BackendRule/deadline": deadline
322710322714
"/servicenetworking:v1beta/BackendRule/disableAuth": disable_auth
322711322715
"/servicenetworking:v1beta/BackendRule/jwtAudience": jwt_audience
322716+
"/servicenetworking:v1beta/BackendRule/loadBalancingPolicy": load_balancing_policy
322712322717
"/servicenetworking:v1beta/BackendRule/minDeadline": min_deadline
322713322718
"/servicenetworking:v1beta/BackendRule/operationDeadline": operation_deadline
322714322719
"/servicenetworking:v1beta/BackendRule/overridesByRequestProtocol": overrides_by_request_protocol
@@ -322865,6 +322870,7 @@
322865322870
"/servicenetworking:v1beta/ExperimentalFeatures": experimental_features
322866322871
"/servicenetworking:v1beta/ExperimentalFeatures/protobufPythonicTypesEnabled": protobuf_pythonic_types_enabled
322867322872
"/servicenetworking:v1beta/ExperimentalFeatures/restAsyncIoEnabled": rest_async_io_enabled
322873+
"/servicenetworking:v1beta/ExperimentalFeatures/unversionedPackageDisabled": unversioned_package_disabled
322868322874
"/servicenetworking:v1beta/Field": field
322869322875
"/servicenetworking:v1beta/Field/cardinality": cardinality
322870322876
"/servicenetworking:v1beta/Field/defaultValue": default_value
@@ -323106,11 +323112,14 @@
323106323112
"/servicenetworking:v1beta/SecondaryIpRange/ipCidrRange": ip_cidr_range
323107323113
"/servicenetworking:v1beta/SecondaryIpRange/rangeName": range_name
323108323114
"/servicenetworking:v1beta/SelectiveGapicGeneration": selective_gapic_generation
323115+
"/servicenetworking:v1beta/SelectiveGapicGeneration/generateOmittedAsInternal": generate_omitted_as_internal
323109323116
"/servicenetworking:v1beta/SelectiveGapicGeneration/methods": methods_prop
323110323117
"/servicenetworking:v1beta/SelectiveGapicGeneration/methods/methods_prop": methods_prop
323111323118
"/servicenetworking:v1beta/Service": service
323112323119
"/servicenetworking:v1beta/Service/apis": apis
323113323120
"/servicenetworking:v1beta/Service/apis/api": api
323121+
"/servicenetworking:v1beta/Service/aspects": aspects
323122+
"/servicenetworking:v1beta/Service/aspects/aspect": aspect
323114323123
"/servicenetworking:v1beta/Service/authentication": authentication
323115323124
"/servicenetworking:v1beta/Service/backend": backend
323116323125
"/servicenetworking:v1beta/Service/billing": billing

generated/google-apis-servicenetworking_v1beta/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release history for google-apis-servicenetworking_v1beta
22

3+
### v0.58.0 (2025-02-26)
4+
5+
* Regenerated from discovery document revision 20250218
6+
* Regenerated using generator version 0.16.0
7+
38
### v0.57.0 (2024-12-15)
49

510
* Regenerated from discovery document revision 20241212

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

Lines changed: 71 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,33 @@ def update!(**args)
265265
end
266266
end
267267

268+
# Aspect represents Generic aspect. It is used to configure an aspect without
269+
# making direct changes to service.proto
270+
class Aspect
271+
include Google::Apis::Core::Hashable
272+
273+
# The type of this aspect configuration.
274+
# Corresponds to the JSON property `kind`
275+
# @return [String]
276+
attr_accessor :kind
277+
278+
# Content of the configuration. The underlying schema should be defined by
279+
# Aspect owners as protobuf message under `apiserving/configaspects/proto`.
280+
# Corresponds to the JSON property `spec`
281+
# @return [Hash<String,Object>]
282+
attr_accessor :spec
283+
284+
def initialize(**args)
285+
update!(**args)
286+
end
287+
288+
# Update properties of this object
289+
def update!(**args)
290+
@kind = args[:kind] if args.key?(:kind)
291+
@spec = args[:spec] if args.key?(:spec)
292+
end
293+
end
294+
268295
# Configuration for an authentication provider, including support for [JSON Web
269296
# Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
270297
class AuthProvider
@@ -522,6 +549,14 @@ class BackendRule
522549
# @return [String]
523550
attr_accessor :jwt_audience
524551

552+
# The load balancing policy used for connection to the application backend.
553+
# Defined as an arbitrary string to accomondate custom load balancing policies
554+
# supported by the underlying channel, but suggest most users use one of the
555+
# standard policies, such as the default, "RoundRobin".
556+
# Corresponds to the JSON property `loadBalancingPolicy`
557+
# @return [String]
558+
attr_accessor :load_balancing_policy
559+
525560
# Deprecated, do not use.
526561
# Corresponds to the JSON property `minDeadline`
527562
# @return [Float]
@@ -572,6 +607,7 @@ def update!(**args)
572607
@deadline = args[:deadline] if args.key?(:deadline)
573608
@disable_auth = args[:disable_auth] if args.key?(:disable_auth)
574609
@jwt_audience = args[:jwt_audience] if args.key?(:jwt_audience)
610+
@load_balancing_policy = args[:load_balancing_policy] if args.key?(:load_balancing_policy)
575611
@min_deadline = args[:min_deadline] if args.key?(:min_deadline)
576612
@operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline)
577613
@overrides_by_request_protocol = args[:overrides_by_request_protocol] if args.key?(:overrides_by_request_protocol)
@@ -1331,9 +1367,8 @@ class Documentation
13311367
# @return [Array<Google::Apis::ServicenetworkingV1beta::DocumentationRule>]
13321368
attr_accessor :rules
13331369

1334-
# Specifies section and content to override boilerplate content provided by go/
1335-
# api-docgen. Currently overrides following sections: 1. rest.service.
1336-
# client_libraries
1370+
# Specifies section and content to override the boilerplate content. Currently
1371+
# overrides following sections: 1. rest.service.client_libraries
13371372
# Corresponds to the JSON property `sectionOverrides`
13381373
# @return [Array<Google::Apis::ServicenetworkingV1beta::Page>]
13391374
attr_accessor :section_overrides
@@ -1387,7 +1422,7 @@ class DocumentationRule
13871422
attr_accessor :description
13881423

13891424
# String of comma or space separated case-sensitive words for which method/field
1390-
# name replacement will be disabled by go/api-docgen.
1425+
# name replacement will be disabled.
13911426
# Corresponds to the JSON property `disableReplacementWords`
13921427
# @return [String]
13931428
attr_accessor :disable_replacement_words
@@ -1637,6 +1672,15 @@ class ExperimentalFeatures
16371672
attr_accessor :rest_async_io_enabled
16381673
alias_method :rest_async_io_enabled?, :rest_async_io_enabled
16391674

1675+
# Disables generation of an unversioned Python package for this client library.
1676+
# This means that the module names will need to be versioned in import
1677+
# statements. For example `import google.cloud.library_v2` instead of `import
1678+
# google.cloud.library`.
1679+
# Corresponds to the JSON property `unversionedPackageDisabled`
1680+
# @return [Boolean]
1681+
attr_accessor :unversioned_package_disabled
1682+
alias_method :unversioned_package_disabled?, :unversioned_package_disabled
1683+
16401684
def initialize(**args)
16411685
update!(**args)
16421686
end
@@ -1645,6 +1689,7 @@ def initialize(**args)
16451689
def update!(**args)
16461690
@protobuf_pythonic_types_enabled = args[:protobuf_pythonic_types_enabled] if args.key?(:protobuf_pythonic_types_enabled)
16471691
@rest_async_io_enabled = args[:rest_async_io_enabled] if args.key?(:rest_async_io_enabled)
1692+
@unversioned_package_disabled = args[:unversioned_package_disabled] if args.key?(:unversioned_package_disabled)
16481693
end
16491694
end
16501695

@@ -3150,7 +3195,7 @@ def update!(**args)
31503195
class Page
31513196
include Google::Apis::Core::Hashable
31523197

3153-
# The Markdown content of the page. You can use (== include `path` ==) to
3198+
# The Markdown content of the page. You can use ```(== include `path` ==)``` to
31543199
# include content from a Markdown file. The content can be used to produce the
31553200
# documentation page such as HTML format page.
31563201
# Corresponds to the JSON property `content`
@@ -3769,6 +3814,17 @@ def update!(**args)
37693814
class SelectiveGapicGeneration
37703815
include Google::Apis::Core::Hashable
37713816

3817+
# Setting this to true indicates to the client generators that methods that
3818+
# would be excluded from the generation should instead be generated in a way
3819+
# that indicates these methods should not be consumed by end users. How this is
3820+
# expressed is up to individual language implementations to decide. Some
3821+
# examples may be: added annotations, obfuscated identifiers, or other language
3822+
# idiomatic patterns.
3823+
# Corresponds to the JSON property `generateOmittedAsInternal`
3824+
# @return [Boolean]
3825+
attr_accessor :generate_omitted_as_internal
3826+
alias_method :generate_omitted_as_internal?, :generate_omitted_as_internal
3827+
37723828
# An allowlist of the fully qualified names of RPCs that should be included on
37733829
# public client surfaces.
37743830
# Corresponds to the JSON property `methods`
@@ -3781,6 +3837,7 @@ def initialize(**args)
37813837

37823838
# Update properties of this object
37833839
def update!(**args)
3840+
@generate_omitted_as_internal = args[:generate_omitted_as_internal] if args.key?(:generate_omitted_as_internal)
37843841
@methods_prop = args[:methods_prop] if args.key?(:methods_prop)
37853842
end
37863843
end
@@ -3810,6 +3867,14 @@ class Service
38103867
# @return [Array<Google::Apis::ServicenetworkingV1beta::Api>]
38113868
attr_accessor :apis
38123869

3870+
# Configuration aspects. This is a repeated field to allow multiple aspects to
3871+
# be configured. The kind field in each ConfigAspect specifies the type of
3872+
# aspect. The spec field contains the configuration for that aspect. The schema
3873+
# for the spec field is defined by the backend service owners.
3874+
# Corresponds to the JSON property `aspects`
3875+
# @return [Array<Google::Apis::ServicenetworkingV1beta::Aspect>]
3876+
attr_accessor :aspects
3877+
38133878
# `Authentication` defines the authentication configuration for API methods
38143879
# provided by an API service. Example: name: calendar.googleapis.com
38153880
# authentication: providers: - id: google_calendar_auth jwks_uri: https://www.
@@ -4089,6 +4154,7 @@ def initialize(**args)
40894154
# Update properties of this object
40904155
def update!(**args)
40914156
@apis = args[:apis] if args.key?(:apis)
4157+
@aspects = args[:aspects] if args.key?(:aspects)
40924158
@authentication = args[:authentication] if args.key?(:authentication)
40934159
@backend = args[:backend] if args.key?(:backend)
40944160
@billing = args[:billing] if args.key?(:billing)

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

Lines changed: 3 additions & 3 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.57.0"
19+
GEM_VERSION = "0.58.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.15.1"
22+
GENERATOR_VERSION = "0.16.0"
2323

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

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
6464
include Google::Apis::Core::JsonObjectSupport
6565
end
6666

67+
class Aspect
68+
class Representation < Google::Apis::Core::JsonRepresentation; end
69+
70+
include Google::Apis::Core::JsonObjectSupport
71+
end
72+
6773
class AuthProvider
6874
class Representation < Google::Apis::Core::JsonRepresentation; end
6975

@@ -701,6 +707,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
701707
end
702708
end
703709

710+
class Aspect
711+
# @private
712+
class Representation < Google::Apis::Core::JsonRepresentation
713+
property :kind, as: 'kind'
714+
hash :spec, as: 'spec'
715+
end
716+
end
717+
704718
class AuthProvider
705719
# @private
706720
class Representation < Google::Apis::Core::JsonRepresentation
@@ -759,6 +773,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
759773
property :deadline, as: 'deadline'
760774
property :disable_auth, as: 'disableAuth'
761775
property :jwt_audience, as: 'jwtAudience'
776+
property :load_balancing_policy, as: 'loadBalancingPolicy'
762777
property :min_deadline, as: 'minDeadline'
763778
property :operation_deadline, as: 'operationDeadline'
764779
hash :overrides_by_request_protocol, as: 'overridesByRequestProtocol', class: Google::Apis::ServicenetworkingV1beta::BackendRule, decorator: Google::Apis::ServicenetworkingV1beta::BackendRule::Representation
@@ -1037,6 +1052,7 @@ class ExperimentalFeatures
10371052
class Representation < Google::Apis::Core::JsonRepresentation
10381053
property :protobuf_pythonic_types_enabled, as: 'protobufPythonicTypesEnabled'
10391054
property :rest_async_io_enabled, as: 'restAsyncIoEnabled'
1055+
property :unversioned_package_disabled, as: 'unversionedPackageDisabled'
10401056
end
10411057
end
10421058

@@ -1521,6 +1537,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
15211537
class SelectiveGapicGeneration
15221538
# @private
15231539
class Representation < Google::Apis::Core::JsonRepresentation
1540+
property :generate_omitted_as_internal, as: 'generateOmittedAsInternal'
15241541
collection :methods_prop, as: 'methods'
15251542
end
15261543
end
@@ -1530,6 +1547,8 @@ class Service
15301547
class Representation < Google::Apis::Core::JsonRepresentation
15311548
collection :apis, as: 'apis', class: Google::Apis::ServicenetworkingV1beta::Api, decorator: Google::Apis::ServicenetworkingV1beta::Api::Representation
15321549

1550+
collection :aspects, as: 'aspects', class: Google::Apis::ServicenetworkingV1beta::Aspect, decorator: Google::Apis::ServicenetworkingV1beta::Aspect::Representation
1551+
15331552
property :authentication, as: 'authentication', class: Google::Apis::ServicenetworkingV1beta::Authentication, decorator: Google::Apis::ServicenetworkingV1beta::Authentication::Representation
15341553

15351554
property :backend, as: 'backend', class: Google::Apis::ServicenetworkingV1beta::Backend, decorator: Google::Apis::ServicenetworkingV1beta::Backend::Representation

0 commit comments

Comments
 (0)