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

com.volcengine.service.ipaas.IPaasConfig Maven / Gradle / Ivy

There is a newer version: 1.0.192
Show newest version
package com.volcengine.service.ipaas;

import com.volcengine.helper.Const;
import com.volcengine.model.ApiInfo;
import com.volcengine.model.Credentials;
import com.volcengine.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 IPaasConfig {
    public static Map serviceInfoMap = new HashMap() {
        {
            put(Const.REGION_CN_NORTH_1, new ServiceInfo(
                    new HashMap() {
                        {
                            put(Const.CONNECTION_TIMEOUT, 5000);
                            put(Const.SOCKET_TIMEOUT, 5000);
                            put(Const.Scheme, "https");
                            put(Const.Host, "open.volcengineapi.com");
                            put(Const.Header, new ArrayList
() { { add(new BasicHeader("Accept", "application/json")); } }); put(Const.Credentials, new Credentials(Const.REGION_CN_NORTH_1, Const.IPaasSDKService)); } } )); } }; public static Map apiInfoList = new HashMap() { { put(Const.IPaasListHost, new ApiInfo( new HashMap() { { put(Const.Method, "GET"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.IPaasListHost)); add(new BasicNameValuePair("Version", Const.IPaasSDKVersion20201025)); } }); } } )); }; { put(Const.IPaasListInstance, new ApiInfo( new HashMap() { { put(Const.Method, "GET"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.IPaasListInstance)); add(new BasicNameValuePair("Version", Const.IPaasSDKVersion20201025)); } }); } } )); }; { put(Const.IPaasDetailInstance, new ApiInfo( new HashMap() { { put(Const.Method, "GET"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.IPaasDetailInstance)); add(new BasicNameValuePair("Version", Const.IPaasSDKVersion20201025)); } }); } } )); } }; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy