Class PerformanceTrackingItemsRequestBuilder
- Assembly
- Autodesk.ACC.CostManagement.dll
Builds and executes requests for operations under \v1\projects{projectId}\performance-tracking-items
public class PerformanceTrackingItemsRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderPerformanceTrackingItemsRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.UrlTemplate
Constructors
PerformanceTrackingItemsRequestBuilder(Dictionary<string, object>, IRequestAdapter)
Instantiates a new PerformanceTrackingItemsRequestBuilder and sets the default values.
public PerformanceTrackingItemsRequestBuilder(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.
PerformanceTrackingItemsRequestBuilder(string, IRequestAdapter)
Instantiates a new PerformanceTrackingItemsRequestBuilder and sets the default values.
public PerformanceTrackingItemsRequestBuilder(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.performanceTrackingItems.item collection
public PerformanceTrackingItemsItemRequestBuilder 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.performanceTrackingItems.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 PerformanceTrackingItemsItemRequestBuilder this[string position] { get; }
Parameters
position
stringThe object ID of the item.
Property Value
Methods
GetAsync(Action<RequestConfiguration<PerformanceTrackingItemsRequestBuilderGetQueryParameters>>?, CancellationToken)
Gets all tracking items in given container
public Task<PerformanceTrackingItemListResponse?> GetAsync(Action<RequestConfiguration<PerformanceTrackingItemsRequestBuilder.PerformanceTrackingItemsRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
requestConfiguration
Action<RequestConfiguration<PerformanceTrackingItemsRequestBuilder.PerformanceTrackingItemsRequestBuilderGetQueryParameters>>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
PostAsync(PerformanceTrackingItemCreate, Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)
Creates a tracking item with a default item instance in given container
public Task<Budget?> PostAsync(PerformanceTrackingItemCreate body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
body
PerformanceTrackingItemCreateThe 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<PerformanceTrackingItemsRequestBuilderGetQueryParameters>>?)
Gets all tracking items in given container
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<PerformanceTrackingItemsRequestBuilder.PerformanceTrackingItemsRequestBuilderGetQueryParameters>>? requestConfiguration = null)
Parameters
requestConfiguration
Action<RequestConfiguration<PerformanceTrackingItemsRequestBuilder.PerformanceTrackingItemsRequestBuilderGetQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
Returns
- RequestInformation
A Microsoft.Kiota.Abstractions.RequestInformation
ToPostRequestInformation(PerformanceTrackingItemCreate, Action<RequestConfiguration<DefaultQueryParameters>>?)
Creates a tracking item with a default item instance in given container
public RequestInformation ToPostRequestInformation(PerformanceTrackingItemCreate body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null)
Parameters
body
PerformanceTrackingItemCreateThe 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 PerformanceTrackingItemsRequestBuilder WithUrl(string rawUrl)
Parameters
rawUrl
stringThe raw URL to use for the request builder.