# 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 QueryTenantRequest(BaseRequest):
    def __init__(self) -> None:
        super().__init__()

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


class QueryTenantRequestBuilder(object):

    def __init__(self) -> None:
        query_tenant_request = QueryTenantRequest()
        query_tenant_request.http_method = HttpMethod.GET
        query_tenant_request.uri = "/open-apis/tenant/v2/tenant/query"
        query_tenant_request.token_types = {AccessTokenType.TENANT}
        self._query_tenant_request: QueryTenantRequest = query_tenant_request

    def build(self) -> QueryTenantRequest:
        return self._query_tenant_request
