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.
1644 1645 1646 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1644 def initialize(**args) update!(**args) end |
Instance Attribute Details
#source_backup ⇒ String
Full name of the backup resource. Format: projects/project/locations/
location/backupVaults/backup_vault_id/backups/backup_id
Corresponds to the JSON property sourceBackup
1636 1637 1638 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1636 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
1642 1643 1644 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1642 def source_snapshot @source_snapshot end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1649 1650 1651 1652 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1649 def update!(**args) @source_backup = args[:source_backup] if args.key?(:source_backup) @source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot) end |