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

com.vertexvis.api.StreamKeysApi 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.CreateStreamKeyRequest;
import com.vertexvis.model.Failure;
import com.vertexvis.model.StreamKey;
import com.vertexvis.model.StreamKeyList;
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 StreamKeysApi {
    private ApiClient localVarApiClient;

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

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

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

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

    /**
     * Build call for createSceneStreamKey
     * @param id The `scene` ID. (required)
     * @param createStreamKeyRequest  (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 -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public okhttp3.Call createSceneStreamKeyCall(UUID id, CreateStreamKeyRequest createStreamKeyRequest, final ApiCallback _callback) throws ApiException { Object localVarPostBody = createStreamKeyRequest; // create path and map variables String localVarPath = "/scenes/{id}/stream-keys" .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 createSceneStreamKeyValidateBeforeCall(UUID id, CreateStreamKeyRequest createStreamKeyRequest, 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 createSceneStreamKey(Async)"); } // verify the required parameter 'createStreamKeyRequest' is set if (createStreamKeyRequest == null) { throw new ApiException("Missing the required parameter 'createStreamKeyRequest' when calling createSceneStreamKey(Async)"); } okhttp3.Call localVarCall = createSceneStreamKeyCall(id, createStreamKeyRequest, _callback); return localVarCall; } /** * * Create a `stream-key` for a `scene`. * @param id The `scene` ID. (required) * @param createStreamKeyRequest (required) * @return StreamKey * @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 -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public StreamKey createSceneStreamKey(UUID id, CreateStreamKeyRequest createStreamKeyRequest) throws ApiException { ApiResponse localVarResp = createSceneStreamKeyWithHttpInfo(id, createStreamKeyRequest); return localVarResp.getData(); } /** * * Create a `stream-key` for a `scene`. * @param id The `scene` ID. (required) * @param createStreamKeyRequest (required) * @return ApiResponse<StreamKey> * @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 -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public ApiResponse createSceneStreamKeyWithHttpInfo(UUID id, CreateStreamKeyRequest createStreamKeyRequest) throws ApiException { okhttp3.Call localVarCall = createSceneStreamKeyValidateBeforeCall(id, createStreamKeyRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Create a `stream-key` for a `scene`. * @param id The `scene` ID. (required) * @param createStreamKeyRequest (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 -
401 Unauthorized -
404 Not Found -
415 Unsupported Media Type -
*/ public okhttp3.Call createSceneStreamKeyAsync(UUID id, CreateStreamKeyRequest createStreamKeyRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createSceneStreamKeyValidateBeforeCall(id, createStreamKeyRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteStreamKey * @param id The `stream-key` 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 deleteStreamKeyCall(UUID id, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/stream-keys/{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 deleteStreamKeyValidateBeforeCall(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 deleteStreamKey(Async)"); } okhttp3.Call localVarCall = deleteStreamKeyCall(id, _callback); return localVarCall; } /** * * Delete a `stream-key`. * @param id The `stream-key` 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 deleteStreamKey(UUID id) throws ApiException { deleteStreamKeyWithHttpInfo(id); } /** * * Delete a `stream-key`. * @param id The `stream-key` 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 deleteStreamKeyWithHttpInfo(UUID id) throws ApiException { okhttp3.Call localVarCall = deleteStreamKeyValidateBeforeCall(id, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Delete a `stream-key`. * @param id The `stream-key` 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 deleteStreamKeyAsync(UUID id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteStreamKeyValidateBeforeCall(id, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for getStreamKeys * @param pageCursor The cursor for the next page of items. (optional) * @param pageSize The number of items to return. (optional) * @param filterKey Stream key 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 -
415 Unsupported Media Type -
*/ public okhttp3.Call getStreamKeysCall(String pageCursor, Integer pageSize, String filterKey, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/stream-keys"; 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 (filterKey != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("filter[key]", filterKey)); } 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 getStreamKeysValidateBeforeCall(String pageCursor, Integer pageSize, String filterKey, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getStreamKeysCall(pageCursor, pageSize, filterKey, _callback); return localVarCall; } /** * * Get `stream-key`s. * @param pageCursor The cursor for the next page of items. (optional) * @param pageSize The number of items to return. (optional) * @param filterKey Stream key to filter on. (optional) * @return StreamKeyList * @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 StreamKeyList getStreamKeys(String pageCursor, Integer pageSize, String filterKey) throws ApiException { ApiResponse localVarResp = getStreamKeysWithHttpInfo(pageCursor, pageSize, filterKey); return localVarResp.getData(); } /** * * Get `stream-key`s. * @param pageCursor The cursor for the next page of items. (optional) * @param pageSize The number of items to return. (optional) * @param filterKey Stream key to filter on. (optional) * @return ApiResponse<StreamKeyList> * @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 getStreamKeysWithHttpInfo(String pageCursor, Integer pageSize, String filterKey) throws ApiException { okhttp3.Call localVarCall = getStreamKeysValidateBeforeCall(pageCursor, pageSize, filterKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Get `stream-key`s. * @param pageCursor The cursor for the next page of items. (optional) * @param pageSize The number of items to return. (optional) * @param filterKey Stream key 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 -
415 Unsupported Media Type -
*/ public okhttp3.Call getStreamKeysAsync(String pageCursor, Integer pageSize, String filterKey, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getStreamKeysValidateBeforeCall(pageCursor, pageSize, filterKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy