nl.vpro.nep.sam.api.ProfilesApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of media-nep Show documentation
Show all versions of media-nep Show documentation
Support for the several APIs of NEP that POMS is integrating with
package nl.vpro.nep.sam.api;
import nl.vpro.nep.sam.invoker.ApiException;
import nl.vpro.nep.sam.invoker.ApiClient;
import nl.vpro.nep.sam.invoker.Configuration;
import nl.vpro.nep.sam.invoker.Pair;
import jakarta.ws.rs.core.GenericType;
import nl.vpro.nep.sam.model.Errors;
import nl.vpro.nep.sam.model.StreamProfile;
import nl.vpro.nep.sam.model.StreamProfileResponse;
import nl.vpro.nep.sam.model.StreamProfileResponseCollection;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-12-18T10:26:20.602909888Z[Etc/UTC]", comments = "Generator version: 7.6.0")
public class ProfilesApi {
private ApiClient apiClient;
public ProfilesApi() {
this(Configuration.getDefaultApiClient());
}
public ProfilesApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
public ApiClient getApiClient() {
return apiClient;
}
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Get profiles for a stream
* Get profile info for a specific stream
* @param streamId The identifier of the stream (required)
* @return a {@code StreamProfileResponseCollection}
* @throws ApiException if fails to make API call
*/
public StreamProfileResponseCollection v2StreamsStreamIdProfilesGet(String streamId) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'streamId' is set
if (streamId == null) {
throw new ApiException(400, "Missing the required parameter 'streamId' when calling v2StreamsStreamIdProfilesGet");
}
// create path and map variables
String localVarPath = "/v2/streams/{streamId}/profiles".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "streamId" + "\\}", apiClient.escapeString(streamId.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "bearerAuth" };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Add new profile to a stream
* Replace all profiles on a stream
* @param streamId The identifier of the stream (required)
* @param streamProfile The profiles object (required)
* @return a {@code StreamProfileResponse}
* @throws ApiException if fails to make API call
*/
public StreamProfileResponse v2StreamsStreamIdProfilesPost(String streamId, StreamProfile streamProfile) throws ApiException {
Object localVarPostBody = streamProfile;
// verify the required parameter 'streamId' is set
if (streamId == null) {
throw new ApiException(400, "Missing the required parameter 'streamId' when calling v2StreamsStreamIdProfilesPost");
}
// verify the required parameter 'streamProfile' is set
if (streamProfile == null) {
throw new ApiException(400, "Missing the required parameter 'streamProfile' when calling v2StreamsStreamIdProfilesPost");
}
// create path and map variables
String localVarPath = "/v2/streams/{streamId}/profiles".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "streamId" + "\\}", apiClient.escapeString(streamId.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "bearerAuth" };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Delete a profile on a stream
*
* @param streamId The identifier of the stream (required)
* @param profile The profile (required)
* @throws ApiException if fails to make API call
*/
public void v2StreamsStreamIdProfilesProfileDelete(String streamId, String profile) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'streamId' is set
if (streamId == null) {
throw new ApiException(400, "Missing the required parameter 'streamId' when calling v2StreamsStreamIdProfilesProfileDelete");
}
// verify the required parameter 'profile' is set
if (profile == null) {
throw new ApiException(400, "Missing the required parameter 'profile' when calling v2StreamsStreamIdProfilesProfileDelete");
}
// create path and map variables
String localVarPath = "/v2/streams/{streamId}/profiles/{profile}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "streamId" + "\\}", apiClient.escapeString(streamId.toString()))
.replaceAll("\\{" + "profile" + "\\}", apiClient.escapeString(profile.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "bearerAuth" };
apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
}
/**
* Get info about profile
*
* @param streamId The identifier of the stream (required)
* @param profile The profile (required)
* @return a {@code StreamProfileResponse}
* @throws ApiException if fails to make API call
*/
public StreamProfileResponse v2StreamsStreamIdProfilesProfileGet(String streamId, String profile) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'streamId' is set
if (streamId == null) {
throw new ApiException(400, "Missing the required parameter 'streamId' when calling v2StreamsStreamIdProfilesProfileGet");
}
// verify the required parameter 'profile' is set
if (profile == null) {
throw new ApiException(400, "Missing the required parameter 'profile' when calling v2StreamsStreamIdProfilesProfileGet");
}
// create path and map variables
String localVarPath = "/v2/streams/{streamId}/profiles/{profile}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "streamId" + "\\}", apiClient.escapeString(streamId.toString()))
.replaceAll("\\{" + "profile" + "\\}", apiClient.escapeString(profile.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "bearerAuth" };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Partially update a profile for a stream (eg. bump version)
*
* @param streamId The identifier of the stream (required)
* @param profile The profile (required)
* @param streamProfile The profile that should be updated (optional)
* @return a {@code StreamProfileResponse}
* @throws ApiException if fails to make API call
*/
public StreamProfileResponse v2StreamsStreamIdProfilesProfilePatch(String streamId, String profile, StreamProfile streamProfile) throws ApiException {
Object localVarPostBody = streamProfile;
// verify the required parameter 'streamId' is set
if (streamId == null) {
throw new ApiException(400, "Missing the required parameter 'streamId' when calling v2StreamsStreamIdProfilesProfilePatch");
}
// verify the required parameter 'profile' is set
if (profile == null) {
throw new ApiException(400, "Missing the required parameter 'profile' when calling v2StreamsStreamIdProfilesProfilePatch");
}
// create path and map variables
String localVarPath = "/v2/streams/{streamId}/profiles/{profile}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "streamId" + "\\}", apiClient.escapeString(streamId.toString()))
.replaceAll("\\{" + "profile" + "\\}", apiClient.escapeString(profile.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "bearerAuth" };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Create new profile for a stream
*
* @param streamId The identifier of the stream (required)
* @param profile The profile (required)
* @param streamProfile The profile that should be added (optional)
* @return a {@code StreamProfileResponse}
* @throws ApiException if fails to make API call
*/
public StreamProfileResponse v2StreamsStreamIdProfilesProfilePost(String streamId, String profile, StreamProfile streamProfile) throws ApiException {
Object localVarPostBody = streamProfile;
// verify the required parameter 'streamId' is set
if (streamId == null) {
throw new ApiException(400, "Missing the required parameter 'streamId' when calling v2StreamsStreamIdProfilesProfilePost");
}
// verify the required parameter 'profile' is set
if (profile == null) {
throw new ApiException(400, "Missing the required parameter 'profile' when calling v2StreamsStreamIdProfilesProfilePost");
}
// create path and map variables
String localVarPath = "/v2/streams/{streamId}/profiles/{profile}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "streamId" + "\\}", apiClient.escapeString(streamId.toString()))
.replaceAll("\\{" + "profile" + "\\}", apiClient.escapeString(profile.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "bearerAuth" };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Update a profile for a stream (eg. bump version)
*
* @param streamId The identifier of the stream (required)
* @param profile The profile (required)
* @param streamProfile The profile that should be updated (optional)
* @return a {@code StreamProfileResponse}
* @throws ApiException if fails to make API call
*/
public StreamProfileResponse v2StreamsStreamIdProfilesProfilePut(String streamId, String profile, StreamProfile streamProfile) throws ApiException {
Object localVarPostBody = streamProfile;
// verify the required parameter 'streamId' is set
if (streamId == null) {
throw new ApiException(400, "Missing the required parameter 'streamId' when calling v2StreamsStreamIdProfilesProfilePut");
}
// verify the required parameter 'profile' is set
if (profile == null) {
throw new ApiException(400, "Missing the required parameter 'profile' when calling v2StreamsStreamIdProfilesProfilePut");
}
// create path and map variables
String localVarPath = "/v2/streams/{streamId}/profiles/{profile}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "streamId" + "\\}", apiClient.escapeString(streamId.toString()))
.replaceAll("\\{" + "profile" + "\\}", apiClient.escapeString(profile.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "bearerAuth" };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy