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.



1973
1974
1975
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 1973

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

Instance Attribute Details

#hostnameString

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

Returns:

  • (String)


1966
1967
1968
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 1966

def hostname
  @hostname
end

#portsArray<Fixnum>

Required. The ports of the application. Corresponds to the JSON property ports

Returns:

  • (Array<Fixnum>)


1971
1972
1973
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 1971

def ports
  @ports
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1978
1979
1980
1981
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 1978

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