# Backup and DR Service V1 API - Class Google::Cloud::BackupDR::V1::GetBackupRequest (v1.10.0)

1.10.0 (latest) 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.1 1.3.0 1.2.0 1.1.0 1.0.1 0.5.0 0.4.0 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the Backup and DR Service V1 API class Google::Cloud::BackupDR::V1::GetBackupRequest.

Request message for getting a Backup.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required. Name of the data source resource name, in the format 'projects/{project_id}/locations/{location}/backupVaults/{backupVault}/dataSources/{datasource}/backups/{backup}'

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Name of the data source resource name, in the format 'projects/{project_id}/locations/{location}/backupVaults/{backupVault}/dataSources/{datasource}/backups/{backup}'
**Returns**

- (::String) --- Required. Name of the data source resource name, in the format 'projects/{project_id}/locations/{location}/backupVaults/{backupVault}/dataSources/{datasource}/backups/{backup}'

### #view

    def view() -> ::Google::Cloud::BackupDR::V1::BackupView

**Returns**

- ([::Google::Cloud::BackupDR::V1::BackupView](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-backupdr-v1/latest/Google-Cloud-BackupDR-V1-BackupView)) --- Optional. Reserved for future use to provide a BASIC \& FULL view of Backup resource.

### #view=

    def view=(value) -> ::Google::Cloud::BackupDR::V1::BackupView

**Parameter**

- **value** ([::Google::Cloud::BackupDR::V1::BackupView](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-backupdr-v1/latest/Google-Cloud-BackupDR-V1-BackupView)) --- Optional. Reserved for future use to provide a BASIC \& FULL view of Backup resource.
**Returns**

- ([::Google::Cloud::BackupDR::V1::BackupView](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-backupdr-v1/latest/Google-Cloud-BackupDR-V1-BackupView)) --- Optional. Reserved for future use to provide a BASIC \& FULL view of Backup resource.