# NetApp V1 API - Class Google::Cloud::NetApp::V1::Backup (v2.11.0)

2.11.0 (latest) 2.10.0 2.9.0 2.8.0 2.7.0 2.6.1 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.2 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.6.0 0.5.2 0.4.2 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the NetApp V1 API class Google::Cloud::NetApp::V1::Backup.

A NetApp Backup.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #backup_region

    def backup_region() -> ::String

**Returns**

- (::String) --- Output only. Region in which backup is stored. Format: `projects/{project_id}/locations/{location}`

### #backup_type

    def backup_type() -> ::Google::Cloud::NetApp::V1::Backup::Type

**Returns**

- ([::Google::Cloud::NetApp::V1::Backup::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Cloud-NetApp-V1-Backup-Type)) --- Output only. Type of backup, manually created or created by a backup policy.

### #chain_storage_bytes

    def chain_storage_bytes() -> ::Integer

**Returns**

- (::Integer) --- Output only. Total size of all backups in a chain in bytes = baseline backup size + sum(incremental backup size)

### #create_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time when the backup was created.

### #description

    def description() -> ::String

**Returns**

- (::String) --- A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.
**Returns**

- (::String) --- A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.

### #enforced_retention_end_time

    def enforced_retention_end_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time until which the backup is not deletable.

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

### #name

    def name() -> ::String

**Returns**

- (::String) --- Identifier. The resource name of the backup. Format: `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier. The resource name of the backup. Format: `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}`.
**Returns**

- (::String) --- Identifier. The resource name of the backup. Format: `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}`.

### #satisfies_pzi

    def satisfies_pzi() -> ::Boolean

**Returns**

- (::Boolean) --- Output only. Reserved for future use

### #satisfies_pzs

    def satisfies_pzs() -> ::Boolean

**Returns**

- (::Boolean) --- Output only. Reserved for future use

### #source_snapshot

    def source_snapshot() -> ::String

**Returns**

- (::String) --- If specified, backup will be created from the given snapshot. If not specified, there will be a new snapshot taken to initiate the backup creation. Format: `projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}`

### #source_snapshot=

    def source_snapshot=(value) -> ::String

**Parameter**

- **value** (::String) --- If specified, backup will be created from the given snapshot. If not specified, there will be a new snapshot taken to initiate the backup creation. Format: `projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}`
**Returns**

- (::String) --- If specified, backup will be created from the given snapshot. If not specified, there will be a new snapshot taken to initiate the backup creation. Format: `projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}`

### #source_volume

    def source_volume() -> ::String

**Returns**

- (::String) --- Volume full name of this backup belongs to. Either source_volume or ontap_source should be provided. Format: `projects/{projects_id}/locations/{location}/volumes/{volume_id}`

### #source_volume=

    def source_volume=(value) -> ::String

**Parameter**

- **value** (::String) --- Volume full name of this backup belongs to. Either source_volume or ontap_source should be provided. Format: `projects/{projects_id}/locations/{location}/volumes/{volume_id}`
**Returns**

- (::String) --- Volume full name of this backup belongs to. Either source_volume or ontap_source should be provided. Format: `projects/{projects_id}/locations/{location}/volumes/{volume_id}`

### #state

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

**Returns**

- ([::Google::Cloud::NetApp::V1::Backup::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Cloud-NetApp-V1-Backup-State)) --- Output only. The backup state.

### #volume_region

    def volume_region() -> ::String

**Returns**

- (::String) --- Output only. Region of the volume from which the backup was created. Format: `projects/{project_id}/locations/{location}`

### #volume_usage_bytes

    def volume_usage_bytes() -> ::Integer

**Returns**

- (::Integer) --- Output only. Size of the file system when the backup was created. When creating a new volume from the backup, the volume capacity will have to be at least as big.