# 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__ = ["VsiOnSanNewIgroups", "VsiOnSanNewIgroupsSchema"]
__pdoc__ = {
    "VsiOnSanNewIgroupsSchema.resource": False,
    "VsiOnSanNewIgroups": False,
}


class VsiOnSanNewIgroupsSchema(ResourceSchema):
    """The fields of the VsiOnSanNewIgroups object"""

    initiators = fields.List(fields.Str, data_key="initiators")
    r""" The initiators field of the vsi_on_san_new_igroups. """

    name = fields.Str(data_key="name")
    r""" The name of the new initiator group. """

    protocol = fields.Str(data_key="protocol")
    r""" The protocol of the new initiator group.

Valid choices:

* fcp
* iscsi
* mixed """

    @property
    def resource(self):
        return VsiOnSanNewIgroups

    @property
    def patchable_fields(self):
        return [
            "initiators",
            "name",
            "protocol",
        ]

    @property
    def postable_fields(self):
        return [
            "initiators",
            "name",
            "protocol",
        ]


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

    _schema = VsiOnSanNewIgroupsSchema
