Class: Google::Apis::DiscoveryV1::RestDescription::Endpoint
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryV1::RestDescription::Endpoint
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discovery_v1/classes.rb,
lib/google/apis/discovery_v1/representations.rb,
lib/google/apis/discovery_v1/representations.rb
Overview
A single endpoint object
Instance Attribute Summary collapse
-
#deprecated ⇒ Boolean
(also: #deprecated?)
Whether this endpoint is deprecated Corresponds to the JSON property
deprecated
. -
#description ⇒ String
A string describing the host designated by the URL Corresponds to the JSON property
description
. -
#endpoint_url ⇒ String
The URL of the endpoint target host Corresponds to the JSON property
endpointUrl
. -
#location ⇒ String
The location of the endpoint Corresponds to the JSON property
location
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Endpoint
constructor
A new instance of Endpoint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Endpoint
Returns a new instance of Endpoint.
687 688 689 |
# File 'lib/google/apis/discovery_v1/classes.rb', line 687 def initialize(**args) update!(**args) end |
Instance Attribute Details
#deprecated ⇒ Boolean Also known as: deprecated?
Whether this endpoint is deprecated
Corresponds to the JSON property deprecated
669 670 671 |
# File 'lib/google/apis/discovery_v1/classes.rb', line 669 def deprecated @deprecated end |
#description ⇒ String
A string describing the host designated by the URL
Corresponds to the JSON property description
675 676 677 |
# File 'lib/google/apis/discovery_v1/classes.rb', line 675 def description @description end |
#endpoint_url ⇒ String
The URL of the endpoint target host
Corresponds to the JSON property endpointUrl
680 681 682 |
# File 'lib/google/apis/discovery_v1/classes.rb', line 680 def endpoint_url @endpoint_url end |
#location ⇒ String
The location of the endpoint
Corresponds to the JSON property location
685 686 687 |
# File 'lib/google/apis/discovery_v1/classes.rb', line 685 def location @location end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
692 693 694 695 696 697 |
# File 'lib/google/apis/discovery_v1/classes.rb', line 692 def update!(**args) @deprecated = args[:deprecated] if args.key?(:deprecated) @description = args[:description] if args.key?(:description) @endpoint_url = args[:endpoint_url] if args.key?(:endpoint_url) @location = args[:location] if args.key?(:location) end |