Table of Contents

Class QueriesRequestBuilder

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

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

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

Constructors

QueriesRequestBuilder(Dictionary<string, object>, IRequestAdapter)

Instantiates a new QueriesRequestBuilder and sets the default values.

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

QueriesRequestBuilder(string, IRequestAdapter)

Instantiates a new QueriesRequestBuilder and sets the default values.

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

this[string]

Gets an item from the Autodesk.ACC.ModelProperties.v2.projects.item.indexes.item.queries.item collection

public WithQueryItemRequestBuilder this[string position] { get; }

Parameters

position string

The query ID.

Property Value

WithQueryItemRequestBuilder

A WithQueryItemRequestBuilder

Methods

PostAsync(IndexQueryRequest, Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)

Applies the given query on the given properties index.

public Task<IndexJobStatus?> PostAsync(IndexQueryRequest body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)

Parameters

body IndexQueryRequest

Specifies an optional query for the index.

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

ToPostRequestInformation(IndexQueryRequest, Action<RequestConfiguration<DefaultQueryParameters>>?)

Applies the given query on the given properties index.

public RequestInformation ToPostRequestInformation(IndexQueryRequest body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null)

Parameters

body IndexQueryRequest

Specifies an optional query for the index.

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 QueriesRequestBuilder WithUrl(string rawUrl)

Parameters

rawUrl string

The raw URL to use for the request builder.

Returns

QueriesRequestBuilder

A QueriesRequestBuilder