Interface Workflows
public interface Workflows
Resource collection API of Workflows.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new Workflow resource.void
deleteById
(String id) Deletes a workflow.com.azure.core.http.rest.Response<Void>
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes a workflow.void
deleteByResourceGroup
(String resourceGroupName, String workflowName) Deletes a workflow.com.azure.core.http.rest.Response<Void>
deleteByResourceGroupWithResponse
(String resourceGroupName, String workflowName, com.azure.core.util.Context context) Deletes a workflow.void
Disables a workflow.com.azure.core.http.rest.Response<Void>
disableWithResponse
(String resourceGroupName, String workflowName, com.azure.core.util.Context context) Disables a workflow.void
Enables a workflow.com.azure.core.http.rest.Response<Void>
enableWithResponse
(String resourceGroupName, String workflowName, com.azure.core.util.Context context) Enables a workflow.generateUpgradedDefinition
(String resourceGroupName, String workflowName, GenerateUpgradedDefinitionParameters parameters) Generates the upgraded definition for a workflow.com.azure.core.http.rest.Response<Object>
generateUpgradedDefinitionWithResponse
(String resourceGroupName, String workflowName, GenerateUpgradedDefinitionParameters parameters, com.azure.core.util.Context context) Generates the upgraded definition for a workflow.Gets a workflow.com.azure.core.http.rest.Response<Workflow>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Gets a workflow.getByResourceGroup
(String resourceGroupName, String workflowName) Gets a workflow.com.azure.core.http.rest.Response<Workflow>
getByResourceGroupWithResponse
(String resourceGroupName, String workflowName, com.azure.core.util.Context context) Gets a workflow.com.azure.core.http.rest.PagedIterable<Workflow>
list()
Gets a list of workflows by subscription.com.azure.core.http.rest.PagedIterable<Workflow>
Gets a list of workflows by subscription.com.azure.core.http.rest.PagedIterable<Workflow>
listByResourceGroup
(String resourceGroupName) Gets a list of workflows by resource group.com.azure.core.http.rest.PagedIterable<Workflow>
listByResourceGroup
(String resourceGroupName, Integer top, String filter, com.azure.core.util.Context context) Gets a list of workflows by resource group.listCallbackUrl
(String resourceGroupName, String workflowName, GetCallbackUrlParameters listCallbackUrl) Get the workflow callback Url.com.azure.core.http.rest.Response<WorkflowTriggerCallbackUrl>
listCallbackUrlWithResponse
(String resourceGroupName, String workflowName, GetCallbackUrlParameters listCallbackUrl, com.azure.core.util.Context context) Get the workflow callback Url.listSwagger
(String resourceGroupName, String workflowName) Gets an OpenAPI definition for the workflow.com.azure.core.http.rest.Response<Object>
listSwaggerWithResponse
(String resourceGroupName, String workflowName, com.azure.core.util.Context context) Gets an OpenAPI definition for the workflow.void
move
(String resourceGroupName, String workflowName, WorkflowReference move) Moves an existing workflow.void
move
(String resourceGroupName, String workflowName, WorkflowReference move, com.azure.core.util.Context context) Moves an existing workflow.void
regenerateAccessKey
(String resourceGroupName, String workflowName, RegenerateActionParameter keyType) Regenerates the callback URL access key for request triggers.com.azure.core.http.rest.Response<Void>
regenerateAccessKeyWithResponse
(String resourceGroupName, String workflowName, RegenerateActionParameter keyType, com.azure.core.util.Context context) Regenerates the callback URL access key for request triggers.Updates a workflow.com.azure.core.http.rest.Response<Workflow>
updateWithResponse
(String resourceGroupName, String workflowName, com.azure.core.util.Context context) Updates a workflow.void
validateByLocation
(String resourceGroupName, String location, String workflowName, WorkflowInner validate) Validates the workflow definition.com.azure.core.http.rest.Response<Void>
validateByLocationWithResponse
(String resourceGroupName, String location, String workflowName, WorkflowInner validate, com.azure.core.util.Context context) Validates the workflow definition.void
validateByResourceGroup
(String resourceGroupName, String workflowName, WorkflowInner validate) Validates the workflow.com.azure.core.http.rest.Response<Void>
validateByResourceGroupWithResponse
(String resourceGroupName, String workflowName, WorkflowInner validate, com.azure.core.util.Context context) Validates the workflow.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<Workflow> list()Gets a list of workflows by subscription.- Returns:
- a list of workflows by subscription as paginated response with
PagedIterable
. - Throws:
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<Workflow> list(Integer top, String filter, com.azure.core.util.Context context) Gets a list of workflows by subscription.- Parameters:
top
- The number of items to be included in the result.filter
- The filter to apply on the operation. Options for filters include: State, Trigger, and ReferencedResourceId.context
- The context to associate with this operation.- Returns:
- a list of workflows by subscription 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.
-
listByResourceGroup
Gets a list of workflows by resource group.- Parameters:
resourceGroupName
- The resource group name.- Returns:
- a list of workflows by resource group 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<Workflow> listByResourceGroup(String resourceGroupName, Integer top, String filter, com.azure.core.util.Context context) Gets a list of workflows by resource group.- Parameters:
resourceGroupName
- The resource group name.top
- The number of items to be included in the result.filter
- The filter to apply on the operation. Options for filters include: State, Trigger, and ReferencedResourceId.context
- The context to associate with this operation.- Returns:
- a list of workflows by resource group 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<Workflow> getByResourceGroupWithResponse(String resourceGroupName, String workflowName, com.azure.core.util.Context context) Gets a workflow.- Parameters:
resourceGroupName
- The resource group name.workflowName
- The workflow name.context
- The context to associate with this operation.- Returns:
- a workflow 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.
-
getByResourceGroup
Gets a workflow.- Parameters:
resourceGroupName
- The resource group name.workflowName
- The workflow name.- Returns:
- a workflow.
- 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.
-
updateWithResponse
com.azure.core.http.rest.Response<Workflow> updateWithResponse(String resourceGroupName, String workflowName, com.azure.core.util.Context context) Updates a workflow.- Parameters:
resourceGroupName
- The resource group name.workflowName
- The workflow name.context
- The context to associate with this operation.- Returns:
- the workflow type 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.
-
update
Updates a workflow.- Parameters:
resourceGroupName
- The resource group name.workflowName
- The workflow name.- Returns:
- the workflow type.
- 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.
-
deleteByResourceGroupWithResponse
com.azure.core.http.rest.Response<Void> deleteByResourceGroupWithResponse(String resourceGroupName, String workflowName, com.azure.core.util.Context context) Deletes a workflow.- Parameters:
resourceGroupName
- The resource group name.workflowName
- The workflow name.context
- The context to associate with this operation.- Returns:
- the
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.
-
deleteByResourceGroup
Deletes a workflow.- Parameters:
resourceGroupName
- The resource group name.workflowName
- The workflow name.- 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.
-
disableWithResponse
com.azure.core.http.rest.Response<Void> disableWithResponse(String resourceGroupName, String workflowName, com.azure.core.util.Context context) Disables a workflow.- Parameters:
resourceGroupName
- The resource group name.workflowName
- The workflow name.context
- The context to associate with this operation.- Returns:
- the
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.
-
disable
Disables a workflow.- Parameters:
resourceGroupName
- The resource group name.workflowName
- The workflow name.- 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.
-
enableWithResponse
com.azure.core.http.rest.Response<Void> enableWithResponse(String resourceGroupName, String workflowName, com.azure.core.util.Context context) Enables a workflow.- Parameters:
resourceGroupName
- The resource group name.workflowName
- The workflow name.context
- The context to associate with this operation.- Returns:
- the
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.
-
enable
Enables a workflow.- Parameters:
resourceGroupName
- The resource group name.workflowName
- The workflow name.- 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.
-
generateUpgradedDefinitionWithResponse
com.azure.core.http.rest.Response<Object> generateUpgradedDefinitionWithResponse(String resourceGroupName, String workflowName, GenerateUpgradedDefinitionParameters parameters, com.azure.core.util.Context context) Generates the upgraded definition for a workflow.- Parameters:
resourceGroupName
- The resource group name.workflowName
- The workflow name.parameters
- Parameters for generating an upgraded definition.context
- The context to associate with this operation.- Returns:
- any object 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.
-
generateUpgradedDefinition
Object generateUpgradedDefinition(String resourceGroupName, String workflowName, GenerateUpgradedDefinitionParameters parameters) Generates the upgraded definition for a workflow.- Parameters:
resourceGroupName
- The resource group name.workflowName
- The workflow name.parameters
- Parameters for generating an upgraded definition.- Returns:
- any object.
- 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.
-
listCallbackUrlWithResponse
com.azure.core.http.rest.Response<WorkflowTriggerCallbackUrl> listCallbackUrlWithResponse(String resourceGroupName, String workflowName, GetCallbackUrlParameters listCallbackUrl, com.azure.core.util.Context context) Get the workflow callback Url.- Parameters:
resourceGroupName
- The resource group name.workflowName
- The workflow name.listCallbackUrl
- Which callback url to list.context
- The context to associate with this operation.- Returns:
- the workflow callback Url 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.
-
listCallbackUrl
WorkflowTriggerCallbackUrl listCallbackUrl(String resourceGroupName, String workflowName, GetCallbackUrlParameters listCallbackUrl) Get the workflow callback Url.- Parameters:
resourceGroupName
- The resource group name.workflowName
- The workflow name.listCallbackUrl
- Which callback url to list.- Returns:
- the workflow callback Url.
- 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.
-
listSwaggerWithResponse
com.azure.core.http.rest.Response<Object> listSwaggerWithResponse(String resourceGroupName, String workflowName, com.azure.core.util.Context context) Gets an OpenAPI definition for the workflow.- Parameters:
resourceGroupName
- The resource group name.workflowName
- The workflow name.context
- The context to associate with this operation.- Returns:
- an OpenAPI definition for the workflow 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.
-
listSwagger
Gets an OpenAPI definition for the workflow.- Parameters:
resourceGroupName
- The resource group name.workflowName
- The workflow name.- Returns:
- an OpenAPI definition for the workflow.
- 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.
-
move
Moves an existing workflow.- Parameters:
resourceGroupName
- The resource group name.workflowName
- The workflow name.move
- The workflow to move.- 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.
-
move
void move(String resourceGroupName, String workflowName, WorkflowReference move, com.azure.core.util.Context context) Moves an existing workflow.- Parameters:
resourceGroupName
- The resource group name.workflowName
- The workflow name.move
- The workflow to move.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.
-
regenerateAccessKeyWithResponse
com.azure.core.http.rest.Response<Void> regenerateAccessKeyWithResponse(String resourceGroupName, String workflowName, RegenerateActionParameter keyType, com.azure.core.util.Context context) Regenerates the callback URL access key for request triggers.- Parameters:
resourceGroupName
- The resource group name.workflowName
- The workflow name.keyType
- The access key type.context
- The context to associate with this operation.- Returns:
- the
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.
-
regenerateAccessKey
void regenerateAccessKey(String resourceGroupName, String workflowName, RegenerateActionParameter keyType) Regenerates the callback URL access key for request triggers.- Parameters:
resourceGroupName
- The resource group name.workflowName
- The workflow name.keyType
- The access key type.- 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.
-
validateByResourceGroupWithResponse
com.azure.core.http.rest.Response<Void> validateByResourceGroupWithResponse(String resourceGroupName, String workflowName, WorkflowInner validate, com.azure.core.util.Context context) Validates the workflow.- Parameters:
resourceGroupName
- The resource group name.workflowName
- The workflow name.validate
- The workflow.context
- The context to associate with this operation.- Returns:
- the
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.
-
validateByResourceGroup
Validates the workflow.- Parameters:
resourceGroupName
- The resource group name.workflowName
- The workflow name.validate
- The workflow.- 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.
-
validateByLocationWithResponse
com.azure.core.http.rest.Response<Void> validateByLocationWithResponse(String resourceGroupName, String location, String workflowName, WorkflowInner validate, com.azure.core.util.Context context) Validates the workflow definition.- Parameters:
resourceGroupName
- The resource group name.location
- The workflow location.workflowName
- The workflow name.validate
- The workflow.context
- The context to associate with this operation.- Returns:
- the
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.
-
validateByLocation
void validateByLocation(String resourceGroupName, String location, String workflowName, WorkflowInner validate) Validates the workflow definition.- Parameters:
resourceGroupName
- The resource group name.location
- The workflow location.workflowName
- The workflow name.validate
- The workflow.- 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
Gets a workflow.- Parameters:
id
- the resource ID.- Returns:
- a workflow 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<Workflow> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a workflow.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- a workflow 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
Deletes a workflow.- 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
com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context) Deletes a workflow.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- the
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.
-
define
Begins definition for a new Workflow resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new Workflow definition.
-