Class PropertiesRequestBuilder
- Namespace
- Autodesk.ACC.ModelProperties.V2.Projects.Item.Diffs.Item.Properties
- Assembly
- Autodesk.ACC.ModelProperties.dll
Builds and executes requests for operations under \v2\projects{projectId}\diffs{diffId}\properties
public class PropertiesRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderPropertiesRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.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
IRequestAdapterThe 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
stringThe raw URL to use for the request builder.
requestAdapter
IRequestAdapterThe request adapter to use to execute the requests.
Methods
GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)
Retrieve the specific properties of the given diff.Since the properties for a diff index - once created - are immutable the response will set a long expiration HTTP headerfor efficient client side caching.
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
CancellationTokenCancellation token to use when cancelling requests
Returns
Exceptions
- ResourceError
When receiving a 401 status code
ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>?)
Retrieve the specific properties of the given diff.Since the properties for a diff index - once created - are immutable the response will set a long expiration HTTP headerfor efficient client side caching.
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 PropertiesRequestBuilder WithUrl(string rawUrl)
Parameters
rawUrl
stringThe raw URL to use for the request builder.