# pylint: disable=trailing-newlines
# pylint: disable=line-too-long
# pylint: disable=too-many-lines
# pylint: disable=unused-import
# pylint: disable=invalid-name

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


"""

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


__all__ = ["IscsiCredentialsChapInbound", "IscsiCredentialsChapInboundSchema"]
__pdoc__ = {
    "IscsiCredentialsChapInboundSchema.resource": False,
    "IscsiCredentialsChapInbound": False,
}


class IscsiCredentialsChapInboundSchema(ResourceSchema):
    """The fields of the IscsiCredentialsChapInbound object"""

    password = fields.Str(data_key="password")
    r""" The inbound CHAP password. Write-only; optional in POST and PATCH. """

    user = fields.Str(data_key="user")
    r""" The inbound CHAP user name. Optional in POST and PATCH. """

    @property
    def resource(self):
        return IscsiCredentialsChapInbound

    @property
    def patchable_fields(self):
        return [
            "password",
            "user",
        ]

    @property
    def postable_fields(self):
        return [
            "password",
            "user",
        ]


class IscsiCredentialsChapInbound(Resource):  # pylint: disable=missing-docstring

    _schema = IscsiCredentialsChapInboundSchema
