Skip to content

Commit 4aba977

Browse files
feat: Automated regeneration of discovery v1 client (#19962)
Auto-created at 2024-07-25 20:39:05 +0000 using the toys pull request generator.
1 parent 4ceef39 commit 4aba977

5 files changed

Lines changed: 120 additions & 1 deletion

File tree

api_names_out.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178723,9 +178723,12 @@
178723178723
"/discovery:v1/JsonSchema/annotations/required": required
178724178724
"/discovery:v1/JsonSchema/annotations/required/required": required
178725178725
"/discovery:v1/JsonSchema/default": default
178726+
"/discovery:v1/JsonSchema/deprecated": deprecated
178726178727
"/discovery:v1/JsonSchema/description": description
178727178728
"/discovery:v1/JsonSchema/enum": enum
178728178729
"/discovery:v1/JsonSchema/enum/enum": enum
178730+
"/discovery:v1/JsonSchema/enumDeprecated": enum_deprecated
178731+
"/discovery:v1/JsonSchema/enumDeprecated/enum_deprecated": enum_deprecated
178729178732
"/discovery:v1/JsonSchema/enumDescriptions": enum_descriptions
178730178733
"/discovery:v1/JsonSchema/enumDescriptions/enum_description": enum_description
178731178734
"/discovery:v1/JsonSchema/format": format
@@ -178760,6 +178763,12 @@
178760178763
"/discovery:v1/RestDescription/description": description
178761178764
"/discovery:v1/RestDescription/discoveryVersion": discovery_version
178762178765
"/discovery:v1/RestDescription/documentationLink": documentation_link
178766+
"/discovery:v1/RestDescription/endpoints": endpoints
178767+
"/discovery:v1/RestDescription/endpoints/endpoint": endpoint
178768+
"/discovery:v1/RestDescription/endpoints/endpoint/deprecated": deprecated
178769+
"/discovery:v1/RestDescription/endpoints/endpoint/description": description
178770+
"/discovery:v1/RestDescription/endpoints/endpoint/endpointUrl": endpoint_url
178771+
"/discovery:v1/RestDescription/endpoints/endpoint/location": location
178763178772
"/discovery:v1/RestDescription/etag": etag
178764178773
"/discovery:v1/RestDescription/exponentialBackoffDefault": exponential_backoff_default
178765178774
"/discovery:v1/RestDescription/features": features
@@ -178791,6 +178800,8 @@
178791178800
"/discovery:v1/RestDescription/version": version
178792178801
"/discovery:v1/RestDescription/version_module": version_module
178793178802
"/discovery:v1/RestMethod": rest_method
178803+
"/discovery:v1/RestMethod/apiVersion": api_version
178804+
"/discovery:v1/RestMethod/deprecated": deprecated
178794178805
"/discovery:v1/RestMethod/description": description
178795178806
"/discovery:v1/RestMethod/etagRequired": etag_required
178796178807
"/discovery:v1/RestMethod/flatPath": flat_path
@@ -178824,6 +178835,7 @@
178824178835
"/discovery:v1/RestMethod/supportsSubscription": supports_subscription
178825178836
"/discovery:v1/RestMethod/useMediaDownloadService": use_media_download_service
178826178837
"/discovery:v1/RestResource": rest_resource
178838+
"/discovery:v1/RestResource/deprecated": deprecated
178827178839
"/discovery:v1/RestResource/methods": api_methods
178828178840
"/discovery:v1/RestResource/methods/api_method": api_method
178829178841
"/discovery:v1/RestResource/resources": resources

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

3+
### v0.18.0 (2024-07-25)
4+
5+
* Unspecified changes
6+
37
### v0.17.0 (2024-05-19)
48

59
* Regenerated using generator version 0.15.0

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

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,12 @@ class JsonSchema
190190
# @return [String]
191191
attr_accessor :default
192192

193+
# Whether the parameter is deprecated.
194+
# Corresponds to the JSON property `deprecated`
195+
# @return [Boolean]
196+
attr_accessor :deprecated
197+
alias_method :deprecated?, :deprecated
198+
193199
# A description of this object.
194200
# Corresponds to the JSON property `description`
195201
# @return [String]
@@ -200,6 +206,12 @@ class JsonSchema
200206
# @return [Array<String>]
201207
attr_accessor :enum
202208

209+
# The deprecation status for the enums. Each position maps to the corresponding
210+
# value in the "enum" array.
211+
# Corresponds to the JSON property `enumDeprecated`
212+
# @return [Array<Boolean>]
213+
attr_accessor :enum_deprecated
214+
203215
# The descriptions for the enums. Each position maps to the corresponding value
204216
# in the "enum" array.
205217
# Corresponds to the JSON property `enumDescriptions`
@@ -294,8 +306,10 @@ def update!(**args)
294306
@additional_properties = args[:additional_properties] if args.key?(:additional_properties)
295307
@annotations = args[:annotations] if args.key?(:annotations)
296308
@default = args[:default] if args.key?(:default)
309+
@deprecated = args[:deprecated] if args.key?(:deprecated)
297310
@description = args[:description] if args.key?(:description)
298311
@enum = args[:enum] if args.key?(:enum)
312+
@enum_deprecated = args[:enum_deprecated] if args.key?(:enum_deprecated)
299313
@enum_descriptions = args[:enum_descriptions] if args.key?(:enum_descriptions)
300314
@format = args[:format] if args.key?(:format)
301315
@id = args[:id] if args.key?(:id)
@@ -429,6 +443,12 @@ class RestDescription
429443
# @return [String]
430444
attr_accessor :documentation_link
431445

446+
# A list of location-based endpoint objects for this API. Each object contains
447+
# the endpoint URL, location, description and deprecation status.
448+
# Corresponds to the JSON property `endpoints`
449+
# @return [Array<Google::Apis::DiscoveryV1::RestDescription::Endpoint>]
450+
attr_accessor :endpoints
451+
432452
# The ETag for this response.
433453
# Corresponds to the JSON property `etag`
434454
# @return [String]
@@ -557,6 +577,7 @@ def update!(**args)
557577
@description = args[:description] if args.key?(:description)
558578
@discovery_version = args[:discovery_version] if args.key?(:discovery_version)
559579
@documentation_link = args[:documentation_link] if args.key?(:documentation_link)
580+
@endpoints = args[:endpoints] if args.key?(:endpoints)
560581
@etag = args[:etag] if args.key?(:etag)
561582
@exponential_backoff_default = args[:exponential_backoff_default] if args.key?(:exponential_backoff_default)
562583
@features = args[:features] if args.key?(:features)
@@ -638,6 +659,44 @@ def update!(**args)
638659
end
639660
end
640661

662+
# A single endpoint object
663+
class Endpoint
664+
include Google::Apis::Core::Hashable
665+
666+
# Whether this endpoint is deprecated
667+
# Corresponds to the JSON property `deprecated`
668+
# @return [Boolean]
669+
attr_accessor :deprecated
670+
alias_method :deprecated?, :deprecated
671+
672+
# A string describing the host designated by the URL
673+
# Corresponds to the JSON property `description`
674+
# @return [String]
675+
attr_accessor :description
676+
677+
# The URL of the endpoint target host
678+
# Corresponds to the JSON property `endpointUrl`
679+
# @return [String]
680+
attr_accessor :endpoint_url
681+
682+
# The location of the endpoint
683+
# Corresponds to the JSON property `location`
684+
# @return [String]
685+
attr_accessor :location
686+
687+
def initialize(**args)
688+
update!(**args)
689+
end
690+
691+
# Update properties of this object
692+
def update!(**args)
693+
@deprecated = args[:deprecated] if args.key?(:deprecated)
694+
@description = args[:description] if args.key?(:description)
695+
@endpoint_url = args[:endpoint_url] if args.key?(:endpoint_url)
696+
@location = args[:location] if args.key?(:location)
697+
end
698+
end
699+
641700
# Links to 16x16 and 32x32 icons representing the API.
642701
class Icons
643702
include Google::Apis::Core::Hashable
@@ -668,6 +727,18 @@ def update!(**args)
668727
class RestMethod
669728
include Google::Apis::Core::Hashable
670729

730+
# The API Version of this method, as passed in via the `X-Goog-Api-Version`
731+
# header or `$apiVersion` query parameter.
732+
# Corresponds to the JSON property `apiVersion`
733+
# @return [String]
734+
attr_accessor :api_version
735+
736+
# Whether this method is deprecated.
737+
# Corresponds to the JSON property `deprecated`
738+
# @return [Boolean]
739+
attr_accessor :deprecated
740+
alias_method :deprecated?, :deprecated
741+
671742
# Description of this method.
672743
# Corresponds to the JSON property `description`
673744
# @return [String]
@@ -766,6 +837,8 @@ def initialize(**args)
766837

767838
# Update properties of this object
768839
def update!(**args)
840+
@api_version = args[:api_version] if args.key?(:api_version)
841+
@deprecated = args[:deprecated] if args.key?(:deprecated)
769842
@description = args[:description] if args.key?(:description)
770843
@etag_required = args[:etag_required] if args.key?(:etag_required)
771844
@flat_path = args[:flat_path] if args.key?(:flat_path)
@@ -943,6 +1016,12 @@ def update!(**args)
9431016
class RestResource
9441017
include Google::Apis::Core::Hashable
9451018

1019+
# Whether this resource is deprecated.
1020+
# Corresponds to the JSON property `deprecated`
1021+
# @return [Boolean]
1022+
attr_accessor :deprecated
1023+
alias_method :deprecated?, :deprecated
1024+
9461025
# Methods on this resource.
9471026
# Corresponds to the JSON property `methods`
9481027
# @return [Hash<String,Google::Apis::DiscoveryV1::RestMethod>]
@@ -959,6 +1038,7 @@ def initialize(**args)
9591038

9601039
# Update properties of this object
9611040
def update!(**args)
1041+
@deprecated = args[:deprecated] if args.key?(:deprecated)
9621042
@api_methods = args[:api_methods] if args.key?(:api_methods)
9631043
@resources = args[:resources] if args.key?(:resources)
9641044
end

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module Google
1616
module Apis
1717
module DiscoveryV1
1818
# Version of the google-apis-discovery_v1 gem
19-
GEM_VERSION = "0.17.0"
19+
GEM_VERSION = "0.18.0"
2020

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

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
8585
include Google::Apis::Core::JsonObjectSupport
8686
end
8787

88+
class Endpoint
89+
class Representation < Google::Apis::Core::JsonRepresentation; end
90+
91+
include Google::Apis::Core::JsonObjectSupport
92+
end
93+
8894
class Icons
8995
class Representation < Google::Apis::Core::JsonRepresentation; end
9096

@@ -188,8 +194,10 @@ class Representation < Google::Apis::Core::JsonRepresentation
188194
property :annotations, as: 'annotations', class: Google::Apis::DiscoveryV1::JsonSchema::Annotations, decorator: Google::Apis::DiscoveryV1::JsonSchema::Annotations::Representation
189195

190196
property :default, as: 'default'
197+
property :deprecated, as: 'deprecated'
191198
property :description, as: 'description'
192199
collection :enum, as: 'enum'
200+
collection :enum_deprecated, as: 'enumDeprecated'
193201
collection :enum_descriptions, as: 'enumDescriptions'
194202
property :format, as: 'format'
195203
property :id, as: 'id'
@@ -246,6 +254,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
246254
property :description, as: 'description'
247255
property :discovery_version, as: 'discoveryVersion'
248256
property :documentation_link, as: 'documentationLink'
257+
collection :endpoints, as: 'endpoints', class: Google::Apis::DiscoveryV1::RestDescription::Endpoint, decorator: Google::Apis::DiscoveryV1::RestDescription::Endpoint::Representation
258+
249259
property :etag, as: 'etag'
250260
property :exponential_backoff_default, as: 'exponentialBackoffDefault'
251261
collection :features, as: 'features'
@@ -298,6 +308,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
298308
end
299309
end
300310

311+
class Endpoint
312+
# @private
313+
class Representation < Google::Apis::Core::JsonRepresentation
314+
property :deprecated, as: 'deprecated'
315+
property :description, as: 'description'
316+
property :endpoint_url, as: 'endpointUrl'
317+
property :location, as: 'location'
318+
end
319+
end
320+
301321
class Icons
302322
# @private
303323
class Representation < Google::Apis::Core::JsonRepresentation
@@ -310,6 +330,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
310330
class RestMethod
311331
# @private
312332
class Representation < Google::Apis::Core::JsonRepresentation
333+
property :api_version, as: 'apiVersion'
334+
property :deprecated, as: 'deprecated'
313335
property :description, as: 'description'
314336
property :etag_required, as: 'etagRequired'
315337
property :flat_path, as: 'flatPath'
@@ -387,6 +409,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
387409
class RestResource
388410
# @private
389411
class Representation < Google::Apis::Core::JsonRepresentation
412+
property :deprecated, as: 'deprecated'
390413
hash :api_methods, as: 'methods', class: Google::Apis::DiscoveryV1::RestMethod, decorator: Google::Apis::DiscoveryV1::RestMethod::Representation
391414

392415
hash :resources, as: 'resources', class: Google::Apis::DiscoveryV1::RestResource, decorator: Google::Apis::DiscoveryV1::RestResource::Representation

0 commit comments

Comments
 (0)