Table of Contents

Class DefaultValuesRequestBuilder

Namespace
Autodesk.ACC.CostManagement.V1.Projects.Item.DefaultValues
Assembly
Autodesk.ACC.CostManagement.dll

Builds and executes requests for operations under \v1\projects{projectId}\default-values

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

Constructors

DefaultValuesRequestBuilder(Dictionary<string, object>, IRequestAdapter)

Instantiates a new DefaultValuesRequestBuilder and sets the default values.

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

DefaultValuesRequestBuilder(string, IRequestAdapter)

Instantiates a new DefaultValuesRequestBuilder and sets the default values.

public DefaultValuesRequestBuilder(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[Guid]

Gets an item from the Autodesk.ACC.CostManagement.v1.projects.item.defaultValues.item collection

public DefaultValuesItemRequestBuilder this[Guid position] { get; }

Parameters

position Guid

The object ID of the item.

Property Value

DefaultValuesItemRequestBuilder

A DefaultValuesItemRequestBuilder

this[string]

Gets an item from the Autodesk.ACC.CostManagement.v1.projects.item.defaultValues.item collection

[Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")]
public DefaultValuesItemRequestBuilder this[string position] { get; }

Parameters

position string

The object ID of the item.

Property Value

DefaultValuesItemRequestBuilder

A DefaultValuesItemRequestBuilder

Methods

GetAsDefaultValuesGetResponseAsync(Action<RequestConfiguration<DefaultValuesRequestBuilderGetQueryParameters>>?, CancellationToken)

Gets all default value definitions in the given container

public Task<DefaultValuesGetResponse?> GetAsDefaultValuesGetResponseAsync(Action<RequestConfiguration<DefaultValuesRequestBuilder.DefaultValuesRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)

Parameters

requestConfiguration Action<RequestConfiguration<DefaultValuesRequestBuilder.DefaultValuesRequestBuilderGetQueryParameters>>

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

cancellationToken CancellationToken

Cancellation token to use when cancelling requests

Returns

Task<DefaultValuesGetResponse>

A DefaultValuesGetResponse

Exceptions

DefinedError

When receiving a 400 status code

Error

When receiving a 401 status code

Error

When receiving a 403 status code

Error

When receiving a 404 status code

Error

When receiving a 500 status code

Error

When receiving a 503 status code

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

Gets all default value definitions in the given container

[Obsolete("This method is obsolete. Use GetAsDefaultValuesGetResponseAsync instead.")]
public Task<DefaultValuesResponse?> GetAsync(Action<RequestConfiguration<DefaultValuesRequestBuilder.DefaultValuesRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)

Parameters

requestConfiguration Action<RequestConfiguration<DefaultValuesRequestBuilder.DefaultValuesRequestBuilderGetQueryParameters>>

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

cancellationToken CancellationToken

Cancellation token to use when cancelling requests

Returns

Task<DefaultValuesResponse>

A DefaultValuesResponse

Exceptions

DefinedError

When receiving a 400 status code

Error

When receiving a 401 status code

Error

When receiving a 403 status code

Error

When receiving a 404 status code

Error

When receiving a 500 status code

Error

When receiving a 503 status code

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

Create a new default value definition.

public Task<DefaultValue?> PostAsync(DefaultValueCreate body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)

Parameters

body DefaultValueCreate

The request body

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

A DefaultValue

Exceptions

DefinedError

When receiving a 400 status code

Error

When receiving a 401 status code

Error

When receiving a 403 status code

Error

When receiving a 404 status code

Error

When receiving a 500 status code

Error

When receiving a 503 status code

ToGetRequestInformation(Action<RequestConfiguration<DefaultValuesRequestBuilderGetQueryParameters>>?)

Gets all default value definitions in the given container

public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultValuesRequestBuilder.DefaultValuesRequestBuilderGetQueryParameters>>? requestConfiguration = null)

Parameters

requestConfiguration Action<RequestConfiguration<DefaultValuesRequestBuilder.DefaultValuesRequestBuilderGetQueryParameters>>

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

Returns

RequestInformation

A Microsoft.Kiota.Abstractions.RequestInformation

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

Create a new default value definition.

public RequestInformation ToPostRequestInformation(DefaultValueCreate body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null)

Parameters

body DefaultValueCreate

The request body

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

Parameters

rawUrl string

The raw URL to use for the request builder.

Returns

DefaultValuesRequestBuilder

A DefaultValuesRequestBuilder