Class: Google::Apis::NetappV1::RestoreParameters
- Inherits:
-
Object
- Object
- Google::Apis::NetappV1::RestoreParameters
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/netapp_v1/classes.rb,
lib/google/apis/netapp_v1/representations.rb,
lib/google/apis/netapp_v1/representations.rb
Overview
The RestoreParameters if volume is created from a snapshot or backup.
Instance Attribute Summary collapse
-
#source_backup ⇒ String
Full name of the backup resource.
-
#source_snapshot ⇒ String
Full name of the snapshot resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RestoreParameters
constructor
A new instance of RestoreParameters.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RestoreParameters
Returns a new instance of RestoreParameters.
2444 2445 2446 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 2444 def initialize(**args) update!(**args) end |
Instance Attribute Details
#source_backup ⇒ String
Full name of the backup resource. Format for standard backup: projects/
project/locations/location/backupVaults/backup_vault_id/backups/
backup_id Format for BackupDR backup: projects/project/locations/location/
backupVaults/backup_vault/dataSources/data_source/backups/backup
Corresponds to the JSON property sourceBackup
2436 2437 2438 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 2436 def source_backup @source_backup end |
#source_snapshot ⇒ String
Full name of the snapshot resource. Format: projects/project/locations/
location/volumes/volume/snapshots/snapshot
Corresponds to the JSON property sourceSnapshot
2442 2443 2444 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 2442 def source_snapshot @source_snapshot end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2449 2450 2451 2452 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 2449 def update!(**args) @source_backup = args[:source_backup] if args.key?(:source_backup) @source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot) end |