Class: Azure::Batch::Mgmt::V2018_12_01::Models::VirtualMachineConfiguration

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-12-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

#container_configurationContainerConfiguration

pool. If specified, setup is performed on each node in the pool to allow tasks to run in containers. All regular tasks and job manager tasks run on this pool must specify the containerSettings property, and all other tasks may specify it.

Returns:



59
60
61
# File 'lib/2018-12-01/generated/azure_mgmt_batch/models/virtual_machine_configuration.rb', line 59

def container_configuration
  @container_configuration
end

#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



41
42
43
# File 'lib/2018-12-01/generated/azure_mgmt_batch/models/virtual_machine_configuration.rb', line 41

def data_disks
  @data_disks
end

#image_referenceImageReference

Marketplace Image or the custom Virtual Machine Image to use.

Returns:



19
20
21
# File 'lib/2018-12-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



52
53
54
# File 'lib/2018-12-01/generated/azure_mgmt_batch/models/virtual_machine_configuration.rb', line 52

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



30
31
32
# File 'lib/2018-12-01/generated/azure_mgmt_batch/models/virtual_machine_configuration.rb', line 30

def node_agent_sku_id
  @node_agent_sku_id
end

#windows_configurationWindowsConfiguration

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

Returns:



35
36
37
# File 'lib/2018-12-01/generated/azure_mgmt_batch/models/virtual_machine_configuration.rb', line 35

def windows_configuration
  @windows_configuration
end

Class Method Details

.mapperObject

Mapper for VirtualMachineConfiguration class as Ruby Hash. This will be used for serialization/deserialization.



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
136
137
138
# File 'lib/2018-12-01/generated/azure_mgmt_batch/models/virtual_machine_configuration.rb', line 66

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'
          }
        },
        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'
          }
        },
        container_configuration: {
          client_side_validation: true,
          required: false,
          serialized_name: 'containerConfiguration',
          type: {
            name: 'Composite',
            class_name: 'ContainerConfiguration'
          }
        }
      }
    }
  }
end