Class: Google::Apis::NetappV1::RestoreParameters

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RestoreParameters

Returns a new instance of RestoreParameters.



1380
1381
1382
# File 'lib/google/apis/netapp_v1/classes.rb', line 1380

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#source_backupString

Full name of the backup resource. Format: projects/project/locations/ location/backupVaults/backup_vault_id/backups/backup_id Corresponds to the JSON property sourceBackup

Returns:

  • (String)


1372
1373
1374
# File 'lib/google/apis/netapp_v1/classes.rb', line 1372

def source_backup
  @source_backup
end

#source_snapshotString

Full name of the snapshot resource. Format: projects/project/locations/ location/volumes/volume/snapshots/snapshot Corresponds to the JSON property sourceSnapshot

Returns:

  • (String)


1378
1379
1380
# File 'lib/google/apis/netapp_v1/classes.rb', line 1378

def source_snapshot
  @source_snapshot
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1385
1386
1387
1388
# File 'lib/google/apis/netapp_v1/classes.rb', line 1385

def update!(**args)
  @source_backup = args[:source_backup] if args.key?(:source_backup)
  @source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot)
end