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.



2493
2494
2495
# File 'lib/google/apis/netapp_v1/classes.rb', line 2493

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)


2491
2492
2493
# File 'lib/google/apis/netapp_v1/classes.rb', line 2491

def snapshot_id
  @snapshot_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2498
2499
2500
# File 'lib/google/apis/netapp_v1/classes.rb', line 2498

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