com.tencentcloudapi.common.profile.ClientProfile Java Examples

The following examples show how to use com.tencentcloudapi.common.profile.ClientProfile. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbstractClient.java    From tencentcloud-sdk-java with Apache License 2.0 6 votes vote down vote up
public AbstractClient(
    String endpoint,
    String version,
    Credential credential,
    String region,
    ClientProfile profile) {
  this.credential = credential;
  this.profile = profile;
  this.endpoint = endpoint;
  this.region = region;
  this.path = "/";
  this.sdkVersion = AbstractClient.SDK_VERSION;
  this.apiVersion = version;
  this.gson = new GsonBuilder().excludeFieldsWithoutExposeAnnotation().create();
  this.log = new Log(getClass().getName(), profile.isDebug());
  warmup();
}
 
Example #2
Source File: SubmitFullBodyClassTask.java    From tencentcloud-sdk-java with Apache License 2.0 5 votes vote down vote up
public static void main(String[] args) {
    try {
        Credential cred = new Credential("", "");
        HttpProfile httpProfile = new HttpProfile();
        httpProfile.setReqMethod("POST"); 
        httpProfile.setConnTimeout(60); 
        httpProfile.setEndpoint("tci.ap-beijing.tencentcloudapi.com"); 
        ClientProfile clientProfile = new ClientProfile();
        clientProfile.setUnsignedPayload(true);
        clientProfile.setHttpProfile(httpProfile);
        TciClient client = new TciClient(cred, "",clientProfile);
        SubmitFullBodyClassTaskRequest req = new SubmitFullBodyClassTaskRequest();
        req.setFileContent("https://edu-test-1253131631.cos.ap-guangzhou.myqcloud.com/aieduautotest/autotest_vedio.mp4");
        req.setFileType("vod_url");
        long lang=0;
        req.setLang(lang);
        req.setLibrarySet(new String[]{"library_15603955264181591716"});
        req.setVocabLibNameList(new String[]{"testlib2"});
        long EncodeType=1;
        req.setVoiceEncodeType(EncodeType);
        long FileType=10;
        req.setVoiceFileType(FileType);
        SubmitFullBodyClassTaskResponse res = client.SubmitFullBodyClassTask(req);
        System.out.println(SubmitFullBodyClassTaskResponse.toJsonString(res));
        System.out.println(res.getRequestId());
    } catch (TencentCloudSDKException e) {
        e.printStackTrace();
    }
}
 
Example #3
Source File: TtsClient.java    From tencentcloud-sdk-java with Apache License 2.0 4 votes vote down vote up
public TtsClient(Credential credential, String region) {
    this(credential, region, new ClientProfile());
}
 
Example #4
Source File: MariadbClient.java    From tencentcloud-sdk-java with Apache License 2.0 4 votes vote down vote up
public MariadbClient(Credential credential, String region) {
    this(credential, region, new ClientProfile());
}
 
Example #5
Source File: MsClient.java    From tencentcloud-sdk-java with Apache License 2.0 4 votes vote down vote up
public MsClient(Credential credential, String region, ClientProfile profile) {
    super(MsClient.endpoint, MsClient.version, credential, region, profile);
}
 
Example #6
Source File: CdbClient.java    From tencentcloud-sdk-java with Apache License 2.0 4 votes vote down vote up
public CdbClient(Credential credential, String region) {
    this(credential, region, new ClientProfile());
}
 
Example #7
Source File: TcaplusdbClient.java    From tencentcloud-sdk-java with Apache License 2.0 4 votes vote down vote up
public TcaplusdbClient(Credential credential, String region, ClientProfile profile) {
    super(TcaplusdbClient.endpoint, TcaplusdbClient.version, credential, region, profile);
}
 
Example #8
Source File: ApigatewayClient.java    From tencentcloud-sdk-java with Apache License 2.0 4 votes vote down vote up
public ApigatewayClient(Credential credential, String region) {
    this(credential, region, new ClientProfile());
}
 
Example #9
Source File: ChdfsClient.java    From tencentcloud-sdk-java with Apache License 2.0 4 votes vote down vote up
public ChdfsClient(Credential credential, String region) {
    this(credential, region, new ClientProfile());
}
 
Example #10
Source File: AbstractClient.java    From tencentcloud-sdk-java with Apache License 2.0 4 votes vote down vote up
public ClientProfile getClientProfile() {
  return this.profile;
}
 
Example #11
Source File: AbstractClient.java    From tencentcloud-sdk-java with Apache License 2.0 4 votes vote down vote up
public AbstractClient(String endpoint, String version, Credential credential, String region) {
  this(endpoint, version, credential, region, new ClientProfile());
}
 
