BlueGreenDeployment¶
-
class
oci.mysql.models.BlueGreenDeployment(**kwargs)¶ Bases:
objectA blue/green deployment resource.
Attributes
LIFECYCLE_STATE_ACTIVEA constant which can be used with the lifecycle_state property of a BlueGreenDeployment. LIFECYCLE_STATE_CREATINGA constant which can be used with the lifecycle_state property of a BlueGreenDeployment. LIFECYCLE_STATE_DELETEDA constant which can be used with the lifecycle_state property of a BlueGreenDeployment. LIFECYCLE_STATE_DELETINGA constant which can be used with the lifecycle_state property of a BlueGreenDeployment. LIFECYCLE_STATE_FAILEDA constant which can be used with the lifecycle_state property of a BlueGreenDeployment. LIFECYCLE_STATE_UPDATINGA constant which can be used with the lifecycle_state property of a BlueGreenDeployment. SSL_MODE_DISABLEDA constant which can be used with the ssl_mode property of a BlueGreenDeployment. SSL_MODE_REQUIREDA constant which can be used with the ssl_mode property of a BlueGreenDeployment. SSL_MODE_VERIFY_CAA constant which can be used with the ssl_mode property of a BlueGreenDeployment. SSL_MODE_VERIFY_IDENTITYA constant which can be used with the ssl_mode property of a BlueGreenDeployment. SWITCHOVER_STATUS_NOT_STARTEDA constant which can be used with the switchover_status property of a BlueGreenDeployment. SWITCHOVER_STATUS_READY_FOR_SWITCHOVERA constant which can be used with the switchover_status property of a BlueGreenDeployment. SWITCHOVER_STATUS_REPLICATING_DATAA constant which can be used with the switchover_status property of a BlueGreenDeployment. SWITCHOVER_STATUS_SWITCHOVER_COMPLETEDA constant which can be used with the switchover_status property of a BlueGreenDeployment. SWITCHOVER_STATUS_SWITCHOVER_FAILEDA constant which can be used with the switchover_status property of a BlueGreenDeployment. SWITCHOVER_STATUS_SWITCHOVER_IN_PROGRESSA constant which can be used with the switchover_status property of a BlueGreenDeployment. SWITCHOVER_STATUS_VALIDATINGA constant which can be used with the switchover_status property of a BlueGreenDeployment. active_db_system_idGets the active_db_system_id of this BlueGreenDeployment. compartment_id[Required] Gets the compartment_id of this BlueGreenDeployment. defined_tagsGets the defined_tags of this BlueGreenDeployment. display_nameGets the display_name of this BlueGreenDeployment. freeform_tagsGets the freeform_tags of this BlueGreenDeployment. id[Required] Gets the id of this BlueGreenDeployment. lifecycle_detailsGets the lifecycle_details of this BlueGreenDeployment. lifecycle_state[Required] Gets the lifecycle_state of this BlueGreenDeployment. replication_channel_idGets the replication_channel_id of this BlueGreenDeployment. source_db_system_idGets the source_db_system_id of this BlueGreenDeployment. ssl_modeGets the ssl_mode of this BlueGreenDeployment. switchover_statusGets the switchover_status of this BlueGreenDeployment. system_tagsGets the system_tags of this BlueGreenDeployment. target_db_system_detailsGets the target_db_system_details of this BlueGreenDeployment. target_db_system_idGets the target_db_system_id of this BlueGreenDeployment. time_created[Required] Gets the time_created of this BlueGreenDeployment. time_updatedGets the time_updated of this BlueGreenDeployment. Methods
__init__(**kwargs)Initializes a new BlueGreenDeployment object with values from keyword arguments. -
LIFECYCLE_STATE_ACTIVE= 'ACTIVE'¶ A constant which can be used with the lifecycle_state property of a BlueGreenDeployment. This constant has a value of “ACTIVE”
-
LIFECYCLE_STATE_CREATING= 'CREATING'¶ A constant which can be used with the lifecycle_state property of a BlueGreenDeployment. This constant has a value of “CREATING”
-
LIFECYCLE_STATE_DELETED= 'DELETED'¶ A constant which can be used with the lifecycle_state property of a BlueGreenDeployment. This constant has a value of “DELETED”
-
LIFECYCLE_STATE_DELETING= 'DELETING'¶ A constant which can be used with the lifecycle_state property of a BlueGreenDeployment. This constant has a value of “DELETING”
-
LIFECYCLE_STATE_FAILED= 'FAILED'¶ A constant which can be used with the lifecycle_state property of a BlueGreenDeployment. This constant has a value of “FAILED”
-
LIFECYCLE_STATE_UPDATING= 'UPDATING'¶ A constant which can be used with the lifecycle_state property of a BlueGreenDeployment. This constant has a value of “UPDATING”
-
SSL_MODE_DISABLED= 'DISABLED'¶ A constant which can be used with the ssl_mode property of a BlueGreenDeployment. This constant has a value of “DISABLED”
-
SSL_MODE_REQUIRED= 'REQUIRED'¶ A constant which can be used with the ssl_mode property of a BlueGreenDeployment. This constant has a value of “REQUIRED”
-
SSL_MODE_VERIFY_CA= 'VERIFY_CA'¶ A constant which can be used with the ssl_mode property of a BlueGreenDeployment. This constant has a value of “VERIFY_CA”
-
SSL_MODE_VERIFY_IDENTITY= 'VERIFY_IDENTITY'¶ A constant which can be used with the ssl_mode property of a BlueGreenDeployment. This constant has a value of “VERIFY_IDENTITY”
-
SWITCHOVER_STATUS_NOT_STARTED= 'NOT_STARTED'¶ A constant which can be used with the switchover_status property of a BlueGreenDeployment. This constant has a value of “NOT_STARTED”
-
SWITCHOVER_STATUS_READY_FOR_SWITCHOVER= 'READY_FOR_SWITCHOVER'¶ A constant which can be used with the switchover_status property of a BlueGreenDeployment. This constant has a value of “READY_FOR_SWITCHOVER”
-
SWITCHOVER_STATUS_REPLICATING_DATA= 'REPLICATING_DATA'¶ A constant which can be used with the switchover_status property of a BlueGreenDeployment. This constant has a value of “REPLICATING_DATA”
-
SWITCHOVER_STATUS_SWITCHOVER_COMPLETED= 'SWITCHOVER_COMPLETED'¶ A constant which can be used with the switchover_status property of a BlueGreenDeployment. This constant has a value of “SWITCHOVER_COMPLETED”
-
SWITCHOVER_STATUS_SWITCHOVER_FAILED= 'SWITCHOVER_FAILED'¶ A constant which can be used with the switchover_status property of a BlueGreenDeployment. This constant has a value of “SWITCHOVER_FAILED”
-
SWITCHOVER_STATUS_SWITCHOVER_IN_PROGRESS= 'SWITCHOVER_IN_PROGRESS'¶ A constant which can be used with the switchover_status property of a BlueGreenDeployment. This constant has a value of “SWITCHOVER_IN_PROGRESS”
-
SWITCHOVER_STATUS_VALIDATING= 'VALIDATING'¶ A constant which can be used with the switchover_status property of a BlueGreenDeployment. This constant has a value of “VALIDATING”
-
__init__(**kwargs)¶ Initializes a new BlueGreenDeployment object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - target_db_system_details (oci.mysql.models.BlueGreenDeploymentTargetDbSystemDetails) – The value to assign to the target_db_system_details property of this BlueGreenDeployment.
- replication_channel_id (str) – The value to assign to the replication_channel_id property of this BlueGreenDeployment.
- ssl_mode (str) – The value to assign to the ssl_mode property of this BlueGreenDeployment. Allowed values for this property are: “VERIFY_IDENTITY”, “VERIFY_CA”, “REQUIRED”, “DISABLED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- id (str) – The value to assign to the id property of this BlueGreenDeployment.
- compartment_id (str) – The value to assign to the compartment_id property of this BlueGreenDeployment.
- display_name (str) – The value to assign to the display_name property of this BlueGreenDeployment.
- lifecycle_state (str) – The value to assign to the lifecycle_state property of this BlueGreenDeployment. Allowed values for this property are: “CREATING”, “ACTIVE”, “UPDATING”, “FAILED”, “DELETING”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- lifecycle_details (str) – The value to assign to the lifecycle_details property of this BlueGreenDeployment.
- source_db_system_id (str) – The value to assign to the source_db_system_id property of this BlueGreenDeployment.
- target_db_system_id (str) – The value to assign to the target_db_system_id property of this BlueGreenDeployment.
- active_db_system_id (str) – The value to assign to the active_db_system_id property of this BlueGreenDeployment.
- switchover_status (str) – The value to assign to the switchover_status property of this BlueGreenDeployment. Allowed values for this property are: “NOT_STARTED”, “VALIDATING”, “REPLICATING_DATA”, “READY_FOR_SWITCHOVER”, “SWITCHOVER_IN_PROGRESS”, “SWITCHOVER_COMPLETED”, “SWITCHOVER_FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this BlueGreenDeployment.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this BlueGreenDeployment.
- system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this BlueGreenDeployment.
- time_created (datetime) – The value to assign to the time_created property of this BlueGreenDeployment.
- time_updated (datetime) – The value to assign to the time_updated property of this BlueGreenDeployment.
-
active_db_system_id¶ Gets the active_db_system_id of this BlueGreenDeployment. The DB system OCID that currently owns the client-facing VIP and serves traffic.
Returns: The active_db_system_id of this BlueGreenDeployment. Return type: str
-
compartment_id¶ [Required] Gets the compartment_id of this BlueGreenDeployment. The OCID of the compartment.
Returns: The compartment_id of this BlueGreenDeployment. Return type: str
Gets the defined_tags of this BlueGreenDeployment. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
Returns: The defined_tags of this BlueGreenDeployment. Return type: dict(str, dict(str, object))
-
display_name¶ Gets the display_name of this BlueGreenDeployment. The display name of the blue/green deployment.
Returns: The display_name of this BlueGreenDeployment. Return type: str
Gets the freeform_tags of this BlueGreenDeployment. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}
Returns: The freeform_tags of this BlueGreenDeployment. Return type: dict(str, str)
-
id¶ [Required] Gets the id of this BlueGreenDeployment. The OCID of the blue/green deployment.
Returns: The id of this BlueGreenDeployment. Return type: str
-
lifecycle_details¶ Gets the lifecycle_details of this BlueGreenDeployment. Additional lifecycle details.
Returns: The lifecycle_details of this BlueGreenDeployment. Return type: str
-
lifecycle_state¶ [Required] Gets the lifecycle_state of this BlueGreenDeployment. The current lifecycle state.
Allowed values for this property are: “CREATING”, “ACTIVE”, “UPDATING”, “FAILED”, “DELETING”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The lifecycle_state of this BlueGreenDeployment. Return type: str
-
replication_channel_id¶ Gets the replication_channel_id of this BlueGreenDeployment. Replication channel OCID.
Returns: The replication_channel_id of this BlueGreenDeployment. Return type: str
-
source_db_system_id¶ Gets the source_db_system_id of this BlueGreenDeployment. Blue/original source DB system OCID for the deployment pair.
Returns: The source_db_system_id of this BlueGreenDeployment. Return type: str
-
ssl_mode¶ Gets the ssl_mode of this BlueGreenDeployment. SSL mode used for the replication channel created by the blue/green workflow.
Allowed values for this property are: “VERIFY_IDENTITY”, “VERIFY_CA”, “REQUIRED”, “DISABLED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The ssl_mode of this BlueGreenDeployment. Return type: str
-
switchover_status¶ Gets the switchover_status of this BlueGreenDeployment. Stage of the most recent switchover workflow. SWITCHOVER_FAILED indicates terminal switchover failure.
Allowed values for this property are: “NOT_STARTED”, “VALIDATING”, “REPLICATING_DATA”, “READY_FOR_SWITCHOVER”, “SWITCHOVER_IN_PROGRESS”, “SWITCHOVER_COMPLETED”, “SWITCHOVER_FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The switchover_status of this BlueGreenDeployment. Return type: str
Gets the system_tags of this BlueGreenDeployment. Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
Returns: The system_tags of this BlueGreenDeployment. Return type: dict(str, dict(str, object))
-
target_db_system_details¶ Gets the target_db_system_details of this BlueGreenDeployment.
Returns: The target_db_system_details of this BlueGreenDeployment. Return type: oci.mysql.models.BlueGreenDeploymentTargetDbSystemDetails
-
target_db_system_id¶ Gets the target_db_system_id of this BlueGreenDeployment. Green/target DB system OCID for the deployment pair.
Returns: The target_db_system_id of this BlueGreenDeployment. Return type: str
-
time_created¶ [Required] Gets the time_created of this BlueGreenDeployment. The time the deployment was created.
Returns: The time_created of this BlueGreenDeployment. Return type: datetime
-
time_updated¶ Gets the time_updated of this BlueGreenDeployment. The time the deployment was last updated.
Returns: The time_updated of this BlueGreenDeployment. Return type: datetime
-