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: node_replace_configuration.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 NodeReplaceConfiguration(object): """ The information about the NodeReplaceConfiguration. """ #: A constant which can be used with the lifecycle_state property of a NodeReplaceConfiguration. #: This constant has a value of "CREATING" LIFECYCLE_STATE_CREATING = "CREATING" #: A constant which can be used with the lifecycle_state property of a NodeReplaceConfiguration. #: This constant has a value of "ACTIVE" LIFECYCLE_STATE_ACTIVE = "ACTIVE" #: A constant which can be used with the lifecycle_state property of a NodeReplaceConfiguration. #: This constant has a value of "UPDATING" LIFECYCLE_STATE_UPDATING = "UPDATING" #: A constant which can be used with the lifecycle_state property of a NodeReplaceConfiguration. #: This constant has a value of "DELETING" LIFECYCLE_STATE_DELETING = "DELETING" #: A constant which can be used with the lifecycle_state property of a NodeReplaceConfiguration. #: This constant has a value of "DELETED" LIFECYCLE_STATE_DELETED = "DELETED" #: A constant which can be used with the lifecycle_state property of a NodeReplaceConfiguration. #: This constant has a value of "FAILED" LIFECYCLE_STATE_FAILED = "FAILED" #: A constant which can be used with the metric_type property of a NodeReplaceConfiguration. #: This constant has a value of "INSTANCE_STATUS" METRIC_TYPE_INSTANCE_STATUS = "INSTANCE_STATUS" #: A constant which can be used with the metric_type property of a NodeReplaceConfiguration. #: This constant has a value of "INSTANCE_ACCESSIBILITY_STATUS" METRIC_TYPE_INSTANCE_ACCESSIBILITY_STATUS = "INSTANCE_ACCESSIBILITY_STATUS" def __init__(self, **kwargs): """ Initializes a new NodeReplaceConfiguration object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param id: The value to assign to the id property of this NodeReplaceConfiguration. :type id: str :param bds_instance_id: The value to assign to the bds_instance_id property of this NodeReplaceConfiguration. :type bds_instance_id: str :param display_name: The value to assign to the display_name property of this NodeReplaceConfiguration. :type display_name: str :param level_type_details: The value to assign to the level_type_details property of this NodeReplaceConfiguration. :type level_type_details: oci.bds.models.LevelTypeDetails :param lifecycle_state: The value to assign to the lifecycle_state property of this NodeReplaceConfiguration. Allowed values for this property are: "CREATING", "ACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param time_created: The value to assign to the time_created property of this NodeReplaceConfiguration. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this NodeReplaceConfiguration. :type time_updated: datetime :param metric_type: The value to assign to the metric_type property of this NodeReplaceConfiguration. Allowed values for this property are: "INSTANCE_STATUS", "INSTANCE_ACCESSIBILITY_STATUS", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type metric_type: str :param duration_in_minutes: The value to assign to the duration_in_minutes property of this NodeReplaceConfiguration. :type duration_in_minutes: int """ self.swagger_types = { 'id': 'str', 'bds_instance_id': 'str', 'display_name': 'str', 'level_type_details': 'LevelTypeDetails', 'lifecycle_state': 'str', 'time_created': 'datetime', 'time_updated': 'datetime', 'metric_type': 'str', 'duration_in_minutes': 'int' } self.attribute_map = { 'id': 'id', 'bds_instance_id': 'bdsInstanceId', 'display_name': 'displayName', 'level_type_details': 'levelTypeDetails', 'lifecycle_state': 'lifecycleState', 'time_created': 'timeCreated', 'time_updated': 'timeUpdated', 'metric_type': 'metricType', 'duration_in_minutes': 'durationInMinutes' } self._id = None self._bds_instance_id = None self._display_name = None self._level_type_details = None self._lifecycle_state = None self._time_created = None self._time_updated = None self._metric_type = None self._duration_in_minutes = None @property def id(self): """ **[Required]** Gets the id of this NodeReplaceConfiguration. The unique identifier for the NodeReplaceConfiguration. :return: The id of this NodeReplaceConfiguration. :rtype: str """ return self._id @id.setter def id(self, id): """ Sets the id of this NodeReplaceConfiguration. The unique identifier for the NodeReplaceConfiguration. :param id: The id of this NodeReplaceConfiguration. :type: str """ self._id = id @property def bds_instance_id(self): """ **[Required]** Gets the bds_instance_id of this NodeReplaceConfiguration. The OCID of the bdsInstance which is the parent resource id. :return: The bds_instance_id of this NodeReplaceConfiguration. :rtype: str """ return self._bds_instance_id @bds_instance_id.setter def bds_instance_id(self, bds_instance_id): """ Sets the bds_instance_id of this NodeReplaceConfiguration. The OCID of the bdsInstance which is the parent resource id. :param bds_instance_id: The bds_instance_id of this NodeReplaceConfiguration. :type: str """ self._bds_instance_id = bds_instance_id @property def display_name(self): """ **[Required]** Gets the display_name of this NodeReplaceConfiguration. A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name does not have to be unique, and it may be changed. Avoid entering confidential information. :return: The display_name of this NodeReplaceConfiguration. :rtype: str """ return self._display_name @display_name.setter def display_name(self, display_name): """ Sets the display_name of this NodeReplaceConfiguration. A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. 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 NodeReplaceConfiguration. :type: str """ self._display_name = display_name @property def level_type_details(self): """ **[Required]** Gets the level_type_details of this NodeReplaceConfiguration. :return: The level_type_details of this NodeReplaceConfiguration. :rtype: oci.bds.models.LevelTypeDetails """ return self._level_type_details @level_type_details.setter def level_type_details(self, level_type_details): """ Sets the level_type_details of this NodeReplaceConfiguration. :param level_type_details: The level_type_details of this NodeReplaceConfiguration. :type: oci.bds.models.LevelTypeDetails """ self._level_type_details = level_type_details @property def lifecycle_state(self): """ **[Required]** Gets the lifecycle_state of this NodeReplaceConfiguration. The state of the NodeReplaceConfiguration. Allowed values for this property are: "CREATING", "ACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this NodeReplaceConfiguration. :rtype: str """ return self._lifecycle_state @lifecycle_state.setter def lifecycle_state(self, lifecycle_state): """ Sets the lifecycle_state of this NodeReplaceConfiguration. The state of the NodeReplaceConfiguration. :param lifecycle_state: The lifecycle_state of this NodeReplaceConfiguration. :type: str """ allowed_values = ["CREATING", "ACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state @property def time_created(self): """ **[Required]** Gets the time_created of this NodeReplaceConfiguration. The time the NodeReplaceConfiguration was created, shown as an RFC 3339 formatted datetime string. :return: The time_created of this NodeReplaceConfiguration. :rtype: datetime """ return self._time_created @time_created.setter def time_created(self, time_created): """ Sets the time_created of this NodeReplaceConfiguration. The time the NodeReplaceConfiguration was created, shown as an RFC 3339 formatted datetime string. :param time_created: The time_created of this NodeReplaceConfiguration. :type: datetime """ self._time_created = time_created @property def time_updated(self): """ **[Required]** Gets the time_updated of this NodeReplaceConfiguration. The time the NodeReplaceConfiguration was updated, shown as an RFC 3339 formatted datetime string. :return: The time_updated of this NodeReplaceConfiguration. :rtype: datetime """ return self._time_updated @time_updated.setter def time_updated(self, time_updated): """ Sets the time_updated of this NodeReplaceConfiguration. The time the NodeReplaceConfiguration was updated, shown as an RFC 3339 formatted datetime string. :param time_updated: The time_updated of this NodeReplaceConfiguration. :type: datetime """ self._time_updated = time_updated @property def metric_type(self): """ **[Required]** Gets the metric_type of this NodeReplaceConfiguration. Type of compute instance health metric to use for node replacement Allowed values for this property are: "INSTANCE_STATUS", "INSTANCE_ACCESSIBILITY_STATUS", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The metric_type of this NodeReplaceConfiguration. :rtype: str """ return self._metric_type @metric_type.setter def metric_type(self, metric_type): """ Sets the metric_type of this NodeReplaceConfiguration. Type of compute instance health metric to use for node replacement :param metric_type: The metric_type of this NodeReplaceConfiguration. :type: str """ allowed_values = ["INSTANCE_STATUS", "INSTANCE_ACCESSIBILITY_STATUS"] if not value_allowed_none_or_none_sentinel(metric_type, allowed_values): metric_type = 'UNKNOWN_ENUM_VALUE' self._metric_type = metric_type @property def duration_in_minutes(self): """ **[Required]** Gets the duration_in_minutes of this NodeReplaceConfiguration. This value is the minimum period of time to wait for metric emission before triggering node replacement. The value is in minutes. :return: The duration_in_minutes of this NodeReplaceConfiguration. :rtype: int """ return self._duration_in_minutes @duration_in_minutes.setter def duration_in_minutes(self, duration_in_minutes): """ Sets the duration_in_minutes of this NodeReplaceConfiguration. This value is the minimum period of time to wait for metric emission before triggering node replacement. The value is in minutes. :param duration_in_minutes: The duration_in_minutes of this NodeReplaceConfiguration. :type: int """ self._duration_in_minutes = duration_in_minutes 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