# -*- coding: utf-8 -*-
# This file is auto-generated, don't edit it. Thanks.
from __future__ import annotations

from darabonba.model import DaraModel

class DescribeRdsAnalysisResourceQuotasRequest(DaraModel):
    def __init__(
        self,
        cluster_category: str = None,
        cluster_mode: str = None,
        node_class: str = None,
        node_count: int = None,
        owner_account: str = None,
        owner_id: int = None,
        rds_instance_id: str = None,
        region_id: str = None,
        resource_group_id: str = None,
        resource_owner_account: str = None,
        resource_owner_id: int = None,
        storage_type: str = None,
    ):
        # The edition of the MySQL analytic instance.
        self.cluster_category = cluster_category
        # The mode of the MySQL analytic instance.
        self.cluster_mode = cluster_mode
        # The instance type of the MySQL analytic instance.
        self.node_class = node_class
        # The number of nodes in the MySQL analytic instance.
        self.node_count = node_count
        self.owner_account = owner_account
        self.owner_id = owner_id
        # The ID of the ApsaraDB RDS instance from which data is synchronized to the MySQL analytic instance.
        self.rds_instance_id = rds_instance_id
        # The region ID.
        # 
        # >  You can call the [DescribeRegions](https://help.aliyun.com/document_detail/143074.html) operation to query the most recent region list.
        # 
        # This parameter is required.
        self.region_id = region_id
        # The resource group ID.
        self.resource_group_id = resource_group_id
        self.resource_owner_account = resource_owner_account
        self.resource_owner_id = resource_owner_id
        # The storage type of the MySQL analytic instance.
        self.storage_type = storage_type

    def validate(self):
        pass

    def to_map(self):
        result = dict()
        _map = super().to_map()
        if _map is not None:
            result = _map
        if self.cluster_category is not None:
            result['ClusterCategory'] = self.cluster_category

        if self.cluster_mode is not None:
            result['ClusterMode'] = self.cluster_mode

        if self.node_class is not None:
            result['NodeClass'] = self.node_class

        if self.node_count is not None:
            result['NodeCount'] = self.node_count

        if self.owner_account is not None:
            result['OwnerAccount'] = self.owner_account

        if self.owner_id is not None:
            result['OwnerId'] = self.owner_id

        if self.rds_instance_id is not None:
            result['RdsInstanceId'] = self.rds_instance_id

        if self.region_id is not None:
            result['RegionId'] = self.region_id

        if self.resource_group_id is not None:
            result['ResourceGroupId'] = self.resource_group_id

        if self.resource_owner_account is not None:
            result['ResourceOwnerAccount'] = self.resource_owner_account

        if self.resource_owner_id is not None:
            result['ResourceOwnerId'] = self.resource_owner_id

        if self.storage_type is not None:
            result['StorageType'] = self.storage_type

        return result

    def from_map(self, m: dict = None):
        m = m or dict()
        if m.get('ClusterCategory') is not None:
            self.cluster_category = m.get('ClusterCategory')

        if m.get('ClusterMode') is not None:
            self.cluster_mode = m.get('ClusterMode')

        if m.get('NodeClass') is not None:
            self.node_class = m.get('NodeClass')

        if m.get('NodeCount') is not None:
            self.node_count = m.get('NodeCount')

        if m.get('OwnerAccount') is not None:
            self.owner_account = m.get('OwnerAccount')

        if m.get('OwnerId') is not None:
            self.owner_id = m.get('OwnerId')

        if m.get('RdsInstanceId') is not None:
            self.rds_instance_id = m.get('RdsInstanceId')

        if m.get('RegionId') is not None:
            self.region_id = m.get('RegionId')

        if m.get('ResourceGroupId') is not None:
            self.resource_group_id = m.get('ResourceGroupId')

        if m.get('ResourceOwnerAccount') is not None:
            self.resource_owner_account = m.get('ResourceOwnerAccount')

        if m.get('ResourceOwnerId') is not None:
            self.resource_owner_id = m.get('ResourceOwnerId')

        if m.get('StorageType') is not None:
            self.storage_type = m.get('StorageType')

        return self

