1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterCreateParameters(Model):
"""Parameters supplied to the Create operation.
All required parameters must be populated in order to send to Azure.
:param vm_size: Required. The size of the virtual machines in the cluster.
All 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).
:type vm_size: str
:param vm_priority: dedicated or lowpriority. Default is dedicated.
Possible values include: 'dedicated', 'lowpriority'. Default value:
"dedicated" .
:type vm_priority: str or ~azure.mgmt.batchai.models.VmPriority
:param scale_settings: Desired scale for the cluster.
:type scale_settings: ~azure.mgmt.batchai.models.ScaleSettings
:param virtual_machine_configuration: Settings for OS image and mounted
data volumes.
:type virtual_machine_configuration:
~azure.mgmt.batchai.models.VirtualMachineConfiguration
:param node_setup: Setup to be done on all compute nodes in the cluster.
:type node_setup: ~azure.mgmt.batchai.models.NodeSetup
:param user_account_settings: Required. Settings for user account that
will be created on all compute nodes of the cluster.
:type user_account_settings:
~azure.mgmt.batchai.models.UserAccountSettings
:param subnet: Specifies the identifier of the subnet. .
:type subnet: ~azure.mgmt.batchai.models.ResourceId
"""
_validation = {
'vm_size': {'required': True},
'user_account_settings': {'required': True},
}
_attribute_map = {
'vm_size': {'key': 'properties.vmSize', 'type': 'str'},
'vm_priority': {'key': 'properties.vmPriority', 'type': 'VmPriority'},
'scale_settings': {'key': 'properties.scaleSettings', 'type': 'ScaleSettings'},
'virtual_machine_configuration': {'key': 'properties.virtualMachineConfiguration', 'type': 'VirtualMachineConfiguration'},
'node_setup': {'key': 'properties.nodeSetup', 'type': 'NodeSetup'},
'user_account_settings': {'key': 'properties.userAccountSettings', 'type': 'UserAccountSettings'},
'subnet': {'key': 'properties.subnet', 'type': 'ResourceId'},
}
def __init__(self, **kwargs):
super(ClusterCreateParameters, self).__init__(**kwargs)
self.vm_size = kwargs.get('vm_size', None)
self.vm_priority = kwargs.get('vm_priority', "dedicated")
self.scale_settings = kwargs.get('scale_settings', None)
self.virtual_machine_configuration = kwargs.get('virtual_machine_configuration', None)
self.node_setup = kwargs.get('node_setup', None)
self.user_account_settings = kwargs.get('user_account_settings', None)
self.subnet = kwargs.get('subnet', None)
|