Skip to content

Commit dbc9b08

Browse files
feat: Automated regeneration of serviceusage v1 client (googleapis#20222)
Auto-created at 2024-09-15 09:39:12 +0000 using the toys pull request generator.
1 parent f0d4b6a commit dbc9b08

File tree

5 files changed

+64
-2
lines changed

5 files changed

+64
-2
lines changed

api_names_out.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301070,6 +301070,8 @@
301070301070
"/serviceusage:v1/EnumValue/options/option": option
301071301071
"/serviceusage:v1/Experimental": experimental
301072301072
"/serviceusage:v1/Experimental/authorization": authorization
301073+
"/serviceusage:v1/ExperimentalFeatures": experimental_features
301074+
"/serviceusage:v1/ExperimentalFeatures/restAsyncIoEnabled": rest_async_io_enabled
301073301075
"/serviceusage:v1/Field": field
301074301076
"/serviceusage:v1/Field/cardinality": cardinality
301075301077
"/serviceusage:v1/Field/defaultValue": default_value
@@ -301322,6 +301324,8 @@
301322301324
"/serviceusage:v1/MetricDescriptorMetadata/ingestDelay": ingest_delay
301323301325
"/serviceusage:v1/MetricDescriptorMetadata/launchStage": launch_stage
301324301326
"/serviceusage:v1/MetricDescriptorMetadata/samplePeriod": sample_period
301327+
"/serviceusage:v1/MetricDescriptorMetadata/timeSeriesResourceHierarchyLevel": time_series_resource_hierarchy_level
301328+
"/serviceusage:v1/MetricDescriptorMetadata/timeSeriesResourceHierarchyLevel/time_series_resource_hierarchy_level": time_series_resource_hierarchy_level
301325301329
"/serviceusage:v1/MetricRule": metric_rule
301326301330
"/serviceusage:v1/MetricRule/dynamicMetricCosts": dynamic_metric_costs
301327301331
"/serviceusage:v1/MetricRule/dynamicMetricCosts/dynamic_metric_cost": dynamic_metric_cost
@@ -301399,6 +301403,7 @@
301399301403
"/serviceusage:v1/Publishing/restReferenceDocumentationUri": rest_reference_documentation_uri
301400301404
"/serviceusage:v1/PythonSettings": python_settings
301401301405
"/serviceusage:v1/PythonSettings/common": common
301406+
"/serviceusage:v1/PythonSettings/experimentalFeatures": experimental_features
301402301407
"/serviceusage:v1/Quota": quota
301403301408
"/serviceusage:v1/Quota/limits": limits
301404301409
"/serviceusage:v1/Quota/limits/limit": limit

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.56.0 (2024-09-15)
4+
5+
* Regenerated from discovery document revision 20240905
6+
37
### v0.55.0 (2024-08-18)
48

59
* Regenerated from discovery document revision 20240811

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

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1707,6 +1707,30 @@ def update!(**args)
17071707
end
17081708
end
17091709

1710+
# Experimental features to be included during client library generation. These
1711+
# fields will be deprecated once the feature graduates and is enabled by default.
1712+
class ExperimentalFeatures
1713+
include Google::Apis::Core::Hashable
1714+
1715+
# Enables generation of asynchronous REST clients if `rest` transport is enabled.
1716+
# By default, asynchronous REST clients will not be generated. This feature
1717+
# will be enabled by default 1 month after launching the feature in preview
1718+
# packages.
1719+
# Corresponds to the JSON property `restAsyncIoEnabled`
1720+
# @return [Boolean]
1721+
attr_accessor :rest_async_io_enabled
1722+
alias_method :rest_async_io_enabled?, :rest_async_io_enabled
1723+
1724+
def initialize(**args)
1725+
update!(**args)
1726+
end
1727+
1728+
# Update properties of this object
1729+
def update!(**args)
1730+
@rest_async_io_enabled = args[:rest_async_io_enabled] if args.key?(:rest_async_io_enabled)
1731+
end
1732+
end
1733+
17101734
# A single field of a message type.
17111735
class Field
17121736
include Google::Apis::Core::Hashable
@@ -3553,6 +3577,11 @@ class MetricDescriptorMetadata
35533577
# @return [String]
35543578
attr_accessor :sample_period
35553579

3580+
# The scope of the timeseries data of the metric.
3581+
# Corresponds to the JSON property `timeSeriesResourceHierarchyLevel`
3582+
# @return [Array<String>]
3583+
attr_accessor :time_series_resource_hierarchy_level
3584+
35563585
def initialize(**args)
35573586
update!(**args)
35583587
end
@@ -3562,6 +3591,7 @@ def update!(**args)
35623591
@ingest_delay = args[:ingest_delay] if args.key?(:ingest_delay)
35633592
@launch_stage = args[:launch_stage] if args.key?(:launch_stage)
35643593
@sample_period = args[:sample_period] if args.key?(:sample_period)
3594+
@time_series_resource_hierarchy_level = args[:time_series_resource_hierarchy_level] if args.key?(:time_series_resource_hierarchy_level)
35653595
end
35663596
end
35673597

@@ -4128,13 +4158,20 @@ class PythonSettings
41284158
# @return [Google::Apis::ServiceusageV1::CommonLanguageSettings]
41294159
attr_accessor :common
41304160

4161+
# Experimental features to be included during client library generation. These
4162+
# fields will be deprecated once the feature graduates and is enabled by default.
4163+
# Corresponds to the JSON property `experimentalFeatures`
4164+
# @return [Google::Apis::ServiceusageV1::ExperimentalFeatures]
4165+
attr_accessor :experimental_features
4166+
41314167
def initialize(**args)
41324168
update!(**args)
41334169
end
41344170

41354171
# Update properties of this object
41364172
def update!(**args)
41374173
@common = args[:common] if args.key?(:common)
4174+
@experimental_features = args[:experimental_features] if args.key?(:experimental_features)
41384175
end
41394176
end
41404177

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.55.0"
19+
GEM_VERSION = "0.56.0"
2020

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

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

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
304304
include Google::Apis::Core::JsonObjectSupport
305305
end
306306

307+
class ExperimentalFeatures
308+
class Representation < Google::Apis::Core::JsonRepresentation; end
309+
310+
include Google::Apis::Core::JsonObjectSupport
311+
end
312+
307313
class Field
308314
class Representation < Google::Apis::Core::JsonRepresentation; end
309315

@@ -1173,6 +1179,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
11731179
end
11741180
end
11751181

1182+
class ExperimentalFeatures
1183+
# @private
1184+
class Representation < Google::Apis::Core::JsonRepresentation
1185+
property :rest_async_io_enabled, as: 'restAsyncIoEnabled'
1186+
end
1187+
end
1188+
11761189
class Field
11771190
# @private
11781191
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1585,6 +1598,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
15851598
property :ingest_delay, as: 'ingestDelay'
15861599
property :launch_stage, as: 'launchStage'
15871600
property :sample_period, as: 'samplePeriod'
1601+
collection :time_series_resource_hierarchy_level, as: 'timeSeriesResourceHierarchyLevel'
15881602
end
15891603
end
15901604

@@ -1719,6 +1733,8 @@ class PythonSettings
17191733
class Representation < Google::Apis::Core::JsonRepresentation
17201734
property :common, as: 'common', class: Google::Apis::ServiceusageV1::CommonLanguageSettings, decorator: Google::Apis::ServiceusageV1::CommonLanguageSettings::Representation
17211735

1736+
property :experimental_features, as: 'experimentalFeatures', class: Google::Apis::ServiceusageV1::ExperimentalFeatures, decorator: Google::Apis::ServiceusageV1::ExperimentalFeatures::Representation
1737+
17221738
end
17231739
end
17241740

0 commit comments

Comments
 (0)