Class: Azure::Compute::Mgmt::V2016_04_30_preview::Models::SnapshotUpdate

Inherits:
ResourceUpdate
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-04-30-preview/generated/azure_mgmt_compute/models/snapshot_update.rb

Overview

Snapshot update resource.

Instance Attribute Summary collapse

Attributes inherited from ResourceUpdate

#tags

Class Method Summary collapse

Instance Attribute Details

#account_typeStorageAccountTypes

Possible values include: ‘Standard_LRS’, ‘Premium_LRS’

Returns:



17
18
19
# File 'lib/2016-04-30-preview/generated/azure_mgmt_compute/models/snapshot_update.rb', line 17

def 
  @account_type
end

#creation_dataCreationData

information cannot be changed after the disk has been created.

Returns:



25
26
27
# File 'lib/2016-04-30-preview/generated/azure_mgmt_compute/models/snapshot_update.rb', line 25

def creation_data
  @creation_data
end

#disk_size_gbInteger

mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk’s size.

Returns:

  • (Integer)

    If creationData.createOption is Empty, this field is



32
33
34
# File 'lib/2016-04-30-preview/generated/azure_mgmt_compute/models/snapshot_update.rb', line 32

def disk_size_gb
  @disk_size_gb
end

#encryption_settingsEncryptionSettings

Returns Encryption settings for disk or snapshot.

Returns:



35
36
37
# File 'lib/2016-04-30-preview/generated/azure_mgmt_compute/models/snapshot_update.rb', line 35

def encryption_settings
  @encryption_settings
end

#os_typeOperatingSystemTypes

values include: ‘Windows’, ‘Linux’

Returns:



21
22
23
# File 'lib/2016-04-30-preview/generated/azure_mgmt_compute/models/snapshot_update.rb', line 21

def os_type
  @os_type
end

Class Method Details

.mapperObject

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



42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# File 'lib/2016-04-30-preview/generated/azure_mgmt_compute/models/snapshot_update.rb', line 42

def self.mapper()
  {
    required: false,
    serialized_name: 'SnapshotUpdate',
    type: {
      name: 'Composite',
      class_name: 'SnapshotUpdate',
      model_properties: {
        tags: {
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        account_type: {
          required: false,
          serialized_name: 'properties.accountType',
          type: {
            name: 'Enum',
            module: 'StorageAccountTypes'
          }
        },
        os_type: {
          required: false,
          serialized_name: 'properties.osType',
          type: {
            name: 'Enum',
            module: 'OperatingSystemTypes'
          }
        },
        creation_data: {
          required: false,
          serialized_name: 'properties.creationData',
          type: {
            name: 'Composite',
            class_name: 'CreationData'
          }
        },
        disk_size_gb: {
          required: false,
          serialized_name: 'properties.diskSizeGB',
          type: {
            name: 'Number'
          }
        },
        encryption_settings: {
          required: false,
          serialized_name: 'properties.encryptionSettings',
          type: {
            name: 'Composite',
            class_name: 'EncryptionSettings'
          }
        }
      }
    }
  }
end