Class: Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpSecuritygatewaysV1alphaEndpoint

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

Internet Gateway endpoint to forward traffic to.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudBeyondcorpSecuritygatewaysV1alphaEndpoint

Returns a new instance of GoogleCloudBeyondcorpSecuritygatewaysV1alphaEndpoint.



2806
2807
2808
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 2806

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

Instance Attribute Details

#hostnameString

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

Returns:

  • (String)


2799
2800
2801
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 2799

def hostname
  @hostname
end

#portFixnum

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

Returns:

  • (Fixnum)


2804
2805
2806
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 2804

def port
  @port
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2811
2812
2813
2814
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 2811

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