azure_mgmt_compute 0.17.0 → 0.17.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-06-15/generated/azure_mgmt_compute.rb +5 -3
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/update_resource.rb +54 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb +134 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_extensions.rb +168 -5
- data/lib/2016-03-30/generated/azure_mgmt_compute.rb +28 -25
- data/lib/2016-03-30/generated/azure_mgmt_compute/compute_management_client.rb +4 -4
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/update_resource.rb +54 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb +134 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_extensions_list_result.rb +55 -0
- data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_extensions.rb +168 -5
- data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machines.rb +98 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute.rb +35 -32
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/compute_management_client.rb +4 -4
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/update_resource.rb +54 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb +134 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_extensions_list_result.rb +55 -0
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_extensions.rb +168 -5
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machines.rb +98 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute.rb +69 -67
- data/lib/2017-03-30/generated/azure_mgmt_compute/availability_sets.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/compute_management_client.rb +4 -4
- data/lib/2017-03-30/generated/azure_mgmt_compute/disks.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/images.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb +134 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_extensions_list_result.rb +55 -0
- data/lib/2017-03-30/generated/azure_mgmt_compute/resource_skus.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/snapshots.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/usage_operations.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_extensions.rb +169 -6
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_images.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_run_commands.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_sizes.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machines.rb +99 -1
- data/lib/2017-12-01/generated/azure_mgmt_compute.rb +75 -64
- data/lib/2017-12-01/generated/azure_mgmt_compute/compute_management_client.rb +4 -4
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/auto_osupgrade_policy.rb +47 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/availability_set_update.rb +1 -10
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/data_disk.rb +7 -7
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/image_update.rb +1 -3
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/osdisk.rb +7 -7
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/rollback_status_info.rb +74 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info.rb +73 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info_properties.rb +116 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/upgrade_operation_history_status.rb +74 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/upgrade_operation_invoker.rb +17 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/upgrade_policy.rb +13 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/upgrade_state.rb +18 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_eviction_policy_types.rb +16 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb +134 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_extensions_list_result.rb +55 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_osupgrade_history.rb +104 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +3 -3
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +14 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +1 -1
- data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_extensions.rb +168 -5
- data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +202 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machines.rb +98 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute.rb +56 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/compute_management_client.rb +136 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/disks.rb +1304 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/access_level.rb +16 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/access_uri.rb +47 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/api_error.rb +100 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/api_error_base.rb +68 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/creation_data.rb +97 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/disk.rb +207 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/disk_create_option.rb +20 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/disk_list.rb +99 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/disk_sku.rb +60 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/disk_update.rb +100 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/encryption_settings.rb +76 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/grant_access_data.rb +58 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/image_disk_reference.rb +60 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/inner_error.rb +57 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/key_vault_and_key_reference.rb +60 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/key_vault_and_secret_reference.rb +59 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/operation_status_response.rb +96 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/resource.rb +101 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/resource_update.rb +66 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/snapshot.rb +187 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/snapshot_list.rb +99 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/snapshot_sku.rb +61 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/snapshot_storage_account_types.rb +17 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/snapshot_update.rb +100 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/source_vault.rb +47 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/storage_account_types.rb +16 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/module_definition.rb +9 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/snapshots.rb +1304 -0
- data/lib/azure_mgmt_compute.rb +1 -0
- data/lib/profiles/latest/modules/compute_profile_module.rb +303 -251
- data/lib/profiles/v2017_03_09/modules/compute_profile_module.rb +90 -78
- data/lib/version.rb +1 -1
- metadata +55 -2
@@ -0,0 +1,187 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Compute::Mgmt::V2018_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Snapshot resource.
|
10
|
+
#
|
11
|
+
class Snapshot < Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Unused. Always Null.
|
16
|
+
attr_accessor :managed_by
|
17
|
+
|
18
|
+
# @return [SnapshotSku]
|
19
|
+
attr_accessor :sku
|
20
|
+
|
21
|
+
# @return [DateTime] The time when the disk was created.
|
22
|
+
attr_accessor :time_created
|
23
|
+
|
24
|
+
# @return [OperatingSystemTypes] The Operating System type. Possible
|
25
|
+
# values include: 'Windows', 'Linux'
|
26
|
+
attr_accessor :os_type
|
27
|
+
|
28
|
+
# @return [CreationData] Disk source information. CreationData
|
29
|
+
# information cannot be changed after the disk has been created.
|
30
|
+
attr_accessor :creation_data
|
31
|
+
|
32
|
+
# @return [Integer] If creationData.createOption is Empty, this field is
|
33
|
+
# mandatory and it indicates the size of the VHD to create. If this field
|
34
|
+
# is present for updates or creation with other options, it indicates a
|
35
|
+
# resize. Resizes are only allowed if the disk is not attached to a
|
36
|
+
# running VM, and can only increase the disk's size.
|
37
|
+
attr_accessor :disk_size_gb
|
38
|
+
|
39
|
+
# @return [EncryptionSettings] Encryption settings for disk or snapshot
|
40
|
+
attr_accessor :encryption_settings
|
41
|
+
|
42
|
+
# @return [String] The disk provisioning state.
|
43
|
+
attr_accessor :provisioning_state
|
44
|
+
|
45
|
+
|
46
|
+
#
|
47
|
+
# Mapper for Snapshot class as Ruby Hash.
|
48
|
+
# This will be used for serialization/deserialization.
|
49
|
+
#
|
50
|
+
def self.mapper()
|
51
|
+
{
|
52
|
+
client_side_validation: true,
|
53
|
+
required: false,
|
54
|
+
serialized_name: 'Snapshot',
|
55
|
+
type: {
|
56
|
+
name: 'Composite',
|
57
|
+
class_name: 'Snapshot',
|
58
|
+
model_properties: {
|
59
|
+
id: {
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
read_only: true,
|
63
|
+
serialized_name: 'id',
|
64
|
+
type: {
|
65
|
+
name: 'String'
|
66
|
+
}
|
67
|
+
},
|
68
|
+
name: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
read_only: true,
|
72
|
+
serialized_name: 'name',
|
73
|
+
type: {
|
74
|
+
name: 'String'
|
75
|
+
}
|
76
|
+
},
|
77
|
+
type: {
|
78
|
+
client_side_validation: true,
|
79
|
+
required: false,
|
80
|
+
read_only: true,
|
81
|
+
serialized_name: 'type',
|
82
|
+
type: {
|
83
|
+
name: 'String'
|
84
|
+
}
|
85
|
+
},
|
86
|
+
location: {
|
87
|
+
client_side_validation: true,
|
88
|
+
required: true,
|
89
|
+
serialized_name: 'location',
|
90
|
+
type: {
|
91
|
+
name: 'String'
|
92
|
+
}
|
93
|
+
},
|
94
|
+
tags: {
|
95
|
+
client_side_validation: true,
|
96
|
+
required: false,
|
97
|
+
serialized_name: 'tags',
|
98
|
+
type: {
|
99
|
+
name: 'Dictionary',
|
100
|
+
value: {
|
101
|
+
client_side_validation: true,
|
102
|
+
required: false,
|
103
|
+
serialized_name: 'StringElementType',
|
104
|
+
type: {
|
105
|
+
name: 'String'
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
},
|
110
|
+
managed_by: {
|
111
|
+
client_side_validation: true,
|
112
|
+
required: false,
|
113
|
+
read_only: true,
|
114
|
+
serialized_name: 'managedBy',
|
115
|
+
type: {
|
116
|
+
name: 'String'
|
117
|
+
}
|
118
|
+
},
|
119
|
+
sku: {
|
120
|
+
client_side_validation: true,
|
121
|
+
required: false,
|
122
|
+
serialized_name: 'sku',
|
123
|
+
type: {
|
124
|
+
name: 'Composite',
|
125
|
+
class_name: 'SnapshotSku'
|
126
|
+
}
|
127
|
+
},
|
128
|
+
time_created: {
|
129
|
+
client_side_validation: true,
|
130
|
+
required: false,
|
131
|
+
read_only: true,
|
132
|
+
serialized_name: 'properties.timeCreated',
|
133
|
+
type: {
|
134
|
+
name: 'DateTime'
|
135
|
+
}
|
136
|
+
},
|
137
|
+
os_type: {
|
138
|
+
client_side_validation: true,
|
139
|
+
required: false,
|
140
|
+
serialized_name: 'properties.osType',
|
141
|
+
type: {
|
142
|
+
name: 'Enum',
|
143
|
+
module: 'OperatingSystemTypes'
|
144
|
+
}
|
145
|
+
},
|
146
|
+
creation_data: {
|
147
|
+
client_side_validation: true,
|
148
|
+
required: true,
|
149
|
+
serialized_name: 'properties.creationData',
|
150
|
+
type: {
|
151
|
+
name: 'Composite',
|
152
|
+
class_name: 'CreationData'
|
153
|
+
}
|
154
|
+
},
|
155
|
+
disk_size_gb: {
|
156
|
+
client_side_validation: true,
|
157
|
+
required: false,
|
158
|
+
serialized_name: 'properties.diskSizeGB',
|
159
|
+
type: {
|
160
|
+
name: 'Number'
|
161
|
+
}
|
162
|
+
},
|
163
|
+
encryption_settings: {
|
164
|
+
client_side_validation: true,
|
165
|
+
required: false,
|
166
|
+
serialized_name: 'properties.encryptionSettings',
|
167
|
+
type: {
|
168
|
+
name: 'Composite',
|
169
|
+
class_name: 'EncryptionSettings'
|
170
|
+
}
|
171
|
+
},
|
172
|
+
provisioning_state: {
|
173
|
+
client_side_validation: true,
|
174
|
+
required: false,
|
175
|
+
read_only: true,
|
176
|
+
serialized_name: 'properties.provisioningState',
|
177
|
+
type: {
|
178
|
+
name: 'String'
|
179
|
+
}
|
180
|
+
}
|
181
|
+
}
|
182
|
+
}
|
183
|
+
}
|
184
|
+
end
|
185
|
+
end
|
186
|
+
end
|
187
|
+
end
|
@@ -0,0 +1,99 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Compute::Mgmt::V2018_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The List Snapshots operation response.
|
10
|
+
#
|
11
|
+
class SnapshotList
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<Snapshot>] A list of snapshots.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] The uri to fetch the next page of snapshots. Call
|
20
|
+
# ListNext() with this to fetch the next page of snapshots.
|
21
|
+
attr_accessor :next_link
|
22
|
+
|
23
|
+
# return [Proc] with next page method call.
|
24
|
+
attr_accessor :next_method
|
25
|
+
|
26
|
+
#
|
27
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
28
|
+
#
|
29
|
+
# @return [Array<Snapshot>] operation results.
|
30
|
+
#
|
31
|
+
def get_all_items
|
32
|
+
items = @value
|
33
|
+
page = self
|
34
|
+
while page.next_link != nil do
|
35
|
+
page = page.get_next_page
|
36
|
+
items.concat(page.value)
|
37
|
+
end
|
38
|
+
items
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Gets the next page of results.
|
43
|
+
#
|
44
|
+
# @return [SnapshotList] with next page content.
|
45
|
+
#
|
46
|
+
def get_next_page
|
47
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
48
|
+
unless response.nil?
|
49
|
+
@next_link = response.body.next_link
|
50
|
+
@value = response.body.value
|
51
|
+
self
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
#
|
56
|
+
# Mapper for SnapshotList class as Ruby Hash.
|
57
|
+
# This will be used for serialization/deserialization.
|
58
|
+
#
|
59
|
+
def self.mapper()
|
60
|
+
{
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'SnapshotList',
|
64
|
+
type: {
|
65
|
+
name: 'Composite',
|
66
|
+
class_name: 'SnapshotList',
|
67
|
+
model_properties: {
|
68
|
+
value: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: true,
|
71
|
+
serialized_name: 'value',
|
72
|
+
type: {
|
73
|
+
name: 'Sequence',
|
74
|
+
element: {
|
75
|
+
client_side_validation: true,
|
76
|
+
required: false,
|
77
|
+
serialized_name: 'SnapshotElementType',
|
78
|
+
type: {
|
79
|
+
name: 'Composite',
|
80
|
+
class_name: 'Snapshot'
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
},
|
85
|
+
next_link: {
|
86
|
+
client_side_validation: true,
|
87
|
+
required: false,
|
88
|
+
serialized_name: 'nextLink',
|
89
|
+
type: {
|
90
|
+
name: 'String'
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Compute::Mgmt::V2018_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The snapshots sku name. Can be Standard_LRS, Premium_LRS, or
|
10
|
+
# Standard_ZRS.
|
11
|
+
#
|
12
|
+
class SnapshotSku
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [SnapshotStorageAccountTypes] The sku name. Possible values
|
17
|
+
# include: 'Standard_LRS', 'Premium_LRS', 'Standard_ZRS'
|
18
|
+
attr_accessor :name
|
19
|
+
|
20
|
+
# @return [String] The sku tier. Default value: 'Standard' .
|
21
|
+
attr_accessor :tier
|
22
|
+
|
23
|
+
|
24
|
+
#
|
25
|
+
# Mapper for SnapshotSku class as Ruby Hash.
|
26
|
+
# This will be used for serialization/deserialization.
|
27
|
+
#
|
28
|
+
def self.mapper()
|
29
|
+
{
|
30
|
+
client_side_validation: true,
|
31
|
+
required: false,
|
32
|
+
serialized_name: 'SnapshotSku',
|
33
|
+
type: {
|
34
|
+
name: 'Composite',
|
35
|
+
class_name: 'SnapshotSku',
|
36
|
+
model_properties: {
|
37
|
+
name: {
|
38
|
+
client_side_validation: true,
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'name',
|
41
|
+
type: {
|
42
|
+
name: 'String'
|
43
|
+
}
|
44
|
+
},
|
45
|
+
tier: {
|
46
|
+
client_side_validation: true,
|
47
|
+
required: false,
|
48
|
+
read_only: true,
|
49
|
+
serialized_name: 'tier',
|
50
|
+
default_value: 'Standard',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Compute::Mgmt::V2018_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for SnapshotStorageAccountTypes
|
10
|
+
#
|
11
|
+
module SnapshotStorageAccountTypes
|
12
|
+
StandardLRS = "Standard_LRS"
|
13
|
+
PremiumLRS = "Premium_LRS"
|
14
|
+
StandardZRS = "Standard_ZRS"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,100 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Compute::Mgmt::V2018_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Snapshot update resource.
|
10
|
+
#
|
11
|
+
class SnapshotUpdate < ResourceUpdate
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [OperatingSystemTypes] the Operating System type. Possible
|
16
|
+
# values include: 'Windows', 'Linux'
|
17
|
+
attr_accessor :os_type
|
18
|
+
|
19
|
+
# @return [Integer] If creationData.createOption is Empty, this field is
|
20
|
+
# mandatory and it indicates the size of the VHD to create. If this field
|
21
|
+
# is present for updates or creation with other options, it indicates a
|
22
|
+
# resize. Resizes are only allowed if the disk is not attached to a
|
23
|
+
# running VM, and can only increase the disk's size.
|
24
|
+
attr_accessor :disk_size_gb
|
25
|
+
|
26
|
+
# @return [EncryptionSettings] Encryption settings for disk or snapshot
|
27
|
+
attr_accessor :encryption_settings
|
28
|
+
|
29
|
+
|
30
|
+
#
|
31
|
+
# Mapper for SnapshotUpdate class as Ruby Hash.
|
32
|
+
# This will be used for serialization/deserialization.
|
33
|
+
#
|
34
|
+
def self.mapper()
|
35
|
+
{
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'SnapshotUpdate',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'SnapshotUpdate',
|
42
|
+
model_properties: {
|
43
|
+
tags: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'tags',
|
47
|
+
type: {
|
48
|
+
name: 'Dictionary',
|
49
|
+
value: {
|
50
|
+
client_side_validation: true,
|
51
|
+
required: false,
|
52
|
+
serialized_name: 'StringElementType',
|
53
|
+
type: {
|
54
|
+
name: 'String'
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
},
|
59
|
+
sku: {
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'sku',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'DiskSku'
|
66
|
+
}
|
67
|
+
},
|
68
|
+
os_type: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'properties.osType',
|
72
|
+
type: {
|
73
|
+
name: 'Enum',
|
74
|
+
module: 'OperatingSystemTypes'
|
75
|
+
}
|
76
|
+
},
|
77
|
+
disk_size_gb: {
|
78
|
+
client_side_validation: true,
|
79
|
+
required: false,
|
80
|
+
serialized_name: 'properties.diskSizeGB',
|
81
|
+
type: {
|
82
|
+
name: 'Number'
|
83
|
+
}
|
84
|
+
},
|
85
|
+
encryption_settings: {
|
86
|
+
client_side_validation: true,
|
87
|
+
required: false,
|
88
|
+
serialized_name: 'properties.encryptionSettings',
|
89
|
+
type: {
|
90
|
+
name: 'Composite',
|
91
|
+
class_name: 'EncryptionSettings'
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|