Table of Contents

Class WithDiffItemRequestBuilder

Namespace
Autodesk.ACC.ModelProperties.V2.Projects.Item.Diffs.Item
Assembly
Autodesk.ACC.ModelProperties.dll

Builds and executes requests for operations under \v2\projects{projectId}\diffs{diffId}

public class WithDiffItemRequestBuilder : BaseRequestBuilder
Inheritance
BaseRequestBuilder
WithDiffItemRequestBuilder
Inherited Members
BaseRequestBuilder.PathParameters
BaseRequestBuilder.RequestAdapter
BaseRequestBuilder.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 IRequestAdapter

The 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 string

The raw URL to use for the request builder.

requestAdapter IRequestAdapter

The request adapter to use to execute the requests.

Properties

Fields

The fields property

public FieldsRequestBuilder Fields { get; }

Property Value

FieldsRequestBuilder

Manifest

The manifest property

public ManifestRequestBuilder Manifest { get; }

Property Value

ManifestRequestBuilder

Properties

The properties property

public PropertiesRequestBuilder Properties { get; }

Property Value

PropertiesRequestBuilder

Queries

The queries property

public QueriesRequestBuilder Queries { get; }

Property Value

QueriesRequestBuilder

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 CancellationToken

Cancellation token to use when cancelling requests

Returns

Task<DiffJobStatus>

A DiffJobStatus

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 string

The raw URL to use for the request builder.

Returns

WithDiffItemRequestBuilder

A WithDiffItemRequestBuilder