Example #1
0
def delete_cluster(container_engine_client, module):
    result = oci_ce_utils.delete_and_wait(resource_type="cluster",
                                          client=container_engine_client,
                                          get_fn=container_engine_client.get_cluster,
                                          kwargs_get={"cluster_id": module.params["cluster_id"]},
                                          delete_fn=container_engine_client.delete_cluster,
                                          kwargs_delete={"cluster_id": module.params["cluster_id"]},
                                          module=module
                                          )
    return result
Example #2
0
def delete_work_request(container_engine_client, module):
    result = oci_ce_utils.delete_and_wait(
        resource_type="work_request",
        client=container_engine_client,
        get_fn=container_engine_client.get_work_request,
        kwargs_get={"work_request_id": module.params["work_request_id"]},
        delete_fn=container_engine_client.delete_work_request,
        kwargs_delete={"work_request_id": module.params["work_request_id"]},
        module=module)
    return result
def delete_node_pool(container_engine_client, module):
    result = oci_ce_utils.delete_and_wait(
        resource_type="node_pool",
        client=container_engine_client,
        get_fn=container_engine_client.get_node_pool,
        kwargs_get={"node_pool_id": module.params["node_pool_id"]},
        delete_fn=container_engine_client.delete_node_pool,
        kwargs_delete={"node_pool_id": module.params["node_pool_id"]},
        module=module,
        wait_applicable=False)
    return result