Reference documentation and code samples for the Network Security V1 API class Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicyRule.
The GatewaySecurityPolicyRule resource is in a nested collection within a GatewaySecurityPolicy and represents a traffic matching condition and associated action to perform.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#application_matcher
def application_matcher() -> ::String
Returns
- (::String) — Optional. CEL expression for matching on L7/application level criteria.
#application_matcher=
def application_matcher=(value) -> ::String
Parameter
- value (::String) — Optional. CEL expression for matching on L7/application level criteria.
Returns
- (::String) — Optional. CEL expression for matching on L7/application level criteria.
#basic_profile
def basic_profile() -> ::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicyRule::BasicProfile
Returns
- (::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicyRule::BasicProfile) — Required. Profile which tells what the primitive action should be.
#basic_profile=
def basic_profile=(value) -> ::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicyRule::BasicProfile
Parameter
- value (::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicyRule::BasicProfile) — Required. Profile which tells what the primitive action should be.
Returns
- (::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicyRule::BasicProfile) — Required. Profile which tells what the primitive action should be.
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. Time when the rule was created.
#description
def description() -> ::String
Returns
- (::String) — Optional. Free-text description of the resource.
#description=
def description=(value) -> ::String
Parameter
- value (::String) — Optional. Free-text description of the resource.
Returns
- (::String) — Optional. Free-text description of the resource.
#enabled
def enabled() -> ::Boolean
Returns
- (::Boolean) — Required. Whether the rule is enforced.
#enabled=
def enabled=(value) -> ::Boolean
Parameter
- value (::Boolean) — Required. Whether the rule is enforced.
Returns
- (::Boolean) — Required. Whether the rule is enforced.
#name
def name() -> ::String
Returns
- (::String) — Required. Immutable. Name of the resource. ame is the full resource name so projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule} rule should match the pattern: (^a-z?$).
#name=
def name=(value) -> ::String
Parameter
- value (::String) — Required. Immutable. Name of the resource. ame is the full resource name so projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule} rule should match the pattern: (^a-z?$).
Returns
- (::String) — Required. Immutable. Name of the resource. ame is the full resource name so projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule} rule should match the pattern: (^a-z?$).
#priority
def priority() -> ::Integer
Returns
- (::Integer) — Required. Priority of the rule. Lower number corresponds to higher precedence.
#priority=
def priority=(value) -> ::Integer
Parameter
- value (::Integer) — Required. Priority of the rule. Lower number corresponds to higher precedence.
Returns
- (::Integer) — Required. Priority of the rule. Lower number corresponds to higher precedence.
#session_matcher
def session_matcher() -> ::String
Returns
- (::String) — Required. CEL expression for matching on session criteria.
#session_matcher=
def session_matcher=(value) -> ::String
Parameter
- value (::String) — Required. CEL expression for matching on session criteria.
Returns
- (::String) — Required. CEL expression for matching on session criteria.
#tls_inspection_enabled
def tls_inspection_enabled() -> ::Boolean
Returns
- (::Boolean) — Optional. Flag to enable TLS inspection of traffic matching on
#tls_inspection_enabled=
def tls_inspection_enabled=(value) -> ::Boolean
Parameter
- value (::Boolean) — Optional. Flag to enable TLS inspection of traffic matching on
Returns
- (::Boolean) — Optional. Flag to enable TLS inspection of traffic matching on
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. Time when the rule was updated.