Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1DestinationConfigDestination

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb

Overview

Defines a target endpoint

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1DestinationConfigDestination

Returns a new instance of GoogleCloudDiscoveryengineV1DestinationConfigDestination.



3568
3569
3570
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 3568

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#hostString

Publicly routable host. Corresponds to the JSON property host

Returns:

  • (String)


3561
3562
3563
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 3561

def host
  @host
end

#portFixnum

Optional. Target port number accepted by the destination. Corresponds to the JSON property port

Returns:

  • (Fixnum)


3566
3567
3568
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 3566

def port
  @port
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3573
3574
3575
3576
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 3573

def update!(**args)
  @host = args[:host] if args.key?(:host)
  @port = args[:port] if args.key?(:port)
end