NAME
Google::Devtools::Artifactregistry::V1::Rule - Compiled Protocol Buffers messages for google/devtools/artifactregistry/v1/rule.proto
SYNOPSIS
use Google::Devtools::Artifactregistry::V1::Rule;
my $msg = Google::Devtools::Artifactregistry::V1::Rule::Rule->new({
name => $name,
action => $action,
operation => $operation,
condition => $condition,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Devtools::Artifactregistry::V1::Rule::Rule->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/devtools/artifactregistry/v1/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::Devtools::Artifactregistry::V1::Rule::Rule
A rule defines the deny or allow action of the operation it applies to and the conditions required for the rule to apply. You can set one rule for an entire repository and one rule for each package within.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe name of the rule, for example: `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`.
$msg->action()/$msg->action($value)Type:
Enum(Google::Devtools::Artifactregistry::V1::Rule::Action)The action this rule takes.
$msg->operation()/$msg->operation($value)Type:
Enum(Google::Devtools::Artifactregistry::V1::Rule::Operation)$msg->condition()/$msg->condition($value)Type:
Message(Google::Type::Expr::Expr)Optional. A CEL expression for conditions that must be met in order for the rule to apply. If not provided, the rule matches all objects.
$msg->package_id()/$msg->package_id($value)Type:
StringThe package ID the rule applies to. If empty, this rule applies to all packages inside the repository.
Enum: Rule::Action
ACTION_UNSPECIFIED=>0ALLOW=>1DENY=>2
Enum: Rule::Operation
OPERATION_UNSPECIFIED=>0DOWNLOAD=>1
Google::Devtools::Artifactregistry::V1::Rule::ListRulesRequest
The request to list rules.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The name of the parent repository whose rules will be listed. For example: `projects/p1/locations/us-central1/repositories/repo1`.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of rules to return. Maximum page size is 1,000.
$msg->page_token()/$msg->page_token($value)Type:
StringThe next_page_token value returned from a previous list request, if any.
Google::Devtools::Artifactregistry::V1::Rule::ListRulesResponse
The response from listing rules.
Inherits from Protobuf::Message.
Accessors
$msg->rules()/$msg->rules($value)Type:
Message(Google::Devtools::Artifactregistry::V1::Rule::Rule)The rules returned.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringThe token to retrieve the next page of rules, or empty if there are no more rules to return.
Google::Devtools::Artifactregistry::V1::Rule::GetRuleRequest
The request to retrieve a rule.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the rule to retrieve.
Google::Devtools::Artifactregistry::V1::Rule::CreateRuleRequest
The request to create a new rule.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The name of the parent resource where the rule will be created.
$msg->rule_id()/$msg->rule_id($value)Type:
StringThe rule id to use for this repository.
$msg->rule()/$msg->rule($value)Type:
Message(Google::Devtools::Artifactregistry::V1::Rule::Rule)The rule to be created.
Google::Devtools::Artifactregistry::V1::Rule::UpdateRuleRequest
The request to update a rule.
Inherits from Protobuf::Message.
Accessors
$msg->rule()/$msg->rule($value)Type:
Message(Google::Devtools::Artifactregistry::V1::Rule::Rule)The rule that replaces the resource on the server.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
Google::Devtools::Artifactregistry::V1::Rule::DeleteRuleRequest
The request to delete a rule.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the rule to delete.
SEE ALSO
Protobuf, Protobuf::Message, Google::Devtools::Artifactregistry::V1::Rule::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.