use of com.aliyun.teaopenapi.models.Config in project opscloud4 by ixrjog.
the class AliyunDmsClient method createMyClient.
public static DmsClient createMyClient(AliyunConfig.Aliyun aliyun) throws Exception {
Config config = new Config().setAccessKeyId(aliyun.getAccount().getAccessKeyId()).setAccessKeySecret(aliyun.getAccount().getSecret());
// 访问的域名
config.endpoint = Optional.of(aliyun).map(AliyunConfig.Aliyun::getDms).map(AliyunConfig.Dms::getEndpoint).orElse(AliyunConfig.DMS_ENDPOINT);
return new DmsClient(config);
}
use of com.aliyun.teaopenapi.models.Config in project eladmin by lWoHvYe.
the class DySMSUtil method createClient.
@SneakyThrows
public static Client createClient() {
Config config = new Config();
config.accessKeyId = AliCloudConfig.ACCESS_KEY_ID;
config.accessKeySecret = AliCloudConfig.ACCESS_KEY_SECRET;
return new Client(config);
}
use of com.aliyun.teaopenapi.models.Config in project dingtalk-app-server by nju-softeng.
the class ScheduleApi method createCalenderClient.
private static com.aliyun.dingtalkcalendar_1_0.Client createCalenderClient() throws Exception {
Config config = new Config();
config.protocol = "https";
config.regionId = "central";
return new com.aliyun.dingtalkcalendar_1_0.Client(config);
}
Aggregations