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

This file has been automatically generated based on the ONTAP REST API documentation.

"""
from marshmallow import EXCLUDE, fields as marshmallow_fields  # type: ignore
from netapp_ontap.resource import Resource, ResourceSchema, ResourceSchemaMeta, ImpreciseDateTime, Size, lazy_import_schema


__all__ = ["NvmeSubsystemControllerDhHmacChap", "NvmeSubsystemControllerDhHmacChapSchema"]
__pdoc__ = {
    "NvmeSubsystemControllerDhHmacChapSchema.resource": False,
    "NvmeSubsystemControllerDhHmacChapSchema.opts": False,
    "NvmeSubsystemControllerDhHmacChap": False,
}

class NvmeSubsystemControllerDhHmacChapSchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the NvmeSubsystemControllerDhHmacChap object"""

    group_size = marshmallow_fields.Str(data_key="group_size", allow_none=True)
    r""" The Diffie-Hellman group size used for NVMe in-band authentication. This property is populated only when NVMe in-band authentication was performed for the NVMe-oF transport connection.


Valid choices:

* none
* 2048_bit
* 3072_bit
* 4096_bit
* 6144_bit
* 8192_bit """

    hash_function = marshmallow_fields.Str(data_key="hash_function", allow_none=True)
    r""" The hash function used for NVMe in-band authentication. This property is populated only when NVMe in-band authentication was performed for the NVMe-oF transport connection.


Valid choices:

* sha_256
* sha_512 """

    mode = marshmallow_fields.Str(data_key="mode", allow_none=True)
    r""" The NVMe in-band authentication mode used for the host connection. When set to:
- none: Neither the host nor controller was authenticated.
- unidirectional: The controller authenticated the host.
- bidirectional: The controller authenticated the host and the host authenticated the controller.


Valid choices:

* none
* unidirectional
* bidirectional """

    @property
    def resource(self):
        return NvmeSubsystemControllerDhHmacChap

    gettable_fields = [
        "group_size",
        "hash_function",
        "mode",
    ]
    """group_size,hash_function,mode,"""

    patchable_fields = [
    ]
    """"""

    postable_fields = [
    ]
    """"""


class NvmeSubsystemControllerDhHmacChap(Resource):

    _schema = NvmeSubsystemControllerDhHmacChapSchema
