Class: Google::Apis::NetappV1::RestoreVolumeRequest

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

Request message for RestoreVolume API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RestoreVolumeRequest

Returns a new instance of RestoreVolumeRequest.



2604
2605
2606
# File 'lib/google/apis/netapp_v1/classes.rb', line 2604

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

Instance Attribute Details

#backup_sourceGoogle::Apis::NetappV1::BackupSource

Represents the backup source of the restore operation. Corresponds to the JSON property backupSource



2597
2598
2599
# File 'lib/google/apis/netapp_v1/classes.rb', line 2597

def backup_source
  @backup_source
end

#ontap_volume_targetGoogle::Apis::NetappV1::OntapVolumeTarget

Represents the ONTAP volume target of the restore operation. Corresponds to the JSON property ontapVolumeTarget



2602
2603
2604
# File 'lib/google/apis/netapp_v1/classes.rb', line 2602

def ontap_volume_target
  @ontap_volume_target
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2609
2610
2611
2612
# File 'lib/google/apis/netapp_v1/classes.rb', line 2609

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