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

class CifsOpenFileConnectionSchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the CifsOpenFileConnection object"""

    count = Size(data_key="count", allow_none=True)
    r""" The number of CIFS connections associated with the CIFS session.

Example: 3 """

    identifier = Size(data_key="identifier", allow_none=True)
    r""" The connection that is used to open the file.

Example: 356756 """

    @property
    def resource(self):
        return CifsOpenFileConnection

    gettable_fields = [
        "count",
        "identifier",
    ]
    """count,identifier,"""

    patchable_fields = [
        "identifier",
    ]
    """identifier,"""

    postable_fields = [
        "identifier",
    ]
    """identifier,"""


class CifsOpenFileConnection(Resource):

    _schema = CifsOpenFileConnectionSchema
