#
# -*- coding: utf-8 -*-
# Copyright 2025 Dell Inc. or its subsidiaries. All Rights Reserved.
# GNU General Public License v3.0+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)

"""
The arg spec for the sonic_qos_buffer module
"""
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type


class Qos_bufferArgs(object):  # pylint: disable=R0903
    """The arg spec for the sonic_qos_buffer module
    """

    def __init__(self, **kwargs):
        pass

    argument_spec = {
        'config': {
            'options': {
                'buffer_init': {'type': 'bool'},
                'buffer_pools': {
                    'elements': 'dict',
                    'options': {
                        'name': {
                            'choices': ['ingress_lossless_pool'],
                            'required': True,
                            'type': 'str'
                        },
                        'xoff': {'type': 'int'}
                    },
                    'type': 'list'
                },
                'buffer_profiles': {
                    'elements': 'dict',
                    'mutually_exclusive': [['dynamic_threshold', 'static_threshold']],
                    'options': {
                        'dynamic_threshold': {'type': 'int'},
                        'name': {'required': True, 'type': 'str'},
                        'pause_threshold': {'type': 'int'},
                        'pool': {
                            'choices': ['ingress_lossless_pool', 'egress_lossless_pool', 'egress_lossy_pool'],
                            'type': 'str'
                        },
                        'size': {'type': 'int'},
                        'static_threshold': {'type': 'int'}
                    },
                    'type': 'list'
                }
            },
            'type': 'dict'
        },
        'state': {
            'choices': ['merged', 'deleted'],
            'default': 'merged',
            'type': 'str'
        },
    }  # pylint: disable=C0301
