Class: Azure::Batch::Mgmt::V2017_09_01::Models::VirtualMachineConfiguration
- Inherits:
-
Object
- Object
- Azure::Batch::Mgmt::V2017_09_01::Models::VirtualMachineConfiguration
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-09-01/generated/azure_mgmt_batch/models/virtual_machine_configuration.rb
Overview
The configuration for compute nodes in a pool based on the Azure Virtual Machines infrastructure.
Instance Attribute Summary collapse
-
#data_disks ⇒ Array<DataDisk>
the compute nodes in the pool.
-
#image_reference ⇒ ImageReference
Marketplace Image or the custom Virtual Machine Image to use.
-
#license_type ⇒ String
deploying the operating system.
-
#node_agent_sku_id ⇒ String
compute nodes in the pool.
-
#os_disk ⇒ OSDisk
Machine.
-
#windows_configuration ⇒ WindowsConfiguration
virtual machine.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for VirtualMachineConfiguration class as Ruby Hash.
Instance Attribute Details
#data_disks ⇒ Array<DataDisk>
the compute nodes in the pool. This property must be specified if the compute nodes in the pool need to have empty data disks attached to them.
45 46 47 |
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/virtual_machine_configuration.rb', line 45 def data_disks @data_disks end |
#image_reference ⇒ ImageReference
Marketplace Image or the custom Virtual Machine Image to use.
19 20 21 |
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/virtual_machine_configuration.rb', line 19 def image_reference @image_reference end |
#license_type ⇒ String
deploying the operating system. This only applies to images that contain the Windows operating system, and should only be used when you hold valid on-premises licenses for the nodes which will be deployed. If omitted, no on-premises licensing discount is applied. Values are:
Windows_Server - The on-premises license is for Windows Server. Windows_Client - The on-premises license is for Windows Client.
56 57 58 |
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/virtual_machine_configuration.rb', line 56 def license_type @license_type end |
#node_agent_sku_id ⇒ String
compute nodes in the pool. The Batch node agent is a program that runs on each node in the pool, and provides the command-and-control interface between the node and the Batch service. There are different implementations of the node agent, known as SKUs, for different operating systems. You must specify a node agent SKU which matches the selected image reference. To get the list of supported node agent SKUs along with their list of verified image references, see the ‘List supported node agent SKUs’ operation.
34 35 36 |
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/virtual_machine_configuration.rb', line 34 def node_agent_sku_id @node_agent_sku_id end |
#os_disk ⇒ OSDisk
Machine.
23 24 25 |
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/virtual_machine_configuration.rb', line 23 def os_disk @os_disk end |
#windows_configuration ⇒ WindowsConfiguration
virtual machine. This property must not be specified if the imageReference specifies a Linux OS image.
39 40 41 |
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/virtual_machine_configuration.rb', line 39 def windows_configuration @windows_configuration end |
Class Method Details
.mapper ⇒ Object
Mapper for VirtualMachineConfiguration class as Ruby Hash. This will be used for serialization/deserialization.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 |
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/virtual_machine_configuration.rb', line 63 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'VirtualMachineConfiguration', type: { name: 'Composite', class_name: 'VirtualMachineConfiguration', model_properties: { image_reference: { client_side_validation: true, required: true, serialized_name: 'imageReference', type: { name: 'Composite', class_name: 'ImageReference' } }, os_disk: { client_side_validation: true, required: false, serialized_name: 'osDisk', type: { name: 'Composite', class_name: 'OSDisk' } }, node_agent_sku_id: { client_side_validation: true, required: true, serialized_name: 'nodeAgentSkuId', type: { name: 'String' } }, windows_configuration: { client_side_validation: true, required: false, serialized_name: 'windowsConfiguration', type: { name: 'Composite', class_name: 'WindowsConfiguration' } }, data_disks: { client_side_validation: true, required: false, serialized_name: 'dataDisks', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'DataDiskElementType', type: { name: 'Composite', class_name: 'DataDisk' } } } }, license_type: { client_side_validation: true, required: false, serialized_name: 'licenseType', type: { name: 'String' } } } } } end |