Class WorkflowDefinitionsRequestBuilder
- Namespace
- Autodesk.ACC.CostManagement.V1.Projects.Item.WorkflowDefinitions
- Assembly
- Autodesk.ACC.CostManagement.dll
Builds and executes requests for operations under \v1\projects{projectId}\workflow-definitions
public class WorkflowDefinitionsRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderWorkflowDefinitionsRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.UrlTemplate
Constructors
WorkflowDefinitionsRequestBuilder(Dictionary<string, object>, IRequestAdapter)
Instantiates a new WorkflowDefinitionsRequestBuilder and sets the default values.
public WorkflowDefinitionsRequestBuilder(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.
WorkflowDefinitionsRequestBuilder(string, IRequestAdapter)
Instantiates a new WorkflowDefinitionsRequestBuilder and sets the default values.
public WorkflowDefinitionsRequestBuilder(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
this[Guid]
Gets an item from the Autodesk.ACC.CostManagement.v1.projects.item.workflowDefinitions.item collection
public WorkflowDefinitionsItemRequestBuilder this[Guid position] { get; }
Parameters
position
GuidThe object ID of the item.
Property Value
this[string]
Gets an item from the Autodesk.ACC.CostManagement.v1.projects.item.workflowDefinitions.item collection
[Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")]
public WorkflowDefinitionsItemRequestBuilder this[string position] { get; }
Parameters
position
stringThe object ID of the item.
Property Value
Methods
GetAsync(Action<RequestConfiguration<WorkflowDefinitionsRequestBuilderGetQueryParameters>>?, CancellationToken)
Gets all the workflow definitions for an association type.
public Task<List<WorkflowDefinition>?> GetAsync(Action<RequestConfiguration<WorkflowDefinitionsRequestBuilder.WorkflowDefinitionsRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
requestConfiguration
Action<RequestConfiguration<WorkflowDefinitionsRequestBuilder.WorkflowDefinitionsRequestBuilderGetQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
cancellationToken
CancellationTokenCancellation token to use when cancelling requests
Returns
- Task<List<WorkflowDefinition>>
A List<global::Autodesk.ACC.CostManagement.Models.WorkflowDefinition>
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
PostAsync(WorkflowDefinitionCreate, Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)
Creates a new workflow definiton for an association type.
public Task<WorkflowDefinition?> PostAsync(WorkflowDefinitionCreate body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
body
WorkflowDefinitionCreateThe request body
requestConfiguration
Action<RequestConfiguration<DefaultQueryParameters>>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<WorkflowDefinitionsRequestBuilderGetQueryParameters>>?)
Gets all the workflow definitions for an association type.
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<WorkflowDefinitionsRequestBuilder.WorkflowDefinitionsRequestBuilderGetQueryParameters>>? requestConfiguration = null)
Parameters
requestConfiguration
Action<RequestConfiguration<WorkflowDefinitionsRequestBuilder.WorkflowDefinitionsRequestBuilderGetQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
Returns
- RequestInformation
A Microsoft.Kiota.Abstractions.RequestInformation
ToPostRequestInformation(WorkflowDefinitionCreate, Action<RequestConfiguration<DefaultQueryParameters>>?)
Creates a new workflow definiton for an association type.
public RequestInformation ToPostRequestInformation(WorkflowDefinitionCreate body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null)
Parameters
body
WorkflowDefinitionCreateThe request body
requestConfiguration
Action<RequestConfiguration<DefaultQueryParameters>>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 WorkflowDefinitionsRequestBuilder WithUrl(string rawUrl)
Parameters
rawUrl
stringThe raw URL to use for the request builder.