Service Client: Google::Cloud::Networksecurity::V1::AddressGroup::AddressGroupServiceClient

Client stub representing the remote AddressGroupService gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to networksecurity.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

Service Client: Google::Cloud::Networksecurity::V1::AddressGroup::OrganizationAddressGroupServiceClient

Client stub representing the remote OrganizationAddressGroupService gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to networksecurity.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Networksecurity::V1::AddressGroup - Compiled Protocol Buffers messages for google/cloud/networksecurity/v1/address_group.proto

SYNOPSIS

use Google::Cloud::Networksecurity::V1::AddressGroup;

my $msg = Google::Cloud::Networksecurity::V1::AddressGroup::AddressGroup->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::AddressGroup::AddressGroup->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/networksecurity/v1/address_group.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::AddressGroup::AddressGroup

AddressGroup is a resource that specifies how a collection of IP/DNS used in Firewall Policy.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the AddressGroup resource. It matches pattern `projects/*/locations/{location}/addressGroups/<address_group>`.

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

    Type: String

    Optional. 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::AddressGroup::AddressGroup::LabelsEntry)

    Optional. Set of label tags associated with the AddressGroup resource.

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

    Type: Enum (Google::Cloud::Networksecurity::V1::AddressGroup::Type)

    Required. The type of the Address Group. Possible values are "IPv4" or "IPV6".

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

    Type: String

    Optional. List of items.

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

    Type: Int32

    Required. Capacity of the Address Group

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

    Type: String

    Output only. Server-defined fully-qualified URL for this resource.

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

    Type: Enum (Google::Cloud::Networksecurity::V1::AddressGroup::Purpose)

    Optional. List of supported purposes of the Address Group.

Enum: AddressGroup::Type

  • TYPE_UNSPECIFIED => 0

  • IPV4 => 1

  • IPV6 => 2

Enum: AddressGroup::Purpose

  • PURPOSE_UNSPECIFIED => 0

  • DEFAULT => 1

  • CLOUD_ARMOR => 2

Google::Cloud::Networksecurity::V1::AddressGroup::ListAddressGroupsRequest

Request used with the ListAddressGroups method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The project and location from which the AddressGroups should be listed, specified in the format `projects/*/locations/{location}`.

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

    Type: Int32

    Maximum number of AddressGroups to return per call.

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

    Type: String

    The value returned by the last `ListAddressGroupsResponse` Indicates that this is a continuation of a prior `ListAddressGroups` call, and that the system should return the next page of data.

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

    Type: Bool

    Optional. If true, allow partial responses for multi-regional Aggregated List requests.

Google::Cloud::Networksecurity::V1::AddressGroup::ListAddressGroupsResponse

Response returned by the ListAddressGroups method.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Networksecurity::V1::AddressGroup::AddressGroup)

    List of AddressGroups 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`.

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

    Type: String

    Locations that could not be reached.

Google::Cloud::Networksecurity::V1::AddressGroup::GetAddressGroupRequest

Request used by the GetAddressGroup method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. A name of the AddressGroup to get. Must be in the format `projects/*/locations/{location}/addressGroups/*`.

Google::Cloud::Networksecurity::V1::AddressGroup::CreateAddressGroupRequest

Request used by the CreateAddressGroup method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent resource of the AddressGroup. Must be in the format `projects/*/locations/{location}`.

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

    Type: String

    Required. Short name of the AddressGroup 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->address_group() / $msg->address_group($value)

    Type: Message (Google::Cloud::Networksecurity::V1::AddressGroup::AddressGroup)

    Required. AddressGroup resource to be created.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee 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, will ignore 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::AddressGroup::UpdateAddressGroupRequest

Request used by the UpdateAddressGroup 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 AddressGroup 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->address_group() / $msg->address_group($value)

    Type: Message (Google::Cloud::Networksecurity::V1::AddressGroup::AddressGroup)

    Required. Updated AddressGroup resource.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee 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, will ignore 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::AddressGroup::DeleteAddressGroupRequest

Request used by the DeleteAddressGroup method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. A name of the AddressGroup to delete. Must be in the format `projects/*/locations/{location}/addressGroups/*`.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee 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, will ignore 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::AddressGroup::AddAddressGroupItemsRequest

Request used by the AddAddressGroupItems method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. A name of the AddressGroup to add items to. Must be in the format `projects|organization/*/locations/{location}/addressGroups/*`.

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

    Type: String

    Required. List of items to add.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee 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, will ignore 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::AddressGroup::RemoveAddressGroupItemsRequest

Request used by the RemoveAddressGroupItems method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. A name of the AddressGroup to remove items from. Must be in the format `projects|organization/*/locations/{location}/addressGroups/*`.

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

    Type: String

    Required. List of items to remove.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee 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, will ignore 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::AddressGroup::CloneAddressGroupItemsRequest

Request used by the CloneAddressGroupItems method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. A name of the AddressGroup to clone items to. Must be in the format `projects|organization/*/locations/{location}/addressGroups/*`.

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

    Type: String

    Required. Source address group to clone items from.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee 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, will ignore 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::AddressGroup::ListAddressGroupReferencesRequest

Request used by the ListAddressGroupReferences method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. A name of the AddressGroup to clone items to. Must be in the format `projects|organization/*/locations/{location}/addressGroups/*`.

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

    Type: Int32

    The maximum number of references to return. If unspecified, server will pick an appropriate default. Server may return fewer items than requested. A caller should only rely on response's [next_page_token][google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.next_page_token] to determine if there are more AddressGroupUsers left to be queried.

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

    Type: String

    The next_page_token value returned from a previous List request, if any.

Google::Cloud::Networksecurity::V1::AddressGroup::ListAddressGroupReferencesResponse

Response of the ListAddressGroupReferences method.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Networksecurity::V1::AddressGroup::ListAddressGroupReferencesResponse::AddressGroupReference)

    A list of references that matches the specified filter in the request.

  • $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`.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Networksecurity::V1::AddressGroup::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.