Class: Google::Apis::NetappV1::RevertVolumeRequest
- Inherits:
-
Object
- Object
- Google::Apis::NetappV1::RevertVolumeRequest
- 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
-
#snapshot_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RevertVolumeRequest
constructor
A new instance of RevertVolumeRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_id ⇒ String
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
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 |