r"""
Copyright &copy; 2020 NetApp Inc.
All rights reserved.


"""

from marshmallow import EXCLUDE, fields  # type: ignore
from netapp_ontap.resource import Resource, ResourceSchema, ImpreciseDateTime, Size


__all__ = ["AzureKeyVaultConnectivity", "AzureKeyVaultConnectivitySchema"]
__pdoc__ = {
    "AzureKeyVaultConnectivitySchema.resource": False,
    "AzureKeyVaultConnectivity": False,
}


class AzureKeyVaultConnectivitySchema(ResourceSchema):
    """The fields of the AzureKeyVaultConnectivity object"""

    code = Size(data_key="code")
    r""" Code corresponding to the status message. Returns a 0 if AKV service is reachable from all nodes in the cluster.

Example: 346758 """

    message = fields.Str(data_key="message")
    r""" Error message set when reachability is false.

Example: AKV service is not reachable from all nodes - reason. """

    reachable = fields.Boolean(data_key="reachable")
    r""" Set to true when the AKV service is reachable from all nodes of the cluster. """

    @property
    def resource(self):
        return AzureKeyVaultConnectivity

    gettable_fields = [
        "code",
        "message",
        "reachable",
    ]
    """code,message,reachable,"""

    patchable_fields = [
    ]
    """"""

    postable_fields = [
    ]
    """"""


class AzureKeyVaultConnectivity(Resource):

    _schema = AzureKeyVaultConnectivitySchema
