Class: Azure::Batch::Mgmt::V2017_09_01::Models::VirtualMachineConfiguration

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Attribute Details

#data_disksArray<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.

Returns:

  • (Array<DataDisk>)

    The configuration for data disks attached to



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_referenceImageReference

Marketplace Image or the custom Virtual Machine Image to use.

Returns:



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_typeString

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.

Returns:

  • (String)

    The type of on-premises license to be used when



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_idString

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.

Returns:

  • (String)

    The SKU of the Batch node agent to be provisioned on



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_diskOSDisk

Machine.

Returns:

  • (OSDisk)

    Settings for the operating system disk of the Virtual



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_configurationWindowsConfiguration

virtual machine. This property must not be specified if the imageReference specifies a Linux OS image.

Returns:



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

.mapperObject

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