Table of Contents

Class SearchRequestBuilder

Namespace
Autodesk.DataManagement.Data.V1.Projects.Item.Folders.Item.Search
Assembly
Autodesk.DataManagement.dll

Builds and executes requests for operations under \data\v1\projects{project_id}\folders{folder_id}\search

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

Constructors

SearchRequestBuilder(Dictionary<string, object>, IRequestAdapter)

Instantiates a new SearchRequestBuilder and sets the default values.

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

SearchRequestBuilder(string, IRequestAdapter)

Instantiates a new SearchRequestBuilder and sets the default values.

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

Methods

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

Filters the data of a folder and recursively in the subfolders of any project accessible to you, using the filter query string parameter. You can filter the following properties from the version payload: the type property, the id property, and any of the attributes object properties. For example, you can filter createTime, mimeType. It returns tip versions (latest versions) of properties where the filter conditions are satisfied. To verify the properties of the attributes object for a specific version, see the GET projects/:project_id/versions/:version_id.To filter a folder's data without recursively filtering its subfolders, see the GET projects/:project_id/folders/:folder_id/contents endpoint.New! Autodesk Construction Cloud platform (ACC). Note that this endpoint is compatible with ACC projects. For more information about the Autodesk Construction Cloud APIs, see the Autodesk Construction Cloud documentation.

public Task<Search?> GetAsync(Action<RequestConfiguration<SearchRequestBuilder.SearchRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)

Parameters

requestConfiguration Action<RequestConfiguration<SearchRequestBuilder.SearchRequestBuilderGetQueryParameters>>

Configuration for the request such as headers, query parameters, and middleware options.

cancellationToken CancellationToken

Cancellation token to use when cancelling requests

Returns

Task<Search>

A Search

Exceptions

Search400Error

When receiving a 400 status code

Search403Error

When receiving a 403 status code

Search404Error

When receiving a 404 status code

ToGetRequestInformation(Action<RequestConfiguration<SearchRequestBuilderGetQueryParameters>>?)

Filters the data of a folder and recursively in the subfolders of any project accessible to you, using the filter query string parameter. You can filter the following properties from the version payload: the type property, the id property, and any of the attributes object properties. For example, you can filter createTime, mimeType. It returns tip versions (latest versions) of properties where the filter conditions are satisfied. To verify the properties of the attributes object for a specific version, see the GET projects/:project_id/versions/:version_id.To filter a folder's data without recursively filtering its subfolders, see the GET projects/:project_id/folders/:folder_id/contents endpoint.New! Autodesk Construction Cloud platform (ACC). Note that this endpoint is compatible with ACC projects. For more information about the Autodesk Construction Cloud APIs, see the Autodesk Construction Cloud documentation.

public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<SearchRequestBuilder.SearchRequestBuilderGetQueryParameters>>? requestConfiguration = null)

Parameters

requestConfiguration Action<RequestConfiguration<SearchRequestBuilder.SearchRequestBuilderGetQueryParameters>>

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

Parameters

rawUrl string

The raw URL to use for the request builder.

Returns

SearchRequestBuilder

A SearchRequestBuilder