Skip to content

Commit a0ba3ed

Browse files
feat: Automated regeneration of serviceusage v1beta1 client (googleapis#21870)
Auto-created at 2025-02-26 21:22:00 +0000 using the toys pull request generator.
1 parent 7c1ef6d commit a0ba3ed

File tree

5 files changed

+112
-12
lines changed

5 files changed

+112
-12
lines changed

api_names_out.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324011,6 +324011,10 @@
324011324011
"/serviceusage:v1beta1/Api/sourceContext": source_context
324012324012
"/serviceusage:v1beta1/Api/syntax": syntax
324013324013
"/serviceusage:v1beta1/Api/version": version
324014+
"/serviceusage:v1beta1/Aspect": aspect
324015+
"/serviceusage:v1beta1/Aspect/kind": kind
324016+
"/serviceusage:v1beta1/Aspect/spec": spec
324017+
"/serviceusage:v1beta1/Aspect/spec/spec": spec
324014324018
"/serviceusage:v1beta1/AuthProvider": auth_provider
324015324019
"/serviceusage:v1beta1/AuthProvider/audiences": audiences
324016324020
"/serviceusage:v1beta1/AuthProvider/authorizationUrl": authorization_url
@@ -324047,6 +324051,7 @@
324047324051
"/serviceusage:v1beta1/BackendRule/deadline": deadline
324048324052
"/serviceusage:v1beta1/BackendRule/disableAuth": disable_auth
324049324053
"/serviceusage:v1beta1/BackendRule/jwtAudience": jwt_audience
324054+
"/serviceusage:v1beta1/BackendRule/loadBalancingPolicy": load_balancing_policy
324050324055
"/serviceusage:v1beta1/BackendRule/minDeadline": min_deadline
324051324056
"/serviceusage:v1beta1/BackendRule/operationDeadline": operation_deadline
324052324057
"/serviceusage:v1beta1/BackendRule/overridesByRequestProtocol": overrides_by_request_protocol
@@ -324227,6 +324232,7 @@
324227324232
"/serviceusage:v1beta1/ExperimentalFeatures": experimental_features
324228324233
"/serviceusage:v1beta1/ExperimentalFeatures/protobufPythonicTypesEnabled": protobuf_pythonic_types_enabled
324229324234
"/serviceusage:v1beta1/ExperimentalFeatures/restAsyncIoEnabled": rest_async_io_enabled
324235+
"/serviceusage:v1beta1/ExperimentalFeatures/unversionedPackageDisabled": unversioned_package_disabled
324230324236
"/serviceusage:v1beta1/Field": field
324231324237
"/serviceusage:v1beta1/Field/cardinality": cardinality
324232324238
"/serviceusage:v1beta1/Field/defaultValue": default_value
@@ -324254,6 +324260,8 @@
324254324260
"/serviceusage:v1beta1/GoogleApiService": google_api_service
324255324261
"/serviceusage:v1beta1/GoogleApiService/apis": apis
324256324262
"/serviceusage:v1beta1/GoogleApiService/apis/api": api
324263+
"/serviceusage:v1beta1/GoogleApiService/aspects": aspects
324264+
"/serviceusage:v1beta1/GoogleApiService/aspects/aspect": aspect
324257324265
"/serviceusage:v1beta1/GoogleApiService/authentication": authentication
324258324266
"/serviceusage:v1beta1/GoogleApiService/backend": backend
324259324267
"/serviceusage:v1beta1/GoogleApiService/billing": billing
@@ -324344,6 +324352,7 @@
324344324352
"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaUpdateConsumerPolicyMetadata": google_api_serviceusage_v2alpha_update_consumer_policy_metadata
324345324353
"/serviceusage:v1beta1/GoogleApiServiceusageV2betaAnalysis": google_api_serviceusage_v2beta_analysis
324346324354
"/serviceusage:v1beta1/GoogleApiServiceusageV2betaAnalysis/analysis": analysis
324355+
"/serviceusage:v1beta1/GoogleApiServiceusageV2betaAnalysis/analysisResult": analysis_result
324347324356
"/serviceusage:v1beta1/GoogleApiServiceusageV2betaAnalysis/analysisType": analysis_type
324348324357
"/serviceusage:v1beta1/GoogleApiServiceusageV2betaAnalysis/displayName": display_name
324349324358
"/serviceusage:v1beta1/GoogleApiServiceusageV2betaAnalysis/service": service
@@ -324663,6 +324672,7 @@
324663324672
"/serviceusage:v1beta1/RubySettings": ruby_settings
324664324673
"/serviceusage:v1beta1/RubySettings/common": common
324665324674
"/serviceusage:v1beta1/SelectiveGapicGeneration": selective_gapic_generation
324675+
"/serviceusage:v1beta1/SelectiveGapicGeneration/generateOmittedAsInternal": generate_omitted_as_internal
324666324676
"/serviceusage:v1beta1/SelectiveGapicGeneration/methods": methods_prop
324667324677
"/serviceusage:v1beta1/SelectiveGapicGeneration/methods/methods_prop": methods_prop
324668324678
"/serviceusage:v1beta1/Service": service

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

3+
### v0.63.0 (2025-02-26)
4+
5+
* Regenerated from discovery document revision 20250218
6+
* Regenerated using generator version 0.16.0
7+
38
### v0.62.0 (2025-01-05)
49

510
* Regenerated from discovery document revision 20241219

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

Lines changed: 74 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,33 @@ def update!(**args)
302302
end
303303
end
304304

305+
# Aspect represents Generic aspect. It is used to configure an aspect without
306+
# making direct changes to service.proto
307+
class Aspect
308+
include Google::Apis::Core::Hashable
309+
310+
# The type of this aspect configuration.
311+
# Corresponds to the JSON property `kind`
312+
# @return [String]
313+
attr_accessor :kind
314+
315+
# Content of the configuration. The underlying schema should be defined by
316+
# Aspect owners as protobuf message under `apiserving/configaspects/proto`.
317+
# Corresponds to the JSON property `spec`
318+
# @return [Hash<String,Object>]
319+
attr_accessor :spec
320+
321+
def initialize(**args)
322+
update!(**args)
323+
end
324+
325+
# Update properties of this object
326+
def update!(**args)
327+
@kind = args[:kind] if args.key?(:kind)
328+
@spec = args[:spec] if args.key?(:spec)
329+
end
330+
end
331+
305332
# Configuration for an authentication provider, including support for [JSON Web
306333
# Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
307334
class AuthProvider
@@ -559,6 +586,14 @@ class BackendRule
559586
# @return [String]
560587
attr_accessor :jwt_audience
561588

589+
# The load balancing policy used for connection to the application backend.
590+
# Defined as an arbitrary string to accomondate custom load balancing policies
591+
# supported by the underlying channel, but suggest most users use one of the
592+
# standard policies, such as the default, "RoundRobin".
593+
# Corresponds to the JSON property `loadBalancingPolicy`
594+
# @return [String]
595+
attr_accessor :load_balancing_policy
596+
562597
# Deprecated, do not use.
563598
# Corresponds to the JSON property `minDeadline`
564599
# @return [Float]
@@ -609,6 +644,7 @@ def update!(**args)
609644
@deadline = args[:deadline] if args.key?(:deadline)
610645
@disable_auth = args[:disable_auth] if args.key?(:disable_auth)
611646
@jwt_audience = args[:jwt_audience] if args.key?(:jwt_audience)
647+
@load_balancing_policy = args[:load_balancing_policy] if args.key?(:load_balancing_policy)
612648
@min_deadline = args[:min_deadline] if args.key?(:min_deadline)
613649
@operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline)
614650
@overrides_by_request_protocol = args[:overrides_by_request_protocol] if args.key?(:overrides_by_request_protocol)
@@ -1398,9 +1434,8 @@ class Documentation
13981434
# @return [Array<Google::Apis::ServiceusageV1beta1::DocumentationRule>]
13991435
attr_accessor :rules
14001436

