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

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


class UnsubscriptionCalendarRequestBuilder(object):

    def __init__(self) -> None:
        unsubscription_calendar_request = UnsubscriptionCalendarRequest()
        unsubscription_calendar_request.http_method = HttpMethod.POST
        unsubscription_calendar_request.uri = "/open-apis/calendar/v4/calendars/unsubscription"
        unsubscription_calendar_request.token_types = {AccessTokenType.USER}
        self._unsubscription_calendar_request: UnsubscriptionCalendarRequest = unsubscription_calendar_request

    def build(self) -> UnsubscriptionCalendarRequest:
        return self._unsubscription_calendar_request
