Class WithVersion_ItemRequestBuilder
- Assembly
- Autodesk.DataManagement.dll
Builds and executes requests for operations under \data\v1\projects{project_id}\versions{version_id}
public class WithVersion_ItemRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderWithVersion_ItemRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.UrlTemplate
Constructors
WithVersion_ItemRequestBuilder(Dictionary<string, object>, IRequestAdapter)
Instantiates a new WithVersion_ItemRequestBuilder and sets the default values.
public WithVersion_ItemRequestBuilder(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.
WithVersion_ItemRequestBuilder(string, IRequestAdapter)
Instantiates a new WithVersion_ItemRequestBuilder and sets the default values.
public WithVersion_ItemRequestBuilder(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
DownloadFormats
The downloadFormats property
public DownloadFormatsRequestBuilder DownloadFormats { get; }
Property Value
Downloads
The downloads property
public DownloadsRequestBuilder Downloads { get; }
Property Value
Item
The item property
public Item_EscapedRequestBuilder Item { get; }
Property Value
Refs
The refs property
public RefsRequestBuilder Refs { get; }
Property Value
Relationships
The relationships property
public RelationshipsRequestBuilder Relationships { get; }
Property Value
Methods
GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)
Returns the version with the given version_id.New! Autodesk Construction Cloud platform (ACC). Note that this endpoint is compatible with ACC projects. For more information about the Autodesk Construction Cloud APIs, see the Autodesk Construction Cloud documentation.
public Task<VersionObject?> 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
- Version400Error
When receiving a 400 status code
- Version403Error
When receiving a 403 status code
- Version404Error
When receiving a 404 status code
PatchAsync(VersionRequest, Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)
Updates the properties of the given version_id object.
public Task<VersionObject?> PatchAsync(VersionRequest body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
body
VersionRequestDescribe the version to be patched.
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
- Version400Error
When receiving a 400 status code
- Version403Error
When receiving a 403 status code
- Version404Error
When receiving a 404 status code
- Version423Error
When receiving a 423 status code
ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>?)
Returns the version with the given version_id.New! Autodesk Construction Cloud platform (ACC). Note that this endpoint is compatible with ACC projects. For more information about the Autodesk Construction Cloud APIs, see the Autodesk Construction Cloud documentation.
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
ToPatchRequestInformation(VersionRequest, Action<RequestConfiguration<DefaultQueryParameters>>?)
Updates the properties of the given version_id object.
public RequestInformation ToPatchRequestInformation(VersionRequest body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null)
Parameters
body
VersionRequestDescribe the version to be patched.
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 WithVersion_ItemRequestBuilder WithUrl(string rawUrl)
Parameters
rawUrl
stringThe raw URL to use for the request builder.