Class: Azure::BatchAI::Mgmt::V2018_03_01::Models::ClusterCreateParameters

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-03-01/generated/azure_mgmt_batchai/models/cluster_create_parameters.rb

Overview

Parameters supplied to the Create operation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#locationString

Returns The region in which to create the cluster.

Returns:

  • (String)

    The region in which to create the cluster.



16
17
18
# File 'lib/2018-03-01/generated/azure_mgmt_batchai/models/cluster_create_parameters.rb', line 16

def location
  @location
end

#node_setupNodeSetup

cluster.

Returns:

  • (NodeSetup)

    Setup to be done on all compute nodes in the



45
46
47
# File 'lib/2018-03-01/generated/azure_mgmt_batchai/models/cluster_create_parameters.rb', line 45

def node_setup
  @node_setup
end

#scale_settingsScaleSettings

Returns Desired scale for the cluster.

Returns:



37
38
39
# File 'lib/2018-03-01/generated/azure_mgmt_batchai/models/cluster_create_parameters.rb', line 37

def scale_settings
  @scale_settings
end

#subnetResourceId

Returns Specifies the identifier of the subnet. .

Returns:

  • (ResourceId)

    Specifies the identifier of the subnet. .



52
53
54
# File 'lib/2018-03-01/generated/azure_mgmt_batchai/models/cluster_create_parameters.rb', line 52

def subnet
  @subnet
end

#tagsHash{String => String}

with the Cluster.

Returns:

  • (Hash{String => String})

    The user specified tags associated



20
21
22
# File 'lib/2018-03-01/generated/azure_mgmt_batchai/models/cluster_create_parameters.rb', line 20

def tags
  @tags
end

#user_account_settingsUserAccountSettings

created on all compute nodes of the cluster.

Returns:



49
50
51
# File 'lib/2018-03-01/generated/azure_mgmt_batchai/models/cluster_create_parameters.rb', line 49

def 
  @user_account_settings
end

#virtual_machine_configurationVirtualMachineConfiguration

data volumes.

Returns:



41
42
43
# File 'lib/2018-03-01/generated/azure_mgmt_batchai/models/cluster_create_parameters.rb', line 41

def virtual_machine_configuration
  @virtual_machine_configuration
end

#vm_priorityVmPriority

Possible values include: ‘dedicated’, ‘lowpriority’. Default value: ‘dedicated’ .

Returns:

  • (VmPriority)

    dedicated or lowpriority. Default is dedicated.



34
35
36
# File 'lib/2018-03-01/generated/azure_mgmt_batchai/models/cluster_create_parameters.rb', line 34

def vm_priority
  @vm_priority
end

#vm_sizeString

virtual machines in a cluster are the same size. For information about available VM sizes for clusters using images from the Virtual Machines Marketplace (see Sizes for Virtual Machines (Linux) or Sizes for Virtual Machines (Windows). Batch AI service supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series).

Returns:

  • (String)

    The size of the virtual machines in the cluster. All



29
30
31
# File 'lib/2018-03-01/generated/azure_mgmt_batchai/models/cluster_create_parameters.rb', line 29

def vm_size
  @vm_size
end

Class Method Details

.mapperObject

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



59
60
61
62
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# File 'lib/2018-03-01/generated/azure_mgmt_batchai/models/cluster_create_parameters.rb', line 59

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ClusterCreateParameters',
    type: {
      name: 'Composite',
      class_name: 'ClusterCreateParameters',
      model_properties: {
        location: {
          client_side_validation: true,
          required: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        vm_size: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.vmSize',
          type: {
            name: 'String'
          }
        },
        vm_priority: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.vmPriority',
          default_value: 'dedicated',
          type: {
            name: 'Enum',
            module: 'VmPriority'
          }
        },
        scale_settings: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.scaleSettings',
          type: {
            name: 'Composite',
            class_name: 'ScaleSettings'
          }
        },
        virtual_machine_configuration: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.virtualMachineConfiguration',
          type: {
            name: 'Composite',
            class_name: 'VirtualMachineConfiguration'
          }
        },
        node_setup: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.nodeSetup',
          type: {
            name: 'Composite',
            class_name: 'NodeSetup'
          }
        },
        user_account_settings: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.userAccountSettings',
          type: {
            name: 'Composite',
            class_name: 'UserAccountSettings'
          }
        },
        subnet: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.subnet',
          type: {
            name: 'Composite',
            class_name: 'ResourceId'
          }
        }
      }
    }
  }
end