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

Enum: AuthorizationPolicy::Action

  • ACTION_UNSPECIFIED => 0

  • ALLOW => 1

  • DENY => 2

Google::Cloud::Networksecurity::V1::AuthorizationPolicy::ListAuthorizationPoliciesRequest

Request used with the ListAuthorizationPolicies method.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. 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: Int32

    Maximum number of AuthorizationPolicies to return per call.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    The 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: String

    If 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: String

    Required. 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: String

    Required. 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: String

    Required. 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: String

    Required. 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.