ControlledUpdateDbSystemDetails

class oci.mysql.models.ControlledUpdateDbSystemDetails(**kwargs)

Bases: object

Details of the controlled update action, including the target subset of MySQL instances to update based on their role.

Attributes:

TARGET_DB_INSTANCES_ALL_BUT_PRIMARY

A constant which can be used with the target_db_instances property of a ControlledUpdateDbSystemDetails.

TARGET_DB_INSTANCES_PRIMARY_ONLY

A constant which can be used with the target_db_instances property of a ControlledUpdateDbSystemDetails.

target_db_instances

Gets the target_db_instances of this ControlledUpdateDbSystemDetails. Defines the MySQL instances to be operated during a controlled update. - ALL_BUT_PRIMARY: Update all MySQL instances in a highly available DB System except the primary group member, without triggering a controlled failover. - PRIMARY_ONLY: Update the primary group member in a highly available DB System after a controlled failover (downtime is expected). This operation requires that the other MySQL instances have been previously updated using the ALL_BUT_PRIMARY option.

target_mysql_version

Gets the target_mysql_version of this ControlledUpdateDbSystemDetails.

Methods:

__init__(**kwargs)

Initializes a new ControlledUpdateDbSystemDetails object with values from keyword arguments.

TARGET_DB_INSTANCES_ALL_BUT_PRIMARY = 'ALL_BUT_PRIMARY'

A constant which can be used with the target_db_instances property of a ControlledUpdateDbSystemDetails. This constant has a value of “ALL_BUT_PRIMARY”

TARGET_DB_INSTANCES_PRIMARY_ONLY = 'PRIMARY_ONLY'

A constant which can be used with the target_db_instances property of a ControlledUpdateDbSystemDetails. This constant has a value of “PRIMARY_ONLY”

__init__(**kwargs)

Initializes a new ControlledUpdateDbSystemDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • target_mysql_version (str) – The value to assign to the target_mysql_version property of this ControlledUpdateDbSystemDetails.

  • target_db_instances (str) – The value to assign to the target_db_instances property of this ControlledUpdateDbSystemDetails. Allowed values for this property are: “ALL_BUT_PRIMARY”, “PRIMARY_ONLY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

property target_db_instances

Gets the target_db_instances of this ControlledUpdateDbSystemDetails. Defines the MySQL instances to be operated during a controlled update.

  • ALL_BUT_PRIMARY: Update all MySQL instances in a highly available DB System except the primary group member, without triggering a controlled failover.

  • PRIMARY_ONLY: Update the primary group member in a highly available DB System after a controlled failover (downtime is expected). This operation requires that the other MySQL instances have been previously updated using the ALL_BUT_PRIMARY option.

Allowed values for this property are: “ALL_BUT_PRIMARY”, “PRIMARY_ONLY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The target_db_instances of this ControlledUpdateDbSystemDetails.

Return type

str

property target_mysql_version

Gets the target_mysql_version of this ControlledUpdateDbSystemDetails. The MySQL version to be applied to the selected instances.

Returns

The target_mysql_version of this ControlledUpdateDbSystemDetails.

Return type

str