Table of Contents

Class StorageRequestBuilder

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

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

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

Constructors

StorageRequestBuilder(Dictionary<string, object>, IRequestAdapter)

Instantiates a new StorageRequestBuilder and sets the default values.

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

StorageRequestBuilder(string, IRequestAdapter)

Instantiates a new StorageRequestBuilder and sets the default values.

public StorageRequestBuilder(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

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

Creates a storage location in the OSS where data can be uploaded to.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<Storage?> PostAsync(StorageRequest body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)

Parameters

body StorageRequest

Successful creation of a storage location.

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

A Storage

Exceptions

Storage400Error

When receiving a 400 status code

Storage403Error

When receiving a 403 status code

Storage404Error

When receiving a 404 status code

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

Creates a storage location in the OSS where data can be uploaded to.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 ToPostRequestInformation(StorageRequest body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null)

Parameters

body StorageRequest

Successful creation of a storage location.

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

Parameters

rawUrl string

The raw URL to use for the request builder.

Returns

StorageRequestBuilder

A StorageRequestBuilder