NAME
Google::Cloud::Netapp::V1::BackupPolicy - Compiled Protocol Buffers messages for google/cloud/netapp/v1/backup_policy.proto
SYNOPSIS
use Google::Cloud::Netapp::V1::BackupPolicy;
my $msg = Google::Cloud::Netapp::V1::BackupPolicy::BackupPolicy->new({
name => $name,
daily_backup_limit => $daily_backup_limit,
weekly_backup_limit => $weekly_backup_limit,
monthly_backup_limit => $monthly_backup_limit,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Netapp::V1::BackupPolicy::BackupPolicy->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/netapp/v1/backup_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::Netapp::V1::BackupPolicy::BackupPolicy
Backup Policy.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. The resource name of the backup policy. Format: `projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}`.
$msg->daily_backup_limit()/$msg->daily_backup_limit($value)Type:
Int32Number of daily backups to keep. Note that the minimum daily backup limit is 2.
$msg->weekly_backup_limit()/$msg->weekly_backup_limit($value)Type:
Int32Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
$msg->monthly_backup_limit()/$msg->monthly_backup_limit($value)Type:
Int32Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
$msg->description()/$msg->description($value)Type:
StringDescription of the backup policy.
$msg->enabled()/$msg->enabled($value)Type:
BoolIf enabled, make backups automatically according to the schedules. This will be applied to all volumes that have this policy attached and enforced on volume level. If not specified, default is true.
$msg->assigned_volume_count()/$msg->assigned_volume_count($value)Type:
Int32Output only. The total number of volumes assigned by this backup policy.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time when the backup policy was created.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Netapp::V1::BackupPolicy::BackupPolicy::LabelsEntry)Resource labels to represent user provided metadata.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Netapp::V1::BackupPolicy::State)Output only. The backup policy state.
Enum: BackupPolicy::State
STATE_UNSPECIFIED=>0CREATING=>1READY=>2DELETING=>3ERROR=>4UPDATING=>5
Google::Cloud::Netapp::V1::BackupPolicy::CreateBackupPolicyRequest
CreateBackupPolicyRequest creates a backupPolicy.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The location to create the backup policies of, in the format `projects/{project_id}/locations/{location}`
$msg->backup_policy()/$msg->backup_policy($value)Type:
Message(Google::Cloud::Netapp::V1::BackupPolicy::BackupPolicy)Required. A backupPolicy resource
$msg->backup_policy_id()/$msg->backup_policy_id($value)Type:
StringRequired. The ID to use for the backup policy. The ID must be unique within the specified location. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.
Google::Cloud::Netapp::V1::BackupPolicy::GetBackupPolicyRequest
GetBackupPolicyRequest gets the state of a backupPolicy.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The backupPolicy resource name, in the format `projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}`
Google::Cloud::Netapp::V1::BackupPolicy::ListBackupPoliciesRequest
ListBackupPoliciesRequest for requesting multiple backup policies.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Parent value for ListBackupPoliciesRequest
$msg->page_size()/$msg->page_size($value)Type:
Int32Requested page size. Server may return fewer items than requested. If unspecified, the server will pick an appropriate default.
$msg->page_token()/$msg->page_token($value)Type:
StringA token identifying a page of results the server should return.
$msg->filter()/$msg->filter($value)Type:
StringFiltering results
$msg->order_by()/$msg->order_by($value)Type:
StringHint for how to order the results
Google::Cloud::Netapp::V1::BackupPolicy::ListBackupPoliciesResponse
ListBackupPoliciesResponse contains all the backup policies requested.
Inherits from Protobuf::Message.
Accessors
$msg->backup_policies()/$msg->backup_policies($value)Type:
Message(Google::Cloud::Netapp::V1::BackupPolicy::BackupPolicy)The list of backup policies.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token identifying a page of results the server should return.
$msg->unreachable()/$msg->unreachable($value)Type:
StringLocations that could not be reached.
Google::Cloud::Netapp::V1::BackupPolicy::UpdateBackupPolicyRequest
UpdateBackupPolicyRequest for updating a backup policy.
Inherits from Protobuf::Message.
Accessors
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Required. Field mask is used to specify the fields to be overwritten in the Backup Policy 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->backup_policy()/$msg->backup_policy($value)Type:
Message(Google::Cloud::Netapp::V1::BackupPolicy::BackupPolicy)Required. The backup policy being updated
Google::Cloud::Netapp::V1::BackupPolicy::DeleteBackupPolicyRequest
DeleteBackupPolicyRequest deletes a backup policy.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The backup policy resource name, in the format `projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}`
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Netapp::V1::BackupPolicy::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.