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.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_compute.rb +86 -54
  3. data/lib/generated/azure_mgmt_compute/availability_sets.rb +17 -6
  4. data/lib/generated/azure_mgmt_compute/compute_management_client.rb +17 -6
  5. data/lib/generated/azure_mgmt_compute/disks.rb +1273 -0
  6. data/lib/generated/azure_mgmt_compute/images.rb +808 -0
  7. data/lib/generated/azure_mgmt_compute/models/access_level.rb +16 -0
  8. data/lib/generated/azure_mgmt_compute/models/access_uri.rb +45 -0
  9. data/lib/generated/azure_mgmt_compute/models/additional_unattend_content.rb +1 -1
  10. data/lib/generated/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
  11. data/lib/generated/azure_mgmt_compute/models/api_error.rb +5 -5
  12. data/lib/generated/azure_mgmt_compute/models/api_error_base.rb +3 -3
  13. data/lib/generated/azure_mgmt_compute/models/availability_set.rb +21 -0
  14. data/lib/generated/azure_mgmt_compute/models/container_service.rb +1 -1
  15. data/lib/generated/azure_mgmt_compute/models/container_service_agent_pool_profile.rb +2 -1
  16. data/lib/generated/azure_mgmt_compute/models/container_service_diagnostics_profile.rb +1 -1
  17. data/lib/generated/azure_mgmt_compute/models/container_service_linux_profile.rb +1 -1
  18. data/lib/generated/azure_mgmt_compute/models/container_service_list_result.rb +1 -1
  19. data/lib/generated/azure_mgmt_compute/models/container_service_ssh_configuration.rb +1 -1
  20. data/lib/generated/azure_mgmt_compute/models/container_service_windows_profile.rb +1 -1
  21. data/lib/generated/azure_mgmt_compute/models/creation_data.rb +94 -0
  22. data/lib/generated/azure_mgmt_compute/models/data_disk.rb +13 -2
  23. data/lib/generated/azure_mgmt_compute/models/disk.rb +174 -0
  24. data/lib/generated/azure_mgmt_compute/models/disk_create_option.rb +20 -0
  25. data/lib/generated/azure_mgmt_compute/models/disk_list.rb +94 -0
  26. data/lib/generated/azure_mgmt_compute/models/disk_update.rb +109 -0
  27. data/lib/generated/azure_mgmt_compute/models/encryption_settings.rb +72 -0
  28. data/lib/generated/azure_mgmt_compute/models/grant_access_data.rb +56 -0
  29. data/lib/generated/azure_mgmt_compute/models/image.rb +113 -0
  30. data/lib/generated/azure_mgmt_compute/models/image_data_disk.rb +99 -0
  31. data/lib/generated/azure_mgmt_compute/models/image_disk_reference.rb +57 -0
  32. data/lib/generated/azure_mgmt_compute/models/image_list_result.rb +94 -0
  33. data/lib/generated/azure_mgmt_compute/models/image_osdisk.rb +113 -0
  34. data/lib/generated/azure_mgmt_compute/models/image_reference.rb +8 -1
  35. data/lib/generated/azure_mgmt_compute/models/image_storage_profile.rb +63 -0
  36. data/lib/generated/azure_mgmt_compute/models/inner_error.rb +2 -2
  37. data/lib/generated/azure_mgmt_compute/models/key_vault_and_key_reference.rb +57 -0
  38. data/lib/generated/azure_mgmt_compute/models/key_vault_and_secret_reference.rb +56 -0
  39. data/lib/generated/azure_mgmt_compute/models/managed_disk_parameters.rb +53 -0
  40. data/lib/generated/azure_mgmt_compute/models/operating_system_state_types.rb +16 -0
  41. data/lib/generated/azure_mgmt_compute/models/operation_status_response.rb +90 -0
  42. data/lib/generated/azure_mgmt_compute/models/osdisk.rb +14 -3
  43. data/lib/generated/azure_mgmt_compute/models/osprofile.rb +2 -2
  44. data/lib/generated/azure_mgmt_compute/models/resource_update.rb +51 -0
  45. data/lib/generated/azure_mgmt_compute/models/snapshot.rb +174 -0
  46. data/lib/generated/azure_mgmt_compute/models/snapshot_list.rb +94 -0
  47. data/lib/generated/azure_mgmt_compute/models/snapshot_update.rb +109 -0
  48. data/lib/generated/azure_mgmt_compute/models/source_vault.rb +45 -0
  49. data/lib/generated/azure_mgmt_compute/models/storage_account_types.rb +16 -0
  50. data/lib/generated/azure_mgmt_compute/models/sub_resource_read_only.rb +46 -0
  51. data/lib/generated/azure_mgmt_compute/models/upgrade_policy.rb +1 -1
  52. data/lib/generated/azure_mgmt_compute/models/virtual_machine.rb +1 -1
  53. data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +7 -7
  54. data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +3 -3
  55. data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +5 -5
  56. data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +5 -5
  57. data/lib/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +2 -2
  58. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +27 -4
  59. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +101 -0
  60. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +8 -7
  61. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +1 -1
  62. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +3 -3
  63. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +1 -1
  64. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +5 -5
  65. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +2 -2
  66. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +2 -2
  67. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +2 -2
  68. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +47 -0
  69. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +3 -3
  70. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +1 -1
  71. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +19 -7
  72. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +7 -7
  73. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +3 -3
  74. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +4 -4
  75. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +20 -2
  76. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +21 -10
  77. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +2 -2
  78. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +1 -1
  79. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +1 -1
  80. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +19 -8
  81. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +2 -2
  82. data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +4 -4
  83. data/lib/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +2 -2
  84. data/lib/generated/azure_mgmt_compute/snapshots.rb +1273 -0
  85. data/lib/generated/azure_mgmt_compute/usage_operations.rb +1 -1
  86. data/lib/generated/azure_mgmt_compute/version.rb +1 -1
  87. data/lib/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +3 -3
  88. data/lib/generated/azure_mgmt_compute/virtual_machine_extensions.rb +21 -6
  89. data/lib/generated/azure_mgmt_compute/virtual_machine_images.rb +5 -5
  90. data/lib/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +263 -26
  91. data/lib/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +298 -37
  92. data/lib/generated/azure_mgmt_compute/virtual_machine_sizes.rb +1 -1
  93. data/lib/generated/azure_mgmt_compute/virtual_machines.rb +270 -32
  94. metadata +36 -4
