# 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 AzureFileVolume(Model):
    """The properties of the Azure File volume. Azure File shares are mounted as
    volumes.

    :param share_name: The name of the Azure File share to be mounted as a
     volume.
    :type share_name: str
    :param read_only: The flag indicating whether the Azure File shared
     mounted as a volume is read-only.
    :type read_only: bool
    :param storage_account_name: The name of the storage account that contains
     the Azure File share.
    :type storage_account_name: str
    :param storage_account_key: The storage account access key used to access
     the Azure File share.
    :type storage_account_key: str
    """

    _validation = {
        'share_name': {'required': True},
        'storage_account_name': {'required': True},
    }

    _attribute_map = {
        'share_name': {'key': 'shareName', 'type': 'str'},
        'read_only': {'key': 'readOnly', 'type': 'bool'},
        'storage_account_name': {'key': 'storageAccountName', 'type': 'str'},
        'storage_account_key': {'key': 'storageAccountKey', 'type': 'str'},
    }

    def __init__(self, share_name, storage_account_name, read_only=None, storage_account_key=None):
        self.share_name = share_name
        self.read_only = read_only
        self.storage_account_name = storage_account_name
        self.storage_account_key = storage_account_key
