Table of Contents

Class SignedRequestBuilder

Namespace
Autodesk.DataManagement.OSS.Oss.V2.Buckets.Item.Objects.Item.Signed
Assembly
Autodesk.DataManagement.dll

Builds and executes requests for operations under \oss\v2\buckets{bucketKey}\objects{objectKey}\signed

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

Constructors

SignedRequestBuilder(Dictionary<string, object>, IRequestAdapter)

Instantiates a new SignedRequestBuilder and sets the default values.

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

SignedRequestBuilder(string, IRequestAdapter)

Instantiates a new SignedRequestBuilder and sets the default values.

public SignedRequestBuilder(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(Create_signed_resource, Action<RequestConfiguration<SignedRequestBuilderPostQueryParameters>>?, CancellationToken)

This endpoint creates a signed URL that can be used to download an object within the specified expiration time. Be aware that if the object the signed URL points to is deleted or expires before the signed URL expires, then the signed URL will no longer be valid. A successful call to this endpoint requires bucket owner access.

public Task<Create_object_signed?> PostAsync(Create_signed_resource body, Action<RequestConfiguration<SignedRequestBuilder.SignedRequestBuilderPostQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)

Parameters

body Create_signed_resource

The request body

requestConfiguration Action<RequestConfiguration<SignedRequestBuilder.SignedRequestBuilderPostQueryParameters>>

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

cancellationToken CancellationToken

Cancellation token to use when cancelling requests

Returns

Task<Create_object_signed>

A Create_object_signed

ToPostRequestInformation(Create_signed_resource, Action<RequestConfiguration<SignedRequestBuilderPostQueryParameters>>?)

This endpoint creates a signed URL that can be used to download an object within the specified expiration time. Be aware that if the object the signed URL points to is deleted or expires before the signed URL expires, then the signed URL will no longer be valid. A successful call to this endpoint requires bucket owner access.

public RequestInformation ToPostRequestInformation(Create_signed_resource body, Action<RequestConfiguration<SignedRequestBuilder.SignedRequestBuilderPostQueryParameters>>? requestConfiguration = null)

Parameters

body Create_signed_resource

The request body

requestConfiguration Action<RequestConfiguration<SignedRequestBuilder.SignedRequestBuilderPostQueryParameters>>

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

Parameters

rawUrl string

The raw URL to use for the request builder.

Returns

SignedRequestBuilder

A SignedRequestBuilder