huaweicloudsdkmrs 3.1.85__py2.py3-none-any.whl → 3.1.132__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkmrs/v1/model/create_cluster_req_v11.py +3 -3
 - huaweicloudsdkmrs/v1/model/create_scaling_policy_response.py +22 -18
 - huaweicloudsdkmrs/v1/model/host_model.py +32 -3
 - huaweicloudsdkmrs/v1/model/node_group_v11.py +3 -3
 - huaweicloudsdkmrs/v1/model/task_node_group.py +3 -3
 - huaweicloudsdkmrs/v1/model/task_node_info.py +3 -3
 - huaweicloudsdkmrs/v1/region/mrs_region.py +6 -0
 - huaweicloudsdkmrs/v2/__init__.py +7 -0
 - huaweicloudsdkmrs/v2/model/__init__.py +7 -0
 - huaweicloudsdkmrs/v2/model/cluster_node.py +396 -0
 - huaweicloudsdkmrs/v2/model/component_info.py +521 -0
 - huaweicloudsdkmrs/v2/model/list_nodes_request.py +375 -0
 - huaweicloudsdkmrs/v2/model/list_nodes_response.py +145 -0
 - huaweicloudsdkmrs/v2/model/node_detail.py +376 -0
 - huaweicloudsdkmrs/v2/model/node_group_v2.py +3 -3
 - huaweicloudsdkmrs/v2/model/server_info.py +340 -0
 - huaweicloudsdkmrs/v2/model/show_mrs_flavors_request.py +32 -3
 - huaweicloudsdkmrs/v2/model/tag.py +6 -6
 - huaweicloudsdkmrs/v2/model/volume_info.py +170 -0
 - huaweicloudsdkmrs/v2/mrs_async_client.py +85 -0
 - huaweicloudsdkmrs/v2/mrs_client.py +85 -0
 - huaweicloudsdkmrs/v2/region/mrs_region.py +6 -0
 - {huaweicloudsdkmrs-3.1.85.dist-info → huaweicloudsdkmrs-3.1.132.dist-info}/METADATA +2 -2
 - {huaweicloudsdkmrs-3.1.85.dist-info → huaweicloudsdkmrs-3.1.132.dist-info}/RECORD +27 -20
 - {huaweicloudsdkmrs-3.1.85.dist-info → huaweicloudsdkmrs-3.1.132.dist-info}/WHEEL +1 -1
 - {huaweicloudsdkmrs-3.1.85.dist-info → huaweicloudsdkmrs-3.1.132.dist-info}/LICENSE +0 -0
 - {huaweicloudsdkmrs-3.1.85.dist-info → huaweicloudsdkmrs-3.1.132.dist-info}/top_level.txt +0 -0
 
| 
         @@ -0,0 +1,396 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # coding: utf-8
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            import six
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
            class ClusterNode:
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
                """
         
     | 
| 
      
 11 
     | 
    
         
            +
                Attributes:
         
     | 
| 
      
 12 
     | 
    
         
            +
                  openapi_types (dict): The key is attribute name
         
     | 
| 
      
 13 
     | 
    
         
            +
                                        and the value is attribute type.
         
     | 
| 
      
 14 
     | 
    
         
            +
                  attribute_map (dict): The key is attribute name
         
     | 
| 
      
 15 
     | 
    
         
            +
                                        and the value is json key in definition.
         
     | 
| 
      
 16 
     | 
    
         
            +
                """
         
     | 
| 
      
 17 
     | 
    
         
            +
                sensitive_list = []
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
                openapi_types = {
         
     | 
| 
      
 20 
     | 
    
         
            +
                    'node_name': 'str',
         
     | 
| 
      
 21 
     | 
    
         
            +
                    'resource_id': 'str',
         
     | 
| 
      
 22 
     | 
    
         
            +
                    'node_group_name': 'str',
         
     | 
| 
      
 23 
     | 
    
         
            +
                    'node_type': 'str',
         
     | 
| 
      
 24 
     | 
    
         
            +
                    'billing_type': 'str',
         
     | 
| 
      
 25 
     | 
    
         
            +
                    'deployment_type': 'str',
         
     | 
| 
      
 26 
     | 
    
         
            +
                    'server_info': 'ServerInfo',
         
     | 
| 
      
 27 
     | 
    
         
            +
                    'tags': 'list[Tag]',
         
     | 
| 
      
 28 
     | 
    
         
            +
                    'node_detail': 'NodeDetail',
         
     | 
| 
      
 29 
     | 
    
         
            +
                    'node_status': 'str',
         
     | 
| 
      
 30 
     | 
    
         
            +
                    'component_infos': 'list[ComponentInfo]'
         
     | 
| 
      
 31 
     | 
    
         
            +
                }
         
     | 
| 
      
 32 
     | 
    
         
            +
             
     | 
| 
      
 33 
     | 
    
         
            +
                attribute_map = {
         
     | 
| 
      
 34 
     | 
    
         
            +
                    'node_name': 'node_name',
         
     | 
| 
      
 35 
     | 
    
         
            +
                    'resource_id': 'resource_id',
         
     | 
| 
      
 36 
     | 
    
         
            +
                    'node_group_name': 'node_group_name',
         
     | 
| 
      
 37 
     | 
    
         
            +
                    'node_type': 'node_type',
         
     | 
| 
      
 38 
     | 
    
         
            +
                    'billing_type': 'billing_type',
         
     | 
| 
      
 39 
     | 
    
         
            +
                    'deployment_type': 'deployment_type',
         
     | 
| 
      
 40 
     | 
    
         
            +
                    'server_info': 'server_info',
         
     | 
| 
      
 41 
     | 
    
         
            +
                    'tags': 'tags',
         
     | 
| 
      
 42 
     | 
    
         
            +
                    'node_detail': 'node_detail',
         
     | 
| 
      
 43 
     | 
    
         
            +
                    'node_status': 'node_status',
         
     | 
| 
      
 44 
     | 
    
         
            +
                    'component_infos': 'component_infos'
         
     | 
| 
      
 45 
     | 
    
         
            +
                }
         
     | 
| 
      
 46 
     | 
    
         
            +
             
     | 
| 
      
 47 
     | 
    
         
            +
                def __init__(self, node_name=None, resource_id=None, node_group_name=None, node_type=None, billing_type=None, deployment_type=None, server_info=None, tags=None, node_detail=None, node_status=None, component_infos=None):
         
     | 
| 
      
 48 
     | 
    
         
            +
                    """ClusterNode
         
     | 
| 
      
 49 
     | 
    
         
            +
             
     | 
| 
      
 50 
     | 
    
         
            +
                    The model defined in huaweicloud sdk
         
     | 
| 
      
 51 
     | 
    
         
            +
             
     | 
| 
      
 52 
     | 
    
         
            +
                    :param node_name: 节点名称,对应manager里的节点名称。
         
     | 
| 
      
 53 
     | 
    
         
            +
                    :type node_name: str
         
     | 
| 
      
 54 
     | 
    
         
            +
                    :param resource_id: 资源id。确定节点的唯一性,包周期节点可用于计费的查询。
         
     | 
| 
      
 55 
     | 
    
         
            +
                    :type resource_id: str
         
     | 
| 
      
 56 
     | 
    
         
            +
                    :param node_group_name: 节点组名称。
         
     | 
| 
      
 57 
     | 
    
         
            +
                    :type node_group_name: str
         
     | 
| 
      
 58 
     | 
    
         
            +
                    :param node_type: 节点类型。Task、Core、Master等。
         
     | 
| 
      
 59 
     | 
    
         
            +
                    :type node_type: str
         
     | 
| 
      
 60 
     | 
    
         
            +
                    :param billing_type: on-period包周期或者on-quantity按需。
         
     | 
| 
      
 61 
     | 
    
         
            +
                    :type billing_type: str
         
     | 
| 
      
 62 
     | 
    
         
            +
                    :param deployment_type: 部署类型。支持Server主机类型。
         
     | 
| 
      
 63 
     | 
    
         
            +
                    :type deployment_type: str
         
     | 
| 
      
 64 
     | 
    
         
            +
                    :param server_info: 
         
     | 
| 
      
 65 
     | 
    
         
            +
                    :type server_info: :class:`huaweicloudsdkmrs.v2.ServerInfo`
         
     | 
| 
      
 66 
     | 
    
         
            +
                    :param tags: 节点标签
         
     | 
| 
      
 67 
     | 
    
         
            +
                    :type tags: list[:class:`huaweicloudsdkmrs.v2.Tag`]
         
     | 
| 
      
 68 
     | 
    
         
            +
                    :param node_detail: 
         
     | 
| 
      
 69 
     | 
    
         
            +
                    :type node_detail: :class:`huaweicloudsdkmrs.v2.NodeDetail`
         
     | 
| 
      
 70 
     | 
    
         
            +
                    :param node_status: 节点状态。对应页面上的操作状态。
         
     | 
| 
      
 71 
     | 
    
         
            +
                    :type node_status: str
         
     | 
| 
      
 72 
     | 
    
         
            +
                    :param component_infos: 组件实例信息数组。
         
     | 
| 
      
 73 
     | 
    
         
            +
                    :type component_infos: list[:class:`huaweicloudsdkmrs.v2.ComponentInfo`]
         
     | 
| 
      
 74 
     | 
    
         
            +
                    """
         
     | 
| 
      
 75 
     | 
    
         
            +
                    
         
     | 
| 
      
 76 
     | 
    
         
            +
                    
         
     | 
| 
      
 77 
     | 
    
         
            +
             
     | 
| 
      
 78 
     | 
    
         
            +
                    self._node_name = None
         
     | 
| 
      
 79 
     | 
    
         
            +
                    self._resource_id = None
         
     | 
| 
      
 80 
     | 
    
         
            +
                    self._node_group_name = None
         
     | 
| 
      
 81 
     | 
    
         
            +
                    self._node_type = None
         
     | 
| 
      
 82 
     | 
    
         
            +
                    self._billing_type = None
         
     | 
| 
      
 83 
     | 
    
         
            +
                    self._deployment_type = None
         
     | 
| 
      
 84 
     | 
    
         
            +
                    self._server_info = None
         
     | 
| 
      
 85 
     | 
    
         
            +
                    self._tags = None
         
     | 
| 
      
 86 
     | 
    
         
            +
                    self._node_detail = None
         
     | 
| 
      
 87 
     | 
    
         
            +
                    self._node_status = None
         
     | 
| 
      
 88 
     | 
    
         
            +
                    self._component_infos = None
         
     | 
| 
      
 89 
     | 
    
         
            +
                    self.discriminator = None
         
     | 
| 
      
 90 
     | 
    
         
            +
             
     | 
| 
      
 91 
     | 
    
         
            +
                    if node_name is not None:
         
     | 
| 
      
 92 
     | 
    
         
            +
                        self.node_name = node_name
         
     | 
| 
      
 93 
     | 
    
         
            +
                    if resource_id is not None:
         
     | 
| 
      
 94 
     | 
    
         
            +
                        self.resource_id = resource_id
         
     | 
| 
      
 95 
     | 
    
         
            +
                    if node_group_name is not None:
         
     | 
| 
      
 96 
     | 
    
         
            +
                        self.node_group_name = node_group_name
         
     | 
| 
      
 97 
     | 
    
         
            +
                    if node_type is not None:
         
     | 
| 
      
 98 
     | 
    
         
            +
                        self.node_type = node_type
         
     | 
| 
      
 99 
     | 
    
         
            +
                    if billing_type is not None:
         
     | 
| 
      
 100 
     | 
    
         
            +
                        self.billing_type = billing_type
         
     | 
| 
      
 101 
     | 
    
         
            +
                    self.deployment_type = deployment_type
         
     | 
| 
      
 102 
     | 
    
         
            +
                    if server_info is not None:
         
     | 
| 
      
 103 
     | 
    
         
            +
                        self.server_info = server_info
         
     | 
| 
      
 104 
     | 
    
         
            +
                    if tags is not None:
         
     | 
| 
      
 105 
     | 
    
         
            +
                        self.tags = tags
         
     | 
| 
      
 106 
     | 
    
         
            +
                    if node_detail is not None:
         
     | 
| 
      
 107 
     | 
    
         
            +
                        self.node_detail = node_detail
         
     | 
| 
      
 108 
     | 
    
         
            +
                    if node_status is not None:
         
     | 
| 
      
 109 
     | 
    
         
            +
                        self.node_status = node_status
         
     | 
| 
      
 110 
     | 
    
         
            +
                    if component_infos is not None:
         
     | 
| 
      
 111 
     | 
    
         
            +
                        self.component_infos = component_infos
         
     | 
| 
      
 112 
     | 
    
         
            +
             
     | 
| 
      
 113 
     | 
    
         
            +
                @property
         
     | 
| 
      
 114 
     | 
    
         
            +
                def node_name(self):
         
     | 
| 
      
 115 
     | 
    
         
            +
                    """Gets the node_name of this ClusterNode.
         
     | 
| 
      
 116 
     | 
    
         
            +
             
     | 
| 
      
 117 
     | 
    
         
            +
                    节点名称,对应manager里的节点名称。
         
     | 
| 
      
 118 
     | 
    
         
            +
             
     | 
| 
      
 119 
     | 
    
         
            +
                    :return: The node_name of this ClusterNode.
         
     | 
| 
      
 120 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 121 
     | 
    
         
            +
                    """
         
     | 
| 
      
 122 
     | 
    
         
            +
                    return self._node_name
         
     | 
| 
      
 123 
     | 
    
         
            +
             
     | 
| 
      
 124 
     | 
    
         
            +
                @node_name.setter
         
     | 
| 
      
 125 
     | 
    
         
            +
                def node_name(self, node_name):
         
     | 
| 
      
 126 
     | 
    
         
            +
                    """Sets the node_name of this ClusterNode.
         
     | 
| 
      
 127 
     | 
    
         
            +
             
     | 
| 
      
 128 
     | 
    
         
            +
                    节点名称,对应manager里的节点名称。
         
     | 
| 
      
 129 
     | 
    
         
            +
             
     | 
| 
      
 130 
     | 
    
         
            +
                    :param node_name: The node_name of this ClusterNode.
         
     | 
| 
      
 131 
     | 
    
         
            +
                    :type node_name: str
         
     | 
| 
      
 132 
     | 
    
         
            +
                    """
         
     | 
| 
      
 133 
     | 
    
         
            +
                    self._node_name = node_name
         
     | 
| 
      
 134 
     | 
    
         
            +
             
     | 
| 
      
 135 
     | 
    
         
            +
                @property
         
     | 
| 
      
 136 
     | 
    
         
            +
                def resource_id(self):
         
     | 
| 
      
 137 
     | 
    
         
            +
                    """Gets the resource_id of this ClusterNode.
         
     | 
| 
      
 138 
     | 
    
         
            +
             
     | 
| 
      
 139 
     | 
    
         
            +
                    资源id。确定节点的唯一性,包周期节点可用于计费的查询。
         
     | 
| 
      
 140 
     | 
    
         
            +
             
     | 
| 
      
 141 
     | 
    
         
            +
                    :return: The resource_id of this ClusterNode.
         
     | 
| 
      
 142 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 143 
     | 
    
         
            +
                    """
         
     | 
| 
      
 144 
     | 
    
         
            +
                    return self._resource_id
         
     | 
| 
      
 145 
     | 
    
         
            +
             
     | 
| 
      
 146 
     | 
    
         
            +
                @resource_id.setter
         
     | 
| 
      
 147 
     | 
    
         
            +
                def resource_id(self, resource_id):
         
     | 
| 
      
 148 
     | 
    
         
            +
                    """Sets the resource_id of this ClusterNode.
         
     | 
| 
      
 149 
     | 
    
         
            +
             
     | 
| 
      
 150 
     | 
    
         
            +
                    资源id。确定节点的唯一性,包周期节点可用于计费的查询。
         
     | 
| 
      
 151 
     | 
    
         
            +
             
     | 
| 
      
 152 
     | 
    
         
            +
                    :param resource_id: The resource_id of this ClusterNode.
         
     | 
| 
      
 153 
     | 
    
         
            +
                    :type resource_id: str
         
     | 
| 
      
 154 
     | 
    
         
            +
                    """
         
     | 
| 
      
 155 
     | 
    
         
            +
                    self._resource_id = resource_id
         
     | 
| 
      
 156 
     | 
    
         
            +
             
     | 
| 
      
 157 
     | 
    
         
            +
                @property
         
     | 
| 
      
 158 
     | 
    
         
            +
                def node_group_name(self):
         
     | 
| 
      
 159 
     | 
    
         
            +
                    """Gets the node_group_name of this ClusterNode.
         
     | 
| 
      
 160 
     | 
    
         
            +
             
     | 
| 
      
 161 
     | 
    
         
            +
                    节点组名称。
         
     | 
| 
      
 162 
     | 
    
         
            +
             
     | 
| 
      
 163 
     | 
    
         
            +
                    :return: The node_group_name of this ClusterNode.
         
     | 
| 
      
 164 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 165 
     | 
    
         
            +
                    """
         
     | 
| 
      
 166 
     | 
    
         
            +
                    return self._node_group_name
         
     | 
| 
      
 167 
     | 
    
         
            +
             
     | 
| 
      
 168 
     | 
    
         
            +
                @node_group_name.setter
         
     | 
| 
      
 169 
     | 
    
         
            +
                def node_group_name(self, node_group_name):
         
     | 
| 
      
 170 
     | 
    
         
            +
                    """Sets the node_group_name of this ClusterNode.
         
     | 
| 
      
 171 
     | 
    
         
            +
             
     | 
| 
      
 172 
     | 
    
         
            +
                    节点组名称。
         
     | 
| 
      
 173 
     | 
    
         
            +
             
     | 
| 
      
 174 
     | 
    
         
            +
                    :param node_group_name: The node_group_name of this ClusterNode.
         
     | 
| 
      
 175 
     | 
    
         
            +
                    :type node_group_name: str
         
     | 
| 
      
 176 
     | 
    
         
            +
                    """
         
     | 
| 
      
 177 
     | 
    
         
            +
                    self._node_group_name = node_group_name
         
     | 
| 
      
 178 
     | 
    
         
            +
             
     | 
| 
      
 179 
     | 
    
         
            +
                @property
         
     | 
| 
      
 180 
     | 
    
         
            +
                def node_type(self):
         
     | 
| 
      
 181 
     | 
    
         
            +
                    """Gets the node_type of this ClusterNode.
         
     | 
| 
      
 182 
     | 
    
         
            +
             
     | 
| 
      
 183 
     | 
    
         
            +
                    节点类型。Task、Core、Master等。
         
     | 
| 
      
 184 
     | 
    
         
            +
             
     | 
| 
      
 185 
     | 
    
         
            +
                    :return: The node_type of this ClusterNode.
         
     | 
| 
      
 186 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 187 
     | 
    
         
            +
                    """
         
     | 
| 
      
 188 
     | 
    
         
            +
                    return self._node_type
         
     | 
| 
      
 189 
     | 
    
         
            +
             
     | 
| 
      
 190 
     | 
    
         
            +
                @node_type.setter
         
     | 
| 
      
 191 
     | 
    
         
            +
                def node_type(self, node_type):
         
     | 
| 
      
 192 
     | 
    
         
            +
                    """Sets the node_type of this ClusterNode.
         
     | 
| 
      
 193 
     | 
    
         
            +
             
     | 
| 
      
 194 
     | 
    
         
            +
                    节点类型。Task、Core、Master等。
         
     | 
| 
      
 195 
     | 
    
         
            +
             
     | 
| 
      
 196 
     | 
    
         
            +
                    :param node_type: The node_type of this ClusterNode.
         
     | 
| 
      
 197 
     | 
    
         
            +
                    :type node_type: str
         
     | 
| 
      
 198 
     | 
    
         
            +
                    """
         
     | 
| 
      
 199 
     | 
    
         
            +
                    self._node_type = node_type
         
     | 
| 
      
 200 
     | 
    
         
            +
             
     | 
| 
      
 201 
     | 
    
         
            +
                @property
         
     | 
| 
      
 202 
     | 
    
         
            +
                def billing_type(self):
         
     | 
| 
      
 203 
     | 
    
         
            +
                    """Gets the billing_type of this ClusterNode.
         
     | 
| 
      
 204 
     | 
    
         
            +
             
     | 
| 
      
 205 
     | 
    
         
            +
                    on-period包周期或者on-quantity按需。
         
     | 
| 
      
 206 
     | 
    
         
            +
             
     | 
| 
      
 207 
     | 
    
         
            +
                    :return: The billing_type of this ClusterNode.
         
     | 
| 
      
 208 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 209 
     | 
    
         
            +
                    """
         
     | 
| 
      
 210 
     | 
    
         
            +
                    return self._billing_type
         
     | 
| 
      
 211 
     | 
    
         
            +
             
     | 
| 
      
 212 
     | 
    
         
            +
                @billing_type.setter
         
     | 
| 
      
 213 
     | 
    
         
            +
                def billing_type(self, billing_type):
         
     | 
| 
      
 214 
     | 
    
         
            +
                    """Sets the billing_type of this ClusterNode.
         
     | 
| 
      
 215 
     | 
    
         
            +
             
     | 
| 
      
 216 
     | 
    
         
            +
                    on-period包周期或者on-quantity按需。
         
     | 
| 
      
 217 
     | 
    
         
            +
             
     | 
| 
      
 218 
     | 
    
         
            +
                    :param billing_type: The billing_type of this ClusterNode.
         
     | 
| 
      
 219 
     | 
    
         
            +
                    :type billing_type: str
         
     | 
| 
      
 220 
     | 
    
         
            +
                    """
         
     | 
| 
      
 221 
     | 
    
         
            +
                    self._billing_type = billing_type
         
     | 
| 
      
 222 
     | 
    
         
            +
             
     | 
| 
      
 223 
     | 
    
         
            +
                @property
         
     | 
| 
      
 224 
     | 
    
         
            +
                def deployment_type(self):
         
     | 
| 
      
 225 
     | 
    
         
            +
                    """Gets the deployment_type of this ClusterNode.
         
     | 
| 
      
 226 
     | 
    
         
            +
             
     | 
| 
      
 227 
     | 
    
         
            +
                    部署类型。支持Server主机类型。
         
     | 
| 
      
 228 
     | 
    
         
            +
             
     | 
| 
      
 229 
     | 
    
         
            +
                    :return: The deployment_type of this ClusterNode.
         
     | 
| 
      
 230 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 231 
     | 
    
         
            +
                    """
         
     | 
| 
      
 232 
     | 
    
         
            +
                    return self._deployment_type
         
     | 
| 
      
 233 
     | 
    
         
            +
             
     | 
| 
      
 234 
     | 
    
         
            +
                @deployment_type.setter
         
     | 
| 
      
 235 
     | 
    
         
            +
                def deployment_type(self, deployment_type):
         
     | 
| 
      
 236 
     | 
    
         
            +
                    """Sets the deployment_type of this ClusterNode.
         
     | 
| 
      
 237 
     | 
    
         
            +
             
     | 
| 
      
 238 
     | 
    
         
            +
                    部署类型。支持Server主机类型。
         
     | 
| 
      
 239 
     | 
    
         
            +
             
     | 
| 
      
 240 
     | 
    
         
            +
                    :param deployment_type: The deployment_type of this ClusterNode.
         
     | 
| 
      
 241 
     | 
    
         
            +
                    :type deployment_type: str
         
     | 
| 
      
 242 
     | 
    
         
            +
                    """
         
     | 
| 
      
 243 
     | 
    
         
            +
                    self._deployment_type = deployment_type
         
     | 
| 
      
 244 
     | 
    
         
            +
             
     | 
| 
      
 245 
     | 
    
         
            +
                @property
         
     | 
| 
      
 246 
     | 
    
         
            +
                def server_info(self):
         
     | 
| 
      
 247 
     | 
    
         
            +
                    """Gets the server_info of this ClusterNode.
         
     | 
| 
      
 248 
     | 
    
         
            +
             
     | 
| 
      
 249 
     | 
    
         
            +
                    :return: The server_info of this ClusterNode.
         
     | 
| 
      
 250 
     | 
    
         
            +
                    :rtype: :class:`huaweicloudsdkmrs.v2.ServerInfo`
         
     | 
| 
      
 251 
     | 
    
         
            +
                    """
         
     | 
| 
      
 252 
     | 
    
         
            +
                    return self._server_info
         
     | 
| 
      
 253 
     | 
    
         
            +
             
     | 
| 
      
 254 
     | 
    
         
            +
                @server_info.setter
         
     | 
| 
      
 255 
     | 
    
         
            +
                def server_info(self, server_info):
         
     | 
| 
      
 256 
     | 
    
         
            +
                    """Sets the server_info of this ClusterNode.
         
     | 
| 
      
 257 
     | 
    
         
            +
             
     | 
| 
      
 258 
     | 
    
         
            +
                    :param server_info: The server_info of this ClusterNode.
         
     | 
| 
      
 259 
     | 
    
         
            +
                    :type server_info: :class:`huaweicloudsdkmrs.v2.ServerInfo`
         
     | 
| 
      
 260 
     | 
    
         
            +
                    """
         
     | 
| 
      
 261 
     | 
    
         
            +
                    self._server_info = server_info
         
     | 
| 
      
 262 
     | 
    
         
            +
             
     | 
| 
      
 263 
     | 
    
         
            +
                @property
         
     | 
| 
      
 264 
     | 
    
         
            +
                def tags(self):
         
     | 
| 
      
 265 
     | 
    
         
            +
                    """Gets the tags of this ClusterNode.
         
     | 
| 
      
 266 
     | 
    
         
            +
             
     | 
| 
      
 267 
     | 
    
         
            +
                    节点标签
         
     | 
| 
      
 268 
     | 
    
         
            +
             
     | 
| 
      
 269 
     | 
    
         
            +
                    :return: The tags of this ClusterNode.
         
     | 
| 
      
 270 
     | 
    
         
            +
                    :rtype: list[:class:`huaweicloudsdkmrs.v2.Tag`]
         
     | 
| 
      
 271 
     | 
    
         
            +
                    """
         
     | 
| 
      
 272 
     | 
    
         
            +
                    return self._tags
         
     | 
| 
      
 273 
     | 
    
         
            +
             
     | 
| 
      
 274 
     | 
    
         
            +
                @tags.setter
         
     | 
| 
      
 275 
     | 
    
         
            +
                def tags(self, tags):
         
     | 
| 
      
 276 
     | 
    
         
            +
                    """Sets the tags of this ClusterNode.
         
     | 
| 
      
 277 
     | 
    
         
            +
             
     | 
| 
      
 278 
     | 
    
         
            +
                    节点标签
         
     | 
| 
      
 279 
     | 
    
         
            +
             
     | 
| 
      
 280 
     | 
    
         
            +
                    :param tags: The tags of this ClusterNode.
         
     | 
| 
      
 281 
     | 
    
         
            +
                    :type tags: list[:class:`huaweicloudsdkmrs.v2.Tag`]
         
     | 
| 
      
 282 
     | 
    
         
            +
                    """
         
     | 
| 
      
 283 
     | 
    
         
            +
                    self._tags = tags
         
     | 
| 
      
 284 
     | 
    
         
            +
             
     | 
| 
      
 285 
     | 
    
         
            +
                @property
         
     | 
| 
      
 286 
     | 
    
         
            +
                def node_detail(self):
         
     | 
| 
      
 287 
     | 
    
         
            +
                    """Gets the node_detail of this ClusterNode.
         
     | 
| 
      
 288 
     | 
    
         
            +
             
     | 
| 
      
 289 
     | 
    
         
            +
                    :return: The node_detail of this ClusterNode.
         
     | 
| 
      
 290 
     | 
    
         
            +
                    :rtype: :class:`huaweicloudsdkmrs.v2.NodeDetail`
         
     | 
| 
      
 291 
     | 
    
         
            +
                    """
         
     | 
| 
      
 292 
     | 
    
         
            +
                    return self._node_detail
         
     | 
| 
      
 293 
     | 
    
         
            +
             
     | 
| 
      
 294 
     | 
    
         
            +
                @node_detail.setter
         
     | 
| 
      
 295 
     | 
    
         
            +
                def node_detail(self, node_detail):
         
     | 
| 
      
 296 
     | 
    
         
            +
                    """Sets the node_detail of this ClusterNode.
         
     | 
| 
      
 297 
     | 
    
         
            +
             
     | 
| 
      
 298 
     | 
    
         
            +
                    :param node_detail: The node_detail of this ClusterNode.
         
     | 
| 
      
 299 
     | 
    
         
            +
                    :type node_detail: :class:`huaweicloudsdkmrs.v2.NodeDetail`
         
     | 
| 
      
 300 
     | 
    
         
            +
                    """
         
     | 
| 
      
 301 
     | 
    
         
            +
                    self._node_detail = node_detail
         
     | 
| 
      
 302 
     | 
    
         
            +
             
     | 
| 
      
 303 
     | 
    
         
            +
                @property
         
     | 
| 
      
 304 
     | 
    
         
            +
                def node_status(self):
         
     | 
| 
      
 305 
     | 
    
         
            +
                    """Gets the node_status of this ClusterNode.
         
     | 
| 
      
 306 
     | 
    
         
            +
             
     | 
| 
      
 307 
     | 
    
         
            +
                    节点状态。对应页面上的操作状态。
         
     | 
| 
      
 308 
     | 
    
         
            +
             
     | 
| 
      
 309 
     | 
    
         
            +
                    :return: The node_status of this ClusterNode.
         
     | 
| 
      
 310 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 311 
     | 
    
         
            +
                    """
         
     | 
| 
      
 312 
     | 
    
         
            +
                    return self._node_status
         
     | 
| 
      
 313 
     | 
    
         
            +
             
     | 
| 
      
 314 
     | 
    
         
            +
                @node_status.setter
         
     | 
| 
      
 315 
     | 
    
         
            +
                def node_status(self, node_status):
         
     | 
| 
      
 316 
     | 
    
         
            +
                    """Sets the node_status of this ClusterNode.
         
     | 
| 
      
 317 
     | 
    
         
            +
             
     | 
| 
      
 318 
     | 
    
         
            +
                    节点状态。对应页面上的操作状态。
         
     | 
| 
      
 319 
     | 
    
         
            +
             
     | 
| 
      
 320 
     | 
    
         
            +
                    :param node_status: The node_status of this ClusterNode.
         
     | 
| 
      
 321 
     | 
    
         
            +
                    :type node_status: str
         
     | 
| 
      
 322 
     | 
    
         
            +
                    """
         
     | 
| 
      
 323 
     | 
    
         
            +
                    self._node_status = node_status
         
     | 
| 
      
 324 
     | 
    
         
            +
             
     | 
| 
      
 325 
     | 
    
         
            +
                @property
         
     | 
| 
      
 326 
     | 
    
         
            +
                def component_infos(self):
         
     | 
| 
      
 327 
     | 
    
         
            +
                    """Gets the component_infos of this ClusterNode.
         
     | 
| 
      
 328 
     | 
    
         
            +
             
     | 
| 
      
 329 
     | 
    
         
            +
                    组件实例信息数组。
         
     | 
| 
      
 330 
     | 
    
         
            +
             
     | 
| 
      
 331 
     | 
    
         
            +
                    :return: The component_infos of this ClusterNode.
         
     | 
| 
      
 332 
     | 
    
         
            +
                    :rtype: list[:class:`huaweicloudsdkmrs.v2.ComponentInfo`]
         
     | 
| 
      
 333 
     | 
    
         
            +
                    """
         
     | 
| 
      
 334 
     | 
    
         
            +
                    return self._component_infos
         
     | 
| 
      
 335 
     | 
    
         
            +
             
     | 
| 
      
 336 
     | 
    
         
            +
                @component_infos.setter
         
     | 
| 
      
 337 
     | 
    
         
            +
                def component_infos(self, component_infos):
         
     | 
| 
      
 338 
     | 
    
         
            +
                    """Sets the component_infos of this ClusterNode.
         
     | 
| 
      
 339 
     | 
    
         
            +
             
     | 
| 
      
 340 
     | 
    
         
            +
                    组件实例信息数组。
         
     | 
| 
      
 341 
     | 
    
         
            +
             
     | 
| 
      
 342 
     | 
    
         
            +
                    :param component_infos: The component_infos of this ClusterNode.
         
     | 
| 
      
 343 
     | 
    
         
            +
                    :type component_infos: list[:class:`huaweicloudsdkmrs.v2.ComponentInfo`]
         
     | 
| 
      
 344 
     | 
    
         
            +
                    """
         
     | 
| 
      
 345 
     | 
    
         
            +
                    self._component_infos = component_infos
         
     | 
| 
      
 346 
     | 
    
         
            +
             
     | 
| 
      
 347 
     | 
    
         
            +
                def to_dict(self):
         
     | 
| 
      
 348 
     | 
    
         
            +
                    """Returns the model properties as a dict"""
         
     | 
| 
      
 349 
     | 
    
         
            +
                    result = {}
         
     | 
| 
      
 350 
     | 
    
         
            +
             
     | 
| 
      
 351 
     | 
    
         
            +
                    for attr, _ in six.iteritems(self.openapi_types):
         
     | 
| 
      
 352 
     | 
    
         
            +
                        value = getattr(self, attr)
         
     | 
| 
      
 353 
     | 
    
         
            +
                        if isinstance(value, list):
         
     | 
| 
      
 354 
     | 
    
         
            +
                            result[attr] = list(map(
         
     | 
| 
      
 355 
     | 
    
         
            +
                                lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
         
     | 
| 
      
 356 
     | 
    
         
            +
                                value
         
     | 
| 
      
 357 
     | 
    
         
            +
                            ))
         
     | 
| 
      
 358 
     | 
    
         
            +
                        elif hasattr(value, "to_dict"):
         
     | 
| 
      
 359 
     | 
    
         
            +
                            result[attr] = value.to_dict()
         
     | 
| 
      
 360 
     | 
    
         
            +
                        elif isinstance(value, dict):
         
     | 
| 
      
 361 
     | 
    
         
            +
                            result[attr] = dict(map(
         
     | 
| 
      
 362 
     | 
    
         
            +
                                lambda item: (item[0], item[1].to_dict())
         
     | 
| 
      
 363 
     | 
    
         
            +
                                if hasattr(item[1], "to_dict") else item,
         
     | 
| 
      
 364 
     | 
    
         
            +
                                value.items()
         
     | 
| 
      
 365 
     | 
    
         
            +
                            ))
         
     | 
| 
      
 366 
     | 
    
         
            +
                        else:
         
     | 
| 
      
 367 
     | 
    
         
            +
                            if attr in self.sensitive_list:
         
     | 
| 
      
 368 
     | 
    
         
            +
                                result[attr] = "****"
         
     | 
| 
      
 369 
     | 
    
         
            +
                            else:
         
     | 
| 
      
 370 
     | 
    
         
            +
                                result[attr] = value
         
     | 
| 
      
 371 
     | 
    
         
            +
             
     | 
| 
      
 372 
     | 
    
         
            +
                    return result
         
     | 
| 
      
 373 
     | 
    
         
            +
             
     | 
| 
      
 374 
     | 
    
         
            +
                def to_str(self):
         
     | 
| 
      
 375 
     | 
    
         
            +
                    """Returns the string representation of the model"""
         
     | 
| 
      
 376 
     | 
    
         
            +
                    import simplejson as json
         
     | 
| 
      
 377 
     | 
    
         
            +
                    if six.PY2:
         
     | 
| 
      
 378 
     | 
    
         
            +
                        import sys
         
     | 
| 
      
 379 
     | 
    
         
            +
                        reload(sys)
         
     | 
| 
      
 380 
     | 
    
         
            +
                        sys.setdefaultencoding("utf-8")
         
     | 
| 
      
 381 
     | 
    
         
            +
                    return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
         
     | 
| 
      
 382 
     | 
    
         
            +
             
     | 
| 
      
 383 
     | 
    
         
            +
                def __repr__(self):
         
     | 
| 
      
 384 
     | 
    
         
            +
                    """For `print`"""
         
     | 
| 
      
 385 
     | 
    
         
            +
                    return self.to_str()
         
     | 
| 
      
 386 
     | 
    
         
            +
             
     | 
| 
      
 387 
     | 
    
         
            +
                def __eq__(self, other):
         
     | 
| 
      
 388 
     | 
    
         
            +
                    """Returns true if both objects are equal"""
         
     | 
| 
      
 389 
     | 
    
         
            +
                    if not isinstance(other, ClusterNode):
         
     | 
| 
      
 390 
     | 
    
         
            +
                        return False
         
     | 
| 
      
 391 
     | 
    
         
            +
             
     | 
| 
      
 392 
     | 
    
         
            +
                    return self.__dict__ == other.__dict__
         
     | 
| 
      
 393 
     | 
    
         
            +
             
     | 
| 
      
 394 
     | 
    
         
            +
                def __ne__(self, other):
         
     | 
| 
      
 395 
     | 
    
         
            +
                    """Returns true if both objects are not equal"""
         
     | 
| 
      
 396 
     | 
    
         
            +
                    return not self == other
         
     |