Class SignedRequestBuilder
- Assembly
- Autodesk.DataManagement.dll
Builds and executes requests for operations under \oss\v2\buckets{bucketKey}\objects{objectKey}\signed
public class SignedRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderSignedRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.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
IRequestAdapterThe 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
stringThe raw URL to use for the request builder.
requestAdapter
IRequestAdapterThe 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_resourceThe request body
requestConfiguration
Action<RequestConfiguration<SignedRequestBuilder.SignedRequestBuilderPostQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
cancellationToken
CancellationTokenCancellation token to use when cancelling requests
Returns
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_resourceThe 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
stringThe raw URL to use for the request builder.