Class: Google::Apis::BeyondcorpV1::GoogleCloudBeyondcorpSecuritygatewaysV1EndpointMatcher

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

EndpointMatcher contains the information of the endpoint that will match the application.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudBeyondcorpSecuritygatewaysV1EndpointMatcher

Returns a new instance of GoogleCloudBeyondcorpSecuritygatewaysV1EndpointMatcher.



1742
1743
1744
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 1742

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

Instance Attribute Details

#hostnameString

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

Returns:

  • (String)


1735
1736
1737
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 1735

def hostname
  @hostname
end

#portsArray<Fixnum>

Optional. Ports of the application. Corresponds to the JSON property ports

Returns:

  • (Array<Fixnum>)


1740
1741
1742
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 1740

def ports
  @ports
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1747
1748
1749
1750
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 1747

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