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

com.byteplus.service.live.LiveConfig Maven / Gradle / Ivy

There is a newer version: 1.1.23
Show newest version
package com.byteplus.service.live;

import com.byteplus.helper.Const;
import com.byteplus.model.ApiInfo;
import com.byteplus.model.Credentials;
import com.byteplus.model.ServiceInfo;
import org.apache.http.Header;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicHeader;
import org.apache.http.message.BasicNameValuePair;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public class LiveConfig {

    public static Map serviceInfoMap = new HashMap() {
        {
            put(Const.REGION_AP_SINGAPORE_1, new ServiceInfo(
                    new HashMap() {
                        {
                            put(Const.CONNECTION_TIMEOUT, 5000);
                            put(Const.SOCKET_TIMEOUT, 5000);
                            put(Const.Scheme, "https");
                            put(Const.Host, "open.byteplusapi.com");
                            put(Const.Header, new ArrayList
() { { add(new BasicHeader("Accept", "application/json")); } }); put(Const.Credentials, new Credentials(Const.REGION_AP_SINGAPORE_1, "live")); } } )); } }; public static Map apiInfoList = new HashMap() { { put(Const.ListCommonTransPresetDetail, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.ListCommonTransPresetDetail)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.UpdateCallback, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.UpdateCallback)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.DescribeCallback, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.DescribeCallback)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.DeleteCallback, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.DeleteCallback)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.CreateDomain, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.CreateDomain)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.DeleteDomain, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.DeleteDomain)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.ListDomainDetail, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.ListDomainDetail)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.DescribeDomain, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.DescribeDomain)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.EnableDomain, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.EnableDomain)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.DisableDomain, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.DisableDomain)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.ManagerPullPushDomainBind, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.ManagerPullPushDomainBind)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.UpdateAuthKey, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.UpdateAuthKey)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.EnableAuth, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.EnableAuth)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.DisableAuth, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.DisableAuth)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.DescribeAuth, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.DescribeAuth)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.ForbidStream, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.ForbidStream)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.ResumeStream, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.ResumeStream)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.ListCert, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.ListCert)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.CreateCert, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.CreateCert)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.DescribeCertDetailSecret, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.DescribeCertDetailSecret)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.UpdateCert, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.UpdateCert)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.BindCert, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.BindCert)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.UnbindCert, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.UnbindCert)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.DeleteCert, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.DeleteCert)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.UpdateReferer, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.UpdateReferer)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.DeleteReferer, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.DeleteReferer)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.DescribeReferer, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.DescribeReferer)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.CreateRecordPreset, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.CreateRecordPreset)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.UpdateRecordPreset, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.UpdateRecordPreset)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.DeleteRecordPreset, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.DeleteRecordPreset)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.ListVhostRecordPreset, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.ListVhostRecordPreset)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.CreateTranscodePreset, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.CreateTranscodePreset)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.UpdateTranscodePreset, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.UpdateTranscodePreset)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.DeleteTranscodePreset, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.DeleteTranscodePreset)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.ListVhostTransCodePreset, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.ListVhostTransCodePreset)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.CreateSnapshotPreset, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.CreateSnapshotPreset)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.UpdateSnapshotPreset, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.UpdateSnapshotPreset)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.DeleteSnapshotPreset, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.DeleteSnapshotPreset)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.ListVhostSnapshotPreset, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.ListVhostSnapshotPreset)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.DescribeLiveBandwidthData, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.DescribeLiveBandwidthData)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.DescribeLiveTrafficData, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.DescribeLiveTrafficData)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.DescribeLiveP95PeakBandwidthData, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.DescribeLiveP95PeakBandwidthData)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.DescribeTranscodeData, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.DescribeTranscodeData)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.DescribeSnapshotData, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.DescribeSnapshotData)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.DescribeRecordData, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.DescribeRecordData)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.DescribeLiveTimeShiftData, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.DescribeLiveTimeShiftData)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.DescribePushStreamMetrics, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.DescribePushStreamMetrics)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.DescribeLiveDomainLog, new ApiInfo( new HashMap() { { put(Const.Method, "GET"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.DescribeLiveDomainLog)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.DescribeLiveMetricTrafficData, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.DescribeLiveMetricTrafficData)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.DescribeLiveMetricBandwidthData, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.DescribeLiveMetricBandwidthData)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.DescribePullToPushBandwidthData, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.DescribePullToPushBandwidthData)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.ListStorageSpace, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.ListStorageSpace)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.DescribeLiveStorageSpaceData, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.DescribeLiveStorageSpaceData)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.GeneratePushURL, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.GeneratePushURL)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.GeneratePlayURL, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.GeneratePlayURL)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); put(Const.DescribeLiveStreamSessionData, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.DescribeLiveStreamSessionData)); add(new BasicNameValuePair("Version", Const.LiveSDKVersion)); } }); } } )); } }; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy