Class: Google::Apis::BeyondcorpV1::GoogleCloudBeyondcorpSecuritygatewaysV1Endpoint

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

Overview

Internet Gateway endpoint to forward traffic to.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudBeyondcorpSecuritygatewaysV1Endpoint

Returns a new instance of GoogleCloudBeyondcorpSecuritygatewaysV1Endpoint.



1947
1948
1949
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 1947

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

Instance Attribute Details

#hostnameString

Required. Hostname of the endpoint. Corresponds to the JSON property hostname

Returns:

  • (String)


1940
1941
1942
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 1940

def hostname
  @hostname
end

#portFixnum

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

Returns:

  • (Fixnum)


1945
1946
1947
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 1945

def port
  @port
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1952
1953
1954
1955
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 1952

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