# Code generated by Lark OpenAPI.

from lark_oapi.core.enum import HttpMethod, AccessTokenType
from lark_oapi.core.model import BaseRequest


class ListRepoRequest(BaseRequest):
    def __init__(self) -> None:
        super().__init__()

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


class ListRepoRequestBuilder(object):

    def __init__(self) -> None:
        list_repo_request = ListRepoRequest()
        list_repo_request.http_method = HttpMethod.GET
        list_repo_request.uri = "/open-apis/lingo/v1/repos"
        list_repo_request.token_types = {AccessTokenType.TENANT, AccessTokenType.USER}
        self._list_repo_request: ListRepoRequest = list_repo_request

    def build(self) -> ListRepoRequest:
        return self._list_repo_request
