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

com.kaltura.client.services.CdnAdapterProfileService Maven / Gradle / Ivy

Go to download

KalturaOttApiClient is a library of Java classes that can be used to interact with the Kaltura OTT REST API. More information about the REST API can be found at https://ott.developer.kaltura.com/ Many of the Java classes in this library are auto-generated from a schema that defines the objects that are used to interact with the API.

There is a newer version: 5.1.2.17630
Show newest version
// ===================================================================================================
//                           _  __     _ _
//                          | |/ /__ _| | |_ _  _ _ _ __ _
//                          | ' .
//
// @ignore
// ===================================================================================================
package com.kaltura.client.services;

import com.kaltura.client.types.CDNAdapterProfile;
import com.kaltura.client.utils.request.ListResponseRequestBuilder;
import com.kaltura.client.utils.request.RequestBuilder;

/**
 * This class was generated using clients-generator\exec.php
 * against an XML schema provided by Kaltura.
 * 
 * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN.
 */

public class CdnAdapterProfileService {
	
	public static class AddCdnAdapterProfileBuilder extends RequestBuilder {
		
		public AddCdnAdapterProfileBuilder(CDNAdapterProfile adapter) {
			super(CDNAdapterProfile.class, "cdnadapterprofile", "add");
			params.add("adapter", adapter);
		}
	}

	/**
	 * Insert new CDN adapter for partner
	 * 
	 * @param adapter CDN adapter object
	 */
    public static AddCdnAdapterProfileBuilder add(CDNAdapterProfile adapter)  {
		return new AddCdnAdapterProfileBuilder(adapter);
	}
	
	public static class DeleteCdnAdapterProfileBuilder extends RequestBuilder {
		
		public DeleteCdnAdapterProfileBuilder(int adapterId) {
			super(Boolean.class, "cdnadapterprofile", "delete");
			params.add("adapterId", adapterId);
		}
		
		public void adapterId(String multirequestToken) {
			params.add("adapterId", multirequestToken);
		}
	}

	/**
	 * Delete CDN adapter by CDN adapter id
	 * 
	 * @param adapterId CDN adapter identifier
	 */
    public static DeleteCdnAdapterProfileBuilder delete(int adapterId)  {
		return new DeleteCdnAdapterProfileBuilder(adapterId);
	}
	
	public static class GenerateSharedSecretCdnAdapterProfileBuilder extends RequestBuilder {
		
		public GenerateSharedSecretCdnAdapterProfileBuilder(int adapterId) {
			super(CDNAdapterProfile.class, "cdnadapterprofile", "generateSharedSecret");
			params.add("adapterId", adapterId);
		}
		
		public void adapterId(String multirequestToken) {
			params.add("adapterId", multirequestToken);
		}
	}

	/**
	 * Generate CDN adapter shared secret
	 * 
	 * @param adapterId CDN adapter identifier
	 */
    public static GenerateSharedSecretCdnAdapterProfileBuilder generateSharedSecret(int adapterId)  {
		return new GenerateSharedSecretCdnAdapterProfileBuilder(adapterId);
	}
	
	public static class ListCdnAdapterProfileBuilder extends ListResponseRequestBuilder {
		
		public ListCdnAdapterProfileBuilder() {
			super(CDNAdapterProfile.class, "cdnadapterprofile", "list");
		}
	}

	/**
	 * Returns all CDN adapters for partner
	 */
    public static ListCdnAdapterProfileBuilder list()  {
		return new ListCdnAdapterProfileBuilder();
	}
	
	public static class UpdateCdnAdapterProfileBuilder extends RequestBuilder {
		
		public UpdateCdnAdapterProfileBuilder(int adapterId, CDNAdapterProfile adapter) {
			super(CDNAdapterProfile.class, "cdnadapterprofile", "update");
			params.add("adapterId", adapterId);
			params.add("adapter", adapter);
		}
		
		public void adapterId(String multirequestToken) {
			params.add("adapterId", multirequestToken);
		}
	}

	/**
	 * Update CDN adapter details
	 * 
	 * @param adapterId CDN adapter id to update
	 * @param adapter CDN adapter Object
	 */
    public static UpdateCdnAdapterProfileBuilder update(int adapterId, CDNAdapterProfile adapter)  {
		return new UpdateCdnAdapterProfileBuilder(adapterId, adapter);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy