Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* 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.CreateGeometrySetRequest;
import com.vertexvis.model.Failure;
import com.vertexvis.model.GeometrySet;
import com.vertexvis.model.GeometrySetList;
import com.vertexvis.model.QueuedJob;
import java.util.UUID;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class GeometrySetsApi {
private ApiClient localVarApiClient;
public GeometrySetsApi() {
this(Configuration.getDefaultApiClient());
}
public GeometrySetsApi(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
public ApiClient getApiClient() {
return localVarApiClient;
}
public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
/**
* Build call for createGeometrySet
* @param createGeometrySetRequest (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 -
400
Bad Request
-
401
Unauthorized
-
415
Unsupported Media Type
-
*/
public okhttp3.Call createGeometrySetCall(CreateGeometrySetRequest createGeometrySetRequest, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = createGeometrySetRequest;
// create path and map variables
String localVarPath = "/geometry-sets";
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 createGeometrySetValidateBeforeCall(CreateGeometrySetRequest createGeometrySetRequest, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'createGeometrySetRequest' is set
if (createGeometrySetRequest == null) {
throw new ApiException("Missing the required parameter 'createGeometrySetRequest' when calling createGeometrySet(Async)");
}
okhttp3.Call localVarCall = createGeometrySetCall(createGeometrySetRequest, _callback);
return localVarCall;
}
/**
*
* Create a `geometry-set`. Once created, create scenes via the createScene API. For details, see our [Import data](https://developer.vertexvis.com/docs/guides/import-data-with-api) guide.
* @param createGeometrySetRequest (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 -
400
Bad Request
-
401
Unauthorized
-
415
Unsupported Media Type
-
*/
public QueuedJob createGeometrySet(CreateGeometrySetRequest createGeometrySetRequest) throws ApiException {
ApiResponse localVarResp = createGeometrySetWithHttpInfo(createGeometrySetRequest);
return localVarResp.getData();
}
/**
*
* Create a `geometry-set`. Once created, create scenes via the createScene API. For details, see our [Import data](https://developer.vertexvis.com/docs/guides/import-data-with-api) guide.
* @param createGeometrySetRequest (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 -
400
Bad Request
-
401
Unauthorized
-
415
Unsupported Media Type
-
*/
public ApiResponse createGeometrySetWithHttpInfo(CreateGeometrySetRequest createGeometrySetRequest) throws ApiException {
okhttp3.Call localVarCall = createGeometrySetValidateBeforeCall(createGeometrySetRequest, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* (asynchronously)
* Create a `geometry-set`. Once created, create scenes via the createScene API. For details, see our [Import data](https://developer.vertexvis.com/docs/guides/import-data-with-api) guide.
* @param createGeometrySetRequest (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 -
400
Bad Request
-
401
Unauthorized
-
415
Unsupported Media Type
-
*/
public okhttp3.Call createGeometrySetAsync(CreateGeometrySetRequest createGeometrySetRequest, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = createGeometrySetValidateBeforeCall(createGeometrySetRequest, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for getGeometrySet
* @param id The `geometry-set` 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 getGeometrySetCall(UUID id, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/geometry-sets/{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 getGeometrySetValidateBeforeCall(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 getGeometrySet(Async)");
}
okhttp3.Call localVarCall = getGeometrySetCall(id, _callback);
return localVarCall;
}
/**
*
* Get a `geometry-set` by ID.
* @param id The `geometry-set` ID. (required)
* @return GeometrySet
* @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 GeometrySet getGeometrySet(UUID id) throws ApiException {
ApiResponse localVarResp = getGeometrySetWithHttpInfo(id);
return localVarResp.getData();
}
/**
*
* Get a `geometry-set` by ID.
* @param id The `geometry-set` ID. (required)
* @return ApiResponse<GeometrySet>
* @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 getGeometrySetWithHttpInfo(UUID id) throws ApiException {
okhttp3.Call localVarCall = getGeometrySetValidateBeforeCall(id, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* (asynchronously)
* Get a `geometry-set` by ID.
* @param id The `geometry-set` 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 getGeometrySetAsync(UUID id, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getGeometrySetValidateBeforeCall(id, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for getGeometrySets
* @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 getGeometrySetsCall(String pageCursor, Integer pageSize, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/geometry-sets";
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 getGeometrySetsValidateBeforeCall(String pageCursor, Integer pageSize, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getGeometrySetsCall(pageCursor, pageSize, _callback);
return localVarCall;
}
/**
*
* Get `geometry-sets`.
* @param pageCursor The cursor for the next page of items. (optional)
* @param pageSize The number of items to return. (optional)
* @return GeometrySetList
* @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 GeometrySetList getGeometrySets(String pageCursor, Integer pageSize) throws ApiException {
ApiResponse localVarResp = getGeometrySetsWithHttpInfo(pageCursor, pageSize);
return localVarResp.getData();
}
/**
*
* Get `geometry-sets`.
* @param pageCursor The cursor for the next page of items. (optional)
* @param pageSize The number of items to return. (optional)
* @return ApiResponse<GeometrySetList>
* @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 getGeometrySetsWithHttpInfo(String pageCursor, Integer pageSize) throws ApiException {
okhttp3.Call localVarCall = getGeometrySetsValidateBeforeCall(pageCursor, pageSize, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* (asynchronously)
* Get `geometry-sets`.
* @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 getGeometrySetsAsync(String pageCursor, Integer pageSize, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getGeometrySetsValidateBeforeCall(pageCursor, pageSize, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
}