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

class GcpConnectivitySchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the GcpConnectivity object"""

    code = marshmallow_fields.Str(data_key="code", allow_none=True)
    r""" Code corresponding to the error message. Returns a 0 if Google Cloud KMS is reachable from all nodes in the cluster.

Example: 346758 """

    message = marshmallow_fields.Str(data_key="message", allow_none=True)
    r""" Set to the error message when 'reachable' is false.

Example: Google Cloud KMS is not reachable from all nodes - <reason>. """

    reachable = marshmallow_fields.Boolean(data_key="reachable", allow_none=True)
    r""" Set to true if the Google Cloud KMS is reachable from all nodes of the cluster. """

    @property
    def resource(self):
        return GcpConnectivity

    gettable_fields = [
        "code",
        "message",
        "reachable",
    ]
    """code,message,reachable,"""

    patchable_fields = [
    ]
    """"""

    postable_fields = [
    ]
    """"""


class GcpConnectivity(Resource):

    _schema = GcpConnectivitySchema