Example #12
Source File: MongodbClient.java    From tencentcloud-sdk-java with Apache License 2.0 4 votes vote down vote up
public MongodbClient(Credential credential, String region) {
    this(credential, region, new ClientProfile());
}
 
Example #13
Source File: DrmClient.java    From tencentcloud-sdk-java with Apache License 2.0 4 votes vote down vote up
public DrmClient(Credential credential, String region) {
    this(credential, region, new ClientProfile());
}
 
Example #14
Source File: TkgdqClient.java    From tencentcloud-sdk-java with Apache License 2.0 4 votes vote down vote up
public TkgdqClient(Credential credential, String region, ClientProfile profile) {
    super(TkgdqClient.endpoint, TkgdqClient.version, credential, region, profile);
}
 
Example #15
Source File: CwsClient.java    From tencentcloud-sdk-java with Apache License 2.0 4 votes vote down vote up
public CwsClient(Credential credential, String region, ClientProfile profile) {
    super(CwsClient.endpoint, CwsClient.version, credential, region, profile);
}
 
Example #16
Source File: IaiClient.java    From tencentcloud-sdk-java with Apache License 2.0 4 votes vote down vote up
public IaiClient(Credential credential, String region, ClientProfile profile) {
    super(IaiClient.endpoint, IaiClient.version, credential, region, profile);
}
 
Example #17
Source File: DomainClient.java    From tencentcloud-sdk-java with Apache License 2.0 4 votes vote down vote up
public DomainClient(Credential credential, String region) {
    this(credential, region, new ClientProfile());
}
 
Example #18
Source File: TcrClient.java    From tencentcloud-sdk-java with Apache License 2.0 4 votes vote down vote up
public TcrClient(Credential credential, String region, ClientProfile profile) {
    super(TcrClient.endpoint, TcrClient.version, credential, region, profile);
}
 
Example #19
Source File: NlpClient.java    From tencentcloud-sdk-java with Apache License 2.0 4 votes vote down vote up
public NlpClient(Credential credential, String region) {
    this(credential, region, new ClientProfile());
}
 
Example #20
Source File: MemcachedClient.java    From tencentcloud-sdk-java with Apache License 2.0 4 votes vote down vote up
public MemcachedClient(Credential credential, String region) {
    this(credential, region, new ClientProfile());
}
 
Example #21
Source File: CamClient.java    From tencentcloud-sdk-java with Apache License 2.0 4 votes vote down vote up
public CamClient(Credential credential, String region) {
    this(credential, region, new ClientProfile());
}
 
Example #22
Source File: AfClient.java    From tencentcloud-sdk-java with Apache License 2.0 4 votes vote down vote up
public AfClient(Credential credential, String region, ClientProfile profile) {
    super(AfClient.endpoint, AfClient.version, credential, region, profile);
}
 
Example #23
Source File: YunsouClient.java    From tencentcloud-sdk-java with Apache License 2.0 4 votes vote down vote up
public YunsouClient(Credential credential, String region) {
    this(credential, region, new ClientProfile());
}
 
Example #24
Source File: TicmClient.java    From tencentcloud-sdk-java with Apache License 2.0 4 votes vote down vote up
public TicmClient(Credential credential, String region) {
    this(credential, region, new ClientProfile());
}
 
Example #25
Source File: GmeClient.java    From tencentcloud-sdk-java with Apache License 2.0 4 votes vote down vote up
public GmeClient(Credential credential, String region) {
    this(credential, region, new ClientProfile());
}
 
Example #26
Source File: CpdpClient.java    From tencentcloud-sdk-java with Apache License 2.0 4 votes vote down vote up
public CpdpClient(Credential credential, String region) {
    this(credential, region, new ClientProfile());
}
 
Example #27
Source File: YunsouClient.java    From tencentcloud-sdk-java with Apache License 2.0 4 votes vote down vote up
public YunsouClient(Credential credential, String region) {
    this(credential, region, new ClientProfile());
}
 
Example #28
Source File: TkeClient.java    From tencentcloud-sdk-java with Apache License 2.0 4 votes vote down vote up
public TkeClient(Credential credential, String region) {
    this(credential, region, new ClientProfile());
}
 
Example #29
Source File: TbaasClient.java    From tencentcloud-sdk-java with Apache License 2.0 4 votes vote down vote up
public TbaasClient(Credential credential, String region) {
    this(credential, region, new ClientProfile());
}
 
Example #30
Source File: DsClient.java    From tencentcloud-sdk-java with Apache License 2.0 4 votes vote down vote up
public DsClient(Credential credential, String region) {
    this(credential, region, new ClientProfile());
}