@@ -0,0 +1,20 @@
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 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,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
+ # The List Disks operation response.
10
+ #
11
+ class DiskList
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<Disk>] A list of disks.
16
+ attr_accessor :value
17
+
18
+ # @return [String] the uri to fetch the next page of disks. Call
19
+ # ListNext() with this to fetch the next page of disks.
20
+ attr_accessor :next_link
21
+
22
+ # return [Proc] with next page method call.
23
+ attr_accessor :next_method
24
+
25
+ #
26
+ # Gets the rest of the items for the request, enabling auto-pagination.
27
+ #
28
+ # @return [Array<Disk>] operation results.
29
+ #
30
+ def get_all_items
31
+ items = @value
32
+ page = self
33
+ while page.next_link != nil do
34
+ page = page.get_next_page
35
+ items.concat(page.value)
36
+ end
37
+ items
38
+ end
39
+
40
+ #
41
+ # Gets the next page of results.
42
+ #
43
+ # @return [DiskList] with next page content.
44
+ #
45
+ def get_next_page
46
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
47
+ unless response.nil?
48
+ @next_link = response.body.next_link
49
+ @value = response.body.value
50
+ self
51
+ end
52
+ end
53
+
54
+ #
55
+ # Mapper for DiskList class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ required: false,
61
+ serialized_name: 'DiskList',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'DiskList',
65
+ model_properties: {
66
+ value: {
67
+ required: true,
68
+ serialized_name: 'value',
69
+ type: {
70
+ name: 'Sequence',
71
+ element: {
72
+ required: false,
73
+ serialized_name: 'DiskElementType',
74
+ type: {
75
+ name: 'Composite',
76
+ class_name: 'Disk'
77
+ }
78
+ }
79
+ }
80
+ },
81
+ next_link: {
82
+ required: false,
83
+ serialized_name: 'nextLink',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ end
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,109 @@
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 update resource.
10
+ #
11
+ class DiskUpdate < MsRestAzure::ResourceUpdate
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 [OperatingSystemTypes] the Operating System type. Possible
20
+ # values include: 'Windows', 'Linux'
21
+ attr_accessor :os_type
22
+
23
+ # @return [CreationData] disk source information. CreationData
24
+ # information cannot be changed after the disk has been created.
25
+ attr_accessor :creation_data
26
+
27
+ # @return [Integer] If creationData.createOption is Empty, this field is
28
+ # mandatory and it indicates the size of the VHD to create. If this field
29
+ # is present for updates or creation with other options, it indicates a
30
+ # resize. Resizes are only allowed if the disk is not attached to a
31
+ # running VM, and can only increase the disk's size.
32
+ attr_accessor :disk_size_gb
33
+
34
+ # @return [EncryptionSettings] Encryption settings for disk or snapshot
35
+ attr_accessor :encryption_settings
36
+
37
+
38
+ #
39
+ # Mapper for DiskUpdate class as Ruby Hash.
40
+ # This will be used for serialization/deserialization.
41
+ #
42
+ def self.mapper()
43
+ {
44
+ required: false,
45
+ serialized_name: 'DiskUpdate',
46
+ type: {
47
+ name: 'Composite',
48
+ class_name: 'DiskUpdate',
49
+ model_properties: {
50
+ tags: {
51
+ required: false,
52
+ serialized_name: 'tags',
53
+ type: {
54
+ name: 'Dictionary',
55
+ value: {
56
+ required: false,
57
+ serialized_name: 'StringElementType',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ }
62
+ }
63
+ },
64
+ account_type: {
65
+ required: false,
66
+ serialized_name: 'properties.accountType',
67
+ type: {
68
+ name: 'Enum',
69
+ module: 'StorageAccountTypes'
70
+ }
71
+ },
72
+ os_type: {
73
+ required: false,
74
+ serialized_name: 'properties.osType',
75
+ type: {
76
+ name: 'Enum',
77
+ module: 'OperatingSystemTypes'
78
+ }
79
+ },
80
+ creation_data: {
81
+ required: false,
82
+ serialized_name: 'properties.creationData',
83
+ type: {
84
+ name: 'Composite',
85
+ class_name: 'CreationData'
86
+ }
87
+ },
88
+ disk_size_gb: {
89
+ required: false,
90
+ serialized_name: 'properties.diskSizeGB',
91
+ type: {
92
+ name: 'Number'
93
+ }
94
+ },
95
+ encryption_settings: {
96
+ required: false,
97
+ serialized_name: 'properties.encryptionSettings',
98
+ type: {
99
+ name: 'Composite',
100
+ class_name: 'EncryptionSettings'
101
+ }
102
+ }
103
+ }
104
+ }
105
+ }
106
+ end
107
+ end
108
+ end
109
+ end
@@ -0,0 +1,72 @@
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
+ # 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
+ required: false,
38
+ serialized_name: 'EncryptionSettings',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'EncryptionSettings',
42
+ model_properties: {
43
+ enabled: {
44
+ required: false,
45
+ serialized_name: 'enabled',
46
+ type: {
47
+ name: 'Boolean'
48
+ }
49
+ },
50
+ disk_encryption_key: {
51
+ required: false,
52
+ serialized_name: 'diskEncryptionKey',
53
+ type: {
54
+ name: 'Composite',
55
+ class_name: 'KeyVaultAndSecretReference'
56
+ }
57
+ },
58
+ key_encryption_key: {
59
+ required: false,
60
+ serialized_name: 'keyEncryptionKey',
61
+ type: {
62
+ name: 'Composite',
63
+ class_name: 'KeyVaultAndKeyReference'
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ end
70
+ end
71
+ end
72
+ 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
+ # 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
+ required: false,
30
+ serialized_name: 'GrantAccessData',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'GrantAccessData',
34
+ model_properties: {
35
+ access: {
36
+ required: true,
37
+ serialized_name: 'access',
38
+ type: {
39
+ name: 'Enum',
40
+ module: 'AccessLevel'
41
+ }
42
+ },
43
+ duration_in_seconds: {
44
+ required: true,
45
+ serialized_name: 'durationInSeconds',
46
+ type: {
47
+ name: 'Number'
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,113 @@
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
+ # Describes an Image.
10
+ #
11
+ class Image < MsRestAzure::Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [SubResource] The source virtual machine from which Image is
16
+ # created.
17
+ attr_accessor :source_virtual_machine
18
+
19
+ # @return [ImageStorageProfile] The storage profile.
20
+ attr_accessor :storage_profile
21
+
22
+ # @return [String] The provisioning state.
23
+ attr_accessor :provisioning_state
24
+
25
+
26
+ #
27
+ # Mapper for Image class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ required: false,
33
+ serialized_name: 'Image',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'Image',
37
+ model_properties: {
38
+ id: {
39
+ required: false,
40
+ read_only: true,
41
+ serialized_name: 'id',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ },
46
+ name: {
47
+ required: false,
48
+ read_only: true,
49
+ serialized_name: 'name',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ type: {
55
+ required: false,
56
+ read_only: true,
57
+ serialized_name: 'type',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ location: {
63
+ required: true,
64
+ serialized_name: 'location',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ },
69
+ tags: {
70
+ required: false,
71
+ serialized_name: 'tags',
72
+ type: {
73
+ name: 'Dictionary',
74
+ value: {
75
+ required: false,
76
+ serialized_name: 'StringElementType',
77
+ type: {
78
+ name: 'String'
79
+ }
80
+ }
81
+ }
82
+ },
83
+ source_virtual_machine: {
84
+ required: false,
85
+ serialized_name: 'properties.sourceVirtualMachine',
86
+ type: {
87
+ name: 'Composite',
88
+ class_name: 'SubResource'
89
+ }
90
+ },
91
+ storage_profile: {
92
+ required: false,
93
+ serialized_name: 'properties.storageProfile',
94
+ type: {
95
+ name: 'Composite',
96
+ class_name: 'ImageStorageProfile'
97
+ }
98
+ },
99
+ provisioning_state: {
100
+ required: false,
101
+ read_only: true,
102
+ serialized_name: 'properties.provisioningState',
103
+ type: {
104
+ name: 'String'
105
+ }
106
+ }
107
+ }
108
+ }
109
+ }
110
+ end
111
+ end
112
+ end
113
+ end