Class BucketsRequestBuilder
Builds and executes requests for operations under \oss\v2\buckets
public class BucketsRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderBucketsRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.UrlTemplate
Constructors
BucketsRequestBuilder(Dictionary<string, object>, IRequestAdapter)
Instantiates a new BucketsRequestBuilder and sets the default values.
public BucketsRequestBuilder(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.
BucketsRequestBuilder(string, IRequestAdapter)
Instantiates a new BucketsRequestBuilder and sets the default values.
public BucketsRequestBuilder(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.OSS.oss.v2.buckets.item collection
public WithBucketKeyItemRequestBuilder this[string position] { get; }
Parameters
position
stringURL-encoded bucket key
Property Value
Methods
GetAsync(Action<RequestConfiguration<BucketsRequestBuilderGetQueryParameters>>?, CancellationToken)
This endpoint will return the buckets owned by the application. This endpoint supports pagination.
public Task<Buckets?> GetAsync(Action<RequestConfiguration<BucketsRequestBuilder.BucketsRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
requestConfiguration
Action<RequestConfiguration<BucketsRequestBuilder.BucketsRequestBuilderGetQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
cancellationToken
CancellationTokenCancellation token to use when cancelling requests
Returns
PostAsync(Create_buckets_payload, Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)
Use this endpoint to create a bucket. Buckets are arbitrary spaces created and owned by applications. Bucket keys are globally unique across all regions, regardless of where they were created, and they cannot be changed. The application creating the bucket is the owner of the bucket.
public Task<Bucket?> PostAsync(Create_buckets_payload body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
body
Create_buckets_payloadBucket Payload Body Structure
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
Exceptions
- Reason
When receiving a 409 status code
ToGetRequestInformation(Action<RequestConfiguration<BucketsRequestBuilderGetQueryParameters>>?)
This endpoint will return the buckets owned by the application. This endpoint supports pagination.
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<BucketsRequestBuilder.BucketsRequestBuilderGetQueryParameters>>? requestConfiguration = null)
Parameters
requestConfiguration
Action<RequestConfiguration<BucketsRequestBuilder.BucketsRequestBuilderGetQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
Returns
- RequestInformation
A Microsoft.Kiota.Abstractions.RequestInformation
ToPostRequestInformation(Create_buckets_payload, Action<RequestConfiguration<DefaultQueryParameters>>?)
Use this endpoint to create a bucket. Buckets are arbitrary spaces created and owned by applications. Bucket keys are globally unique across all regions, regardless of where they were created, and they cannot be changed. The application creating the bucket is the owner of the bucket.
public RequestInformation ToPostRequestInformation(Create_buckets_payload body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null)
Parameters
body
Create_buckets_payloadBucket Payload Body Structure
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 BucketsRequestBuilder WithUrl(string rawUrl)
Parameters
rawUrl
stringThe raw URL to use for the request builder.