azure_mgmt_compute 0.16.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) 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/2016-03-30/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  4. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  5. data/lib/2017-03-30/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  6. data/lib/2017-09-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  7. data/lib/2017-12-01/generated/azure_mgmt_compute.rb +66 -60
  8. data/lib/2017-12-01/generated/azure_mgmt_compute/availability_sets.rb +106 -0
  9. data/lib/2017-12-01/generated/azure_mgmt_compute/compute_management_client.rb +5 -1
  10. data/lib/2017-12-01/generated/azure_mgmt_compute/images.rb +162 -0
  11. data/lib/2017-12-01/generated/azure_mgmt_compute/models/availability_set_update.rb +137 -0
  12. data/lib/2017-12-01/generated/azure_mgmt_compute/models/compute_operation_list_result.rb +56 -0
  13. data/lib/2017-12-01/generated/azure_mgmt_compute/models/compute_operation_value.rb +108 -0
  14. data/lib/2017-12-01/generated/azure_mgmt_compute/models/data_disk.rb +1 -2
  15. data/lib/2017-12-01/generated/azure_mgmt_compute/models/hardware_profile.rb +24 -24
  16. data/lib/2017-12-01/generated/azure_mgmt_compute/models/image_data_disk.rb +1 -2
  17. data/lib/2017-12-01/generated/azure_mgmt_compute/models/image_osdisk.rb +1 -2
  18. data/lib/2017-12-01/generated/azure_mgmt_compute/models/image_storage_profile.rb +14 -1
  19. data/lib/2017-12-01/generated/azure_mgmt_compute/models/image_update.rb +91 -0
  20. data/lib/2017-12-01/generated/azure_mgmt_compute/models/managed_disk_parameters.rb +1 -2
  21. data/lib/2017-12-01/generated/azure_mgmt_compute/models/osdisk.rb +1 -2
  22. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +23 -0
  23. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +1 -2
  24. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +1 -2
  25. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +1 -2
  26. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +13 -0
  27. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +247 -0
  28. data/lib/2017-12-01/generated/azure_mgmt_compute/operations.rb +107 -0
  29. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +280 -0
  30. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +302 -0
  31. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machines.rb +162 -0
  32. data/lib/profiles/latest/modules/compute_profile_module.rb +214 -192
  33. data/lib/version.rb +1 -1
  34. metadata +8 -2
