HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/mysqlsh/lib/python3.8/site-packages/oci/sch/models/plugin_source_details_response.py
# coding: utf-8
# Copyright (c) 2016, 2025, Oracle and/or its affiliates.  All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.

# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200909

from .source_details_response import SourceDetailsResponse
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel  # noqa: F401
from oci.decorators import init_model_state_from_kwargs


@init_model_state_from_kwargs
class PluginSourceDetailsResponse(SourceDetailsResponse):
    """
    Details about a connector plugin used to fetch data from a source.
    For configuration instructions, see
    `Creating a Connector`__.

    __ https://docs.cloud.oracle.com/iaas/Content/connector-hub/create-service-connector.htm
    """

    def __init__(self, **kwargs):
        """
        Initializes a new PluginSourceDetailsResponse object with values from keyword arguments. The default value of the :py:attr:`~oci.sch.models.PluginSourceDetailsResponse.kind` attribute
        of this class is ``plugin`` and it should not be changed.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param private_endpoint_metadata:
            The value to assign to the private_endpoint_metadata property of this PluginSourceDetailsResponse.
        :type private_endpoint_metadata: oci.sch.models.PrivateEndpointMetadata

        :param kind:
            The value to assign to the kind property of this PluginSourceDetailsResponse.
            Allowed values for this property are: "logging", "monitoring", "streaming", "plugin"
        :type kind: str

        :param plugin_name:
            The value to assign to the plugin_name property of this PluginSourceDetailsResponse.
        :type plugin_name: str

        :param config_map:
            The value to assign to the config_map property of this PluginSourceDetailsResponse.
        :type config_map: object

        """
        self.swagger_types = {
            'private_endpoint_metadata': 'PrivateEndpointMetadata',
            'kind': 'str',
            'plugin_name': 'str',
            'config_map': 'object'
        }
        self.attribute_map = {
            'private_endpoint_metadata': 'privateEndpointMetadata',
            'kind': 'kind',
            'plugin_name': 'pluginName',
            'config_map': 'configMap'
        }
        self._private_endpoint_metadata = None
        self._kind = None
        self._plugin_name = None
        self._config_map = None
        self._kind = 'plugin'

    @property
    def plugin_name(self):
        """
        **[Required]** Gets the plugin_name of this PluginSourceDetailsResponse.
        The name of the connector plugin. This name indicates the service to be called by the connector plugin. For example, `QueueSource` indicates the Queue service.
        To find names of connector plugins, list the plugin using :func:`list_connector_plugins`.


        :return: The plugin_name of this PluginSourceDetailsResponse.
        :rtype: str
        """
        return self._plugin_name

    @plugin_name.setter
    def plugin_name(self, plugin_name):
        """
        Sets the plugin_name of this PluginSourceDetailsResponse.
        The name of the connector plugin. This name indicates the service to be called by the connector plugin. For example, `QueueSource` indicates the Queue service.
        To find names of connector plugins, list the plugin using :func:`list_connector_plugins`.


        :param plugin_name: The plugin_name of this PluginSourceDetailsResponse.
        :type: str
        """
        self._plugin_name = plugin_name

    @property
    def config_map(self):
        """
        **[Required]** Gets the config_map of this PluginSourceDetailsResponse.
        The configuration map for the connector plugin. This map includes parameters specific to the connector plugin type.
        For example, for `QueueSource`, the map lists the OCID of the selected queue.
        To find the parameters for a connector plugin, get the plugin using :func:`get_connector_plugin` and review its schema value.


        :return: The config_map of this PluginSourceDetailsResponse.
        :rtype: object
        """
        return self._config_map

    @config_map.setter
    def config_map(self, config_map):
        """
        Sets the config_map of this PluginSourceDetailsResponse.
        The configuration map for the connector plugin. This map includes parameters specific to the connector plugin type.
        For example, for `QueueSource`, the map lists the OCID of the selected queue.
        To find the parameters for a connector plugin, get the plugin using :func:`get_connector_plugin` and review its schema value.


        :param config_map: The config_map of this PluginSourceDetailsResponse.
        :type: object
        """
        self._config_map = config_map

    def __repr__(self):
        return formatted_flat_dict(self)

    def __eq__(self, other):
        if other is None:
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        return not self == other