NetApp V1 API - Class Google::Cloud::NetApp::V1::BackupPolicy (v0.6.0)

Reference documentation and code samples for the NetApp V1 API class Google::Cloud::NetApp::V1::BackupPolicy.

Backup Policy.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#assigned_volume_count

def assigned_volume_count() -> ::Integer
Returns
  • (::Integer) — Output only. The total number of volumes assigned by this backup policy.

#create_time

def create_time() -> ::Google::Protobuf::Timestamp
Returns

#daily_backup_limit

def daily_backup_limit() -> ::Integer
Returns
  • (::Integer) — Number of daily backups to keep. Note that the minimum daily backup limit is 2.

#daily_backup_limit=

def daily_backup_limit=(value) -> ::Integer
Parameter
  • value (::Integer) — Number of daily backups to keep. Note that the minimum daily backup limit is 2.
Returns
  • (::Integer) — Number of daily backups to keep. Note that the minimum daily backup limit is 2.

#description

def description() -> ::String
Returns
  • (::String) — Description of the backup policy.

#description=

def description=(value) -> ::String
Parameter
  • value (::String) — Description of the backup policy.
Returns
  • (::String) — Description of the backup policy.

#enabled

def enabled() -> ::Boolean
Returns
  • (::Boolean) — If 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.

#enabled=

def enabled=(value) -> ::Boolean
Parameter
  • value (::Boolean) — If 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.
Returns
  • (::Boolean) — If 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.

#labels

def labels() -> ::Google::Protobuf::Map{::String => ::String}
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Resource labels to represent user provided metadata.

#labels=

def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
  • value (::Google::Protobuf::Map{::String => ::String}) — Resource labels to represent user provided metadata.
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Resource labels to represent user provided metadata.

#monthly_backup_limit

def monthly_backup_limit() -> ::Integer
Returns
  • (::Integer) — Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.

#monthly_backup_limit=

def monthly_backup_limit=(value) -> ::Integer
Parameter
  • value (::Integer) — Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
Returns
  • (::Integer) — Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.

#name

def name() -> ::String
Returns
  • (::String) — Identifier. The resource name of the backup policy. Format: projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Identifier. The resource name of the backup policy. Format: projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}.
Returns
  • (::String) — Identifier. The resource name of the backup policy. Format: projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}.

#state

def state() -> ::Google::Cloud::NetApp::V1::BackupPolicy::State
Returns

#weekly_backup_limit

def weekly_backup_limit() -> ::Integer
Returns
  • (::Integer) — Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.

#weekly_backup_limit=

def weekly_backup_limit=(value) -> ::Integer
Parameter
  • value (::Integer) — Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
Returns
  • (::Integer) — Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.