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,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 Snapshots operation response.
10
+ #
11
+ class SnapshotList
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<Snapshot>] A list of snapshots.
16
+ attr_accessor :value
17
+
18
+ # @return [String] The uri to fetch the next page of snapshots. Call
19
+ # ListNext() with this to fetch the next page of snapshots.
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<Snapshot>] 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 [SnapshotList] 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 SnapshotList class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ required: false,
61
+ serialized_name: 'SnapshotList',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'SnapshotList',
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: 'SnapshotElementType',
74
+ type: {
75
+ name: 'Composite',
76
+ class_name: 'Snapshot'
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
+ # Snapshot update resource.
10
+ #
11
+ class SnapshotUpdate < 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 SnapshotUpdate class as Ruby Hash.
40
+ # This will be used for serialization/deserialization.
41
+ #
42
+ def self.mapper()
43
+ {
44
+ required: false,
45
+ serialized_name: 'SnapshotUpdate',
46
+ type: {
47
+ name: 'Composite',
48
+ class_name: 'SnapshotUpdate',
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,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
+ # The vault id is an Azure Resource Manager Resoure id in the form
10
+ # /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}
11
+ #
12
+ class SourceVault
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Resource Id
17
+ attr_accessor :id
18
+
19
+
20
+ #
21
+ # Mapper for SourceVault class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'SourceVault',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'SourceVault',
31
+ model_properties: {
32
+ id: {
33
+ required: false,
34
+ serialized_name: 'id',
35
+ type: {
36
+ name: 'String'
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
42
+ end
43
+ end
44
+ end
45
+ 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 StorageAccountTypes
10
+ #
11
+ module StorageAccountTypes
12
+ StandardLRS = "Standard_LRS"
13
+ PremiumLRS = "Premium_LRS"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,46 @@
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
+ # Model object.
10
+ #
11
+ #
12
+ class SubResourceReadOnly
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Resource Id
17
+ attr_accessor :id
18
+
19
+
20
+ #
21
+ # Mapper for SubResourceReadOnly class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'SubResourceReadOnly',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'SubResourceReadOnly',
31
+ model_properties: {
32
+ id: {
33
+ required: false,
34
+ read_only: true,
35
+ serialized_name: 'id',
36
+ type: {
37
+ name: 'String'
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ end
44
+ end
45
+ end
46
+ end
@@ -12,7 +12,7 @@ module Azure::ARM::Compute
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [UpgradeMode] the upgrade mode. Possible values include:
15
+ # @return [UpgradeMode] The upgrade mode. Possible values include:
16
16
  # 'Automatic', 'Manual'
17
17
  attr_accessor :mode
18
18
 
@@ -52,7 +52,7 @@ module Azure::ARM::Compute
52
52
  # can be read using platform BIOS commands.
53
53
  attr_accessor :vm_id
54
54
 
55
- # @return [Array<VirtualMachineExtension>] the virtual machine child
55
+ # @return [Array<VirtualMachineExtension>] The virtual machine child
56
56
  # extension resources.
57
57
  attr_accessor :resources
58
58
 
@@ -12,20 +12,20 @@ module Azure::ARM::Compute
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] how the extension handler should be forced to update
15
+ # @return [String] How the extension handler should be forced to update
16
16
  # even if the extension configuration has not changed.
17
17
  attr_accessor :force_update_tag
18
18
 
19
- # @return [String] the name of the extension handler publisher.
19
+ # @return [String] The name of the extension handler publisher.
20
20
  attr_accessor :publisher
21
21
 
22
- # @return [String] the type of the extension handler.
22
+ # @return [String] The type of the extension handler.
23
23
  attr_accessor :virtual_machine_extension_type
24
24
 
25
- # @return [String] the type version of the extension handler.
25
+ # @return [String] The type version of the extension handler.
26
26
  attr_accessor :type_handler_version
27
27
 
28
- # @return [Boolean] whether the extension handler should be automatically
28
+ # @return [Boolean] Whether the extension handler should be automatically
29
29
  # upgraded across minor versions.
30
30
  attr_accessor :auto_upgrade_minor_version
31
31
 
@@ -35,11 +35,11 @@ module Azure::ARM::Compute
35
35
  # @return Json formatted protected settings for the extension.
36
36
  attr_accessor :protected_settings
37
37
 
38
- # @return [String] the provisioning state, which only appears in the
38
+ # @return [String] The provisioning state, which only appears in the
39
39
  # response.
40
40
  attr_accessor :provisioning_state
41
41
 
42
- # @return [VirtualMachineExtensionInstanceView] the virtual machine
42
+ # @return [VirtualMachineExtensionInstanceView] The virtual machine
43
43
  # extension instance view.
44
44
  attr_accessor :instance_view
45
45
 
@@ -12,14 +12,14 @@ module Azure::ARM::Compute
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] full type of the extension handler which includes both
15
+ # @return [String] Full type of the extension handler which includes both
16
16
  # publisher and type.
17
17
  attr_accessor :type
18
18
 
19
- # @return [String] the type version of the extension handler.
19
+ # @return [String] The type version of the extension handler.
20
20
  attr_accessor :type_handler_version
21
21
 
22
- # @return [InstanceViewStatus] the extension handler status.
22
+ # @return [InstanceViewStatus] The extension handler status.
23
23
  attr_accessor :status
24
24
 
25
25
 
@@ -12,24 +12,24 @@ module Azure::ARM::Compute
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] the operating system this extension supports.
15
+ # @return [String] The operating system this extension supports.
16
16
  attr_accessor :operating_system
17
17
 
18
- # @return [String] the type of role (IaaS or PaaS) this extension
18
+ # @return [String] The type of role (IaaS or PaaS) this extension
19
19
  # supports.
20
20
  attr_accessor :compute_role
21
21
 
22
- # @return [String] the schema defined by publisher, where extension
22
+ # @return [String] The schema defined by publisher, where extension
23
23
  # consumers should provide settings in a matching schema.
24
24
  attr_accessor :handler_schema
25
25
 
26
- # @return [Boolean] whether the extension can be used on xRP VMScaleSets.
26
+ # @return [Boolean] Whether the extension can be used on xRP VMScaleSets.
27
27
  # By default existing extensions are usable on scalesets, but there might
28
28
  # be cases where a publisher wants to explicitly indicate the extension
29
29
  # is only enabled for CRP VMs but not VMSS.
30
30
  attr_accessor :vm_scale_set_enabled
31
31
 
32
- # @return [Boolean] whether the handler can support multiple extensions.
32
+ # @return [Boolean] Whether the handler can support multiple extensions.
33
33
  attr_accessor :supports_multiple_extensions
34
34
 
35
35
 
@@ -12,20 +12,20 @@ module Azure::ARM::Compute
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] the virtual machine extension name.
15
+ # @return [String] The virtual machine extension name.
16
16
  attr_accessor :name
17
17
 
18
- # @return [String] the full type of the extension handler which includes
18
+ # @return [String] The full type of the extension handler which includes
19
19
  # both publisher and type.
20
20
  attr_accessor :type
21
21
 
22
- # @return [String] the type version of the extension handler.
22
+ # @return [String] The type version of the extension handler.
23
23
  attr_accessor :type_handler_version
24
24
 
25
- # @return [Array<InstanceViewStatus>] the resource status information.
25
+ # @return [Array<InstanceViewStatus>] The resource status information.
26
26
  attr_accessor :substatuses
27
27
 
28
- # @return [Array<InstanceViewStatus>] the resource status information.
28
+ # @return [Array<InstanceViewStatus>] The resource status information.
29
29
  attr_accessor :statuses
30
30
 
31
31