Class QueriesRequestBuilder
- Assembly
- Autodesk.ACC.ModelProperties.dll
Builds and executes requests for operations under \v2\projects{projectId}\diffs{diffId}\queries
public class QueriesRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderQueriesRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.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
IRequestAdapterThe 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
stringThe raw URL to use for the request builder.
requestAdapter
IRequestAdapterThe request adapter to use to execute the requests.
Properties
this[string]
Gets an item from the Autodesk.ACC.ModelProperties.v2.projects.item.diffs.item.queries.item collection
public WithQueryItemRequestBuilder this[string position] { get; }
Parameters
position
stringThe query ID.
Property Value
Methods
PostAsync(DiffQueryRequest, Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)
Applies the given query on the given properties index.
public Task<DiffJobStatus?> PostAsync(DiffQueryRequest body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
body
DiffQueryRequestSpecifies an optional query for the diff.
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
ToPostRequestInformation(DiffQueryRequest, Action<RequestConfiguration<DefaultQueryParameters>>?)
Applies the given query on the given properties index.
public RequestInformation ToPostRequestInformation(DiffQueryRequest body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null)
Parameters
body
DiffQueryRequestSpecifies an optional query for the diff.
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
stringThe raw URL to use for the request builder.