azure_mgmt_compute 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_compute.rb +86 -54
- data/lib/generated/azure_mgmt_compute/availability_sets.rb +17 -6
- data/lib/generated/azure_mgmt_compute/compute_management_client.rb +17 -6
- data/lib/generated/azure_mgmt_compute/disks.rb +1273 -0
- data/lib/generated/azure_mgmt_compute/images.rb +808 -0
- data/lib/generated/azure_mgmt_compute/models/access_level.rb +16 -0
- data/lib/generated/azure_mgmt_compute/models/access_uri.rb +45 -0
- data/lib/generated/azure_mgmt_compute/models/additional_unattend_content.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/api_error.rb +5 -5
- data/lib/generated/azure_mgmt_compute/models/api_error_base.rb +3 -3
- data/lib/generated/azure_mgmt_compute/models/availability_set.rb +21 -0
- data/lib/generated/azure_mgmt_compute/models/container_service.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/container_service_agent_pool_profile.rb +2 -1
- data/lib/generated/azure_mgmt_compute/models/container_service_diagnostics_profile.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/container_service_linux_profile.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/container_service_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/container_service_ssh_configuration.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/container_service_windows_profile.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/creation_data.rb +94 -0
- data/lib/generated/azure_mgmt_compute/models/data_disk.rb +13 -2
- data/lib/generated/azure_mgmt_compute/models/disk.rb +174 -0
- data/lib/generated/azure_mgmt_compute/models/disk_create_option.rb +20 -0
- data/lib/generated/azure_mgmt_compute/models/disk_list.rb +94 -0
- data/lib/generated/azure_mgmt_compute/models/disk_update.rb +109 -0
- data/lib/generated/azure_mgmt_compute/models/encryption_settings.rb +72 -0
- data/lib/generated/azure_mgmt_compute/models/grant_access_data.rb +56 -0
- data/lib/generated/azure_mgmt_compute/models/image.rb +113 -0
- data/lib/generated/azure_mgmt_compute/models/image_data_disk.rb +99 -0
- data/lib/generated/azure_mgmt_compute/models/image_disk_reference.rb +57 -0
- data/lib/generated/azure_mgmt_compute/models/image_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_compute/models/image_osdisk.rb +113 -0
- data/lib/generated/azure_mgmt_compute/models/image_reference.rb +8 -1
- data/lib/generated/azure_mgmt_compute/models/image_storage_profile.rb +63 -0
- data/lib/generated/azure_mgmt_compute/models/inner_error.rb +2 -2
- data/lib/generated/azure_mgmt_compute/models/key_vault_and_key_reference.rb +57 -0
- data/lib/generated/azure_mgmt_compute/models/key_vault_and_secret_reference.rb +56 -0
- data/lib/generated/azure_mgmt_compute/models/managed_disk_parameters.rb +53 -0
- data/lib/generated/azure_mgmt_compute/models/operating_system_state_types.rb +16 -0
- data/lib/generated/azure_mgmt_compute/models/operation_status_response.rb +90 -0
- data/lib/generated/azure_mgmt_compute/models/osdisk.rb +14 -3
- data/lib/generated/azure_mgmt_compute/models/osprofile.rb +2 -2
- data/lib/generated/azure_mgmt_compute/models/resource_update.rb +51 -0
- data/lib/generated/azure_mgmt_compute/models/snapshot.rb +174 -0
- data/lib/generated/azure_mgmt_compute/models/snapshot_list.rb +94 -0
- data/lib/generated/azure_mgmt_compute/models/snapshot_update.rb +109 -0
- data/lib/generated/azure_mgmt_compute/models/source_vault.rb +45 -0
- data/lib/generated/azure_mgmt_compute/models/storage_account_types.rb +16 -0
- data/lib/generated/azure_mgmt_compute/models/sub_resource_read_only.rb +46 -0
- data/lib/generated/azure_mgmt_compute/models/upgrade_policy.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +7 -7
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +3 -3
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +5 -5
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +5 -5
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +2 -2
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +27 -4
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +101 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +8 -7
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +3 -3
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +5 -5
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +2 -2
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +2 -2
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +2 -2
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +47 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +3 -3
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +19 -7
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +7 -7
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +3 -3
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +4 -4
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +20 -2
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +21 -10
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +2 -2
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +19 -8
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +2 -2
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +4 -4
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +2 -2
- data/lib/generated/azure_mgmt_compute/snapshots.rb +1273 -0
- data/lib/generated/azure_mgmt_compute/usage_operations.rb +1 -1
- data/lib/generated/azure_mgmt_compute/version.rb +1 -1
- data/lib/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +3 -3
- data/lib/generated/azure_mgmt_compute/virtual_machine_extensions.rb +21 -6
- data/lib/generated/azure_mgmt_compute/virtual_machine_images.rb +5 -5
- data/lib/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +263 -26
- data/lib/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +298 -37
- data/lib/generated/azure_mgmt_compute/virtual_machine_sizes.rb +1 -1
- data/lib/generated/azure_mgmt_compute/virtual_machines.rb +270 -32
- metadata +36 -4
@@ -0,0 +1,16 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Compute
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for AccessLevel
|
10
|
+
#
|
11
|
+
module AccessLevel
|
12
|
+
None = "None"
|
13
|
+
Read = "Read"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Compute
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# A disk access SAS uri.
|
10
|
+
#
|
11
|
+
class AccessUri
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] A SAS uri for accessing a disk.
|
16
|
+
attr_accessor :access_sas
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for AccessUri class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
required: false,
|
26
|
+
serialized_name: 'AccessUri',
|
27
|
+
type: {
|
28
|
+
name: 'Composite',
|
29
|
+
class_name: 'AccessUri',
|
30
|
+
model_properties: {
|
31
|
+
access_sas: {
|
32
|
+
required: false,
|
33
|
+
read_only: true,
|
34
|
+
serialized_name: 'properties.output.accessSAS',
|
35
|
+
type: {
|
36
|
+
name: 'String'
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -24,7 +24,7 @@ module Azure::ARM::Compute
|
|
24
24
|
# include: 'Microsoft-Windows-Shell-Setup'
|
25
25
|
attr_accessor :component_name
|
26
26
|
|
27
|
-
# @return [SettingNames]
|
27
|
+
# @return [SettingNames] Setting name (e.g. FirstLogonCommands, AutoLogon
|
28
28
|
# ). Possible values include: 'AutoLogon', 'FirstLogonCommands'
|
29
29
|
attr_accessor :setting_name
|
30
30
|
|
@@ -12,7 +12,7 @@ module Azure::ARM::Compute
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String]
|
15
|
+
# @return [String] The ARM resource id in the form of
|
16
16
|
# /subscriptions/{SubcriptionId}/resourceGroups/{ResourceGroupName}/...
|
17
17
|
attr_accessor :id
|
18
18
|
|
@@ -12,19 +12,19 @@ module Azure::ARM::Compute
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [Array<ApiErrorBase>]
|
15
|
+
# @return [Array<ApiErrorBase>] The Api error details
|
16
16
|
attr_accessor :details
|
17
17
|
|
18
|
-
# @return [InnerError]
|
18
|
+
# @return [InnerError] The Api inner error
|
19
19
|
attr_accessor :innererror
|
20
20
|
|
21
|
-
# @return [String]
|
21
|
+
# @return [String] The error code.
|
22
22
|
attr_accessor :code
|
23
23
|
|
24
|
-
# @return [String]
|
24
|
+
# @return [String] The target of the particular error.
|
25
25
|
attr_accessor :target
|
26
26
|
|
27
|
-
# @return [String]
|
27
|
+
# @return [String] The error message.
|
28
28
|
attr_accessor :message
|
29
29
|
|
30
30
|
|
@@ -12,13 +12,13 @@ module Azure::ARM::Compute
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String]
|
15
|
+
# @return [String] The error code.
|
16
16
|
attr_accessor :code
|
17
17
|
|
18
|
-
# @return [String]
|
18
|
+
# @return [String] The target of the particular error.
|
19
19
|
attr_accessor :target
|
20
20
|
|
21
|
-
# @return [String]
|
21
|
+
# @return [String] The error message.
|
22
22
|
attr_accessor :message
|
23
23
|
|
24
24
|
|
@@ -25,6 +25,12 @@ module Azure::ARM::Compute
|
|
25
25
|
# @return [Array<InstanceViewStatus>] The resource status information.
|
26
26
|
attr_accessor :statuses
|
27
27
|
|
28
|
+
# @return [Boolean] If the availability set supports managed disks.
|
29
|
+
attr_accessor :managed
|
30
|
+
|
31
|
+
# @return [Sku] Sku of the availability set
|
32
|
+
attr_accessor :sku
|
33
|
+
|
28
34
|
|
29
35
|
#
|
30
36
|
# Mapper for AvailabilitySet class as Ruby Hash.
|
@@ -127,6 +133,21 @@ module Azure::ARM::Compute
|
|
127
133
|
}
|
128
134
|
}
|
129
135
|
}
|
136
|
+
},
|
137
|
+
managed: {
|
138
|
+
required: false,
|
139
|
+
serialized_name: 'properties.managed',
|
140
|
+
type: {
|
141
|
+
name: 'Boolean'
|
142
|
+
}
|
143
|
+
},
|
144
|
+
sku: {
|
145
|
+
required: false,
|
146
|
+
serialized_name: 'sku',
|
147
|
+
type: {
|
148
|
+
name: 'Composite',
|
149
|
+
class_name: 'Sku'
|
150
|
+
}
|
130
151
|
}
|
131
152
|
}
|
132
153
|
}
|
@@ -12,7 +12,7 @@ module Azure::ARM::Compute
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String]
|
15
|
+
# @return [String] the current deployment or provisioning state, which
|
16
16
|
# only appears in the response.
|
17
17
|
attr_accessor :provisioning_state
|
18
18
|
|
@@ -18,7 +18,7 @@ module Azure::ARM::Compute
|
|
18
18
|
|
19
19
|
# @return [Integer] Number of agents (VMs) to host docker containers.
|
20
20
|
# Allowed values must be in the range of 1 to 100 (inclusive). The
|
21
|
-
# default value is 1.
|
21
|
+
# default value is 1. . Default value: 1 .
|
22
22
|
attr_accessor :count
|
23
23
|
|
24
24
|
# @return [ContainerServiceVMSizeTypes] Size of agent VMs. Possible
|
@@ -67,6 +67,7 @@ module Azure::ARM::Compute
|
|
67
67
|
count: {
|
68
68
|
required: true,
|
69
69
|
serialized_name: 'count',
|
70
|
+
default_value: 1,
|
70
71
|
constraints: {
|
71
72
|
InclusiveMaximum: 100,
|
72
73
|
InclusiveMinimum: 1
|
@@ -12,7 +12,7 @@ module Azure::ARM::Compute
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String] The administrator
|
15
|
+
# @return [String] The administrator username to use for Linux VMs.
|
16
16
|
attr_accessor :admin_username
|
17
17
|
|
18
18
|
# @return [ContainerServiceSshConfiguration] The ssh key configuration
|
@@ -12,7 +12,7 @@ module Azure::ARM::Compute
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [Array<ContainerService>]
|
15
|
+
# @return [Array<ContainerService>] the list of container services.
|
16
16
|
attr_accessor :value
|
17
17
|
|
18
18
|
# @return [String] The URL to get the next set of container service
|
@@ -12,7 +12,7 @@ module Azure::ARM::Compute
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [Array<ContainerServiceSshPublicKey>]
|
15
|
+
# @return [Array<ContainerServiceSshPublicKey>] the list of SSH public
|
16
16
|
# keys used to authenticate with Linux-based VMs.
|
17
17
|
attr_accessor :public_keys
|
18
18
|
|
@@ -12,7 +12,7 @@ module Azure::ARM::Compute
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String] The administrator
|
15
|
+
# @return [String] The administrator username to use for Windows VMs.
|
16
16
|
attr_accessor :admin_username
|
17
17
|
|
18
18
|
# @return [String] The administrator password to use for Windows VMs.
|
@@ -0,0 +1,94 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Compute
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Data used when creating a disk.
|
10
|
+
#
|
11
|
+
class CreationData
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [DiskCreateOption] Possible values include: 'Empty', 'Attach',
|
16
|
+
# 'FromImage', 'Import', 'Copy', 'Restore'
|
17
|
+
attr_accessor :create_option
|
18
|
+
|
19
|
+
# @return [String] If createOption is Import, the Azure Resource Manager
|
20
|
+
# identifier of the storage account containing the blob to import as a
|
21
|
+
# disk. Required only if the blob is in a different subscription
|
22
|
+
attr_accessor :storage_account_id
|
23
|
+
|
24
|
+
# @return [ImageDiskReference] Disk source information.
|
25
|
+
attr_accessor :image_reference
|
26
|
+
|
27
|
+
# @return [String] If creationOption is Import, this is a SAS URI to a
|
28
|
+
# blob to be imported into a managed disk. If creationOption is Copy,
|
29
|
+
# this is a relative Uri containing the id of the source snapshot to be
|
30
|
+
# copied into a managed disk.
|
31
|
+
attr_accessor :source_uri
|
32
|
+
|
33
|
+
# @return [String] If createOption is Copy, this is the ARM id of the
|
34
|
+
# source snapshot or disk. If creationOption is Restore, this is the
|
35
|
+
# ARM-like id of the source disk restore point.
|
36
|
+
attr_accessor :source_resource_id
|
37
|
+
|
38
|
+
|
39
|
+
#
|
40
|
+
# Mapper for CreationData class as Ruby Hash.
|
41
|
+
# This will be used for serialization/deserialization.
|
42
|
+
#
|
43
|
+
def self.mapper()
|
44
|
+
{
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'CreationData',
|
47
|
+
type: {
|
48
|
+
name: 'Composite',
|
49
|
+
class_name: 'CreationData',
|
50
|
+
model_properties: {
|
51
|
+
create_option: {
|
52
|
+
required: true,
|
53
|
+
serialized_name: 'createOption',
|
54
|
+
type: {
|
55
|
+
name: 'Enum',
|
56
|
+
module: 'DiskCreateOption'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
storage_account_id: {
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'storageAccountId',
|
62
|
+
type: {
|
63
|
+
name: 'String'
|
64
|
+
}
|
65
|
+
},
|
66
|
+
image_reference: {
|
67
|
+
required: false,
|
68
|
+
serialized_name: 'imageReference',
|
69
|
+
type: {
|
70
|
+
name: 'Composite',
|
71
|
+
class_name: 'ImageDiskReference'
|
72
|
+
}
|
73
|
+
},
|
74
|
+
source_uri: {
|
75
|
+
required: false,
|
76
|
+
serialized_name: 'sourceUri',
|
77
|
+
type: {
|
78
|
+
name: 'String'
|
79
|
+
}
|
80
|
+
},
|
81
|
+
source_resource_id: {
|
82
|
+
required: false,
|
83
|
+
serialized_name: 'sourceResourceId',
|
84
|
+
type: {
|
85
|
+
name: 'String'
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
@@ -39,6 +39,9 @@ module Azure::ARM::Compute
|
|
39
39
|
# the new desired size for resizing existing OS and data disks.
|
40
40
|
attr_accessor :disk_size_gb
|
41
41
|
|
42
|
+
# @return [ManagedDiskParameters] The managed disk parameters.
|
43
|
+
attr_accessor :managed_disk
|
44
|
+
|
42
45
|
|
43
46
|
#
|
44
47
|
# Mapper for DataDisk class as Ruby Hash.
|
@@ -60,14 +63,14 @@ module Azure::ARM::Compute
|
|
60
63
|
}
|
61
64
|
},
|
62
65
|
name: {
|
63
|
-
required:
|
66
|
+
required: false,
|
64
67
|
serialized_name: 'name',
|
65
68
|
type: {
|
66
69
|
name: 'String'
|
67
70
|
}
|
68
71
|
},
|
69
72
|
vhd: {
|
70
|
-
required:
|
73
|
+
required: false,
|
71
74
|
serialized_name: 'vhd',
|
72
75
|
type: {
|
73
76
|
name: 'Composite',
|
@@ -104,6 +107,14 @@ module Azure::ARM::Compute
|
|
104
107
|
type: {
|
105
108
|
name: 'Number'
|
106
109
|
}
|
110
|
+
},
|
111
|
+
managed_disk: {
|
112
|
+
required: false,
|
113
|
+
serialized_name: 'managedDisk',
|
114
|
+
type: {
|
115
|
+
name: 'Composite',
|
116
|
+
class_name: 'ManagedDiskParameters'
|
117
|
+
}
|
107
118
|
}
|
108
119
|
}
|
109
120
|
}
|
@@ -0,0 +1,174 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Compute
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Disk resource.
|
10
|
+
#
|
11
|
+
class Disk < MsRestAzure::Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [StorageAccountTypes] the storage account type of the disk.
|
16
|
+
# Possible values include: 'Standard_LRS', 'Premium_LRS'
|
17
|
+
attr_accessor :account_type
|
18
|
+
|
19
|
+
# @return [DateTime] The time when the disk was created.
|
20
|
+
attr_accessor :time_created
|
21
|
+
|
22
|
+
# @return [OperatingSystemTypes] The Operating System type. Possible
|
23
|
+
# values include: 'Windows', 'Linux'
|
24
|
+
attr_accessor :os_type
|
25
|
+
|
26
|
+
# @return [CreationData] Disk source information. CreationData
|
27
|
+
# information cannot be changed after the disk has been created.
|
28
|
+
attr_accessor :creation_data
|
29
|
+
|
30
|
+
# @return [Integer] If creationData.createOption is Empty, this field is
|
31
|
+
# mandatory and it indicates the size of the VHD to create. If this field
|
32
|
+
# is present for updates or creation with other options, it indicates a
|
33
|
+
# resize. Resizes are only allowed if the disk is not attached to a
|
34
|
+
# running VM, and can only increase the disk's size.
|
35
|
+
attr_accessor :disk_size_gb
|
36
|
+
|
37
|
+
# @return [EncryptionSettings] Encryption settings for disk or snapshot
|
38
|
+
attr_accessor :encryption_settings
|
39
|
+
|
40
|
+
# @return [String] A relative URI containing the VM id that has the disk
|
41
|
+
# attached.
|
42
|
+
attr_accessor :owner_id
|
43
|
+
|
44
|
+
# @return [String] The disk provisioning state.
|
45
|
+
attr_accessor :provisioning_state
|
46
|
+
|
47
|
+
|
48
|
+
#
|
49
|
+
# Mapper for Disk class as Ruby Hash.
|
50
|
+
# This will be used for serialization/deserialization.
|
51
|
+
#
|
52
|
+
def self.mapper()
|
53
|
+
{
|
54
|
+
required: false,
|
55
|
+
serialized_name: 'Disk',
|
56
|
+
type: {
|
57
|
+
name: 'Composite',
|
58
|
+
class_name: 'Disk',
|
59
|
+
model_properties: {
|
60
|
+
id: {
|
61
|
+
required: false,
|
62
|
+
read_only: true,
|
63
|
+
serialized_name: 'id',
|
64
|
+
type: {
|
65
|
+
name: 'String'
|
66
|
+
}
|
67
|
+
},
|
68
|
+
name: {
|
69
|
+
required: false,
|
70
|
+
read_only: true,
|
71
|
+
serialized_name: 'name',
|
72
|
+
type: {
|
73
|
+
name: 'String'
|
74
|
+
}
|
75
|
+
},
|
76
|
+
type: {
|
77
|
+
required: false,
|
78
|
+
read_only: true,
|
79
|
+
serialized_name: 'type',
|
80
|
+
type: {
|
81
|
+
name: 'String'
|
82
|
+
}
|
83
|
+
},
|
84
|
+
location: {
|
85
|
+
required: true,
|
86
|
+
serialized_name: 'location',
|
87
|
+
type: {
|
88
|
+
name: 'String'
|
89
|
+
}
|
90
|
+
},
|
91
|
+
tags: {
|
92
|
+
required: false,
|
93
|
+
serialized_name: 'tags',
|
94
|
+
type: {
|
95
|
+
name: 'Dictionary',
|
96
|
+
value: {
|
97
|
+
required: false,
|
98
|
+
serialized_name: 'StringElementType',
|
99
|
+
type: {
|
100
|
+
name: 'String'
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
},
|
105
|
+
account_type: {
|
106
|
+
required: false,
|
107
|
+
serialized_name: 'properties.accountType',
|
108
|
+
type: {
|
109
|
+
name: 'Enum',
|
110
|
+
module: 'StorageAccountTypes'
|
111
|
+
}
|
112
|
+
},
|
113
|
+
time_created: {
|
114
|
+
required: false,
|
115
|
+
read_only: true,
|
116
|
+
serialized_name: 'properties.timeCreated',
|
117
|
+
type: {
|
118
|
+
name: 'DateTime'
|
119
|
+
}
|
120
|
+
},
|
121
|
+
os_type: {
|
122
|
+
required: false,
|
123
|
+
serialized_name: 'properties.osType',
|
124
|
+
type: {
|
125
|
+
name: 'Enum',
|
126
|
+
module: 'OperatingSystemTypes'
|
127
|
+
}
|
128
|
+
},
|
129
|
+
creation_data: {
|
130
|
+
required: true,
|
131
|
+
serialized_name: 'properties.creationData',
|
132
|
+
type: {
|
133
|
+
name: 'Composite',
|
134
|
+
class_name: 'CreationData'
|
135
|
+
}
|
136
|
+
},
|
137
|
+
disk_size_gb: {
|
138
|
+
required: false,
|
139
|
+
serialized_name: 'properties.diskSizeGB',
|
140
|
+
type: {
|
141
|
+
name: 'Number'
|
142
|
+
}
|
143
|
+
},
|
144
|
+
encryption_settings: {
|
145
|
+
required: false,
|
146
|
+
serialized_name: 'properties.encryptionSettings',
|
147
|
+
type: {
|
148
|
+
name: 'Composite',
|
149
|
+
class_name: 'EncryptionSettings'
|
150
|
+
}
|
151
|
+
},
|
152
|
+
owner_id: {
|
153
|
+
required: false,
|
154
|
+
read_only: true,
|
155
|
+
serialized_name: 'properties.ownerId',
|
156
|
+
type: {
|
157
|
+
name: 'String'
|
158
|
+
}
|
159
|
+
},
|
160
|
+
provisioning_state: {
|
161
|
+
required: false,
|
162
|
+
read_only: true,
|
163
|
+
serialized_name: 'properties.provisioningState',
|
164
|
+
type: {
|
165
|
+
name: 'String'
|
166
|
+
}
|
167
|
+
}
|
168
|
+
}
|
169
|
+
}
|
170
|
+
}
|
171
|
+
end
|
172
|
+
end
|
173
|
+
end
|
174
|
+
end
|