# NetApp V1 API - Class Google::Cloud::NetApp::V1::BackupVault (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::BackupVault.

A NetApp BackupVault.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #backup_region

    def backup_region() -> ::String

**Returns**

- (::String) --- Optional. Region where the backups are stored. Format: `projects/{project_id}/locations/{location}`

### #backup_region=

    def backup_region=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Region where the backups are stored. Format: `projects/{project_id}/locations/{location}`
**Returns**

- (::String) --- Optional. Region where the backups are stored. Format: `projects/{project_id}/locations/{location}`

### #backup_retention_policy

    def backup_retention_policy() -> ::Google::Cloud::NetApp::V1::BackupVault::BackupRetentionPolicy

**Returns**

- ([::Google::Cloud::NetApp::V1::BackupVault::BackupRetentionPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Cloud-NetApp-V1-BackupVault-BackupRetentionPolicy)) --- Optional. Backup retention policy defining the retention of backups.

### #backup_retention_policy=

    def backup_retention_policy=(value) -> ::Google::Cloud::NetApp::V1::BackupVault::BackupRetentionPolicy

**Parameter**

- **value** ([::Google::Cloud::NetApp::V1::BackupVault::BackupRetentionPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Cloud-NetApp-V1-BackupVault-BackupRetentionPolicy)) --- Optional. Backup retention policy defining the retention of backups.
**Returns**

- ([::Google::Cloud::NetApp::V1::BackupVault::BackupRetentionPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Cloud-NetApp-V1-BackupVault-BackupRetentionPolicy)) --- Optional. Backup retention policy defining the retention of backups.

### #backup_vault_type

    def backup_vault_type() -> ::Google::Cloud::NetApp::V1::BackupVault::BackupVaultType

**Returns**

- ([::Google::Cloud::NetApp::V1::BackupVault::BackupVaultType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Cloud-NetApp-V1-BackupVault-BackupVaultType)) --- Optional. Type of backup vault to be created. Default is IN_REGION.

### #backup_vault_type=

    def backup_vault_type=(value) -> ::Google::Cloud::NetApp::V1::BackupVault::BackupVaultType

**Parameter**

- **value** ([::Google::Cloud::NetApp::V1::BackupVault::BackupVaultType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Cloud-NetApp-V1-BackupVault-BackupVaultType)) --- Optional. Type of backup vault to be created. Default is IN_REGION.
**Returns**

- ([::Google::Cloud::NetApp::V1::BackupVault::BackupVaultType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Cloud-NetApp-V1-BackupVault-BackupVaultType)) --- Optional. Type of backup vault to be created. Default is IN_REGION.

### #backups_crypto_key_version

    def backups_crypto_key_version() -> ::String

**Returns**

- (::String) --- Output only. The crypto key version used to encrypt the backup vault. Format: `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`

### #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. Create time of the backup vault.

### #description

    def description() -> ::String

**Returns**

- (::String) --- Description of the backup vault.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- Description of the backup vault.
**Returns**

- (::String) --- Description of the backup vault.

### #destination_backup_vault

    def destination_backup_vault() -> ::String

**Returns**

- (::String) --- Output only. Name of the Backup vault created in backup region. Format: `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`

### #encryption_state

    def encryption_state() -> ::Google::Cloud::NetApp::V1::BackupVault::EncryptionState

**Returns**

- ([::Google::Cloud::NetApp::V1::BackupVault::EncryptionState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Cloud-NetApp-V1-BackupVault-EncryptionState)) --- Output only. Field indicating encryption state of CMEK backups.

### #kms_config

    def kms_config() -> ::String

**Returns**

- (::String) --- Optional. Specifies the Key Management System (KMS) configuration to be used for backup encryption. Format: `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`

### #kms_config=

    def kms_config=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Specifies the Key Management System (KMS) configuration to be used for backup encryption. Format: `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`
**Returns**

- (::String) --- Optional. Specifies the Key Management System (KMS) configuration to be used for backup encryption. Format: `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`

### #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 vault. Format: `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`.

### #name=

    def name=(value) -> ::String

**Parameter**

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

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

### #source_backup_vault

    def source_backup_vault() -> ::String

**Returns**

- (::String) --- Output only. Name of the Backup vault created in source region. Format: `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`

### #source_region

    def source_region() -> ::String

**Returns**

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

### #state

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

**Returns**

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