Class: Azure::Compute::Mgmt::V2020_06_30::Models::SnapshotUpdate

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-06-30/generated/azure_mgmt_compute/models/snapshot_update.rb

Overview

Snapshot update resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#disk_access_idString

endpoints on disks.

Returns:

  • (String)

    ARM id of the DiskAccess resource for using private



41
42
43
# File 'lib/2020-06-30/generated/azure_mgmt_compute/models/snapshot_update.rb', line 41

def disk_access_id
  @disk_access_id
end

#disk_size_gbInteger

mandatory and it indicates the size of the disk 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/2020-06-30/generated/azure_mgmt_compute/models/snapshot_update.rb', line 24

def disk_size_gb
  @disk_size_gb
end

#encryptionEncryption

rest with customer managed keys or platform managed keys.

Returns:

  • (Encryption)

    Encryption property can be used to encrypt data at



33
34
35
# File 'lib/2020-06-30/generated/azure_mgmt_compute/models/snapshot_update.rb', line 33

def encryption
  @encryption
end

#encryption_settings_collectionEncryptionSettingsCollection

used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.

Returns:



29
30
31
# File 'lib/2020-06-30/generated/azure_mgmt_compute/models/snapshot_update.rb', line 29

def encryption_settings_collection
  @encryption_settings_collection
end

#network_access_policyNetworkAccessPolicy

'AllowPrivate', 'DenyAll'

Returns:



37
38
39
# File 'lib/2020-06-30/generated/azure_mgmt_compute/models/snapshot_update.rb', line 37

def network_access_policy
  @network_access_policy
end

#os_typeOperatingSystemTypes

values include: 'Windows', 'Linux'

Returns:



17
18
19
# File 'lib/2020-06-30/generated/azure_mgmt_compute/models/snapshot_update.rb', line 17

def os_type
  @os_type
end

#skuSnapshotSku

Returns:



47
48
49
# File 'lib/2020-06-30/generated/azure_mgmt_compute/models/snapshot_update.rb', line 47

def sku
  @sku
end

#tagsHash{String => String}

Returns Resource tags.

Returns:

  • (Hash{String => String})

    Resource tags



44
45
46
# File 'lib/2020-06-30/generated/azure_mgmt_compute/models/snapshot_update.rb', line 44

def tags
  @tags
end

Class Method Details

.mapperObject

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



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
130
131
132
133
134
135
136
137
138
139
140
141
142
# File 'lib/2020-06-30/generated/azure_mgmt_compute/models/snapshot_update.rb', line 54

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'SnapshotUpdate',
    type: {
      name: 'Composite',
      class_name: 'SnapshotUpdate',
      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_collection: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.encryptionSettingsCollection',
          type: {
            name: 'Composite',
            class_name: 'EncryptionSettingsCollection'
          }
        },
        encryption: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.encryption',
          type: {
            name: 'Composite',
            class_name: 'Encryption'
          }
        },
        network_access_policy: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.networkAccessPolicy',
          type: {
            name: 'String'
          }
        },
        disk_access_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.diskAccessId',
          type: {
            name: 'String'
          }
        },
        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: 'SnapshotSku'
          }
        }
      }
    }
  }
end