def __init__()

in curator/actions/alias.py [0:0]


    def __init__(self, name=None, extra_settings=None, **kwargs):
        """
        :param name: The alias name
        :param extra_settings: Extra settings, including filters and routing.
            For more information see `here
            </https://www.elastic.co/guide/en/elasticsearch/reference/8.6/indices-aliases.html>`_.

        :type name: str
        :type extra_settings: dict
        """
        if extra_settings is None:
            extra_settings = {}
        if not name:
            raise MissingArgument('No value for "name" provided.')
        #: The :py:func:`~.curator.helpers.date_ops.parse_date_pattern` rendered
        #: version of what was passed by param ``name``.
        self.name = parse_date_pattern(name)
        #: The list of actions to perform.  Populated by
        #: :py:meth:`~.curator.actions.Alias.add` and
        #: :py:meth:`~.curator.actions.Alias.remove`
        self.actions = []
        #: The :py:class:`~.elasticsearch.Elasticsearch` client object which will
        #: later be set by :py:meth:`~.curator.actions.Alias.add` or
        #: :py:meth:`~.curator.actions.Alias.remove`
        self.client = None
        #: Any extra things to add to the alias, like filters, or routing. Gets
        #: the value from param ``extra_settings``.
        self.extra_settings = extra_settings
        self.loggit = logging.getLogger('curator.actions.alias')
        #: Preset default value to ``False``.
        self.warn_if_no_indices = False