public class NotebookApiImpl extends Object implements NotebookAPI
Modifier and Type | Method and Description |
---|---|
InvokableBuilder<NotebookResult> |
bindNotebookToCluster(String clusterId,
String notebookId)
Corresponds to http://docs.qubole.com/en/latest/rest-api/notebook_api/bind-notebook.html
|
InvokableBuilder<NotebookResult> |
clone(String name,
String location,
String clusterId,
String clonedFromNotebook)
Corresponds to http://docs.qubole.com/en/latest/rest-api/notebook_api/clone-notebook.html
|
InvokableBuilder<NotebookResult> |
configure(String name,
String location,
String clusterId,
String notebookId)
Corresponds to http://docs.qubole.com/en/latest/rest-api/notebook_api/configure-notebook.html
|
InvokableBuilder<NotebookResult> |
create(String name,
String location,
String noteType,
String clusterId)
Corresponds to http://docs.qubole.com/en/latest/rest-api/notebook_api/create-notebook.html
|
InvokableBuilder<NotebookResult> |
delete(String notebookId)
Corresponds to http://docs.qubole.com/en/latest/rest-api/notebook_api/delete-notebook.html
|
public InvokableBuilder<NotebookResult> create(String name, String location, String noteType, String clusterId)
NotebookAPI
create
in interface NotebookAPI
name
- name of the notebooklocation
- location of the notebooknoteType
- type of the notebook, available are "spark" and "presto"clusterId
- cluster id of the cluster to associate notebook withpublic InvokableBuilder<NotebookResult> configure(String name, String location, String clusterId, String notebookId)
NotebookAPI
configure
in interface NotebookAPI
name
- name of the notebooklocation
- location of the notebookclusterId
- cluster id of the cluster to associate notebook withnotebookId
- notebook id to configurepublic InvokableBuilder<NotebookResult> clone(String name, String location, String clusterId, String clonedFromNotebook)
NotebookAPI
clone
in interface NotebookAPI
name
- name of the notebooklocation
- location of the notebookclusterId
- cluster id of the cluster to associate notebook withclonedFromNotebook
- notebook id from which the new notebook is clonedpublic InvokableBuilder<NotebookResult> bindNotebookToCluster(String clusterId, String notebookId)
NotebookAPI
bindNotebookToCluster
in interface NotebookAPI
clusterId
- cluster id of the cluster who needs to be associated with notebooknotebookId
- notebook idpublic InvokableBuilder<NotebookResult> delete(String notebookId)
NotebookAPI
delete
in interface NotebookAPI
notebookId
- notebook idCopyright © 2020. All rights reserved.