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

class ConsistencyGroupApplicationSchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the ConsistencyGroupApplication object"""

    component_type = marshmallow_fields.Str(data_key="component_type", allow_none=True)
    r""" Nested consistency group tag.

Valid choices:

* data
* logs
* other """

    type = marshmallow_fields.Str(data_key="type", allow_none=True)
    r""" Top level consistency group tag.

Valid choices:

* oracle
* other
* exchange
* sql_server
* sap_hana
* vmware
* mongodb
* db2
* mysql
* sap_maxdb
* postgresql
* sap_ase_sybase """

    @property
    def resource(self):
        return ConsistencyGroupApplication

    gettable_fields = [
        "component_type",
        "type",
    ]
    """component_type,type,"""

    patchable_fields = [
        "component_type",
        "type",
    ]
    """component_type,type,"""

    postable_fields = [
        "component_type",
        "type",
    ]
    """component_type,type,"""


class ConsistencyGroupApplication(Resource):

    _schema = ConsistencyGroupApplicationSchema
