-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Expand file tree
/
Copy pathnode_setup_py3.py
More file actions
45 lines (39 loc) · 2.06 KB
/
node_setup_py3.py
File metadata and controls
45 lines (39 loc) · 2.06 KB
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
# 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 NodeSetup(Model):
"""Node setup settings.
:param setup_task: Setup task. Setup task to run on cluster nodes when
nodes got created or rebooted. The setup task code needs to be idempotent.
Generally the setup task is used to download static data that is required
for all jobs that run on the cluster VMs and/or to download/install
software.
:type setup_task: ~azure.mgmt.batchai.models.SetupTask
:param mount_volumes: Mount volumes. Mount volumes to be available to
setup task and all jobs executing on the cluster. The volumes will be
mounted at location specified by $AZ_BATCHAI_MOUNT_ROOT environment
variable.
:type mount_volumes: ~azure.mgmt.batchai.models.MountVolumes
:param performance_counters_settings: Performance counters settings.
Settings for performance counters collecting and uploading.
:type performance_counters_settings:
~azure.mgmt.batchai.models.PerformanceCountersSettings
"""
_attribute_map = {
'setup_task': {'key': 'setupTask', 'type': 'SetupTask'},
'mount_volumes': {'key': 'mountVolumes', 'type': 'MountVolumes'},
'performance_counters_settings': {'key': 'performanceCountersSettings', 'type': 'PerformanceCountersSettings'},
}
def __init__(self, *, setup_task=None, mount_volumes=None, performance_counters_settings=None, **kwargs) -> None:
super(NodeSetup, self).__init__(**kwargs)
self.setup_task = setup_task
self.mount_volumes = mount_volumes
self.performance_counters_settings = performance_counters_settings