Source code for jdcloud_sdk.services.mongodb.models.Flavor

# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


[docs]class Flavor(object): def __init__(self, instanceType=None, instanceClass=None, nodeRole=None, nodeType=None, cpu=None, memory=None, iops=None, maxLink=None, maxDisk=None, minDisk=None, diskStep=None, instanceStorageType=None): """ :param instanceType: (Optional) 实例类型,副本集:Replication;分片集群:Sharding :param instanceClass: (Optional) 副本集规格代码 :param nodeRole: (Optional) 分片集群节点角色,mongos、configserver、shard :param nodeType: (Optional) 分片集群节点规格代码 :param cpu: (Optional) CPU核数 :param memory: (Optional) 内存 ,单位GB :param iops: (Optional) iops :param maxLink: (Optional) 最大连接数 :param maxDisk: (Optional) 最大磁盘数,单位GB :param minDisk: (Optional) 最下磁盘数,单位GB :param diskStep: (Optional) 磁盘步长 :param instanceStorageType: (Optional) 存储类型。LOCAL_SSD -本地盘SSD、LOCAL_NVMe -本地盘NVMe、EBS_SSD-SSD云盘。 """ self.instanceType = instanceType self.instanceClass = instanceClass self.nodeRole = nodeRole self.nodeType = nodeType self.cpu = cpu self.memory = memory self.iops = iops self.maxLink = maxLink self.maxDisk = maxDisk self.minDisk = minDisk self.diskStep = diskStep self.instanceStorageType = instanceStorageType