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__ = ["GroupPolicyObjectKerberos", "GroupPolicyObjectKerberosSchema"]
__pdoc__ = {
    "GroupPolicyObjectKerberosSchema.resource": False,
    "GroupPolicyObjectKerberosSchema.opts": False,
    "GroupPolicyObjectKerberos": False,
}

class GroupPolicyObjectKerberosSchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the GroupPolicyObjectKerberos object"""

    max_clock_skew = marshmallow_fields.Str(data_key="max_clock_skew", allow_none=True)
    r""" Kerberos clock skew in ISO-8601 format.

Example: P15M """

    max_renew_age = marshmallow_fields.Str(data_key="max_renew_age", allow_none=True)
    r""" Kerberos max renew age in ISO-8601 format.

Example: P2D """

    max_ticket_age = marshmallow_fields.Str(data_key="max_ticket_age", allow_none=True)
    r""" Kerberos max ticket age in ISO-8601 format.

Example: P24H """

    @property
    def resource(self):
        return GroupPolicyObjectKerberos

    gettable_fields = [
        "max_clock_skew",
        "max_renew_age",
        "max_ticket_age",
    ]
    """max_clock_skew,max_renew_age,max_ticket_age,"""

    patchable_fields = [
        "max_clock_skew",
        "max_renew_age",
        "max_ticket_age",
    ]
    """max_clock_skew,max_renew_age,max_ticket_age,"""

    postable_fields = [
        "max_clock_skew",
        "max_renew_age",
        "max_ticket_age",
    ]
    """max_clock_skew,max_renew_age,max_ticket_age,"""


class GroupPolicyObjectKerberos(Resource):

    _schema = GroupPolicyObjectKerberosSchema
