Class: Google::Apis::DiscoveryV1::RestDescription::Endpoint

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#deprecatedBoolean Also known as: deprecated?

Whether this endpoint is deprecated Corresponds to the JSON property deprecated

Returns:

  • (Boolean)


669
670
671
# File 'lib/google/apis/discovery_v1/classes.rb', line 669

def deprecated
  @deprecated
end

#descriptionString

A string describing the host designated by the URL Corresponds to the JSON property description

Returns:

  • (String)


675
676
677
# File 'lib/google/apis/discovery_v1/classes.rb', line 675

def description
  @description
end

#endpoint_urlString

The URL of the endpoint target host Corresponds to the JSON property endpointUrl

Returns:

  • (String)


680
681
682
# File 'lib/google/apis/discovery_v1/classes.rb', line 680

def endpoint_url
  @endpoint_url
end

#locationString

The location of the endpoint Corresponds to the JSON property location

Returns:

  • (String)


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