Table of Contents

Class PropertiesRequestBuilder

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

Builds and executes requests for operations under \v1\projects{projectId}\properties

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

Constructors

PropertiesRequestBuilder(Dictionary<string, object>, IRequestAdapter)

Instantiates a new PropertiesRequestBuilder and sets the default values.

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

PropertiesRequestBuilder(string, IRequestAdapter)

Instantiates a new PropertiesRequestBuilder and sets the default values.

public PropertiesRequestBuilder(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.CostManagement.v1.projects.item.properties.item collection

public PropertiesItemRequestBuilder this[string position] { get; }

Parameters

position string

The property ID.

Property Value

PropertiesItemRequestBuilder

A PropertiesItemRequestBuilder

Methods

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

Lists all the attribute definitions created to define custom attributes for a given module.

public Task<List<PropertyDefinition>?> GetAsync(Action<RequestConfiguration<PropertiesRequestBuilder.PropertiesRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)

Parameters

requestConfiguration Action<RequestConfiguration<PropertiesRequestBuilder.PropertiesRequestBuilderGetQueryParameters>>

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

cancellationToken CancellationToken

Cancellation token to use when cancelling requests

Returns

Task<List<PropertyDefinition>>

A List<global::Autodesk.ACC.CostManagement.Models.PropertyDefinition>

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(PropertiesPostRequestBody, Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)

Create a new Attribute Definition for a given module

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

Parameters

body PropertiesPostRequestBody

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

A PropertyDefinition

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

PutAsync(PropertiesPutRequestBody, Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)

Reorder all the Attribute Definition defined in a given module

public Task<List<PropertyDefinition>?> PutAsync(PropertiesPutRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)

Parameters

body PropertiesPutRequestBody

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<List<PropertyDefinition>>

A List<global::Autodesk.ACC.CostManagement.Models.PropertyDefinition>

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<PropertiesRequestBuilderGetQueryParameters>>?)

Lists all the attribute definitions created to define custom attributes for a given module.

public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<PropertiesRequestBuilder.PropertiesRequestBuilderGetQueryParameters>>? requestConfiguration = null)

Parameters

requestConfiguration Action<RequestConfiguration<PropertiesRequestBuilder.PropertiesRequestBuilderGetQueryParameters>>

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

Returns

RequestInformation

A Microsoft.Kiota.Abstractions.RequestInformation

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

Create a new Attribute Definition for a given module

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

Parameters

body PropertiesPostRequestBody

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

ToPutRequestInformation(PropertiesPutRequestBody, Action<RequestConfiguration<DefaultQueryParameters>>?)

Reorder all the Attribute Definition defined in a given module

public RequestInformation ToPutRequestInformation(PropertiesPutRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null)

Parameters

body PropertiesPutRequestBody

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

Parameters

rawUrl string

The raw URL to use for the request builder.

Returns

PropertiesRequestBuilder

A PropertiesRequestBuilder