Class: Google::Apis::BeyondcorpV1alpha::ApplicationEndpoint

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

Overview

ApplicationEndpoint represents a remote application endpoint.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ApplicationEndpoint

Returns a new instance of ApplicationEndpoint.



207
208
209
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 207

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

Instance Attribute Details

#hostString

Required. Hostname or IP address of the remote application endpoint. Corresponds to the JSON property host

Returns:

  • (String)


200
201
202
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 200

def host
  @host
end

#portFixnum

Required. Port of the remote application endpoint. Corresponds to the JSON property port

Returns:

  • (Fixnum)


205
206
207
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 205

def port
  @port
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



212
213
214
215
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 212

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