Source code for azure.mgmt.edgegateway.models.storage_account_credential_py3

# 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 .arm_base_model_py3 import ARMBaseModel


[docs]class StorageAccountCredential(ARMBaseModel): """The storage account credential. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. :ivar id: The path ID that uniquely identifies the object. :vartype id: str :ivar name: The object name. :vartype name: str :ivar type: The hierarchical type of the object. :vartype type: str :param alias: Required. Alias for the storage account. :type alias: str :param user_name: Username for the storage account. :type user_name: str :param account_key: Encrypted storage key. :type account_key: ~azure.mgmt.edgegateway.models.AsymmetricEncryptedSecret :param connection_string: Connection string for the storage account. Use this string if username and account key are not specified. :type connection_string: str :param ssl_status: Required. Signifies whether SSL needs to be enabled or not. Possible values include: 'Enabled', 'Disabled' :type ssl_status: str or ~azure.mgmt.edgegateway.models.SSLStatus :param blob_domain_name: Blob end point for private clouds. :type blob_domain_name: str :param account_type: Required. Type of storage accessed on the storage account. Possible values include: 'GeneralPurposeStorage', 'BlobStorage' :type account_type: str or ~azure.mgmt.edgegateway.models.AccountType """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, 'alias': {'required': True}, 'ssl_status': {'required': True}, 'account_type': {'required': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'alias': {'key': 'properties.alias', 'type': 'str'}, 'user_name': {'key': 'properties.userName', 'type': 'str'}, 'account_key': {'key': 'properties.accountKey', 'type': 'AsymmetricEncryptedSecret'}, 'connection_string': {'key': 'properties.connectionString', 'type': 'str'}, 'ssl_status': {'key': 'properties.sslStatus', 'type': 'str'}, 'blob_domain_name': {'key': 'properties.blobDomainName', 'type': 'str'}, 'account_type': {'key': 'properties.accountType', 'type': 'str'}, } def __init__(self, *, alias: str, ssl_status, account_type, user_name: str=None, account_key=None, connection_string: str=None, blob_domain_name: str=None, **kwargs) -> None: super(StorageAccountCredential, self).__init__(**kwargs) self.alias = alias self.user_name = user_name self.account_key = account_key self.connection_string = connection_string self.ssl_status = ssl_status self.blob_domain_name = blob_domain_name self.account_type = account_type