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

class CifsOpenFileShareSchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the CifsOpenFileShare object"""

    mode = marshmallow_fields.Str(data_key="mode", allow_none=True)
    r""" The share mode used to open the file.
The share mode can be a combination of:
  - r: read mode
  - w: write mode
  - d: delete
  - rw: read and write modes
  - rwd: read, write, and delete modes


Valid choices:

* r
* w
* d
* rw
* rwd """

    name = marshmallow_fields.Str(data_key="name", allow_none=True)
    r""" CIFS share name where the file resides.

Example: share1 """

    @property
    def resource(self):
        return CifsOpenFileShare

    gettable_fields = [
        "mode",
        "name",
    ]
    """mode,name,"""

    patchable_fields = [
    ]
    """"""

    postable_fields = [
    ]
    """"""


class CifsOpenFileShare(Resource):

    _schema = CifsOpenFileShareSchema
