Exemple #1
0
    def refresh_vdb(self, context, group_name, vdb_name):
        logger = driver_helper.get_logger_with_thread_id(context)
        engine_config = parse_delphix_resource(context)
        refresh_operation = RefreshVBDOperation(engine_conf=engine_config,
                                                logger=logger)

        refresh_operation.run(vdb_name=vdb_name, group_name=group_name)
Exemple #2
0
    def provision_vdb(self, context, target_db_name, source_db_name,
                      source_group_name, target_group_name, timestamp,
                      vdb_type):
        logger = driver_helper.get_logger_with_thread_id(context)
        engine_config = parse_delphix_resource(context)
        cs_api = driver_helper.get_api(context)
        provision_operation = ProvisionVBDOperation(engine_conf=engine_config,
                                                    logger=logger)

        reservation_id = get_reservation_context_attribute(
            'reservation_id', context)
        provision_operation.run(target_db_name=target_db_name,
                                souce_db_name=source_db_name,
                                source_group_name=source_group_name,
                                target_group_name=target_group_name,
                                timestamp=timestamp,
                                vdb_type=vdb_type,
                                cloudshell_api=cs_api,
                                reservation_id=reservation_id)
Exemple #3
0
 def get_inventory(self, context):
     logger = driver_helper.get_logger_with_thread_id(context)
     engine_config = parse_delphix_resource(context)
     autoload_operation = AutoloadOperation(engine_conf=engine_config,
                                            logger=logger)
     return autoload_operation.run()