File manager - Edit - /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/bds/models/add_master_nodes_details.py
Back
# coding: utf-8 # Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20190531 from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class AddMasterNodesDetails(object): """ The information about added master nodes. """ def __init__(self, **kwargs): """ Initializes a new AddMasterNodesDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param cluster_admin_password: The value to assign to the cluster_admin_password property of this AddMasterNodesDetails. :type cluster_admin_password: str :param number_of_master_nodes: The value to assign to the number_of_master_nodes property of this AddMasterNodesDetails. :type number_of_master_nodes: int :param shape: The value to assign to the shape property of this AddMasterNodesDetails. :type shape: str :param block_volume_size_in_gbs: The value to assign to the block_volume_size_in_gbs property of this AddMasterNodesDetails. :type block_volume_size_in_gbs: int :param shape_config: The value to assign to the shape_config property of this AddMasterNodesDetails. :type shape_config: oci.bds.models.ShapeConfigDetails """ self.swagger_types = { 'cluster_admin_password': 'str', 'number_of_master_nodes': 'int', 'shape': 'str', 'block_volume_size_in_gbs': 'int', 'shape_config': 'ShapeConfigDetails' } self.attribute_map = { 'cluster_admin_password': 'clusterAdminPassword', 'number_of_master_nodes': 'numberOfMasterNodes', 'shape': 'shape', 'block_volume_size_in_gbs': 'blockVolumeSizeInGBs', 'shape_config': 'shapeConfig' } self._cluster_admin_password = None self._number_of_master_nodes = None self._shape = None self._block_volume_size_in_gbs = None self._shape_config = None @property def cluster_admin_password(self): """ **[Required]** Gets the cluster_admin_password of this AddMasterNodesDetails. Base-64 encoded Cluster Admin Password for cluster admin user. :return: The cluster_admin_password of this AddMasterNodesDetails. :rtype: str """ return self._cluster_admin_password @cluster_admin_password.setter def cluster_admin_password(self, cluster_admin_password): """ Sets the cluster_admin_password of this AddMasterNodesDetails. Base-64 encoded Cluster Admin Password for cluster admin user. :param cluster_admin_password: The cluster_admin_password of this AddMasterNodesDetails. :type: str """ self._cluster_admin_password = cluster_admin_password @property def number_of_master_nodes(self): """ **[Required]** Gets the number_of_master_nodes of this AddMasterNodesDetails. Number of additional master nodes for the cluster. :return: The number_of_master_nodes of this AddMasterNodesDetails. :rtype: int """ return self._number_of_master_nodes @number_of_master_nodes.setter def number_of_master_nodes(self, number_of_master_nodes): """ Sets the number_of_master_nodes of this AddMasterNodesDetails. Number of additional master nodes for the cluster. :param number_of_master_nodes: The number_of_master_nodes of this AddMasterNodesDetails. :type: int """ self._number_of_master_nodes = number_of_master_nodes @property def shape(self): """ Gets the shape of this AddMasterNodesDetails. Shape of the node. It's a read-only property derived from existing Master node. :return: The shape of this AddMasterNodesDetails. :rtype: str """ return self._shape @shape.setter def shape(self, shape): """ Sets the shape of this AddMasterNodesDetails. Shape of the node. It's a read-only property derived from existing Master node. :param shape: The shape of this AddMasterNodesDetails. :type: str """ self._shape = shape @property def block_volume_size_in_gbs(self): """ Gets the block_volume_size_in_gbs of this AddMasterNodesDetails. The size of block volume in GB to be attached to the given node. It's a read-only property. :return: The block_volume_size_in_gbs of this AddMasterNodesDetails. :rtype: int """ return self._block_volume_size_in_gbs @block_volume_size_in_gbs.setter def block_volume_size_in_gbs(self, block_volume_size_in_gbs): """ Sets the block_volume_size_in_gbs of this AddMasterNodesDetails. The size of block volume in GB to be attached to the given node. It's a read-only property. :param block_volume_size_in_gbs: The block_volume_size_in_gbs of this AddMasterNodesDetails. :type: int """ self._block_volume_size_in_gbs = block_volume_size_in_gbs @property def shape_config(self): """ Gets the shape_config of this AddMasterNodesDetails. :return: The shape_config of this AddMasterNodesDetails. :rtype: oci.bds.models.ShapeConfigDetails """ return self._shape_config @shape_config.setter def shape_config(self, shape_config): """ Sets the shape_config of this AddMasterNodesDetails. :param shape_config: The shape_config of this AddMasterNodesDetails. :type: oci.bds.models.ShapeConfigDetails """ self._shape_config = shape_config def __repr__(self): return formatted_flat_dict(self) def __eq__(self, other): if other is None: return False return self.__dict__ == other.__dict__ def __ne__(self, other): return not self == other
| ver. 1.4 |
Github
|
.
| PHP 8.2.32 | Generation time: 0.07 |
proxy
|
phpinfo
|
Settings