Class: Google::Apis::DatastreamV1::HostAddress

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

Overview

A HostAddress represents a transport end point, which is the combination of an IP address or hostname and a port number.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HostAddress

Returns a new instance of HostAddress.



1387
1388
1389
# File 'lib/google/apis/datastream_v1/classes.rb', line 1387

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

Instance Attribute Details

#hostnameString

Required. Hostname for the connection. Corresponds to the JSON property hostname

Returns:

  • (String)


1380
1381
1382
# File 'lib/google/apis/datastream_v1/classes.rb', line 1380

def hostname
  @hostname
end

#portFixnum

Optional. Port for the connection. Corresponds to the JSON property port

Returns:

  • (Fixnum)


1385
1386
1387
# File 'lib/google/apis/datastream_v1/classes.rb', line 1385

def port
  @port
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1392
1393
1394
1395
# File 'lib/google/apis/datastream_v1/classes.rb', line 1392

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