Class FormatsRequestBuilder
- Namespace
- Autodesk.ModelDerivative.Designdata.Formats
- Assembly
- Autodesk.ModelDerivative.dll
Builds and executes requests for operations under \designdata\formats
public class FormatsRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderFormatsRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.UrlTemplate
Constructors
FormatsRequestBuilder(Dictionary<string, object>, IRequestAdapter)
Instantiates a new FormatsRequestBuilder and sets the default values.
public FormatsRequestBuilder(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.
FormatsRequestBuilder(string, IRequestAdapter)
Instantiates a new FormatsRequestBuilder and sets the default values.
public FormatsRequestBuilder(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)
Returns an up-to-date list of supported translations. You can use to this list to find out what derivatives are supported by each source file type. You can set options to return the list of supported translations only if they have been updated since a specified date.See the Supported Translation Formats table </en/docs/model-derivative/v2/overview/supported-translations>
_ for more details about supported translations.Note: We keep adding new file formats to our supported translations list, constantly.
public Task<Formats?> 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
- Formats400Error
When receiving a 400 status code
- Formats401Error
When receiving a 401 status code
- Formats403Error
When receiving a 403 status code
- Formats404Error
When receiving a 404 status code
- Formats500Error
When receiving a 500 status code
ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>?)
Returns an up-to-date list of supported translations. You can use to this list to find out what derivatives are supported by each source file type. You can set options to return the list of supported translations only if they have been updated since a specified date.See the Supported Translation Formats table </en/docs/model-derivative/v2/overview/supported-translations>
_ for more details about supported translations.Note: We keep adding new file formats to our supported translations list, constantly.
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 FormatsRequestBuilder WithUrl(string rawUrl)
Parameters
rawUrl
stringThe raw URL to use for the request builder.