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,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_06_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_06_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,62 @@
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 disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, or
10
+ # UltraSSD_LRS.
11
+ #
12
+ class DiskSku
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [DiskStorageAccountTypes] The sku name. Possible values
17
+ # include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS',
18
+ # 'UltraSSD_LRS'
19
+ attr_accessor :name
20
+
21
+ # @return [String] The sku tier. Default value: 'Standard' .
22
+ attr_accessor :tier
23
+
24
+
25
+ #
26
+ # Mapper for DiskSku 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: 'DiskSku',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'DiskSku',
37
+ model_properties: {
38
+ name: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'name',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ },
46
+ tier: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ read_only: true,
50
+ serialized_name: 'tier',
51
+ default_value: 'Standard',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ }
56
+ }
57
+ }
58
+ }
59
+ end
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,18 @@
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 DiskStorageAccountTypes
10
+ #
11
+ module DiskStorageAccountTypes
12
+ StandardLRS = "Standard_LRS"
13
+ PremiumLRS = "Premium_LRS"
14
+ StandardSSDLRS = "StandardSSD_LRS"
15
+ UltraSSDLRS = "UltraSSD_LRS"
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,132 @@
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
+ # Disk update resource.
10
+ #
11
+ class DiskUpdate
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 [Integer] The number of IOPS allowed for this disk; only
30
+ # settable for UltraSSD disks. One operation can transfer between 4k and
31
+ # 256k bytes.
32
+ attr_accessor :disk_iopsread_write
33
+
34
+ # @return [Integer] The bandwidth allowed for this disk; only settable
35
+ # for UltraSSD disks. MBps means millions of bytes per second - MB here
36
+ # uses the ISO notation, of powers of 10.
37
+ attr_accessor :disk_mbps_read_write
38
+
39
+ # @return [Hash{String => String}] Resource tags
40
+ attr_accessor :tags
41
+
42
+ # @return [DiskSku]
43
+ attr_accessor :sku
44
+
45
+
46
+ #
47
+ # Mapper for DiskUpdate class as Ruby Hash.
48
+ # This will be used for serialization/deserialization.
49
+ #
50
+ def self.mapper()
51
+ {
52
+ client_side_validation: true,
53
+ required: false,
54
+ serialized_name: 'DiskUpdate',
55
+ type: {
56
+ name: 'Composite',
57
+ class_name: 'DiskUpdate',
58
+ model_properties: {
59
+ os_type: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'properties.osType',
63
+ type: {
64
+ name: 'Enum',
65
+ module: 'OperatingSystemTypes'
66
+ }
67
+ },
68
+ disk_size_gb: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ serialized_name: 'properties.diskSizeGB',
72
+ type: {
73
+ name: 'Number'
74
+ }
75
+ },
76
+ encryption_settings: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ serialized_name: 'properties.encryptionSettings',
80
+ type: {
81
+ name: 'Composite',
82
+ class_name: 'EncryptionSettings'
83
+ }
84
+ },
85
+ disk_iopsread_write: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ serialized_name: 'properties.diskIOPSReadWrite',
89
+ type: {
90
+ name: 'Number'
91
+ }
92
+ },
93
+ disk_mbps_read_write: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ serialized_name: 'properties.diskMBpsReadWrite',
97
+ type: {
98
+ name: 'Number'
99
+ }
100
+ },
101
+ tags: {
102
+ client_side_validation: true,
103
+ required: false,
104
+ serialized_name: 'tags',
105
+ type: {
106
+ name: 'Dictionary',
107
+ value: {
108
+ client_side_validation: true,
109
+ required: false,
110
+ serialized_name: 'StringElementType',
111
+ type: {
112
+ name: 'String'
113
+ }
114
+ }
115
+ }
116
+ },
117
+ sku: {
118
+ client_side_validation: true,
119
+ required: false,
120
+ serialized_name: 'sku',
121
+ type: {
122
+ name: 'Composite',
123
+ class_name: 'DiskSku'
124
+ }
125
+ }
126
+ }
127
+ }
128
+ }
129
+ end
130
+ end
131
+ end
132
+ 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_06_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
@@ -12,9 +12,9 @@ module Azure::Compute::Mgmt::V2018_06_01
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Array<String>] The regions where the artifact is going to be
16
- # published.
17
- attr_accessor :regions
15
+ # @return [Array<TargetRegion>] The target regions where the artifact is
16
+ # going to be published.
17
+ attr_accessor :target_regions
18
18
 
19
19
  # @return [GalleryArtifactSource]
20
20
  attr_accessor :source
@@ -33,25 +33,26 @@ module Azure::Compute::Mgmt::V2018_06_01
33
33
  name: 'Composite',
34
34
  class_name: 'GalleryArtifactPublishingProfileBase',
35
35
  model_properties: {
36
- regions: {
36
+ target_regions: {
37
37
  client_side_validation: true,
38
38
  required: false,
39
- serialized_name: 'regions',
39
+ serialized_name: 'targetRegions',
40
40
  type: {
41
41
  name: 'Sequence',
42
42
  element: {
43
43
  client_side_validation: true,
44
44
  required: false,
45
- serialized_name: 'StringElementType',
45
+ serialized_name: 'TargetRegionElementType',
46
46
  type: {
47
- name: 'String'
47
+ name: 'Composite',
48
+ class_name: 'TargetRegion'
48
49
  }
49
50
  }
50
51
  }
51
52
  },
52
53
  source: {
53
54
  client_side_validation: true,
54
- required: false,
55
+ required: true,
55
56
  serialized_name: 'source',
56
57
  type: {
57
58
  name: 'Composite',