1401-
# Specifies section and content to override boilerplate content provided by go/
1402-
# api-docgen. Currently overrides following sections: 1. rest.service.
1403-
# client_libraries
1437+
# Specifies section and content to override the boilerplate content. Currently
1438+
# overrides following sections: 1. rest.service.client_libraries
14041439
# Corresponds to the JSON property `sectionOverrides`
14051440
# @return [Array<Google::Apis::ServiceusageV1beta1::Page>]
14061441
attr_accessor :section_overrides
@@ -1454,7 +1489,7 @@ class DocumentationRule
14541489
attr_accessor :description
14551490

14561491
# String of comma or space separated case-sensitive words for which method/field
1457-
# name replacement will be disabled by go/api-docgen.
1492+
# name replacement will be disabled.
14581493
# Corresponds to the JSON property `disableReplacementWords`
14591494
# @return [String]
14601495
attr_accessor :disable_replacement_words
@@ -1821,6 +1856,15 @@ class ExperimentalFeatures
18211856
attr_accessor :rest_async_io_enabled
18221857
alias_method :rest_async_io_enabled?, :rest_async_io_enabled
18231858

1859+
# Disables generation of an unversioned Python package for this client library.
1860+
# This means that the module names will need to be versioned in import
1861+
# statements. For example `import google.cloud.library_v2` instead of `import
1862+
# google.cloud.library`.
1863+
# Corresponds to the JSON property `unversionedPackageDisabled`
1864+
# @return [Boolean]
1865+
attr_accessor :unversioned_package_disabled
1866+
alias_method :unversioned_package_disabled?, :unversioned_package_disabled
1867+
18241868
def initialize(**args)
18251869
update!(**args)
18261870
end
@@ -1829,6 +1873,7 @@ def initialize(**args)
18291873
def update!(**args)
18301874
@protobuf_pythonic_types_enabled = args[:protobuf_pythonic_types_enabled] if args.key?(:protobuf_pythonic_types_enabled)
18311875
@rest_async_io_enabled = args[:rest_async_io_enabled] if args.key?(:rest_async_io_enabled)
1876+
@unversioned_package_disabled = args[:unversioned_package_disabled] if args.key?(:unversioned_package_disabled)
18321877
end
18331878
end
18341879

