Class: Google::Apis::DatastreamV1::HostAddress
- Inherits:
-
Object
- Object
- Google::Apis::DatastreamV1::HostAddress
- 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
-
#hostname ⇒ String
Required.
-
#port ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HostAddress
constructor
A new instance of HostAddress.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HostAddress
Returns a new instance of HostAddress.
1082 1083 1084 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1082 def initialize(**args) update!(**args) end |
Instance Attribute Details
#hostname ⇒ String
Required. Hostname for the connection.
Corresponds to the JSON property hostname
1075 1076 1077 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1075 def hostname @hostname end |
#port ⇒ Fixnum
Optional. Port for the connection.
Corresponds to the JSON property port
1080 1081 1082 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1080 def port @port end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1087 1088 1089 1090 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1087 def update!(**args) @hostname = args[:hostname] if args.key?(:hostname) @port = args[:port] if args.key?(:port) end |