Source code for jdcloud_sdk.services.kubernetes.models.NodeGroupSpec

# 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 NodeGroupSpec(object): def __init__(self, name, nodeConfig, initialNodeCount, description=None, azs=None, caConfig=None): """ :param name: 名称 :param description: (Optional) :param nodeConfig: 工作节点组的信息 :param azs: (Optional) 工作节点组的 az,必须为集群az的子集,默认为集群az :param initialNodeCount: 工作节点组初始化大小,至少为1个 :param caConfig: (Optional) 自动伸缩配置 """ self.name = name self.description = description self.nodeConfig = nodeConfig self.azs = azs self.initialNodeCount = initialNodeCount self.caConfig = caConfig