Class WithChangeOrderItemRequestBuilder
- Namespace
- Autodesk.ACC.CostManagement.V1.Projects.Item.ChangeOrders.Item
- Assembly
- Autodesk.ACC.CostManagement.dll
Builds and executes requests for operations under \v1\projects{projectId}\change-orders{changeOrder}
public class WithChangeOrderItemRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderWithChangeOrderItemRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.UrlTemplate
Constructors
WithChangeOrderItemRequestBuilder(Dictionary<string, object>, IRequestAdapter)
Instantiates a new WithChangeOrderItemRequestBuilder and sets the default values.
public WithChangeOrderItemRequestBuilder(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.
WithChangeOrderItemRequestBuilder(string, IRequestAdapter)
Instantiates a new WithChangeOrderItemRequestBuilder and sets the default values.
public WithChangeOrderItemRequestBuilder(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
Definition
The definition property
public DefinitionRequestBuilder Definition { get; }
Property Value
this[Guid]
Gets an item from the Autodesk.ACC.CostManagement.v1.projects.item.changeOrders.item.item collection
public ChangeOrderItemRequestBuilder this[Guid position] { get; }
Parameters
position
GuidThe change order's ID.
Property Value
this[string]
Gets an item from the Autodesk.ACC.CostManagement.v1.projects.item.changeOrders.item.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 ChangeOrderItemRequestBuilder this[string position] { get; }
Parameters
position
stringThe change order's ID.
Property Value
Methods
GetAsync(Action<RequestConfiguration<WithChangeOrderItemRequestBuilderGetQueryParameters>>?, CancellationToken)
Gets a list of change orders by a specified change order type such as PCO, RFQ, and so on.
public Task<FormInstanceListResponse?> GetAsync(Action<RequestConfiguration<WithChangeOrderItemRequestBuilder.WithChangeOrderItemRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
requestConfiguration
Action<RequestConfiguration<WithChangeOrderItemRequestBuilder.WithChangeOrderItemRequestBuilderGetQueryParameters>>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
PatchAsync(WithChangeOrderPatchRequestBody, Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)
Updates the display name of the change order in the Project.
public Task<FormDefinition?> PatchAsync(WithChangeOrderPatchRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
body
WithChangeOrderPatchRequestBodyThe 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
PostAsync(FormInstanceCreate, Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)
Create a new change order (typically a PCO) to initiate a change.
public Task<FormInstance?> PostAsync(FormInstanceCreate body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
body
FormInstanceCreateThe 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<WithChangeOrderItemRequestBuilderGetQueryParameters>>?)
Gets a list of change orders by a specified change order type such as PCO, RFQ, and so on.
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<WithChangeOrderItemRequestBuilder.WithChangeOrderItemRequestBuilderGetQueryParameters>>? requestConfiguration = null)
Parameters
requestConfiguration
Action<RequestConfiguration<WithChangeOrderItemRequestBuilder.WithChangeOrderItemRequestBuilderGetQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
Returns
- RequestInformation
A Microsoft.Kiota.Abstractions.RequestInformation
ToPatchRequestInformation(WithChangeOrderPatchRequestBody, Action<RequestConfiguration<DefaultQueryParameters>>?)
Updates the display name of the change order in the Project.
public RequestInformation ToPatchRequestInformation(WithChangeOrderPatchRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null)
Parameters
body
WithChangeOrderPatchRequestBodyThe 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
ToPostRequestInformation(FormInstanceCreate, Action<RequestConfiguration<DefaultQueryParameters>>?)
Create a new change order (typically a PCO) to initiate a change.
public RequestInformation ToPostRequestInformation(FormInstanceCreate body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null)
Parameters
body
FormInstanceCreateThe 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 WithChangeOrderItemRequestBuilder WithUrl(string rawUrl)
Parameters
rawUrl
stringThe raw URL to use for the request builder.