Class: Azure::Compute::Mgmt::V2018_06_01::Models::DiskUpdate

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-06-01/generated/azure_mgmt_compute/models/disk_update.rb

Overview

Disk update resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#disk_iopsread_writeInteger

settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.

Returns:

  • (Integer)

    The number of IOPS allowed for this disk; only



32
33
34
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/disk_update.rb', line 32

def disk_iopsread_write
  @disk_iopsread_write
end

#disk_mbps_read_writeInteger

for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.

Returns:

  • (Integer)

    The bandwidth allowed for this disk; only settable



37
38
39
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/disk_update.rb', line 37

def disk_mbps_read_write
  @disk_mbps_read_write
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



24
25
26
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/disk_update.rb', line 24

def disk_size_gb
  @disk_size_gb
end

#encryption_settingsEncryptionSettings

Returns Encryption settings for disk or snapshot.

Returns:



27
28
29
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/disk_update.rb', line 27

def encryption_settings
  @encryption_settings
end

#os_typeOperatingSystemTypes

values include: 'Windows', 'Linux'

Returns:



17
18
19
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/disk_update.rb', line 17

def os_type
  @os_type
end

#skuDiskSku

Returns:



43
44
45
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/disk_update.rb', line 43

def sku
  @sku
end

#tagsHash{String => String}

Returns Resource tags.

Returns:

  • (Hash{String => String})

    Resource tags



40
41
42
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/disk_update.rb', line 40

def tags
  @tags
end

Class Method Details

.mapperObject

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



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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/disk_update.rb', line 50

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'DiskUpdate',
    type: {
      name: 'Composite',
      class_name: 'DiskUpdate',
      model_properties: {
        os_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.osType',
          type: {
            name: 'Enum',
            module: 'OperatingSystemTypes'
          }
        },
        disk_size_gb: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.diskSizeGB',
          type: {
            name: 'Number'
          }
        },
        encryption_settings: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.encryptionSettings',
          type: {
            name: 'Composite',
            class_name: 'EncryptionSettings'
          }
        },
        disk_iopsread_write: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.diskIOPSReadWrite',
          type: {
            name: 'Number'
          }
        },
        disk_mbps_read_write: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.diskMBpsReadWrite',
          type: {
            name: 'Number'
          }
        },
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        sku: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sku',
          type: {
            name: 'Composite',
            class_name: 'DiskSku'
          }
        }
      }
    }
  }
end