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,20 @@
|
|
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 DiskCreateOption
|
10
|
+
#
|
11
|
+
module DiskCreateOption
|
12
|
+
Empty = "Empty"
|
13
|
+
Attach = "Attach"
|
14
|
+
FromImage = "FromImage"
|
15
|
+
Import = "Import"
|
16
|
+
Copy = "Copy"
|
17
|
+
Restore = "Restore"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
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 Disks operation response.
|
10
|
+
#
|
11
|
+
class DiskList
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<Disk>] A list of disks.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] The uri to fetch the next page of disks. Call
|
20
|
+
# ListNext() with this to fetch the next page of disks.
|
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<Disk>] 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 [DiskList] 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 DiskList 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: 'DiskList',
|
64
|
+
type: {
|
65
|
+
name: 'Composite',
|
66
|
+
class_name: 'DiskList',
|
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: 'DiskElementType',
|
78
|
+
type: {
|
79
|
+
name: 'Composite',
|
80
|
+
class_name: 'Disk'
|
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,60 @@
|
|
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 disks sku name. Can be Standard_LRS or Premium_LRS.
|
10
|
+
#
|
11
|
+
class DiskSku
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [StorageAccountTypes] The sku name. Possible values include:
|
16
|
+
# 'Standard_LRS', 'Premium_LRS'
|
17
|
+
attr_accessor :name
|
18
|
+
|
19
|
+
# @return [String] The sku tier. Default value: 'Standard' .
|
20
|
+
attr_accessor :tier
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for DiskSku class as Ruby Hash.
|
25
|
+
# This will be used for serialization/deserialization.
|
26
|
+
#
|
27
|
+
def self.mapper()
|
28
|
+
{
|
29
|
+
client_side_validation: true,
|
30
|
+
required: false,
|
31
|
+
serialized_name: 'DiskSku',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'DiskSku',
|
35
|
+
model_properties: {
|
36
|
+
name: {
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'name',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
tier: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
read_only: true,
|
48
|
+
serialized_name: 'tier',
|
49
|
+
default_value: 'Standard',
|
50
|
+
type: {
|
51
|
+
name: 'String'
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
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
|
+
# Disk update resource.
|
10
|
+
#
|
11
|
+
class DiskUpdate < 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 DiskUpdate 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: 'DiskUpdate',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'DiskUpdate',
|
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
|
@@ -0,0 +1,76 @@
|
|
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
|
+
# Encryption settings for disk or snapshot
|
10
|
+
#
|
11
|
+
class EncryptionSettings
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Boolean] Set this flag to true and provide DiskEncryptionKey
|
16
|
+
# and optional KeyEncryptionKey to enable encryption. Set this flag to
|
17
|
+
# false and remove DiskEncryptionKey and KeyEncryptionKey to disable
|
18
|
+
# encryption. If EncryptionSettings is null in the request object, the
|
19
|
+
# existing settings remain unchanged.
|
20
|
+
attr_accessor :enabled
|
21
|
+
|
22
|
+
# @return [KeyVaultAndSecretReference] Key Vault Secret Url and vault id
|
23
|
+
# of the disk encryption key
|
24
|
+
attr_accessor :disk_encryption_key
|
25
|
+
|
26
|
+
# @return [KeyVaultAndKeyReference] Key Vault Key Url and vault id of the
|
27
|
+
# key encryption key
|
28
|
+
attr_accessor :key_encryption_key
|
29
|
+
|
30
|
+
|
31
|
+
#
|
32
|
+
# Mapper for EncryptionSettings class as Ruby Hash.
|
33
|
+
# This will be used for serialization/deserialization.
|
34
|
+
#
|
35
|
+
def self.mapper()
|
36
|
+
{
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'EncryptionSettings',
|
40
|
+
type: {
|
41
|
+
name: 'Composite',
|
42
|
+
class_name: 'EncryptionSettings',
|
43
|
+
model_properties: {
|
44
|
+
enabled: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'enabled',
|
48
|
+
type: {
|
49
|
+
name: 'Boolean'
|
50
|
+
}
|
51
|
+
},
|
52
|
+
disk_encryption_key: {
|
53
|
+
client_side_validation: true,
|
54
|
+
required: false,
|
55
|
+
serialized_name: 'diskEncryptionKey',
|
56
|
+
type: {
|
57
|
+
name: 'Composite',
|
58
|
+
class_name: 'KeyVaultAndSecretReference'
|
59
|
+
}
|
60
|
+
},
|
61
|
+
key_encryption_key: {
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'keyEncryptionKey',
|
65
|
+
type: {
|
66
|
+
name: 'Composite',
|
67
|
+
class_name: 'KeyVaultAndKeyReference'
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
@@ -0,0 +1,58 @@
|
|
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
|
+
# Data used for requesting a SAS.
|
10
|
+
#
|
11
|
+
class GrantAccessData
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [AccessLevel] Possible values include: 'None', 'Read'
|
16
|
+
attr_accessor :access
|
17
|
+
|
18
|
+
# @return [Integer] Time duration in seconds until the SAS access
|
19
|
+
# expires.
|
20
|
+
attr_accessor :duration_in_seconds
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for GrantAccessData class as Ruby Hash.
|
25
|
+
# This will be used for serialization/deserialization.
|
26
|
+
#
|
27
|
+
def self.mapper()
|
28
|
+
{
|
29
|
+
client_side_validation: true,
|
30
|
+
required: false,
|
31
|
+
serialized_name: 'GrantAccessData',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'GrantAccessData',
|
35
|
+
model_properties: {
|
36
|
+
access: {
|
37
|
+
client_side_validation: true,
|
38
|
+
required: true,
|
39
|
+
serialized_name: 'access',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
duration_in_seconds: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: true,
|
47
|
+
serialized_name: 'durationInSeconds',
|
48
|
+
type: {
|
49
|
+
name: 'Number'
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,60 @@
|
|
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 source image used for creating the disk.
|
10
|
+
#
|
11
|
+
class ImageDiskReference
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] A relative uri containing either a Platform Imgage
|
16
|
+
# Repository or user image reference.
|
17
|
+
attr_accessor :id
|
18
|
+
|
19
|
+
# @return [Integer] If the disk is created from an image's data disk,
|
20
|
+
# this is an index that indicates which of the data disks in the image to
|
21
|
+
# use. For OS disks, this field is null.
|
22
|
+
attr_accessor :lun
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for ImageDiskReference class as Ruby Hash.
|
27
|
+
# This will be used for serialization/deserialization.
|
28
|
+
#
|
29
|
+
def self.mapper()
|
30
|
+
{
|
31
|
+
client_side_validation: true,
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'ImageDiskReference',
|
34
|
+
type: {
|
35
|
+
name: 'Composite',
|
36
|
+
class_name: 'ImageDiskReference',
|
37
|
+
model_properties: {
|
38
|
+
id: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: true,
|
41
|
+
serialized_name: 'id',
|
42
|
+
type: {
|
43
|
+
name: 'String'
|
44
|
+
}
|
45
|
+
},
|
46
|
+
lun: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: false,
|
49
|
+
serialized_name: 'lun',
|
50
|
+
type: {
|
51
|
+
name: 'Number'
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|