Table of Contents

Class WithQueryItemRequestBuilder

Namespace
Autodesk.ACC.ModelProperties.V2.Projects.Item.Indexes.Item.Queries.Item
Assembly
Autodesk.ACC.ModelProperties.dll

Builds and executes requests for operations under \v2\projects{projectId}\indexes{indexId}\queries{queryId}

public class WithQueryItemRequestBuilder : BaseRequestBuilder
Inheritance
BaseRequestBuilder
WithQueryItemRequestBuilder
Inherited Members
BaseRequestBuilder.PathParameters
BaseRequestBuilder.RequestAdapter
BaseRequestBuilder.UrlTemplate

Constructors

WithQueryItemRequestBuilder(Dictionary<string, object>, IRequestAdapter)

Instantiates a new WithQueryItemRequestBuilder and sets the default values.

public WithQueryItemRequestBuilder(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.

WithQueryItemRequestBuilder(string, IRequestAdapter)

Instantiates a new WithQueryItemRequestBuilder and sets the default values.

public WithQueryItemRequestBuilder(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

Properties

The properties property

public PropertiesRequestBuilder Properties { get; }

Property Value

PropertiesRequestBuilder

Methods

GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)

Depending on the state different properties might be present or missing.E.g., if the indexing job is not finished yet, the results link might be missing,but the retryAt property will be present. Or if the processing failed for some reason,the errors property will contain some information.Once the final result of the indexing 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<IndexJobStatus?> 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<IndexJobStatus>

A IndexJobStatus

Exceptions

ResourceError

When receiving a 401 status code

ResourceError

When receiving a 404 status code

ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>?)

Depending on the state different properties might be present or missing.E.g., if the indexing job is not finished yet, the results link might be missing,but the retryAt property will be present. Or if the processing failed for some reason,the errors property will contain some information.Once the final result of the indexing 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 WithQueryItemRequestBuilder WithUrl(string rawUrl)

Parameters

rawUrl string

The raw URL to use for the request builder.

Returns

WithQueryItemRequestBuilder

A WithQueryItemRequestBuilder