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
@@ -12,10 +12,10 @@ module Azure::ARM::Compute
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String]
|
15
|
+
# @return [String] The exception type.
|
16
16
|
attr_accessor :exceptiontype
|
17
17
|
|
18
|
-
# @return [String]
|
18
|
+
# @return [String] The internal error message or exception dump.
|
19
19
|
attr_accessor :errordetail
|
20
20
|
|
21
21
|
|
@@ -0,0 +1,57 @@
|
|
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
|
+
# Key Vault Key Url and vault id of KeK, KeK is optional and when provided
|
10
|
+
# is used to unwrap the encryptionKey
|
11
|
+
#
|
12
|
+
class KeyVaultAndKeyReference
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [SourceVault] Resource id of the KeyVault containing the key or
|
17
|
+
# secret
|
18
|
+
attr_accessor :source_vault
|
19
|
+
|
20
|
+
# @return [String] Url pointing to a key or secret in KeyVault
|
21
|
+
attr_accessor :key_url
|
22
|
+
|
23
|
+
|
24
|
+
#
|
25
|
+
# Mapper for KeyVaultAndKeyReference class as Ruby Hash.
|
26
|
+
# This will be used for serialization/deserialization.
|
27
|
+
#
|
28
|
+
def self.mapper()
|
29
|
+
{
|
30
|
+
required: false,
|
31
|
+
serialized_name: 'KeyVaultAndKeyReference',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'KeyVaultAndKeyReference',
|
35
|
+
model_properties: {
|
36
|
+
source_vault: {
|
37
|
+
required: true,
|
38
|
+
serialized_name: 'sourceVault',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'SourceVault'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
key_url: {
|
45
|
+
required: true,
|
46
|
+
serialized_name: 'keyUrl',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,56 @@
|
|
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
|
+
# Key Vault Secret Url and vault id of the encryption key
|
10
|
+
#
|
11
|
+
class KeyVaultAndSecretReference
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [SourceVault] Resource id of the KeyVault containing the key or
|
16
|
+
# secret
|
17
|
+
attr_accessor :source_vault
|
18
|
+
|
19
|
+
# @return [String] Url pointing to a key or secret in KeyVault
|
20
|
+
attr_accessor :secret_url
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for KeyVaultAndSecretReference class as Ruby Hash.
|
25
|
+
# This will be used for serialization/deserialization.
|
26
|
+
#
|
27
|
+
def self.mapper()
|
28
|
+
{
|
29
|
+
required: false,
|
30
|
+
serialized_name: 'KeyVaultAndSecretReference',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'KeyVaultAndSecretReference',
|
34
|
+
model_properties: {
|
35
|
+
source_vault: {
|
36
|
+
required: true,
|
37
|
+
serialized_name: 'sourceVault',
|
38
|
+
type: {
|
39
|
+
name: 'Composite',
|
40
|
+
class_name: 'SourceVault'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
secret_url: {
|
44
|
+
required: true,
|
45
|
+
serialized_name: 'secretUrl',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,53 @@
|
|
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
|
+
# The parameters of a managed disk.
|
10
|
+
#
|
11
|
+
class ManagedDiskParameters < MsRestAzure::SubResource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [StorageAccountTypes] The Storage Account type. Possible values
|
16
|
+
# include: 'Standard_LRS', 'Premium_LRS'
|
17
|
+
attr_accessor :storage_account_type
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for ManagedDiskParameters class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'ManagedDiskParameters',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'ManagedDiskParameters',
|
31
|
+
model_properties: {
|
32
|
+
id: {
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'id',
|
35
|
+
type: {
|
36
|
+
name: 'String'
|
37
|
+
}
|
38
|
+
},
|
39
|
+
storage_account_type: {
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'storageAccountType',
|
42
|
+
type: {
|
43
|
+
name: 'Enum',
|
44
|
+
module: 'StorageAccountTypes'
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -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 OperatingSystemStateTypes
|
10
|
+
#
|
11
|
+
module OperatingSystemStateTypes
|
12
|
+
Generalized = "Generalized"
|
13
|
+
Specialized = "Specialized"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,90 @@
|
|
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
|
+
# Operation status response
|
10
|
+
#
|
11
|
+
class OperationStatusResponse
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Operation ID
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [String] Operation status
|
19
|
+
attr_accessor :status
|
20
|
+
|
21
|
+
# @return [DateTime] Start time of the operation
|
22
|
+
attr_accessor :start_time
|
23
|
+
|
24
|
+
# @return [DateTime] End time of the operation
|
25
|
+
attr_accessor :end_time
|
26
|
+
|
27
|
+
# @return [ApiError] Api error
|
28
|
+
attr_accessor :error
|
29
|
+
|
30
|
+
|
31
|
+
#
|
32
|
+
# Mapper for OperationStatusResponse class as Ruby Hash.
|
33
|
+
# This will be used for serialization/deserialization.
|
34
|
+
#
|
35
|
+
def self.mapper()
|
36
|
+
{
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'OperationStatusResponse',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'OperationStatusResponse',
|
42
|
+
model_properties: {
|
43
|
+
name: {
|
44
|
+
required: false,
|
45
|
+
read_only: true,
|
46
|
+
serialized_name: 'name',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
},
|
51
|
+
status: {
|
52
|
+
required: false,
|
53
|
+
read_only: true,
|
54
|
+
serialized_name: 'status',
|
55
|
+
type: {
|
56
|
+
name: 'String'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
start_time: {
|
60
|
+
required: false,
|
61
|
+
read_only: true,
|
62
|
+
serialized_name: 'startTime',
|
63
|
+
type: {
|
64
|
+
name: 'DateTime'
|
65
|
+
}
|
66
|
+
},
|
67
|
+
end_time: {
|
68
|
+
required: false,
|
69
|
+
read_only: true,
|
70
|
+
serialized_name: 'endTime',
|
71
|
+
type: {
|
72
|
+
name: 'DateTime'
|
73
|
+
}
|
74
|
+
},
|
75
|
+
error: {
|
76
|
+
required: false,
|
77
|
+
read_only: true,
|
78
|
+
serialized_name: 'error',
|
79
|
+
type: {
|
80
|
+
name: 'Composite',
|
81
|
+
class_name: 'ApiError'
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
@@ -16,7 +16,7 @@ module Azure::ARM::Compute
|
|
16
16
|
# values include: 'Windows', 'Linux'
|
17
17
|
attr_accessor :os_type
|
18
18
|
|
19
|
-
# @return [DiskEncryptionSettings]
|
19
|
+
# @return [DiskEncryptionSettings] The disk encryption settings.
|
20
20
|
attr_accessor :encryption_settings
|
21
21
|
|
22
22
|
# @return [String] The disk name.
|
@@ -43,6 +43,9 @@ module Azure::ARM::Compute
|
|
43
43
|
# and the new desired size for resizing existing OS and data disks.
|
44
44
|
attr_accessor :disk_size_gb
|
45
45
|
|
46
|
+
# @return [ManagedDiskParameters] The managed disk parameters.
|
47
|
+
attr_accessor :managed_disk
|
48
|
+
|
46
49
|
|
47
50
|
#
|
48
51
|
# Mapper for OSDisk class as Ruby Hash.
|
@@ -73,14 +76,14 @@ module Azure::ARM::Compute
|
|
73
76
|
}
|
74
77
|
},
|
75
78
|
name: {
|
76
|
-
required:
|
79
|
+
required: false,
|
77
80
|
serialized_name: 'name',
|
78
81
|
type: {
|
79
82
|
name: 'String'
|
80
83
|
}
|
81
84
|
},
|
82
85
|
vhd: {
|
83
|
-
required:
|
86
|
+
required: false,
|
84
87
|
serialized_name: 'vhd',
|
85
88
|
type: {
|
86
89
|
name: 'Composite',
|
@@ -117,6 +120,14 @@ module Azure::ARM::Compute
|
|
117
120
|
type: {
|
118
121
|
name: 'Number'
|
119
122
|
}
|
123
|
+
},
|
124
|
+
managed_disk: {
|
125
|
+
required: false,
|
126
|
+
serialized_name: 'managedDisk',
|
127
|
+
type: {
|
128
|
+
name: 'Composite',
|
129
|
+
class_name: 'ManagedDiskParameters'
|
130
|
+
}
|
120
131
|
}
|
121
132
|
}
|
122
133
|
}
|
@@ -27,11 +27,11 @@ module Azure::ARM::Compute
|
|
27
27
|
# 65535 bytes
|
28
28
|
attr_accessor :custom_data
|
29
29
|
|
30
|
-
# @return [WindowsConfiguration]
|
30
|
+
# @return [WindowsConfiguration] The Windows configuration of the OS
|
31
31
|
# profile.
|
32
32
|
attr_accessor :windows_configuration
|
33
33
|
|
34
|
-
# @return [LinuxConfiguration]
|
34
|
+
# @return [LinuxConfiguration] The Linux configuration of the OS profile.
|
35
35
|
attr_accessor :linux_configuration
|
36
36
|
|
37
37
|
# @return [Array<VaultSecretGroup>] The list of certificates for addition
|
@@ -0,0 +1,51 @@
|
|
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
|
+
# The Resource model definition.
|
10
|
+
#
|
11
|
+
class ResourceUpdate
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Hash{String => String}] Resource tags
|
16
|
+
attr_accessor :tags
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for ResourceUpdate class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
required: false,
|
26
|
+
serialized_name: 'ResourceUpdate',
|
27
|
+
type: {
|
28
|
+
name: 'Composite',
|
29
|
+
class_name: 'ResourceUpdate',
|
30
|
+
model_properties: {
|
31
|
+
tags: {
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'tags',
|
34
|
+
type: {
|
35
|
+
name: 'Dictionary',
|
36
|
+
value: {
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'StringElementType',
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -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
|
+
# Snapshot resource.
|
10
|
+
#
|
11
|
+
class Snapshot < 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 Snapshot class as Ruby Hash.
|
50
|
+
# This will be used for serialization/deserialization.
|
51
|
+
#
|
52
|
+
def self.mapper()
|
53
|
+
{
|
54
|
+
required: false,
|
55
|
+
serialized_name: 'Snapshot',
|
56
|
+
type: {
|
57
|
+
name: 'Composite',
|
58
|
+
class_name: 'Snapshot',
|
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
|