Class: Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpSecuritygatewaysV1alphaEndpointMatcher

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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudBeyondcorpSecuritygatewaysV1alphaEndpointMatcher

Returns a new instance of GoogleCloudBeyondcorpSecuritygatewaysV1alphaEndpointMatcher.



2832
2833
2834
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 2832

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

Instance Attribute Details

#hostnameString

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

Returns:

  • (String)


2825
2826
2827
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 2825

def hostname
  @hostname
end

#portsArray<Fixnum>

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

Returns:

  • (Array<Fixnum>)


2830
2831
2832
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 2830

def ports
  @ports
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2837
2838
2839
2840
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 2837

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