Class DownloadsRequestBuilder
- Assembly
- Autodesk.DataManagement.dll
Builds and executes requests for operations under \data\v1\projects{project_id}\downloads
public class DownloadsRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderDownloadsRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.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
IRequestAdapterThe 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
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.DataManagement.data.v1.projects.item.downloads.item collection
public WithDownload_ItemRequestBuilder this[string position] { get; }
Parameters
position
stringThe unique identifier of a download job.
Property Value
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
CreateDownloadDescribe the download to be created.
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
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
CreateDownloadDescribe 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
stringThe raw URL to use for the request builder.