Class WithDiffItemRequestBuilder
- Assembly
- Autodesk.ACC.ModelProperties.dll
Builds and executes requests for operations under \v2\projects{projectId}\diffs{diffId}
public class WithDiffItemRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderWithDiffItemRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.UrlTemplate
Constructors
WithDiffItemRequestBuilder(Dictionary<string, object>, IRequestAdapter)
Instantiates a new WithDiffItemRequestBuilder and sets the default values.
public WithDiffItemRequestBuilder(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.
WithDiffItemRequestBuilder(string, IRequestAdapter)
Instantiates a new WithDiffItemRequestBuilder and sets the default values.
public WithDiffItemRequestBuilder(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
Fields
The fields property
public FieldsRequestBuilder Fields { get; }
Property Value
Manifest
The manifest property
public ManifestRequestBuilder Manifest { get; }
Property Value
Properties
The properties property
public PropertiesRequestBuilder Properties { get; }
Property Value
Queries
The queries property
public QueriesRequestBuilder Queries { get; }
Property Value
Methods
GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)
Retrieve the diff status for the given diff ID.Depending on the state different properties might be present or missing.E.g., if the diff job is not finished yet, the manifest, fields, andproperties links might be missing, but the retryAt property will be present.Or if the processing failed for some reason, the errors property will containsome information.Once the final result of the diff job has been determined (either finished or failed),the status is assumed to be immutable and the response will set a long expiration HTTP headerfor efficient client side caching.
public Task<DiffJobStatus?> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
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
- ResourceError
When receiving a 401 status code
- ResourceError
When receiving a 404 status code
ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>?)
Retrieve the diff status for the given diff ID.Depending on the state different properties might be present or missing.E.g., if the diff job is not finished yet, the manifest, fields, andproperties links might be missing, but the retryAt property will be present.Or if the processing failed for some reason, the errors property will containsome information.Once the final result of the diff job has been determined (either finished or failed),the status is assumed to be immutable and the response will set a long expiration HTTP headerfor efficient client side caching.
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null)
Parameters
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 WithDiffItemRequestBuilder WithUrl(string rawUrl)
Parameters
rawUrl
stringThe raw URL to use for the request builder.