class Google::Apis::DiscoveryV1::RestDescription::Endpoint

A single endpoint object

Attributes

deprecated[RW]

Whether this endpoint is deprecated Corresponds to the JSON property ‘deprecated` @return [Boolean]

deprecated?[RW]

Whether this endpoint is deprecated Corresponds to the JSON property ‘deprecated` @return [Boolean]

description[RW]

A string describing the host designated by the URL Corresponds to the JSON property ‘description` @return [String]

endpoint_url[RW]

The URL of the endpoint target host Corresponds to the JSON property ‘endpointUrl` @return [String]

location[RW]

The location of the endpoint Corresponds to the JSON property ‘location` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/discovery_v1/classes.rb, line 687
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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