Table of Contents

Class ParametersRequestBuilder

Namespace
Autodesk.ACC.ModelProperties.V2.Projects.Item.CustomProperties.Parameters
Assembly
Autodesk.ACC.ModelProperties.dll

Builds and executes requests for operations under \v2\projects{projectId}\custom-properties\parameters

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

Constructors

ParametersRequestBuilder(Dictionary<string, object>, IRequestAdapter)

Instantiates a new ParametersRequestBuilder and sets the default values.

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

ParametersRequestBuilder(string, IRequestAdapter)

Instantiates a new ParametersRequestBuilder and sets the default values.

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

Properties

this[string]

Gets an item from the Autodesk.ACC.ModelProperties.v2.projects.item.customProperties.parameters.item collection

public WithParameterItemRequestBuilder this[string position] { get; }

Parameters

position string

A Parameter ID from the Parameter Service.

Property Value

WithParameterItemRequestBuilder

A WithParameterItemRequestBuilder

Methods

GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)

Read the list of all Parameters that have been imported into the project as Custom Properties.

public Task<Stream?> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)

Parameters

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

A Stream

Exceptions

ResourceError

When receiving a 404 status code

ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>?)

Read the list of all Parameters that have been imported into the project as Custom Properties.

public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null)

Parameters

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

Parameters

rawUrl string

The raw URL to use for the request builder.

Returns

ParametersRequestBuilder

A ParametersRequestBuilder