NAME
Google::Cloud::Networksecurity::V1::AuthzPolicy - Compiled Protocol Buffers messages for google/cloud/networksecurity/v1/authz_policy.proto
SYNOPSIS
use Google::Cloud::Networksecurity::V1::AuthzPolicy;
my $msg = Google::Cloud::Networksecurity::V1::AuthzPolicy::AuthzPolicy->new({
name => $name,
create_time => $create_time,
update_time => $update_time,
description => $description,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Networksecurity::V1::AuthzPolicy::AuthzPolicy->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/networksecurity/v1/authz_policy.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::AuthzPolicy::AuthzPolicy
`AuthzPolicy` is a resource that allows to forward traffic to a callout backend designed to scan the traffic for security purposes.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Identifier. Name of the `AuthzPolicy` resource in the following format: `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The timestamp when the resource was created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The timestamp when the resource was updated.
$msg->description()/$msg->description($value)Type:
StringOptional. A human-readable description of the resource.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Networksecurity::V1::AuthzPolicy::AuthzPolicy::LabelsEntry)Optional. Set of labels associated with the `AuthzPolicy` resource.
The format must comply with [the following requirements](/compute/docs/labeling-resources#requirements).
$msg->target()/$msg->target($value)Type:
Message(Google::Cloud::Networksecurity::V1::AuthzPolicy::AuthzPolicy::Target)Required. Specifies the set of resources to which this policy should be applied to.
$msg->http_rules()/$msg->http_rules($value)Type:
Message(Google::Cloud::Networksecurity::V1::AuthzPolicy::AuthzPolicy::AuthzRule)Optional. A list of authorization HTTP rules to match against the incoming request. A policy match occurs when at least one HTTP rule matches the request or when no HTTP rules are specified in the policy. At least one HTTP Rule is required for Allow or Deny Action. Limited to 5 rules.
$msg->network_rules()/$msg->network_rules($value)Type:
Message(Google::Cloud::Networksecurity::V1::AuthzPolicy::AuthzPolicy::AuthzRule)Optional. A list of authorization network rules to match against the incoming request. A policy match occurs when at least one network rule matches the request. At least one network rule is required for Allow or Deny Action if no HTTP rules are provided. Network rules are mutually exclusive with HTTP rules. Limited to 5 rules.
$msg->action()/$msg->action($value)Type:
Enum(Google::Cloud::Networksecurity::V1::AuthzPolicy::AuthzAction)Required. Can be one of `ALLOW`, `DENY`, `CUSTOM`.
When the action is `CUSTOM`, `customProvider` must be specified.
When the action is `ALLOW`, only requests matching the policy will be allowed.
When the action is `DENY`, only requests matching the policy will be denied.
When a request arrives, the policies are evaluated in the following order:
1. If there is a `CUSTOM` policy that matches the request, the `CUSTOM` policy is evaluated using the custom authorization providers and the request is denied if the provider rejects the request.
2. If there are any `DENY` policies that match the request, the request is denied.
3. If there are no `ALLOW` policies for the resource or if any of the `ALLOW` policies match the request, the request is allowed.
4. Else the request is denied by default if none of the configured AuthzPolicies with `ALLOW` action match the request.
$msg->custom_provider()/$msg->custom_provider($value)Type:
Message(Google::Cloud::Networksecurity::V1::AuthzPolicy::AuthzPolicy::CustomProvider)Optional. Required if the action is `CUSTOM`. Allows delegating authorization decisions to Cloud IAP or to Service Extensions. One of `cloudIap` or `authzExtension` must be specified.
$msg->policy_profile()/$msg->policy_profile($value)Type:
Enum(Google::Cloud::Networksecurity::V1::AuthzPolicy::PolicyProfile)Optional. Immutable. Defines the type of authorization being performed. If not specified, `REQUEST_AUTHZ` is applied. This field cannot be changed once AuthzPolicy is created.
Enum: AuthzPolicy::LoadBalancingScheme
LOAD_BALANCING_SCHEME_UNSPECIFIED=>0INTERNAL_MANAGED=>1EXTERNAL_MANAGED=>2INTERNAL_SELF_MANAGED=>3
Enum: AuthzPolicy::AuthzAction
AUTHZ_ACTION_UNSPECIFIED=>0ALLOW=>1DENY=>2CUSTOM=>3
Enum: AuthzPolicy::PolicyProfile
POLICY_PROFILE_UNSPECIFIED=>0REQUEST_AUTHZ=>1CONTENT_AUTHZ=>2
Google::Cloud::Networksecurity::V1::AuthzPolicy::CreateAuthzPolicyRequest
Message for creating an `AuthzPolicy` resource.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource of the `AuthzPolicy` resource. Must be in the format `projects/{project}/locations/{location}`.
$msg->authz_policy_id()/$msg->authz_policy_id($value)Type:
StringRequired. User-provided ID of the `AuthzPolicy` resource to be created.
$msg->authz_policy()/$msg->authz_policy($value)Type:
Message(Google::Cloud::Networksecurity::V1::AuthzPolicy::AuthzPolicy)Required. `AuthzPolicy` resource to be created.
$msg->request_id()/$msg->request_id($value)Type:
StringOptional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, ignores the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
Google::Cloud::Networksecurity::V1::AuthzPolicy::ListAuthzPoliciesRequest
Message for requesting list of `AuthzPolicy` resources.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The project and location from which the `AuthzPolicy` resources are listed, specified in the following format: `projects/{project}/locations/{location}`.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. Requested page size. The server might return fewer items than requested. If unspecified, the server picks an appropriate default.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A token identifying a page of results that the server returns.
$msg->filter()/$msg->filter($value)Type:
StringOptional. Filtering results.
$msg->order_by()/$msg->order_by($value)Type:
StringOptional. Hint for how to order the results.
Google::Cloud::Networksecurity::V1::AuthzPolicy::ListAuthzPoliciesResponse
Message for response to listing `AuthzPolicy` resources.
Inherits from Protobuf::Message.
Accessors
$msg->authz_policies()/$msg->authz_policies($value)Type:
Message(Google::Cloud::Networksecurity::V1::AuthzPolicy::AuthzPolicy)The list of `AuthzPolicy` resources.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token identifying a page of results that the server returns.
$msg->unreachable()/$msg->unreachable($value)Type:
StringLocations that could not be reached.
Google::Cloud::Networksecurity::V1::AuthzPolicy::GetAuthzPolicyRequest
Message for getting a `AuthzPolicy` resource.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. A name of the `AuthzPolicy` resource to get. Must be in the format `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
Google::Cloud::Networksecurity::V1::AuthzPolicy::UpdateAuthzPolicyRequest
Message for updating an `AuthzPolicy` resource.
Inherits from Protobuf::Message.
Accessors
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Required. Used to specify the fields to be overwritten in the `AuthzPolicy` resource by the update. The fields specified in the `update_mask` are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.
$msg->authz_policy()/$msg->authz_policy($value)Type:
Message(Google::Cloud::Networksecurity::V1::AuthzPolicy::AuthzPolicy)Required. `AuthzPolicy` resource being updated.
$msg->request_id()/$msg->request_id($value)Type:
StringOptional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, ignores the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
Google::Cloud::Networksecurity::V1::AuthzPolicy::DeleteAuthzPolicyRequest
Message for deleting an `AuthzPolicy` resource.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the `AuthzPolicy` resource to delete. Must be in the format `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
$msg->request_id()/$msg->request_id($value)Type:
StringOptional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, ignores the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Networksecurity::V1::AuthzPolicy::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.