@@ -2043,6 +2088,14 @@ class GoogleApiService
20432088
# @return [Array<Google::Apis::ServiceusageV1beta1::Api>]
20442089
attr_accessor :apis
20452090

2091+
# Configuration aspects. This is a repeated field to allow multiple aspects to
2092+
# be configured. The kind field in each ConfigAspect specifies the type of
2093+
# aspect. The spec field contains the configuration for that aspect. The schema
2094+
# for the spec field is defined by the backend service owners.
2095+
# Corresponds to the JSON property `aspects`
2096+
# @return [Array<Google::Apis::ServiceusageV1beta1::Aspect>]
2097+
attr_accessor :aspects
2098+
20462099
# `Authentication` defines the authentication configuration for API methods
20472100
# provided by an API service. Example: name: calendar.googleapis.com
20482101
# authentication: providers: - id: google_calendar_auth jwks_uri: https://www.
@@ -2322,6 +2375,7 @@ def initialize(**args)
23222375
# Update properties of this object
23232376
def update!(**args)
23242377
@apis = args[:apis] if args.key?(:apis)
2378+
@aspects = args[:aspects] if args.key?(:aspects)
23252379
@authentication = args[:authentication] if args.key?(:authentication)
23262380
@backend = args[:backend] if args.key?(:backend)
23272381
@billing = args[:billing] if args.key?(:billing)
@@ -2707,9 +2761,9 @@ class GoogleApiServiceusageV2betaAnalysis
27072761
include Google::Apis::Core::Hashable
27082762

27092763
# An analysis result including blockers and warnings.
2710-
# Corresponds to the JSON property `analysis`
2764+
# Corresponds to the JSON property `analysisResult`
27112765
# @return [Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV2betaAnalysisResult]
2712-
attr_accessor :analysis
2766+
attr_accessor :analysis_result
27132767

27142768
# Output only. The type of analysis.
27152769
# Corresponds to the JSON property `analysisType`
@@ -2734,7 +2788,7 @@ def initialize(**args)
27342788

27352789
# Update properties of this object
27362790
def update!(**args)
2737-
@analysis = args[:analysis] if args.key?(:analysis)
2791+
@analysis_result = args[:analysis_result] if args.key?(:analysis_result)
27382792
@analysis_type = args[:analysis_type] if args.key?(:analysis_type)
27392793
@display_name = args[:display_name] if args.key?(:display_name)
27402794
@service = args[:service] if args.key?(:service)
@@ -4519,7 +4573,7 @@ def update!(**args)
45194573
class Page
45204574
include Google::Apis::Core::Hashable
45214575

4522-
# The Markdown content of the page. You can use (== include `path` ==) to
4576+
# The Markdown content of the page. You can use ```(== include `path` ==)``` to
45234577
# include content from a Markdown file. The content can be used to produce the
45244578
# documentation page such as HTML format page.
45254579
# Corresponds to the JSON property `content`
@@ -5142,6 +5196,17 @@ def update!(**args)
51425196
class SelectiveGapicGeneration
51435197
include Google::Apis::Core::Hashable
51445198

5199+
# Setting this to true indicates to the client generators that methods that
5200+
# would be excluded from the generation should instead be generated in a way
5201+
# that indicates these methods should not be consumed by end users. How this is
5202+
# expressed is up to individual language implementations to decide. Some
5203+
# examples may be: added annotations, obfuscated identifiers, or other language
5204+
# idiomatic patterns.
5205+
# Corresponds to the JSON property `generateOmittedAsInternal`
5206+
# @return [Boolean]
5207+
attr_accessor :generate_omitted_as_internal
5208+
alias_method :generate_omitted_as_internal?, :generate_omitted_as_internal
5209+
51455210
# An allowlist of the fully qualified names of RPCs that should be included on
51465211
# public client surfaces.
51475212
# Corresponds to the JSON property `methods`
@@ -5154,6 +5219,7 @@ def initialize(**args)
51545219

