from __future__ import annotations

import urllib.parse
from typing import Any, Dict, Optional

from ..client import Client

class TagsResource:
    def __init__(self, client: Client) -> None:
        self._client = client

    def create(self, body: Any, *, query: Optional[Dict[str, Any]] = None):
        return self._client.request("POST", "/tags/create", query=query, body=body)

    def getAll(self, *, query: Optional[Dict[str, Any]] = None):
        return self._client.request("GET", "/tags/getAll", query=query, body=None)

    def search(self, *, query: Optional[Dict[str, Any]] = None):
        return self._client.request("GET", "/tags/search", query=query, body=None)
