NAME
Google::Cloud::Networksecurity::V1::GatewaySecurityPolicyRule - Compiled Protocol Buffers messages for google/cloud/networksecurity/v1/gateway_security_policy_rule.proto
SYNOPSIS
use Google::Cloud::Networksecurity::V1::GatewaySecurityPolicyRule;
my $msg = Google::Cloud::Networksecurity::V1::GatewaySecurityPolicyRule::GatewaySecurityPolicyRule->new({
basic_profile => $basic_profile,
name => $name,
create_time => $create_time,
update_time => $update_time,
});
# Read or update a field
my $val = $msg->basic_profile();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Networksecurity::V1::GatewaySecurityPolicyRule::GatewaySecurityPolicyRule->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/networksecurity/v1/gateway_security_policy_rule.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Networksecurity::V1::GatewaySecurityPolicyRule::GatewaySecurityPolicyRule
The GatewaySecurityPolicyRule resource is in a nested collection within a GatewaySecurityPolicy and represents a traffic matching condition and associated action to perform.
Inherits from Protobuf::Message.
Accessors
$msg->basic_profile()/$msg->basic_profile($value)Type:
Enum(Google::Cloud::Networksecurity::V1::GatewaySecurityPolicyRule::BasicProfile)Required. Profile which tells what the primitive action should be.
$msg->name()/$msg->name($value)Type:
StringRequired. 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]([a-z0-9-]{0,61}[a-z0-9])?$).
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Time when the rule was created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Time when the rule was updated.
$msg->enabled()/$msg->enabled($value)Type:
BoolRequired. Whether the rule is enforced.
$msg->priority()/$msg->priority($value)Type:
Int32Required. Priority of the rule. Lower number corresponds to higher precedence.
$msg->description()/$msg->description($value)Type:
StringOptional. Free-text description of the resource.
$msg->session_matcher()/$msg->session_matcher($value)Type:
StringRequired. CEL expression for matching on session criteria.
$msg->application_matcher()/$msg->application_matcher($value)Type:
StringOptional. CEL expression for matching on L7/application level criteria.
$msg->tls_inspection_enabled()/$msg->tls_inspection_enabled($value)Type:
BoolOptional. Flag to enable TLS inspection of traffic matching on <session_matcher>, can only be true if the parent GatewaySecurityPolicy references a TLSInspectionConfig.
Enum: GatewaySecurityPolicyRule::BasicProfile
BASIC_PROFILE_UNSPECIFIED=>0ALLOW=>1DENY=>2
Google::Cloud::Networksecurity::V1::GatewaySecurityPolicyRule::CreateGatewaySecurityPolicyRuleRequest
Methods for GatewaySecurityPolicy RULES/GatewaySecurityPolicyRules. Request used by the CreateGatewaySecurityPolicyRule method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent where this rule will be created. Format : projects/{project}/location/{location}/gatewaySecurityPolicies/*
$msg->gateway_security_policy_rule()/$msg->gateway_security_policy_rule($value)Type:
Message(Google::Cloud::Networksecurity::V1::GatewaySecurityPolicyRule::GatewaySecurityPolicyRule)Required. The rule to be created.
$msg->gateway_security_policy_rule_id()/$msg->gateway_security_policy_rule_id($value)Type:
StringThe ID to use for the rule, which will become the final component of the rule's resource name. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.
Google::Cloud::Networksecurity::V1::GatewaySecurityPolicyRule::GetGatewaySecurityPolicyRuleRequest
Request used by the GetGatewaySecurityPolicyRule method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the GatewaySecurityPolicyRule to retrieve. Format: projects/{project}/location/{location}/gatewaySecurityPolicies/*/rules/*
Google::Cloud::Networksecurity::V1::GatewaySecurityPolicyRule::UpdateGatewaySecurityPolicyRuleRequest
Request used by the UpdateGatewaySecurityPolicyRule method.
Inherits from Protobuf::Message.
Accessors
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Optional. Field mask is used to specify the fields to be overwritten in the GatewaySecurityPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
$msg->gateway_security_policy_rule()/$msg->gateway_security_policy_rule($value)Type:
Message(Google::Cloud::Networksecurity::V1::GatewaySecurityPolicyRule::GatewaySecurityPolicyRule)Required. Updated GatewaySecurityPolicyRule resource.
Google::Cloud::Networksecurity::V1::GatewaySecurityPolicyRule::ListGatewaySecurityPolicyRulesRequest
Request used with the ListGatewaySecurityPolicyRules method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The project, location and GatewaySecurityPolicy from which the GatewaySecurityPolicyRules should be listed, specified in the format `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}`.
$msg->page_size()/$msg->page_size($value)Type:
Int32Maximum number of GatewaySecurityPolicyRules to return per call.
$msg->page_token()/$msg->page_token($value)Type:
StringThe value returned by the last 'ListGatewaySecurityPolicyRulesResponse' Indicates that this is a continuation of a prior 'ListGatewaySecurityPolicyRules' call, and that the system should return the next page of data.
Google::Cloud::Networksecurity::V1::GatewaySecurityPolicyRule::ListGatewaySecurityPolicyRulesResponse
Response returned by the ListGatewaySecurityPolicyRules method.
Inherits from Protobuf::Message.
Accessors
$msg->gateway_security_policy_rules()/$msg->gateway_security_policy_rules($value)Type:
Message(Google::Cloud::Networksecurity::V1::GatewaySecurityPolicyRule::GatewaySecurityPolicyRule)List of GatewaySecurityPolicyRule resources.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringIf there might be more results than those appearing in this response, then 'next_page_token' is included. To get the next set of results, call this method again using the value of 'next_page_token' as 'page_token'.
$msg->unreachable()/$msg->unreachable($value)Type:
StringLocations that could not be reached.
Google::Cloud::Networksecurity::V1::GatewaySecurityPolicyRule::DeleteGatewaySecurityPolicyRuleRequest
Request used by the DeleteGatewaySecurityPolicyRule method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. A name of the GatewaySecurityPolicyRule to delete. Must be in the format `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}/rules/*`.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Networksecurity::V1::GatewaySecurityPolicyRule::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.