@@ -0,0 +1,137 @@
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::V2017_12_01
7
+ module Models
8
+ #
9
+ # Specifies information about the availability set that the virtual machine
10
+ # should be assigned to. Virtual machines specified in the same
11
+ # availability set are allocated to different nodes to maximize
12
+ # availability. For more information about availability sets, see [Manage
13
+ # the availability of virtual
14
+ # machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
15
+ # <br><br> For more information on Azure planned maintainance, see [Planned
16
+ # maintenance for virtual machines in
17
+ # Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
18
+ # <br><br> Currently, a VM can only be added to availability set at
19
+ # creation time. An existing VM cannot be added to an availability set.
20
+ #
21
+ class AvailabilitySetUpdate < UpdateResource
22
+
23
+ include MsRestAzure
24
+
25
+ # @return [Integer] Update Domain count.
26
+ attr_accessor :platform_update_domain_count
27
+
28
+ # @return [Integer] Fault Domain count.
29
+ attr_accessor :platform_fault_domain_count
30
+
31
+ # @return [Array<SubResource>] A list of references to all virtual
32
+ # machines in the availability set.
33
+ attr_accessor :virtual_machines
34
+
35
+ # @return [Array<InstanceViewStatus>] The resource status information.
36
+ attr_accessor :statuses
37
+
38
+ # @return [Sku] Sku of the availability set
39
+ attr_accessor :sku
40
+
41
+
42
+ #
43
+ # Mapper for AvailabilitySetUpdate class as Ruby Hash.
44
+ # This will be used for serialization/deserialization.
45
+ #
46
+ def self.mapper()
47
+ {
48
+ client_side_validation: true,
49
+ required: false,
50
+ serialized_name: 'AvailabilitySetUpdate',
51
+ type: {
52
+ name: 'Composite',
53
+ class_name: 'AvailabilitySetUpdate',
54
+ model_properties: {
55
+ tags: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ serialized_name: 'tags',
59
+ type: {
60
+ name: 'Dictionary',
61
+ value: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'StringElementType',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ }
69
+ }
70
+ },
71
+ platform_update_domain_count: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ serialized_name: 'properties.platformUpdateDomainCount',
75
+ type: {
76
+ name: 'Number'
77
+ }
78
+ },
79
+ platform_fault_domain_count: {
80
+ client_side_validation: true,
81
+ required: false,
82
+ serialized_name: 'properties.platformFaultDomainCount',
83
+ type: {
84
+ name: 'Number'
85
+ }
86
+ },
87
+ virtual_machines: {
88
+ client_side_validation: true,
89
+ required: false,
90
+ serialized_name: 'properties.virtualMachines',
91
+ type: {
92
+ name: 'Sequence',
93
+ element: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ serialized_name: 'SubResourceElementType',
97
+ type: {
98
+ name: 'Composite',
99
+ class_name: 'SubResource'
100
+ }
101
+ }
102
+ }
103
+ },
104
+ statuses: {
105
+ client_side_validation: true,
106
+ required: false,
107
+ read_only: true,
108
+ serialized_name: 'properties.statuses',
109
+ type: {
110
+ name: 'Sequence',
111
+ element: {
112
+ client_side_validation: true,
113
+ required: false,
114
+ serialized_name: 'InstanceViewStatusElementType',
115
+ type: {
116
+ name: 'Composite',
117
+ class_name: 'InstanceViewStatus'
118
+ }
119
+ }
120
+ }
121
+ },
122
+ sku: {
123
+ client_side_validation: true,
124
+ required: false,
125
+ serialized_name: 'sku',
126
+ type: {
127
+ name: 'Composite',
128
+ class_name: 'Sku'
129
+ }
130
+ }
131
+ }
132
+ }
133
+ }
134
+ end
135
+ end
136
+ end
137
+ end
@@ -0,0 +1,56 @@
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::V2017_12_01
7
+ module Models
8
+ #
9
+ # The List Compute Operation operation response.
10
+ #
11
+ class ComputeOperationListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<ComputeOperationValue>] The list of compute operations
16
+ attr_accessor :value
17
+
18
+
19
+ #
20
+ # Mapper for ComputeOperationListResult class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'ComputeOperationListResult',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'ComputeOperationListResult',
31
+ model_properties: {
32
+ value: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ read_only: true,
36
+ serialized_name: 'value',
37
+ type: {
38
+ name: 'Sequence',
39
+ element: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'ComputeOperationValueElementType',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'ComputeOperationValue'
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,108 @@
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::V2017_12_01
7
+ module Models
8
+ #
9
+ # Describes the properties of a Compute Operation value.
10
+ #
11
+ class ComputeOperationValue
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The origin of the compute operation.
16
+ attr_accessor :origin
17
+
18
+ # @return [String] The name of the compute operation.
19
+ attr_accessor :name
20
+
21
+ # @return [String] The display name of the compute operation.
22
+ attr_accessor :operation
23
+
24
+ # @return [String] The display name of the resource the operation applies
25
+ # to.
26
+ attr_accessor :resource
27
+
28
+ # @return [String] The description of the operation.
29
+ attr_accessor :description
30
+
31
+ # @return [String] The resource provider for the operation.
32
+ attr_accessor :provider
33
+
34
+
35
+ #
36
+ # Mapper for ComputeOperationValue class as Ruby Hash.
37
+ # This will be used for serialization/deserialization.
38
+ #
39
+ def self.mapper()
40
+ {
41
+ client_side_validation: true,
42
+ required: false,
43
+ serialized_name: 'ComputeOperationValue',
44
+ type: {
45
+ name: 'Composite',
46
+ class_name: 'ComputeOperationValue',
47
+ model_properties: {
48
+ origin: {
49
+ client_side_validation: true,
50
+ required: false,
51
+ read_only: true,
52
+ serialized_name: 'origin',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ name: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'name',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ operation: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ read_only: true,
70
+ serialized_name: 'display.operation',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ resource: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ read_only: true,
79
+ serialized_name: 'display.resource',
80
+ type: {
81
+ name: 'String'
82
+ }
83
+ },
84
+ description: {
85
+ client_side_validation: true,
86
+ required: false,
87
+ read_only: true,
88
+ serialized_name: 'display.description',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ },
93
+ provider: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ read_only: true,
97
+ serialized_name: 'display.provider',
98
+ type: {
99
+ name: 'String'
100
+ }
101
+ }
102
+ }
103
+ }
104
+ }
105
+ end
106
+ end
107
+ end
108
+ end
@@ -130,8 +130,7 @@ module Azure::Compute::Mgmt::V2017_12_01
130
130
  required: true,
131
131
  serialized_name: 'createOption',
132
132
  type: {
133
- name: 'Enum',
134
- module: 'DiskCreateOptionTypes'
133
+ name: 'String'
135
134
  }
136
135
  },
