Class ContentsRequestBuilder
- Assembly
- Autodesk.DataManagement.dll
Builds and executes requests for operations under \data\v1\projects{project_id}\folders{folder_id}\contents
public class ContentsRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderContentsRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.UrlTemplate
Constructors
ContentsRequestBuilder(Dictionary<string, object>, IRequestAdapter)
Instantiates a new ContentsRequestBuilder and sets the default values.
public ContentsRequestBuilder(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.
ContentsRequestBuilder(string, IRequestAdapter)
Instantiates a new ContentsRequestBuilder and sets the default values.
public ContentsRequestBuilder(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.
Methods
GetAsync(Action<RequestConfiguration<ContentsRequestBuilderGetQueryParameters>>?, CancellationToken)
Returns a collection of items and folders within a folder. Items represent word documents, fusion design files, drawings, spreadsheets, etc.Notes:The tip version for each item resource is included by default in the included array of the payload.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<FolderContents?> GetAsync(Action<RequestConfiguration<ContentsRequestBuilder.ContentsRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
requestConfiguration
Action<RequestConfiguration<ContentsRequestBuilder.ContentsRequestBuilderGetQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
cancellationToken
CancellationTokenCancellation token to use when cancelling requests
Returns
Exceptions
- FolderContents400Error
When receiving a 400 status code
- FolderContents403Error
When receiving a 403 status code
- FolderContents404Error
When receiving a 404 status code
ToGetRequestInformation(Action<RequestConfiguration<ContentsRequestBuilderGetQueryParameters>>?)
Returns a collection of items and folders within a folder. Items represent word documents, fusion design files, drawings, spreadsheets, etc.Notes:The tip version for each item resource is included by default in the included array of the payload.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<ContentsRequestBuilder.ContentsRequestBuilderGetQueryParameters>>? requestConfiguration = null)
Parameters
requestConfiguration
Action<RequestConfiguration<ContentsRequestBuilder.ContentsRequestBuilderGetQueryParameters>>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 ContentsRequestBuilder WithUrl(string rawUrl)
Parameters
rawUrl
stringThe raw URL to use for the request builder.