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
|
# 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 ComputeNodeUser(Model):
"""An user account on a compute node.
:param name: The user name of the account.
:type name: str
:param is_admin: Whether the account should be an administrator on the
compute node.
:type is_admin: bool
:param expiry_time: The time at which the account should expire. If
omitted, the default is 1 day from the current time.
:type expiry_time: datetime
:param password: The password of the account.
:type password: str
:param ssh_public_key: The SSH public key that can be used for remote
login to the compute node.
:type ssh_public_key: str
"""
_validation = {
'name': {'required': True},
}
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'is_admin': {'key': 'isAdmin', 'type': 'bool'},
'expiry_time': {'key': 'expiryTime', 'type': 'iso-8601'},
'password': {'key': 'password', 'type': 'str'},
'ssh_public_key': {'key': 'sshPublicKey', 'type': 'str'},
}
def __init__(self, name, is_admin=None, expiry_time=None, password=None, ssh_public_key=None):
self.name = name
self.is_admin = is_admin
self.expiry_time = expiry_time
self.password = password
self.ssh_public_key = ssh_public_key
|