All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vertexvis.api.PartRevisionsApi Maven / Gradle / Ivy

/*
 * Vertex Platform API
 * The Vertex distributed cloud rendering platform includes a set of APIs and SDKs, which together allow easily integrating 3D product data into your business application.  See our [Developer Guides](https://developer.vertexvis.com/docs/guides/render-your-first-scene) to get started.  Notes about the Postman collection and API Reference code samples,   - They include all required and optional body parameters for completeness. Remove any optional parameters as desired.   - They use auto-generated IDs and other values that may share the same value for ease of documentation only. In actual requests and responses, the IDs should uniquely identify their corresponding resource. 
 *
 * The version of the OpenAPI document: 1.0
 * Contact: [email protected]
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package com.vertexvis.api;

import com.vertexvis.ApiCallback;
import com.vertexvis.ApiClient;
import com.vertexvis.ApiException;
import com.vertexvis.ApiResponse;
import com.vertexvis.Configuration;
import com.vertexvis.Pair;
import com.vertexvis.ProgressRequestBody;
import com.vertexvis.ProgressResponseBody;

import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import java.math.BigDecimal;
import com.vertexvis.model.Failure;
import java.io.File;
import com.vertexvis.model.PartRevision;
import com.vertexvis.model.PartRevisionList;
import com.vertexvis.model.QueuedJob;
import java.util.UUID;
import com.vertexvis.model.UpdatePartRevisionRequest;
import com.vertexvis.model.Vector3;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class PartRevisionsApi {
    private ApiClient localVarApiClient;

    public PartRevisionsApi() {
        this(Configuration.getDefaultApiClient());
    }

    public PartRevisionsApi(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

    public void setApiClient(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    /**
     * Build call for deletePartRevision
     * @param id The `part-revision` ID. (required)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     
Status Code Description Response Headers
202 Accepted * content-location -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public okhttp3.Call deletePartRevisionCall(UUID id, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/part-revisions/{id}" .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/vnd.api+json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "OAuth2" }; return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deletePartRevisionValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException { // verify the required parameter 'id' is set if (id == null) { throw new ApiException("Missing the required parameter 'id' when calling deletePartRevision(Async)"); } okhttp3.Call localVarCall = deletePartRevisionCall(id, _callback); return localVarCall; } /** * * Delete a `part-revision`. * @param id The `part-revision` ID. (required) * @return QueuedJob * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
202 Accepted * content-location -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public QueuedJob deletePartRevision(UUID id) throws ApiException { ApiResponse localVarResp = deletePartRevisionWithHttpInfo(id); return localVarResp.getData(); } /** * * Delete a `part-revision`. * @param id The `part-revision` ID. (required) * @return ApiResponse<QueuedJob> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
202 Accepted * content-location -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public ApiResponse deletePartRevisionWithHttpInfo(UUID id) throws ApiException { okhttp3.Call localVarCall = deletePartRevisionValidateBeforeCall(id, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Delete a `part-revision`. * @param id The `part-revision` ID. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
202 Accepted * content-location -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public okhttp3.Call deletePartRevisionAsync(UUID id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deletePartRevisionValidateBeforeCall(id, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getPartRevision * @param id The `part-revision` ID. (required) * @param fieldsPartRevision Comma-separated list of fields to return in response. An empty value returns no fields. Due to its potential size, metadata is only returned if explicitly requested. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public okhttp3.Call getPartRevisionCall(UUID id, String fieldsPartRevision, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/part-revisions/{id}" .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (fieldsPartRevision != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fields[part-revision]", fieldsPartRevision)); } final String[] localVarAccepts = { "application/vnd.api+json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "OAuth2" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getPartRevisionValidateBeforeCall(UUID id, String fieldsPartRevision, final ApiCallback _callback) throws ApiException { // verify the required parameter 'id' is set if (id == null) { throw new ApiException("Missing the required parameter 'id' when calling getPartRevision(Async)"); } okhttp3.Call localVarCall = getPartRevisionCall(id, fieldsPartRevision, _callback); return localVarCall; } /** * * Get a `part-revision` by ID. * @param id The `part-revision` ID. (required) * @param fieldsPartRevision Comma-separated list of fields to return in response. An empty value returns no fields. Due to its potential size, metadata is only returned if explicitly requested. (optional) * @return PartRevision * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public PartRevision getPartRevision(UUID id, String fieldsPartRevision) throws ApiException { ApiResponse localVarResp = getPartRevisionWithHttpInfo(id, fieldsPartRevision); return localVarResp.getData(); } /** * * Get a `part-revision` by ID. * @param id The `part-revision` ID. (required) * @param fieldsPartRevision Comma-separated list of fields to return in response. An empty value returns no fields. Due to its potential size, metadata is only returned if explicitly requested. (optional) * @return ApiResponse<PartRevision> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public ApiResponse getPartRevisionWithHttpInfo(UUID id, String fieldsPartRevision) throws ApiException { okhttp3.Call localVarCall = getPartRevisionValidateBeforeCall(id, fieldsPartRevision, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Get a `part-revision` by ID. * @param id The `part-revision` ID. (required) * @param fieldsPartRevision Comma-separated list of fields to return in response. An empty value returns no fields. Due to its potential size, metadata is only returned if explicitly requested. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public okhttp3.Call getPartRevisionAsync(UUID id, String fieldsPartRevision, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPartRevisionValidateBeforeCall(id, fieldsPartRevision, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getPartRevisions * @param id The `part` ID. (required) * @param pageCursor The cursor for the next page of items. (optional) * @param pageSize The number of items to return. (optional) * @param filterSuppliedId Comma-separated list of supplied IDs to filter on. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public okhttp3.Call getPartRevisionsCall(UUID id, String pageCursor, Integer pageSize, String filterSuppliedId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/parts/{id}/part-revisions" .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (pageCursor != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("page[cursor]", pageCursor)); } if (pageSize != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("page[size]", pageSize)); } if (filterSuppliedId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("filter[suppliedId]", filterSuppliedId)); } final String[] localVarAccepts = { "application/vnd.api+json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "OAuth2" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getPartRevisionsValidateBeforeCall(UUID id, String pageCursor, Integer pageSize, String filterSuppliedId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'id' is set if (id == null) { throw new ApiException("Missing the required parameter 'id' when calling getPartRevisions(Async)"); } okhttp3.Call localVarCall = getPartRevisionsCall(id, pageCursor, pageSize, filterSuppliedId, _callback); return localVarCall; } /** * * Get `part-revisions` for a `part`. * @param id The `part` ID. (required) * @param pageCursor The cursor for the next page of items. (optional) * @param pageSize The number of items to return. (optional) * @param filterSuppliedId Comma-separated list of supplied IDs to filter on. (optional) * @return PartRevisionList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public PartRevisionList getPartRevisions(UUID id, String pageCursor, Integer pageSize, String filterSuppliedId) throws ApiException { ApiResponse localVarResp = getPartRevisionsWithHttpInfo(id, pageCursor, pageSize, filterSuppliedId); return localVarResp.getData(); } /** * * Get `part-revisions` for a `part`. * @param id The `part` ID. (required) * @param pageCursor The cursor for the next page of items. (optional) * @param pageSize The number of items to return. (optional) * @param filterSuppliedId Comma-separated list of supplied IDs to filter on. (optional) * @return ApiResponse<PartRevisionList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public ApiResponse getPartRevisionsWithHttpInfo(UUID id, String pageCursor, Integer pageSize, String filterSuppliedId) throws ApiException { okhttp3.Call localVarCall = getPartRevisionsValidateBeforeCall(id, pageCursor, pageSize, filterSuppliedId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Get `part-revisions` for a `part`. * @param id The `part` ID. (required) * @param pageCursor The cursor for the next page of items. (optional) * @param pageSize The number of items to return. (optional) * @param filterSuppliedId Comma-separated list of supplied IDs to filter on. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public okhttp3.Call getPartRevisionsAsync(UUID id, String pageCursor, Integer pageSize, String filterSuppliedId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPartRevisionsValidateBeforeCall(id, pageCursor, pageSize, filterSuppliedId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getQueuedPartRevisionDeletion * @param id The `queued-part-revision-deletion` ID. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public okhttp3.Call getQueuedPartRevisionDeletionCall(UUID id, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/queued-part-revision-deletions/{id}" .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/vnd.api+json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "OAuth2" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getQueuedPartRevisionDeletionValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException { // verify the required parameter 'id' is set if (id == null) { throw new ApiException("Missing the required parameter 'id' when calling getQueuedPartRevisionDeletion(Async)"); } okhttp3.Call localVarCall = getQueuedPartRevisionDeletionCall(id, _callback); return localVarCall; } /** * * Get a `queued-part-revision-deletion` by ID. * @param id The `queued-part-revision-deletion` ID. (required) * @return QueuedJob * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public QueuedJob getQueuedPartRevisionDeletion(UUID id) throws ApiException { ApiResponse localVarResp = getQueuedPartRevisionDeletionWithHttpInfo(id); return localVarResp.getData(); } /** * * Get a `queued-part-revision-deletion` by ID. * @param id The `queued-part-revision-deletion` ID. (required) * @return ApiResponse<QueuedJob> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public ApiResponse getQueuedPartRevisionDeletionWithHttpInfo(UUID id) throws ApiException { okhttp3.Call localVarCall = getQueuedPartRevisionDeletionValidateBeforeCall(id, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Get a `queued-part-revision-deletion` by ID. * @param id The `queued-part-revision-deletion` ID. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public okhttp3.Call getQueuedPartRevisionDeletionAsync(UUID id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getQueuedPartRevisionDeletionValidateBeforeCall(id, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for renderPartRevision * @param id The `part-revision` ID. (required) * @param height The height of the image to render. (optional) * @param width The width of the image to render. (optional) * @param cameraPosition The `camera` position vector. (optional) * @param cameraUp The `camera` up vector. (optional) * @param cameraLookAt The `camera` lookAt vector. (optional) * @param cameraPerspectivePosition The perspective camera position. (optional) * @param cameraPerspectiveLookAt The perspective camera look at position. (optional) * @param cameraPerspectiveUp The perspective camera up vector. (optional) * @param cameraOrthographicViewVector The orthographic camera view vector. (optional) * @param cameraOrthographicLookAt The orthographic camera look at position. (optional) * @param cameraOrthographicUp The orthographic camera up vector. (optional) * @param cameraOrthographicFovHeight The orthographic field-of-view height. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
504 GatewayTimeout -
*/ public okhttp3.Call renderPartRevisionCall(UUID id, Integer height, Integer width, Vector3 cameraPosition, Vector3 cameraUp, Vector3 cameraLookAt, Vector3 cameraPerspectivePosition, Vector3 cameraPerspectiveLookAt, Vector3 cameraPerspectiveUp, Vector3 cameraOrthographicViewVector, Vector3 cameraOrthographicLookAt, Vector3 cameraOrthographicUp, BigDecimal cameraOrthographicFovHeight, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/part-revisions/{id}/image" .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (height != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("height", height)); } if (width != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("width", width)); } if (cameraPosition != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("camera[position]", cameraPosition)); } if (cameraUp != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("camera[up]", cameraUp)); } if (cameraLookAt != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("camera[lookAt]", cameraLookAt)); } if (cameraPerspectivePosition != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("camera[perspective][position]", cameraPerspectivePosition)); } if (cameraPerspectiveLookAt != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("camera[perspective][lookAt]", cameraPerspectiveLookAt)); } if (cameraPerspectiveUp != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("camera[perspective][up]", cameraPerspectiveUp)); } if (cameraOrthographicViewVector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("camera[orthographic][viewVector]", cameraOrthographicViewVector)); } if (cameraOrthographicLookAt != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("camera[orthographic][lookAt]", cameraOrthographicLookAt)); } if (cameraOrthographicUp != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("camera[orthographic][up]", cameraOrthographicUp)); } if (cameraOrthographicFovHeight != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("camera[orthographic][fovHeight]", cameraOrthographicFovHeight)); } final String[] localVarAccepts = { "image/jpeg", "image/png", "application/vnd.api+json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "OAuth2" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call renderPartRevisionValidateBeforeCall(UUID id, Integer height, Integer width, Vector3 cameraPosition, Vector3 cameraUp, Vector3 cameraLookAt, Vector3 cameraPerspectivePosition, Vector3 cameraPerspectiveLookAt, Vector3 cameraPerspectiveUp, Vector3 cameraOrthographicViewVector, Vector3 cameraOrthographicLookAt, Vector3 cameraOrthographicUp, BigDecimal cameraOrthographicFovHeight, final ApiCallback _callback) throws ApiException { // verify the required parameter 'id' is set if (id == null) { throw new ApiException("Missing the required parameter 'id' when calling renderPartRevision(Async)"); } okhttp3.Call localVarCall = renderPartRevisionCall(id, height, width, cameraPosition, cameraUp, cameraLookAt, cameraPerspectivePosition, cameraPerspectiveLookAt, cameraPerspectiveUp, cameraOrthographicViewVector, cameraOrthographicLookAt, cameraOrthographicUp, cameraOrthographicFovHeight, _callback); return localVarCall; } /** * * Get a rendered image of a `part-revision`. * @param id The `part-revision` ID. (required) * @param height The height of the image to render. (optional) * @param width The width of the image to render. (optional) * @param cameraPosition The `camera` position vector. (optional) * @param cameraUp The `camera` up vector. (optional) * @param cameraLookAt The `camera` lookAt vector. (optional) * @param cameraPerspectivePosition The perspective camera position. (optional) * @param cameraPerspectiveLookAt The perspective camera look at position. (optional) * @param cameraPerspectiveUp The perspective camera up vector. (optional) * @param cameraOrthographicViewVector The orthographic camera view vector. (optional) * @param cameraOrthographicLookAt The orthographic camera look at position. (optional) * @param cameraOrthographicUp The orthographic camera up vector. (optional) * @param cameraOrthographicFovHeight The orthographic field-of-view height. (optional) * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
504 GatewayTimeout -
*/ public File renderPartRevision(UUID id, Integer height, Integer width, Vector3 cameraPosition, Vector3 cameraUp, Vector3 cameraLookAt, Vector3 cameraPerspectivePosition, Vector3 cameraPerspectiveLookAt, Vector3 cameraPerspectiveUp, Vector3 cameraOrthographicViewVector, Vector3 cameraOrthographicLookAt, Vector3 cameraOrthographicUp, BigDecimal cameraOrthographicFovHeight) throws ApiException { ApiResponse localVarResp = renderPartRevisionWithHttpInfo(id, height, width, cameraPosition, cameraUp, cameraLookAt, cameraPerspectivePosition, cameraPerspectiveLookAt, cameraPerspectiveUp, cameraOrthographicViewVector, cameraOrthographicLookAt, cameraOrthographicUp, cameraOrthographicFovHeight); return localVarResp.getData(); } /** * * Get a rendered image of a `part-revision`. * @param id The `part-revision` ID. (required) * @param height The height of the image to render. (optional) * @param width The width of the image to render. (optional) * @param cameraPosition The `camera` position vector. (optional) * @param cameraUp The `camera` up vector. (optional) * @param cameraLookAt The `camera` lookAt vector. (optional) * @param cameraPerspectivePosition The perspective camera position. (optional) * @param cameraPerspectiveLookAt The perspective camera look at position. (optional) * @param cameraPerspectiveUp The perspective camera up vector. (optional) * @param cameraOrthographicViewVector The orthographic camera view vector. (optional) * @param cameraOrthographicLookAt The orthographic camera look at position. (optional) * @param cameraOrthographicUp The orthographic camera up vector. (optional) * @param cameraOrthographicFovHeight The orthographic field-of-view height. (optional) * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
504 GatewayTimeout -
*/ public ApiResponse renderPartRevisionWithHttpInfo(UUID id, Integer height, Integer width, Vector3 cameraPosition, Vector3 cameraUp, Vector3 cameraLookAt, Vector3 cameraPerspectivePosition, Vector3 cameraPerspectiveLookAt, Vector3 cameraPerspectiveUp, Vector3 cameraOrthographicViewVector, Vector3 cameraOrthographicLookAt, Vector3 cameraOrthographicUp, BigDecimal cameraOrthographicFovHeight) throws ApiException { okhttp3.Call localVarCall = renderPartRevisionValidateBeforeCall(id, height, width, cameraPosition, cameraUp, cameraLookAt, cameraPerspectivePosition, cameraPerspectiveLookAt, cameraPerspectiveUp, cameraOrthographicViewVector, cameraOrthographicLookAt, cameraOrthographicUp, cameraOrthographicFovHeight, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Get a rendered image of a `part-revision`. * @param id The `part-revision` ID. (required) * @param height The height of the image to render. (optional) * @param width The width of the image to render. (optional) * @param cameraPosition The `camera` position vector. (optional) * @param cameraUp The `camera` up vector. (optional) * @param cameraLookAt The `camera` lookAt vector. (optional) * @param cameraPerspectivePosition The perspective camera position. (optional) * @param cameraPerspectiveLookAt The perspective camera look at position. (optional) * @param cameraPerspectiveUp The perspective camera up vector. (optional) * @param cameraOrthographicViewVector The orthographic camera view vector. (optional) * @param cameraOrthographicLookAt The orthographic camera look at position. (optional) * @param cameraOrthographicUp The orthographic camera up vector. (optional) * @param cameraOrthographicFovHeight The orthographic field-of-view height. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
504 GatewayTimeout -
*/ public okhttp3.Call renderPartRevisionAsync(UUID id, Integer height, Integer width, Vector3 cameraPosition, Vector3 cameraUp, Vector3 cameraLookAt, Vector3 cameraPerspectivePosition, Vector3 cameraPerspectiveLookAt, Vector3 cameraPerspectiveUp, Vector3 cameraOrthographicViewVector, Vector3 cameraOrthographicLookAt, Vector3 cameraOrthographicUp, BigDecimal cameraOrthographicFovHeight, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = renderPartRevisionValidateBeforeCall(id, height, width, cameraPosition, cameraUp, cameraLookAt, cameraPerspectivePosition, cameraPerspectiveLookAt, cameraPerspectiveUp, cameraOrthographicViewVector, cameraOrthographicLookAt, cameraOrthographicUp, cameraOrthographicFovHeight, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for updatePartRevision * @param id The `part-revision` ID. (required) * @param updatePartRevisionRequest (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted * content-location -
400 Bad Request -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public okhttp3.Call updatePartRevisionCall(UUID id, UpdatePartRevisionRequest updatePartRevisionRequest, final ApiCallback _callback) throws ApiException { Object localVarPostBody = updatePartRevisionRequest; // create path and map variables String localVarPath = "/part-revisions/{id}" .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/vnd.api+json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/vnd.api+json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "OAuth2" }; return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call updatePartRevisionValidateBeforeCall(UUID id, UpdatePartRevisionRequest updatePartRevisionRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'id' is set if (id == null) { throw new ApiException("Missing the required parameter 'id' when calling updatePartRevision(Async)"); } // verify the required parameter 'updatePartRevisionRequest' is set if (updatePartRevisionRequest == null) { throw new ApiException("Missing the required parameter 'updatePartRevisionRequest' when calling updatePartRevision(Async)"); } okhttp3.Call localVarCall = updatePartRevisionCall(id, updatePartRevisionRequest, _callback); return localVarCall; } /** * * Update a `part-revision`. When given a `file` relationship as a payload, this will invoke a translation job, similar to the POST /parts endpoint. The response code will be a 202 and will respond with an async workflow, and return an Accepted[QueuedJob]. The geometry of the part and all of its children will be replaced with the geometry specified within the translated file given from this relationship. Some of the properties given here are only used for the translation of the file. Namely, `indexMetadata`, `name`, `suppliedIdKey`, `suppliedRevisionIdKey`, and `suppliedInstanceIdKey`. Note that geometry updates are eventually consistent and will not update existing scenes. For updates to the revision when the file relationship is not present will respond with a standard 200 ok code when successful. Note that metadata updates are eventually consistent and will not update existing scenes. To view updated metadata within a scene, a new scene must be created or the updated part-revision must be removed and re-added to an existing scene. * @param id The `part-revision` ID. (required) * @param updatePartRevisionRequest (required) * @return PartRevision * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted * content-location -
400 Bad Request -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public PartRevision updatePartRevision(UUID id, UpdatePartRevisionRequest updatePartRevisionRequest) throws ApiException { ApiResponse localVarResp = updatePartRevisionWithHttpInfo(id, updatePartRevisionRequest); return localVarResp.getData(); } /** * * Update a `part-revision`. When given a `file` relationship as a payload, this will invoke a translation job, similar to the POST /parts endpoint. The response code will be a 202 and will respond with an async workflow, and return an Accepted[QueuedJob]. The geometry of the part and all of its children will be replaced with the geometry specified within the translated file given from this relationship. Some of the properties given here are only used for the translation of the file. Namely, `indexMetadata`, `name`, `suppliedIdKey`, `suppliedRevisionIdKey`, and `suppliedInstanceIdKey`. Note that geometry updates are eventually consistent and will not update existing scenes. For updates to the revision when the file relationship is not present will respond with a standard 200 ok code when successful. Note that metadata updates are eventually consistent and will not update existing scenes. To view updated metadata within a scene, a new scene must be created or the updated part-revision must be removed and re-added to an existing scene. * @param id The `part-revision` ID. (required) * @param updatePartRevisionRequest (required) * @return ApiResponse<PartRevision> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted * content-location -
400 Bad Request -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public ApiResponse updatePartRevisionWithHttpInfo(UUID id, UpdatePartRevisionRequest updatePartRevisionRequest) throws ApiException { okhttp3.Call localVarCall = updatePartRevisionValidateBeforeCall(id, updatePartRevisionRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Update a `part-revision`. When given a `file` relationship as a payload, this will invoke a translation job, similar to the POST /parts endpoint. The response code will be a 202 and will respond with an async workflow, and return an Accepted[QueuedJob]. The geometry of the part and all of its children will be replaced with the geometry specified within the translated file given from this relationship. Some of the properties given here are only used for the translation of the file. Namely, `indexMetadata`, `name`, `suppliedIdKey`, `suppliedRevisionIdKey`, and `suppliedInstanceIdKey`. Note that geometry updates are eventually consistent and will not update existing scenes. For updates to the revision when the file relationship is not present will respond with a standard 200 ok code when successful. Note that metadata updates are eventually consistent and will not update existing scenes. To view updated metadata within a scene, a new scene must be created or the updated part-revision must be removed and re-added to an existing scene. * @param id The `part-revision` ID. (required) * @param updatePartRevisionRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
202 Accepted * content-location -
400 Bad Request -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public okhttp3.Call updatePartRevisionAsync(UUID id, UpdatePartRevisionRequest updatePartRevisionRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updatePartRevisionValidateBeforeCall(id, updatePartRevisionRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy