Aurora
Adminer
Auto Root
WP Admin
cPanel Reset
Anti Backdoor
Root
lib
python3.9
site-packages
oci
bds
models
Upload
New Folder
New File
Name
Size
Permissions
Actions
..
-
-
-
Upload File
Select File
New Folder
Folder Name
New File
File Name
Add WordPress Admin
Database Host
Database Name
Database User
Database Password
Admin Username
Admin Password
cPanel Password Reset
Email Address
Edit: add_auto_scaling_configuration_details.py
# coding: utf-8 # Copyright (c) 2016, 2024, 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 AddAutoScalingConfigurationDetails(object): """ The information about the autoscale configuration. """ def __init__(self, **kwargs): """ Initializes a new AddAutoScalingConfigurationDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param display_name: The value to assign to the display_name property of this AddAutoScalingConfigurationDetails. :type display_name: str :param node_type: The value to assign to the node_type property of this AddAutoScalingConfigurationDetails. :type node_type: str :param is_enabled: The value to assign to the is_enabled property of this AddAutoScalingConfigurationDetails. :type is_enabled: bool :param cluster_admin_password: The value to assign to the cluster_admin_password property of this AddAutoScalingConfigurationDetails. :type cluster_admin_password: str :param policy: The value to assign to the policy property of this AddAutoScalingConfigurationDetails. :type policy: oci.bds.models.AutoScalePolicy :param policy_details: The value to assign to the policy_details property of this AddAutoScalingConfigurationDetails. :type policy_details: oci.bds.models.AddAutoScalePolicyDetails """ self.swagger_types = { 'display_name': 'str', 'node_type': 'str', 'is_enabled': 'bool', 'cluster_admin_password': 'str', 'policy': 'AutoScalePolicy', 'policy_details': 'AddAutoScalePolicyDetails' } self.attribute_map = { 'display_name': 'displayName', 'node_type': 'nodeType', 'is_enabled': 'isEnabled', 'cluster_admin_password': 'clusterAdminPassword', 'policy': 'policy', 'policy_details': 'policyDetails' } self._display_name = None self._node_type = None self._is_enabled = None self._cluster_admin_password = None self._policy = None self._policy_details = None @property def display_name(self): """ Gets the display_name of this AddAutoScalingConfigurationDetails. A user-friendly name. The name does not have to be unique, and it may be changed. Avoid entering confidential information. :return: The display_name of this AddAutoScalingConfigurationDetails. :rtype: str """ return self._display_name @display_name.setter def display_name(self, display_name): """ Sets the display_name of this AddAutoScalingConfigurationDetails. A user-friendly name. The name does not have to be unique, and it may be changed. Avoid entering confidential information. :param display_name: The display_name of this AddAutoScalingConfigurationDetails. :type: str """ self._display_name = display_name @property def node_type(self): """ **[Required]** Gets the node_type of this AddAutoScalingConfigurationDetails. A node type that is managed by an autoscale configuration. The only supported types are WORKER and COMPUTE_ONLY_WORKER. :return: The node_type of this AddAutoScalingConfigurationDetails. :rtype: str """ return self._node_type @node_type.setter def node_type(self, node_type): """ Sets the node_type of this AddAutoScalingConfigurationDetails. A node type that is managed by an autoscale configuration. The only supported types are WORKER and COMPUTE_ONLY_WORKER. :param node_type: The node_type of this AddAutoScalingConfigurationDetails. :type: str """ self._node_type = node_type @property def is_enabled(self): """ **[Required]** Gets the is_enabled of this AddAutoScalingConfigurationDetails. Whether the autoscale configuration is enabled. :return: The is_enabled of this AddAutoScalingConfigurationDetails. :rtype: bool """ return self._is_enabled @is_enabled.setter def is_enabled(self, is_enabled): """ Sets the is_enabled of this AddAutoScalingConfigurationDetails. Whether the autoscale configuration is enabled. :param is_enabled: The is_enabled of this AddAutoScalingConfigurationDetails. :type: bool """ self._is_enabled = is_enabled @property def cluster_admin_password(self): """ **[Required]** Gets the cluster_admin_password of this AddAutoScalingConfigurationDetails. Base-64 encoded password for the cluster (and Cloudera Manager) admin user. :return: The cluster_admin_password of this AddAutoScalingConfigurationDetails. :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 AddAutoScalingConfigurationDetails. Base-64 encoded password for the cluster (and Cloudera Manager) admin user. :param cluster_admin_password: The cluster_admin_password of this AddAutoScalingConfigurationDetails. :type: str """ self._cluster_admin_password = cluster_admin_password @property def policy(self): """ Gets the policy of this AddAutoScalingConfigurationDetails. :return: The policy of this AddAutoScalingConfigurationDetails. :rtype: oci.bds.models.AutoScalePolicy """ return self._policy @policy.setter def policy(self, policy): """ Sets the policy of this AddAutoScalingConfigurationDetails. :param policy: The policy of this AddAutoScalingConfigurationDetails. :type: oci.bds.models.AutoScalePolicy """ self._policy = policy @property def policy_details(self): """ Gets the policy_details of this AddAutoScalingConfigurationDetails. :return: The policy_details of this AddAutoScalingConfigurationDetails. :rtype: oci.bds.models.AddAutoScalePolicyDetails """ return self._policy_details @policy_details.setter def policy_details(self, policy_details): """ Sets the policy_details of this AddAutoScalingConfigurationDetails. :param policy_details: The policy_details of this AddAutoScalingConfigurationDetails. :type: oci.bds.models.AddAutoScalePolicyDetails """ self._policy_details = policy_details 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