# Code generated by Lark OpenAPI.

from typing import Optional, List

from lark_oapi.core.construct import init


class UpdateGridColumnWidthRatioRequest(object):
    _types = {
        "width_ratios": List[int],
    }

    def __init__(self, d=None):
        self.width_ratios: Optional[List[int]] = None
        init(self, d, self._types)

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


class UpdateGridColumnWidthRatioRequestBuilder(object):
    def __init__(self) -> None:
        self._update_grid_column_width_ratio_request = UpdateGridColumnWidthRatioRequest()

    def width_ratios(self, width_ratios: List[int]) -> "UpdateGridColumnWidthRatioRequestBuilder":
        self._update_grid_column_width_ratio_request.width_ratios = width_ratios
        return self

    def build(self) -> "UpdateGridColumnWidthRatioRequest":
        return self._update_grid_column_width_ratio_request
