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

com.svix.internal.api.StreamApi Maven / Gradle / Ivy

There is a newer version: 1.36.0
Show newest version
/*
 * Svix API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.1.1
 * 
 *
 * 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.svix.internal.api;

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

import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import com.svix.models.HTTPValidationError;
import com.svix.models.HttpErrorOut;
import com.svix.models.ListResponseStreamOut;
import com.svix.models.Ordering;
import com.svix.models.StreamIn;
import com.svix.models.StreamOut;
import com.svix.models.StreamPatch;

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

public class StreamApi {
    private ApiClient localVarApiClient;

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

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

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

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

    /**
     * Build call for v1StreamCreate
     * @param streamIn  (required)
     * @param idempotencyKey The request's idempotency key (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 -
201 -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
409 Conflict -
422 Validation Error -
429 Too Many Requests -
*/ public okhttp3.Call v1StreamCreateCall(StreamIn streamIn, String idempotencyKey, final ApiCallback _callback) throws ApiException { Object localVarPostBody = streamIn; // create path and map variables String localVarPath = "/api/v1/stream"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (idempotencyKey != null) { localVarHeaderParams.put("idempotency-key", localVarApiClient.parameterToString(idempotencyKey)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "HTTPBearer" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call v1StreamCreateValidateBeforeCall(StreamIn streamIn, String idempotencyKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'streamIn' is set if (streamIn == null) { throw new ApiException("Missing the required parameter 'streamIn' when calling v1StreamCreate(Async)"); } okhttp3.Call localVarCall = v1StreamCreateCall(streamIn, idempotencyKey, _callback); return localVarCall; } /** * Create Stream * Creates a new stream. * @param streamIn (required) * @param idempotencyKey The request's idempotency key (optional) * @return StreamOut * @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 -
201 -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
409 Conflict -
422 Validation Error -
429 Too Many Requests -
*/ public StreamOut v1StreamCreate(StreamIn streamIn, String idempotencyKey) throws ApiException { ApiResponse localVarResp = v1StreamCreateWithHttpInfo(streamIn, idempotencyKey); return localVarResp.getData(); } /** * Create Stream * Creates a new stream. * @param streamIn (required) * @param idempotencyKey The request's idempotency key (optional) * @return ApiResponse<StreamOut> * @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 -
201 -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
409 Conflict -
422 Validation Error -
429 Too Many Requests -
*/ public ApiResponse v1StreamCreateWithHttpInfo(StreamIn streamIn, String idempotencyKey) throws ApiException { okhttp3.Call localVarCall = v1StreamCreateValidateBeforeCall(streamIn, idempotencyKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create Stream (asynchronously) * Creates a new stream. * @param streamIn (required) * @param idempotencyKey The request's idempotency key (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 -
201 -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
409 Conflict -
422 Validation Error -
429 Too Many Requests -
*/ public okhttp3.Call v1StreamCreateAsync(StreamIn streamIn, String idempotencyKey, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = v1StreamCreateValidateBeforeCall(streamIn, idempotencyKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for v1StreamDelete * @param streamId (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 -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
409 Conflict -
422 Validation Error -
429 Too Many Requests -
*/ public okhttp3.Call v1StreamDeleteCall(String streamId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/stream/{stream_id}" .replaceAll("\\{" + "stream_id" + "\\}", localVarApiClient.escapeString(streamId.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/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[] { "HTTPBearer" }; return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call v1StreamDeleteValidateBeforeCall(String streamId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'streamId' is set if (streamId == null) { throw new ApiException("Missing the required parameter 'streamId' when calling v1StreamDelete(Async)"); } okhttp3.Call localVarCall = v1StreamDeleteCall(streamId, _callback); return localVarCall; } /** * Delete Stream * Delete a stream. * @param streamId (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 -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
409 Conflict -
422 Validation Error -
429 Too Many Requests -
*/ public void v1StreamDelete(String streamId) throws ApiException { v1StreamDeleteWithHttpInfo(streamId); } /** * Delete Stream * Delete a stream. * @param streamId (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 -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
409 Conflict -
422 Validation Error -
429 Too Many Requests -
*/ public ApiResponse v1StreamDeleteWithHttpInfo(String streamId) throws ApiException { okhttp3.Call localVarCall = v1StreamDeleteValidateBeforeCall(streamId, null); return localVarApiClient.execute(localVarCall); } /** * Delete Stream (asynchronously) * Delete a stream. * @param streamId (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 -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
409 Conflict -
422 Validation Error -
429 Too Many Requests -
*/ public okhttp3.Call v1StreamDeleteAsync(String streamId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = v1StreamDeleteValidateBeforeCall(streamId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for v1StreamGet * @param streamId (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 -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
409 Conflict -
422 Validation Error -
429 Too Many Requests -
*/ public okhttp3.Call v1StreamGetCall(String streamId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/stream/{stream_id}" .replaceAll("\\{" + "stream_id" + "\\}", localVarApiClient.escapeString(streamId.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/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[] { "HTTPBearer" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call v1StreamGetValidateBeforeCall(String streamId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'streamId' is set if (streamId == null) { throw new ApiException("Missing the required parameter 'streamId' when calling v1StreamGet(Async)"); } okhttp3.Call localVarCall = v1StreamGetCall(streamId, _callback); return localVarCall; } /** * Get Stream * Get a stream by id or uid. * @param streamId (required) * @return StreamOut * @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 -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
409 Conflict -
422 Validation Error -
429 Too Many Requests -
*/ public StreamOut v1StreamGet(String streamId) throws ApiException { ApiResponse localVarResp = v1StreamGetWithHttpInfo(streamId); return localVarResp.getData(); } /** * Get Stream * Get a stream by id or uid. * @param streamId (required) * @return ApiResponse<StreamOut> * @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 -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
409 Conflict -
422 Validation Error -
429 Too Many Requests -
*/ public ApiResponse v1StreamGetWithHttpInfo(String streamId) throws ApiException { okhttp3.Call localVarCall = v1StreamGetValidateBeforeCall(streamId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get Stream (asynchronously) * Get a stream by id or uid. * @param streamId (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 -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
409 Conflict -
422 Validation Error -
429 Too Many Requests -
*/ public okhttp3.Call v1StreamGetAsync(String streamId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = v1StreamGetValidateBeforeCall(streamId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for v1StreamList * @param limit Limit the number of returned items (optional) * @param iterator The iterator returned from a prior invocation (optional) * @param order The sorting order of the returned items (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 -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
409 Conflict -
422 Validation Error -
429 Too Many Requests -
*/ public okhttp3.Call v1StreamListCall(Integer limit, String iterator, Ordering order, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v1/stream"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (iterator != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("iterator", iterator)); } if (order != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("order", order)); } final String[] localVarAccepts = { "application/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[] { "HTTPBearer" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call v1StreamListValidateBeforeCall(Integer limit, String iterator, Ordering order, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = v1StreamListCall(limit, iterator, order, _callback); return localVarCall; } /** * List Streams * List of all the organization's streams. * @param limit Limit the number of returned items (optional) * @param iterator The iterator returned from a prior invocation (optional) * @param order The sorting order of the returned items (optional) * @return ListResponseStreamOut * @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 -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
409 Conflict -
422 Validation Error -
429 Too Many Requests -
*/ public ListResponseStreamOut v1StreamList(Integer limit, String iterator, Ordering order) throws ApiException { ApiResponse localVarResp = v1StreamListWithHttpInfo(limit, iterator, order); return localVarResp.getData(); } /** * List Streams * List of all the organization's streams. * @param limit Limit the number of returned items (optional) * @param iterator The iterator returned from a prior invocation (optional) * @param order The sorting order of the returned items (optional) * @return ApiResponse<ListResponseStreamOut> * @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 -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
409 Conflict -
422 Validation Error -
429 Too Many Requests -
*/ public ApiResponse v1StreamListWithHttpInfo(Integer limit, String iterator, Ordering order) throws ApiException { okhttp3.Call localVarCall = v1StreamListValidateBeforeCall(limit, iterator, order, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List Streams (asynchronously) * List of all the organization's streams. * @param limit Limit the number of returned items (optional) * @param iterator The iterator returned from a prior invocation (optional) * @param order The sorting order of the returned items (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 -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
409 Conflict -
422 Validation Error -
429 Too Many Requests -
*/ public okhttp3.Call v1StreamListAsync(Integer limit, String iterator, Ordering order, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = v1StreamListValidateBeforeCall(limit, iterator, order, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for v1StreamPatch * @param streamId (required) * @param streamPatch (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 -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
409 Conflict -
422 Validation Error -
429 Too Many Requests -
*/ public okhttp3.Call v1StreamPatchCall(String streamId, StreamPatch streamPatch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = streamPatch; // create path and map variables String localVarPath = "/api/v1/stream/{stream_id}" .replaceAll("\\{" + "stream_id" + "\\}", localVarApiClient.escapeString(streamId.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/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "HTTPBearer" }; return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call v1StreamPatchValidateBeforeCall(String streamId, StreamPatch streamPatch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'streamId' is set if (streamId == null) { throw new ApiException("Missing the required parameter 'streamId' when calling v1StreamPatch(Async)"); } // verify the required parameter 'streamPatch' is set if (streamPatch == null) { throw new ApiException("Missing the required parameter 'streamPatch' when calling v1StreamPatch(Async)"); } okhttp3.Call localVarCall = v1StreamPatchCall(streamId, streamPatch, _callback); return localVarCall; } /** * Patch Stream * Partially update a stream. * @param streamId (required) * @param streamPatch (required) * @return StreamOut * @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 -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
409 Conflict -
422 Validation Error -
429 Too Many Requests -
*/ public StreamOut v1StreamPatch(String streamId, StreamPatch streamPatch) throws ApiException { ApiResponse localVarResp = v1StreamPatchWithHttpInfo(streamId, streamPatch); return localVarResp.getData(); } /** * Patch Stream * Partially update a stream. * @param streamId (required) * @param streamPatch (required) * @return ApiResponse<StreamOut> * @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 -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
409 Conflict -
422 Validation Error -
429 Too Many Requests -
*/ public ApiResponse v1StreamPatchWithHttpInfo(String streamId, StreamPatch streamPatch) throws ApiException { okhttp3.Call localVarCall = v1StreamPatchValidateBeforeCall(streamId, streamPatch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Patch Stream (asynchronously) * Partially update a stream. * @param streamId (required) * @param streamPatch (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 -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
409 Conflict -
422 Validation Error -
429 Too Many Requests -
*/ public okhttp3.Call v1StreamPatchAsync(String streamId, StreamPatch streamPatch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = v1StreamPatchValidateBeforeCall(streamId, streamPatch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for v1StreamUpdate * @param streamId (required) * @param streamIn (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 -
201 -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
409 Conflict -
422 Validation Error -
429 Too Many Requests -
*/ public okhttp3.Call v1StreamUpdateCall(String streamId, StreamIn streamIn, final ApiCallback _callback) throws ApiException { Object localVarPostBody = streamIn; // create path and map variables String localVarPath = "/api/v1/stream/{stream_id}" .replaceAll("\\{" + "stream_id" + "\\}", localVarApiClient.escapeString(streamId.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/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "HTTPBearer" }; return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call v1StreamUpdateValidateBeforeCall(String streamId, StreamIn streamIn, final ApiCallback _callback) throws ApiException { // verify the required parameter 'streamId' is set if (streamId == null) { throw new ApiException("Missing the required parameter 'streamId' when calling v1StreamUpdate(Async)"); } // verify the required parameter 'streamIn' is set if (streamIn == null) { throw new ApiException("Missing the required parameter 'streamIn' when calling v1StreamUpdate(Async)"); } okhttp3.Call localVarCall = v1StreamUpdateCall(streamId, streamIn, _callback); return localVarCall; } /** * Update Stream * Update a stream. * @param streamId (required) * @param streamIn (required) * @return StreamOut * @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 -
201 -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
409 Conflict -
422 Validation Error -
429 Too Many Requests -
*/ public StreamOut v1StreamUpdate(String streamId, StreamIn streamIn) throws ApiException { ApiResponse localVarResp = v1StreamUpdateWithHttpInfo(streamId, streamIn); return localVarResp.getData(); } /** * Update Stream * Update a stream. * @param streamId (required) * @param streamIn (required) * @return ApiResponse<StreamOut> * @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 -
201 -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
409 Conflict -
422 Validation Error -
429 Too Many Requests -
*/ public ApiResponse v1StreamUpdateWithHttpInfo(String streamId, StreamIn streamIn) throws ApiException { okhttp3.Call localVarCall = v1StreamUpdateValidateBeforeCall(streamId, streamIn, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update Stream (asynchronously) * Update a stream. * @param streamId (required) * @param streamIn (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 -
201 -
400 Bad request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
409 Conflict -
422 Validation Error -
429 Too Many Requests -
*/ public okhttp3.Call v1StreamUpdateAsync(String streamId, StreamIn streamIn, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = v1StreamUpdateValidateBeforeCall(streamId, streamIn, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy