File: compute_node_information.py

package info (click to toggle)
python-azure 20181112%2Bgit-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 407,300 kB
  • sloc: python: 717,190; makefile: 201; sh: 76
file content (52 lines) | stat: -rw-r--r-- 2,250 bytes parent folder | download
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
# 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 ComputeNodeInformation(Model):
    """Information about the compute node on which a task ran.

    :param affinity_id: An identifier for the compute node on which the task
     ran, which can be passed when adding a task to request that the task be
     scheduled on this compute node.
    :type affinity_id: str
    :param node_url: The URL of the node on which the task ran. .
    :type node_url: str
    :param pool_id: The ID of the pool on which the task ran.
    :type pool_id: str
    :param node_id: The ID of the node on which the task ran.
    :type node_id: str
    :param task_root_directory: The root directory of the task on the compute
     node.
    :type task_root_directory: str
    :param task_root_directory_url: The URL to the root directory of the task
     on the compute node.
    :type task_root_directory_url: str
    """

    _attribute_map = {
        'affinity_id': {'key': 'affinityId', 'type': 'str'},
        'node_url': {'key': 'nodeUrl', 'type': 'str'},
        'pool_id': {'key': 'poolId', 'type': 'str'},
        'node_id': {'key': 'nodeId', 'type': 'str'},
        'task_root_directory': {'key': 'taskRootDirectory', 'type': 'str'},
        'task_root_directory_url': {'key': 'taskRootDirectoryUrl', 'type': 'str'},
    }

    def __init__(self, **kwargs):
        super(ComputeNodeInformation, self).__init__(**kwargs)
        self.affinity_id = kwargs.get('affinity_id', None)
        self.node_url = kwargs.get('node_url', None)
        self.pool_id = kwargs.get('pool_id', None)
        self.node_id = kwargs.get('node_id', None)
        self.task_root_directory = kwargs.get('task_root_directory', None)
        self.task_root_directory_url = kwargs.get('task_root_directory_url', None)