Interface ScriptExecutions
public interface ScriptExecutions
Resource collection API of ScriptExecutions.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new ScriptExecution resource.void
Cancel a ScriptExecution in a private cloud.void
delete
(String resourceGroupName, String privateCloudName, String scriptExecutionName, com.azure.core.util.Context context) Cancel a ScriptExecution in a private cloud.void
deleteById
(String id) Cancel a ScriptExecution in a private cloud.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Cancel a ScriptExecution in a private cloud.Get an script execution by name in a private cloud.Get an script execution by name in a private cloud.com.azure.core.http.rest.Response<ScriptExecution>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get an script execution by name in a private cloud.getExecutionLogs
(String resourceGroupName, String privateCloudName, String scriptExecutionName) Return the logs for a script execution resource.com.azure.core.http.rest.Response<ScriptExecution>
getExecutionLogsWithResponse
(String resourceGroupName, String privateCloudName, String scriptExecutionName, List<ScriptOutputStreamType> scriptOutputStreamType, com.azure.core.util.Context context) Return the logs for a script execution resource.com.azure.core.http.rest.Response<ScriptExecution>
getWithResponse
(String resourceGroupName, String privateCloudName, String scriptExecutionName, com.azure.core.util.Context context) Get an script execution by name in a private cloud.com.azure.core.http.rest.PagedIterable<ScriptExecution>
List script executions in a private cloud.com.azure.core.http.rest.PagedIterable<ScriptExecution>
List script executions in a private cloud.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<ScriptExecution> list(String resourceGroupName, String privateCloudName) List script executions in a private cloud.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.- Returns:
- pageable list of script executions as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<ScriptExecution> list(String resourceGroupName, String privateCloudName, com.azure.core.util.Context context) List script executions in a private cloud.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.context
- The context to associate with this operation.- Returns:
- pageable list of script executions as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<ScriptExecution> getWithResponse(String resourceGroupName, String privateCloudName, String scriptExecutionName, com.azure.core.util.Context context) Get an script execution by name in a private cloud.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.scriptExecutionName
- Name of the user-invoked script execution resource.context
- The context to associate with this operation.- Returns:
- an script execution by name in a private cloud along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
Get an script execution by name in a private cloud.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.scriptExecutionName
- Name of the user-invoked script execution resource.- Returns:
- an script execution by name in a private cloud.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Cancel a ScriptExecution in a private cloud.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.scriptExecutionName
- Name of the user-invoked script execution resource.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String resourceGroupName, String privateCloudName, String scriptExecutionName, com.azure.core.util.Context context) Cancel a ScriptExecution in a private cloud.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.scriptExecutionName
- Name of the user-invoked script execution resource.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getExecutionLogsWithResponse
com.azure.core.http.rest.Response<ScriptExecution> getExecutionLogsWithResponse(String resourceGroupName, String privateCloudName, String scriptExecutionName, List<ScriptOutputStreamType> scriptOutputStreamType, com.azure.core.util.Context context) Return the logs for a script execution resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.scriptExecutionName
- Name of the user-invoked script execution resource.scriptOutputStreamType
- Name of the desired output stream to return. If not provided, will return all. An empty array will return nothing.context
- The context to associate with this operation.- Returns:
- an instance of a script executed by a user - custom or AVS along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getExecutionLogs
ScriptExecution getExecutionLogs(String resourceGroupName, String privateCloudName, String scriptExecutionName) Return the logs for a script execution resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.scriptExecutionName
- Name of the user-invoked script execution resource.- Returns:
- an instance of a script executed by a user - custom or AVS.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getById
Get an script execution by name in a private cloud.- Parameters:
id
- the resource ID.- Returns:
- an script execution by name in a private cloud along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByIdWithResponse
com.azure.core.http.rest.Response<ScriptExecution> getByIdWithResponse(String id, com.azure.core.util.Context context) Get an script execution by name in a private cloud.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- an script execution by name in a private cloud along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteById
Cancel a ScriptExecution in a private cloud.- Parameters:
id
- the resource ID.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteByIdWithResponse
Cancel a ScriptExecution in a private cloud.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
define
Begins definition for a new ScriptExecution resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new ScriptExecution definition.
-