137
136
  disk_size_gb: {
@@ -19,30 +19,30 @@ module Azure::Compute::Mgmt::V2017_12_01
19
19
  # <br><br> The available VM sizes depend on region and availability set.
20
20
  # For a list of available sizes use these APIs: <br><br> [List all
21
21
  # available virtual machine sizes in an availability
22
- # set](virtualmachines-list-sizes-availability-set.md) <br><br> [List all
23
- # available virtual machine sizes in a
24
- # region](virtualmachines-list-sizes-region.md) <br><br> [List all
25
- # available virtual machine sizes for
26
- # resizing](virtualmachines-list-sizes-for-resizing.md). Possible values
27
- # include: 'Basic_A0', 'Basic_A1', 'Basic_A2', 'Basic_A3', 'Basic_A4',
28
- # 'Standard_A0', 'Standard_A1', 'Standard_A2', 'Standard_A3',
29
- # 'Standard_A4', 'Standard_A5', 'Standard_A6', 'Standard_A7',
30
- # 'Standard_A8', 'Standard_A9', 'Standard_A10', 'Standard_A11',
31
- # 'Standard_A1_v2', 'Standard_A2_v2', 'Standard_A4_v2', 'Standard_A8_v2',
32
- # 'Standard_A2m_v2', 'Standard_A4m_v2', 'Standard_A8m_v2',
33
- # 'Standard_B1s', 'Standard_B1ms', 'Standard_B2s', 'Standard_B2ms',
34
- # 'Standard_B4ms', 'Standard_B8ms', 'Standard_D1', 'Standard_D2',
35
- # 'Standard_D3', 'Standard_D4', 'Standard_D11', 'Standard_D12',
36
- # 'Standard_D13', 'Standard_D14', 'Standard_D1_v2', 'Standard_D2_v2',
37
- # 'Standard_D3_v2', 'Standard_D4_v2', 'Standard_D5_v2', 'Standard_D2_v3',
38
- # 'Standard_D4_v3', 'Standard_D8_v3', 'Standard_D16_v3',
39
- # 'Standard_D32_v3', 'Standard_D64_v3', 'Standard_D2s_v3',
40
- # 'Standard_D4s_v3', 'Standard_D8s_v3', 'Standard_D16s_v3',
41
- # 'Standard_D32s_v3', 'Standard_D64s_v3', 'Standard_D11_v2',
42
- # 'Standard_D12_v2', 'Standard_D13_v2', 'Standard_D14_v2',
43
- # 'Standard_D15_v2', 'Standard_DS1', 'Standard_DS2', 'Standard_DS3',
44
- # 'Standard_DS4', 'Standard_DS11', 'Standard_DS12', 'Standard_DS13',
45
- # 'Standard_DS14', 'Standard_DS1_v2', 'Standard_DS2_v2',
22
+ # set](https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes)
23
+ # <br><br> [List all available virtual machine sizes in a
24
+ # region](https://docs.microsoft.com/rest/api/compute/virtualmachinesizes/list)
25
+ # <br><br> [List all available virtual machine sizes for
26
+ # resizing](https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes).
27
+ # Possible values include: 'Basic_A0', 'Basic_A1', 'Basic_A2',
28
+ # 'Basic_A3', 'Basic_A4', 'Standard_A0', 'Standard_A1', 'Standard_A2',
29
+ # 'Standard_A3', 'Standard_A4', 'Standard_A5', 'Standard_A6',
30
+ # 'Standard_A7', 'Standard_A8', 'Standard_A9', 'Standard_A10',
31
+ # 'Standard_A11', 'Standard_A1_v2', 'Standard_A2_v2', 'Standard_A4_v2',
32
+ # 'Standard_A8_v2', 'Standard_A2m_v2', 'Standard_A4m_v2',
33
+ # 'Standard_A8m_v2', 'Standard_B1s', 'Standard_B1ms', 'Standard_B2s',
34
+ # 'Standard_B2ms', 'Standard_B4ms', 'Standard_B8ms', 'Standard_D1',
35
+ # 'Standard_D2', 'Standard_D3', 'Standard_D4', 'Standard_D11',
36
+ # 'Standard_D12', 'Standard_D13', 'Standard_D14', 'Standard_D1_v2',
37
+ # 'Standard_D2_v2', 'Standard_D3_v2', 'Standard_D4_v2', 'Standard_D5_v2',
38
+ # 'Standard_D2_v3', 'Standard_D4_v3', 'Standard_D8_v3',
39
+ # 'Standard_D16_v3', 'Standard_D32_v3', 'Standard_D64_v3',
40
+ # 'Standard_D2s_v3', 'Standard_D4s_v3', 'Standard_D8s_v3',
41
+ # 'Standard_D16s_v3', 'Standard_D32s_v3', 'Standard_D64s_v3',
42
+ # 'Standard_D11_v2', 'Standard_D12_v2', 'Standard_D13_v2',
43
+ # 'Standard_D14_v2', 'Standard_D15_v2', 'Standard_DS1', 'Standard_DS2',
44
+ # 'Standard_DS3', 'Standard_DS4', 'Standard_DS11', 'Standard_DS12',
45
+ # 'Standard_DS13', 'Standard_DS14', 'Standard_DS1_v2', 'Standard_DS2_v2',
46
46
  # 'Standard_DS3_v2', 'Standard_DS4_v2', 'Standard_DS5_v2',
47
47
  # 'Standard_DS11_v2', 'Standard_DS12_v2', 'Standard_DS13_v2',
48
48
  # 'Standard_DS14_v2', 'Standard_DS15_v2', 'Standard_DS13-4_v2',
@@ -113,8 +113,7 @@ module Azure::Compute::Mgmt::V2017_12_01
113
113
  required: false,
114
114
  serialized_name: 'storageAccountType',
115
115
  type: {
116
- name: 'Enum',
117
- module: 'StorageAccountTypes'
116
+ name: 'String'
118
117
  }
119
118
  }
