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
|
# 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 CertificateReference(Model):
"""A reference to a certificate to be installed on compute nodes in a pool.
All required parameters must be populated in order to send to Azure.
:param thumbprint: Required. The thumbprint of the certificate.
:type thumbprint: str
:param thumbprint_algorithm: Required. The algorithm with which the
thumbprint is associated. This must be sha1.
:type thumbprint_algorithm: str
:param store_location: The location of the certificate store on the
compute node into which to install the certificate. The default value is
currentuser. This property is applicable only for pools configured with
Windows nodes (that is, created with cloudServiceConfiguration, or with
virtualMachineConfiguration using a Windows image reference). For Linux
compute nodes, the certificates are stored in a directory inside the task
working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is
supplied to the task to query for this location. For certificates with
visibility of 'remoteUser', a 'certs' directory is created in the user's
home directory (e.g., /home/{user-name}/certs) and certificates are placed
in that directory. Possible values include: 'currentUser', 'localMachine'
:type store_location: str or ~azure.batch.models.CertificateStoreLocation
:param store_name: The name of the certificate store on the compute node
into which to install the certificate. This property is applicable only
for pools configured with Windows nodes (that is, created with
cloudServiceConfiguration, or with virtualMachineConfiguration using a
Windows image reference). Common store names include: My, Root, CA, Trust,
Disallowed, TrustedPeople, TrustedPublisher, AuthRoot, AddressBook, but
any custom store name can also be used. The default value is My.
:type store_name: str
:param visibility: Which user accounts on the compute node should have
access to the private data of the certificate. You can specify more than
one visibility in this collection. The default is all accounts.
:type visibility: list[str or ~azure.batch.models.CertificateVisibility]
"""
_validation = {
'thumbprint': {'required': True},
'thumbprint_algorithm': {'required': True},
}
_attribute_map = {
'thumbprint': {'key': 'thumbprint', 'type': 'str'},
'thumbprint_algorithm': {'key': 'thumbprintAlgorithm', 'type': 'str'},
'store_location': {'key': 'storeLocation', 'type': 'CertificateStoreLocation'},
'store_name': {'key': 'storeName', 'type': 'str'},
'visibility': {'key': 'visibility', 'type': '[CertificateVisibility]'},
}
def __init__(self, *, thumbprint: str, thumbprint_algorithm: str, store_location=None, store_name: str=None, visibility=None, **kwargs) -> None:
super(CertificateReference, self).__init__(**kwargs)
self.thumbprint = thumbprint
self.thumbprint_algorithm = thumbprint_algorithm
self.store_location = store_location
self.store_name = store_name
self.visibility = visibility
|