mds_plugin/mysql_database_service.py
def await_lifecycle_state(db_system_id, action_state, action_name, config, interactive):
    """Waits of the db_system to reach the desired lifecycle state

    Args:
        db_system_id (str): OCID of the DbSystem.
        action_state (str): The lifecycle state to reach
        action_name (str): The name of the action to be performed
        config (dict): An OCI config object or None
        interactive (bool): Indicates whether to execute in interactive mode

    Returns:
       None
    """
    import time

    # Get DbSystem Client
    db_sys = core.get_oci_db_system_client(config=config)

    if interactive:
        print(f'Waiting for DB System to {action_name}...')

    # Wait for the lifecycle to reach desired state
    cycles = 0
    while cycles < 48:
        db_system = db_sys.get_db_system(
            db_system_id=db_system_id).data
        if db_system.lifecycle_state == action_state:
            break
        else:
            time.sleep(5)
            s = "." * (cycles + 1)
            if interactive:
                print(
                    f'Waiting for DB System to {action_name}...{s}')
        cycles += 1

    if db_system.lifecycle_state != action_state:
        raise Exception("The DB System did not reach the correct "
                        "state within 4 minutes.")
    if interactive:
        print(f"DB System '{db_system.display_name}' did "
                f"{action_name} successfully.")
Waits of the db_system to reach the desired lifecycle state

    Args:
        db_system_id (str): OCID of the DbSystem.
        action_state (str): The lifecycle state to reach
        action_name (str): The name of the action to be performed
        config (dict): An OCI config object or None
        interactive (bool): Indicates whether to execute in interactive mode

    Returns:
       None
    
Waits of the db_system to reach the desired lifecycle state
Waits of the db_system to reach the desired lifecycle state
def await_lifecycle_state(db_system_id, action_state, action_name, config, interactive):
    import time
    db_sys = core.get_oci_db_system_client(config=config)
    if interactive:
        print(f'Waiting for DB System to {action_name}...')
    cycles = 0
    while cycles < 48:
        db_system = db_sys.get_db_system(
            db_system_id=db_system_id).data
        if db_system.lifecycle_state == action_state:
            break
        else:
            time.sleep(5)
            s = "." * (cycles + 1)
            if interactive:
                print(
                    f'Waiting for DB System to {action_name}...{s}')
        cycles += 1
    if db_system.lifecycle_state != action_state:
        raise Exception("The DB System did not reach the correct "
                        "state within 4 minutes.")
    if interactive:
        print(f"DB System '{db_system.display_name}' did "
                f"{action_name} successfully.")
def await_lifecycle_state ( db_system_id , action_state , action_name , config , interactive ) : import time db_sys = core . get_oci_db_system_client ( config = config ) if interactive : print ( f'Waiting for DB System to {action_name}...' ) cycles = 0 while cycles < 48 : db_system = db_sys . get_db_system ( db_system_id = db_system_id ) . data if db_system . lifecycle_state == action_state : break else : time . sleep ( 5 ) s = "." * ( cycles + 1 ) if interactive : print ( f'Waiting for DB System to {action_name}...{s}' ) cycles += 1 if db_system . lifecycle_state != action_state : raise Exception ( "The DB System did not reach the correct " "state within 4 minutes." ) if interactive : print ( f"DB System '{db_system.display_name}' did " f"{action_name} successfully." )
Waits of the db_system to reach the desired lifecycle state
Waits of the db_system to reach the desired lifecycle state
"""Waits of the db_system to reach the desired lifecycle state

    Args:
        db_system_id (str): OCID of the DbSystem.
        action_state (str): The lifecycle state to reach
        action_name (str): The name of the action to be performed
        config (dict): An OCI config object or None
        interactive (bool): Indicates whether to execute in interactive mode

    Returns:
       None
    """ # Get DbSystem Client
 # Wait for the lifecycle to reach desired state

None
db_system_id
OCID of the DbSystem.
OCID of the DbSystem .
action_state
The lifecycle state to reach
The lifecycle state to reach
action_name
The name of the action to be performed
The name of the action to be performed
config
An OCI config object or None
An OCI config object or None
interactive
Indicates whether to execute in interactive mode
Indicates whether to execute in interactive mode