Table of Contents

Class DownloadsRequestBuilder

Namespace
Autodesk.DataManagement.Data.V1.Projects.Item.Downloads
Assembly
Autodesk.DataManagement.dll

Builds and executes requests for operations under \data\v1\projects{project_id}\downloads

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

Constructors

DownloadsRequestBuilder(Dictionary<string, object>, IRequestAdapter)

Instantiates a new DownloadsRequestBuilder and sets the default values.

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

DownloadsRequestBuilder(string, IRequestAdapter)

Instantiates a new DownloadsRequestBuilder and sets the default values.

public DownloadsRequestBuilder(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.DataManagement.data.v1.projects.item.downloads.item collection

public WithDownload_ItemRequestBuilder this[string position] { get; }

Parameters

position string

The unique identifier of a download job.

Property Value

WithDownload_ItemRequestBuilder

A WithDownload_ItemRequestBuilder

Methods

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

Request the creation of a new download for a specific and supported file type. The fileType specified in the POST body needs to be contained in the list of supported file types returned by the GET /data/v1/projects/:project_id/downloads endpoint for the specified version_id.

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

Parameters

body CreateDownload

Describe the download to be created.

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<CreatedDownload>

A CreatedDownload

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

Request the creation of a new download for a specific and supported file type. The fileType specified in the POST body needs to be contained in the list of supported file types returned by the GET /data/v1/projects/:project_id/downloads endpoint for the specified version_id.

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

Parameters

body CreateDownload

Describe the download to be created.

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

Parameters

rawUrl string

The raw URL to use for the request builder.

Returns

DownloadsRequestBuilder

A DownloadsRequestBuilder