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

com.volcengine.service.billing.BillingConfig Maven / Gradle / Ivy

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

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 BillingConfig {

    public static ServiceInfo serviceInfo = new ServiceInfo(
            new HashMap() {
                {
                    put(Const.CONNECTION_TIMEOUT, 5000);
                    put(Const.SOCKET_TIMEOUT, 5000);
                    put(Const.Host, "billing.volcengineapi.com");
                    put(Const.Header, new ArrayList
() { { add(new BasicHeader("Accept", "application/json")); } }); put(Const.Credentials, new Credentials(Const.REGION_CN_NORTH_1, "billing")); } } ); public static Map apiInfoList = new HashMap() { { put(Const.ListBill, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.ListBill)); add(new BasicNameValuePair("Version", "2022-01-01")); } }); } } )); put(Const.ListBillDetail, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.ListBillDetail)); add(new BasicNameValuePair("Version", "2022-01-01")); } }); } } )); put(Const.ListBillOverviewByProd, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.ListBillOverviewByProd)); add(new BasicNameValuePair("Version", "2022-01-01")); } }); } } )); put(Const.ListAmortizedCostBillDetail, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.ListAmortizedCostBillDetail)); add(new BasicNameValuePair("Version", "2022-01-01")); } }); } } )); put(Const.ListAmortizedCostBillMonthly, new ApiInfo( new HashMap() { { put(Const.Method, "POST"); put(Const.Path, "/"); put(Const.Query, new ArrayList() { { add(new BasicNameValuePair("Action", Const.ListAmortizedCostBillMonthly)); add(new BasicNameValuePair("Version", "2022-01-01")); } }); } } )); } }; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy