Class: Azure::NetApp::Mgmt::V2020_07_01::Models::VolumeRevert

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-07-01/generated/azure_mgmt_netapp/models/volume_revert.rb

Overview

revert a volume to the snapshot

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#snapshot_idString

Returns Resource id of the snapshot.

Returns:

  • (String)

    Resource id of the snapshot



16
17
18
# File 'lib/2020-07-01/generated/azure_mgmt_netapp/models/volume_revert.rb', line 16

def snapshot_id
  @snapshot_id
end

Class Method Details

.mapperObject

Mapper for VolumeRevert class as Ruby Hash. This will be used for serialization/deserialization.



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/2020-07-01/generated/azure_mgmt_netapp/models/volume_revert.rb', line 23

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'volumeRevert',
    type: {
      name: 'Composite',
      class_name: 'VolumeRevert',
      model_properties: {
        snapshot_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'snapshotId',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end