@@ -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
0 commit comments