Interface ScriptExecutionsClient
public interface ScriptExecutionsClient
An instance of this class provides access to all the operations defined in ScriptExecutionsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ScriptExecutionInner>,
ScriptExecutionInner> beginCreateOrUpdate
(String resourceGroupName, String privateCloudName, String scriptExecutionName, ScriptExecutionInner scriptExecution) Create or update a script execution in a private cloud.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ScriptExecutionInner>,
ScriptExecutionInner> beginCreateOrUpdate
(String resourceGroupName, String privateCloudName, String scriptExecutionName, ScriptExecutionInner scriptExecution, com.azure.core.util.Context context) Create or update a script execution in a private cloud.beginDelete
(String resourceGroupName, String privateCloudName, String scriptExecutionName) Cancel a ScriptExecution in a private cloud.beginDelete
(String resourceGroupName, String privateCloudName, String scriptExecutionName, com.azure.core.util.Context context) Cancel a ScriptExecution in a private cloud.createOrUpdate
(String resourceGroupName, String privateCloudName, String scriptExecutionName, ScriptExecutionInner scriptExecution) Create or update a script execution in a private cloud.createOrUpdate
(String resourceGroupName, String privateCloudName, String scriptExecutionName, ScriptExecutionInner scriptExecution, com.azure.core.util.Context context) Create or update a script execution in a private cloud.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.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<ScriptExecutionInner>
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<ScriptExecutionInner>
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<ScriptExecutionInner>
List script executions in a private cloud.com.azure.core.http.rest.PagedIterable<ScriptExecutionInner>
List script executions in a private cloud.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<ScriptExecutionInner> 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<ScriptExecutionInner> 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<ScriptExecutionInner> 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
ScriptExecutionInner get(String resourceGroupName, String privateCloudName, String scriptExecutionName) 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ScriptExecutionInner>,ScriptExecutionInner> beginCreateOrUpdate(String resourceGroupName, String privateCloudName, String scriptExecutionName, ScriptExecutionInner scriptExecution) Create or update a script execution in a private cloud.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- The name of the private cloud.scriptExecutionName
- Name of the user-invoked script execution resource.scriptExecution
- A script running in the private cloud.- Returns:
- the
SyncPoller
for polling of 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ScriptExecutionInner>,ScriptExecutionInner> beginCreateOrUpdate(String resourceGroupName, String privateCloudName, String scriptExecutionName, ScriptExecutionInner scriptExecution, com.azure.core.util.Context context) Create or update a script execution in a private cloud.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- The name of the private cloud.scriptExecutionName
- Name of the user-invoked script execution resource.scriptExecution
- A script running in the private cloud.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of 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.
-
createOrUpdate
ScriptExecutionInner createOrUpdate(String resourceGroupName, String privateCloudName, String scriptExecutionName, ScriptExecutionInner scriptExecution) Create or update a script execution in a private cloud.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- The name of the private cloud.scriptExecutionName
- Name of the user-invoked script execution resource.scriptExecution
- A script running in the private cloud.- 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.
-
createOrUpdate
ScriptExecutionInner createOrUpdate(String resourceGroupName, String privateCloudName, String scriptExecutionName, ScriptExecutionInner scriptExecution, com.azure.core.util.Context context) Create or update a script execution in a private cloud.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- The name of the private cloud.scriptExecutionName
- Name of the user-invoked script execution resource.scriptExecution
- A script running in the private cloud.context
- The context to associate with this operation.- 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String privateCloudName, String scriptExecutionName) 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.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(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.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
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<ScriptExecutionInner> 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
ScriptExecutionInner 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.
-