Class WorkflowsRequestBuilder
- Assembly
- Autodesk.ACC.CostManagement.dll
Builds and executes requests for operations under \v1\projects{projectId}\workflows
public class WorkflowsRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderWorkflowsRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.UrlTemplate
Constructors
WorkflowsRequestBuilder(Dictionary<string, object>, IRequestAdapter)
Instantiates a new WorkflowsRequestBuilder and sets the default values.
public WorkflowsRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter)
Parameters
pathParameters
Dictionary<string, object>Path parameters for the request
requestAdapter
IRequestAdapterThe request adapter to use to execute the requests.
WorkflowsRequestBuilder(string, IRequestAdapter)
Instantiates a new WorkflowsRequestBuilder and sets the default values.
public WorkflowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
Parameters
rawUrl
stringThe raw URL to use for the request builder.
requestAdapter
IRequestAdapterThe request adapter to use to execute the requests.
Properties
Actions
The actions property
public ActionsRequestBuilder Actions { get; }
Property Value
Definitions
The definitions property
public DefinitionsRequestBuilder Definitions { get; }
Property Value
this[string]
Gets an item from the Autodesk.ACC.CostManagement.v1.projects.item.workflows.item collection
public WithAssociationTypeItemRequestBuilder this[string position] { get; }
Parameters
position
stringThe type of the item with which the actions are associated. Possible values
Budget
,Contract
,FormInstance
,CostItem
,Payment
,MainContract
,BudgetPayment
.
Property Value
Methods
GetAsync(Action<RequestConfiguration<WorkflowsRequestBuilderGetQueryParameters>>?, CancellationToken)
List the current workflow that can execute on the specified item according to the item’s current state.
public Task<List<Step>?> GetAsync(Action<RequestConfiguration<WorkflowsRequestBuilder.WorkflowsRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
requestConfiguration
Action<RequestConfiguration<WorkflowsRequestBuilder.WorkflowsRequestBuilderGetQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
cancellationToken
CancellationTokenCancellation token to use when cancelling requests
Returns
Exceptions
- DefinedError
When receiving a 400 status code
- Error
When receiving a 401 status code
- Error
When receiving a 403 status code
- Error
When receiving a 404 status code
- Error
When receiving a 500 status code
- Error
When receiving a 503 status code
ToGetRequestInformation(Action<RequestConfiguration<WorkflowsRequestBuilderGetQueryParameters>>?)
List the current workflow that can execute on the specified item according to the item’s current state.
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<WorkflowsRequestBuilder.WorkflowsRequestBuilderGetQueryParameters>>? requestConfiguration = null)
Parameters
requestConfiguration
Action<RequestConfiguration<WorkflowsRequestBuilder.WorkflowsRequestBuilderGetQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
Returns
- RequestInformation
A Microsoft.Kiota.Abstractions.RequestInformation
WithUrl(string)
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
public WorkflowsRequestBuilder WithUrl(string rawUrl)
Parameters
rawUrl
stringThe raw URL to use for the request builder.