51555220
# Update properties of this object
51565221
def update!(**args)
5222+
@generate_omitted_as_internal = args[:generate_omitted_as_internal] if args.key?(:generate_omitted_as_internal)
51575223
@methods_prop = args[:methods_prop] if args.key?(:methods_prop)
51585224
end
51595225
end

generated/google-apis-serviceusage_v1beta1/lib/google/apis/serviceusage_v1beta1/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 ServiceusageV1beta1
1818
# Version of the google-apis-serviceusage_v1beta1 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
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 = "20241219"
25+
REVISION = "20250218"
2626
end
2727
end
2828
end

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

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
7070
include Google::Apis::Core::JsonObjectSupport
7171
end
7272

73+
class Aspect
74+
class Representation < Google::Apis::Core::JsonRepresentation; end
75+
76+
include Google::Apis::Core::JsonObjectSupport
77+
end
78+
7379
class AuthProvider
7480
class Representation < Google::Apis::Core::JsonRepresentation; end
7581

@@ -922,6 +928,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
922928
end
923929
end
924930

931+
class Aspect
932+
# @private
933+
class Representation < Google::Apis::Core::JsonRepresentation
934+
property :kind, as: 'kind'
935+
hash :spec, as: 'spec'
936+
end
937+
end
938+
925939
class AuthProvider
926940
# @private
927941
class Representation < Google::Apis::Core::JsonRepresentation
@@ -980,6 +994,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
980994
property :deadline, as: 'deadline'
981995
property :disable_auth, as: 'disableAuth'
982996
property :jwt_audience, as: 'jwtAudience'
997+
property :load_balancing_policy, as: 'loadBalancingPolicy'
983998
property :min_deadline, as: 'minDeadline'
984999
property :operation_deadline, as: 'operationDeadline'
9851000
hash :overrides_by_request_protocol, as: 'overridesByRequestProtocol', class: Google::Apis::ServiceusageV1beta1::BackendRule, decorator: Google::Apis::ServiceusageV1beta1::BackendRule::Representation
@@ -1319,6 +1334,7 @@ class ExperimentalFeatures
13191334
class Representation < Google::Apis::Core::JsonRepresentation
13201335
property :protobuf_pythonic_types_enabled, as: 'protobufPythonicTypesEnabled'
13211336
property :rest_async_io_enabled, as: 'restAsyncIoEnabled'
1337+
property :unversioned_package_disabled, as: 'unversionedPackageDisabled'
13221338
end
13231339
end
13241340

@@ -1377,6 +1393,8 @@ class GoogleApiService
13771393
class Representation < Google::Apis::Core::JsonRepresentation
13781394
collection :apis, as: 'apis', class: Google::Apis::ServiceusageV1beta1::Api, decorator: Google::Apis::ServiceusageV1beta1::Api::Representation
13791395

1396+
collection :aspects, as: 'aspects', class: Google::Apis::ServiceusageV1beta1::Aspect, decorator: Google::Apis::ServiceusageV1beta1::Aspect::Representation
1397+
13801398
property :authentication, as: 'authentication', class: Google::Apis::ServiceusageV1beta1::Authentication, decorator: Google::Apis::ServiceusageV1beta1::Authentication::Representation
13811399

13821400
property :backend, as: 'backend', class: Google::Apis::ServiceusageV1beta1::Backend, decorator: Google::Apis::ServiceusageV1beta1::Backend::Representation
@@ -1517,7 +1535,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
15171535
class GoogleApiServiceusageV2betaAnalysis
15181536
# @private
15191537
class Representation < Google::Apis::Core::JsonRepresentation
1520-
property :analysis, as: 'analysis', class: Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV2betaAnalysisResult, decorator: Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV2betaAnalysisResult::Representation
1538+
property :analysis_result, as: 'analysisResult', class: Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV2betaAnalysisResult, decorator: Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV2betaAnalysisResult::Representation
15211539

15221540
property :analysis_type, as: 'analysisType'
15231541
property :display_name, as: 'displayName'
@@ -2101,6 +2119,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
21012119
class SelectiveGapicGeneration
21022120
# @private
21032121
class Representation < Google::Apis::Core::JsonRepresentation
2122+
property :generate_omitted_as_internal, as: 'generateOmittedAsInternal'
21042123
collection :methods_prop, as: 'methods'
21052124
end
21062125
end

0 commit comments

Comments
 (0)