120
119
  }
@@ -128,8 +128,7 @@ module Azure::Compute::Mgmt::V2017_12_01
128
128
  required: false,
129
129
  serialized_name: 'storageAccountType',
130
130
  type: {
131
- name: 'Enum',
132
- module: 'StorageAccountTypes'
131
+ name: 'String'
133
132
  }
134
133
  }
135
134
  }
@@ -24,6 +24,11 @@ module Azure::Compute::Mgmt::V2017_12_01
24
24
  # machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
25
25
  attr_accessor :data_disks
26
26
 
27
+ # @return [Boolean] Specifies whether an image is zone resilient or not.
28
+ # Default is false. Zone resilient images can be created only in regions
29
+ # that provide Zone Redundant Storage (ZRS).
30
+ attr_accessor :zone_resilient
31
+
27
32
 
28
33
  #
29
34
  # Mapper for ImageStorageProfile class as Ruby Hash.
@@ -40,7 +45,7 @@ module Azure::Compute::Mgmt::V2017_12_01
40
45
  model_properties: {
41
46
  os_disk: {
42
47
  client_side_validation: true,
43
- required: true,
48
+ required: false,
44
49
  serialized_name: 'osDisk',
45
50
  type: {
46
51
  name: 'Composite',
@@ -63,6 +68,14 @@ module Azure::Compute::Mgmt::V2017_12_01
63
68
  }
64
69
  }
65
70
  }
71
+ },
72
+ zone_resilient: {
73
+ client_side_validation: true,
74
+ required: false,
75
+ serialized_name: 'zoneResilient',
76
+ type: {
77
+ name: 'Boolean'
78
+ }
66
79
  }
67
80
  }
68
81
  }
@@ -0,0 +1,91 @@
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::V2017_12_01
7
+ module Models
8
+ #
9
+ # The source user image virtual hard disk. The virtual hard disk will be
10
+ # copied before being attached to the virtual machine. If SourceImage is
11
+ # provided, the destination virtual hard drive must not exist.
12
+ #
13
+ class ImageUpdate < UpdateResource
14
+
15
+ include MsRestAzure
16
+
17
+ # @return [SubResource] The source virtual machine from which Image is
18
+ # created.
19
+ attr_accessor :source_virtual_machine
20
+
21
+ # @return [ImageStorageProfile] Specifies the storage settings for the
22
+ # virtual machine disks.
23
+ attr_accessor :storage_profile
24
+
25
+ # @return [String] The provisioning state.
26
+ attr_accessor :provisioning_state
27
+
28
+
29
+ #
30
+ # Mapper for ImageUpdate class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ client_side_validation: true,
36
+ required: false,
37
+ serialized_name: 'ImageUpdate',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'ImageUpdate',
41
+ model_properties: {
42
+ tags: {
43
+ client_side_validation: true,
44
+ required: false,
45
+ serialized_name: 'tags',
46
+ type: {
47
+ name: 'Dictionary',
48
+ value: {
49
+ client_side_validation: true,
50
+ required: false,
51
+ serialized_name: 'StringElementType',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ }
56
+ }
57
+ },
58
+ source_virtual_machine: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ serialized_name: 'properties.sourceVirtualMachine',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'SubResource'
65
+ }
66
+ },
67
+ storage_profile: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ serialized_name: 'properties.storageProfile',
71
+ type: {
72
+ name: 'Composite',
73
+ class_name: 'ImageStorageProfile'
74
+ }
75
+ },
76
+ provisioning_state: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ read_only: true,
80
+ serialized_name: 'properties.provisioningState',
81
+ type: {
82
+ name: 'String'
83
+ }
84
+ }
85
+ }
86
+ }
87
+ }
88
+ end
89
+ end
90
+ end
91
+ end