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

com.vertexvis.api.SceneViewsApi 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 com.vertexvis.model.CreateSceneViewRequest;
import com.vertexvis.model.Failure;
import java.io.File;
import com.vertexvis.model.SceneView;
import com.vertexvis.model.SceneViewItem;
import com.vertexvis.model.SceneViewList;
import java.util.UUID;
import com.vertexvis.model.UpdateSceneViewRequest;

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

public class SceneViewsApi {
    private ApiClient localVarApiClient;

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

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

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

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

    /**
     * Build call for createSceneView
     * @param id The `scene` ID. (required)
     * @param createSceneViewRequest  (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
201 Created * location -
400 Bad Request -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public okhttp3.Call createSceneViewCall(UUID id, CreateSceneViewRequest createSceneViewRequest, final ApiCallback _callback) throws ApiException { Object localVarPostBody = createSceneViewRequest; // create path and map variables String localVarPath = "/scenes/{id}/scene-views" .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, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createSceneViewValidateBeforeCall(UUID id, CreateSceneViewRequest createSceneViewRequest, 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 createSceneView(Async)"); } // verify the required parameter 'createSceneViewRequest' is set if (createSceneViewRequest == null) { throw new ApiException("Missing the required parameter 'createSceneViewRequest' when calling createSceneView(Async)"); } okhttp3.Call localVarCall = createSceneViewCall(id, createSceneViewRequest, _callback); return localVarCall; } /** * * Create a `scene-view` of a `scene`. * @param id The `scene` ID. (required) * @param createSceneViewRequest (required) * @return SceneView * @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
201 Created * location -
400 Bad Request -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public SceneView createSceneView(UUID id, CreateSceneViewRequest createSceneViewRequest) throws ApiException { ApiResponse localVarResp = createSceneViewWithHttpInfo(id, createSceneViewRequest); return localVarResp.getData(); } /** * * Create a `scene-view` of a `scene`. * @param id The `scene` ID. (required) * @param createSceneViewRequest (required) * @return ApiResponse<SceneView> * @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
201 Created * location -
400 Bad Request -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public ApiResponse createSceneViewWithHttpInfo(UUID id, CreateSceneViewRequest createSceneViewRequest) throws ApiException { okhttp3.Call localVarCall = createSceneViewValidateBeforeCall(id, createSceneViewRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Create a `scene-view` of a `scene`. * @param id The `scene` ID. (required) * @param createSceneViewRequest (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
201 Created * location -
400 Bad Request -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public okhttp3.Call createSceneViewAsync(UUID id, CreateSceneViewRequest createSceneViewRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createSceneViewValidateBeforeCall(id, createSceneViewRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteSceneView * @param id The `scene-view` 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
204 No Content -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public okhttp3.Call deleteSceneViewCall(UUID id, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/scene-views/{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 deleteSceneViewValidateBeforeCall(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 deleteSceneView(Async)"); } okhttp3.Call localVarCall = deleteSceneViewCall(id, _callback); return localVarCall; } /** * * Delete a `scene-view`. * @param id The `scene-view` ID. (required) * @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
204 No Content -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public void deleteSceneView(UUID id) throws ApiException { deleteSceneViewWithHttpInfo(id); } /** * * Delete a `scene-view`. * @param id The `scene-view` ID. (required) * @return ApiResponse<Void> * @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
204 No Content -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public ApiResponse deleteSceneViewWithHttpInfo(UUID id) throws ApiException { okhttp3.Call localVarCall = deleteSceneViewValidateBeforeCall(id, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Delete a `scene-view`. * @param id The `scene-view` 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
204 No Content -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public okhttp3.Call deleteSceneViewAsync(UUID id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteSceneViewValidateBeforeCall(id, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for getSceneView * @param id The `scene-view` 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 getSceneViewCall(UUID id, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/scene-views/{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 getSceneViewValidateBeforeCall(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 getSceneView(Async)"); } okhttp3.Call localVarCall = getSceneViewCall(id, _callback); return localVarCall; } /** * * Get a `scene-view` by ID. * @param id The `scene-view` ID. (required) * @return SceneView * @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 SceneView getSceneView(UUID id) throws ApiException { ApiResponse localVarResp = getSceneViewWithHttpInfo(id); return localVarResp.getData(); } /** * * Get a `scene-view` by ID. * @param id The `scene-view` ID. (required) * @return ApiResponse<SceneView> * @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 getSceneViewWithHttpInfo(UUID id) throws ApiException { okhttp3.Call localVarCall = getSceneViewValidateBeforeCall(id, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Get a `scene-view` by ID. * @param id The `scene-view` 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 getSceneViewAsync(UUID id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getSceneViewValidateBeforeCall(id, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getSceneViews * @param id The `scene` ID. (required) * @param pageCursor The cursor for the next page of items. (optional) * @param pageSize The number of items to return. (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 -
415 Unsupported Media Type -
*/ public okhttp3.Call getSceneViewsCall(UUID id, String pageCursor, Integer pageSize, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/scenes/{id}/scene-views" .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)); } 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 getSceneViewsValidateBeforeCall(UUID id, String pageCursor, Integer pageSize, 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 getSceneViews(Async)"); } okhttp3.Call localVarCall = getSceneViewsCall(id, pageCursor, pageSize, _callback); return localVarCall; } /** * * Get `scene-view`s for a `scene`. * @param id The `scene` ID. (required) * @param pageCursor The cursor for the next page of items. (optional) * @param pageSize The number of items to return. (optional) * @return SceneViewList * @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 -
415 Unsupported Media Type -
*/ public SceneViewList getSceneViews(UUID id, String pageCursor, Integer pageSize) throws ApiException { ApiResponse localVarResp = getSceneViewsWithHttpInfo(id, pageCursor, pageSize); return localVarResp.getData(); } /** * * Get `scene-view`s for a `scene`. * @param id The `scene` ID. (required) * @param pageCursor The cursor for the next page of items. (optional) * @param pageSize The number of items to return. (optional) * @return ApiResponse<SceneViewList> * @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 -
415 Unsupported Media Type -
*/ public ApiResponse getSceneViewsWithHttpInfo(UUID id, String pageCursor, Integer pageSize) throws ApiException { okhttp3.Call localVarCall = getSceneViewsValidateBeforeCall(id, pageCursor, pageSize, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Get `scene-view`s for a `scene`. * @param id The `scene` ID. (required) * @param pageCursor The cursor for the next page of items. (optional) * @param pageSize The number of items to return. (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 -
415 Unsupported Media Type -
*/ public okhttp3.Call getSceneViewsAsync(UUID id, String pageCursor, Integer pageSize, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getSceneViewsValidateBeforeCall(id, pageCursor, pageSize, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getViewSceneItem * @param id The `scene-view` ID. (required) * @param itemId The `scene-item` ID. (required) * @param fieldsSceneItem Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox` and `metadata` are only returned if explicitly requested. (optional) * @param include Comma-separated list of relationships to include in response. (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 getViewSceneItemCall(UUID id, UUID itemId, String fieldsSceneItem, String include, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/scene-views/{id}/scene-items/{itemId}" .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())) .replaceAll("\\{" + "itemId" + "\\}", localVarApiClient.escapeString(itemId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (fieldsSceneItem != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fields[scene-item]", fieldsSceneItem)); } if (include != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("include", include)); } 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 getViewSceneItemValidateBeforeCall(UUID id, UUID itemId, String fieldsSceneItem, String include, 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 getViewSceneItem(Async)"); } // verify the required parameter 'itemId' is set if (itemId == null) { throw new ApiException("Missing the required parameter 'itemId' when calling getViewSceneItem(Async)"); } okhttp3.Call localVarCall = getViewSceneItemCall(id, itemId, fieldsSceneItem, include, _callback); return localVarCall; } /** * * Get a `scene-item` within a view by ID. * @param id The `scene-view` ID. (required) * @param itemId The `scene-item` ID. (required) * @param fieldsSceneItem Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox` and `metadata` are only returned if explicitly requested. (optional) * @param include Comma-separated list of relationships to include in response. (optional) * @return SceneViewItem * @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 SceneViewItem getViewSceneItem(UUID id, UUID itemId, String fieldsSceneItem, String include) throws ApiException { ApiResponse localVarResp = getViewSceneItemWithHttpInfo(id, itemId, fieldsSceneItem, include); return localVarResp.getData(); } /** * * Get a `scene-item` within a view by ID. * @param id The `scene-view` ID. (required) * @param itemId The `scene-item` ID. (required) * @param fieldsSceneItem Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox` and `metadata` are only returned if explicitly requested. (optional) * @param include Comma-separated list of relationships to include in response. (optional) * @return ApiResponse<SceneViewItem> * @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 getViewSceneItemWithHttpInfo(UUID id, UUID itemId, String fieldsSceneItem, String include) throws ApiException { okhttp3.Call localVarCall = getViewSceneItemValidateBeforeCall(id, itemId, fieldsSceneItem, include, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Get a `scene-item` within a view by ID. * @param id The `scene-view` ID. (required) * @param itemId The `scene-item` ID. (required) * @param fieldsSceneItem Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox` and `metadata` are only returned if explicitly requested. (optional) * @param include Comma-separated list of relationships to include in response. (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 getViewSceneItemAsync(UUID id, UUID itemId, String fieldsSceneItem, String include, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getViewSceneItemValidateBeforeCall(id, itemId, fieldsSceneItem, include, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for renderSceneView * @param id The `scene-view` ID. (required) * @param height The height of the image to render. (optional) * @param width The width of the image to render. (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 renderSceneViewCall(UUID id, Integer height, Integer width, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/scene-views/{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)); } 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 renderSceneViewValidateBeforeCall(UUID id, Integer height, Integer width, 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 renderSceneView(Async)"); } okhttp3.Call localVarCall = renderSceneViewCall(id, height, width, _callback); return localVarCall; } /** * * Get a rendered image of a `scene-view`. If a single pixel is returned, ensure the `scene` is in the `commit` state and contains scene items. * @param id The `scene-view` ID. (required) * @param height The height of the image to render. (optional) * @param width The width of the image to render. (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 renderSceneView(UUID id, Integer height, Integer width) throws ApiException { ApiResponse localVarResp = renderSceneViewWithHttpInfo(id, height, width); return localVarResp.getData(); } /** * * Get a rendered image of a `scene-view`. If a single pixel is returned, ensure the `scene` is in the `commit` state and contains scene items. * @param id The `scene-view` ID. (required) * @param height The height of the image to render. (optional) * @param width The width of the image to render. (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 renderSceneViewWithHttpInfo(UUID id, Integer height, Integer width) throws ApiException { okhttp3.Call localVarCall = renderSceneViewValidateBeforeCall(id, height, width, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Get a rendered image of a `scene-view`. If a single pixel is returned, ensure the `scene` is in the `commit` state and contains scene items. * @param id The `scene-view` ID. (required) * @param height The height of the image to render. (optional) * @param width The width of the image to render. (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 renderSceneViewAsync(UUID id, Integer height, Integer width, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = renderSceneViewValidateBeforeCall(id, height, width, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for updateSceneView * @param id The `scene-view` ID. (required) * @param updateSceneViewRequest (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 -
400 Bad Request -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public okhttp3.Call updateSceneViewCall(UUID id, UpdateSceneViewRequest updateSceneViewRequest, final ApiCallback _callback) throws ApiException { Object localVarPostBody = updateSceneViewRequest; // create path and map variables String localVarPath = "/scene-views/{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 updateSceneViewValidateBeforeCall(UUID id, UpdateSceneViewRequest updateSceneViewRequest, 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 updateSceneView(Async)"); } // verify the required parameter 'updateSceneViewRequest' is set if (updateSceneViewRequest == null) { throw new ApiException("Missing the required parameter 'updateSceneViewRequest' when calling updateSceneView(Async)"); } okhttp3.Call localVarCall = updateSceneViewCall(id, updateSceneViewRequest, _callback); return localVarCall; } /** * * Update a `scene-view`. * @param id The `scene-view` ID. (required) * @param updateSceneViewRequest (required) * @return SceneView * @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 -
400 Bad Request -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public SceneView updateSceneView(UUID id, UpdateSceneViewRequest updateSceneViewRequest) throws ApiException { ApiResponse localVarResp = updateSceneViewWithHttpInfo(id, updateSceneViewRequest); return localVarResp.getData(); } /** * * Update a `scene-view`. * @param id The `scene-view` ID. (required) * @param updateSceneViewRequest (required) * @return ApiResponse<SceneView> * @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 -
400 Bad Request -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public ApiResponse updateSceneViewWithHttpInfo(UUID id, UpdateSceneViewRequest updateSceneViewRequest) throws ApiException { okhttp3.Call localVarCall = updateSceneViewValidateBeforeCall(id, updateSceneViewRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Update a `scene-view`. * @param id The `scene-view` ID. (required) * @param updateSceneViewRequest (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 -
400 Bad Request -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public okhttp3.Call updateSceneViewAsync(UUID id, UpdateSceneViewRequest updateSceneViewRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateSceneViewValidateBeforeCall(id, updateSceneViewRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy