com.databricks.sdk.service.compute.GlobalInitScriptsService Maven / Gradle / Ivy
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.compute;
import com.databricks.sdk.support.Generated;
/**
* The Global Init Scripts API enables Workspace administrators to configure global initialization
* scripts for their workspace. These scripts run on every node in every cluster in the workspace.
*
* **Important:** Existing clusters must be restarted to pick up any changes made to global init
* scripts. Global init scripts are run in order. If the init script returns with a bad exit code,
* the Apache Spark container fails to launch and init scripts with later position are skipped. If
* enough containers fail, the entire cluster fails with a `GLOBAL_INIT_SCRIPT_FAILURE` error code.
*
*
This is the high-level interface, that contains generated methods.
*
*
Evolving: this interface is under development. Method signatures may change.
*/
@Generated
public interface GlobalInitScriptsService {
/**
* Create init script.
*
*
Creates a new global init script in this workspace.
*/
CreateResponse create(GlobalInitScriptCreateRequest globalInitScriptCreateRequest);
/**
* Delete init script.
*
*
Deletes a global init script.
*/
void delete(DeleteGlobalInitScriptRequest deleteGlobalInitScriptRequest);
/**
* Get an init script.
*
*
Gets all the details of a script, including its Base64-encoded contents.
*/
GlobalInitScriptDetailsWithContent get(GetGlobalInitScriptRequest getGlobalInitScriptRequest);
/**
* Get init scripts.
*
*
Get a list of all global init scripts for this workspace. This returns all properties for
* each script but **not** the script contents. To retrieve the contents of a script, use the [get
* a global init script](:method:globalinitscripts/get) operation.
*/
ListGlobalInitScriptsResponse list();
/**
* Update init script.
*
*
Updates a global init script, specifying only the fields to change. All fields are optional.
* Unspecified fields retain their current value.
*/
void update(GlobalInitScriptUpdateRequest globalInitScriptUpdateRequest);
}