Package com.mypurecloud.sdk.v2.api
Class ScriptsApi
java.lang.Object
com.mypurecloud.sdk.v2.api.ScriptsApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetScript(GetScriptRequest request) Get a scriptgetScript(ApiRequest<Void> request) Get a scriptGet a scriptgetScriptPage(GetScriptPageRequest request) Get a pagegetScriptPage(ApiRequest<Void> request) Get a pagegetScriptPage(String scriptId, String pageId, String scriptDataVersion) Get a pagegetScriptPages(GetScriptPagesRequest request) Get the list of pagesgetScriptPages(ApiRequest<Void> request) Get the list of pagesgetScriptPages(String scriptId, String scriptDataVersion) Get the list of pagesgetScriptPagesWithHttpInfo(String scriptId, String scriptDataVersion) Get the list of pagesgetScriptPageWithHttpInfo(String scriptId, String pageId, String scriptDataVersion) Get a pagegetScripts(GetScriptsRequest request) Get the list of scriptsgetScripts(ApiRequest<Void> request) Get the list of scriptsgetScripts(Integer pageSize, Integer pageNumber, String expand, String name, String feature, String flowId, String sortBy, String sortOrder, String scriptDataVersion, String divisionIds) Get the list of scriptsGet the metadata for a list of scriptsgetScriptsDivisionviews(ApiRequest<Void> request) Get the metadata for a list of scriptsgetScriptsDivisionviews(Integer pageSize, Integer pageNumber, String expand, String name, String feature, String flowId, String sortBy, String sortOrder, String scriptDataVersion, String divisionIds) Get the metadata for a list of scriptsgetScriptsDivisionviewsWithHttpInfo(Integer pageSize, Integer pageNumber, String expand, String name, String feature, String flowId, String sortBy, String sortOrder, String scriptDataVersion, String divisionIds) Get the metadata for a list of scriptsGet the published scripts.getScriptsPublished(ApiRequest<Void> request) Get the published scripts.getScriptsPublished(Integer pageSize, Integer pageNumber, String expand, String name, String feature, String flowId, String scriptDataVersion, String divisionIds) Get the published scripts.Get the published scripts metadata.getScriptsPublishedDivisionviews(ApiRequest<Void> request) Get the published scripts metadata.getScriptsPublishedDivisionviews(Integer pageSize, Integer pageNumber, String expand, String name, String feature, String flowId, String scriptDataVersion, String divisionIds) Get the published scripts metadata.getScriptsPublishedDivisionviewsWithHttpInfo(Integer pageSize, Integer pageNumber, String expand, String name, String feature, String flowId, String scriptDataVersion, String divisionIds) Get the published scripts metadata.Get the published variablesGet the published variablesgetScriptsPublishedDivisionviewVariables(String scriptId, String input, String output, String type, String scriptDataVersion) Get the published variablesgetScriptsPublishedDivisionviewVariablesWithHttpInfo(String scriptId, String input, String output, String type, String scriptDataVersion) Get the published variablesGet the published script.getScriptsPublishedScriptId(ApiRequest<Void> request) Get the published script.getScriptsPublishedScriptId(String scriptId, String scriptDataVersion) Get the published script.Get the published page.getScriptsPublishedScriptIdPage(ApiRequest<Void> request) Get the published page.getScriptsPublishedScriptIdPage(String scriptId, String pageId, String scriptDataVersion) Get the published page.Get the list of published pagesgetScriptsPublishedScriptIdPages(ApiRequest<Void> request) Get the list of published pagesgetScriptsPublishedScriptIdPages(String scriptId, String scriptDataVersion) Get the list of published pagesgetScriptsPublishedScriptIdPagesWithHttpInfo(String scriptId, String scriptDataVersion) Get the list of published pagesgetScriptsPublishedScriptIdPageWithHttpInfo(String scriptId, String pageId, String scriptDataVersion) Get the published page.Get the published variablesGet the published variablesgetScriptsPublishedScriptIdVariables(String scriptId, String input, String output, String type, String scriptDataVersion) Get the published variablesgetScriptsPublishedScriptIdVariablesWithHttpInfo(String scriptId, String input, String output, String type, String scriptDataVersion) Get the published variablesgetScriptsPublishedScriptIdWithHttpInfo(String scriptId, String scriptDataVersion) Get the published script.getScriptsPublishedWithHttpInfo(Integer pageSize, Integer pageNumber, String expand, String name, String feature, String flowId, String scriptDataVersion, String divisionIds) Get the published scripts.Get the upload status of an imported scriptgetScriptsUploadStatus(ApiRequest<Void> request) Get the upload status of an imported scriptgetScriptsUploadStatus(String uploadId, Boolean longPoll) Get the upload status of an imported scriptgetScriptsUploadStatusWithHttpInfo(String uploadId, Boolean longPoll) Get the upload status of an imported scriptgetScriptsWithHttpInfo(Integer pageSize, Integer pageNumber, String expand, String name, String feature, String flowId, String sortBy, String sortOrder, String scriptDataVersion, String divisionIds) Get the list of scriptsgetScriptWithHttpInfo(String scriptId) Get a scriptpostScriptExport(PostScriptExportRequest request) Export a script via download service.postScriptExport(ApiRequest<ExportScriptRequest> request) Export a script via download service.postScriptExport(String scriptId, ExportScriptRequest body) Export a script via download service.postScriptExportWithHttpInfo(String scriptId, ExportScriptRequest body) Export a script via download service.Publish a script.Publish a script.postScriptsPublished(String scriptDataVersion, PublishScriptRequestData body) Publish a script.postScriptsPublishedWithHttpInfo(String scriptDataVersion, PublishScriptRequestData body) Publish a script.
-
Constructor Details
-
ScriptsApi
public ScriptsApi() -
ScriptsApi
-
-
Method Details
-
getScript
Get a script- Parameters:
scriptId- Script ID (required)- Returns:
- Script
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getScriptWithHttpInfo
Get a script- Parameters:
scriptId- Script ID (required)- Returns:
- Script
- Throws:
IOException- if the request fails to be processed
-
getScript
Get a script- Parameters:
request- The request object- Returns:
- Script
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getScript
Get a script- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getScriptPage
public Page getScriptPage(String scriptId, String pageId, String scriptDataVersion) throws IOException, ApiException Get a page- Parameters:
scriptId- Script ID (required)pageId- Page ID (required)scriptDataVersion- Advanced usage - controls the data version of the script (optional)- Returns:
- Page
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getScriptPageWithHttpInfo
public ApiResponse<Page> getScriptPageWithHttpInfo(String scriptId, String pageId, String scriptDataVersion) throws IOException Get a page- Parameters:
scriptId- Script ID (required)pageId- Page ID (required)scriptDataVersion- Advanced usage - controls the data version of the script (optional)- Returns:
- Page
- Throws:
IOException- if the request fails to be processed
-
getScriptPage
Get a page- Parameters:
request- The request object- Returns:
- Page
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getScriptPage
Get a page- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getScriptPages
public List<Page> getScriptPages(String scriptId, String scriptDataVersion) throws IOException, ApiException Get the list of pages- Parameters:
scriptId- Script ID (required)scriptDataVersion- Advanced usage - controls the data version of the script (optional)- Returns:
- List
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getScriptPagesWithHttpInfo
public ApiResponse<List<Page>> getScriptPagesWithHttpInfo(String scriptId, String scriptDataVersion) throws IOException Get the list of pages- Parameters:
scriptId- Script ID (required)scriptDataVersion- Advanced usage - controls the data version of the script (optional)- Returns:
- List
- Throws:
IOException- if the request fails to be processed
-
getScriptPages
Get the list of pages- Parameters:
request- The request object- Returns:
- List
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getScriptPages
Get the list of pages- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getScripts
public ScriptEntityListing getScripts(Integer pageSize, Integer pageNumber, String expand, String name, String feature, String flowId, String sortBy, String sortOrder, String scriptDataVersion, String divisionIds) throws IOException, ApiException Get the list of scripts- Parameters:
pageSize- Page size (optional, default to 25)pageNumber- Page number (optional, default to 1)expand- Expand (optional)name- Name filter (optional)feature- Feature filter (optional)flowId- Secure flow id filter (optional)sortBy- SortBy (optional)sortOrder- SortOrder (optional)scriptDataVersion- Advanced usage - controls the data version of the script (optional)divisionIds- Filters scripts to requested divisionIds (optional)- Returns:
- ScriptEntityListing
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getScriptsWithHttpInfo
public ApiResponse<ScriptEntityListing> getScriptsWithHttpInfo(Integer pageSize, Integer pageNumber, String expand, String name, String feature, String flowId, String sortBy, String sortOrder, String scriptDataVersion, String divisionIds) throws IOException Get the list of scripts- Parameters:
pageSize- Page size (optional, default to 25)pageNumber- Page number (optional, default to 1)expand- Expand (optional)name- Name filter (optional)feature- Feature filter (optional)flowId- Secure flow id filter (optional)sortBy- SortBy (optional)sortOrder- SortOrder (optional)scriptDataVersion- Advanced usage - controls the data version of the script (optional)divisionIds- Filters scripts to requested divisionIds (optional)- Returns:
- ScriptEntityListing
- Throws:
IOException- if the request fails to be processed
-
getScripts
Get the list of scripts- Parameters:
request- The request object- Returns:
- ScriptEntityListing
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getScripts
Get the list of scripts- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getScriptsDivisionviews
public ScriptEntityListing getScriptsDivisionviews(Integer pageSize, Integer pageNumber, String expand, String name, String feature, String flowId, String sortBy, String sortOrder, String scriptDataVersion, String divisionIds) throws IOException, ApiException Get the metadata for a list of scripts- Parameters:
pageSize- Page size (optional, default to 25)pageNumber- Page number (optional, default to 1)expand- Expand (optional)name- Name filter (optional)feature- Feature filter (optional)flowId- Secure flow id filter (optional)sortBy- SortBy (optional)sortOrder- SortOrder (optional)scriptDataVersion- Advanced usage - controls the data version of the script (optional)divisionIds- Filters scripts to requested divisionIds (optional)- Returns:
- ScriptEntityListing
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getScriptsDivisionviewsWithHttpInfo
public ApiResponse<ScriptEntityListing> getScriptsDivisionviewsWithHttpInfo(Integer pageSize, Integer pageNumber, String expand, String name, String feature, String flowId, String sortBy, String sortOrder, String scriptDataVersion, String divisionIds) throws IOException Get the metadata for a list of scripts- Parameters:
pageSize- Page size (optional, default to 25)pageNumber- Page number (optional, default to 1)expand- Expand (optional)name- Name filter (optional)feature- Feature filter (optional)flowId- Secure flow id filter (optional)sortBy- SortBy (optional)sortOrder- SortOrder (optional)scriptDataVersion- Advanced usage - controls the data version of the script (optional)divisionIds- Filters scripts to requested divisionIds (optional)- Returns:
- ScriptEntityListing
- Throws:
IOException- if the request fails to be processed
-
getScriptsDivisionviews
public ScriptEntityListing getScriptsDivisionviews(GetScriptsDivisionviewsRequest request) throws IOException, ApiException Get the metadata for a list of scripts- Parameters:
request- The request object- Returns:
- ScriptEntityListing
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getScriptsDivisionviews
public ApiResponse<ScriptEntityListing> getScriptsDivisionviews(ApiRequest<Void> request) throws IOException Get the metadata for a list of scripts- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getScriptsPublished
public ScriptEntityListing getScriptsPublished(Integer pageSize, Integer pageNumber, String expand, String name, String feature, String flowId, String scriptDataVersion, String divisionIds) throws IOException, ApiException Get the published scripts.- Parameters:
pageSize- Page size (optional, default to 25)pageNumber- Page number (optional, default to 1)expand- Expand (optional)name- Name filter (optional)feature- Feature filter (optional)flowId- Secure flow id filter (optional)scriptDataVersion- Advanced usage - controls the data version of the script (optional)divisionIds- Filters scripts to requested divisionIds (optional)- Returns:
- ScriptEntityListing
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getScriptsPublishedWithHttpInfo
public ApiResponse<ScriptEntityListing> getScriptsPublishedWithHttpInfo(Integer pageSize, Integer pageNumber, String expand, String name, String feature, String flowId, String scriptDataVersion, String divisionIds) throws IOException Get the published scripts.- Parameters:
pageSize- Page size (optional, default to 25)pageNumber- Page number (optional, default to 1)expand- Expand (optional)name- Name filter (optional)feature- Feature filter (optional)flowId- Secure flow id filter (optional)scriptDataVersion- Advanced usage - controls the data version of the script (optional)divisionIds- Filters scripts to requested divisionIds (optional)- Returns:
- ScriptEntityListing
- Throws:
IOException- if the request fails to be processed
-
getScriptsPublished
public ScriptEntityListing getScriptsPublished(GetScriptsPublishedRequest request) throws IOException, ApiException Get the published scripts.- Parameters:
request- The request object- Returns:
- ScriptEntityListing
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getScriptsPublished
public ApiResponse<ScriptEntityListing> getScriptsPublished(ApiRequest<Void> request) throws IOException Get the published scripts.- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getScriptsPublishedDivisionviewVariables
public Object getScriptsPublishedDivisionviewVariables(String scriptId, String input, String output, String type, String scriptDataVersion) throws IOException, ApiException Get the published variables- Parameters:
scriptId- Script ID (required)input- input (optional)output- output (optional)type- type (optional)scriptDataVersion- Advanced usage - controls the data version of the script (optional)- Returns:
- Object
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getScriptsPublishedDivisionviewVariablesWithHttpInfo
public ApiResponse<Object> getScriptsPublishedDivisionviewVariablesWithHttpInfo(String scriptId, String input, String output, String type, String scriptDataVersion) throws IOException Get the published variables- Parameters:
scriptId- Script ID (required)input- input (optional)output- output (optional)type- type (optional)scriptDataVersion- Advanced usage - controls the data version of the script (optional)- Returns:
- Object
- Throws:
IOException- if the request fails to be processed
-
getScriptsPublishedDivisionviewVariables
public Object getScriptsPublishedDivisionviewVariables(GetScriptsPublishedDivisionviewVariablesRequest request) throws IOException, ApiException Get the published variables- Parameters:
request- The request object- Returns:
- Object
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getScriptsPublishedDivisionviewVariables
public ApiResponse<Object> getScriptsPublishedDivisionviewVariables(ApiRequest<Void> request) throws IOException Get the published variables- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getScriptsPublishedDivisionviews
public ScriptEntityListing getScriptsPublishedDivisionviews(Integer pageSize, Integer pageNumber, String expand, String name, String feature, String flowId, String scriptDataVersion, String divisionIds) throws IOException, ApiException Get the published scripts metadata.- Parameters:
pageSize- Page size (optional, default to 25)pageNumber- Page number (optional, default to 1)expand- Expand (optional)name- Name filter (optional)feature- Feature filter (optional)flowId- Secure flow id filter (optional)scriptDataVersion- Advanced usage - controls the data version of the script (optional)divisionIds- Filters scripts to requested divisionIds (optional)- Returns:
- ScriptEntityListing
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getScriptsPublishedDivisionviewsWithHttpInfo
public ApiResponse<ScriptEntityListing> getScriptsPublishedDivisionviewsWithHttpInfo(Integer pageSize, Integer pageNumber, String expand, String name, String feature, String flowId, String scriptDataVersion, String divisionIds) throws IOException Get the published scripts metadata.- Parameters:
pageSize- Page size (optional, default to 25)pageNumber- Page number (optional, default to 1)expand- Expand (optional)name- Name filter (optional)feature- Feature filter (optional)flowId- Secure flow id filter (optional)scriptDataVersion- Advanced usage - controls the data version of the script (optional)divisionIds- Filters scripts to requested divisionIds (optional)- Returns:
- ScriptEntityListing
- Throws:
IOException- if the request fails to be processed
-
getScriptsPublishedDivisionviews
public ScriptEntityListing getScriptsPublishedDivisionviews(GetScriptsPublishedDivisionviewsRequest request) throws IOException, ApiException Get the published scripts metadata.- Parameters:
request- The request object- Returns:
- ScriptEntityListing
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getScriptsPublishedDivisionviews
public ApiResponse<ScriptEntityListing> getScriptsPublishedDivisionviews(ApiRequest<Void> request) throws IOException Get the published scripts metadata.- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getScriptsPublishedScriptId
public Script getScriptsPublishedScriptId(String scriptId, String scriptDataVersion) throws IOException, ApiException Get the published script.- Parameters:
scriptId- Script ID (required)scriptDataVersion- Advanced usage - controls the data version of the script (optional)- Returns:
- Script
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getScriptsPublishedScriptIdWithHttpInfo
public ApiResponse<Script> getScriptsPublishedScriptIdWithHttpInfo(String scriptId, String scriptDataVersion) throws IOException Get the published script.- Parameters:
scriptId- Script ID (required)scriptDataVersion- Advanced usage - controls the data version of the script (optional)- Returns:
- Script
- Throws:
IOException- if the request fails to be processed
-
getScriptsPublishedScriptId
public Script getScriptsPublishedScriptId(GetScriptsPublishedScriptIdRequest request) throws IOException, ApiException Get the published script.- Parameters:
request- The request object- Returns:
- Script
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getScriptsPublishedScriptId
Get the published script.- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getScriptsPublishedScriptIdPage
public Page getScriptsPublishedScriptIdPage(String scriptId, String pageId, String scriptDataVersion) throws IOException, ApiException Get the published page.- Parameters:
scriptId- Script ID (required)pageId- Page ID (required)scriptDataVersion- Advanced usage - controls the data version of the script (optional)- Returns:
- Page
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getScriptsPublishedScriptIdPageWithHttpInfo
public ApiResponse<Page> getScriptsPublishedScriptIdPageWithHttpInfo(String scriptId, String pageId, String scriptDataVersion) throws IOException Get the published page.- Parameters:
scriptId- Script ID (required)pageId- Page ID (required)scriptDataVersion- Advanced usage - controls the data version of the script (optional)- Returns:
- Page
- Throws:
IOException- if the request fails to be processed
-
getScriptsPublishedScriptIdPage
public Page getScriptsPublishedScriptIdPage(GetScriptsPublishedScriptIdPageRequest request) throws IOException, ApiException Get the published page.- Parameters:
request- The request object- Returns:
- Page
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getScriptsPublishedScriptIdPage
public ApiResponse<Page> getScriptsPublishedScriptIdPage(ApiRequest<Void> request) throws IOException Get the published page.- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getScriptsPublishedScriptIdPages
public List<Page> getScriptsPublishedScriptIdPages(String scriptId, String scriptDataVersion) throws IOException, ApiException Get the list of published pages- Parameters:
scriptId- Script ID (required)scriptDataVersion- Advanced usage - controls the data version of the script (optional)- Returns:
- List
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getScriptsPublishedScriptIdPagesWithHttpInfo
public ApiResponse<List<Page>> getScriptsPublishedScriptIdPagesWithHttpInfo(String scriptId, String scriptDataVersion) throws IOException Get the list of published pages- Parameters:
scriptId- Script ID (required)scriptDataVersion- Advanced usage - controls the data version of the script (optional)- Returns:
- List
- Throws:
IOException- if the request fails to be processed
-
getScriptsPublishedScriptIdPages
public List<Page> getScriptsPublishedScriptIdPages(GetScriptsPublishedScriptIdPagesRequest request) throws IOException, ApiException Get the list of published pages- Parameters:
request- The request object- Returns:
- List
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getScriptsPublishedScriptIdPages
public ApiResponse<List<Page>> getScriptsPublishedScriptIdPages(ApiRequest<Void> request) throws IOException Get the list of published pages- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getScriptsPublishedScriptIdVariables
public Object getScriptsPublishedScriptIdVariables(String scriptId, String input, String output, String type, String scriptDataVersion) throws IOException, ApiException Get the published variables- Parameters:
scriptId- Script ID (required)input- input (optional)output- output (optional)type- type (optional)scriptDataVersion- Advanced usage - controls the data version of the script (optional)- Returns:
- Object
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getScriptsPublishedScriptIdVariablesWithHttpInfo
public ApiResponse<Object> getScriptsPublishedScriptIdVariablesWithHttpInfo(String scriptId, String input, String output, String type, String scriptDataVersion) throws IOException Get the published variables- Parameters:
scriptId- Script ID (required)input- input (optional)output- output (optional)type- type (optional)scriptDataVersion- Advanced usage - controls the data version of the script (optional)- Returns:
- Object
- Throws:
IOException- if the request fails to be processed
-
getScriptsPublishedScriptIdVariables
public Object getScriptsPublishedScriptIdVariables(GetScriptsPublishedScriptIdVariablesRequest request) throws IOException, ApiException Get the published variables- Parameters:
request- The request object- Returns:
- Object
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getScriptsPublishedScriptIdVariables
public ApiResponse<Object> getScriptsPublishedScriptIdVariables(ApiRequest<Void> request) throws IOException Get the published variables- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getScriptsUploadStatus
public ImportScriptStatusResponse getScriptsUploadStatus(String uploadId, Boolean longPoll) throws IOException, ApiException Get the upload status of an imported script- Parameters:
uploadId- Upload ID (required)longPoll- Enable longPolling endpoint (optional, default to false)- Returns:
- ImportScriptStatusResponse
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getScriptsUploadStatusWithHttpInfo
public ApiResponse<ImportScriptStatusResponse> getScriptsUploadStatusWithHttpInfo(String uploadId, Boolean longPoll) throws IOException Get the upload status of an imported script- Parameters:
uploadId- Upload ID (required)longPoll- Enable longPolling endpoint (optional, default to false)- Returns:
- ImportScriptStatusResponse
- Throws:
IOException- if the request fails to be processed
-
getScriptsUploadStatus
public ImportScriptStatusResponse getScriptsUploadStatus(GetScriptsUploadStatusRequest request) throws IOException, ApiException Get the upload status of an imported script- Parameters:
request- The request object- Returns:
- ImportScriptStatusResponse
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getScriptsUploadStatus
public ApiResponse<ImportScriptStatusResponse> getScriptsUploadStatus(ApiRequest<Void> request) throws IOException Get the upload status of an imported script- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
postScriptExport
public ExportScriptResponse postScriptExport(String scriptId, ExportScriptRequest body) throws IOException, ApiException Export a script via download service.- Parameters:
scriptId- Script ID (required)body- (optional)- Returns:
- ExportScriptResponse
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postScriptExportWithHttpInfo
public ApiResponse<ExportScriptResponse> postScriptExportWithHttpInfo(String scriptId, ExportScriptRequest body) throws IOException Export a script via download service.- Parameters:
scriptId- Script ID (required)body- (optional)- Returns:
- ExportScriptResponse
- Throws:
IOException- if the request fails to be processed
-
postScriptExport
public ExportScriptResponse postScriptExport(PostScriptExportRequest request) throws IOException, ApiException Export a script via download service.- Parameters:
request- The request object- Returns:
- ExportScriptResponse
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postScriptExport
public ApiResponse<ExportScriptResponse> postScriptExport(ApiRequest<ExportScriptRequest> request) throws IOException Export a script via download service.- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
postScriptsPublished
public Script postScriptsPublished(String scriptDataVersion, PublishScriptRequestData body) throws IOException, ApiException Publish a script.- Parameters:
scriptDataVersion- Advanced usage - controls the data version of the script (optional)body- body (optional)- Returns:
- Script
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postScriptsPublishedWithHttpInfo
public ApiResponse<Script> postScriptsPublishedWithHttpInfo(String scriptDataVersion, PublishScriptRequestData body) throws IOException Publish a script.- Parameters:
scriptDataVersion- Advanced usage - controls the data version of the script (optional)body- body (optional)- Returns:
- Script
- Throws:
IOException- if the request fails to be processed
-
postScriptsPublished
public Script postScriptsPublished(PostScriptsPublishedRequest request) throws IOException, ApiException Publish a script.- Parameters:
request- The request object- Returns:
- Script
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postScriptsPublished
public ApiResponse<Script> postScriptsPublished(ApiRequest<PublishScriptRequestData> request) throws IOException Publish a script.- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-