azure_mgmt_compute 0.18.1 → 0.18.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-06-15/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  3. data/lib/2015-06-15/generated/azure_mgmt_compute/models/data_disk.rb +1 -1
  4. data/lib/2015-06-15/generated/azure_mgmt_compute/models/osdisk.rb +1 -1
  5. data/lib/2016-03-30/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  6. data/lib/2016-03-30/generated/azure_mgmt_compute/models/data_disk.rb +1 -1
  7. data/lib/2016-03-30/generated/azure_mgmt_compute/models/osdisk.rb +1 -1
  8. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  9. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/data_disk.rb +1 -1
  10. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/osdisk.rb +1 -1
  11. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +1 -1
  12. data/lib/2017-03-30/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  13. data/lib/2017-03-30/generated/azure_mgmt_compute/models/data_disk.rb +1 -1
  14. data/lib/2017-03-30/generated/azure_mgmt_compute/models/osdisk.rb +1 -1
  15. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +1 -1
  16. data/lib/2017-09-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  17. data/lib/2017-12-01/generated/azure_mgmt_compute.rb +55 -55
  18. data/lib/2017-12-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  19. data/lib/2017-12-01/generated/azure_mgmt_compute/models/data_disk.rb +1 -1
  20. data/lib/2017-12-01/generated/azure_mgmt_compute/models/osdisk.rb +1 -1
  21. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine.rb +2 -3
  22. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +1 -1
  23. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +3 -2
  24. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +2 -3
  25. data/lib/2018-04-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  26. data/lib/2018-04-01/generated/azure_mgmt_compute/models/access_uri.rb +1 -1
  27. data/lib/2018-04-01/generated/azure_mgmt_compute/models/data_disk.rb +1 -1
  28. data/lib/2018-04-01/generated/azure_mgmt_compute/models/osdisk.rb +1 -1
  29. data/lib/2018-06-01/generated/azure_mgmt_compute.rb +108 -85
  30. data/lib/2018-06-01/generated/azure_mgmt_compute/compute_management_client.rb +9 -1
  31. data/lib/2018-06-01/generated/azure_mgmt_compute/disks.rb +1274 -0
  32. data/lib/2018-06-01/generated/azure_mgmt_compute/models/{scale_tier.rb → access_level.rb} +4 -4
  33. data/lib/2018-06-01/generated/azure_mgmt_compute/models/access_uri.rb +47 -0
  34. data/lib/2018-06-01/generated/azure_mgmt_compute/models/additional_capabilities.rb +51 -0
  35. data/lib/2018-06-01/generated/azure_mgmt_compute/models/creation_data.rb +97 -0
  36. data/lib/2018-06-01/generated/azure_mgmt_compute/models/data_disk.rb +1 -1
  37. data/lib/2018-06-01/generated/azure_mgmt_compute/models/disk.rb +233 -0
  38. data/lib/2018-06-01/generated/azure_mgmt_compute/models/disk_create_option.rb +20 -0
  39. data/lib/2018-06-01/generated/azure_mgmt_compute/models/disk_list.rb +99 -0
  40. data/lib/2018-06-01/generated/azure_mgmt_compute/models/disk_sku.rb +62 -0
  41. data/lib/2018-06-01/generated/azure_mgmt_compute/models/disk_storage_account_types.rb +18 -0
  42. data/lib/2018-06-01/generated/azure_mgmt_compute/models/disk_update.rb +132 -0
  43. data/lib/2018-06-01/generated/azure_mgmt_compute/models/encryption_settings.rb +76 -0
  44. data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_artifact_publishing_profile_base.rb +9 -8
  45. data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_artifact_source.rb +1 -1
  46. data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image.rb +3 -3
  47. data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image_identifier.rb +3 -3
  48. data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image_version.rb +1 -1
  49. data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image_version_publishing_profile.rb +11 -11
  50. data/lib/2018-06-01/generated/azure_mgmt_compute/models/grant_access_data.rb +58 -0
  51. data/lib/2018-06-01/generated/azure_mgmt_compute/models/image_data_disk.rb +1 -1
  52. data/lib/2018-06-01/generated/azure_mgmt_compute/models/image_disk_reference.rb +60 -0
  53. data/lib/2018-06-01/generated/azure_mgmt_compute/models/image_osdisk.rb +1 -1
  54. data/lib/2018-06-01/generated/azure_mgmt_compute/models/key_vault_and_key_reference.rb +60 -0
  55. data/lib/2018-06-01/generated/azure_mgmt_compute/models/key_vault_and_secret_reference.rb +59 -0
  56. data/lib/2018-06-01/generated/azure_mgmt_compute/models/managed_artifact.rb +1 -1
  57. data/lib/2018-06-01/generated/azure_mgmt_compute/models/managed_disk_parameters.rb +3 -3
  58. data/lib/2018-06-01/generated/azure_mgmt_compute/models/osdisk.rb +1 -1
  59. data/lib/2018-06-01/generated/azure_mgmt_compute/models/snapshot.rb +187 -0
  60. data/lib/2018-06-01/generated/azure_mgmt_compute/models/snapshot_list.rb +99 -0
  61. data/lib/2018-06-01/generated/azure_mgmt_compute/models/snapshot_sku.rb +61 -0
  62. data/lib/2018-06-01/generated/azure_mgmt_compute/models/snapshot_storage_account_types.rb +17 -0
  63. data/lib/2018-06-01/generated/azure_mgmt_compute/models/snapshot_update.rb +106 -0
  64. data/lib/2018-06-01/generated/azure_mgmt_compute/models/source_vault.rb +47 -0
  65. data/lib/2018-06-01/generated/azure_mgmt_compute/models/storage_account_types.rb +1 -0
  66. data/lib/2018-06-01/generated/azure_mgmt_compute/models/target_region.rb +58 -0
  67. data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine.rb +15 -0
  68. data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +1 -1
  69. data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +1 -1
  70. data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +14 -0
  71. data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration.rb +13 -0
  72. data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb +14 -0
  73. data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +35 -0
  74. data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +15 -0
  75. data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +15 -0
  76. data/lib/2018-06-01/generated/azure_mgmt_compute/snapshots.rb +1274 -0
  77. data/lib/2018-06-01/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +127 -0
  78. data/lib/2018-06-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +12 -0
  79. data/lib/2018-06-01/generated/azure_mgmt_compute/virtual_machine_sizes.rb +6 -3
  80. data/lib/profiles/latest/modules/compute_profile_module.rb +360 -352
  81. data/lib/version.rb +1 -1
  82. metadata +26 -3
