NAME
Google::Cloud::Networksecurity::V1::AuthorizationPolicy - Compiled Protocol Buffers messages for google/cloud/networksecurity/v1/authorization_policy.proto
SYNOPSIS
use Google::Cloud::Networksecurity::V1::AuthorizationPolicy;
my $msg = Google::Cloud::Networksecurity::V1::AuthorizationPolicy::AuthorizationPolicy->new({
name => $name,
description => $description,
create_time => $create_time,
update_time => $update_time,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Networksecurity::V1::AuthorizationPolicy::AuthorizationPolicy->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/networksecurity/v1/authorization_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::AuthorizationPolicy::AuthorizationPolicy
AuthorizationPolicy is a resource that specifies how a server should authorize incoming connections. This resource in itself does not change the configuration unless it's attached to a target https proxy or endpoint config selector resource.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the AuthorizationPolicy resource. It matches pattern `projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>`.
$msg->description()/$msg->description($value)Type:
StringOptional. Free-text description of the resource.
$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->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Networksecurity::V1::AuthorizationPolicy::AuthorizationPolicy::LabelsEntry)Optional. Set of label tags associated with the AuthorizationPolicy resource.
$msg->action()/$msg->action($value)Type:
Enum(Google::Cloud::Networksecurity::V1::AuthorizationPolicy::Action)Required. The action to take when a rule match is found. Possible values are "ALLOW" or "DENY".
$msg->rules()/$msg->rules($value)Type:
Message(Google::Cloud::Networksecurity::V1::AuthorizationPolicy::AuthorizationPolicy::Rule)Optional. List of rules to match. Note that at least one of the rules must match in order for the action specified in the 'action' field to be taken. A rule is a match if there is a matching source and destination. If left blank, the action specified in the `action` field will be applied on every request.
Enum: AuthorizationPolicy::Action
ACTION_UNSPECIFIED=>0ALLOW=>1DENY=>2
Google::Cloud::Networksecurity::V1::AuthorizationPolicy::ListAuthorizationPoliciesRequest
Request used with the ListAuthorizationPolicies method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The project and location from which the AuthorizationPolicies should be listed, specified in the format `projects/{project}/locations/{location}`.
$msg->page_size()/$msg->page_size($value)Type:
Int32Maximum number of AuthorizationPolicies to return per call.
$msg->page_token()/$msg->page_token($value)Type:
StringThe value returned by the last `ListAuthorizationPoliciesResponse` Indicates that this is a continuation of a prior `ListAuthorizationPolicies` call, and that the system should return the next page of data.
Google::Cloud::Networksecurity::V1::AuthorizationPolicy::ListAuthorizationPoliciesResponse
Response returned by the ListAuthorizationPolicies method.
Inherits from Protobuf::Message.
Accessors
$msg->authorization_policies()/$msg->authorization_policies($value)Type:
Message(Google::Cloud::Networksecurity::V1::AuthorizationPolicy::AuthorizationPolicy)List of AuthorizationPolicies 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`.
Google::Cloud::Networksecurity::V1::AuthorizationPolicy::GetAuthorizationPolicyRequest
Request used by the GetAuthorizationPolicy method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. A name of the AuthorizationPolicy to get. Must be in the format `projects/{project}/locations/{location}/authorizationPolicies/*`.
Google::Cloud::Networksecurity::V1::AuthorizationPolicy::CreateAuthorizationPolicyRequest
Request used by the CreateAuthorizationPolicy method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource of the AuthorizationPolicy. Must be in the format `projects/{project}/locations/{location}`.
$msg->authorization_policy_id()/$msg->authorization_policy_id($value)Type:
StringRequired. Short name of the AuthorizationPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "authz_policy".
$msg->authorization_policy()/$msg->authorization_policy($value)Type:
Message(Google::Cloud::Networksecurity::V1::AuthorizationPolicy::AuthorizationPolicy)Required. AuthorizationPolicy resource to be created.
Google::Cloud::Networksecurity::V1::AuthorizationPolicy::UpdateAuthorizationPolicyRequest
Request used by the UpdateAuthorizationPolicy 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 AuthorizationPolicy 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->authorization_policy()/$msg->authorization_policy($value)Type:
Message(Google::Cloud::Networksecurity::V1::AuthorizationPolicy::AuthorizationPolicy)Required. Updated AuthorizationPolicy resource.
Google::Cloud::Networksecurity::V1::AuthorizationPolicy::DeleteAuthorizationPolicyRequest
Request used by the DeleteAuthorizationPolicy method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. A name of the AuthorizationPolicy to delete. Must be in the format `projects/{project}/locations/{location}/authorizationPolicies/*`.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Networksecurity::V1::AuthorizationPolicy::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.