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
|
# 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 NodeUpdateUserParameter(Model):
"""The set of changes to be made to a user account on a node.
:param password: The password of the account. The password is required for
Windows nodes (those created with 'cloudServiceConfiguration', or created
with 'virtualMachineConfiguration' using a Windows image reference). For
Linux compute nodes, the password can optionally be specified along with
the sshPublicKey property. If omitted, any existing password is removed.
:type password: str
:param expiry_time: The time at which the account should expire. If
omitted, the default is 1 day from the current time. For Linux compute
nodes, the expiryTime has a precision up to a day.
:type expiry_time: datetime
:param ssh_public_key: The SSH public key that can be used for remote
login to the compute node. The public key should be compatible with
OpenSSH encoding and should be base 64 encoded. This property can be
specified only for Linux nodes. If this is specified for a Windows node,
then the Batch service rejects the request; if you are calling the REST
API directly, the HTTP status code is 400 (Bad Request). If omitted, any
existing SSH public key is removed.
:type ssh_public_key: str
"""
_attribute_map = {
'password': {'key': 'password', 'type': 'str'},
'expiry_time': {'key': 'expiryTime', 'type': 'iso-8601'},
'ssh_public_key': {'key': 'sshPublicKey', 'type': 'str'},
}
def __init__(self, *, password: str=None, expiry_time=None, ssh_public_key: str=None, **kwargs) -> None:
super(NodeUpdateUserParameter, self).__init__(**kwargs)
self.password = password
self.expiry_time = expiry_time
self.ssh_public_key = ssh_public_key
|