Class: Google::Apis::NetappV1::RevertVolumeRequest

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

RevertVolumeRequest reverts the given volume to the specified snapshot.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RevertVolumeRequest

Returns a new instance of RevertVolumeRequest.



1429
1430
1431
# File 'lib/google/apis/netapp_v1/classes.rb', line 1429

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

Instance Attribute Details

#snapshot_idString

Required. The snapshot resource ID, in the format 'my-snapshot', where the specified ID is the snapshot_id of the fully qualified name like projects/ project_id/locations/location_id/volumes/volume_id/snapshots/snapshot_id Corresponds to the JSON property snapshotId

Returns:

  • (String)


1427
1428
1429
# File 'lib/google/apis/netapp_v1/classes.rb', line 1427

def snapshot_id
  @snapshot_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1434
1435
1436
# File 'lib/google/apis/netapp_v1/classes.rb', line 1434

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