Table of Contents

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
BaseRequestBuilder
JobRequestBuilder
Inherited Members
BaseRequestBuilder.PathParameters
BaseRequestBuilder.RequestAdapter
BaseRequestBuilder.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 IRequestAdapter

The 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 string

The raw URL to use for the request builder.

requestAdapter IRequestAdapter

The 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 JobPayload

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

A Job

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 JobPayload

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

Parameters

rawUrl string

The raw URL to use for the request builder.

Returns

JobRequestBuilder

A JobRequestBuilder