@@ -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_06_01
7
+ module Models
8
+ #
9
+ # The List Snapshots operation response.
10
+ #
11
+ class SnapshotList
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<Snapshot>] A list of snapshots.
17
+ attr_accessor :value
18
+
19
+ # @return [String] The uri to fetch the next page of snapshots. Call
20
+ # ListNext() with this to fetch the next page of snapshots.
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<Snapshot>] 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 [SnapshotList] 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 SnapshotList 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: 'SnapshotList',
64
+ type: {
65
+ name: 'Composite',
66
+ class_name: 'SnapshotList',
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: 'SnapshotElementType',
78
+ type: {
79
+ name: 'Composite',
80
+ class_name: 'Snapshot'
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,61 @@
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_06_01
7
+ module Models
8
+ #
9
+ # The snapshots sku name. Can be Standard_LRS, Premium_LRS, or
10
+ # Standard_ZRS.
11
+ #
12
+ class SnapshotSku
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [SnapshotStorageAccountTypes] The sku name. Possible values
17
+ # include: 'Standard_LRS', 'Premium_LRS', 'Standard_ZRS'
18
+ attr_accessor :name
19
+
20
+ # @return [String] The sku tier. Default value: 'Standard' .
21
+ attr_accessor :tier
22
+
23
+
24
+ #
25
+ # Mapper for SnapshotSku class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ client_side_validation: true,
31
+ required: false,
32
+ serialized_name: 'SnapshotSku',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'SnapshotSku',
36
+ model_properties: {
37
+ name: {
38
+ client_side_validation: true,
39
+ required: false,
40
+ serialized_name: 'name',
41
+ type: {
42
+ name: 'String'
43
+ }
44
+ },
45
+ tier: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ read_only: true,
49
+ serialized_name: 'tier',
50
+ default_value: 'Standard',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ }
55
+ }
56
+ }
57
+ }
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,17 @@
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_06_01
7
+ module Models
8
+ #
9
+ # Defines values for SnapshotStorageAccountTypes
10
+ #
11
+ module SnapshotStorageAccountTypes
12
+ StandardLRS = "Standard_LRS"
13
+ PremiumLRS = "Premium_LRS"
14
+ StandardZRS = "Standard_ZRS"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,106 @@
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_06_01
7
+ module Models
8
+ #
9
+ # Snapshot update resource.
10
+ #
11
+ class SnapshotUpdate
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
+ # @return [Hash{String => String}] Resource tags
30
+ attr_accessor :tags
31
+
32
+ # @return [SnapshotSku]
33
+ attr_accessor :sku
34
+
35
+
36
+ #
37
+ # Mapper for SnapshotUpdate class as Ruby Hash.
38
+ # This will be used for serialization/deserialization.
39
+ #
40
+ def self.mapper()
41
+ {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'SnapshotUpdate',
45
+ type: {
46
+ name: 'Composite',
47
+ class_name: 'SnapshotUpdate',
48
+ model_properties: {
49
+ os_type: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'properties.osType',
53
+ type: {
54
+ name: 'Enum',
55
+ module: 'OperatingSystemTypes'
56
+ }
57
+ },
58
+ disk_size_gb: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ serialized_name: 'properties.diskSizeGB',
62
+ type: {
63
+ name: 'Number'
64
+ }
65
+ },
66
+ encryption_settings: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ serialized_name: 'properties.encryptionSettings',
70
+ type: {
71
+ name: 'Composite',
72
+ class_name: 'EncryptionSettings'
73
+ }
74
+ },
75
+ tags: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ serialized_name: 'tags',
79
+ type: {
80
+ name: 'Dictionary',
81
+ value: {
82
+ client_side_validation: true,
83
+ required: false,
84
+ serialized_name: 'StringElementType',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ }
89
+ }
90
+ },
91
+ sku: {
92
+ client_side_validation: true,
93
+ required: false,
94
+ serialized_name: 'sku',
95
+ type: {
96
+ name: 'Composite',
97
+ class_name: 'SnapshotSku'
98
+ }
99
+ }
100
+ }
101
+ }
102
+ }
103
+ end
104
+ end
105
+ end
106
+ end
@@ -0,0 +1,47 @@
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_06_01
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
+ client_side_validation: true,
27
+ required: false,
28
+ serialized_name: 'SourceVault',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'SourceVault',
32
+ model_properties: {
33
+ id: {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'id',
37
+ type: {
38
+ name: 'String'
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ end
45
+ end
46
+ end
47
+ end
@@ -12,6 +12,7 @@ module Azure::Compute::Mgmt::V2018_06_01
12
12
  StandardLRS = "Standard_LRS"
13
13
  PremiumLRS = "Premium_LRS"
14
14
  StandardSSDLRS = "StandardSSD_LRS"
15
+ UltraSSDLRS = "UltraSSD_LRS"
15
16
  end
16
17
  end
17
18
  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_06_01
7
+ module Models
8
+ #
9
+ # Describes the target region information.
10
+ #
11
+ class TargetRegion
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The name of the region.
16
+ attr_accessor :name
17
+
18
+ # @return [Integer] This is the number of source blob copies in this
19
+ # specific region.
20
+ attr_accessor :regional_replica_count
21
+
22
+
23
+ #
24
+ # Mapper for TargetRegion 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: 'TargetRegion',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'TargetRegion',
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
+ regional_replica_count: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'regionalReplicaCount',
48
+ type: {
49
+ name: 'Number'
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ end
56
+ end
57
+ end
58
+ end
@@ -29,6 +29,12 @@ module Azure::Compute::Mgmt::V2018_06_01
29
29
  # machine disks.
30
30
  attr_accessor :storage_profile
31
31
 
32
+ # @return [AdditionalCapabilities] Specifies additional capabilities
33
+ # enabled or disabled on the virtual machine. For instance: whether the
34
+ # virtual machine has the capability to support attaching managed data
35
+ # disks with UltraSSD_LRS storage account type.
36
+ attr_accessor :additional_capabilities
37
+
32
38
  # @return [OSProfile] Specifies the operating system settings for the
33
39
  # virtual machine.
34
40
  attr_accessor :os_profile
@@ -180,6 +186,15 @@ module Azure::Compute::Mgmt::V2018_06_01
180
186
  class_name: 'StorageProfile'
181
187
  }
182
188
  },
189
+ additional_capabilities: {
190
+ client_side_validation: true,
191
+ required: false,
192
+ serialized_name: 'properties.additionalCapabilities',
193
+ type: {
194
+ name: 'Composite',
195
+ class_name: 'AdditionalCapabilities'
196
+ }
197
+ },
183
198
  os_profile: {
184
199
  client_side_validation: true,
185
200
  required: false,
@@ -36,7 +36,7 @@ module Azure::Compute::Mgmt::V2018_06_01
36
36
  attr_accessor :create_option
37
37
 
38
38
  # @return [Integer] Specifies the size of an empty data disk in
39
- # gigabytes. This element can be used to overwrite the name of the disk
39
+ # gigabytes. This element can be used to overwrite the size of the disk
40
40
  # in a virtual machine image. <br><br> This value cannot be larger than
41
41
  # 1023 GB
42
42
  attr_accessor :disk_size_gb
@@ -15,7 +15,7 @@ module Azure::Compute::Mgmt::V2018_06_01
15
15
  # @return [StorageAccountTypes] Specifies the storage account type for
16
16
  # the managed disk. Possible values are: Standard_LRS, Premium_LRS, and
17
17
  # StandardSSD_LRS. Possible values include: 'Standard_LRS',
18
- # 'Premium_LRS', 'StandardSSD_LRS'
18
+ # 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
19
19
  attr_accessor :storage_account_type
20
20
 
21
21