Class JobRequestBuilder
- Namespace
- Autodesk.ModelDerivative.Designdata.Job
- Assembly
- Autodesk.ModelDerivative.dll
Builds and executes requests for operations under \designdata\job
public class JobRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderJobRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.UrlTemplate
Constructors
JobRequestBuilder(Dictionary<string, object>, IRequestAdapter)
Instantiates a new JobRequestBuilder and sets the default values.
public JobRequestBuilder(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.
JobRequestBuilder(string, IRequestAdapter)
Instantiates a new JobRequestBuilder and sets the default values.
public JobRequestBuilder(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
PostAsync(JobPayload, Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)
You can use this endpoint to do the following:Translate a design from one format to another format.Extract selected parts of a design and export the set of geometries in OBJ format.Generate different-sized thumbnails.
public Task<Job?> PostAsync(JobPayload body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
body
JobPayloadThe request body
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
- Job400Error
When receiving a 400 status code
- Job401Error
When receiving a 401 status code
- Job403Error
When receiving a 403 status code
- Job404Error
When receiving a 404 status code
- Job406Error
When receiving a 406 status code
- Job409Error
When receiving a 409 status code
- Job429Error
When receiving a 429 status code
- Job500Error
When receiving a 500 status code
ToPostRequestInformation(JobPayload, Action<RequestConfiguration<DefaultQueryParameters>>?)
You can use this endpoint to do the following:Translate a design from one format to another format.Extract selected parts of a design and export the set of geometries in OBJ format.Generate different-sized thumbnails.
public RequestInformation ToPostRequestInformation(JobPayload body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null)
Parameters
body
JobPayloadThe 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 JobRequestBuilder WithUrl(string rawUrl)
Parameters
rawUrl
stringThe raw URL to use for the request builder.