com.aliyun.dingtalkhrbrain_1_0.Client Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dingtalk Show documentation
Show all versions of dingtalk Show documentation
Alibaba Cloud dingtalk SDK for Java
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.dingtalkhrbrain_1_0;
import com.aliyun.tea.*;
import com.aliyun.dingtalkhrbrain_1_0.models.*;
public class Client extends com.aliyun.teaopenapi.Client {
public Client(com.aliyun.teaopenapi.models.Config config) throws Exception {
super(config);
com.aliyun.gateway.dingtalk.Client gatewayClient = new com.aliyun.gateway.dingtalk.Client();
this._spi = gatewayClient;
this._endpointRule = "";
if (com.aliyun.teautil.Common.empty(_endpoint)) {
this._endpoint = "api.dingtalk.com";
}
}
/**
* summary :
* 集成奖励记录
*
* @param request HrbrainImportAwardDetailRequest
* @param headers HrbrainImportAwardDetailHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return HrbrainImportAwardDetailResponse
*/
public HrbrainImportAwardDetailResponse hrbrainImportAwardDetailWithOptions(HrbrainImportAwardDetailRequest request, HrbrainImportAwardDetailHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.corpId)) {
query.put("corpId", request.corpId);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query)),
new TeaPair("body", com.aliyun.teautil.Common.toArray(request.body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "HrbrainImportAwardDetail"),
new TeaPair("version", "hrbrain_1.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v1.0/hrbrain/datas/awardDetails/import"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new HrbrainImportAwardDetailResponse());
}
/**
* summary :
* 集成奖励记录
*
* @param request HrbrainImportAwardDetailRequest
* @return HrbrainImportAwardDetailResponse
*/
public HrbrainImportAwardDetailResponse hrbrainImportAwardDetail(HrbrainImportAwardDetailRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
HrbrainImportAwardDetailHeaders headers = new HrbrainImportAwardDetailHeaders();
return this.hrbrainImportAwardDetailWithOptions(request, headers, runtime);
}
/**
* summary :
* 集成组织架构
*
* @param request HrbrainImportDeptInfoRequest
* @param headers HrbrainImportDeptInfoHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return HrbrainImportDeptInfoResponse
*/
public HrbrainImportDeptInfoResponse hrbrainImportDeptInfoWithOptions(HrbrainImportDeptInfoRequest request, HrbrainImportDeptInfoHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.corpId)) {
query.put("corpId", request.corpId);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query)),
new TeaPair("body", com.aliyun.teautil.Common.toArray(request.body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "HrbrainImportDeptInfo"),
new TeaPair("version", "hrbrain_1.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v1.0/hrbrain/datas/deptInfos/import"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new HrbrainImportDeptInfoResponse());
}
/**
* summary :
* 集成组织架构
*
* @param request HrbrainImportDeptInfoRequest
* @return HrbrainImportDeptInfoResponse
*/
public HrbrainImportDeptInfoResponse hrbrainImportDeptInfo(HrbrainImportDeptInfoRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
HrbrainImportDeptInfoHeaders headers = new HrbrainImportDeptInfoHeaders();
return this.hrbrainImportDeptInfoWithOptions(request, headers, runtime);
}
/**
* summary :
* 集成离职信息
*
* @param request HrbrainImportDimissionRequest
* @param headers HrbrainImportDimissionHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return HrbrainImportDimissionResponse
*/
public HrbrainImportDimissionResponse hrbrainImportDimissionWithOptions(HrbrainImportDimissionRequest request, HrbrainImportDimissionHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.corpId)) {
query.put("corpId", request.corpId);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query)),
new TeaPair("body", com.aliyun.teautil.Common.toArray(request.body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "HrbrainImportDimission"),
new TeaPair("version", "hrbrain_1.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v1.0/hrbrain/datas/dimissionInfos/import"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new HrbrainImportDimissionResponse());
}
/**
* summary :
* 集成离职信息
*
* @param request HrbrainImportDimissionRequest
* @return HrbrainImportDimissionResponse
*/
public HrbrainImportDimissionResponse hrbrainImportDimission(HrbrainImportDimissionRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
HrbrainImportDimissionHeaders headers = new HrbrainImportDimissionHeaders();
return this.hrbrainImportDimissionWithOptions(request, headers, runtime);
}
/**
* summary :
* 集成教育经历
*
* @param request HrbrainImportEduExpRequest
* @param headers HrbrainImportEduExpHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return HrbrainImportEduExpResponse
*/
public HrbrainImportEduExpResponse hrbrainImportEduExpWithOptions(HrbrainImportEduExpRequest request, HrbrainImportEduExpHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.corpId)) {
query.put("corpId", request.corpId);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query)),
new TeaPair("body", com.aliyun.teautil.Common.toArray(request.body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "HrbrainImportEduExp"),
new TeaPair("version", "hrbrain_1.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v1.0/hrbrain/datas/eduExperiences/import"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new HrbrainImportEduExpResponse());
}
/**
* summary :
* 集成教育经历
*
* @param request HrbrainImportEduExpRequest
* @return HrbrainImportEduExpResponse
*/
public HrbrainImportEduExpResponse hrbrainImportEduExp(HrbrainImportEduExpRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
HrbrainImportEduExpHeaders headers = new HrbrainImportEduExpHeaders();
return this.hrbrainImportEduExpWithOptions(request, headers, runtime);
}
/**
* summary :
* 集成人员信息
*
* @param request HrbrainImportEmpInfoRequest
* @param headers HrbrainImportEmpInfoHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return HrbrainImportEmpInfoResponse
*/
public HrbrainImportEmpInfoResponse hrbrainImportEmpInfoWithOptions(HrbrainImportEmpInfoRequest request, HrbrainImportEmpInfoHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.corpId)) {
query.put("corpId", request.corpId);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query)),
new TeaPair("body", com.aliyun.teautil.Common.toArray(request.body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "HrbrainImportEmpInfo"),
new TeaPair("version", "hrbrain_1.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v1.0/hrbrain/datas/empInfos/import"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new HrbrainImportEmpInfoResponse());
}
/**
* summary :
* 集成人员信息
*
* @param request HrbrainImportEmpInfoRequest
* @return HrbrainImportEmpInfoResponse
*/
public HrbrainImportEmpInfoResponse hrbrainImportEmpInfo(HrbrainImportEmpInfoRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
HrbrainImportEmpInfoHeaders headers = new HrbrainImportEmpInfoHeaders();
return this.hrbrainImportEmpInfoWithOptions(request, headers, runtime);
}
/**
* summary :
* 集成基础标签
*
* @param request HrbrainImportLabelBaseRequest
* @param headers HrbrainImportLabelBaseHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return HrbrainImportLabelBaseResponse
*/
public HrbrainImportLabelBaseResponse hrbrainImportLabelBaseWithOptions(HrbrainImportLabelBaseRequest request, HrbrainImportLabelBaseHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.corpId)) {
query.put("corpId", request.corpId);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query)),
new TeaPair("body", com.aliyun.teautil.Common.toArray(request.body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "HrbrainImportLabelBase"),
new TeaPair("version", "hrbrain_1.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v1.0/hrbrain/datas/baseLabels/import"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new HrbrainImportLabelBaseResponse());
}
/**
* summary :
* 集成基础标签
*
* @param request HrbrainImportLabelBaseRequest
* @return HrbrainImportLabelBaseResponse
*/
public HrbrainImportLabelBaseResponse hrbrainImportLabelBase(HrbrainImportLabelBaseRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
HrbrainImportLabelBaseHeaders headers = new HrbrainImportLabelBaseHeaders();
return this.hrbrainImportLabelBaseWithOptions(request, headers, runtime);
}
/**
* summary :
* 集成自定义标签
*
* @param request HrbrainImportLabelCustomRequest
* @param headers HrbrainImportLabelCustomHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return HrbrainImportLabelCustomResponse
*/
public HrbrainImportLabelCustomResponse hrbrainImportLabelCustomWithOptions(HrbrainImportLabelCustomRequest request, HrbrainImportLabelCustomHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.corpId)) {
query.put("corpId", request.corpId);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query)),
new TeaPair("body", com.aliyun.teautil.Common.toArray(request.body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "HrbrainImportLabelCustom"),
new TeaPair("version", "hrbrain_1.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v1.0/hrbrain/datas/customLabels/import"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new HrbrainImportLabelCustomResponse());
}
/**
* summary :
* 集成自定义标签
*
* @param request HrbrainImportLabelCustomRequest
* @return HrbrainImportLabelCustomResponse
*/
public HrbrainImportLabelCustomResponse hrbrainImportLabelCustom(HrbrainImportLabelCustomRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
HrbrainImportLabelCustomHeaders headers = new HrbrainImportLabelCustomHeaders();
return this.hrbrainImportLabelCustomWithOptions(request, headers, runtime);
}
/**
* summary :
* 集成领域经验
*
* @param request HrbrainImportLabelIndustryRequest
* @param headers HrbrainImportLabelIndustryHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return HrbrainImportLabelIndustryResponse
*/
public HrbrainImportLabelIndustryResponse hrbrainImportLabelIndustryWithOptions(HrbrainImportLabelIndustryRequest request, HrbrainImportLabelIndustryHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.corpId)) {
query.put("corpId", request.corpId);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query)),
new TeaPair("body", com.aliyun.teautil.Common.toArray(request.body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "HrbrainImportLabelIndustry"),
new TeaPair("version", "hrbrain_1.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v1.0/hrbrain/datas/industries/import"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new HrbrainImportLabelIndustryResponse());
}
/**
* summary :
* 集成领域经验
*
* @param request HrbrainImportLabelIndustryRequest
* @return HrbrainImportLabelIndustryResponse
*/
public HrbrainImportLabelIndustryResponse hrbrainImportLabelIndustry(HrbrainImportLabelIndustryRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
HrbrainImportLabelIndustryHeaders headers = new HrbrainImportLabelIndustryHeaders();
return this.hrbrainImportLabelIndustryWithOptions(request, headers, runtime);
}
/**
* summary :
* 集成盘点数据
*
* @param request HrbrainImportLabelInventoryRequest
* @param headers HrbrainImportLabelInventoryHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return HrbrainImportLabelInventoryResponse
*/
public HrbrainImportLabelInventoryResponse hrbrainImportLabelInventoryWithOptions(HrbrainImportLabelInventoryRequest request, HrbrainImportLabelInventoryHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.corpId)) {
query.put("corpId", request.corpId);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query)),
new TeaPair("body", com.aliyun.teautil.Common.toArray(request.body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "HrbrainImportLabelInventory"),
new TeaPair("version", "hrbrain_1.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v1.0/hrbrain/datas/inventories/import"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new HrbrainImportLabelInventoryResponse());
}
/**
* summary :
* 集成盘点数据
*
* @param request HrbrainImportLabelInventoryRequest
* @return HrbrainImportLabelInventoryResponse
*/
public HrbrainImportLabelInventoryResponse hrbrainImportLabelInventory(HrbrainImportLabelInventoryRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
HrbrainImportLabelInventoryHeaders headers = new HrbrainImportLabelInventoryHeaders();
return this.hrbrainImportLabelInventoryWithOptions(request, headers, runtime);
}
/**
* summary :
* 集成专业技能
*
* @param request HrbrainImportLabelProfSkillRequest
* @param headers HrbrainImportLabelProfSkillHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return HrbrainImportLabelProfSkillResponse
*/
public HrbrainImportLabelProfSkillResponse hrbrainImportLabelProfSkillWithOptions(HrbrainImportLabelProfSkillRequest request, HrbrainImportLabelProfSkillHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.corpId)) {
query.put("corpId", request.corpId);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query)),
new TeaPair("body", com.aliyun.teautil.Common.toArray(request.body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "HrbrainImportLabelProfSkill"),
new TeaPair("version", "hrbrain_1.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v1.0/hrbrain/datas/profSkills/import"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new HrbrainImportLabelProfSkillResponse());
}
/**
* summary :
* 集成专业技能
*
* @param request HrbrainImportLabelProfSkillRequest
* @return HrbrainImportLabelProfSkillResponse
*/
public HrbrainImportLabelProfSkillResponse hrbrainImportLabelProfSkill(HrbrainImportLabelProfSkillRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
HrbrainImportLabelProfSkillHeaders headers = new HrbrainImportLabelProfSkillHeaders();
return this.hrbrainImportLabelProfSkillWithOptions(request, headers, runtime);
}
/**
* summary :
* 集成绩效记录
*
* @param request HrbrainImportPerfEvalRequest
* @param headers HrbrainImportPerfEvalHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return HrbrainImportPerfEvalResponse
*/
public HrbrainImportPerfEvalResponse hrbrainImportPerfEvalWithOptions(HrbrainImportPerfEvalRequest request, HrbrainImportPerfEvalHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.corpId)) {
query.put("corpId", request.corpId);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query)),
new TeaPair("body", com.aliyun.teautil.Common.toArray(request.body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "HrbrainImportPerfEval"),
new TeaPair("version", "hrbrain_1.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v1.0/hrbrain/datas/perfRecords/import"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new HrbrainImportPerfEvalResponse());
}
/**
* summary :
* 集成绩效记录
*
* @param request HrbrainImportPerfEvalRequest
* @return HrbrainImportPerfEvalResponse
*/
public HrbrainImportPerfEvalResponse hrbrainImportPerfEval(HrbrainImportPerfEvalRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
HrbrainImportPerfEvalHeaders headers = new HrbrainImportPerfEvalHeaders();
return this.hrbrainImportPerfEvalWithOptions(request, headers, runtime);
}
/**
* summary :
* 集成晋升记录
*
* @param request HrbrainImportPromEvalRequest
* @param headers HrbrainImportPromEvalHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return HrbrainImportPromEvalResponse
*/
public HrbrainImportPromEvalResponse hrbrainImportPromEvalWithOptions(HrbrainImportPromEvalRequest request, HrbrainImportPromEvalHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.corpId)) {
query.put("corpId", request.corpId);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query)),
new TeaPair("body", com.aliyun.teautil.Common.toArray(request.body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "HrbrainImportPromEval"),
new TeaPair("version", "hrbrain_1.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v1.0/hrbrain/datas/promRecords/import"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new HrbrainImportPromEvalResponse());
}
/**
* summary :
* 集成晋升记录
*
* @param request HrbrainImportPromEvalRequest
* @return HrbrainImportPromEvalResponse
*/
public HrbrainImportPromEvalResponse hrbrainImportPromEval(HrbrainImportPromEvalRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
HrbrainImportPromEvalHeaders headers = new HrbrainImportPromEvalHeaders();
return this.hrbrainImportPromEvalWithOptions(request, headers, runtime);
}
/**
* summary :
* 集成处分记录
*
* @param request HrbrainImportPunDetailRequest
* @param headers HrbrainImportPunDetailHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return HrbrainImportPunDetailResponse
*/
public HrbrainImportPunDetailResponse hrbrainImportPunDetailWithOptions(HrbrainImportPunDetailRequest request, HrbrainImportPunDetailHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.corpId)) {
query.put("corpId", request.corpId);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query)),
new TeaPair("body", com.aliyun.teautil.Common.toArray(request.body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "HrbrainImportPunDetail"),
new TeaPair("version", "hrbrain_1.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v1.0/hrbrain/datas/punDetails/import"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new HrbrainImportPunDetailResponse());
}
/**
* summary :
* 集成处分记录
*
* @param request HrbrainImportPunDetailRequest
* @return HrbrainImportPunDetailResponse
*/
public HrbrainImportPunDetailResponse hrbrainImportPunDetail(HrbrainImportPunDetailRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
HrbrainImportPunDetailHeaders headers = new HrbrainImportPunDetailHeaders();
return this.hrbrainImportPunDetailWithOptions(request, headers, runtime);
}
/**
* summary :
* 集成入职信息
*
* @param request HrbrainImportRegistRequest
* @param headers HrbrainImportRegistHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return HrbrainImportRegistResponse
*/
public HrbrainImportRegistResponse hrbrainImportRegistWithOptions(HrbrainImportRegistRequest request, HrbrainImportRegistHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.corpId)) {
query.put("corpId", request.corpId);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query)),
new TeaPair("body", com.aliyun.teautil.Common.toArray(request.body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "HrbrainImportRegist"),
new TeaPair("version", "hrbrain_1.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v1.0/hrbrain/datas/registerInfos/import"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new HrbrainImportRegistResponse());
}
/**
* summary :
* 集成入职信息
*
* @param request HrbrainImportRegistRequest
* @return HrbrainImportRegistResponse
*/
public HrbrainImportRegistResponse hrbrainImportRegist(HrbrainImportRegistRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
HrbrainImportRegistHeaders headers = new HrbrainImportRegistHeaders();
return this.hrbrainImportRegistWithOptions(request, headers, runtime);
}
/**
* summary :
* 集成异动记录
*
* @param request HrbrainImportTransferEvalRequest
* @param headers HrbrainImportTransferEvalHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return HrbrainImportTransferEvalResponse
*/
public HrbrainImportTransferEvalResponse hrbrainImportTransferEvalWithOptions(HrbrainImportTransferEvalRequest request, HrbrainImportTransferEvalHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.corpId)) {
query.put("corpId", request.corpId);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query)),
new TeaPair("body", com.aliyun.teautil.Common.toArray(request.body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "HrbrainImportTransferEval"),
new TeaPair("version", "hrbrain_1.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v1.0/hrbrain/datas/changeRecords/import"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new HrbrainImportTransferEvalResponse());
}
/**
* summary :
* 集成异动记录
*
* @param request HrbrainImportTransferEvalRequest
* @return HrbrainImportTransferEvalResponse
*/
public HrbrainImportTransferEvalResponse hrbrainImportTransferEval(HrbrainImportTransferEvalRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
HrbrainImportTransferEvalHeaders headers = new HrbrainImportTransferEvalHeaders();
return this.hrbrainImportTransferEvalWithOptions(request, headers, runtime);
}
/**
* summary :
* 集成工作经历
*
* @param request HrbrainImportWorkExpRequest
* @param headers HrbrainImportWorkExpHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return HrbrainImportWorkExpResponse
*/
public HrbrainImportWorkExpResponse hrbrainImportWorkExpWithOptions(HrbrainImportWorkExpRequest request, HrbrainImportWorkExpHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.corpId)) {
query.put("corpId", request.corpId);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query)),
new TeaPair("body", com.aliyun.teautil.Common.toArray(request.body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "HrbrainImportWorkExp"),
new TeaPair("version", "hrbrain_1.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v1.0/hrbrain/datas/workExperiences/import"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new HrbrainImportWorkExpResponse());
}
/**
* summary :
* 集成工作经历
*
* @param request HrbrainImportWorkExpRequest
* @return HrbrainImportWorkExpResponse
*/
public HrbrainImportWorkExpResponse hrbrainImportWorkExp(HrbrainImportWorkExpRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
HrbrainImportWorkExpHeaders headers = new HrbrainImportWorkExpHeaders();
return this.hrbrainImportWorkExpWithOptions(request, headers, runtime);
}
/**
* summary :
* 人员标签查询
*
* @param request StaffLabelRecordsQueryRequest
* @param headers StaffLabelRecordsQueryHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return StaffLabelRecordsQueryResponse
*/
public StaffLabelRecordsQueryResponse staffLabelRecordsQueryWithOptions(StaffLabelRecordsQueryRequest request, StaffLabelRecordsQueryHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.dingCorpId)) {
query.put("dingCorpId", request.dingCorpId);
}
if (!com.aliyun.teautil.Common.isUnset(request.maxResults)) {
query.put("maxResults", request.maxResults);
}
if (!com.aliyun.teautil.Common.isUnset(request.nextToken)) {
query.put("nextToken", request.nextToken);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query)),
new TeaPair("body", com.aliyun.teautil.Common.toArray(request.body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "StaffLabelRecordsQuery"),
new TeaPair("version", "hrbrain_1.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v1.0/hrbrain/datas/labelRecords/query"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new StaffLabelRecordsQueryResponse());
}
/**
* summary :
* 人员标签查询
*
* @param request StaffLabelRecordsQueryRequest
* @return StaffLabelRecordsQueryResponse
*/
public StaffLabelRecordsQueryResponse staffLabelRecordsQuery(StaffLabelRecordsQueryRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
StaffLabelRecordsQueryHeaders headers = new StaffLabelRecordsQueryHeaders();
return this.staffLabelRecordsQueryWithOptions(request, headers, runtime);
}
/**
* summary :
* 同步统计基础数据
*
* @param request SyncDataRequest
* @param headers SyncDataHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return SyncDataResponse
*/
public SyncDataResponse syncDataWithOptions(SyncDataRequest request, SyncDataHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.content)) {
body.put("content", request.content);
}
if (!com.aliyun.teautil.Common.isUnset(request.dataId)) {
body.put("dataId", request.dataId);
}
if (!com.aliyun.teautil.Common.isUnset(request.etlTime)) {
body.put("etlTime", request.etlTime);
}
if (!com.aliyun.teautil.Common.isUnset(request.projectId)) {
body.put("projectId", request.projectId);
}
if (!com.aliyun.teautil.Common.isUnset(request.schemaId)) {
body.put("schemaId", request.schemaId);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "SyncData"),
new TeaPair("version", "hrbrain_1.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v1.0/hrbrain/datas"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "json"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new SyncDataResponse());
}
/**
* summary :
* 同步统计基础数据
*
* @param request SyncDataRequest
* @return SyncDataResponse
*/
public SyncDataResponse syncData(SyncDataRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
SyncDataHeaders headers = new SyncDataHeaders();
return this.syncDataWithOptions(request, headers, runtime);
}
}