# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.model import BaseRequest
from lark_oapi.core.enum import HttpMethod, AccessTokenType


class DeleteCategoryRequest(BaseRequest):
    def __init__(self) -> None:
        super().__init__()
        self.id: Optional[str] = None

    @staticmethod
    def builder() -> "DeleteCategoryRequestBuilder":
        return DeleteCategoryRequestBuilder()


class DeleteCategoryRequestBuilder(object):

    def __init__(self) -> None:
        delete_category_request = DeleteCategoryRequest()
        delete_category_request.http_method = HttpMethod.DELETE
        delete_category_request.uri = "/open-apis/helpdesk/v1/categories/:id"
        delete_category_request.token_types = {AccessTokenType.USER}
        self._delete_category_request: DeleteCategoryRequest = delete_category_request

    def id(self, id: str) -> "DeleteCategoryRequestBuilder":
        self._delete_category_request.id = id
        self._delete_category_request.paths["id"] = str(id)
        return self

    def build(self) -> DeleteCategoryRequest:
        return self._delete_category_request
