index
int64
repo_id
string
file_path
string
content
string
0
java-sources/com/aliyun/alicloudproc20240104/1.0.0/com/aliyun/alicloudproc20240104
java-sources/com/aliyun/alicloudproc20240104/1.0.0/com/aliyun/alicloudproc20240104/models/Address.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alicloudproc20240104.models; import com.aliyun.tea.*; public class Address extends TeaModel { @NameInMap("cityCode") public String cityCode; @NameInMap("detail") public String detail; @NameInMap("districtCode") public String districtCode; @NameInMap("provinceCode") public String provinceCode; public static Address build(java.util.Map<String, ?> map) throws Exception { Address self = new Address(); return TeaModel.build(map, self); } public Address setCityCode(String cityCode) { this.cityCode = cityCode; return this; } public String getCityCode() { return this.cityCode; } public Address setDetail(String detail) { this.detail = detail; return this; } public String getDetail() { return this.detail; } public Address setDistrictCode(String districtCode) { this.districtCode = districtCode; return this; } public String getDistrictCode() { return this.districtCode; } public Address setProvinceCode(String provinceCode) { this.provinceCode = provinceCode; return this; } public String getProvinceCode() { return this.provinceCode; } }
0
java-sources/com/aliyun/alicloudproc20240104/1.0.0/com/aliyun/alicloudproc20240104
java-sources/com/aliyun/alicloudproc20240104/1.0.0/com/aliyun/alicloudproc20240104/models/Company.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alicloudproc20240104.models; import com.aliyun.tea.*; public class Company extends TeaModel { @NameInMap("name") public String name; @NameInMap("uscc") public String uscc; public static Company build(java.util.Map<String, ?> map) throws Exception { Company self = new Company(); return TeaModel.build(map, self); } public Company setName(String name) { this.name = name; return this; } public String getName() { return this.name; } public Company setUscc(String uscc) { this.uscc = uscc; return this; } public String getUscc() { return this.uscc; } }
0
java-sources/com/aliyun/alicloudproc20240104/1.0.0/com/aliyun/alicloudproc20240104
java-sources/com/aliyun/alicloudproc20240104/1.0.0/com/aliyun/alicloudproc20240104/models/Contact.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alicloudproc20240104.models; import com.aliyun.tea.*; public class Contact extends TeaModel { @NameInMap("email") public String email; @NameInMap("name") public String name; @NameInMap("phone") public String phone; public static Contact build(java.util.Map<String, ?> map) throws Exception { Contact self = new Contact(); return TeaModel.build(map, self); } public Contact setEmail(String email) { this.email = email; return this; } public String getEmail() { return this.email; } public Contact setName(String name) { this.name = name; return this; } public String getName() { return this.name; } public Contact setPhone(String phone) { this.phone = phone; return this; } public String getPhone() { return this.phone; } }
0
java-sources/com/aliyun/alicloudproc20240104/1.0.0/com/aliyun/alicloudproc20240104
java-sources/com/aliyun/alicloudproc20240104/1.0.0/com/aliyun/alicloudproc20240104/models/CreateSourcingProjectRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alicloudproc20240104.models; import com.aliyun.tea.*; public class CreateSourcingProjectRequest extends TeaModel { @NameInMap("Address") public CreateSourcingProjectRequestAddress address; @NameInMap("BizId") public String bizId; @NameInMap("BizNo") public String bizNo; @NameInMap("BizType") public String bizType; @NameInMap("Company") public CreateSourcingProjectRequestCompany company; @NameInMap("Contact") public CreateSourcingProjectRequestContact contact; @NameInMap("CreateTime") public String createTime; @NameInMap("ExpireTime") public String expireTime; @NameInMap("ExtendInfo") public java.util.Map<String, String> extendInfo; @NameInMap("SourceUrl") public String sourceUrl; @NameInMap("SubBizType") public String subBizType; @NameInMap("Subjects") public java.util.List<CreateSourcingProjectRequestSubjects> subjects; @NameInMap("Title") public String title; public static CreateSourcingProjectRequest build(java.util.Map<String, ?> map) throws Exception { CreateSourcingProjectRequest self = new CreateSourcingProjectRequest(); return TeaModel.build(map, self); } public CreateSourcingProjectRequest setAddress(CreateSourcingProjectRequestAddress address) { this.address = address; return this; } public CreateSourcingProjectRequestAddress getAddress() { return this.address; } public CreateSourcingProjectRequest setBizId(String bizId) { this.bizId = bizId; return this; } public String getBizId() { return this.bizId; } public CreateSourcingProjectRequest setBizNo(String bizNo) { this.bizNo = bizNo; return this; } public String getBizNo() { return this.bizNo; } public CreateSourcingProjectRequest setBizType(String bizType) { this.bizType = bizType; return this; } public String getBizType() { return this.bizType; } public CreateSourcingProjectRequest setCompany(CreateSourcingProjectRequestCompany company) { this.company = company; return this; } public CreateSourcingProjectRequestCompany getCompany() { return this.company; } public CreateSourcingProjectRequest setContact(CreateSourcingProjectRequestContact contact) { this.contact = contact; return this; } public CreateSourcingProjectRequestContact getContact() { return this.contact; } public CreateSourcingProjectRequest setCreateTime(String createTime) { this.createTime = createTime; return this; } public String getCreateTime() { return this.createTime; } public CreateSourcingProjectRequest setExpireTime(String expireTime) { this.expireTime = expireTime; return this; } public String getExpireTime() { return this.expireTime; } public CreateSourcingProjectRequest setExtendInfo(java.util.Map<String, String> extendInfo) { this.extendInfo = extendInfo; return this; } public java.util.Map<String, String> getExtendInfo() { return this.extendInfo; } public CreateSourcingProjectRequest setSourceUrl(String sourceUrl) { this.sourceUrl = sourceUrl; return this; } public String getSourceUrl() { return this.sourceUrl; } public CreateSourcingProjectRequest setSubBizType(String subBizType) { this.subBizType = subBizType; return this; } public String getSubBizType() { return this.subBizType; } public CreateSourcingProjectRequest setSubjects(java.util.List<CreateSourcingProjectRequestSubjects> subjects) { this.subjects = subjects; return this; } public java.util.List<CreateSourcingProjectRequestSubjects> getSubjects() { return this.subjects; } public CreateSourcingProjectRequest setTitle(String title) { this.title = title; return this; } public String getTitle() { return this.title; } public static class CreateSourcingProjectRequestAddress extends TeaModel { @NameInMap("CityCode") public String cityCode; @NameInMap("Detail") public String detail; @NameInMap("DistrictCode") public String districtCode; @NameInMap("ProvinceCode") public String provinceCode; public static CreateSourcingProjectRequestAddress build(java.util.Map<String, ?> map) throws Exception { CreateSourcingProjectRequestAddress self = new CreateSourcingProjectRequestAddress(); return TeaModel.build(map, self); } public CreateSourcingProjectRequestAddress setCityCode(String cityCode) { this.cityCode = cityCode; return this; } public String getCityCode() { return this.cityCode; } public CreateSourcingProjectRequestAddress setDetail(String detail) { this.detail = detail; return this; } public String getDetail() { return this.detail; } public CreateSourcingProjectRequestAddress setDistrictCode(String districtCode) { this.districtCode = districtCode; return this; } public String getDistrictCode() { return this.districtCode; } public CreateSourcingProjectRequestAddress setProvinceCode(String provinceCode) { this.provinceCode = provinceCode; return this; } public String getProvinceCode() { return this.provinceCode; } } public static class CreateSourcingProjectRequestCompany extends TeaModel { @NameInMap("Name") public String name; @NameInMap("Uscc") public String uscc; public static CreateSourcingProjectRequestCompany build(java.util.Map<String, ?> map) throws Exception { CreateSourcingProjectRequestCompany self = new CreateSourcingProjectRequestCompany(); return TeaModel.build(map, self); } public CreateSourcingProjectRequestCompany setName(String name) { this.name = name; return this; } public String getName() { return this.name; } public CreateSourcingProjectRequestCompany setUscc(String uscc) { this.uscc = uscc; return this; } public String getUscc() { return this.uscc; } } public static class CreateSourcingProjectRequestContact extends TeaModel { @NameInMap("Email") public String email; @NameInMap("Name") public String name; @NameInMap("Phone") public String phone; public static CreateSourcingProjectRequestContact build(java.util.Map<String, ?> map) throws Exception { CreateSourcingProjectRequestContact self = new CreateSourcingProjectRequestContact(); return TeaModel.build(map, self); } public CreateSourcingProjectRequestContact setEmail(String email) { this.email = email; return this; } public String getEmail() { return this.email; } public CreateSourcingProjectRequestContact setName(String name) { this.name = name; return this; } public String getName() { return this.name; } public CreateSourcingProjectRequestContact setPhone(String phone) { this.phone = phone; return this; } public String getPhone() { return this.phone; } } public static class CreateSourcingProjectRequestSubjectsAddress extends TeaModel { @NameInMap("CityCode") public String cityCode; @NameInMap("Detail") public String detail; @NameInMap("DistrictCode") public String districtCode; @NameInMap("ProvinceCode") public String provinceCode; public static CreateSourcingProjectRequestSubjectsAddress build(java.util.Map<String, ?> map) throws Exception { CreateSourcingProjectRequestSubjectsAddress self = new CreateSourcingProjectRequestSubjectsAddress(); return TeaModel.build(map, self); } public CreateSourcingProjectRequestSubjectsAddress setCityCode(String cityCode) { this.cityCode = cityCode; return this; } public String getCityCode() { return this.cityCode; } public CreateSourcingProjectRequestSubjectsAddress setDetail(String detail) { this.detail = detail; return this; } public String getDetail() { return this.detail; } public CreateSourcingProjectRequestSubjectsAddress setDistrictCode(String districtCode) { this.districtCode = districtCode; return this; } public String getDistrictCode() { return this.districtCode; } public CreateSourcingProjectRequestSubjectsAddress setProvinceCode(String provinceCode) { this.provinceCode = provinceCode; return this; } public String getProvinceCode() { return this.provinceCode; } } public static class CreateSourcingProjectRequestSubjects extends TeaModel { @NameInMap("Address") public CreateSourcingProjectRequestSubjectsAddress address; @NameInMap("Code") public String code; @NameInMap("ExtendInfo") public java.util.Map<String, String> extendInfo; @NameInMap("Name") public String name; @NameInMap("Quantity") public Double quantity; @NameInMap("Spec") public String spec; @NameInMap("Unit") public String unit; public static CreateSourcingProjectRequestSubjects build(java.util.Map<String, ?> map) throws Exception { CreateSourcingProjectRequestSubjects self = new CreateSourcingProjectRequestSubjects(); return TeaModel.build(map, self); } public CreateSourcingProjectRequestSubjects setAddress(CreateSourcingProjectRequestSubjectsAddress address) { this.address = address; return this; } public CreateSourcingProjectRequestSubjectsAddress getAddress() { return this.address; } public CreateSourcingProjectRequestSubjects setCode(String code) { this.code = code; return this; } public String getCode() { return this.code; } public CreateSourcingProjectRequestSubjects setExtendInfo(java.util.Map<String, String> extendInfo) { this.extendInfo = extendInfo; return this; } public java.util.Map<String, String> getExtendInfo() { return this.extendInfo; } public CreateSourcingProjectRequestSubjects setName(String name) { this.name = name; return this; } public String getName() { return this.name; } public CreateSourcingProjectRequestSubjects setQuantity(Double quantity) { this.quantity = quantity; return this; } public Double getQuantity() { return this.quantity; } public CreateSourcingProjectRequestSubjects setSpec(String spec) { this.spec = spec; return this; } public String getSpec() { return this.spec; } public CreateSourcingProjectRequestSubjects setUnit(String unit) { this.unit = unit; return this; } public String getUnit() { return this.unit; } } }
0
java-sources/com/aliyun/alicloudproc20240104/1.0.0/com/aliyun/alicloudproc20240104
java-sources/com/aliyun/alicloudproc20240104/1.0.0/com/aliyun/alicloudproc20240104/models/CreateSourcingProjectResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alicloudproc20240104.models; import com.aliyun.tea.*; public class CreateSourcingProjectResponse extends TeaModel { @NameInMap("headers") @Validation(required = true) public java.util.Map<String, String> headers; @NameInMap("statusCode") @Validation(required = true) public Integer statusCode; @NameInMap("body") @Validation(required = true) public CreateSourcingProjectResponseBody body; public static CreateSourcingProjectResponse build(java.util.Map<String, ?> map) throws Exception { CreateSourcingProjectResponse self = new CreateSourcingProjectResponse(); return TeaModel.build(map, self); } public CreateSourcingProjectResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public CreateSourcingProjectResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public CreateSourcingProjectResponse setBody(CreateSourcingProjectResponseBody body) { this.body = body; return this; } public CreateSourcingProjectResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/alicloudproc20240104/1.0.0/com/aliyun/alicloudproc20240104
java-sources/com/aliyun/alicloudproc20240104/1.0.0/com/aliyun/alicloudproc20240104/models/CreateSourcingProjectResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alicloudproc20240104.models; import com.aliyun.tea.*; public class CreateSourcingProjectResponseBody extends TeaModel { @NameInMap("Code") public String code; @NameInMap("Data") public String data; @NameInMap("Message") public String message; @NameInMap("RequestId") public String requestId; @NameInMap("Success") public Boolean success; public static CreateSourcingProjectResponseBody build(java.util.Map<String, ?> map) throws Exception { CreateSourcingProjectResponseBody self = new CreateSourcingProjectResponseBody(); return TeaModel.build(map, self); } public CreateSourcingProjectResponseBody setCode(String code) { this.code = code; return this; } public String getCode() { return this.code; } public CreateSourcingProjectResponseBody setData(String data) { this.data = data; return this; } public String getData() { return this.data; } public CreateSourcingProjectResponseBody setMessage(String message) { this.message = message; return this; } public String getMessage() { return this.message; } public CreateSourcingProjectResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public CreateSourcingProjectResponseBody setSuccess(Boolean success) { this.success = success; return this; } public Boolean getSuccess() { return this.success; } }
0
java-sources/com/aliyun/alicloudproc20240104/1.0.0/com/aliyun/alicloudproc20240104
java-sources/com/aliyun/alicloudproc20240104/1.0.0/com/aliyun/alicloudproc20240104/models/CreateSourcingProjectShrinkRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alicloudproc20240104.models; import com.aliyun.tea.*; public class CreateSourcingProjectShrinkRequest extends TeaModel { @NameInMap("Address") public String addressShrink; @NameInMap("BizId") public String bizId; @NameInMap("BizNo") public String bizNo; @NameInMap("BizType") public String bizType; @NameInMap("Company") public String companyShrink; @NameInMap("Contact") public String contactShrink; @NameInMap("CreateTime") public String createTime; @NameInMap("ExpireTime") public String expireTime; @NameInMap("ExtendInfo") public String extendInfoShrink; @NameInMap("SourceUrl") public String sourceUrl; @NameInMap("SubBizType") public String subBizType; @NameInMap("Subjects") public String subjectsShrink; @NameInMap("Title") public String title; public static CreateSourcingProjectShrinkRequest build(java.util.Map<String, ?> map) throws Exception { CreateSourcingProjectShrinkRequest self = new CreateSourcingProjectShrinkRequest(); return TeaModel.build(map, self); } public CreateSourcingProjectShrinkRequest setAddressShrink(String addressShrink) { this.addressShrink = addressShrink; return this; } public String getAddressShrink() { return this.addressShrink; } public CreateSourcingProjectShrinkRequest setBizId(String bizId) { this.bizId = bizId; return this; } public String getBizId() { return this.bizId; } public CreateSourcingProjectShrinkRequest setBizNo(String bizNo) { this.bizNo = bizNo; return this; } public String getBizNo() { return this.bizNo; } public CreateSourcingProjectShrinkRequest setBizType(String bizType) { this.bizType = bizType; return this; } public String getBizType() { return this.bizType; } public CreateSourcingProjectShrinkRequest setCompanyShrink(String companyShrink) { this.companyShrink = companyShrink; return this; } public String getCompanyShrink() { return this.companyShrink; } public CreateSourcingProjectShrinkRequest setContactShrink(String contactShrink) { this.contactShrink = contactShrink; return this; } public String getContactShrink() { return this.contactShrink; } public CreateSourcingProjectShrinkRequest setCreateTime(String createTime) { this.createTime = createTime; return this; } public String getCreateTime() { return this.createTime; } public CreateSourcingProjectShrinkRequest setExpireTime(String expireTime) { this.expireTime = expireTime; return this; } public String getExpireTime() { return this.expireTime; } public CreateSourcingProjectShrinkRequest setExtendInfoShrink(String extendInfoShrink) { this.extendInfoShrink = extendInfoShrink; return this; } public String getExtendInfoShrink() { return this.extendInfoShrink; } public CreateSourcingProjectShrinkRequest setSourceUrl(String sourceUrl) { this.sourceUrl = sourceUrl; return this; } public String getSourceUrl() { return this.sourceUrl; } public CreateSourcingProjectShrinkRequest setSubBizType(String subBizType) { this.subBizType = subBizType; return this; } public String getSubBizType() { return this.subBizType; } public CreateSourcingProjectShrinkRequest setSubjectsShrink(String subjectsShrink) { this.subjectsShrink = subjectsShrink; return this; } public String getSubjectsShrink() { return this.subjectsShrink; } public CreateSourcingProjectShrinkRequest setTitle(String title) { this.title = title; return this; } public String getTitle() { return this.title; } }
0
java-sources/com/aliyun/alicloudproc20240104/1.0.0/com/aliyun/alicloudproc20240104
java-sources/com/aliyun/alicloudproc20240104/1.0.0/com/aliyun/alicloudproc20240104/models/ExtendInfo.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alicloudproc20240104.models; import com.aliyun.tea.*; public class ExtendInfo extends TeaModel { @NameInMap("depositAmount") public Double depositAmount; @NameInMap("desc") public String desc; public static ExtendInfo build(java.util.Map<String, ?> map) throws Exception { ExtendInfo self = new ExtendInfo(); return TeaModel.build(map, self); } public ExtendInfo setDepositAmount(Double depositAmount) { this.depositAmount = depositAmount; return this; } public Double getDepositAmount() { return this.depositAmount; } public ExtendInfo setDesc(String desc) { this.desc = desc; return this; } public String getDesc() { return this.desc; } }
0
java-sources/com/aliyun/alicloudproc20240104/1.0.0/com/aliyun/alicloudproc20240104
java-sources/com/aliyun/alicloudproc20240104/1.0.0/com/aliyun/alicloudproc20240104/models/SubjectExtendInfo.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alicloudproc20240104.models; import com.aliyun.tea.*; public class SubjectExtendInfo extends TeaModel { @NameInMap("deliveryDesc") public String deliveryDesc; @NameInMap("desc") public String desc; public static SubjectExtendInfo build(java.util.Map<String, ?> map) throws Exception { SubjectExtendInfo self = new SubjectExtendInfo(); return TeaModel.build(map, self); } public SubjectExtendInfo setDeliveryDesc(String deliveryDesc) { this.deliveryDesc = deliveryDesc; return this; } public String getDeliveryDesc() { return this.deliveryDesc; } public SubjectExtendInfo setDesc(String desc) { this.desc = desc; return this; } public String getDesc() { return this.desc; } }
0
java-sources/com/aliyun/alicloudproc20240104/1.0.0/com/aliyun/alicloudproc20240104
java-sources/com/aliyun/alicloudproc20240104/1.0.0/com/aliyun/alicloudproc20240104/models/UpdateSourcingProjectRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alicloudproc20240104.models; import com.aliyun.tea.*; public class UpdateSourcingProjectRequest extends TeaModel { @NameInMap("BizId") public String bizId; @NameInMap("Status") public String status; @NameInMap("UpdateTime") public String updateTime; public static UpdateSourcingProjectRequest build(java.util.Map<String, ?> map) throws Exception { UpdateSourcingProjectRequest self = new UpdateSourcingProjectRequest(); return TeaModel.build(map, self); } public UpdateSourcingProjectRequest setBizId(String bizId) { this.bizId = bizId; return this; } public String getBizId() { return this.bizId; } public UpdateSourcingProjectRequest setStatus(String status) { this.status = status; return this; } public String getStatus() { return this.status; } public UpdateSourcingProjectRequest setUpdateTime(String updateTime) { this.updateTime = updateTime; return this; } public String getUpdateTime() { return this.updateTime; } }
0
java-sources/com/aliyun/alicloudproc20240104/1.0.0/com/aliyun/alicloudproc20240104
java-sources/com/aliyun/alicloudproc20240104/1.0.0/com/aliyun/alicloudproc20240104/models/UpdateSourcingProjectResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alicloudproc20240104.models; import com.aliyun.tea.*; public class UpdateSourcingProjectResponse extends TeaModel { @NameInMap("headers") @Validation(required = true) public java.util.Map<String, String> headers; @NameInMap("statusCode") @Validation(required = true) public Integer statusCode; @NameInMap("body") @Validation(required = true) public UpdateSourcingProjectResponseBody body; public static UpdateSourcingProjectResponse build(java.util.Map<String, ?> map) throws Exception { UpdateSourcingProjectResponse self = new UpdateSourcingProjectResponse(); return TeaModel.build(map, self); } public UpdateSourcingProjectResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public UpdateSourcingProjectResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public UpdateSourcingProjectResponse setBody(UpdateSourcingProjectResponseBody body) { this.body = body; return this; } public UpdateSourcingProjectResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/alicloudproc20240104/1.0.0/com/aliyun/alicloudproc20240104
java-sources/com/aliyun/alicloudproc20240104/1.0.0/com/aliyun/alicloudproc20240104/models/UpdateSourcingProjectResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alicloudproc20240104.models; import com.aliyun.tea.*; public class UpdateSourcingProjectResponseBody extends TeaModel { @NameInMap("Code") public String code; @NameInMap("Data") public String data; @NameInMap("Message") public String message; @NameInMap("RequestId") public String requestId; @NameInMap("Success") public Boolean success; public static UpdateSourcingProjectResponseBody build(java.util.Map<String, ?> map) throws Exception { UpdateSourcingProjectResponseBody self = new UpdateSourcingProjectResponseBody(); return TeaModel.build(map, self); } public UpdateSourcingProjectResponseBody setCode(String code) { this.code = code; return this; } public String getCode() { return this.code; } public UpdateSourcingProjectResponseBody setData(String data) { this.data = data; return this; } public String getData() { return this.data; } public UpdateSourcingProjectResponseBody setMessage(String message) { this.message = message; return this; } public String getMessage() { return this.message; } public UpdateSourcingProjectResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public UpdateSourcingProjectResponseBody setSuccess(Boolean success) { this.success = success; return this; } public Boolean getSuccess() { return this.success; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/Client.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426; import com.aliyun.tea.*; import com.aliyun.aliding20230426.models.*; public class Client extends com.aliyun.teaopenapi.Client { public Client(com.aliyun.teaopenapi.models.Config config) throws Exception { super(config); this._endpointRule = ""; this.checkConfig(config); this._endpoint = this.getEndpoint("aliding", _regionId, _endpointRule, _network, _suffix, _endpointMap, _endpoint); } public String getEndpoint(String productId, String regionId, String endpointRule, String network, String suffix, java.util.Map<String, String> endpointMap, String endpoint) throws Exception { if (!com.aliyun.teautil.Common.empty(endpoint)) { return endpoint; } if (!com.aliyun.teautil.Common.isUnset(endpointMap) && !com.aliyun.teautil.Common.empty(endpointMap.get(regionId))) { return endpointMap.get(regionId); } return com.aliyun.endpointutil.Client.getEndpointRules(productId, regionId, endpointRule, network, suffix); } /** * <b>summary</b> : * <p>添加日程参与者</p> * * @param tmpReq AddAttendeeRequest * @param tmpHeader AddAttendeeHeaders * @param runtime runtime options for this request RuntimeOptions * @return AddAttendeeResponse */ public AddAttendeeResponse addAttendeeWithOptions(AddAttendeeRequest tmpReq, AddAttendeeHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); AddAttendeeShrinkRequest request = new AddAttendeeShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); AddAttendeeShrinkHeaders headers = new AddAttendeeShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.attendeesToAdd)) { request.attendeesToAddShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.attendeesToAdd, "AttendeesToAdd", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.attendeesToAddShrink)) { body.put("AttendeesToAdd", request.attendeesToAddShrink); } if (!com.aliyun.teautil.Common.isUnset(request.calendarId)) { body.put("CalendarId", request.calendarId); } if (!com.aliyun.teautil.Common.isUnset(request.eventId)) { body.put("EventId", request.eventId); } if (!com.aliyun.teautil.Common.isUnset(request.chatNotification)) { body.put("chatNotification", request.chatNotification); } if (!com.aliyun.teautil.Common.isUnset(request.pushNotification)) { body.put("pushNotification", request.pushNotification); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "AddAttendee"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/calendar/addAttendee"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new AddAttendeeResponse()); } /** * <b>summary</b> : * <p>添加日程参与者</p> * * @param request AddAttendeeRequest * @return AddAttendeeResponse */ public AddAttendeeResponse addAttendee(AddAttendeeRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); AddAttendeeHeaders headers = new AddAttendeeHeaders(); return this.addAttendeeWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>新建钉盘空间</p> * * @param tmpReq AddDriveSpaceRequest * @param tmpHeader AddDriveSpaceHeaders * @param runtime runtime options for this request RuntimeOptions * @return AddDriveSpaceResponse */ public AddDriveSpaceResponse addDriveSpaceWithOptions(AddDriveSpaceRequest tmpReq, AddDriveSpaceHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); AddDriveSpaceShrinkRequest request = new AddDriveSpaceShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); AddDriveSpaceShrinkHeaders headers = new AddDriveSpaceShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.name)) { body.put("Name", request.name); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "AddDriveSpace"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/addDriveSpace"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new AddDriveSpaceResponse()); } /** * <b>summary</b> : * <p>新建钉盘空间</p> * * @param request AddDriveSpaceRequest * @return AddDriveSpaceResponse */ public AddDriveSpaceResponse addDriveSpace(AddDriveSpaceRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); AddDriveSpaceHeaders headers = new AddDriveSpaceHeaders(); return this.addDriveSpaceWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>添加文件夹</p> * * @param tmpReq AddFolderRequest * @param tmpHeader AddFolderHeaders * @param runtime runtime options for this request RuntimeOptions * @return AddFolderResponse */ public AddFolderResponse addFolderWithOptions(AddFolderRequest tmpReq, AddFolderHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); AddFolderShrinkRequest request = new AddFolderShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); AddFolderShrinkHeaders headers = new AddFolderShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.option)) { request.optionShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.option, "Option", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.name)) { body.put("Name", request.name); } if (!com.aliyun.teautil.Common.isUnset(request.optionShrink)) { body.put("Option", request.optionShrink); } if (!com.aliyun.teautil.Common.isUnset(request.parentId)) { body.put("ParentId", request.parentId); } if (!com.aliyun.teautil.Common.isUnset(request.spaceId)) { body.put("SpaceId", request.spaceId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "AddFolder"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/addFolder"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new AddFolderResponse()); } /** * <b>summary</b> : * <p>添加文件夹</p> * * @param request AddFolderRequest * @return AddFolderResponse */ public AddFolderResponse addFolder(AddFolderRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); AddFolderHeaders headers = new AddFolderHeaders(); return this.addFolderWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>预定会议室</p> * * @param tmpReq AddMeetingRoomsRequest * @param tmpHeader AddMeetingRoomsHeaders * @param runtime runtime options for this request RuntimeOptions * @return AddMeetingRoomsResponse */ public AddMeetingRoomsResponse addMeetingRoomsWithOptions(AddMeetingRoomsRequest tmpReq, AddMeetingRoomsHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); AddMeetingRoomsShrinkRequest request = new AddMeetingRoomsShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); AddMeetingRoomsShrinkHeaders headers = new AddMeetingRoomsShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.meetingRoomsToAdd)) { request.meetingRoomsToAddShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.meetingRoomsToAdd, "MeetingRoomsToAdd", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.calendarId)) { body.put("CalendarId", request.calendarId); } if (!com.aliyun.teautil.Common.isUnset(request.eventId)) { body.put("EventId", request.eventId); } if (!com.aliyun.teautil.Common.isUnset(request.meetingRoomsToAddShrink)) { body.put("MeetingRoomsToAdd", request.meetingRoomsToAddShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "AddMeetingRooms"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/calendar/addMeetingRooms"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new AddMeetingRoomsResponse()); } /** * <b>summary</b> : * <p>预定会议室</p> * * @param request AddMeetingRoomsRequest * @return AddMeetingRoomsResponse */ public AddMeetingRoomsResponse addMeetingRooms(AddMeetingRoomsRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); AddMeetingRoomsHeaders headers = new AddMeetingRoomsHeaders(); return this.addMeetingRoomsWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>新增数据表</p> * * @param tmpReq AddMultiDimTableRequest * @param tmpHeader AddMultiDimTableHeaders * @param runtime runtime options for this request RuntimeOptions * @return AddMultiDimTableResponse */ public AddMultiDimTableResponse addMultiDimTableWithOptions(AddMultiDimTableRequest tmpReq, AddMultiDimTableHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); AddMultiDimTableShrinkRequest request = new AddMultiDimTableShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); AddMultiDimTableShrinkHeaders headers = new AddMultiDimTableShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.fields)) { request.fieldsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.fields, "Fields", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.baseId)) { body.put("BaseId", request.baseId); } if (!com.aliyun.teautil.Common.isUnset(request.fieldsShrink)) { body.put("Fields", request.fieldsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.name)) { body.put("Name", request.name); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "AddMultiDimTable"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/table/addMultiDimTable"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new AddMultiDimTableResponse()); } /** * <b>summary</b> : * <p>新增数据表</p> * * @param request AddMultiDimTableRequest * @return AddMultiDimTableResponse */ public AddMultiDimTableResponse addMultiDimTable(AddMultiDimTableRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); AddMultiDimTableHeaders headers = new AddMultiDimTableHeaders(); return this.addMultiDimTableWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>添加文件权限</p> * * @param tmpReq AddPermissionRequest * @param tmpHeader AddPermissionHeaders * @param runtime runtime options for this request RuntimeOptions * @return AddPermissionResponse */ public AddPermissionResponse addPermissionWithOptions(AddPermissionRequest tmpReq, AddPermissionHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); AddPermissionShrinkRequest request = new AddPermissionShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); AddPermissionShrinkHeaders headers = new AddPermissionShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.members)) { request.membersShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.members, "Members", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.option)) { request.optionShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.option, "Option", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.dentryUuid)) { body.put("DentryUuid", request.dentryUuid); } if (!com.aliyun.teautil.Common.isUnset(request.membersShrink)) { body.put("Members", request.membersShrink); } if (!com.aliyun.teautil.Common.isUnset(request.optionShrink)) { body.put("Option", request.optionShrink); } if (!com.aliyun.teautil.Common.isUnset(request.roleId)) { body.put("RoleId", request.roleId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "AddPermission"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/addPermission"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new AddPermissionResponse()); } /** * <b>summary</b> : * <p>添加文件权限</p> * * @param request AddPermissionRequest * @return AddPermissionResponse */ public AddPermissionResponse addPermission(AddPermissionRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); AddPermissionHeaders headers = new AddPermissionHeaders(); return this.addPermissionWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>添加闪记权限</p> * * @param tmpReq AddRecordPermissionRequest * @param tmpHeader AddRecordPermissionHeaders * @param runtime runtime options for this request RuntimeOptions * @return AddRecordPermissionResponse */ public AddRecordPermissionResponse addRecordPermissionWithOptions(AddRecordPermissionRequest tmpReq, AddRecordPermissionHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); AddRecordPermissionShrinkRequest request = new AddRecordPermissionShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); AddRecordPermissionShrinkHeaders headers = new AddRecordPermissionShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.bizType)) { body.put("BizType", request.bizType); } if (!com.aliyun.teautil.Common.isUnset(request.conferenceId)) { body.put("ConferenceId", request.conferenceId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.userId)) { body.put("UserId", request.userId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "AddRecordPermission"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/addRecordPermission"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new AddRecordPermissionResponse()); } /** * <b>summary</b> : * <p>添加闪记权限</p> * * @param request AddRecordPermissionRequest * @return AddRecordPermissionResponse */ public AddRecordPermissionResponse addRecordPermission(AddRecordPermissionRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); AddRecordPermissionHeaders headers = new AddRecordPermissionHeaders(); return this.addRecordPermissionWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>新增群成员</p> * * @param request AddScenegroupMemberRequest * @param tmpHeader AddScenegroupMemberHeaders * @param runtime runtime options for this request RuntimeOptions * @return AddScenegroupMemberResponse */ public AddScenegroupMemberResponse addScenegroupMemberWithOptions(AddScenegroupMemberRequest request, AddScenegroupMemberHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); AddScenegroupMemberShrinkHeaders headers = new AddScenegroupMemberShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.openConversationId)) { body.put("OpenConversationId", request.openConversationId); } if (!com.aliyun.teautil.Common.isUnset(request.userIds)) { body.put("UserIds", request.userIds); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "AddScenegroupMember"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/im/addScenegroupMember"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new AddScenegroupMemberResponse()); } /** * <b>summary</b> : * <p>新增群成员</p> * * @param request AddScenegroupMemberRequest * @return AddScenegroupMemberResponse */ public AddScenegroupMemberResponse addScenegroupMember(AddScenegroupMemberRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); AddScenegroupMemberHeaders headers = new AddScenegroupMemberHeaders(); return this.addScenegroupMemberWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>工单添加备注</p> * * @param tmpReq AddTicketMemoRequest * @param tmpHeader AddTicketMemoHeaders * @param runtime runtime options for this request RuntimeOptions * @return AddTicketMemoResponse */ public AddTicketMemoResponse addTicketMemoWithOptions(AddTicketMemoRequest tmpReq, AddTicketMemoHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); AddTicketMemoShrinkRequest request = new AddTicketMemoShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); AddTicketMemoShrinkHeaders headers = new AddTicketMemoShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.ticketMemo)) { request.ticketMemoShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.ticketMemo, "TicketMemo", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.openTeamId)) { body.put("OpenTeamId", request.openTeamId); } if (!com.aliyun.teautil.Common.isUnset(request.openTicketId)) { body.put("OpenTicketId", request.openTicketId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.ticketMemoShrink)) { body.put("TicketMemo", request.ticketMemoShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "AddTicketMemo"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ticket/addTicketMemo"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new AddTicketMemoResponse()); } /** * <b>summary</b> : * <p>工单添加备注</p> * * @param request AddTicketMemoRequest * @return AddTicketMemoResponse */ public AddTicketMemoResponse addTicketMemo(AddTicketMemoRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); AddTicketMemoHeaders headers = new AddTicketMemoHeaders(); return this.addTicketMemoWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>新建知识库</p> * * @param tmpReq AddWorkspaceRequest * @param tmpHeader AddWorkspaceHeaders * @param runtime runtime options for this request RuntimeOptions * @return AddWorkspaceResponse */ public AddWorkspaceResponse addWorkspaceWithOptions(AddWorkspaceRequest tmpReq, AddWorkspaceHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); AddWorkspaceShrinkRequest request = new AddWorkspaceShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); AddWorkspaceShrinkHeaders headers = new AddWorkspaceShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.option)) { request.optionShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.option, "Option", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.name)) { body.put("Name", request.name); } if (!com.aliyun.teautil.Common.isUnset(request.optionShrink)) { body.put("Option", request.optionShrink); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "AddWorkspace"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v2/documents/addWorkspace"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new AddWorkspaceResponse()); } /** * <b>summary</b> : * <p>新建知识库</p> * * @param request AddWorkspaceRequest * @return AddWorkspaceResponse */ public AddWorkspaceResponse addWorkspace(AddWorkspaceRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); AddWorkspaceHeaders headers = new AddWorkspaceHeaders(); return this.addWorkspaceWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>添加知识库文档成员</p> * * @param tmpReq AddWorkspaceDocMembersRequest * @param tmpHeader AddWorkspaceDocMembersHeaders * @param runtime runtime options for this request RuntimeOptions * @return AddWorkspaceDocMembersResponse */ public AddWorkspaceDocMembersResponse addWorkspaceDocMembersWithOptions(AddWorkspaceDocMembersRequest tmpReq, AddWorkspaceDocMembersHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); AddWorkspaceDocMembersShrinkRequest request = new AddWorkspaceDocMembersShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); AddWorkspaceDocMembersShrinkHeaders headers = new AddWorkspaceDocMembersShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.members)) { request.membersShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.members, "Members", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.membersShrink)) { body.put("Members", request.membersShrink); } if (!com.aliyun.teautil.Common.isUnset(request.nodeId)) { body.put("NodeId", request.nodeId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.workspaceId)) { body.put("WorkspaceId", request.workspaceId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "AddWorkspaceDocMembers"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/addWorkspaceDocMembers"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new AddWorkspaceDocMembersResponse()); } /** * <b>summary</b> : * <p>添加知识库文档成员</p> * * @param request AddWorkspaceDocMembersRequest * @return AddWorkspaceDocMembersResponse */ public AddWorkspaceDocMembersResponse addWorkspaceDocMembers(AddWorkspaceDocMembersRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); AddWorkspaceDocMembersHeaders headers = new AddWorkspaceDocMembersHeaders(); return this.addWorkspaceDocMembersWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>添加知识库成员</p> * * @param tmpReq AddWorkspaceMembersRequest * @param tmpHeader AddWorkspaceMembersHeaders * @param runtime runtime options for this request RuntimeOptions * @return AddWorkspaceMembersResponse */ public AddWorkspaceMembersResponse addWorkspaceMembersWithOptions(AddWorkspaceMembersRequest tmpReq, AddWorkspaceMembersHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); AddWorkspaceMembersShrinkRequest request = new AddWorkspaceMembersShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); AddWorkspaceMembersShrinkHeaders headers = new AddWorkspaceMembersShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.members)) { request.membersShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.members, "Members", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.membersShrink)) { body.put("Members", request.membersShrink); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.workspaceId)) { body.put("WorkspaceId", request.workspaceId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "AddWorkspaceMembers"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/addWorkspaceMembers"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new AddWorkspaceMembersResponse()); } /** * <b>summary</b> : * <p>添加知识库成员</p> * * @param request AddWorkspaceMembersRequest * @return AddWorkspaceMembersResponse */ public AddWorkspaceMembersResponse addWorkspaceMembers(AddWorkspaceMembersRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); AddWorkspaceMembersHeaders headers = new AddWorkspaceMembersHeaders(); return this.addWorkspaceMembersWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>指派工单</p> * * @param tmpReq AssignTicketRequest * @param tmpHeader AssignTicketHeaders * @param runtime runtime options for this request RuntimeOptions * @return AssignTicketResponse */ public AssignTicketResponse assignTicketWithOptions(AssignTicketRequest tmpReq, AssignTicketHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); AssignTicketShrinkRequest request = new AssignTicketShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); AssignTicketShrinkHeaders headers = new AssignTicketShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.notify)) { request.notifyShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.notify, "Notify", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.processorUserIds)) { request.processorUserIdsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.processorUserIds, "ProcessorUserIds", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.ticketMemo)) { request.ticketMemoShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.ticketMemo, "TicketMemo", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.notifyShrink)) { body.put("Notify", request.notifyShrink); } if (!com.aliyun.teautil.Common.isUnset(request.openTeamId)) { body.put("OpenTeamId", request.openTeamId); } if (!com.aliyun.teautil.Common.isUnset(request.openTicketId)) { body.put("OpenTicketId", request.openTicketId); } if (!com.aliyun.teautil.Common.isUnset(request.processorUserIdsShrink)) { body.put("ProcessorUserIds", request.processorUserIdsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.ticketMemoShrink)) { body.put("TicketMemo", request.ticketMemoShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "AssignTicket"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ticket/assignTicket"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new AssignTicketResponse()); } /** * <b>summary</b> : * <p>指派工单</p> * * @param request AssignTicketRequest * @return AssignTicketResponse */ public AssignTicketResponse assignTicket(AssignTicketRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); AssignTicketHeaders headers = new AssignTicketHeaders(); return this.assignTicketWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>校验AI技能调用权限</p> * * @param tmpReq AuthorizeSkillRequest * @param tmpHeader AuthorizeSkillHeaders * @param runtime runtime options for this request RuntimeOptions * @return AuthorizeSkillResponse */ public AuthorizeSkillResponse authorizeSkillWithOptions(AuthorizeSkillRequest tmpReq, AuthorizeSkillHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); AuthorizeSkillShrinkRequest request = new AuthorizeSkillShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); AuthorizeSkillShrinkHeaders headers = new AuthorizeSkillShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.permissionCodes)) { request.permissionCodesShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.permissionCodes, "PermissionCodes", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.permissionCodesShrink)) { body.put("PermissionCodes", request.permissionCodesShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "AuthorizeSkill"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/ai/v1/skill/authorizeSkill"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new AuthorizeSkillResponse()); } /** * <b>summary</b> : * <p>校验AI技能调用权限</p> * * @param request AuthorizeSkillRequest * @return AuthorizeSkillResponse */ public AuthorizeSkillResponse authorizeSkill(AuthorizeSkillRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); AuthorizeSkillHeaders headers = new AuthorizeSkillHeaders(); return this.authorizeSkillWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>批量获取表单实例数据</p> * * @param tmpReq BatchGetFormDataByIdListRequest * @param tmpHeader BatchGetFormDataByIdListHeaders * @param runtime runtime options for this request RuntimeOptions * @return BatchGetFormDataByIdListResponse */ public BatchGetFormDataByIdListResponse batchGetFormDataByIdListWithOptions(BatchGetFormDataByIdListRequest tmpReq, BatchGetFormDataByIdListHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); BatchGetFormDataByIdListShrinkRequest request = new BatchGetFormDataByIdListShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); BatchGetFormDataByIdListShrinkHeaders headers = new BatchGetFormDataByIdListShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.formInstanceIdList)) { request.formInstanceIdListShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.formInstanceIdList, "FormInstanceIdList", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.formInstanceIdListShrink)) { body.put("FormInstanceIdList", request.formInstanceIdListShrink); } if (!com.aliyun.teautil.Common.isUnset(request.formUuid)) { body.put("FormUuid", request.formUuid); } if (!com.aliyun.teautil.Common.isUnset(request.needFormInstanceValue)) { body.put("NeedFormInstanceValue", request.needFormInstanceValue); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "BatchGetFormDataByIdList"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/batchGetFormDataByIdList"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new BatchGetFormDataByIdListResponse()); } /** * <b>summary</b> : * <p>批量获取表单实例数据</p> * * @param request BatchGetFormDataByIdListRequest * @return BatchGetFormDataByIdListResponse */ public BatchGetFormDataByIdListResponse batchGetFormDataByIdList(BatchGetFormDataByIdListRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); BatchGetFormDataByIdListHeaders headers = new BatchGetFormDataByIdListHeaders(); return this.batchGetFormDataByIdListWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>批量删除表单实例</p> * * @param tmpReq BatchRemovalByFormInstanceIdListRequest * @param tmpHeader BatchRemovalByFormInstanceIdListHeaders * @param runtime runtime options for this request RuntimeOptions * @return BatchRemovalByFormInstanceIdListResponse */ public BatchRemovalByFormInstanceIdListResponse batchRemovalByFormInstanceIdListWithOptions(BatchRemovalByFormInstanceIdListRequest tmpReq, BatchRemovalByFormInstanceIdListHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); BatchRemovalByFormInstanceIdListShrinkRequest request = new BatchRemovalByFormInstanceIdListShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); BatchRemovalByFormInstanceIdListShrinkHeaders headers = new BatchRemovalByFormInstanceIdListShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.formInstanceIdList)) { request.formInstanceIdListShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.formInstanceIdList, "FormInstanceIdList", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.asynchronousExecution)) { body.put("AsynchronousExecution", request.asynchronousExecution); } if (!com.aliyun.teautil.Common.isUnset(request.executeExpression)) { body.put("ExecuteExpression", request.executeExpression); } if (!com.aliyun.teautil.Common.isUnset(request.formInstanceIdListShrink)) { body.put("FormInstanceIdList", request.formInstanceIdListShrink); } if (!com.aliyun.teautil.Common.isUnset(request.formUuid)) { body.put("FormUuid", request.formUuid); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "BatchRemovalByFormInstanceIdList"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/batchRemovalByFormInstanceIdList"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new BatchRemovalByFormInstanceIdListResponse()); } /** * <b>summary</b> : * <p>批量删除表单实例</p> * * @param request BatchRemovalByFormInstanceIdListRequest * @return BatchRemovalByFormInstanceIdListResponse */ public BatchRemovalByFormInstanceIdListResponse batchRemovalByFormInstanceIdList(BatchRemovalByFormInstanceIdListRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); BatchRemovalByFormInstanceIdListHeaders headers = new BatchRemovalByFormInstanceIdListHeaders(); return this.batchRemovalByFormInstanceIdListWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>批量创建表单实例</p> * * @param tmpReq BatchSaveFormDataRequest * @param tmpHeader BatchSaveFormDataHeaders * @param runtime runtime options for this request RuntimeOptions * @return BatchSaveFormDataResponse */ public BatchSaveFormDataResponse batchSaveFormDataWithOptions(BatchSaveFormDataRequest tmpReq, BatchSaveFormDataHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); BatchSaveFormDataShrinkRequest request = new BatchSaveFormDataShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); BatchSaveFormDataShrinkHeaders headers = new BatchSaveFormDataShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.formDataJsonList)) { request.formDataJsonListShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.formDataJsonList, "FormDataJsonList", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.asynchronousExecution)) { body.put("AsynchronousExecution", request.asynchronousExecution); } if (!com.aliyun.teautil.Common.isUnset(request.formDataJsonListShrink)) { body.put("FormDataJsonList", request.formDataJsonListShrink); } if (!com.aliyun.teautil.Common.isUnset(request.formUuid)) { body.put("FormUuid", request.formUuid); } if (!com.aliyun.teautil.Common.isUnset(request.keepRunningAfterException)) { body.put("KeepRunningAfterException", request.keepRunningAfterException); } if (!com.aliyun.teautil.Common.isUnset(request.noExecuteExpression)) { body.put("NoExecuteExpression", request.noExecuteExpression); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "BatchSaveFormData"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/batchSaveFormData"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new BatchSaveFormDataResponse()); } /** * <b>summary</b> : * <p>批量创建表单实例</p> * * @param request BatchSaveFormDataRequest * @return BatchSaveFormDataResponse */ public BatchSaveFormDataResponse batchSaveFormData(BatchSaveFormDataRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); BatchSaveFormDataHeaders headers = new BatchSaveFormDataHeaders(); return this.batchSaveFormDataWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>批量更新表单实例内的组件值</p> * * @param tmpReq BatchUpdateFormDataByInstanceIdRequest * @param tmpHeader BatchUpdateFormDataByInstanceIdHeaders * @param runtime runtime options for this request RuntimeOptions * @return BatchUpdateFormDataByInstanceIdResponse */ public BatchUpdateFormDataByInstanceIdResponse batchUpdateFormDataByInstanceIdWithOptions(BatchUpdateFormDataByInstanceIdRequest tmpReq, BatchUpdateFormDataByInstanceIdHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); BatchUpdateFormDataByInstanceIdShrinkRequest request = new BatchUpdateFormDataByInstanceIdShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); BatchUpdateFormDataByInstanceIdShrinkHeaders headers = new BatchUpdateFormDataByInstanceIdShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.formInstanceIdList)) { request.formInstanceIdListShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.formInstanceIdList, "FormInstanceIdList", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.asynchronousExecution)) { body.put("AsynchronousExecution", request.asynchronousExecution); } if (!com.aliyun.teautil.Common.isUnset(request.formInstanceIdListShrink)) { body.put("FormInstanceIdList", request.formInstanceIdListShrink); } if (!com.aliyun.teautil.Common.isUnset(request.formUuid)) { body.put("FormUuid", request.formUuid); } if (!com.aliyun.teautil.Common.isUnset(request.ignoreEmpty)) { body.put("IgnoreEmpty", request.ignoreEmpty); } if (!com.aliyun.teautil.Common.isUnset(request.noExecuteExpression)) { body.put("NoExecuteExpression", request.noExecuteExpression); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } if (!com.aliyun.teautil.Common.isUnset(request.updateFormDataJson)) { body.put("UpdateFormDataJson", request.updateFormDataJson); } if (!com.aliyun.teautil.Common.isUnset(request.useLatestFormSchemaVersion)) { body.put("UseLatestFormSchemaVersion", request.useLatestFormSchemaVersion); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "BatchUpdateFormDataByInstanceId"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/batchUpdateFormDataByInstanceId"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new BatchUpdateFormDataByInstanceIdResponse()); } /** * <b>summary</b> : * <p>批量更新表单实例内的组件值</p> * * @param request BatchUpdateFormDataByInstanceIdRequest * @return BatchUpdateFormDataByInstanceIdResponse */ public BatchUpdateFormDataByInstanceIdResponse batchUpdateFormDataByInstanceId(BatchUpdateFormDataByInstanceIdRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); BatchUpdateFormDataByInstanceIdHeaders headers = new BatchUpdateFormDataByInstanceIdHeaders(); return this.batchUpdateFormDataByInstanceIdWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>通过表单实例数据批量更新表单实例</p> * * @param tmpReq BatchUpdateFormDataByInstanceMapRequest * @param tmpHeader BatchUpdateFormDataByInstanceMapHeaders * @param runtime runtime options for this request RuntimeOptions * @return BatchUpdateFormDataByInstanceMapResponse */ public BatchUpdateFormDataByInstanceMapResponse batchUpdateFormDataByInstanceMapWithOptions(BatchUpdateFormDataByInstanceMapRequest tmpReq, BatchUpdateFormDataByInstanceMapHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); BatchUpdateFormDataByInstanceMapShrinkRequest request = new BatchUpdateFormDataByInstanceMapShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); BatchUpdateFormDataByInstanceMapShrinkHeaders headers = new BatchUpdateFormDataByInstanceMapShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.updateFormDataJsonMap)) { request.updateFormDataJsonMapShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.updateFormDataJsonMap, "UpdateFormDataJsonMap", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.asynchronousExecution)) { body.put("AsynchronousExecution", request.asynchronousExecution); } if (!com.aliyun.teautil.Common.isUnset(request.formUuid)) { body.put("FormUuid", request.formUuid); } if (!com.aliyun.teautil.Common.isUnset(request.ignoreEmpty)) { body.put("IgnoreEmpty", request.ignoreEmpty); } if (!com.aliyun.teautil.Common.isUnset(request.noExecuteExpression)) { body.put("NoExecuteExpression", request.noExecuteExpression); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } if (!com.aliyun.teautil.Common.isUnset(request.updateFormDataJsonMapShrink)) { body.put("UpdateFormDataJsonMap", request.updateFormDataJsonMapShrink); } if (!com.aliyun.teautil.Common.isUnset(request.useLatestFormSchemaVersion)) { body.put("UseLatestFormSchemaVersion", request.useLatestFormSchemaVersion); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "BatchUpdateFormDataByInstanceMap"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/batchUpdateFormDataByInstanceMap"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new BatchUpdateFormDataByInstanceMapResponse()); } /** * <b>summary</b> : * <p>通过表单实例数据批量更新表单实例</p> * * @param request BatchUpdateFormDataByInstanceMapRequest * @return BatchUpdateFormDataByInstanceMapResponse */ public BatchUpdateFormDataByInstanceMapResponse batchUpdateFormDataByInstanceMap(BatchUpdateFormDataByInstanceMapRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); BatchUpdateFormDataByInstanceMapHeaders headers = new BatchUpdateFormDataByInstanceMapHeaders(); return this.batchUpdateFormDataByInstanceMapWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>取消预约会议</p> * * @param tmpReq CancelScheduleConferenceRequest * @param tmpHeader CancelScheduleConferenceHeaders * @param runtime runtime options for this request RuntimeOptions * @return CancelScheduleConferenceResponse */ public CancelScheduleConferenceResponse cancelScheduleConferenceWithOptions(CancelScheduleConferenceRequest tmpReq, CancelScheduleConferenceHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); CancelScheduleConferenceShrinkRequest request = new CancelScheduleConferenceShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); CancelScheduleConferenceShrinkHeaders headers = new CancelScheduleConferenceShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.scheduleConferenceId)) { body.put("ScheduleConferenceId", request.scheduleConferenceId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CancelScheduleConference"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/cancelScheduleConference"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CancelScheduleConferenceResponse()); } /** * <b>summary</b> : * <p>取消预约会议</p> * * @param request CancelScheduleConferenceRequest * @return CancelScheduleConferenceResponse */ public CancelScheduleConferenceResponse cancelScheduleConference(CancelScheduleConferenceRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CancelScheduleConferenceHeaders headers = new CancelScheduleConferenceHeaders(); return this.cancelScheduleConferenceWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>修改阿里钉号</p> * * @param tmpReq ChangeDingTalkIdRequest * @param tmpHeader ChangeDingTalkIdHeaders * @param runtime runtime options for this request RuntimeOptions * @return ChangeDingTalkIdResponse */ public ChangeDingTalkIdResponse changeDingTalkIdWithOptions(ChangeDingTalkIdRequest tmpReq, ChangeDingTalkIdHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); ChangeDingTalkIdShrinkRequest request = new ChangeDingTalkIdShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); ChangeDingTalkIdShrinkHeaders headers = new ChangeDingTalkIdShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.dingTalkId)) { body.put("DingTalkId", request.dingTalkId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "ChangeDingTalkId"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/user/changeDingTalkId"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new ChangeDingTalkIdResponse()); } /** * <b>summary</b> : * <p>修改阿里钉号</p> * * @param request ChangeDingTalkIdRequest * @return ChangeDingTalkIdResponse */ public ChangeDingTalkIdResponse changeDingTalkId(ChangeDingTalkIdRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); ChangeDingTalkIdHeaders headers = new ChangeDingTalkIdHeaders(); return this.changeDingTalkIdWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>校验阿里员工</p> * * @param tmpReq CheckAlibabaStaffRequest * @param tmpHeader CheckAlibabaStaffHeaders * @param runtime runtime options for this request RuntimeOptions * @return CheckAlibabaStaffResponse */ public CheckAlibabaStaffResponse checkAlibabaStaffWithOptions(CheckAlibabaStaffRequest tmpReq, CheckAlibabaStaffHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); CheckAlibabaStaffShrinkRequest request = new CheckAlibabaStaffShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); CheckAlibabaStaffShrinkHeaders headers = new CheckAlibabaStaffShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.mobile)) { body.put("Mobile", request.mobile); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CheckAlibabaStaff"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/im/checkAlibabaStaff"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CheckAlibabaStaffResponse()); } /** * <b>summary</b> : * <p>校验阿里员工</p> * * @param request CheckAlibabaStaffRequest * @return CheckAlibabaStaffResponse */ public CheckAlibabaStaffResponse checkAlibabaStaff(CheckAlibabaStaffRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CheckAlibabaStaffHeaders headers = new CheckAlibabaStaffHeaders(); return this.checkAlibabaStaffWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询用户是否为企业内部群成员</p> * * @param request CheckUserIsGroupMemberRequest * @param tmpHeader CheckUserIsGroupMemberHeaders * @param runtime runtime options for this request RuntimeOptions * @return CheckUserIsGroupMemberResponse */ public CheckUserIsGroupMemberResponse checkUserIsGroupMemberWithOptions(CheckUserIsGroupMemberRequest request, CheckUserIsGroupMemberHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); CheckUserIsGroupMemberShrinkHeaders headers = new CheckUserIsGroupMemberShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.openConversationId)) { body.put("OpenConversationId", request.openConversationId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CheckUserIsGroupMember"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/im/checkUserIsGroupMember"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CheckUserIsGroupMemberResponse()); } /** * <b>summary</b> : * <p>查询用户是否为企业内部群成员</p> * * @param request CheckUserIsGroupMemberRequest * @return CheckUserIsGroupMemberResponse */ public CheckUserIsGroupMemberResponse checkUserIsGroupMember(CheckUserIsGroupMemberRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CheckUserIsGroupMemberHeaders headers = new CheckUserIsGroupMemberHeaders(); return this.checkUserIsGroupMemberWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>清除单元格所有内容</p> * * @param tmpReq ClearRequest * @param tmpHeader ClearHeaders * @param runtime runtime options for this request RuntimeOptions * @return ClearResponse */ public ClearResponse clearWithOptions(ClearRequest tmpReq, ClearHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); ClearShrinkRequest request = new ClearShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); ClearShrinkHeaders headers = new ClearShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.rangeAddress)) { body.put("RangeAddress", request.rangeAddress); } if (!com.aliyun.teautil.Common.isUnset(request.sheetId)) { body.put("SheetId", request.sheetId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.workbookId)) { body.put("WorkbookId", request.workbookId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "Clear"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/clear"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new ClearResponse()); } /** * <b>summary</b> : * <p>清除单元格所有内容</p> * * @param request ClearRequest * @return ClearResponse */ public ClearResponse clear(ClearRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); ClearHeaders headers = new ClearHeaders(); return this.clearWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>清除单元格数据</p> * * @param tmpReq ClearDataRequest * @param tmpHeader ClearDataHeaders * @param runtime runtime options for this request RuntimeOptions * @return ClearDataResponse */ public ClearDataResponse clearDataWithOptions(ClearDataRequest tmpReq, ClearDataHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); ClearDataShrinkRequest request = new ClearDataShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); ClearDataShrinkHeaders headers = new ClearDataShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.rangeAddress)) { body.put("RangeAddress", request.rangeAddress); } if (!com.aliyun.teautil.Common.isUnset(request.sheetId)) { body.put("SheetId", request.sheetId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.workbookId)) { body.put("WorkbookId", request.workbookId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "ClearData"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/clearData"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new ClearDataResponse()); } /** * <b>summary</b> : * <p>清除单元格数据</p> * * @param request ClearDataRequest * @return ClearDataResponse */ public ClearDataResponse clearData(ClearDataRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); ClearDataHeaders headers = new ClearDataHeaders(); return this.clearDataWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>关闭视频会议</p> * * @param tmpReq CloseVideoConferenceRequest * @param tmpHeader CloseVideoConferenceHeaders * @param runtime runtime options for this request RuntimeOptions * @return CloseVideoConferenceResponse */ public CloseVideoConferenceResponse closeVideoConferenceWithOptions(CloseVideoConferenceRequest tmpReq, CloseVideoConferenceHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); CloseVideoConferenceShrinkRequest request = new CloseVideoConferenceShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); CloseVideoConferenceShrinkHeaders headers = new CloseVideoConferenceShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.conferenceId)) { body.put("conferenceId", request.conferenceId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CloseVideoConference"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/closeVideoConference"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CloseVideoConferenceResponse()); } /** * <b>summary</b> : * <p>关闭视频会议</p> * * @param request CloseVideoConferenceRequest * @return CloseVideoConferenceResponse */ public CloseVideoConferenceResponse closeVideoConference(CloseVideoConferenceRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CloseVideoConferenceHeaders headers = new CloseVideoConferenceHeaders(); return this.closeVideoConferenceWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取日志评论列表</p> * * @param tmpReq CommentListReportRequest * @param tmpHeader CommentListReportHeaders * @param runtime runtime options for this request RuntimeOptions * @return CommentListReportResponse */ public CommentListReportResponse commentListReportWithOptions(CommentListReportRequest tmpReq, CommentListReportHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); CommentListReportShrinkRequest request = new CommentListReportShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); CommentListReportShrinkHeaders headers = new CommentListReportShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.offset)) { body.put("Offset", request.offset); } if (!com.aliyun.teautil.Common.isUnset(request.reportId)) { body.put("ReportId", request.reportId); } if (!com.aliyun.teautil.Common.isUnset(request.size)) { body.put("Size", request.size); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CommentListReport"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/log/commentListReport"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CommentListReportResponse()); } /** * <b>summary</b> : * <p>获取日志评论列表</p> * * @param request CommentListReportRequest * @return CommentListReportResponse */ public CommentListReportResponse commentListReport(CommentListReportRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CommentListReportHeaders headers = new CommentListReportHeaders(); return this.commentListReportWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>提交文件</p> * * @param tmpReq CommitFileRequest * @param tmpHeader CommitFileHeaders * @param runtime runtime options for this request RuntimeOptions * @return CommitFileResponse */ public CommitFileResponse commitFileWithOptions(CommitFileRequest tmpReq, CommitFileHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); CommitFileShrinkRequest request = new CommitFileShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); CommitFileShrinkHeaders headers = new CommitFileShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.option)) { request.optionShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.option, "Option", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.name)) { body.put("Name", request.name); } if (!com.aliyun.teautil.Common.isUnset(request.optionShrink)) { body.put("Option", request.optionShrink); } if (!com.aliyun.teautil.Common.isUnset(request.parentDentryUuid)) { body.put("ParentDentryUuid", request.parentDentryUuid); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.uploadKey)) { body.put("UploadKey", request.uploadKey); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CommitFile"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/commitFile"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CommitFileResponse()); } /** * <b>summary</b> : * <p>提交文件</p> * * @param request CommitFileRequest * @return CommitFileResponse */ public CommitFileResponse commitFile(CommitFileRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CommitFileHeaders headers = new CommitFileHeaders(); return this.commitFileWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>创建知识库节点副本</p> * * @param tmpReq CopyDentryRequest * @param tmpHeader CopyDentryHeaders * @param runtime runtime options for this request RuntimeOptions * @return CopyDentryResponse */ public CopyDentryResponse copyDentryWithOptions(CopyDentryRequest tmpReq, CopyDentryHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); CopyDentryShrinkRequest request = new CopyDentryShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); CopyDentryShrinkHeaders headers = new CopyDentryShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.dentryId)) { body.put("DentryId", request.dentryId); } if (!com.aliyun.teautil.Common.isUnset(request.name)) { body.put("Name", request.name); } if (!com.aliyun.teautil.Common.isUnset(request.spaceId)) { body.put("SpaceId", request.spaceId); } if (!com.aliyun.teautil.Common.isUnset(request.targetSpaceId)) { body.put("TargetSpaceId", request.targetSpaceId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.toNextDentryId)) { body.put("ToNextDentryId", request.toNextDentryId); } if (!com.aliyun.teautil.Common.isUnset(request.toParentDentryId)) { body.put("ToParentDentryId", request.toParentDentryId); } if (!com.aliyun.teautil.Common.isUnset(request.toPrevDentryId)) { body.put("ToPrevDentryId", request.toPrevDentryId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CopyDentry"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v2/documents/copyDentry"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CopyDentryResponse()); } /** * <b>summary</b> : * <p>创建知识库节点副本</p> * * @param request CopyDentryRequest * @return CopyDentryResponse */ public CopyDentryResponse copyDentry(CopyDentryRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CopyDentryHeaders headers = new CopyDentryHeaders(); return this.copyDentryWithOptions(request, headers, runtime); } /** * @param tmpReq CreateAlidingAssistantRequest * @param tmpHeader CreateAlidingAssistantHeaders * @param runtime runtime options for this request RuntimeOptions * @return CreateAlidingAssistantResponse */ public CreateAlidingAssistantResponse createAlidingAssistantWithOptions(CreateAlidingAssistantRequest tmpReq, CreateAlidingAssistantHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); CreateAlidingAssistantShrinkRequest request = new CreateAlidingAssistantShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); CreateAlidingAssistantShrinkHeaders headers = new CreateAlidingAssistantShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.ext)) { request.extShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.ext, "Ext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.recommendPrompts)) { request.recommendPromptsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.recommendPrompts, "RecommendPrompts", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appCode)) { body.put("AppCode", request.appCode); } if (!com.aliyun.teautil.Common.isUnset(request.description)) { body.put("Description", request.description); } if (!com.aliyun.teautil.Common.isUnset(request.extShrink)) { body.put("Ext", request.extShrink); } if (!com.aliyun.teautil.Common.isUnset(request.icon)) { body.put("Icon", request.icon); } if (!com.aliyun.teautil.Common.isUnset(request.instructions)) { body.put("Instructions", request.instructions); } if (!com.aliyun.teautil.Common.isUnset(request.name)) { body.put("Name", request.name); } if (!com.aliyun.teautil.Common.isUnset(request.recommendPromptsShrink)) { body.put("RecommendPrompts", request.recommendPromptsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.source)) { body.put("Source", request.source); } if (!com.aliyun.teautil.Common.isUnset(request.sourceIdentityId)) { body.put("SourceIdentityId", request.sourceIdentityId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.welcomeContent)) { body.put("WelcomeContent", request.welcomeContent); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CreateAlidingAssistant"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/aiagent/createAlidingAssistant"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CreateAlidingAssistantResponse()); } /** * @param request CreateAlidingAssistantRequest * @return CreateAlidingAssistantResponse */ public CreateAlidingAssistantResponse createAlidingAssistant(CreateAlidingAssistantRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CreateAlidingAssistantHeaders headers = new CreateAlidingAssistantHeaders(); return this.createAlidingAssistantWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>发布钉钉投放活动</p> * * @param tmpReq CreateDeliveryPlanRequest * @param tmpHeader CreateDeliveryPlanHeaders * @param runtime runtime options for this request RuntimeOptions * @return CreateDeliveryPlanResponse */ public CreateDeliveryPlanResponse createDeliveryPlanWithOptions(CreateDeliveryPlanRequest tmpReq, CreateDeliveryPlanHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); CreateDeliveryPlanShrinkRequest request = new CreateDeliveryPlanShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); CreateDeliveryPlanShrinkHeaders headers = new CreateDeliveryPlanShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.content)) { request.contentShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.content, "Content", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.userIdList)) { request.userIdListShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.userIdList, "UserIdList", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.contentShrink)) { body.put("Content", request.contentShrink); } if (!com.aliyun.teautil.Common.isUnset(request.endTime)) { body.put("EndTime", request.endTime); } if (!com.aliyun.teautil.Common.isUnset(request.resId)) { body.put("ResId", request.resId); } if (!com.aliyun.teautil.Common.isUnset(request.startTime)) { body.put("StartTime", request.startTime); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.userIdListShrink)) { body.put("UserIdList", request.userIdListShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CreateDeliveryPlan"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/watt/createDeliveryPlan"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CreateDeliveryPlanResponse()); } /** * <b>summary</b> : * <p>发布钉钉投放活动</p> * * @param request CreateDeliveryPlanRequest * @return CreateDeliveryPlanResponse */ public CreateDeliveryPlanResponse createDeliveryPlan(CreateDeliveryPlanRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CreateDeliveryPlanHeaders headers = new CreateDeliveryPlanHeaders(); return this.createDeliveryPlanWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>委托权限创建钉钉个人待办</p> * * @param tmpReq CreateDingtalkPersonalTodoTaskRequest * @param tmpHeader CreateDingtalkPersonalTodoTaskHeaders * @param runtime runtime options for this request RuntimeOptions * @return CreateDingtalkPersonalTodoTaskResponse */ public CreateDingtalkPersonalTodoTaskResponse createDingtalkPersonalTodoTaskWithOptions(CreateDingtalkPersonalTodoTaskRequest tmpReq, CreateDingtalkPersonalTodoTaskHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); CreateDingtalkPersonalTodoTaskShrinkRequest request = new CreateDingtalkPersonalTodoTaskShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); CreateDingtalkPersonalTodoTaskShrinkHeaders headers = new CreateDingtalkPersonalTodoTaskShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.executorIds)) { request.executorIdsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.executorIds, "ExecutorIds", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.notifyConfigs)) { request.notifyConfigsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.notifyConfigs, "NotifyConfigs", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.participantIds)) { request.participantIdsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.participantIds, "ParticipantIds", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.description)) { body.put("Description", request.description); } if (!com.aliyun.teautil.Common.isUnset(request.dueTime)) { body.put("DueTime", request.dueTime); } if (!com.aliyun.teautil.Common.isUnset(request.executorIdsShrink)) { body.put("ExecutorIds", request.executorIdsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.notifyConfigsShrink)) { body.put("NotifyConfigs", request.notifyConfigsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.participantIdsShrink)) { body.put("ParticipantIds", request.participantIdsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.subject)) { body.put("Subject", request.subject); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.userToken)) { body.put("UserToken", request.userToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CreateDingtalkPersonalTodoTask"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/task/createDingtalkPersonalTodoTask"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CreateDingtalkPersonalTodoTaskResponse()); } /** * <b>summary</b> : * <p>委托权限创建钉钉个人待办</p> * * @param request CreateDingtalkPersonalTodoTaskRequest * @return CreateDingtalkPersonalTodoTaskResponse */ public CreateDingtalkPersonalTodoTaskResponse createDingtalkPersonalTodoTask(CreateDingtalkPersonalTodoTaskRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CreateDingtalkPersonalTodoTaskHeaders headers = new CreateDingtalkPersonalTodoTaskHeaders(); return this.createDingtalkPersonalTodoTaskWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>创建日程</p> * * @param tmpReq CreateEventRequest * @param tmpHeader CreateEventHeaders * @param runtime runtime options for this request RuntimeOptions * @return CreateEventResponse */ public CreateEventResponse createEventWithOptions(CreateEventRequest tmpReq, CreateEventHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); CreateEventShrinkRequest request = new CreateEventShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); CreateEventShrinkHeaders headers = new CreateEventShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.attendees)) { request.attendeesShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.attendees, "Attendees", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.cardInstances)) { request.cardInstancesShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.cardInstances, "CardInstances", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.end)) { request.endShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.end, "End", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.extra)) { request.extraShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.extra, "Extra", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.location)) { request.locationShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.location, "Location", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.onlineMeetingInfo)) { request.onlineMeetingInfoShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.onlineMeetingInfo, "OnlineMeetingInfo", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.recurrence)) { request.recurrenceShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.recurrence, "Recurrence", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.reminders)) { request.remindersShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.reminders, "Reminders", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.richTextDescription)) { request.richTextDescriptionShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.richTextDescription, "RichTextDescription", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.uiConfigs)) { request.uiConfigsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.uiConfigs, "UiConfigs", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.start)) { request.startShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.start, "start", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.attendeesShrink)) { body.put("Attendees", request.attendeesShrink); } if (!com.aliyun.teautil.Common.isUnset(request.cardInstancesShrink)) { body.put("CardInstances", request.cardInstancesShrink); } if (!com.aliyun.teautil.Common.isUnset(request.description)) { body.put("Description", request.description); } if (!com.aliyun.teautil.Common.isUnset(request.endShrink)) { body.put("End", request.endShrink); } if (!com.aliyun.teautil.Common.isUnset(request.extraShrink)) { body.put("Extra", request.extraShrink); } if (!com.aliyun.teautil.Common.isUnset(request.isAllDay)) { body.put("IsAllDay", request.isAllDay); } if (!com.aliyun.teautil.Common.isUnset(request.locationShrink)) { body.put("Location", request.locationShrink); } if (!com.aliyun.teautil.Common.isUnset(request.onlineMeetingInfoShrink)) { body.put("OnlineMeetingInfo", request.onlineMeetingInfoShrink); } if (!com.aliyun.teautil.Common.isUnset(request.recurrenceShrink)) { body.put("Recurrence", request.recurrenceShrink); } if (!com.aliyun.teautil.Common.isUnset(request.remindersShrink)) { body.put("Reminders", request.remindersShrink); } if (!com.aliyun.teautil.Common.isUnset(request.richTextDescriptionShrink)) { body.put("RichTextDescription", request.richTextDescriptionShrink); } if (!com.aliyun.teautil.Common.isUnset(request.summary)) { body.put("Summary", request.summary); } if (!com.aliyun.teautil.Common.isUnset(request.uiConfigsShrink)) { body.put("UiConfigs", request.uiConfigsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.calendarId)) { body.put("calendarId", request.calendarId); } if (!com.aliyun.teautil.Common.isUnset(request.startShrink)) { body.put("start", request.startShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CreateEvent"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/calendar/createEvent"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CreateEventResponse()); } /** * <b>summary</b> : * <p>创建日程</p> * * @param request CreateEventRequest * @return CreateEventResponse */ public CreateEventResponse createEvent(CreateEventRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CreateEventHeaders headers = new CreateEventHeaders(); return this.createEventWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>创建直播</p> * * @param tmpReq CreateLiveRequest * @param tmpHeader CreateLiveHeaders * @param runtime runtime options for this request RuntimeOptions * @return CreateLiveResponse */ public CreateLiveResponse createLiveWithOptions(CreateLiveRequest tmpReq, CreateLiveHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); CreateLiveShrinkRequest request = new CreateLiveShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); CreateLiveShrinkHeaders headers = new CreateLiveShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.coverUrl)) { body.put("CoverUrl", request.coverUrl); } if (!com.aliyun.teautil.Common.isUnset(request.introduction)) { body.put("Introduction", request.introduction); } if (!com.aliyun.teautil.Common.isUnset(request.preEndTime)) { body.put("PreEndTime", request.preEndTime); } if (!com.aliyun.teautil.Common.isUnset(request.preStartTime)) { body.put("PreStartTime", request.preStartTime); } if (!com.aliyun.teautil.Common.isUnset(request.publicType)) { body.put("PublicType", request.publicType); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.title)) { body.put("Title", request.title); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CreateLive"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/createLive"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CreateLiveResponse()); } /** * <b>summary</b> : * <p>创建直播</p> * * @param request CreateLiveRequest * @return CreateLiveResponse */ public CreateLiveResponse createLive(CreateLiveRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CreateLiveHeaders headers = new CreateLiveHeaders(); return this.createLiveWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>创建会议室</p> * * @param tmpReq CreateMeetingRoomRequest * @param tmpHeader CreateMeetingRoomHeaders * @param runtime runtime options for this request RuntimeOptions * @return CreateMeetingRoomResponse */ public CreateMeetingRoomResponse createMeetingRoomWithOptions(CreateMeetingRoomRequest tmpReq, CreateMeetingRoomHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); CreateMeetingRoomShrinkRequest request = new CreateMeetingRoomShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); CreateMeetingRoomShrinkHeaders headers = new CreateMeetingRoomShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.reservationAuthority)) { request.reservationAuthorityShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.reservationAuthority, "ReservationAuthority", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.roomLabelIds)) { request.roomLabelIdsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.roomLabelIds, "RoomLabelIds", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.roomLocation)) { request.roomLocationShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.roomLocation, "RoomLocation", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.enableCycleReservation)) { body.put("EnableCycleReservation", request.enableCycleReservation); } if (!com.aliyun.teautil.Common.isUnset(request.groupId)) { body.put("GroupId", request.groupId); } if (!com.aliyun.teautil.Common.isUnset(request.isvRoomId)) { body.put("IsvRoomId", request.isvRoomId); } if (!com.aliyun.teautil.Common.isUnset(request.reservationAuthorityShrink)) { body.put("ReservationAuthority", request.reservationAuthorityShrink); } if (!com.aliyun.teautil.Common.isUnset(request.roomCapacity)) { body.put("RoomCapacity", request.roomCapacity); } if (!com.aliyun.teautil.Common.isUnset(request.roomLabelIdsShrink)) { body.put("RoomLabelIds", request.roomLabelIdsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.roomLocationShrink)) { body.put("RoomLocation", request.roomLocationShrink); } if (!com.aliyun.teautil.Common.isUnset(request.roomName)) { body.put("RoomName", request.roomName); } if (!com.aliyun.teautil.Common.isUnset(request.roomPicture)) { body.put("RoomPicture", request.roomPicture); } if (!com.aliyun.teautil.Common.isUnset(request.roomStatus)) { body.put("RoomStatus", request.roomStatus); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CreateMeetingRoom"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/createMeetingRoom"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CreateMeetingRoomResponse()); } /** * <b>summary</b> : * <p>创建会议室</p> * * @param request CreateMeetingRoomRequest * @return CreateMeetingRoomResponse */ public CreateMeetingRoomResponse createMeetingRoom(CreateMeetingRoomRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CreateMeetingRoomHeaders headers = new CreateMeetingRoomHeaders(); return this.createMeetingRoomWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>创建会议室分组</p> * * @param tmpReq CreateMeetingRoomGroupRequest * @param tmpHeader CreateMeetingRoomGroupHeaders * @param runtime runtime options for this request RuntimeOptions * @return CreateMeetingRoomGroupResponse */ public CreateMeetingRoomGroupResponse createMeetingRoomGroupWithOptions(CreateMeetingRoomGroupRequest tmpReq, CreateMeetingRoomGroupHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); CreateMeetingRoomGroupShrinkRequest request = new CreateMeetingRoomGroupShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); CreateMeetingRoomGroupShrinkHeaders headers = new CreateMeetingRoomGroupShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.groupName)) { body.put("GroupName", request.groupName); } if (!com.aliyun.teautil.Common.isUnset(request.parentGroupId)) { body.put("ParentGroupId", request.parentGroupId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CreateMeetingRoomGroup"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/createMeetingRoomGroup"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CreateMeetingRoomGroupResponse()); } /** * <b>summary</b> : * <p>创建会议室分组</p> * * @param request CreateMeetingRoomGroupRequest * @return CreateMeetingRoomGroupResponse */ public CreateMeetingRoomGroupResponse createMeetingRoomGroup(CreateMeetingRoomGroupRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CreateMeetingRoomGroupHeaders headers = new CreateMeetingRoomGroupHeaders(); return this.createMeetingRoomGroupWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>创建消息</p> * * @param request CreateMessageRequest * @param headers CreateMessageHeaders * @param runtime runtime options for this request RuntimeOptions * @return CreateMessageResponse */ public CreateMessageResponse createMessageWithOptions(CreateMessageRequest request, CreateMessageHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.assistantId)) { body.put("assistantId", request.assistantId); } if (!com.aliyun.teautil.Common.isUnset(request.messages)) { body.put("messages", request.messages); } if (!com.aliyun.teautil.Common.isUnset(request.originalAssistantId)) { body.put("originalAssistantId", request.originalAssistantId); } if (!com.aliyun.teautil.Common.isUnset(request.sourceIdOfOriginalAssistantId)) { body.put("sourceIdOfOriginalAssistantId", request.sourceIdOfOriginalAssistantId); } if (!com.aliyun.teautil.Common.isUnset(request.sourceTypeOfOriginalAssistantId)) { body.put("sourceTypeOfOriginalAssistantId", request.sourceTypeOfOriginalAssistantId); } if (!com.aliyun.teautil.Common.isUnset(request.threadId)) { body.put("threadId", request.threadId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountId)) { realHeaders.put("accountId", com.aliyun.teautil.Common.toJSONString(headers.accountId)); } 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", "CreateMessage"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/ai/v1/assistant/createMessage"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "json"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CreateMessageResponse()); } /** * <b>summary</b> : * <p>创建消息</p> * * @param request CreateMessageRequest * @return CreateMessageResponse */ public CreateMessageResponse createMessage(CreateMessageRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CreateMessageHeaders headers = new CreateMessageHeaders(); return this.createMessageWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>创建字段</p> * * @param tmpReq CreateMultiDimTableFieldRequest * @param tmpHeader CreateMultiDimTableFieldHeaders * @param runtime runtime options for this request RuntimeOptions * @return CreateMultiDimTableFieldResponse */ public CreateMultiDimTableFieldResponse createMultiDimTableFieldWithOptions(CreateMultiDimTableFieldRequest tmpReq, CreateMultiDimTableFieldHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); CreateMultiDimTableFieldShrinkRequest request = new CreateMultiDimTableFieldShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); CreateMultiDimTableFieldShrinkHeaders headers = new CreateMultiDimTableFieldShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.property)) { request.propertyShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.property, "Property", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.baseId)) { body.put("BaseId", request.baseId); } if (!com.aliyun.teautil.Common.isUnset(request.name)) { body.put("Name", request.name); } if (!com.aliyun.teautil.Common.isUnset(request.propertyShrink)) { body.put("Property", request.propertyShrink); } if (!com.aliyun.teautil.Common.isUnset(request.sheetIdOrName)) { body.put("SheetIdOrName", request.sheetIdOrName); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.type)) { body.put("Type", request.type); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CreateMultiDimTableField"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/table/createMultiDimTableField"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CreateMultiDimTableFieldResponse()); } /** * <b>summary</b> : * <p>创建字段</p> * * @param request CreateMultiDimTableFieldRequest * @return CreateMultiDimTableFieldResponse */ public CreateMultiDimTableFieldResponse createMultiDimTableField(CreateMultiDimTableFieldRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CreateMultiDimTableFieldHeaders headers = new CreateMultiDimTableFieldHeaders(); return this.createMultiDimTableFieldWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>新增或更新表单实例</p> * * @param request CreateOrUpdateFormDataRequest * @param tmpHeader CreateOrUpdateFormDataHeaders * @param runtime runtime options for this request RuntimeOptions * @return CreateOrUpdateFormDataResponse */ public CreateOrUpdateFormDataResponse createOrUpdateFormDataWithOptions(CreateOrUpdateFormDataRequest request, CreateOrUpdateFormDataHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); CreateOrUpdateFormDataShrinkHeaders headers = new CreateOrUpdateFormDataShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.formDataJson)) { body.put("FormDataJson", request.formDataJson); } if (!com.aliyun.teautil.Common.isUnset(request.formUuid)) { body.put("FormUuid", request.formUuid); } if (!com.aliyun.teautil.Common.isUnset(request.noExecuteExpression)) { body.put("NoExecuteExpression", request.noExecuteExpression); } if (!com.aliyun.teautil.Common.isUnset(request.searchCondition)) { body.put("SearchCondition", request.searchCondition); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } if (!com.aliyun.teautil.Common.isUnset(request.userId)) { body.put("UserId", request.userId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CreateOrUpdateFormData"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/createOrUpdateFormData"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CreateOrUpdateFormDataResponse()); } /** * <b>summary</b> : * <p>新增或更新表单实例</p> * * @param request CreateOrUpdateFormDataRequest * @return CreateOrUpdateFormDataResponse */ public CreateOrUpdateFormDataResponse createOrUpdateFormData(CreateOrUpdateFormDataRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CreateOrUpdateFormDataHeaders headers = new CreateOrUpdateFormDataHeaders(); return this.createOrUpdateFormDataWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>创建荣誉勋章模板</p> * * @param tmpReq CreateOrgHonorTemplateRequest * @param tmpHeader CreateOrgHonorTemplateHeaders * @param runtime runtime options for this request RuntimeOptions * @return CreateOrgHonorTemplateResponse */ public CreateOrgHonorTemplateResponse createOrgHonorTemplateWithOptions(CreateOrgHonorTemplateRequest tmpReq, CreateOrgHonorTemplateHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); CreateOrgHonorTemplateShrinkRequest request = new CreateOrgHonorTemplateShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); CreateOrgHonorTemplateShrinkHeaders headers = new CreateOrgHonorTemplateShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.avatarFrameMediaId)) { body.put("avatarFrameMediaId", request.avatarFrameMediaId); } if (!com.aliyun.teautil.Common.isUnset(request.defaultBgColor)) { body.put("defaultBgColor", request.defaultBgColor); } if (!com.aliyun.teautil.Common.isUnset(request.medalDesc)) { body.put("medalDesc", request.medalDesc); } if (!com.aliyun.teautil.Common.isUnset(request.medalMediaId)) { body.put("medalMediaId", request.medalMediaId); } if (!com.aliyun.teautil.Common.isUnset(request.medalName)) { body.put("medalName", request.medalName); } if (!com.aliyun.teautil.Common.isUnset(request.orgId)) { body.put("orgId", request.orgId); } if (!com.aliyun.teautil.Common.isUnset(request.userId)) { body.put("userId", request.userId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CreateOrgHonorTemplate"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/aliding/v1/honor/createOrgHonorTemplate"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CreateOrgHonorTemplateResponse()); } /** * <b>summary</b> : * <p>创建荣誉勋章模板</p> * * @param request CreateOrgHonorTemplateRequest * @return CreateOrgHonorTemplateResponse */ public CreateOrgHonorTemplateResponse createOrgHonorTemplate(CreateOrgHonorTemplateRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CreateOrgHonorTemplateHeaders headers = new CreateOrgHonorTemplateHeaders(); return this.createOrgHonorTemplateWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>创建钉钉个人待办任务</p> * * @param tmpReq CreatePersonalTodoTaskRequest * @param tmpHeader CreatePersonalTodoTaskHeaders * @param runtime runtime options for this request RuntimeOptions * @return CreatePersonalTodoTaskResponse */ public CreatePersonalTodoTaskResponse createPersonalTodoTaskWithOptions(CreatePersonalTodoTaskRequest tmpReq, CreatePersonalTodoTaskHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); CreatePersonalTodoTaskShrinkRequest request = new CreatePersonalTodoTaskShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); CreatePersonalTodoTaskShrinkHeaders headers = new CreatePersonalTodoTaskShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.executorIds)) { request.executorIdsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.executorIds, "ExecutorIds", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.notifyConfigs)) { request.notifyConfigsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.notifyConfigs, "NotifyConfigs", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.participantIds)) { request.participantIdsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.participantIds, "ParticipantIds", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.description)) { body.put("Description", request.description); } if (!com.aliyun.teautil.Common.isUnset(request.dueTime)) { body.put("DueTime", request.dueTime); } if (!com.aliyun.teautil.Common.isUnset(request.executorIdsShrink)) { body.put("ExecutorIds", request.executorIdsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.notifyConfigsShrink)) { body.put("NotifyConfigs", request.notifyConfigsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.participantIdsShrink)) { body.put("ParticipantIds", request.participantIdsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.reminderTimeStamp)) { body.put("ReminderTimeStamp", request.reminderTimeStamp); } if (!com.aliyun.teautil.Common.isUnset(request.subject)) { body.put("Subject", request.subject); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CreatePersonalTodoTask"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/task/createPersonalTodoTask"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CreatePersonalTodoTaskResponse()); } /** * <b>summary</b> : * <p>创建钉钉个人待办任务</p> * * @param request CreatePersonalTodoTaskRequest * @return CreatePersonalTodoTaskResponse */ public CreatePersonalTodoTaskResponse createPersonalTodoTask(CreatePersonalTodoTaskRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CreatePersonalTodoTaskHeaders headers = new CreatePersonalTodoTaskHeaders(); return this.createPersonalTodoTaskWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>创建日志</p> * * @param tmpReq CreateReportRequest * @param tmpHeader CreateReportHeaders * @param runtime runtime options for this request RuntimeOptions * @return CreateReportResponse */ public CreateReportResponse createReportWithOptions(CreateReportRequest tmpReq, CreateReportHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); CreateReportShrinkRequest request = new CreateReportShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); CreateReportShrinkHeaders headers = new CreateReportShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.contents)) { request.contentsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.contents, "Contents", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.toCids)) { request.toCidsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.toCids, "ToCids", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.toUserids)) { request.toUseridsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.toUserids, "ToUserids", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.contentsShrink)) { body.put("Contents", request.contentsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.ddFrom)) { body.put("DdFrom", request.ddFrom); } if (!com.aliyun.teautil.Common.isUnset(request.templateId)) { body.put("TemplateId", request.templateId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.toChat)) { body.put("ToChat", request.toChat); } if (!com.aliyun.teautil.Common.isUnset(request.toCidsShrink)) { body.put("ToCids", request.toCidsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.toUseridsShrink)) { body.put("ToUserids", request.toUseridsShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CreateReport"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/log/createReport"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CreateReportResponse()); } /** * <b>summary</b> : * <p>创建日志</p> * * @param request CreateReportRequest * @return CreateReportResponse */ public CreateReportResponse createReport(CreateReportRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CreateReportHeaders headers = new CreateReportHeaders(); return this.createReportWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>创建运行</p> * * @param request CreateRunRequest * @param headers CreateRunHeaders * @param runtime runtime options for this request RuntimeOptions * @return CreateRunResponse */ public CreateRunResponse createRunWithOptions(CreateRunRequest request, CreateRunHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.allowStructViewContent)) { body.put("allowStructViewContent", request.allowStructViewContent); } if (!com.aliyun.teautil.Common.isUnset(request.assistantId)) { body.put("assistantId", request.assistantId); } if (!com.aliyun.teautil.Common.isUnset(request.originalAssistantId)) { body.put("originalAssistantId", request.originalAssistantId); } if (!com.aliyun.teautil.Common.isUnset(request.sourceIdOfOriginalAssistantId)) { body.put("sourceIdOfOriginalAssistantId", request.sourceIdOfOriginalAssistantId); } if (!com.aliyun.teautil.Common.isUnset(request.sourceTypeOfOriginalAssistantId)) { body.put("sourceTypeOfOriginalAssistantId", request.sourceTypeOfOriginalAssistantId); } if (!com.aliyun.teautil.Common.isUnset(request.stream)) { body.put("stream", request.stream); } if (!com.aliyun.teautil.Common.isUnset(request.threadId)) { body.put("threadId", request.threadId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountId)) { realHeaders.put("accountId", com.aliyun.teautil.Common.toJSONString(headers.accountId)); } 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", "CreateRun"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/ai/v1/assistant/createRun"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "json"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CreateRunResponse()); } /** * <b>summary</b> : * <p>创建运行</p> * * @param request CreateRunRequest * @return CreateRunResponse */ public CreateRunResponse createRun(CreateRunRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CreateRunHeaders headers = new CreateRunHeaders(); return this.createRunWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>创建场景群</p> * * @param request CreateScenegroupRequest * @param tmpHeader CreateScenegroupHeaders * @param runtime runtime options for this request RuntimeOptions * @return CreateScenegroupResponse */ public CreateScenegroupResponse createScenegroupWithOptions(CreateScenegroupRequest request, CreateScenegroupHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); CreateScenegroupShrinkHeaders headers = new CreateScenegroupShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.addFriendForbidden)) { body.put("AddFriendForbidden", request.addFriendForbidden); } if (!com.aliyun.teautil.Common.isUnset(request.allMembersCanCreateCalendar)) { body.put("AllMembersCanCreateCalendar", request.allMembersCanCreateCalendar); } if (!com.aliyun.teautil.Common.isUnset(request.allMembersCanCreateMcsConf)) { body.put("AllMembersCanCreateMcsConf", request.allMembersCanCreateMcsConf); } if (!com.aliyun.teautil.Common.isUnset(request.chatBannedType)) { body.put("ChatBannedType", request.chatBannedType); } if (!com.aliyun.teautil.Common.isUnset(request.groupEmailDisabled)) { body.put("GroupEmailDisabled", request.groupEmailDisabled); } if (!com.aliyun.teautil.Common.isUnset(request.groupLiveSwitch)) { body.put("GroupLiveSwitch", request.groupLiveSwitch); } if (!com.aliyun.teautil.Common.isUnset(request.icon)) { body.put("Icon", request.icon); } if (!com.aliyun.teautil.Common.isUnset(request.managementType)) { body.put("ManagementType", request.managementType); } if (!com.aliyun.teautil.Common.isUnset(request.membersToAdminChat)) { body.put("MembersToAdminChat", request.membersToAdminChat); } if (!com.aliyun.teautil.Common.isUnset(request.mentionAllAuthority)) { body.put("MentionAllAuthority", request.mentionAllAuthority); } if (!com.aliyun.teautil.Common.isUnset(request.onlyAdminCanDing)) { body.put("OnlyAdminCanDing", request.onlyAdminCanDing); } if (!com.aliyun.teautil.Common.isUnset(request.onlyAdminCanSetMsgTop)) { body.put("OnlyAdminCanSetMsgTop", request.onlyAdminCanSetMsgTop); } if (!com.aliyun.teautil.Common.isUnset(request.searchable)) { body.put("Searchable", request.searchable); } if (!com.aliyun.teautil.Common.isUnset(request.showHistoryType)) { body.put("ShowHistoryType", request.showHistoryType); } if (!com.aliyun.teautil.Common.isUnset(request.subadminIds)) { body.put("SubadminIds", request.subadminIds); } if (!com.aliyun.teautil.Common.isUnset(request.templateId)) { body.put("TemplateId", request.templateId); } if (!com.aliyun.teautil.Common.isUnset(request.title)) { body.put("Title", request.title); } if (!com.aliyun.teautil.Common.isUnset(request.userIds)) { body.put("UserIds", request.userIds); } if (!com.aliyun.teautil.Common.isUnset(request.uuid)) { body.put("Uuid", request.uuid); } if (!com.aliyun.teautil.Common.isUnset(request.validationType)) { body.put("ValidationType", request.validationType); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CreateScenegroup"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/im/createScenegroup"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CreateScenegroupResponse()); } /** * <b>summary</b> : * <p>创建场景群</p> * * @param request CreateScenegroupRequest * @return CreateScenegroupResponse */ public CreateScenegroupResponse createScenegroup(CreateScenegroupRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CreateScenegroupHeaders headers = new CreateScenegroupHeaders(); return this.createScenegroupWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>创建预约会议</p> * * @param tmpReq CreateScheduleConferenceRequest * @param tmpHeader CreateScheduleConferenceHeaders * @param runtime runtime options for this request RuntimeOptions * @return CreateScheduleConferenceResponse */ public CreateScheduleConferenceResponse createScheduleConferenceWithOptions(CreateScheduleConferenceRequest tmpReq, CreateScheduleConferenceHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); CreateScheduleConferenceShrinkRequest request = new CreateScheduleConferenceShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); CreateScheduleConferenceShrinkHeaders headers = new CreateScheduleConferenceShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.scheduleConfSettingModel)) { request.scheduleConfSettingModelShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.scheduleConfSettingModel, "ScheduleConfSettingModel", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.endTime)) { body.put("EndTime", request.endTime); } if (!com.aliyun.teautil.Common.isUnset(request.scheduleConfSettingModelShrink)) { body.put("ScheduleConfSettingModel", request.scheduleConfSettingModelShrink); } if (!com.aliyun.teautil.Common.isUnset(request.startTime)) { body.put("StartTime", request.startTime); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.title)) { body.put("Title", request.title); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CreateScheduleConference"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/createScheduleConference"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CreateScheduleConferenceResponse()); } /** * <b>summary</b> : * <p>创建预约会议</p> * * @param request CreateScheduleConferenceRequest * @return CreateScheduleConferenceResponse */ public CreateScheduleConferenceResponse createScheduleConference(CreateScheduleConferenceRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CreateScheduleConferenceHeaders headers = new CreateScheduleConferenceHeaders(); return this.createScheduleConferenceWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>发布钉钉搜索穹顶</p> * * @param tmpReq CreateSearchDomeRequest * @param tmpHeader CreateSearchDomeHeaders * @param runtime runtime options for this request RuntimeOptions * @return CreateSearchDomeResponse */ public CreateSearchDomeResponse createSearchDomeWithOptions(CreateSearchDomeRequest tmpReq, CreateSearchDomeHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); CreateSearchDomeShrinkRequest request = new CreateSearchDomeShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); CreateSearchDomeShrinkHeaders headers = new CreateSearchDomeShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.userIdList)) { request.userIdListShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.userIdList, "UserIdList", "json"); } java.util.Map<String, Object> 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.endTime)) { body.put("EndTime", request.endTime); } if (!com.aliyun.teautil.Common.isUnset(request.resId)) { body.put("ResId", request.resId); } if (!com.aliyun.teautil.Common.isUnset(request.startTime)) { body.put("StartTime", request.startTime); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.userIdListShrink)) { body.put("UserIdList", request.userIdListShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CreateSearchDome"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/watt/createSearchDome"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CreateSearchDomeResponse()); } /** * <b>summary</b> : * <p>发布钉钉搜索穹顶</p> * * @param request CreateSearchDomeRequest * @return CreateSearchDomeResponse */ public CreateSearchDomeResponse createSearchDome(CreateSearchDomeRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CreateSearchDomeHeaders headers = new CreateSearchDomeHeaders(); return this.createSearchDomeWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>发布钉钉搜索关键词</p> * * @param tmpReq CreateSearchKeywordRequest * @param tmpHeader CreateSearchKeywordHeaders * @param runtime runtime options for this request RuntimeOptions * @return CreateSearchKeywordResponse */ public CreateSearchKeywordResponse createSearchKeywordWithOptions(CreateSearchKeywordRequest tmpReq, CreateSearchKeywordHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); CreateSearchKeywordShrinkRequest request = new CreateSearchKeywordShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); CreateSearchKeywordShrinkHeaders headers = new CreateSearchKeywordShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.userIdList)) { request.userIdListShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.userIdList, "UserIdList", "json"); } java.util.Map<String, Object> 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.endTime)) { body.put("EndTime", request.endTime); } if (!com.aliyun.teautil.Common.isUnset(request.resId)) { body.put("ResId", request.resId); } if (!com.aliyun.teautil.Common.isUnset(request.startTime)) { body.put("StartTime", request.startTime); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.userIdListShrink)) { body.put("UserIdList", request.userIdListShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CreateSearchKeyword"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/watt/createSearchKeyword"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CreateSearchKeywordResponse()); } /** * <b>summary</b> : * <p>发布钉钉搜索关键词</p> * * @param request CreateSearchKeywordRequest * @return CreateSearchKeywordResponse */ public CreateSearchKeywordResponse createSearchKeyword(CreateSearchKeywordRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CreateSearchKeywordHeaders headers = new CreateSearchKeywordHeaders(); return this.createSearchKeywordWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>创建工作表</p> * * @param tmpReq CreateSheetRequest * @param tmpHeader CreateSheetHeaders * @param runtime runtime options for this request RuntimeOptions * @return CreateSheetResponse */ public CreateSheetResponse createSheetWithOptions(CreateSheetRequest tmpReq, CreateSheetHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); CreateSheetShrinkRequest request = new CreateSheetShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); CreateSheetShrinkHeaders headers = new CreateSheetShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.name)) { body.put("Name", request.name); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.workbookId)) { body.put("WorkbookId", request.workbookId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CreateSheet"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/createSheet"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CreateSheetResponse()); } /** * <b>summary</b> : * <p>创建工作表</p> * * @param request CreateSheetRequest * @return CreateSheetResponse */ public CreateSheetResponse createSheet(CreateSheetRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CreateSheetHeaders headers = new CreateSheetHeaders(); return this.createSheetWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>创建订阅日历</p> * * @param tmpReq CreateSubscribedCalendarRequest * @param tmpHeader CreateSubscribedCalendarHeaders * @param runtime runtime options for this request RuntimeOptions * @return CreateSubscribedCalendarResponse */ public CreateSubscribedCalendarResponse createSubscribedCalendarWithOptions(CreateSubscribedCalendarRequest tmpReq, CreateSubscribedCalendarHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); CreateSubscribedCalendarShrinkRequest request = new CreateSubscribedCalendarShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); CreateSubscribedCalendarShrinkHeaders headers = new CreateSubscribedCalendarShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.managers)) { request.managersShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.managers, "Managers", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.subscribeScope)) { request.subscribeScopeShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.subscribeScope, "SubscribeScope", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.description)) { body.put("Description", request.description); } if (!com.aliyun.teautil.Common.isUnset(request.managersShrink)) { body.put("Managers", request.managersShrink); } if (!com.aliyun.teautil.Common.isUnset(request.name)) { body.put("Name", request.name); } if (!com.aliyun.teautil.Common.isUnset(request.subscribeScopeShrink)) { body.put("SubscribeScope", request.subscribeScopeShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CreateSubscribedCalendar"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/calendar/createSubscribedCalendar"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CreateSubscribedCalendarResponse()); } /** * <b>summary</b> : * <p>创建订阅日历</p> * * @param request CreateSubscribedCalendarRequest * @return CreateSubscribedCalendarResponse */ public CreateSubscribedCalendarResponse createSubscribedCalendar(CreateSubscribedCalendarRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CreateSubscribedCalendarHeaders headers = new CreateSubscribedCalendarHeaders(); return this.createSubscribedCalendarWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>创建线程</p> * * @param request CreateThreadRequest * @param headers CreateThreadHeaders * @param runtime runtime options for this request RuntimeOptions * @return CreateThreadResponse */ public CreateThreadResponse createThreadWithOptions(CreateThreadRequest request, CreateThreadHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.assistantId)) { body.put("assistantId", request.assistantId); } if (!com.aliyun.teautil.Common.isUnset(request.originalAssistantId)) { body.put("originalAssistantId", request.originalAssistantId); } if (!com.aliyun.teautil.Common.isUnset(request.sourceIdOfOriginalAssistantId)) { body.put("sourceIdOfOriginalAssistantId", request.sourceIdOfOriginalAssistantId); } if (!com.aliyun.teautil.Common.isUnset(request.sourceTypeOfOriginalAssistantId)) { body.put("sourceTypeOfOriginalAssistantId", request.sourceTypeOfOriginalAssistantId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountId)) { realHeaders.put("accountId", com.aliyun.teautil.Common.toJSONString(headers.accountId)); } 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", "CreateThread"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/ai/v1/assistant/createThread"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "json"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CreateThreadResponse()); } /** * <b>summary</b> : * <p>创建线程</p> * * @param request CreateThreadRequest * @return CreateThreadResponse */ public CreateThreadResponse createThread(CreateThreadRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CreateThreadHeaders headers = new CreateThreadHeaders(); return this.createThreadWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>创建工单</p> * * @param tmpReq CreateTicketRequest * @param tmpHeader CreateTicketHeaders * @param runtime runtime options for this request RuntimeOptions * @return CreateTicketResponse */ public CreateTicketResponse createTicketWithOptions(CreateTicketRequest tmpReq, CreateTicketHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); CreateTicketShrinkRequest request = new CreateTicketShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); CreateTicketShrinkHeaders headers = new CreateTicketShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.notify)) { request.notifyShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.notify, "Notify", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.processorUserIds)) { request.processorUserIdsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.processorUserIds, "ProcessorUserIds", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.sceneContext)) { request.sceneContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.sceneContext, "SceneContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.customFields)) { body.put("CustomFields", request.customFields); } if (!com.aliyun.teautil.Common.isUnset(request.notifyShrink)) { body.put("Notify", request.notifyShrink); } if (!com.aliyun.teautil.Common.isUnset(request.openTeamId)) { body.put("OpenTeamId", request.openTeamId); } if (!com.aliyun.teautil.Common.isUnset(request.openTemplateBizId)) { body.put("OpenTemplateBizId", request.openTemplateBizId); } if (!com.aliyun.teautil.Common.isUnset(request.processorUserIdsShrink)) { body.put("ProcessorUserIds", request.processorUserIdsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.scene)) { body.put("Scene", request.scene); } if (!com.aliyun.teautil.Common.isUnset(request.sceneContextShrink)) { body.put("SceneContext", request.sceneContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.title)) { body.put("Title", request.title); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CreateTicket"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ticket/createTicket"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CreateTicketResponse()); } /** * <b>summary</b> : * <p>创建工单</p> * * @param request CreateTicketRequest * @return CreateTicketResponse */ public CreateTicketResponse createTicket(CreateTicketRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CreateTicketHeaders headers = new CreateTicketHeaders(); return this.createTicketWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>创建代办</p> * * @param tmpReq CreateTodoTaskRequest * @param tmpHeader CreateTodoTaskHeaders * @param runtime runtime options for this request RuntimeOptions * @return CreateTodoTaskResponse */ public CreateTodoTaskResponse createTodoTaskWithOptions(CreateTodoTaskRequest tmpReq, CreateTodoTaskHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); CreateTodoTaskShrinkRequest request = new CreateTodoTaskShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); CreateTodoTaskShrinkHeaders headers = new CreateTodoTaskShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.actionList)) { request.actionListShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.actionList, "actionList", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.contentFieldList)) { request.contentFieldListShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.contentFieldList, "contentFieldList", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.detailUrl)) { request.detailUrlShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.detailUrl, "detailUrl", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.executorIds)) { request.executorIdsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.executorIds, "executorIds", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.notifyConfigs)) { request.notifyConfigsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.notifyConfigs, "notifyConfigs", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.participantIds)) { request.participantIdsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.participantIds, "participantIds", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.remindNotifyConfigs)) { request.remindNotifyConfigsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.remindNotifyConfigs, "remindNotifyConfigs", "json"); } java.util.Map<String, Object> query = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.operatorId)) { query.put("operatorId", request.operatorId); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.actionListShrink)) { body.put("actionList", request.actionListShrink); } if (!com.aliyun.teautil.Common.isUnset(request.contentFieldListShrink)) { body.put("contentFieldList", request.contentFieldListShrink); } if (!com.aliyun.teautil.Common.isUnset(request.creatorId)) { body.put("creatorId", request.creatorId); } if (!com.aliyun.teautil.Common.isUnset(request.description)) { body.put("description", request.description); } if (!com.aliyun.teautil.Common.isUnset(request.detailUrlShrink)) { body.put("detailUrl", request.detailUrlShrink); } if (!com.aliyun.teautil.Common.isUnset(request.dueTime)) { body.put("dueTime", request.dueTime); } if (!com.aliyun.teautil.Common.isUnset(request.executorIdsShrink)) { body.put("executorIds", request.executorIdsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.isOnlyShowExecutor)) { body.put("isOnlyShowExecutor", request.isOnlyShowExecutor); } if (!com.aliyun.teautil.Common.isUnset(request.notifyConfigsShrink)) { body.put("notifyConfigs", request.notifyConfigsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.participantIdsShrink)) { body.put("participantIds", request.participantIdsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.priority)) { body.put("priority", request.priority); } if (!com.aliyun.teautil.Common.isUnset(request.remindNotifyConfigsShrink)) { body.put("remindNotifyConfigs", request.remindNotifyConfigsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.reminderTimeStamp)) { body.put("reminderTimeStamp", request.reminderTimeStamp); } if (!com.aliyun.teautil.Common.isUnset(request.sourceId)) { body.put("sourceId", request.sourceId); } if (!com.aliyun.teautil.Common.isUnset(request.subject)) { body.put("subject", request.subject); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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.openapiutil.Client.parseToMap(body)) )); com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap( new TeaPair("action", "CreateTodoTask"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/task/createTodoTask"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CreateTodoTaskResponse()); } /** * <b>summary</b> : * <p>创建代办</p> * * @param request CreateTodoTaskRequest * @return CreateTodoTaskResponse */ public CreateTodoTaskResponse createTodoTask(CreateTodoTaskRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CreateTodoTaskHeaders headers = new CreateTodoTaskHeaders(); return this.createTodoTaskWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>创建视频会议</p> * * @param tmpReq CreateVideoConferenceRequest * @param tmpHeader CreateVideoConferenceHeaders * @param runtime runtime options for this request RuntimeOptions * @return CreateVideoConferenceResponse */ public CreateVideoConferenceResponse createVideoConferenceWithOptions(CreateVideoConferenceRequest tmpReq, CreateVideoConferenceHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); CreateVideoConferenceShrinkRequest request = new CreateVideoConferenceShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); CreateVideoConferenceShrinkHeaders headers = new CreateVideoConferenceShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.inviteUserIds)) { request.inviteUserIdsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.inviteUserIds, "InviteUserIds", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.confTitle)) { body.put("ConfTitle", request.confTitle); } if (!com.aliyun.teautil.Common.isUnset(request.inviteCaller)) { body.put("InviteCaller", request.inviteCaller); } if (!com.aliyun.teautil.Common.isUnset(request.inviteUserIdsShrink)) { body.put("InviteUserIds", request.inviteUserIdsShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CreateVideoConference"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/createVideoConference"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CreateVideoConferenceResponse()); } /** * <b>summary</b> : * <p>创建视频会议</p> * * @param request CreateVideoConferenceRequest * @return CreateVideoConferenceResponse */ public CreateVideoConferenceResponse createVideoConference(CreateVideoConferenceRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CreateVideoConferenceHeaders headers = new CreateVideoConferenceHeaders(); return this.createVideoConferenceWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>创建知识库</p> * * @param tmpReq CreateWorkspaceRequest * @param tmpHeader CreateWorkspaceHeaders * @param runtime runtime options for this request RuntimeOptions * @return CreateWorkspaceResponse */ public CreateWorkspaceResponse createWorkspaceWithOptions(CreateWorkspaceRequest tmpReq, CreateWorkspaceHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); CreateWorkspaceShrinkRequest request = new CreateWorkspaceShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); CreateWorkspaceShrinkHeaders headers = new CreateWorkspaceShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.description)) { body.put("Description", request.description); } if (!com.aliyun.teautil.Common.isUnset(request.name)) { body.put("Name", request.name); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CreateWorkspace"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/createWorkspace"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CreateWorkspaceResponse()); } /** * <b>summary</b> : * <p>创建知识库</p> * * @param request CreateWorkspaceRequest * @return CreateWorkspaceResponse */ public CreateWorkspaceResponse createWorkspace(CreateWorkspaceRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CreateWorkspaceHeaders headers = new CreateWorkspaceHeaders(); return this.createWorkspaceWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>创建知识库文档</p> * * @param tmpReq CreateWorkspaceDocRequest * @param tmpHeader CreateWorkspaceDocHeaders * @param runtime runtime options for this request RuntimeOptions * @return CreateWorkspaceDocResponse */ public CreateWorkspaceDocResponse createWorkspaceDocWithOptions(CreateWorkspaceDocRequest tmpReq, CreateWorkspaceDocHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); CreateWorkspaceDocShrinkRequest request = new CreateWorkspaceDocShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); CreateWorkspaceDocShrinkHeaders headers = new CreateWorkspaceDocShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.docType)) { body.put("DocType", request.docType); } if (!com.aliyun.teautil.Common.isUnset(request.name)) { body.put("Name", request.name); } if (!com.aliyun.teautil.Common.isUnset(request.parentNodeId)) { body.put("ParentNodeId", request.parentNodeId); } if (!com.aliyun.teautil.Common.isUnset(request.templateId)) { body.put("TemplateId", request.templateId); } if (!com.aliyun.teautil.Common.isUnset(request.templateType)) { body.put("TemplateType", request.templateType); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.workspaceId)) { body.put("WorkspaceId", request.workspaceId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "CreateWorkspaceDoc"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/createWorkspaceDoc"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new CreateWorkspaceDocResponse()); } /** * <b>summary</b> : * <p>创建知识库文档</p> * * @param request CreateWorkspaceDocRequest * @return CreateWorkspaceDocResponse */ public CreateWorkspaceDocResponse createWorkspaceDoc(CreateWorkspaceDocRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); CreateWorkspaceDocHeaders headers = new CreateWorkspaceDocHeaders(); return this.createWorkspaceDocWithOptions(request, headers, runtime); } /** * @param tmpReq DeleteAlidingAssistantRequest * @param tmpHeader DeleteAlidingAssistantHeaders * @param runtime runtime options for this request RuntimeOptions * @return DeleteAlidingAssistantResponse */ public DeleteAlidingAssistantResponse deleteAlidingAssistantWithOptions(DeleteAlidingAssistantRequest tmpReq, DeleteAlidingAssistantHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); DeleteAlidingAssistantShrinkRequest request = new DeleteAlidingAssistantShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); DeleteAlidingAssistantShrinkHeaders headers = new DeleteAlidingAssistantShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.assistantId)) { body.put("AssistantId", request.assistantId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "DeleteAlidingAssistant"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/aiagent/deleteAlidingAssistant"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new DeleteAlidingAssistantResponse()); } /** * @param request DeleteAlidingAssistantRequest * @return DeleteAlidingAssistantResponse */ public DeleteAlidingAssistantResponse deleteAlidingAssistant(DeleteAlidingAssistantRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); DeleteAlidingAssistantHeaders headers = new DeleteAlidingAssistantHeaders(); return this.deleteAlidingAssistantWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>删除指定列</p> * * @param tmpReq DeleteColumnsRequest * @param tmpHeader DeleteColumnsHeaders * @param runtime runtime options for this request RuntimeOptions * @return DeleteColumnsResponse */ public DeleteColumnsResponse deleteColumnsWithOptions(DeleteColumnsRequest tmpReq, DeleteColumnsHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); DeleteColumnsShrinkRequest request = new DeleteColumnsShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); DeleteColumnsShrinkHeaders headers = new DeleteColumnsShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.column)) { body.put("Column", request.column); } if (!com.aliyun.teautil.Common.isUnset(request.columnCount)) { body.put("ColumnCount", request.columnCount); } if (!com.aliyun.teautil.Common.isUnset(request.sheetId)) { body.put("SheetId", request.sheetId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.workbookId)) { body.put("WorkbookId", request.workbookId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "DeleteColumns"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/deleteColumns"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new DeleteColumnsResponse()); } /** * <b>summary</b> : * <p>删除指定列</p> * * @param request DeleteColumnsRequest * @return DeleteColumnsResponse */ public DeleteColumnsResponse deleteColumns(DeleteColumnsRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); DeleteColumnsHeaders headers = new DeleteColumnsHeaders(); return this.deleteColumnsWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>删除文件或文件夹</p> * * @param tmpReq DeleteDentryRequest * @param tmpHeader DeleteDentryHeaders * @param runtime runtime options for this request RuntimeOptions * @return DeleteDentryResponse */ public DeleteDentryResponse deleteDentryWithOptions(DeleteDentryRequest tmpReq, DeleteDentryHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); DeleteDentryShrinkRequest request = new DeleteDentryShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); DeleteDentryShrinkHeaders headers = new DeleteDentryShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.dentryId)) { body.put("DentryId", request.dentryId); } if (!com.aliyun.teautil.Common.isUnset(request.spaceId)) { body.put("SpaceId", request.spaceId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.toRecycleBin)) { body.put("ToRecycleBin", request.toRecycleBin); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "DeleteDentry"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/deleteDentry"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new DeleteDentryResponse()); } /** * <b>summary</b> : * <p>删除文件或文件夹</p> * * @param request DeleteDentryRequest * @return DeleteDentryResponse */ public DeleteDentryResponse deleteDentry(DeleteDentryRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); DeleteDentryHeaders headers = new DeleteDentryHeaders(); return this.deleteDentryWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>删除钉盘空间</p> * * @param tmpReq DeleteDriveSpaceRequest * @param tmpHeader DeleteDriveSpaceHeaders * @param runtime runtime options for this request RuntimeOptions * @return DeleteDriveSpaceResponse */ public DeleteDriveSpaceResponse deleteDriveSpaceWithOptions(DeleteDriveSpaceRequest tmpReq, DeleteDriveSpaceHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); DeleteDriveSpaceShrinkRequest request = new DeleteDriveSpaceShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); DeleteDriveSpaceShrinkHeaders headers = new DeleteDriveSpaceShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.spaceId)) { body.put("SpaceId", request.spaceId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "DeleteDriveSpace"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/deleteDriveSpace"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new DeleteDriveSpaceResponse()); } /** * <b>summary</b> : * <p>删除钉盘空间</p> * * @param request DeleteDriveSpaceRequest * @return DeleteDriveSpaceResponse */ public DeleteDriveSpaceResponse deleteDriveSpace(DeleteDriveSpaceRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); DeleteDriveSpaceHeaders headers = new DeleteDriveSpaceHeaders(); return this.deleteDriveSpaceWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>删除日程</p> * * @param request DeleteEventRequest * @param tmpHeader DeleteEventHeaders * @param runtime runtime options for this request RuntimeOptions * @return DeleteEventResponse */ public DeleteEventResponse deleteEventWithOptions(DeleteEventRequest request, DeleteEventHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); DeleteEventShrinkHeaders headers = new DeleteEventShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.calendarId)) { body.put("CalendarId", request.calendarId); } if (!com.aliyun.teautil.Common.isUnset(request.eventId)) { body.put("EventId", request.eventId); } if (!com.aliyun.teautil.Common.isUnset(request.pushNotification)) { body.put("pushNotification", request.pushNotification); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "DeleteEvent"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/calendar/deleteEvent"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new DeleteEventResponse()); } /** * <b>summary</b> : * <p>删除日程</p> * * @param request DeleteEventRequest * @return DeleteEventResponse */ public DeleteEventResponse deleteEvent(DeleteEventRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); DeleteEventHeaders headers = new DeleteEventHeaders(); return this.deleteEventWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>删除表单数据</p> * * @param request DeleteFormDataRequest * @param tmpHeader DeleteFormDataHeaders * @param runtime runtime options for this request RuntimeOptions * @return DeleteFormDataResponse */ public DeleteFormDataResponse deleteFormDataWithOptions(DeleteFormDataRequest request, DeleteFormDataHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); DeleteFormDataShrinkHeaders headers = new DeleteFormDataShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.formInstanceId)) { body.put("FormInstanceId", request.formInstanceId); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "DeleteFormData"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/deleteFormData"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new DeleteFormDataResponse()); } /** * <b>summary</b> : * <p>删除表单数据</p> * * @param request DeleteFormDataRequest * @return DeleteFormDataResponse */ public DeleteFormDataResponse deleteFormData(DeleteFormDataRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); DeleteFormDataHeaders headers = new DeleteFormDataHeaders(); return this.deleteFormDataWithOptions(request, headers, runtime); } /** * @param request DeleteInstanceRequest * @param tmpHeader DeleteInstanceHeaders * @param runtime runtime options for this request RuntimeOptions * @return DeleteInstanceResponse */ public DeleteInstanceResponse deleteInstanceWithOptions(DeleteInstanceRequest request, DeleteInstanceHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); DeleteInstanceShrinkHeaders headers = new DeleteInstanceShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.processInstanceId)) { body.put("ProcessInstanceId", request.processInstanceId); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "DeleteInstance"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/deleteInstance"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new DeleteInstanceResponse()); } /** * @param request DeleteInstanceRequest * @return DeleteInstanceResponse */ public DeleteInstanceResponse deleteInstance(DeleteInstanceRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); DeleteInstanceHeaders headers = new DeleteInstanceHeaders(); return this.deleteInstanceWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>删除直播</p> * * @param tmpReq DeleteLiveRequest * @param tmpHeader DeleteLiveHeaders * @param runtime runtime options for this request RuntimeOptions * @return DeleteLiveResponse */ public DeleteLiveResponse deleteLiveWithOptions(DeleteLiveRequest tmpReq, DeleteLiveHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); DeleteLiveShrinkRequest request = new DeleteLiveShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); DeleteLiveShrinkHeaders headers = new DeleteLiveShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.liveId)) { body.put("LiveId", request.liveId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "DeleteLive"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/deleteLive"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new DeleteLiveResponse()); } /** * <b>summary</b> : * <p>删除直播</p> * * @param request DeleteLiveRequest * @return DeleteLiveResponse */ public DeleteLiveResponse deleteLive(DeleteLiveRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); DeleteLiveHeaders headers = new DeleteLiveHeaders(); return this.deleteLiveWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>删除会议室</p> * * @param tmpReq DeleteMeetingRoomRequest * @param tmpHeader DeleteMeetingRoomHeaders * @param runtime runtime options for this request RuntimeOptions * @return DeleteMeetingRoomResponse */ public DeleteMeetingRoomResponse deleteMeetingRoomWithOptions(DeleteMeetingRoomRequest tmpReq, DeleteMeetingRoomHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); DeleteMeetingRoomShrinkRequest request = new DeleteMeetingRoomShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); DeleteMeetingRoomShrinkHeaders headers = new DeleteMeetingRoomShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.roomId)) { body.put("RoomId", request.roomId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "DeleteMeetingRoom"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/deleteMeetingRoom"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new DeleteMeetingRoomResponse()); } /** * <b>summary</b> : * <p>删除会议室</p> * * @param request DeleteMeetingRoomRequest * @return DeleteMeetingRoomResponse */ public DeleteMeetingRoomResponse deleteMeetingRoom(DeleteMeetingRoomRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); DeleteMeetingRoomHeaders headers = new DeleteMeetingRoomHeaders(); return this.deleteMeetingRoomWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>删除会议室分组</p> * * @param tmpReq DeleteMeetingRoomGroupRequest * @param tmpHeader DeleteMeetingRoomGroupHeaders * @param runtime runtime options for this request RuntimeOptions * @return DeleteMeetingRoomGroupResponse */ public DeleteMeetingRoomGroupResponse deleteMeetingRoomGroupWithOptions(DeleteMeetingRoomGroupRequest tmpReq, DeleteMeetingRoomGroupHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); DeleteMeetingRoomGroupShrinkRequest request = new DeleteMeetingRoomGroupShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); DeleteMeetingRoomGroupShrinkHeaders headers = new DeleteMeetingRoomGroupShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.groupId)) { body.put("GroupId", request.groupId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "DeleteMeetingRoomGroup"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/deleteMeetingRoomGroup"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new DeleteMeetingRoomGroupResponse()); } /** * <b>summary</b> : * <p>删除会议室分组</p> * * @param request DeleteMeetingRoomGroupRequest * @return DeleteMeetingRoomGroupResponse */ public DeleteMeetingRoomGroupResponse deleteMeetingRoomGroup(DeleteMeetingRoomGroupRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); DeleteMeetingRoomGroupHeaders headers = new DeleteMeetingRoomGroupHeaders(); return this.deleteMeetingRoomGroupWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>删除字段</p> * * @param tmpReq DeleteMultiDimTableFieldRequest * @param tmpHeader DeleteMultiDimTableFieldHeaders * @param runtime runtime options for this request RuntimeOptions * @return DeleteMultiDimTableFieldResponse */ public DeleteMultiDimTableFieldResponse deleteMultiDimTableFieldWithOptions(DeleteMultiDimTableFieldRequest tmpReq, DeleteMultiDimTableFieldHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); DeleteMultiDimTableFieldShrinkRequest request = new DeleteMultiDimTableFieldShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); DeleteMultiDimTableFieldShrinkHeaders headers = new DeleteMultiDimTableFieldShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.baseId)) { body.put("BaseId", request.baseId); } if (!com.aliyun.teautil.Common.isUnset(request.fieldIdOrName)) { body.put("FieldIdOrName", request.fieldIdOrName); } if (!com.aliyun.teautil.Common.isUnset(request.sheetIdOrName)) { body.put("SheetIdOrName", request.sheetIdOrName); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "DeleteMultiDimTableField"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/table/deleteMultiDimTableField"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new DeleteMultiDimTableFieldResponse()); } /** * <b>summary</b> : * <p>删除字段</p> * * @param request DeleteMultiDimTableFieldRequest * @return DeleteMultiDimTableFieldResponse */ public DeleteMultiDimTableFieldResponse deleteMultiDimTableField(DeleteMultiDimTableFieldRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); DeleteMultiDimTableFieldHeaders headers = new DeleteMultiDimTableFieldHeaders(); return this.deleteMultiDimTableFieldWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>删除多行记录</p> * * @param tmpReq DeleteMultiDimTableRecordsRequest * @param tmpHeader DeleteMultiDimTableRecordsHeaders * @param runtime runtime options for this request RuntimeOptions * @return DeleteMultiDimTableRecordsResponse */ public DeleteMultiDimTableRecordsResponse deleteMultiDimTableRecordsWithOptions(DeleteMultiDimTableRecordsRequest tmpReq, DeleteMultiDimTableRecordsHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); DeleteMultiDimTableRecordsShrinkRequest request = new DeleteMultiDimTableRecordsShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); DeleteMultiDimTableRecordsShrinkHeaders headers = new DeleteMultiDimTableRecordsShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.recordIds)) { request.recordIdsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.recordIds, "RecordIds", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.baseId)) { body.put("BaseId", request.baseId); } if (!com.aliyun.teautil.Common.isUnset(request.recordIdsShrink)) { body.put("RecordIds", request.recordIdsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.sheetIdOrName)) { body.put("SheetIdOrName", request.sheetIdOrName); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "DeleteMultiDimTableRecords"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/table/deleteMultiDimTableRecords"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new DeleteMultiDimTableRecordsResponse()); } /** * <b>summary</b> : * <p>删除多行记录</p> * * @param request DeleteMultiDimTableRecordsRequest * @return DeleteMultiDimTableRecordsResponse */ public DeleteMultiDimTableRecordsResponse deleteMultiDimTableRecords(DeleteMultiDimTableRecordsRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); DeleteMultiDimTableRecordsHeaders headers = new DeleteMultiDimTableRecordsHeaders(); return this.deleteMultiDimTableRecordsWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>删除文件权限</p> * * @param tmpReq DeletePermissionRequest * @param tmpHeader DeletePermissionHeaders * @param runtime runtime options for this request RuntimeOptions * @return DeletePermissionResponse */ public DeletePermissionResponse deletePermissionWithOptions(DeletePermissionRequest tmpReq, DeletePermissionHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); DeletePermissionShrinkRequest request = new DeletePermissionShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); DeletePermissionShrinkHeaders headers = new DeletePermissionShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.members)) { request.membersShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.members, "Members", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.dentryUuid)) { body.put("DentryUuid", request.dentryUuid); } if (!com.aliyun.teautil.Common.isUnset(request.membersShrink)) { body.put("Members", request.membersShrink); } if (!com.aliyun.teautil.Common.isUnset(request.roleId)) { body.put("RoleId", request.roleId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "DeletePermission"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/deletePermission"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new DeletePermissionResponse()); } /** * <b>summary</b> : * <p>删除文件权限</p> * * @param request DeletePermissionRequest * @return DeletePermissionResponse */ public DeletePermissionResponse deletePermission(DeletePermissionRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); DeletePermissionHeaders headers = new DeletePermissionHeaders(); return this.deletePermissionWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>删除指定行</p> * * @param tmpReq DeleteRowsRequest * @param tmpHeader DeleteRowsHeaders * @param runtime runtime options for this request RuntimeOptions * @return DeleteRowsResponse */ public DeleteRowsResponse deleteRowsWithOptions(DeleteRowsRequest tmpReq, DeleteRowsHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); DeleteRowsShrinkRequest request = new DeleteRowsShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); DeleteRowsShrinkHeaders headers = new DeleteRowsShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.row)) { body.put("Row", request.row); } if (!com.aliyun.teautil.Common.isUnset(request.rowCount)) { body.put("RowCount", request.rowCount); } if (!com.aliyun.teautil.Common.isUnset(request.sheetId)) { body.put("SheetId", request.sheetId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.workbookId)) { body.put("WorkbookId", request.workbookId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "DeleteRows"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/deleteRows"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new DeleteRowsResponse()); } /** * <b>summary</b> : * <p>删除指定行</p> * * @param request DeleteRowsRequest * @return DeleteRowsResponse */ public DeleteRowsResponse deleteRows(DeleteRowsRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); DeleteRowsHeaders headers = new DeleteRowsHeaders(); return this.deleteRowsWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>删除群成员</p> * * @param request DeleteScenegroupMemberRequest * @param tmpHeader DeleteScenegroupMemberHeaders * @param runtime runtime options for this request RuntimeOptions * @return DeleteScenegroupMemberResponse */ public DeleteScenegroupMemberResponse deleteScenegroupMemberWithOptions(DeleteScenegroupMemberRequest request, DeleteScenegroupMemberHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); DeleteScenegroupMemberShrinkHeaders headers = new DeleteScenegroupMemberShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.openConversationId)) { body.put("OpenConversationId", request.openConversationId); } if (!com.aliyun.teautil.Common.isUnset(request.userIds)) { body.put("UserIds", request.userIds); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "DeleteScenegroupMember"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/im/deleteScenegroupMember"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new DeleteScenegroupMemberResponse()); } /** * <b>summary</b> : * <p>删除群成员</p> * * @param request DeleteScenegroupMemberRequest * @return DeleteScenegroupMemberResponse */ public DeleteScenegroupMemberResponse deleteScenegroupMember(DeleteScenegroupMemberRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); DeleteScenegroupMemberHeaders headers = new DeleteScenegroupMemberHeaders(); return this.deleteScenegroupMemberWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>删除一个工作表</p> * * @param tmpReq DeleteSheetRequest * @param tmpHeader DeleteSheetHeaders * @param runtime runtime options for this request RuntimeOptions * @return DeleteSheetResponse */ public DeleteSheetResponse deleteSheetWithOptions(DeleteSheetRequest tmpReq, DeleteSheetHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); DeleteSheetShrinkRequest request = new DeleteSheetShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); DeleteSheetShrinkHeaders headers = new DeleteSheetShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.sheetId)) { body.put("SheetId", request.sheetId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.workbookId)) { body.put("WorkbookId", request.workbookId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "DeleteSheet"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/deleteSheet"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new DeleteSheetResponse()); } /** * <b>summary</b> : * <p>删除一个工作表</p> * * @param request DeleteSheetRequest * @return DeleteSheetResponse */ public DeleteSheetResponse deleteSheet(DeleteSheetRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); DeleteSheetHeaders headers = new DeleteSheetHeaders(); return this.deleteSheetWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>删除订阅日历</p> * * @param request DeleteSubscribedCalendarRequest * @param tmpHeader DeleteSubscribedCalendarHeaders * @param runtime runtime options for this request RuntimeOptions * @return DeleteSubscribedCalendarResponse */ public DeleteSubscribedCalendarResponse deleteSubscribedCalendarWithOptions(DeleteSubscribedCalendarRequest request, DeleteSubscribedCalendarHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); DeleteSubscribedCalendarShrinkHeaders headers = new DeleteSubscribedCalendarShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.calendarId)) { body.put("CalendarId", request.calendarId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "DeleteSubscribedCalendar"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/calendar/deleteSubscribedCalendar"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new DeleteSubscribedCalendarResponse()); } /** * <b>summary</b> : * <p>删除订阅日历</p> * * @param request DeleteSubscribedCalendarRequest * @return DeleteSubscribedCalendarResponse */ public DeleteSubscribedCalendarResponse deleteSubscribedCalendar(DeleteSubscribedCalendarRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); DeleteSubscribedCalendarHeaders headers = new DeleteSubscribedCalendarHeaders(); return this.deleteSubscribedCalendarWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>删除代办</p> * * @param tmpReq DeleteTodoTaskRequest * @param tmpHeader DeleteTodoTaskHeaders * @param runtime runtime options for this request RuntimeOptions * @return DeleteTodoTaskResponse */ public DeleteTodoTaskResponse deleteTodoTaskWithOptions(DeleteTodoTaskRequest tmpReq, DeleteTodoTaskHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); DeleteTodoTaskShrinkRequest request = new DeleteTodoTaskShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); DeleteTodoTaskShrinkHeaders headers = new DeleteTodoTaskShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.operatorId)) { body.put("operatorId", request.operatorId); } if (!com.aliyun.teautil.Common.isUnset(request.taskId)) { body.put("taskId", request.taskId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "DeleteTodoTask"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/task/deleteTodoTask"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new DeleteTodoTaskResponse()); } /** * <b>summary</b> : * <p>删除代办</p> * * @param request DeleteTodoTaskRequest * @return DeleteTodoTaskResponse */ public DeleteTodoTaskResponse deleteTodoTask(DeleteTodoTaskRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); DeleteTodoTaskHeaders headers = new DeleteTodoTaskHeaders(); return this.deleteTodoTaskWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>删除知识库文档成员</p> * * @param tmpReq DeleteWorkspaceDocMembersRequest * @param tmpHeader DeleteWorkspaceDocMembersHeaders * @param runtime runtime options for this request RuntimeOptions * @return DeleteWorkspaceDocMembersResponse */ public DeleteWorkspaceDocMembersResponse deleteWorkspaceDocMembersWithOptions(DeleteWorkspaceDocMembersRequest tmpReq, DeleteWorkspaceDocMembersHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); DeleteWorkspaceDocMembersShrinkRequest request = new DeleteWorkspaceDocMembersShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); DeleteWorkspaceDocMembersShrinkHeaders headers = new DeleteWorkspaceDocMembersShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.members)) { request.membersShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.members, "Members", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.membersShrink)) { body.put("Members", request.membersShrink); } if (!com.aliyun.teautil.Common.isUnset(request.nodeId)) { body.put("NodeId", request.nodeId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.workspaceId)) { body.put("WorkspaceId", request.workspaceId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "DeleteWorkspaceDocMembers"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/deleteWorkspaceDocMembers"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new DeleteWorkspaceDocMembersResponse()); } /** * <b>summary</b> : * <p>删除知识库文档成员</p> * * @param request DeleteWorkspaceDocMembersRequest * @return DeleteWorkspaceDocMembersResponse */ public DeleteWorkspaceDocMembersResponse deleteWorkspaceDocMembers(DeleteWorkspaceDocMembersRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); DeleteWorkspaceDocMembersHeaders headers = new DeleteWorkspaceDocMembersHeaders(); return this.deleteWorkspaceDocMembersWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>删除知识库成员</p> * * @param tmpReq DeleteWorkspaceMembersRequest * @param tmpHeader DeleteWorkspaceMembersHeaders * @param runtime runtime options for this request RuntimeOptions * @return DeleteWorkspaceMembersResponse */ public DeleteWorkspaceMembersResponse deleteWorkspaceMembersWithOptions(DeleteWorkspaceMembersRequest tmpReq, DeleteWorkspaceMembersHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); DeleteWorkspaceMembersShrinkRequest request = new DeleteWorkspaceMembersShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); DeleteWorkspaceMembersShrinkHeaders headers = new DeleteWorkspaceMembersShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.members)) { request.membersShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.members, "Members", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.membersShrink)) { body.put("Members", request.membersShrink); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.workspaceId)) { body.put("WorkspaceId", request.workspaceId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "DeleteWorkspaceMembers"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/deleteWorkspaceMembers"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new DeleteWorkspaceMembersResponse()); } /** * <b>summary</b> : * <p>删除知识库成员</p> * * @param request DeleteWorkspaceMembersRequest * @return DeleteWorkspaceMembersResponse */ public DeleteWorkspaceMembersResponse deleteWorkspaceMembers(DeleteWorkspaceMembersRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); DeleteWorkspaceMembersHeaders headers = new DeleteWorkspaceMembersHeaders(); return this.deleteWorkspaceMembersWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询块元素</p> * * @param tmpReq DocBlocksQueryRequest * @param tmpHeader DocBlocksQueryHeaders * @param runtime runtime options for this request RuntimeOptions * @return DocBlocksQueryResponse */ public DocBlocksQueryResponse docBlocksQueryWithOptions(DocBlocksQueryRequest tmpReq, DocBlocksQueryHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); DocBlocksQueryShrinkRequest request = new DocBlocksQueryShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); DocBlocksQueryShrinkHeaders headers = new DocBlocksQueryShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.blockType)) { body.put("BlockType", request.blockType); } if (!com.aliyun.teautil.Common.isUnset(request.docKey)) { body.put("DocKey", request.docKey); } if (!com.aliyun.teautil.Common.isUnset(request.endIndex)) { body.put("EndIndex", request.endIndex); } if (!com.aliyun.teautil.Common.isUnset(request.startIndex)) { body.put("StartIndex", request.startIndex); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "DocBlocksQuery"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/docBlocksQuery"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new DocBlocksQueryResponse()); } /** * <b>summary</b> : * <p>查询块元素</p> * * @param request DocBlocksQueryRequest * @return DocBlocksQueryResponse */ public DocBlocksQueryResponse docBlocksQuery(DocBlocksQueryRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); DocBlocksQueryHeaders headers = new DocBlocksQueryHeaders(); return this.docBlocksQueryWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>覆写文档</p> * * @param tmpReq DocUpdateContentRequest * @param tmpHeader DocUpdateContentHeaders * @param runtime runtime options for this request RuntimeOptions * @return DocUpdateContentResponse */ public DocUpdateContentResponse docUpdateContentWithOptions(DocUpdateContentRequest tmpReq, DocUpdateContentHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); DocUpdateContentShrinkRequest request = new DocUpdateContentShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); DocUpdateContentShrinkHeaders headers = new DocUpdateContentShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> 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.dataType)) { body.put("DataType", request.dataType); } if (!com.aliyun.teautil.Common.isUnset(request.docKey)) { body.put("DocKey", request.docKey); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "DocUpdateContent"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/docUpdateContent"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new DocUpdateContentResponse()); } /** * <b>summary</b> : * <p>覆写文档</p> * * @param request DocUpdateContentRequest * @return DocUpdateContentResponse */ public DocUpdateContentResponse docUpdateContent(DocUpdateContentRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); DocUpdateContentHeaders headers = new DocUpdateContentHeaders(); return this.docUpdateContentWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>批量执行宜搭审批任务</p> * * @param request ExecuteBatchTaskRequest * @param tmpHeader ExecuteBatchTaskHeaders * @param runtime runtime options for this request RuntimeOptions * @return ExecuteBatchTaskResponse */ public ExecuteBatchTaskResponse executeBatchTaskWithOptions(ExecuteBatchTaskRequest request, ExecuteBatchTaskHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); ExecuteBatchTaskShrinkHeaders headers = new ExecuteBatchTaskShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.outResult)) { body.put("OutResult", request.outResult); } if (!com.aliyun.teautil.Common.isUnset(request.remark)) { body.put("Remark", request.remark); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } if (!com.aliyun.teautil.Common.isUnset(request.taskInformationList)) { body.put("TaskInformationList", request.taskInformationList); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "ExecuteBatchTask"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/executeBatchTask"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new ExecuteBatchTaskResponse()); } /** * <b>summary</b> : * <p>批量执行宜搭审批任务</p> * * @param request ExecuteBatchTaskRequest * @return ExecuteBatchTaskResponse */ public ExecuteBatchTaskResponse executeBatchTask(ExecuteBatchTaskRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); ExecuteBatchTaskHeaders headers = new ExecuteBatchTaskHeaders(); return this.executeBatchTaskWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>执行宜搭的审批任务</p> * * @param request ExecutePlatformTaskRequest * @param tmpHeader ExecutePlatformTaskHeaders * @param runtime runtime options for this request RuntimeOptions * @return ExecutePlatformTaskResponse */ public ExecutePlatformTaskResponse executePlatformTaskWithOptions(ExecutePlatformTaskRequest request, ExecutePlatformTaskHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); ExecutePlatformTaskShrinkHeaders headers = new ExecutePlatformTaskShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.formDataJson)) { body.put("FormDataJson", request.formDataJson); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.noExecuteExpressions)) { body.put("NoExecuteExpressions", request.noExecuteExpressions); } if (!com.aliyun.teautil.Common.isUnset(request.outResult)) { body.put("OutResult", request.outResult); } if (!com.aliyun.teautil.Common.isUnset(request.processInstanceId)) { body.put("ProcessInstanceId", request.processInstanceId); } if (!com.aliyun.teautil.Common.isUnset(request.remark)) { body.put("Remark", request.remark); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "ExecutePlatformTask"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/executePlatformTask"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new ExecutePlatformTaskResponse()); } /** * <b>summary</b> : * <p>执行宜搭的审批任务</p> * * @param request ExecutePlatformTaskRequest * @return ExecutePlatformTaskResponse */ public ExecutePlatformTaskResponse executePlatformTask(ExecutePlatformTaskRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); ExecutePlatformTaskHeaders headers = new ExecutePlatformTaskHeaders(); return this.executePlatformTaskWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>同意或拒绝宜搭审批任务(执行审批任务)</p> * * @param request ExecuteTaskRequest * @param tmpHeader ExecuteTaskHeaders * @param runtime runtime options for this request RuntimeOptions * @return ExecuteTaskResponse */ public ExecuteTaskResponse executeTaskWithOptions(ExecuteTaskRequest request, ExecuteTaskHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); ExecuteTaskShrinkHeaders headers = new ExecuteTaskShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.digitalSignUrl)) { body.put("DigitalSignUrl", request.digitalSignUrl); } if (!com.aliyun.teautil.Common.isUnset(request.formDataJson)) { body.put("FormDataJson", request.formDataJson); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.noExecuteExpressions)) { body.put("NoExecuteExpressions", request.noExecuteExpressions); } if (!com.aliyun.teautil.Common.isUnset(request.outResult)) { body.put("OutResult", request.outResult); } if (!com.aliyun.teautil.Common.isUnset(request.processInstanceId)) { body.put("ProcessInstanceId", request.processInstanceId); } if (!com.aliyun.teautil.Common.isUnset(request.remark)) { body.put("Remark", request.remark); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } if (!com.aliyun.teautil.Common.isUnset(request.taskId)) { body.put("TaskId", request.taskId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "ExecuteTask"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/executeTask"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new ExecuteTaskResponse()); } /** * <b>summary</b> : * <p>同意或拒绝宜搭审批任务(执行审批任务)</p> * * @param request ExecuteTaskRequest * @return ExecuteTaskResponse */ public ExecuteTaskResponse executeTask(ExecuteTaskRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); ExecuteTaskHeaders headers = new ExecuteTaskHeaders(); return this.executeTaskWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>群扩容</p> * * @param tmpReq ExpandGroupCapacityRequest * @param tmpHeader ExpandGroupCapacityHeaders * @param runtime runtime options for this request RuntimeOptions * @return ExpandGroupCapacityResponse */ public ExpandGroupCapacityResponse expandGroupCapacityWithOptions(ExpandGroupCapacityRequest tmpReq, ExpandGroupCapacityHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); ExpandGroupCapacityShrinkRequest request = new ExpandGroupCapacityShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); ExpandGroupCapacityShrinkHeaders headers = new ExpandGroupCapacityShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.openConversationId)) { body.put("OpenConversationId", request.openConversationId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "ExpandGroupCapacity"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/aliding/v1/im/expandGroupCapacity"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new ExpandGroupCapacityResponse()); } /** * <b>summary</b> : * <p>群扩容</p> * * @param request ExpandGroupCapacityRequest * @return ExpandGroupCapacityResponse */ public ExpandGroupCapacityResponse expandGroupCapacity(ExpandGroupCapacityRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); ExpandGroupCapacityHeaders headers = new ExpandGroupCapacityHeaders(); return this.expandGroupCapacityWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>完结工单</p> * * @param tmpReq FinishTicketRequest * @param tmpHeader FinishTicketHeaders * @param runtime runtime options for this request RuntimeOptions * @return FinishTicketResponse */ public FinishTicketResponse finishTicketWithOptions(FinishTicketRequest tmpReq, FinishTicketHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); FinishTicketShrinkRequest request = new FinishTicketShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); FinishTicketShrinkHeaders headers = new FinishTicketShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.notify)) { request.notifyShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.notify, "Notify", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.ticketMemo)) { request.ticketMemoShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.ticketMemo, "TicketMemo", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.notifyShrink)) { body.put("Notify", request.notifyShrink); } if (!com.aliyun.teautil.Common.isUnset(request.openTeamId)) { body.put("OpenTeamId", request.openTeamId); } if (!com.aliyun.teautil.Common.isUnset(request.openTicketId)) { body.put("OpenTicketId", request.openTicketId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.ticketMemoShrink)) { body.put("TicketMemo", request.ticketMemoShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "FinishTicket"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ticket/finishTicket"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new FinishTicketResponse()); } /** * <b>summary</b> : * <p>完结工单</p> * * @param request FinishTicketRequest * @return FinishTicketResponse */ public FinishTicketResponse finishTicket(FinishTicketRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); FinishTicketHeaders headers = new FinishTicketHeaders(); return this.finishTicketWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取流程设计的节点信息</p> * * @param request GetActivityListRequest * @param tmpHeader GetActivityListHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetActivityListResponse */ public GetActivityListResponse getActivityListWithOptions(GetActivityListRequest request, GetActivityListHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); GetActivityListShrinkHeaders headers = new GetActivityListShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.processCode)) { body.put("ProcessCode", request.processCode); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetActivityList"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/getActivityList"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetActivityListResponse()); } /** * <b>summary</b> : * <p>获取流程设计的节点信息</p> * * @param request GetActivityListRequest * @return GetActivityListResponse */ public GetActivityListResponse getActivityList(GetActivityListRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetActivityListHeaders headers = new GetActivityListHeaders(); return this.getActivityListWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取阿里钉ai助理信息</p> * * @param tmpReq GetAlidingAssistantInfoRequest * @param tmpHeader GetAlidingAssistantInfoHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetAlidingAssistantInfoResponse */ public GetAlidingAssistantInfoResponse getAlidingAssistantInfoWithOptions(GetAlidingAssistantInfoRequest tmpReq, GetAlidingAssistantInfoHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetAlidingAssistantInfoShrinkRequest request = new GetAlidingAssistantInfoShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetAlidingAssistantInfoShrinkHeaders headers = new GetAlidingAssistantInfoShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.assistantId)) { body.put("AssistantId", request.assistantId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetAlidingAssistantInfo"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/aiagent/getAlidingAssistantInfo"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetAlidingAssistantInfoResponse()); } /** * <b>summary</b> : * <p>获取阿里钉ai助理信息</p> * * @param request GetAlidingAssistantInfoRequest * @return GetAlidingAssistantInfoResponse */ public GetAlidingAssistantInfoResponse getAlidingAssistantInfo(GetAlidingAssistantInfoRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetAlidingAssistantInfoHeaders headers = new GetAlidingAssistantInfoHeaders(); return this.getAlidingAssistantInfoWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取所有工作表</p> * * @param tmpReq GetAllSheetsRequest * @param tmpHeader GetAllSheetsHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetAllSheetsResponse */ public GetAllSheetsResponse getAllSheetsWithOptions(GetAllSheetsRequest tmpReq, GetAllSheetsHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetAllSheetsShrinkRequest request = new GetAllSheetsShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetAllSheetsShrinkHeaders headers = new GetAllSheetsShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.workbookId)) { body.put("WorkbookId", request.workbookId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetAllSheets"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/getAllSheets"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetAllSheetsResponse()); } /** * <b>summary</b> : * <p>获取所有工作表</p> * * @param request GetAllSheetsRequest * @return GetAllSheetsResponse */ public GetAllSheetsResponse getAllSheets(GetAllSheetsRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetAllSheetsHeaders headers = new GetAllSheetsHeaders(); return this.getAllSheetsWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取助理能力</p> * * @param request GetAssistantCapabilityRequest * @param headers GetAssistantCapabilityHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetAssistantCapabilityResponse */ public GetAssistantCapabilityResponse getAssistantCapabilityWithOptions(GetAssistantCapabilityRequest request, GetAssistantCapabilityHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.assistantId)) { body.put("assistantId", request.assistantId); } if (!com.aliyun.teautil.Common.isUnset(request.messages)) { body.put("messages", request.messages); } if (!com.aliyun.teautil.Common.isUnset(request.originalAssistantId)) { body.put("originalAssistantId", request.originalAssistantId); } if (!com.aliyun.teautil.Common.isUnset(request.protocol)) { body.put("protocol", request.protocol); } if (!com.aliyun.teautil.Common.isUnset(request.sourceIdOfOriginalAssistantId)) { body.put("sourceIdOfOriginalAssistantId", request.sourceIdOfOriginalAssistantId); } if (!com.aliyun.teautil.Common.isUnset(request.sourceTypeOfOriginalAssistantId)) { body.put("sourceTypeOfOriginalAssistantId", request.sourceTypeOfOriginalAssistantId); } if (!com.aliyun.teautil.Common.isUnset(request.threadId)) { body.put("threadId", request.threadId); } if (!com.aliyun.teautil.Common.isUnset(request.timeout)) { body.put("timeout", request.timeout); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountId)) { realHeaders.put("accountId", com.aliyun.teautil.Common.toJSONString(headers.accountId)); } 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", "GetAssistantCapability"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/ai/v1/assistant/getAssistantCapability"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "json"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetAssistantCapabilityResponse()); } /** * <b>summary</b> : * <p>获取助理能力</p> * * @param request GetAssistantCapabilityRequest * @return GetAssistantCapabilityResponse */ public GetAssistantCapabilityResponse getAssistantCapability(GetAssistantCapabilityRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetAssistantCapabilityHeaders headers = new GetAssistantCapabilityHeaders(); return this.getAssistantCapabilityWithOptions(request, headers, runtime); } /** * @param tmpReq GetCardTemplateRequest * @param tmpHeader GetCardTemplateHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetCardTemplateResponse */ public GetCardTemplateResponse getCardTemplateWithOptions(GetCardTemplateRequest tmpReq, GetCardTemplateHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetCardTemplateShrinkRequest request = new GetCardTemplateShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetCardTemplateShrinkHeaders headers = new GetCardTemplateShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.templateId)) { body.put("TemplateId", request.templateId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetCardTemplate"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/card/getCardTemplate"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetCardTemplateResponse()); } /** * @param request GetCardTemplateRequest * @return GetCardTemplateResponse */ public GetCardTemplateResponse getCardTemplate(GetCardTemplateRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetCardTemplateHeaders headers = new GetCardTemplateHeaders(); return this.getCardTemplateWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取群存储空间信息</p> * * @param tmpReq GetConversaionSpaceRequest * @param tmpHeader GetConversaionSpaceHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetConversaionSpaceResponse */ public GetConversaionSpaceResponse getConversaionSpaceWithOptions(GetConversaionSpaceRequest tmpReq, GetConversaionSpaceHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetConversaionSpaceShrinkRequest request = new GetConversaionSpaceShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetConversaionSpaceShrinkHeaders headers = new GetConversaionSpaceShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.openConversationId)) { body.put("OpenConversationId", request.openConversationId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetConversaionSpace"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/getConversaionSpace"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetConversaionSpaceResponse()); } /** * <b>summary</b> : * <p>获取群存储空间信息</p> * * @param request GetConversaionSpaceRequest * @return GetConversaionSpaceResponse */ public GetConversaionSpaceResponse getConversaionSpace(GetConversaionSpaceRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetConversaionSpaceHeaders headers = new GetConversaionSpaceHeaders(); return this.getConversaionSpaceWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取组织内已完成的审批任务</p> * * @param request GetCorpAccomplishmentTasksRequest * @param tmpHeader GetCorpAccomplishmentTasksHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetCorpAccomplishmentTasksResponse */ public GetCorpAccomplishmentTasksResponse getCorpAccomplishmentTasksWithOptions(GetCorpAccomplishmentTasksRequest request, GetCorpAccomplishmentTasksHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); GetCorpAccomplishmentTasksShrinkHeaders headers = new GetCorpAccomplishmentTasksShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appTypes)) { body.put("AppTypes", request.appTypes); } if (!com.aliyun.teautil.Common.isUnset(request.corpId)) { body.put("CorpId", request.corpId); } if (!com.aliyun.teautil.Common.isUnset(request.createFromTimeGMT)) { body.put("CreateFromTimeGMT", request.createFromTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.createToTimeGMT)) { body.put("CreateToTimeGMT", request.createToTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.keyword)) { body.put("Keyword", request.keyword); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.pageNumber)) { body.put("PageNumber", request.pageNumber); } if (!com.aliyun.teautil.Common.isUnset(request.pageSize)) { body.put("PageSize", request.pageSize); } if (!com.aliyun.teautil.Common.isUnset(request.processCodes)) { body.put("ProcessCodes", request.processCodes); } if (!com.aliyun.teautil.Common.isUnset(request.token)) { body.put("Token", request.token); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetCorpAccomplishmentTasks"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/getCorpAccomplishmentTasks"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetCorpAccomplishmentTasksResponse()); } /** * <b>summary</b> : * <p>获取组织内已完成的审批任务</p> * * @param request GetCorpAccomplishmentTasksRequest * @return GetCorpAccomplishmentTasksResponse */ public GetCorpAccomplishmentTasksResponse getCorpAccomplishmentTasks(GetCorpAccomplishmentTasksRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetCorpAccomplishmentTasksHeaders headers = new GetCorpAccomplishmentTasksHeaders(); return this.getCorpAccomplishmentTasksWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取任务列表(组织维度)</p> * * @param request GetCorpTasksRequest * @param tmpHeader GetCorpTasksHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetCorpTasksResponse */ public GetCorpTasksResponse getCorpTasksWithOptions(GetCorpTasksRequest request, GetCorpTasksHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); GetCorpTasksShrinkHeaders headers = new GetCorpTasksShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appTypes)) { body.put("AppTypes", request.appTypes); } if (!com.aliyun.teautil.Common.isUnset(request.corpId)) { body.put("CorpId", request.corpId); } if (!com.aliyun.teautil.Common.isUnset(request.createFromTimeGMT)) { body.put("CreateFromTimeGMT", request.createFromTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.createToTimeGMT)) { body.put("CreateToTimeGMT", request.createToTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.keyword)) { body.put("Keyword", request.keyword); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.pageNumber)) { body.put("PageNumber", request.pageNumber); } if (!com.aliyun.teautil.Common.isUnset(request.pageSize)) { body.put("PageSize", request.pageSize); } if (!com.aliyun.teautil.Common.isUnset(request.processCodes)) { body.put("ProcessCodes", request.processCodes); } if (!com.aliyun.teautil.Common.isUnset(request.token)) { body.put("Token", request.token); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetCorpTasks"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/getCorpTasks"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetCorpTasksResponse()); } /** * <b>summary</b> : * <p>获取任务列表(组织维度)</p> * * @param request GetCorpTasksRequest * @return GetCorpTasksResponse */ public GetCorpTasksResponse getCorpTasks(GetCorpTasksRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetCorpTasksHeaders headers = new GetCorpTasksHeaders(); return this.getCorpTasksWithOptions(request, headers, runtime); } /** * @param tmpReq GetDeptNoRequest * @param tmpHeader GetDeptNoHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetDeptNoResponse */ public GetDeptNoResponse getDeptNoWithOptions(GetDeptNoRequest tmpReq, GetDeptNoHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetDeptNoShrinkRequest request = new GetDeptNoShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetDeptNoShrinkHeaders headers = new GetDeptNoShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.deptId)) { body.put("deptId", request.deptId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetDeptNo"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/aliding/v1/dept/getDeptNo"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetDeptNoResponse()); } /** * @param request GetDeptNoRequest * @return GetDeptNoResponse */ public GetDeptNoResponse getDeptNo(GetDeptNoRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetDeptNoHeaders headers = new GetDeptNoHeaders(); return this.getDeptNoWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>委托权限获取文档内容</p> * * @param tmpReq GetDocContentRequest * @param tmpHeader GetDocContentHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetDocContentResponse */ public GetDocContentResponse getDocContentWithOptions(GetDocContentRequest tmpReq, GetDocContentHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetDocContentShrinkRequest request = new GetDocContentShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetDocContentShrinkHeaders headers = new GetDocContentShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.dentryUuid)) { body.put("DentryUuid", request.dentryUuid); } if (!com.aliyun.teautil.Common.isUnset(request.targetFormat)) { body.put("TargetFormat", request.targetFormat); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.userToken)) { body.put("userToken", request.userToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetDocContent"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v2/documents/getDocContent"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetDocContentResponse()); } /** * <b>summary</b> : * <p>委托权限获取文档内容</p> * * @param request GetDocContentRequest * @return GetDocContentResponse */ public GetDocContentResponse getDocContent(GetDocContentRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetDocContentHeaders headers = new GetDocContentHeaders(); return this.getDocContentWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>委托权限获取文档内容taskId</p> * * @param tmpReq GetDocContentTakIdRequest * @param tmpHeader GetDocContentTakIdHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetDocContentTakIdResponse */ public GetDocContentTakIdResponse getDocContentTakIdWithOptions(GetDocContentTakIdRequest tmpReq, GetDocContentTakIdHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetDocContentTakIdShrinkRequest request = new GetDocContentTakIdShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetDocContentTakIdShrinkHeaders headers = new GetDocContentTakIdShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.dentryUuid)) { body.put("DentryUuid", request.dentryUuid); } if (!com.aliyun.teautil.Common.isUnset(request.generateCp)) { body.put("GenerateCp", request.generateCp); } if (!com.aliyun.teautil.Common.isUnset(request.targetFormat)) { body.put("TargetFormat", request.targetFormat); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetDocContentTakId"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v2/documents/getDocContentTakId"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetDocContentTakIdResponse()); } /** * <b>summary</b> : * <p>委托权限获取文档内容taskId</p> * * @param request GetDocContentTakIdRequest * @return GetDocContentTakIdResponse */ public GetDocContentTakIdResponse getDocContentTakId(GetDocContentTakIdRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetDocContentTakIdHeaders headers = new GetDocContentTakIdHeaders(); return this.getDocContentTakIdWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询单个日程详情</p> * * @param request GetEventRequest * @param tmpHeader GetEventHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetEventResponse */ public GetEventResponse getEventWithOptions(GetEventRequest request, GetEventHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); GetEventShrinkHeaders headers = new GetEventShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> query = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.maxAttendees)) { query.put("MaxAttendees", request.maxAttendees); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.calendarId)) { body.put("CalendarId", request.calendarId); } if (!com.aliyun.teautil.Common.isUnset(request.eventId)) { body.put("EventId", request.eventId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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.openapiutil.Client.parseToMap(body)) )); com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap( new TeaPair("action", "GetEvent"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/calendar/getEvent"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetEventResponse()); } /** * <b>summary</b> : * <p>查询单个日程详情</p> * * @param request GetEventRequest * @return GetEventResponse */ public GetEventResponse getEvent(GetEventRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetEventHeaders headers = new GetEventHeaders(); return this.getEventWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取表单内的组件信息</p> * * @param request GetFieldDefByUuidRequest * @param tmpHeader GetFieldDefByUuidHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetFieldDefByUuidResponse */ public GetFieldDefByUuidResponse getFieldDefByUuidWithOptions(GetFieldDefByUuidRequest request, GetFieldDefByUuidHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); GetFieldDefByUuidShrinkHeaders headers = new GetFieldDefByUuidShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.formUuid)) { body.put("FormUuid", request.formUuid); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetFieldDefByUuid"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/getFieldDefByUuid"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetFieldDefByUuidResponse()); } /** * <b>summary</b> : * <p>获取表单内的组件信息</p> * * @param request GetFieldDefByUuidRequest * @return GetFieldDefByUuidResponse */ public GetFieldDefByUuidResponse getFieldDefByUuid(GetFieldDefByUuidRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetFieldDefByUuidHeaders headers = new GetFieldDefByUuidHeaders(); return this.getFieldDefByUuidWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取文件下载信息</p> * * @param tmpReq GetFileDownloadInfoRequest * @param tmpHeader GetFileDownloadInfoHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetFileDownloadInfoResponse */ public GetFileDownloadInfoResponse getFileDownloadInfoWithOptions(GetFileDownloadInfoRequest tmpReq, GetFileDownloadInfoHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetFileDownloadInfoShrinkRequest request = new GetFileDownloadInfoShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetFileDownloadInfoShrinkHeaders headers = new GetFileDownloadInfoShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.option)) { request.optionShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.option, "Option", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.dentryId)) { body.put("DentryId", request.dentryId); } if (!com.aliyun.teautil.Common.isUnset(request.optionShrink)) { body.put("Option", request.optionShrink); } if (!com.aliyun.teautil.Common.isUnset(request.spaceId)) { body.put("SpaceId", request.spaceId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetFileDownloadInfo"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/getFileDownloadInfo"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetFileDownloadInfoResponse()); } /** * <b>summary</b> : * <p>获取文件下载信息</p> * * @param request GetFileDownloadInfoRequest * @return GetFileDownloadInfoResponse */ public GetFileDownloadInfoResponse getFileDownloadInfo(GetFileDownloadInfoRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetFileDownloadInfoHeaders headers = new GetFileDownloadInfoHeaders(); return this.getFileDownloadInfoWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取文件上传信息</p> * * @param tmpReq GetFileUploadInfoRequest * @param tmpHeader GetFileUploadInfoHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetFileUploadInfoResponse */ public GetFileUploadInfoResponse getFileUploadInfoWithOptions(GetFileUploadInfoRequest tmpReq, GetFileUploadInfoHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetFileUploadInfoShrinkRequest request = new GetFileUploadInfoShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetFileUploadInfoShrinkHeaders headers = new GetFileUploadInfoShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.option)) { request.optionShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.option, "Option", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.optionShrink)) { body.put("Option", request.optionShrink); } if (!com.aliyun.teautil.Common.isUnset(request.parentDentryUuid)) { body.put("ParentDentryUuid", request.parentDentryUuid); } if (!com.aliyun.teautil.Common.isUnset(request.protocol)) { body.put("Protocol", request.protocol); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetFileUploadInfo"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/getFileUploadInfo"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetFileUploadInfoResponse()); } /** * <b>summary</b> : * <p>获取文件上传信息</p> * * @param request GetFileUploadInfoRequest * @return GetFileUploadInfoResponse */ public GetFileUploadInfoResponse getFileUploadInfo(GetFileUploadInfoRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetFileUploadInfoHeaders headers = new GetFileUploadInfoHeaders(); return this.getFileUploadInfoWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取表单组件定义列表</p> * * @param request GetFormComponentDefinitionListRequest * @param tmpHeader GetFormComponentDefinitionListHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetFormComponentDefinitionListResponse */ public GetFormComponentDefinitionListResponse getFormComponentDefinitionListWithOptions(GetFormComponentDefinitionListRequest request, GetFormComponentDefinitionListHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); GetFormComponentDefinitionListShrinkHeaders headers = new GetFormComponentDefinitionListShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.formUuid)) { body.put("FormUuid", request.formUuid); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetFormComponentDefinitionList"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/getFormComponentDefinitionList"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetFormComponentDefinitionListResponse()); } /** * <b>summary</b> : * <p>获取表单组件定义列表</p> * * @param request GetFormComponentDefinitionListRequest * @return GetFormComponentDefinitionListResponse */ public GetFormComponentDefinitionListResponse getFormComponentDefinitionList(GetFormComponentDefinitionListRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetFormComponentDefinitionListHeaders headers = new GetFormComponentDefinitionListHeaders(); return this.getFormComponentDefinitionListWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询表单数据</p> * * @param request GetFormDataByIDRequest * @param tmpHeader GetFormDataByIDHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetFormDataByIDResponse */ public GetFormDataByIDResponse getFormDataByIDWithOptions(GetFormDataByIDRequest request, GetFormDataByIDHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); GetFormDataByIDShrinkHeaders headers = new GetFormDataByIDShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.id)) { body.put("Id", request.id); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetFormDataByID"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/getFormDataByID"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetFormDataByIDResponse()); } /** * <b>summary</b> : * <p>查询表单数据</p> * * @param request GetFormDataByIDRequest * @return GetFormDataByIDResponse */ public GetFormDataByIDResponse getFormDataByID(GetFormDataByIDRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetFormDataByIDHeaders headers = new GetFormDataByIDHeaders(); return this.getFormDataByIDWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取指定应用下的表单列表</p> * * @param request GetFormListInAppRequest * @param tmpHeader GetFormListInAppHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetFormListInAppResponse */ public GetFormListInAppResponse getFormListInAppWithOptions(GetFormListInAppRequest request, GetFormListInAppHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); GetFormListInAppShrinkHeaders headers = new GetFormListInAppShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.formTypes)) { body.put("FormTypes", request.formTypes); } if (!com.aliyun.teautil.Common.isUnset(request.pageNumber)) { body.put("PageNumber", request.pageNumber); } if (!com.aliyun.teautil.Common.isUnset(request.pageSize)) { body.put("PageSize", request.pageSize); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetFormListInApp"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/getFormListInApp"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetFormListInAppResponse()); } /** * <b>summary</b> : * <p>获取指定应用下的表单列表</p> * * @param request GetFormListInAppRequest * @return GetFormListInAppResponse */ public GetFormListInAppResponse getFormListInApp(GetFormListInAppRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetFormListInAppHeaders headers = new GetFormListInAppHeaders(); return this.getFormListInAppWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询群内直播信息(最早支持2024年01月数据)</p> * * @param tmpReq GetGroupLiveListRequest * @param tmpHeader GetGroupLiveListHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetGroupLiveListResponse */ public GetGroupLiveListResponse getGroupLiveListWithOptions(GetGroupLiveListRequest tmpReq, GetGroupLiveListHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetGroupLiveListShrinkRequest request = new GetGroupLiveListShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetGroupLiveListShrinkHeaders headers = new GetGroupLiveListShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.endTime)) { body.put("EndTime", request.endTime); } if (!com.aliyun.teautil.Common.isUnset(request.openConversationId)) { body.put("OpenConversationId", request.openConversationId); } if (!com.aliyun.teautil.Common.isUnset(request.startTime)) { body.put("StartTime", request.startTime); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetGroupLiveList"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/getGroupLiveList"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetGroupLiveListResponse()); } /** * <b>summary</b> : * <p>查询群内直播信息(最早支持2024年01月数据)</p> * * @param request GetGroupLiveListRequest * @return GetGroupLiveListResponse */ public GetGroupLiveListResponse getGroupLiveList(GetGroupLiveListRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetGroupLiveListHeaders headers = new GetGroupLiveListHeaders(); return this.getGroupLiveListWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询企业内部群成员</p> * * @param request GetInnerGroupMembersRequest * @param tmpHeader GetInnerGroupMembersHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetInnerGroupMembersResponse */ public GetInnerGroupMembersResponse getInnerGroupMembersWithOptions(GetInnerGroupMembersRequest request, GetInnerGroupMembersHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); GetInnerGroupMembersShrinkHeaders headers = new GetInnerGroupMembersShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.maxResults)) { body.put("MaxResults", request.maxResults); } if (!com.aliyun.teautil.Common.isUnset(request.nextToken)) { body.put("NextToken", request.nextToken); } if (!com.aliyun.teautil.Common.isUnset(request.openConversationId)) { body.put("OpenConversationId", request.openConversationId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetInnerGroupMembers"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/im/getInnerGroupMembers"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetInnerGroupMembersResponse()); } /** * <b>summary</b> : * <p>查询企业内部群成员</p> * * @param request GetInnerGroupMembersRequest * @return GetInnerGroupMembersResponse */ public GetInnerGroupMembersResponse getInnerGroupMembers(GetInnerGroupMembersRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetInnerGroupMembersHeaders headers = new GetInnerGroupMembersHeaders(); return this.getInnerGroupMembersWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>根据流程实例ID获取流程实例</p> * * @param request GetInstanceByIdRequest * @param tmpHeader GetInstanceByIdHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetInstanceByIdResponse */ public GetInstanceByIdResponse getInstanceByIdWithOptions(GetInstanceByIdRequest request, GetInstanceByIdHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); GetInstanceByIdShrinkHeaders headers = new GetInstanceByIdShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.id)) { body.put("Id", request.id); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetInstanceById"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/getInstanceById"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetInstanceByIdResponse()); } /** * <b>summary</b> : * <p>根据流程实例ID获取流程实例</p> * * @param request GetInstanceByIdRequest * @return GetInstanceByIdResponse */ public GetInstanceByIdResponse getInstanceById(GetInstanceByIdRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetInstanceByIdHeaders headers = new GetInstanceByIdHeaders(); return this.getInstanceByIdWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取实例ID列表</p> * * @param request GetInstanceIdListRequest * @param tmpHeader GetInstanceIdListHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetInstanceIdListResponse */ public GetInstanceIdListResponse getInstanceIdListWithOptions(GetInstanceIdListRequest request, GetInstanceIdListHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); GetInstanceIdListShrinkHeaders headers = new GetInstanceIdListShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.approvedResult)) { body.put("ApprovedResult", request.approvedResult); } if (!com.aliyun.teautil.Common.isUnset(request.createFromTimeGMT)) { body.put("CreateFromTimeGMT", request.createFromTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.createToTimeGMT)) { body.put("CreateToTimeGMT", request.createToTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.formUuid)) { body.put("FormUuid", request.formUuid); } if (!com.aliyun.teautil.Common.isUnset(request.instanceStatus)) { body.put("InstanceStatus", request.instanceStatus); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.modifiedFromTimeGMT)) { body.put("ModifiedFromTimeGMT", request.modifiedFromTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.modifiedToTimeGMT)) { body.put("ModifiedToTimeGMT", request.modifiedToTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.originatorId)) { body.put("OriginatorId", request.originatorId); } if (!com.aliyun.teautil.Common.isUnset(request.pageNumber)) { body.put("PageNumber", request.pageNumber); } if (!com.aliyun.teautil.Common.isUnset(request.pageSize)) { body.put("PageSize", request.pageSize); } if (!com.aliyun.teautil.Common.isUnset(request.searchFieldJson)) { body.put("SearchFieldJson", request.searchFieldJson); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } if (!com.aliyun.teautil.Common.isUnset(request.taskId)) { body.put("TaskId", request.taskId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetInstanceIdList"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/getInstanceIdList"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetInstanceIdListResponse()); } /** * <b>summary</b> : * <p>获取实例ID列表</p> * * @param request GetInstanceIdListRequest * @return GetInstanceIdListResponse */ public GetInstanceIdListResponse getInstanceIdList(GetInstanceIdListRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetInstanceIdListHeaders headers = new GetInstanceIdListHeaders(); return this.getInstanceIdListWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取流程实例</p> * * @param request GetInstancesRequest * @param tmpHeader GetInstancesHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetInstancesResponse */ public GetInstancesResponse getInstancesWithOptions(GetInstancesRequest request, GetInstancesHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); GetInstancesShrinkHeaders headers = new GetInstancesShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.approvedResult)) { body.put("ApprovedResult", request.approvedResult); } if (!com.aliyun.teautil.Common.isUnset(request.createFromTimeGMT)) { body.put("CreateFromTimeGMT", request.createFromTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.createToTimeGMT)) { body.put("CreateToTimeGMT", request.createToTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.formUuid)) { body.put("FormUuid", request.formUuid); } if (!com.aliyun.teautil.Common.isUnset(request.instanceStatus)) { body.put("InstanceStatus", request.instanceStatus); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.modifiedFromTimeGMT)) { body.put("ModifiedFromTimeGMT", request.modifiedFromTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.modifiedToTimeGMT)) { body.put("ModifiedToTimeGMT", request.modifiedToTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.orderConfigJson)) { body.put("OrderConfigJson", request.orderConfigJson); } if (!com.aliyun.teautil.Common.isUnset(request.originatorId)) { body.put("OriginatorId", request.originatorId); } if (!com.aliyun.teautil.Common.isUnset(request.pageNumber)) { body.put("PageNumber", request.pageNumber); } if (!com.aliyun.teautil.Common.isUnset(request.pageSize)) { body.put("PageSize", request.pageSize); } if (!com.aliyun.teautil.Common.isUnset(request.searchFieldJson)) { body.put("SearchFieldJson", request.searchFieldJson); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } if (!com.aliyun.teautil.Common.isUnset(request.taskId)) { body.put("TaskId", request.taskId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetInstances"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/getInstances"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetInstancesResponse()); } /** * <b>summary</b> : * <p>获取流程实例</p> * * @param request GetInstancesRequest * @return GetInstancesResponse */ public GetInstancesResponse getInstances(GetInstancesRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetInstancesHeaders headers = new GetInstancesHeaders(); return this.getInstancesWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>根据实例 ID 列表批量获取流程实例详情(批量获取流程实例列表)</p> * * @param request GetInstancesByIdListRequest * @param tmpHeader GetInstancesByIdListHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetInstancesByIdListResponse */ public GetInstancesByIdListResponse getInstancesByIdListWithOptions(GetInstancesByIdListRequest request, GetInstancesByIdListHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); GetInstancesByIdListShrinkHeaders headers = new GetInstancesByIdListShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.processInstanceIds)) { body.put("ProcessInstanceIds", request.processInstanceIds); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetInstancesByIdList"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/getInstancesByIdList"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetInstancesByIdListResponse()); } /** * <b>summary</b> : * <p>根据实例 ID 列表批量获取流程实例详情(批量获取流程实例列表)</p> * * @param request GetInstancesByIdListRequest * @return GetInstancesByIdListResponse */ public GetInstancesByIdListResponse getInstancesByIdList(GetInstancesByIdListRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetInstancesByIdListHeaders headers = new GetInstancesByIdListHeaders(); return this.getInstancesByIdListWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取直播的可下载回放地址</p> * * @param tmpReq GetLiveReplayUrlRequest * @param tmpHeader GetLiveReplayUrlHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetLiveReplayUrlResponse */ public GetLiveReplayUrlResponse getLiveReplayUrlWithOptions(GetLiveReplayUrlRequest tmpReq, GetLiveReplayUrlHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetLiveReplayUrlShrinkRequest request = new GetLiveReplayUrlShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetLiveReplayUrlShrinkHeaders headers = new GetLiveReplayUrlShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.liveId)) { body.put("LiveId", request.liveId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetLiveReplayUrl"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/getLiveReplayUrl"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetLiveReplayUrlResponse()); } /** * <b>summary</b> : * <p>获取直播的可下载回放地址</p> * * @param request GetLiveReplayUrlRequest * @return GetLiveReplayUrlResponse */ public GetLiveReplayUrlResponse getLiveReplayUrl(GetLiveReplayUrlRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetLiveReplayUrlHeaders headers = new GetLiveReplayUrlHeaders(); return this.getLiveReplayUrlWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取组织内某人提交的任务</p> * * @param request GetMeCorpSubmissionRequest * @param tmpHeader GetMeCorpSubmissionHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetMeCorpSubmissionResponse */ public GetMeCorpSubmissionResponse getMeCorpSubmissionWithOptions(GetMeCorpSubmissionRequest request, GetMeCorpSubmissionHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); GetMeCorpSubmissionShrinkHeaders headers = new GetMeCorpSubmissionShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appTypes)) { body.put("AppTypes", request.appTypes); } if (!com.aliyun.teautil.Common.isUnset(request.corpId)) { body.put("CorpId", request.corpId); } if (!com.aliyun.teautil.Common.isUnset(request.createFromTimeGMT)) { body.put("CreateFromTimeGMT", request.createFromTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.createToTimeGMT)) { body.put("CreateToTimeGMT", request.createToTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.keyword)) { body.put("Keyword", request.keyword); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.pageNumber)) { body.put("PageNumber", request.pageNumber); } if (!com.aliyun.teautil.Common.isUnset(request.pageSize)) { body.put("PageSize", request.pageSize); } if (!com.aliyun.teautil.Common.isUnset(request.processCodes)) { body.put("ProcessCodes", request.processCodes); } if (!com.aliyun.teautil.Common.isUnset(request.token)) { body.put("Token", request.token); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetMeCorpSubmission"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/getMeCorpSubmission"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetMeCorpSubmissionResponse()); } /** * <b>summary</b> : * <p>获取组织内某人提交的任务</p> * * @param request GetMeCorpSubmissionRequest * @return GetMeCorpSubmissionResponse */ public GetMeCorpSubmissionResponse getMeCorpSubmission(GetMeCorpSubmissionRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetMeCorpSubmissionHeaders headers = new GetMeCorpSubmissionHeaders(); return this.getMeCorpSubmissionWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取会议室忙闲信息</p> * * @param tmpReq GetMeetingRoomsScheduleRequest * @param tmpHeader GetMeetingRoomsScheduleHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetMeetingRoomsScheduleResponse */ public GetMeetingRoomsScheduleResponse getMeetingRoomsScheduleWithOptions(GetMeetingRoomsScheduleRequest tmpReq, GetMeetingRoomsScheduleHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetMeetingRoomsScheduleShrinkRequest request = new GetMeetingRoomsScheduleShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetMeetingRoomsScheduleShrinkHeaders headers = new GetMeetingRoomsScheduleShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.roomIds)) { request.roomIdsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.roomIds, "RoomIds", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.endTime)) { body.put("EndTime", request.endTime); } if (!com.aliyun.teautil.Common.isUnset(request.roomIdsShrink)) { body.put("RoomIds", request.roomIdsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.startTime)) { body.put("StartTime", request.startTime); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetMeetingRoomsSchedule"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/calendar/getMeetingRoomsSchedule"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetMeetingRoomsScheduleResponse()); } /** * <b>summary</b> : * <p>获取会议室忙闲信息</p> * * @param request GetMeetingRoomsScheduleRequest * @return GetMeetingRoomsScheduleResponse */ public GetMeetingRoomsScheduleResponse getMeetingRoomsSchedule(GetMeetingRoomsScheduleRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetMeetingRoomsScheduleHeaders headers = new GetMeetingRoomsScheduleHeaders(); return this.getMeetingRoomsScheduleWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取我的文档知识库信息</p> * * @param tmpReq GetMineWorkspaceRequest * @param tmpHeader GetMineWorkspaceHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetMineWorkspaceResponse */ public GetMineWorkspaceResponse getMineWorkspaceWithOptions(GetMineWorkspaceRequest tmpReq, GetMineWorkspaceHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetMineWorkspaceShrinkRequest request = new GetMineWorkspaceShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetMineWorkspaceShrinkHeaders headers = new GetMineWorkspaceShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.request)) { request.requestShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.request, "Request", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.requestShrink)) { body.put("Request", request.requestShrink); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetMineWorkspace"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v2/documents/getMineWorkspace"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetMineWorkspaceResponse()); } /** * <b>summary</b> : * <p>获取我的文档知识库信息</p> * * @param request GetMineWorkspaceRequest * @return GetMineWorkspaceResponse */ public GetMineWorkspaceResponse getMineWorkspace(GetMineWorkspaceRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetMineWorkspaceHeaders headers = new GetMineWorkspaceHeaders(); return this.getMineWorkspaceWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取所有字段</p> * * @param tmpReq GetMultiDimTableAllFieldsRequest * @param tmpHeader GetMultiDimTableAllFieldsHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetMultiDimTableAllFieldsResponse */ public GetMultiDimTableAllFieldsResponse getMultiDimTableAllFieldsWithOptions(GetMultiDimTableAllFieldsRequest tmpReq, GetMultiDimTableAllFieldsHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetMultiDimTableAllFieldsShrinkRequest request = new GetMultiDimTableAllFieldsShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetMultiDimTableAllFieldsShrinkHeaders headers = new GetMultiDimTableAllFieldsShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.baseId)) { body.put("BaseId", request.baseId); } if (!com.aliyun.teautil.Common.isUnset(request.sheetIdOrName)) { body.put("SheetIdOrName", request.sheetIdOrName); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetMultiDimTableAllFields"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/table/getMultiDimTableAllFields"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetMultiDimTableAllFieldsResponse()); } /** * <b>summary</b> : * <p>获取所有字段</p> * * @param request GetMultiDimTableAllFieldsRequest * @return GetMultiDimTableAllFieldsResponse */ public GetMultiDimTableAllFieldsResponse getMultiDimTableAllFields(GetMultiDimTableAllFieldsRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetMultiDimTableAllFieldsHeaders headers = new GetMultiDimTableAllFieldsHeaders(); return this.getMultiDimTableAllFieldsWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取所有数据表</p> * * @param tmpReq GetMultiDimTableAllSheetsRequest * @param tmpHeader GetMultiDimTableAllSheetsHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetMultiDimTableAllSheetsResponse */ public GetMultiDimTableAllSheetsResponse getMultiDimTableAllSheetsWithOptions(GetMultiDimTableAllSheetsRequest tmpReq, GetMultiDimTableAllSheetsHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetMultiDimTableAllSheetsShrinkRequest request = new GetMultiDimTableAllSheetsShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetMultiDimTableAllSheetsShrinkHeaders headers = new GetMultiDimTableAllSheetsShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.baseId)) { body.put("BaseId", request.baseId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetMultiDimTableAllSheets"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/table/getMultiDimTableAllSheets"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetMultiDimTableAllSheetsResponse()); } /** * <b>summary</b> : * <p>获取所有数据表</p> * * @param request GetMultiDimTableAllSheetsRequest * @return GetMultiDimTableAllSheetsResponse */ public GetMultiDimTableAllSheetsResponse getMultiDimTableAllSheets(GetMultiDimTableAllSheetsRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetMultiDimTableAllSheetsHeaders headers = new GetMultiDimTableAllSheetsHeaders(); return this.getMultiDimTableAllSheetsWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取记录</p> * * @param tmpReq GetMultiDimTableRecordRequest * @param tmpHeader GetMultiDimTableRecordHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetMultiDimTableRecordResponse */ public GetMultiDimTableRecordResponse getMultiDimTableRecordWithOptions(GetMultiDimTableRecordRequest tmpReq, GetMultiDimTableRecordHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetMultiDimTableRecordShrinkRequest request = new GetMultiDimTableRecordShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetMultiDimTableRecordShrinkHeaders headers = new GetMultiDimTableRecordShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.baseId)) { body.put("BaseId", request.baseId); } if (!com.aliyun.teautil.Common.isUnset(request.recordId)) { body.put("RecordId", request.recordId); } if (!com.aliyun.teautil.Common.isUnset(request.sheetIdOrName)) { body.put("SheetIdOrName", request.sheetIdOrName); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetMultiDimTableRecord"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/table/getMultiDimTableRecord"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetMultiDimTableRecordResponse()); } /** * <b>summary</b> : * <p>获取记录</p> * * @param request GetMultiDimTableRecordRequest * @return GetMultiDimTableRecordResponse */ public GetMultiDimTableRecordResponse getMultiDimTableRecord(GetMultiDimTableRecordRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetMultiDimTableRecordHeaders headers = new GetMultiDimTableRecordHeaders(); return this.getMultiDimTableRecordWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取数据表</p> * * @param tmpReq GetMultiDimTableSheetRequest * @param tmpHeader GetMultiDimTableSheetHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetMultiDimTableSheetResponse */ public GetMultiDimTableSheetResponse getMultiDimTableSheetWithOptions(GetMultiDimTableSheetRequest tmpReq, GetMultiDimTableSheetHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetMultiDimTableSheetShrinkRequest request = new GetMultiDimTableSheetShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetMultiDimTableSheetShrinkHeaders headers = new GetMultiDimTableSheetShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.baseId)) { body.put("BaseId", request.baseId); } if (!com.aliyun.teautil.Common.isUnset(request.sheetIdOrName)) { body.put("SheetIdOrName", request.sheetIdOrName); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetMultiDimTableSheet"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/table/getMultiDimTableSheet"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetMultiDimTableSheetResponse()); } /** * <b>summary</b> : * <p>获取数据表</p> * * @param request GetMultiDimTableSheetRequest * @return GetMultiDimTableSheetResponse */ public GetMultiDimTableSheetResponse getMultiDimTableSheet(GetMultiDimTableSheetRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetMultiDimTableSheetHeaders headers = new GetMultiDimTableSheetHeaders(); return this.getMultiDimTableSheetWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取文件分片上传信息</p> * * @param tmpReq GetMultipartFileUploadInfosRequest * @param tmpHeader GetMultipartFileUploadInfosHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetMultipartFileUploadInfosResponse */ public GetMultipartFileUploadInfosResponse getMultipartFileUploadInfosWithOptions(GetMultipartFileUploadInfosRequest tmpReq, GetMultipartFileUploadInfosHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetMultipartFileUploadInfosShrinkRequest request = new GetMultipartFileUploadInfosShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetMultipartFileUploadInfosShrinkHeaders headers = new GetMultipartFileUploadInfosShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.option)) { request.optionShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.option, "Option", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.partNumbers)) { request.partNumbersShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.partNumbers, "PartNumbers", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.optionShrink)) { body.put("Option", request.optionShrink); } if (!com.aliyun.teautil.Common.isUnset(request.partNumbersShrink)) { body.put("PartNumbers", request.partNumbersShrink); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.uploadKey)) { body.put("UploadKey", request.uploadKey); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetMultipartFileUploadInfos"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/GetMultipartFileUploadInfos"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetMultipartFileUploadInfosResponse()); } /** * <b>summary</b> : * <p>获取文件分片上传信息</p> * * @param request GetMultipartFileUploadInfosRequest * @return GetMultipartFileUploadInfosResponse */ public GetMultipartFileUploadInfosResponse getMultipartFileUploadInfos(GetMultipartFileUploadInfosRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetMultipartFileUploadInfosHeaders headers = new GetMultipartFileUploadInfosHeaders(); return this.getMultipartFileUploadInfosWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询最近活跃的企业内部群列表</p> * * @param tmpReq GetNewestInnerGroupsRequest * @param tmpHeader GetNewestInnerGroupsHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetNewestInnerGroupsResponse */ public GetNewestInnerGroupsResponse getNewestInnerGroupsWithOptions(GetNewestInnerGroupsRequest tmpReq, GetNewestInnerGroupsHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetNewestInnerGroupsShrinkRequest request = new GetNewestInnerGroupsShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetNewestInnerGroupsShrinkHeaders headers = new GetNewestInnerGroupsShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.request)) { request.requestShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.request, "Request", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.requestShrink)) { body.put("Request", request.requestShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetNewestInnerGroups"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/im/getNewestInnerGroups"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetNewestInnerGroupsResponse()); } /** * <b>summary</b> : * <p>查询最近活跃的企业内部群列表</p> * * @param request GetNewestInnerGroupsRequest * @return GetNewestInnerGroupsResponse */ public GetNewestInnerGroupsResponse getNewestInnerGroups(GetNewestInnerGroupsRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetNewestInnerGroupsHeaders headers = new GetNewestInnerGroupsHeaders(); return this.getNewestInnerGroupsWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取节点</p> * * @param tmpReq GetNodeRequest * @param tmpHeader GetNodeHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetNodeResponse */ public GetNodeResponse getNodeWithOptions(GetNodeRequest tmpReq, GetNodeHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetNodeShrinkRequest request = new GetNodeShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetNodeShrinkHeaders headers = new GetNodeShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.nodeId)) { body.put("NodeId", request.nodeId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.withPermissionRole)) { body.put("WithPermissionRole", request.withPermissionRole); } if (!com.aliyun.teautil.Common.isUnset(request.withStatisticalInfo)) { body.put("WithStatisticalInfo", request.withStatisticalInfo); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetNode"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v2/documents/getNode"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetNodeResponse()); } /** * <b>summary</b> : * <p>获取节点</p> * * @param request GetNodeRequest * @return GetNodeResponse */ public GetNodeResponse getNode(GetNodeRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetNodeHeaders headers = new GetNodeHeaders(); return this.getNodeWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>通过链接获取节点</p> * * @param tmpReq GetNodeByUrlRequest * @param tmpHeader GetNodeByUrlHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetNodeByUrlResponse */ public GetNodeByUrlResponse getNodeByUrlWithOptions(GetNodeByUrlRequest tmpReq, GetNodeByUrlHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetNodeByUrlShrinkRequest request = new GetNodeByUrlShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetNodeByUrlShrinkHeaders headers = new GetNodeByUrlShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.option)) { request.optionShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.option, "Option", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.optionShrink)) { body.put("Option", request.optionShrink); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.url)) { body.put("Url", request.url); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetNodeByUrl"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v2/documents/getNodeByUrl"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetNodeByUrlResponse()); } /** * <b>summary</b> : * <p>通过链接获取节点</p> * * @param request GetNodeByUrlRequest * @return GetNodeByUrlResponse */ public GetNodeByUrlResponse getNodeByUrl(GetNodeByUrlRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetNodeByUrlHeaders headers = new GetNodeByUrlHeaders(); return this.getNodeByUrlWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>批量获取节点</p> * * @param tmpReq GetNodesRequest * @param tmpHeader GetNodesHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetNodesResponse */ public GetNodesResponse getNodesWithOptions(GetNodesRequest tmpReq, GetNodesHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetNodesShrinkRequest request = new GetNodesShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetNodesShrinkHeaders headers = new GetNodesShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.nodeIds)) { request.nodeIdsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.nodeIds, "NodeIds", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.option)) { request.optionShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.option, "Option", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.nodeIdsShrink)) { body.put("NodeIds", request.nodeIdsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.optionShrink)) { body.put("Option", request.optionShrink); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetNodes"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v2/documents/getNodes"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetNodesResponse()); } /** * <b>summary</b> : * <p>批量获取节点</p> * * @param request GetNodesRequest * @return GetNodesResponse */ public GetNodesResponse getNodes(GetNodesRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetNodesHeaders headers = new GetNodesHeaders(); return this.getNodesWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取发送给用户的通知</p> * * @param request GetNotifyMeRequest * @param tmpHeader GetNotifyMeHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetNotifyMeResponse */ public GetNotifyMeResponse getNotifyMeWithOptions(GetNotifyMeRequest request, GetNotifyMeHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); GetNotifyMeShrinkHeaders headers = new GetNotifyMeShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appTypes)) { body.put("AppTypes", request.appTypes); } if (!com.aliyun.teautil.Common.isUnset(request.corpId)) { body.put("CorpId", request.corpId); } if (!com.aliyun.teautil.Common.isUnset(request.createFromTimeGMT)) { body.put("CreateFromTimeGMT", request.createFromTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.createToTimeGMT)) { body.put("CreateToTimeGMT", request.createToTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.instanceCreateFromTimeGMT)) { body.put("InstanceCreateFromTimeGMT", request.instanceCreateFromTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.instanceCreateToTimeGMT)) { body.put("InstanceCreateToTimeGMT", request.instanceCreateToTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.keyword)) { body.put("Keyword", request.keyword); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.pageNumber)) { body.put("PageNumber", request.pageNumber); } if (!com.aliyun.teautil.Common.isUnset(request.pageSize)) { body.put("PageSize", request.pageSize); } if (!com.aliyun.teautil.Common.isUnset(request.processCodes)) { body.put("ProcessCodes", request.processCodes); } if (!com.aliyun.teautil.Common.isUnset(request.token)) { body.put("Token", request.token); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetNotifyMe"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/getNotifyMe"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetNotifyMeResponse()); } /** * <b>summary</b> : * <p>获取发送给用户的通知</p> * * @param request GetNotifyMeRequest * @return GetNotifyMeResponse */ public GetNotifyMeResponse getNotifyMe(GetNotifyMeRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetNotifyMeHeaders headers = new GetNotifyMeHeaders(); return this.getNotifyMeWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取宜搭附件临时免登地址</p> * * @param request GetOpenUrlRequest * @param tmpHeader GetOpenUrlHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetOpenUrlResponse */ public GetOpenUrlResponse getOpenUrlWithOptions(GetOpenUrlRequest request, GetOpenUrlHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); GetOpenUrlShrinkHeaders headers = new GetOpenUrlShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.fileUrl)) { body.put("FileUrl", request.fileUrl); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } if (!com.aliyun.teautil.Common.isUnset(request.timeout)) { body.put("Timeout", request.timeout); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetOpenUrl"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/getOpenUrl"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetOpenUrlResponse()); } /** * <b>summary</b> : * <p>获取宜搭附件临时免登地址</p> * * @param request GetOpenUrlRequest * @return GetOpenUrlResponse */ public GetOpenUrlResponse getOpenUrl(GetOpenUrlRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetOpenUrlHeaders headers = new GetOpenUrlHeaders(); return this.getOpenUrlWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取审批记录</p> * * @param request GetOperationRecordsRequest * @param tmpHeader GetOperationRecordsHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetOperationRecordsResponse */ public GetOperationRecordsResponse getOperationRecordsWithOptions(GetOperationRecordsRequest request, GetOperationRecordsHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); GetOperationRecordsShrinkHeaders headers = new GetOperationRecordsShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.processInstanceId)) { body.put("ProcessInstanceId", request.processInstanceId); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetOperationRecords"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/getOperationRecords"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetOperationRecordsResponse()); } /** * <b>summary</b> : * <p>获取审批记录</p> * * @param request GetOperationRecordsRequest * @return GetOperationRecordsResponse */ public GetOperationRecordsResponse getOperationRecords(GetOperationRecordsRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetOperationRecordsHeaders headers = new GetOperationRecordsHeaders(); return this.getOperationRecordsWithOptions(request, headers, runtime); } /** * @param tmpReq GetOrgLiveListRequest * @param tmpHeader GetOrgLiveListHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetOrgLiveListResponse */ public GetOrgLiveListResponse getOrgLiveListWithOptions(GetOrgLiveListRequest tmpReq, GetOrgLiveListHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetOrgLiveListShrinkRequest request = new GetOrgLiveListShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetOrgLiveListShrinkHeaders headers = new GetOrgLiveListShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.corpId)) { body.put("CorpId", request.corpId); } if (!com.aliyun.teautil.Common.isUnset(request.endTime)) { body.put("EndTime", request.endTime); } if (!com.aliyun.teautil.Common.isUnset(request.pageNumber)) { body.put("PageNumber", request.pageNumber); } if (!com.aliyun.teautil.Common.isUnset(request.pageSize)) { body.put("PageSize", request.pageSize); } if (!com.aliyun.teautil.Common.isUnset(request.startTime)) { body.put("StartTime", request.startTime); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.userId)) { body.put("UserId", request.userId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetOrgLiveList"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/getOrgLiveList"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetOrgLiveListResponse()); } /** * @param request GetOrgLiveListRequest * @return GetOrgLiveListResponse */ public GetOrgLiveListResponse getOrgLiveList(GetOrgLiveListRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetOrgLiveListHeaders headers = new GetOrgLiveListHeaders(); return this.getOrgLiveListWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>委托权限获取组织或者互联网公开文档内容taskId</p> * * @param tmpReq GetOrgOrWebOpenDocContentTaskIdRequest * @param tmpHeader GetOrgOrWebOpenDocContentTaskIdHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetOrgOrWebOpenDocContentTaskIdResponse */ public GetOrgOrWebOpenDocContentTaskIdResponse getOrgOrWebOpenDocContentTaskIdWithOptions(GetOrgOrWebOpenDocContentTaskIdRequest tmpReq, GetOrgOrWebOpenDocContentTaskIdHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetOrgOrWebOpenDocContentTaskIdShrinkRequest request = new GetOrgOrWebOpenDocContentTaskIdShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetOrgOrWebOpenDocContentTaskIdShrinkHeaders headers = new GetOrgOrWebOpenDocContentTaskIdShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.dentryUuid)) { body.put("DentryUuid", request.dentryUuid); } if (!com.aliyun.teautil.Common.isUnset(request.generateCp)) { body.put("GenerateCp", request.generateCp); } if (!com.aliyun.teautil.Common.isUnset(request.scopeType)) { body.put("ScopeType", request.scopeType); } if (!com.aliyun.teautil.Common.isUnset(request.targetFormat)) { body.put("TargetFormat", request.targetFormat); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetOrgOrWebOpenDocContentTaskId"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v2/documents/getOrgOrWebOpenDocContentTaskId"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetOrgOrWebOpenDocContentTaskIdResponse()); } /** * <b>summary</b> : * <p>委托权限获取组织或者互联网公开文档内容taskId</p> * * @param request GetOrgOrWebOpenDocContentTaskIdRequest * @return GetOrgOrWebOpenDocContentTaskIdResponse */ public GetOrgOrWebOpenDocContentTaskIdResponse getOrgOrWebOpenDocContentTaskId(GetOrgOrWebOpenDocContentTaskIdRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetOrgOrWebOpenDocContentTaskIdHeaders headers = new GetOrgOrWebOpenDocContentTaskIdHeaders(); return this.getOrgOrWebOpenDocContentTaskIdWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取流程定义</p> * * @param request GetProcessDefinitionRequest * @param tmpHeader GetProcessDefinitionHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetProcessDefinitionResponse */ public GetProcessDefinitionResponse getProcessDefinitionWithOptions(GetProcessDefinitionRequest request, GetProcessDefinitionHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); GetProcessDefinitionShrinkHeaders headers = new GetProcessDefinitionShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.corpId)) { body.put("CorpId", request.corpId); } if (!com.aliyun.teautil.Common.isUnset(request.groupId)) { body.put("GroupId", request.groupId); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.nameSpace)) { body.put("NameSpace", request.nameSpace); } if (!com.aliyun.teautil.Common.isUnset(request.orderNumber)) { body.put("OrderNumber", request.orderNumber); } if (!com.aliyun.teautil.Common.isUnset(request.processInstanceId)) { body.put("ProcessInstanceId", request.processInstanceId); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } if (!com.aliyun.teautil.Common.isUnset(request.systemType)) { body.put("SystemType", request.systemType); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetProcessDefinition"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/getProcessDefinition"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetProcessDefinitionResponse()); } /** * <b>summary</b> : * <p>获取流程定义</p> * * @param request GetProcessDefinitionRequest * @return GetProcessDefinitionResponse */ public GetProcessDefinitionResponse getProcessDefinition(GetProcessDefinitionRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetProcessDefinitionHeaders headers = new GetProcessDefinitionHeaders(); return this.getProcessDefinitionWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取单元格区域</p> * * @param tmpReq GetRangeRequest * @param tmpHeader GetRangeHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetRangeResponse */ public GetRangeResponse getRangeWithOptions(GetRangeRequest tmpReq, GetRangeHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetRangeShrinkRequest request = new GetRangeShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetRangeShrinkHeaders headers = new GetRangeShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.rangeAddress)) { body.put("RangeAddress", request.rangeAddress); } if (!com.aliyun.teautil.Common.isUnset(request.select)) { body.put("Select", request.select); } if (!com.aliyun.teautil.Common.isUnset(request.sheetId)) { body.put("SheetId", request.sheetId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.workbookId)) { body.put("WorkbookId", request.workbookId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetRange"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/getRange"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetRangeResponse()); } /** * <b>summary</b> : * <p>获取单元格区域</p> * * @param request GetRangeRequest * @return GetRangeResponse */ public GetRangeResponse getRange(GetRangeRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetRangeHeaders headers = new GetRangeHeaders(); return this.getRangeWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询用户有权限的知识库列表(旧)</p> * * @param tmpReq GetRelatedWorkspacesRequest * @param tmpHeader GetRelatedWorkspacesHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetRelatedWorkspacesResponse */ public GetRelatedWorkspacesResponse getRelatedWorkspacesWithOptions(GetRelatedWorkspacesRequest tmpReq, GetRelatedWorkspacesHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetRelatedWorkspacesShrinkRequest request = new GetRelatedWorkspacesShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetRelatedWorkspacesShrinkHeaders headers = new GetRelatedWorkspacesShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.includeRecent)) { body.put("IncludeRecent", request.includeRecent); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetRelatedWorkspaces"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/getRelatedWorkspaces"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetRelatedWorkspacesResponse()); } /** * <b>summary</b> : * <p>查询用户有权限的知识库列表(旧)</p> * * @param request GetRelatedWorkspacesRequest * @return GetRelatedWorkspacesResponse */ public GetRelatedWorkspacesResponse getRelatedWorkspaces(GetRelatedWorkspacesRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetRelatedWorkspacesHeaders headers = new GetRelatedWorkspacesHeaders(); return this.getRelatedWorkspacesWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取模板详情</p> * * @param tmpReq GetReportTemplateByNameRequest * @param tmpHeader GetReportTemplateByNameHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetReportTemplateByNameResponse */ public GetReportTemplateByNameResponse getReportTemplateByNameWithOptions(GetReportTemplateByNameRequest tmpReq, GetReportTemplateByNameHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetReportTemplateByNameShrinkRequest request = new GetReportTemplateByNameShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetReportTemplateByNameShrinkHeaders headers = new GetReportTemplateByNameShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.templateName)) { body.put("TemplateName", request.templateName); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetReportTemplateByName"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/log/getReportTemplateByName"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetReportTemplateByNameResponse()); } /** * <b>summary</b> : * <p>获取模板详情</p> * * @param request GetReportTemplateByNameRequest * @return GetReportTemplateByNameResponse */ public GetReportTemplateByNameResponse getReportTemplateByName(GetReportTemplateByNameRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetReportTemplateByNameHeaders headers = new GetReportTemplateByNameHeaders(); return this.getReportTemplateByNameWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取员工有多少数量的日志(一个月内)是未读状态</p> * * @param tmpReq GetReportUnReadCountRequest * @param tmpHeader GetReportUnReadCountHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetReportUnReadCountResponse */ public GetReportUnReadCountResponse getReportUnReadCountWithOptions(GetReportUnReadCountRequest tmpReq, GetReportUnReadCountHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetReportUnReadCountShrinkRequest request = new GetReportUnReadCountShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetReportUnReadCountShrinkHeaders headers = new GetReportUnReadCountShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.request)) { request.requestShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.request, "Request", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.requestShrink)) { body.put("Request", request.requestShrink); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetReportUnReadCount"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/log/getReportUnReadCount"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetReportUnReadCountResponse()); } /** * <b>summary</b> : * <p>获取员工有多少数量的日志(一个月内)是未读状态</p> * * @param request GetReportUnReadCountRequest * @return GetReportUnReadCountResponse */ public GetReportUnReadCountResponse getReportUnReadCount(GetReportUnReadCountRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetReportUnReadCountHeaders headers = new GetReportUnReadCountHeaders(); return this.getReportUnReadCountWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询流程运行任务(VPC)</p> * * @param request GetRunningTasksRequest * @param tmpHeader GetRunningTasksHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetRunningTasksResponse */ public GetRunningTasksResponse getRunningTasksWithOptions(GetRunningTasksRequest request, GetRunningTasksHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); GetRunningTasksShrinkHeaders headers = new GetRunningTasksShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.processCodes)) { body.put("ProcessCodes", request.processCodes); } if (!com.aliyun.teautil.Common.isUnset(request.processInstanceId)) { body.put("ProcessInstanceId", request.processInstanceId); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetRunningTasks"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/getRunningTasks"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetRunningTasksResponse()); } /** * <b>summary</b> : * <p>查询流程运行任务(VPC)</p> * * @param request GetRunningTasksRequest * @return GetRunningTasksResponse */ public GetRunningTasksResponse getRunningTasks(GetRunningTasksRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetRunningTasksHeaders headers = new GetRunningTasksHeaders(); return this.getRunningTasksWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取用户忙闲信息</p> * * @param tmpReq GetScheduleRequest * @param tmpHeader GetScheduleHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetScheduleResponse */ public GetScheduleResponse getScheduleWithOptions(GetScheduleRequest tmpReq, GetScheduleHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetScheduleShrinkRequest request = new GetScheduleShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetScheduleShrinkHeaders headers = new GetScheduleShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.userIds)) { request.userIdsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.userIds, "UserIds", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.endTime)) { body.put("EndTime", request.endTime); } if (!com.aliyun.teautil.Common.isUnset(request.startTime)) { body.put("StartTime", request.startTime); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.userIdsShrink)) { body.put("UserIds", request.userIdsShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetSchedule"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/calendar/getSchedule"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetScheduleResponse()); } /** * <b>summary</b> : * <p>获取用户忙闲信息</p> * * @param request GetScheduleRequest * @return GetScheduleResponse */ public GetScheduleResponse getSchedule(GetScheduleRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetScheduleHeaders headers = new GetScheduleHeaders(); return this.getScheduleWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取工作表</p> * * @param tmpReq GetSheetRequest * @param tmpHeader GetSheetHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetSheetResponse */ public GetSheetResponse getSheetWithOptions(GetSheetRequest tmpReq, GetSheetHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetSheetShrinkRequest request = new GetSheetShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetSheetShrinkHeaders headers = new GetSheetShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.sheetId)) { body.put("SheetId", request.sheetId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.workbookId)) { body.put("WorkbookId", request.workbookId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetSheet"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/getSheet"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetSheetResponse()); } /** * <b>summary</b> : * <p>获取工作表</p> * * @param request GetSheetRequest * @return GetSheetResponse */ public GetSheetResponse getSheet(GetSheetRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetSheetHeaders headers = new GetSheetHeaders(); return this.getSheetWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取表格文档内容jobId</p> * * @param tmpReq GetSheetContentJobIdRequest * @param tmpHeader GetSheetContentJobIdHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetSheetContentJobIdResponse */ public GetSheetContentJobIdResponse getSheetContentJobIdWithOptions(GetSheetContentJobIdRequest tmpReq, GetSheetContentJobIdHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetSheetContentJobIdShrinkRequest request = new GetSheetContentJobIdShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetSheetContentJobIdShrinkHeaders headers = new GetSheetContentJobIdShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.dentryUuid)) { body.put("DentryUuid", request.dentryUuid); } if (!com.aliyun.teautil.Common.isUnset(request.exportType)) { body.put("ExportType", request.exportType); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetSheetContentJobId"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v2/documents/getSheetContentJobId"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetSheetContentJobIdResponse()); } /** * <b>summary</b> : * <p>获取表格文档内容jobId</p> * * @param request GetSheetContentJobIdRequest * @return GetSheetContentJobIdResponse */ public GetSheetContentJobIdResponse getSheetContentJobId(GetSheetContentJobIdRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetSheetContentJobIdHeaders headers = new GetSheetContentJobIdHeaders(); return this.getSheetContentJobIdWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询知识库下的目录结构</p> * * @param tmpReq GetSpaceDirectoriesRequest * @param tmpHeader GetSpaceDirectoriesHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetSpaceDirectoriesResponse */ public GetSpaceDirectoriesResponse getSpaceDirectoriesWithOptions(GetSpaceDirectoriesRequest tmpReq, GetSpaceDirectoriesHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetSpaceDirectoriesShrinkRequest request = new GetSpaceDirectoriesShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetSpaceDirectoriesShrinkHeaders headers = new GetSpaceDirectoriesShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.dentryId)) { body.put("DentryId", request.dentryId); } if (!com.aliyun.teautil.Common.isUnset(request.maxResults)) { body.put("MaxResults", request.maxResults); } if (!com.aliyun.teautil.Common.isUnset(request.nextToken)) { body.put("NextToken", request.nextToken); } if (!com.aliyun.teautil.Common.isUnset(request.spaceId)) { body.put("SpaceId", request.spaceId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetSpaceDirectories"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v2/documents/getSpaceDirectories"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetSpaceDirectoriesResponse()); } /** * <b>summary</b> : * <p>查询知识库下的目录结构</p> * * @param request GetSpaceDirectoriesRequest * @return GetSpaceDirectoriesResponse */ public GetSpaceDirectoriesResponse getSpaceDirectories(GetSpaceDirectoriesRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetSpaceDirectoriesHeaders headers = new GetSpaceDirectoriesHeaders(); return this.getSpaceDirectoriesWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询单个订阅日历详情</p> * * @param request GetSubscribedCalendarRequest * @param tmpHeader GetSubscribedCalendarHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetSubscribedCalendarResponse */ public GetSubscribedCalendarResponse getSubscribedCalendarWithOptions(GetSubscribedCalendarRequest request, GetSubscribedCalendarHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); GetSubscribedCalendarShrinkHeaders headers = new GetSubscribedCalendarShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.calendarId)) { body.put("CalendarId", request.calendarId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetSubscribedCalendar"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/calendar/getSubscribedCalendar"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetSubscribedCalendarResponse()); } /** * <b>summary</b> : * <p>查询单个订阅日历详情</p> * * @param request GetSubscribedCalendarRequest * @return GetSubscribedCalendarResponse */ public GetSubscribedCalendarResponse getSubscribedCalendar(GetSubscribedCalendarRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetSubscribedCalendarHeaders headers = new GetSubscribedCalendarHeaders(); return this.getSubscribedCalendarWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询抄送我的任务列表(应用维度)</p> * * @param request GetTaskCopiesRequest * @param tmpHeader GetTaskCopiesHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetTaskCopiesResponse */ public GetTaskCopiesResponse getTaskCopiesWithOptions(GetTaskCopiesRequest request, GetTaskCopiesHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); GetTaskCopiesShrinkHeaders headers = new GetTaskCopiesShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.createFromTimeGMT)) { body.put("CreateFromTimeGMT", request.createFromTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.createToTimeGMT)) { body.put("CreateToTimeGMT", request.createToTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.keyword)) { body.put("Keyword", request.keyword); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.pageNumber)) { body.put("PageNumber", request.pageNumber); } if (!com.aliyun.teautil.Common.isUnset(request.pageSize)) { body.put("PageSize", request.pageSize); } if (!com.aliyun.teautil.Common.isUnset(request.processCodes)) { body.put("ProcessCodes", request.processCodes); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetTaskCopies"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/getTaskCopies"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetTaskCopiesResponse()); } /** * <b>summary</b> : * <p>查询抄送我的任务列表(应用维度)</p> * * @param request GetTaskCopiesRequest * @return GetTaskCopiesResponse */ public GetTaskCopiesResponse getTaskCopies(GetTaskCopiesRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetTaskCopiesHeaders headers = new GetTaskCopiesHeaders(); return this.getTaskCopiesWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取用户可见的日志模板</p> * * @param tmpReq GetTemplateListByUserIdRequest * @param tmpHeader GetTemplateListByUserIdHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetTemplateListByUserIdResponse */ public GetTemplateListByUserIdResponse getTemplateListByUserIdWithOptions(GetTemplateListByUserIdRequest tmpReq, GetTemplateListByUserIdHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetTemplateListByUserIdShrinkRequest request = new GetTemplateListByUserIdShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetTemplateListByUserIdShrinkHeaders headers = new GetTemplateListByUserIdShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.offset)) { body.put("Offset", request.offset); } if (!com.aliyun.teautil.Common.isUnset(request.size)) { body.put("Size", request.size); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetTemplateListByUserId"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/log/getTemplateListByUserId"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetTemplateListByUserIdResponse()); } /** * <b>summary</b> : * <p>获取用户可见的日志模板</p> * * @param request GetTemplateListByUserIdRequest * @return GetTemplateListByUserIdResponse */ public GetTemplateListByUserIdResponse getTemplateListByUserId(GetTemplateListByUserIdRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetTemplateListByUserIdHeaders headers = new GetTemplateListByUserIdHeaders(); return this.getTemplateListByUserIdWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取指定工单详情</p> * * @param tmpReq GetTicketRequest * @param tmpHeader GetTicketHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetTicketResponse */ public GetTicketResponse getTicketWithOptions(GetTicketRequest tmpReq, GetTicketHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetTicketShrinkRequest request = new GetTicketShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetTicketShrinkHeaders headers = new GetTicketShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.openTeamId)) { body.put("OpenTeamId", request.openTeamId); } if (!com.aliyun.teautil.Common.isUnset(request.openTicketId)) { body.put("OpenTicketId", request.openTicketId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetTicket"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ticket/getTicket"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetTicketResponse()); } /** * <b>summary</b> : * <p>获取指定工单详情</p> * * @param request GetTicketRequest * @return GetTicketResponse */ public GetTicketResponse getTicket(GetTicketRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetTicketHeaders headers = new GetTicketHeaders(); return this.getTicketWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取钉钉待办任务详情</p> * * @param tmpReq GetTodoTaskRequest * @param tmpHeader GetTodoTaskHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetTodoTaskResponse */ public GetTodoTaskResponse getTodoTaskWithOptions(GetTodoTaskRequest tmpReq, GetTodoTaskHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetTodoTaskShrinkRequest request = new GetTodoTaskShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetTodoTaskShrinkHeaders headers = new GetTodoTaskShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.taskId)) { body.put("TaskId", request.taskId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetTodoTask"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/task/getTodoTask"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetTodoTaskResponse()); } /** * <b>summary</b> : * <p>获取钉钉待办任务详情</p> * * @param request GetTodoTaskRequest * @return GetTodoTaskResponse */ public GetTodoTaskResponse getTodoTask(GetTodoTaskRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetTodoTaskHeaders headers = new GetTodoTaskHeaders(); return this.getTodoTaskWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取专属账号信息</p> * * @param tmpReq GetUserRequest * @param tmpHeader GetUserHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetUserResponse */ public GetUserResponse getUserWithOptions(GetUserRequest tmpReq, GetUserHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetUserShrinkRequest request = new GetUserShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetUserShrinkHeaders headers = new GetUserShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("language", request.language); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetUser"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/im/getUser"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetUserResponse()); } /** * <b>summary</b> : * <p>获取专属账号信息</p> * * @param request GetUserRequest * @return GetUserResponse */ public GetUserResponse getUser(GetUserRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetUserHeaders headers = new GetUserHeaders(); return this.getUserWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>根据unionId获取用户userId</p> * * @param tmpReq GetUserIdRequest * @param tmpHeader GetUserIdHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetUserIdResponse */ public GetUserIdResponse getUserIdWithOptions(GetUserIdRequest tmpReq, GetUserIdHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetUserIdShrinkRequest request = new GetUserIdShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetUserIdShrinkHeaders headers = new GetUserIdShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.unionId)) { body.put("UnionId", request.unionId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetUserId"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/im/getUserId"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetUserIdResponse()); } /** * <b>summary</b> : * <p>根据unionId获取用户userId</p> * * @param request GetUserIdRequest * @return GetUserIdResponse */ public GetUserIdResponse getUserId(GetUserIdRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetUserIdHeaders headers = new GetUserIdHeaders(); return this.getUserIdWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>根据orgId和staffId获取用户userId</p> * * @param tmpReq GetUserIdByOrgIdAndStaffIdRequest * @param tmpHeader GetUserIdByOrgIdAndStaffIdHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetUserIdByOrgIdAndStaffIdResponse */ public GetUserIdByOrgIdAndStaffIdResponse getUserIdByOrgIdAndStaffIdWithOptions(GetUserIdByOrgIdAndStaffIdRequest tmpReq, GetUserIdByOrgIdAndStaffIdHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetUserIdByOrgIdAndStaffIdShrinkRequest request = new GetUserIdByOrgIdAndStaffIdShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetUserIdByOrgIdAndStaffIdShrinkHeaders headers = new GetUserIdByOrgIdAndStaffIdShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.orgId)) { body.put("OrgId", request.orgId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetUserIdByOrgIdAndStaffId"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/im/getUserIdByOrgIdAndStaffId"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetUserIdByOrgIdAndStaffIdResponse()); } /** * <b>summary</b> : * <p>根据orgId和staffId获取用户userId</p> * * @param request GetUserIdByOrgIdAndStaffIdRequest * @return GetUserIdByOrgIdAndStaffIdResponse */ public GetUserIdByOrgIdAndStaffIdResponse getUserIdByOrgIdAndStaffId(GetUserIdByOrgIdAndStaffIdRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetUserIdByOrgIdAndStaffIdHeaders headers = new GetUserIdByOrgIdAndStaffIdHeaders(); return this.getUserIdByOrgIdAndStaffIdWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取用户最新的有效的专属账号迁移方案</p> * * @param tmpReq GetUserLatestPlanRequest * @param tmpHeader GetUserLatestPlanHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetUserLatestPlanResponse */ public GetUserLatestPlanResponse getUserLatestPlanWithOptions(GetUserLatestPlanRequest tmpReq, GetUserLatestPlanHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetUserLatestPlanShrinkRequest request = new GetUserLatestPlanShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetUserLatestPlanShrinkHeaders headers = new GetUserLatestPlanShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetUserLatestPlan"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/aliding/v1/indepding/getUserLatestPlan"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetUserLatestPlanResponse()); } /** * <b>summary</b> : * <p>获取用户最新的有效的专属账号迁移方案</p> * * @param request GetUserLatestPlanRequest * @return GetUserLatestPlanResponse */ public GetUserLatestPlanResponse getUserLatestPlan(GetUserLatestPlanRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetUserLatestPlanHeaders headers = new GetUserLatestPlanHeaders(); return this.getUserLatestPlanWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取知识库</p> * * @param tmpReq GetWorkspaceRequest * @param tmpHeader GetWorkspaceHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetWorkspaceResponse */ public GetWorkspaceResponse getWorkspaceWithOptions(GetWorkspaceRequest tmpReq, GetWorkspaceHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetWorkspaceShrinkRequest request = new GetWorkspaceShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetWorkspaceShrinkHeaders headers = new GetWorkspaceShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.withPermissionRole)) { body.put("WithPermissionRole", request.withPermissionRole); } if (!com.aliyun.teautil.Common.isUnset(request.workspaceId)) { body.put("WorkspaceId", request.workspaceId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetWorkspace"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v2/documents/getWorkspace"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetWorkspaceResponse()); } /** * <b>summary</b> : * <p>获取知识库</p> * * @param request GetWorkspaceRequest * @return GetWorkspaceResponse */ public GetWorkspaceResponse getWorkspace(GetWorkspaceRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetWorkspaceHeaders headers = new GetWorkspaceHeaders(); return this.getWorkspaceWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>批量获取知识库</p> * * @param tmpReq GetWorkspacesRequest * @param tmpHeader GetWorkspacesHeaders * @param runtime runtime options for this request RuntimeOptions * @return GetWorkspacesResponse */ public GetWorkspacesResponse getWorkspacesWithOptions(GetWorkspacesRequest tmpReq, GetWorkspacesHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GetWorkspacesShrinkRequest request = new GetWorkspacesShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GetWorkspacesShrinkHeaders headers = new GetWorkspacesShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.option)) { request.optionShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.option, "Option", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.workspaceIds)) { request.workspaceIdsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.workspaceIds, "WorkspaceIds", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.optionShrink)) { body.put("Option", request.optionShrink); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.workspaceIdsShrink)) { body.put("WorkspaceIds", request.workspaceIdsShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GetWorkspaces"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v2/documents/getWorkspaces"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GetWorkspacesResponse()); } /** * <b>summary</b> : * <p>批量获取知识库</p> * * @param request GetWorkspacesRequest * @return GetWorkspacesResponse */ public GetWorkspacesResponse getWorkspaces(GetWorkspacesRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GetWorkspacesHeaders headers = new GetWorkspacesHeaders(); return this.getWorkspacesWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>授予勋章</p> * * @param tmpReq GrantHonorRequest * @param tmpHeader GrantHonorHeaders * @param runtime runtime options for this request RuntimeOptions * @return GrantHonorResponse */ public GrantHonorResponse grantHonorWithOptions(GrantHonorRequest tmpReq, GrantHonorHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); GrantHonorShrinkRequest request = new GrantHonorShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); GrantHonorShrinkHeaders headers = new GrantHonorShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.openConversationIds)) { request.openConversationIdsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.openConversationIds, "openConversationIds", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.receiverUserIds)) { request.receiverUserIdsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.receiverUserIds, "receiverUserIds", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.expirationTime)) { body.put("expirationTime", request.expirationTime); } if (!com.aliyun.teautil.Common.isUnset(request.grantReason)) { body.put("grantReason", request.grantReason); } if (!com.aliyun.teautil.Common.isUnset(request.granterName)) { body.put("granterName", request.granterName); } if (!com.aliyun.teautil.Common.isUnset(request.honorId)) { body.put("honorId", request.honorId); } if (!com.aliyun.teautil.Common.isUnset(request.noticeAnnouncer)) { body.put("noticeAnnouncer", request.noticeAnnouncer); } if (!com.aliyun.teautil.Common.isUnset(request.noticeSingle)) { body.put("noticeSingle", request.noticeSingle); } if (!com.aliyun.teautil.Common.isUnset(request.openConversationIdsShrink)) { body.put("openConversationIds", request.openConversationIdsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.orgId)) { body.put("orgId", request.orgId); } if (!com.aliyun.teautil.Common.isUnset(request.receiverUserIdsShrink)) { body.put("receiverUserIds", request.receiverUserIdsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.senderUserId)) { body.put("senderUserId", request.senderUserId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "GrantHonor"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/aliding/v1/honor/grantHonor"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new GrantHonorResponse()); } /** * <b>summary</b> : * <p>授予勋章</p> * * @param request GrantHonorRequest * @return GrantHonorResponse */ public GrantHonorResponse grantHonor(GrantHonorRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); GrantHonorHeaders headers = new GrantHonorHeaders(); return this.grantHonorWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>初始化文件分片上传</p> * * @param tmpReq InitMultipartFileUploadRequest * @param tmpHeader InitMultipartFileUploadHeaders * @param runtime runtime options for this request RuntimeOptions * @return InitMultipartFileUploadResponse */ public InitMultipartFileUploadResponse initMultipartFileUploadWithOptions(InitMultipartFileUploadRequest tmpReq, InitMultipartFileUploadHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); InitMultipartFileUploadShrinkRequest request = new InitMultipartFileUploadShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); InitMultipartFileUploadShrinkHeaders headers = new InitMultipartFileUploadShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.option)) { request.optionShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.option, "Option", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.optionShrink)) { body.put("Option", request.optionShrink); } if (!com.aliyun.teautil.Common.isUnset(request.parentDentryUuid)) { body.put("ParentDentryUuid", request.parentDentryUuid); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "InitMultipartFileUpload"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/initMultipartFileUpload"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new InitMultipartFileUploadResponse()); } /** * <b>summary</b> : * <p>初始化文件分片上传</p> * * @param request InitMultipartFileUploadRequest * @return InitMultipartFileUploadResponse */ public InitMultipartFileUploadResponse initMultipartFileUpload(InitMultipartFileUploadRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); InitMultipartFileUploadHeaders headers = new InitMultipartFileUploadHeaders(); return this.initMultipartFileUploadWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>在指定列左侧插入若干列</p> * * @param tmpReq InsertColumnsBeforeRequest * @param tmpHeader InsertColumnsBeforeHeaders * @param runtime runtime options for this request RuntimeOptions * @return InsertColumnsBeforeResponse */ public InsertColumnsBeforeResponse insertColumnsBeforeWithOptions(InsertColumnsBeforeRequest tmpReq, InsertColumnsBeforeHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); InsertColumnsBeforeShrinkRequest request = new InsertColumnsBeforeShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); InsertColumnsBeforeShrinkHeaders headers = new InsertColumnsBeforeShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.column)) { body.put("Column", request.column); } if (!com.aliyun.teautil.Common.isUnset(request.columnCount)) { body.put("ColumnCount", request.columnCount); } if (!com.aliyun.teautil.Common.isUnset(request.sheetId)) { body.put("SheetId", request.sheetId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.workbookId)) { body.put("WorkbookId", request.workbookId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "InsertColumnsBefore"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/insertColumnsBefore"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new InsertColumnsBeforeResponse()); } /** * <b>summary</b> : * <p>在指定列左侧插入若干列</p> * * @param request InsertColumnsBeforeRequest * @return InsertColumnsBeforeResponse */ public InsertColumnsBeforeResponse insertColumnsBefore(InsertColumnsBeforeRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); InsertColumnsBeforeHeaders headers = new InsertColumnsBeforeHeaders(); return this.insertColumnsBeforeWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>文档中插入内容</p> * * @param tmpReq InsertContentWithOptionsRequest * @param tmpHeader InsertContentWithOptionsHeaders * @param runtime runtime options for this request RuntimeOptions * @return InsertContentWithOptionsResponse */ public InsertContentWithOptionsResponse insertContentWithOptionsWithOptions(InsertContentWithOptionsRequest tmpReq, InsertContentWithOptionsHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); InsertContentWithOptionsShrinkRequest request = new InsertContentWithOptionsShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); InsertContentWithOptionsShrinkHeaders headers = new InsertContentWithOptionsShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.content)) { request.contentShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.content, "Content", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.path)) { request.pathShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.path, "Path", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.contentShrink)) { body.put("Content", request.contentShrink); } if (!com.aliyun.teautil.Common.isUnset(request.documentId)) { body.put("DocumentId", request.documentId); } if (!com.aliyun.teautil.Common.isUnset(request.index)) { body.put("Index", request.index); } if (!com.aliyun.teautil.Common.isUnset(request.pathShrink)) { body.put("Path", request.pathShrink); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "InsertContentWithOptions"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/insertContentWithOptions"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new InsertContentWithOptionsResponse()); } /** * <b>summary</b> : * <p>文档中插入内容</p> * * @param request InsertContentWithOptionsRequest * @return InsertContentWithOptionsResponse */ public InsertContentWithOptionsResponse insertContentWithOptions(InsertContentWithOptionsRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); InsertContentWithOptionsHeaders headers = new InsertContentWithOptionsHeaders(); return this.insertContentWithOptionsWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>插入下拉列表</p> * * @param tmpReq InsertDropDownListRequest * @param tmpHeader InsertDropDownListHeaders * @param runtime runtime options for this request RuntimeOptions * @return InsertDropDownListResponse */ public InsertDropDownListResponse insertDropDownListWithOptions(InsertDropDownListRequest tmpReq, InsertDropDownListHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); InsertDropDownListShrinkRequest request = new InsertDropDownListShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); InsertDropDownListShrinkHeaders headers = new InsertDropDownListShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.options)) { request.optionsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.options, "Options", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.optionsShrink)) { body.put("Options", request.optionsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.rangeAddress)) { body.put("RangeAddress", request.rangeAddress); } if (!com.aliyun.teautil.Common.isUnset(request.sheetId)) { body.put("SheetId", request.sheetId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.workbookId)) { body.put("WorkbookId", request.workbookId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "InsertDropDownList"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/insertDropDownList"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new InsertDropDownListResponse()); } /** * <b>summary</b> : * <p>插入下拉列表</p> * * @param request InsertDropDownListRequest * @return InsertDropDownListResponse */ public InsertDropDownListResponse insertDropDownList(InsertDropDownListRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); InsertDropDownListHeaders headers = new InsertDropDownListHeaders(); return this.insertDropDownListWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>新增记录</p> * * @param tmpReq InsertMultiDimTableRecordRequest * @param tmpHeader InsertMultiDimTableRecordHeaders * @param runtime runtime options for this request RuntimeOptions * @return InsertMultiDimTableRecordResponse */ public InsertMultiDimTableRecordResponse insertMultiDimTableRecordWithOptions(InsertMultiDimTableRecordRequest tmpReq, InsertMultiDimTableRecordHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); InsertMultiDimTableRecordShrinkRequest request = new InsertMultiDimTableRecordShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); InsertMultiDimTableRecordShrinkHeaders headers = new InsertMultiDimTableRecordShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.records)) { request.recordsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.records, "Records", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.baseId)) { body.put("BaseId", request.baseId); } if (!com.aliyun.teautil.Common.isUnset(request.recordsShrink)) { body.put("Records", request.recordsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.sheetIdOrName)) { body.put("SheetIdOrName", request.sheetIdOrName); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "InsertMultiDimTableRecord"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/table/insertMultiDimTableRecord"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new InsertMultiDimTableRecordResponse()); } /** * <b>summary</b> : * <p>新增记录</p> * * @param request InsertMultiDimTableRecordRequest * @return InsertMultiDimTableRecordResponse */ public InsertMultiDimTableRecordResponse insertMultiDimTableRecord(InsertMultiDimTableRecordRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); InsertMultiDimTableRecordHeaders headers = new InsertMultiDimTableRecordHeaders(); return this.insertMultiDimTableRecordWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>在指定行上方插入若干行</p> * * @param tmpReq InsertRowsBeforeRequest * @param tmpHeader InsertRowsBeforeHeaders * @param runtime runtime options for this request RuntimeOptions * @return InsertRowsBeforeResponse */ public InsertRowsBeforeResponse insertRowsBeforeWithOptions(InsertRowsBeforeRequest tmpReq, InsertRowsBeforeHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); InsertRowsBeforeShrinkRequest request = new InsertRowsBeforeShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); InsertRowsBeforeShrinkHeaders headers = new InsertRowsBeforeShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.row)) { body.put("Row", request.row); } if (!com.aliyun.teautil.Common.isUnset(request.rowCount)) { body.put("RowCount", request.rowCount); } if (!com.aliyun.teautil.Common.isUnset(request.sheetId)) { body.put("SheetId", request.sheetId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.workbookId)) { body.put("WorkbookId", request.workbookId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "InsertRowsBefore"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/insertRowsBefore"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new InsertRowsBeforeResponse()); } /** * <b>summary</b> : * <p>在指定行上方插入若干行</p> * * @param request InsertRowsBeforeRequest * @return InsertRowsBeforeResponse */ public InsertRowsBeforeResponse insertRowsBefore(InsertRowsBeforeRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); InsertRowsBeforeHeaders headers = new InsertRowsBeforeHeaders(); return this.insertRowsBeforeWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>邀请用户入会</p> * * @param tmpReq InviteUsersRequest * @param tmpHeader InviteUsersHeaders * @param runtime runtime options for this request RuntimeOptions * @return InviteUsersResponse */ public InviteUsersResponse inviteUsersWithOptions(InviteUsersRequest tmpReq, InviteUsersHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); InviteUsersShrinkRequest request = new InviteUsersShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); InviteUsersShrinkHeaders headers = new InviteUsersShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.inviteeList)) { request.inviteeListShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.inviteeList, "InviteeList", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.phoneInviteeList)) { request.phoneInviteeListShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.phoneInviteeList, "phoneInviteeList", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.inviteeListShrink)) { body.put("InviteeList", request.inviteeListShrink); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.conferenceId)) { body.put("conferenceId", request.conferenceId); } if (!com.aliyun.teautil.Common.isUnset(request.phoneInviteeListShrink)) { body.put("phoneInviteeList", request.phoneInviteeListShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "InviteUsers"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/inviteUsers"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new InviteUsersResponse()); } /** * <b>summary</b> : * <p>邀请用户入会</p> * * @param request InviteUsersRequest * @return InviteUsersResponse */ public InviteUsersResponse inviteUsers(InviteUsersRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); InviteUsersHeaders headers = new InviteUsersHeaders(); return this.inviteUsersWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>调用助理</p> * * @param request InvokeAssistantRequest * @param headers InvokeAssistantHeaders * @param runtime runtime options for this request RuntimeOptions * @return InvokeAssistantResponse */ public InvokeAssistantResponse invokeAssistantWithOptions(InvokeAssistantRequest request, InvokeAssistantHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.assistantId)) { body.put("assistantId", request.assistantId); } if (!com.aliyun.teautil.Common.isUnset(request.messages)) { body.put("messages", request.messages); } if (!com.aliyun.teautil.Common.isUnset(request.originalAssistantId)) { body.put("originalAssistantId", request.originalAssistantId); } if (!com.aliyun.teautil.Common.isUnset(request.sessionId)) { body.put("sessionId", request.sessionId); } if (!com.aliyun.teautil.Common.isUnset(request.sourceIdOfOriginalAssistantId)) { body.put("sourceIdOfOriginalAssistantId", request.sourceIdOfOriginalAssistantId); } if (!com.aliyun.teautil.Common.isUnset(request.sourceTypeOfOriginalAssistantId)) { body.put("sourceTypeOfOriginalAssistantId", request.sourceTypeOfOriginalAssistantId); } if (!com.aliyun.teautil.Common.isUnset(request.stream)) { body.put("stream", request.stream); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountId)) { realHeaders.put("accountId", com.aliyun.teautil.Common.toJSONString(headers.accountId)); } 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", "InvokeAssistant"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/ai/v1/assistant/invokeAssistant"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "json"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new InvokeAssistantResponse()); } /** * <b>summary</b> : * <p>调用助理</p> * * @param request InvokeAssistantRequest * @return InvokeAssistantResponse */ public InvokeAssistantResponse invokeAssistant(InvokeAssistantRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); InvokeAssistantHeaders headers = new InvokeAssistantHeaders(); return this.invokeAssistantWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>调用AI技能</p> * * @param tmpReq InvokeSkillRequest * @param tmpHeader InvokeSkillHeaders * @param runtime runtime options for this request RuntimeOptions * @return InvokeSkillResponse */ public InvokeSkillResponse invokeSkillWithOptions(InvokeSkillRequest tmpReq, InvokeSkillHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); InvokeSkillShrinkRequest request = new InvokeSkillShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); InvokeSkillShrinkHeaders headers = new InvokeSkillShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.params)) { request.paramsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.params, "Params", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.paramsShrink)) { body.put("Params", request.paramsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.skillId)) { body.put("SkillId", request.skillId); } if (!com.aliyun.teautil.Common.isUnset(request.stream)) { body.put("Stream", request.stream); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "InvokeSkill"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/ai/v1/skill/invoke"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new InvokeSkillResponse()); } /** * <b>summary</b> : * <p>调用AI技能</p> * * @param request InvokeSkillRequest * @return InvokeSkillResponse */ public InvokeSkillResponse invokeSkill(InvokeSkillRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); InvokeSkillHeaders headers = new InvokeSkillHeaders(); return this.invokeSkillWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询宜搭应用列表</p> * * @param request ListApplicationRequest * @param tmpHeader ListApplicationHeaders * @param runtime runtime options for this request RuntimeOptions * @return ListApplicationResponse */ public ListApplicationResponse listApplicationWithOptions(ListApplicationRequest request, ListApplicationHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); ListApplicationShrinkHeaders headers = new ListApplicationShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appFilter)) { body.put("AppFilter", request.appFilter); } if (!com.aliyun.teautil.Common.isUnset(request.appNameSearchKeyword)) { body.put("AppNameSearchKeyword", request.appNameSearchKeyword); } if (!com.aliyun.teautil.Common.isUnset(request.corpId)) { body.put("CorpId", request.corpId); } if (!com.aliyun.teautil.Common.isUnset(request.pageNumber)) { body.put("PageNumber", request.pageNumber); } if (!com.aliyun.teautil.Common.isUnset(request.pageSize)) { body.put("PageSize", request.pageSize); } if (!com.aliyun.teautil.Common.isUnset(request.token)) { body.put("Token", request.token); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "ListApplication"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/listApplication"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new ListApplicationResponse()); } /** * <b>summary</b> : * <p>查询宜搭应用列表</p> * * @param request ListApplicationRequest * @return ListApplicationResponse */ public ListApplicationResponse listApplication(ListApplicationRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); ListApplicationHeaders headers = new ListApplicationHeaders(); return this.listApplicationWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询日历</p> * * @param tmpReq ListCalendarsRequest * @param tmpHeader ListCalendarsHeaders * @param runtime runtime options for this request RuntimeOptions * @return ListCalendarsResponse */ public ListCalendarsResponse listCalendarsWithOptions(ListCalendarsRequest tmpReq, ListCalendarsHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); ListCalendarsShrinkRequest request = new ListCalendarsShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); ListCalendarsShrinkHeaders headers = new ListCalendarsShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.request)) { request.requestShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.request, "Request", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.requestShrink)) { body.put("Request", request.requestShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "ListCalendars"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/calendar/listCalendars"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new ListCalendarsResponse()); } /** * <b>summary</b> : * <p>查询日历</p> * * @param request ListCalendarsRequest * @return ListCalendarsResponse */ public ListCalendarsResponse listCalendars(ListCalendarsRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); ListCalendarsHeaders headers = new ListCalendarsHeaders(); return this.listCalendarsWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取文件或文件夹列表</p> * * @param tmpReq ListDentriesRequest * @param tmpHeader ListDentriesHeaders * @param runtime runtime options for this request RuntimeOptions * @return ListDentriesResponse */ public ListDentriesResponse listDentriesWithOptions(ListDentriesRequest tmpReq, ListDentriesHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); ListDentriesShrinkRequest request = new ListDentriesShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); ListDentriesShrinkHeaders headers = new ListDentriesShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.maxResults)) { body.put("MaxResults", request.maxResults); } if (!com.aliyun.teautil.Common.isUnset(request.nextToken)) { body.put("NextToken", request.nextToken); } if (!com.aliyun.teautil.Common.isUnset(request.order)) { body.put("Order", request.order); } if (!com.aliyun.teautil.Common.isUnset(request.orderBy)) { body.put("OrderBy", request.orderBy); } if (!com.aliyun.teautil.Common.isUnset(request.parentId)) { body.put("ParentId", request.parentId); } if (!com.aliyun.teautil.Common.isUnset(request.spaceId)) { body.put("SpaceId", request.spaceId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.withThumbnail)) { body.put("WithThumbnail", request.withThumbnail); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "ListDentries"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/listDentries"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new ListDentriesResponse()); } /** * <b>summary</b> : * <p>获取文件或文件夹列表</p> * * @param request ListDentriesRequest * @return ListDentriesResponse */ public ListDentriesResponse listDentries(ListDentriesRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); ListDentriesHeaders headers = new ListDentriesHeaders(); return this.listDentriesWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取钉盘空间列表</p> * * @param tmpReq ListDriveSpacesRequest * @param tmpHeader ListDriveSpacesHeaders * @param runtime runtime options for this request RuntimeOptions * @return ListDriveSpacesResponse */ public ListDriveSpacesResponse listDriveSpacesWithOptions(ListDriveSpacesRequest tmpReq, ListDriveSpacesHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); ListDriveSpacesShrinkRequest request = new ListDriveSpacesShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); ListDriveSpacesShrinkHeaders headers = new ListDriveSpacesShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.maxResults)) { body.put("MaxResults", request.maxResults); } if (!com.aliyun.teautil.Common.isUnset(request.nextToken)) { body.put("NextToken", request.nextToken); } if (!com.aliyun.teautil.Common.isUnset(request.spaceType)) { body.put("SpaceType", request.spaceType); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "ListDriveSpaces"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/listDriveSpaces"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new ListDriveSpacesResponse()); } /** * <b>summary</b> : * <p>获取钉盘空间列表</p> * * @param request ListDriveSpacesRequest * @return ListDriveSpacesResponse */ public ListDriveSpacesResponse listDriveSpaces(ListDriveSpacesRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); ListDriveSpacesHeaders headers = new ListDriveSpacesHeaders(); return this.listDriveSpacesWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询日程列表</p> * * @param request ListEventsRequest * @param tmpHeader ListEventsHeaders * @param runtime runtime options for this request RuntimeOptions * @return ListEventsResponse */ public ListEventsResponse listEventsWithOptions(ListEventsRequest request, ListEventsHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); ListEventsShrinkHeaders headers = new ListEventsShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.calendarId)) { body.put("CalendarId", request.calendarId); } if (!com.aliyun.teautil.Common.isUnset(request.maxAttendees)) { body.put("MaxAttendees", request.maxAttendees); } if (!com.aliyun.teautil.Common.isUnset(request.maxResults)) { body.put("MaxResults", request.maxResults); } if (!com.aliyun.teautil.Common.isUnset(request.nextToken)) { body.put("NextToken", request.nextToken); } if (!com.aliyun.teautil.Common.isUnset(request.seriesMasterId)) { body.put("SeriesMasterId", request.seriesMasterId); } if (!com.aliyun.teautil.Common.isUnset(request.showDeleted)) { body.put("ShowDeleted", request.showDeleted); } if (!com.aliyun.teautil.Common.isUnset(request.syncToken)) { body.put("SyncToken", request.syncToken); } if (!com.aliyun.teautil.Common.isUnset(request.timeMax)) { body.put("TimeMax", request.timeMax); } if (!com.aliyun.teautil.Common.isUnset(request.timeMin)) { body.put("TimeMin", request.timeMin); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "ListEvents"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/calendar/listEvents"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new ListEventsResponse()); } /** * <b>summary</b> : * <p>查询日程列表</p> * * @param request ListEventsRequest * @return ListEventsResponse */ public ListEventsResponse listEvents(ListEventsRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); ListEventsHeaders headers = new ListEventsHeaders(); return this.listEventsWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询日程视图</p> * * @param request ListEventsViewRequest * @param tmpHeader ListEventsViewHeaders * @param runtime runtime options for this request RuntimeOptions * @return ListEventsViewResponse */ public ListEventsViewResponse listEventsViewWithOptions(ListEventsViewRequest request, ListEventsViewHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); ListEventsViewShrinkHeaders headers = new ListEventsViewShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.calendarId)) { body.put("CalendarId", request.calendarId); } if (!com.aliyun.teautil.Common.isUnset(request.maxAttendees)) { body.put("MaxAttendees", request.maxAttendees); } if (!com.aliyun.teautil.Common.isUnset(request.maxResults)) { body.put("MaxResults", request.maxResults); } if (!com.aliyun.teautil.Common.isUnset(request.nextToken)) { body.put("NextToken", request.nextToken); } if (!com.aliyun.teautil.Common.isUnset(request.timeMax)) { body.put("TimeMax", request.timeMax); } if (!com.aliyun.teautil.Common.isUnset(request.timeMin)) { body.put("TimeMin", request.timeMin); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "ListEventsView"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/calendar/listEventsView"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new ListEventsViewResponse()); } /** * <b>summary</b> : * <p>查询日程视图</p> * * @param request ListEventsViewRequest * @return ListEventsViewResponse */ public ListEventsViewResponse listEventsView(ListEventsViewRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); ListEventsViewHeaders headers = new ListEventsViewHeaders(); return this.listEventsViewWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>批量查询宜搭表单实例的评论</p> * * @param tmpReq ListFormRemarksRequest * @param tmpHeader ListFormRemarksHeaders * @param runtime runtime options for this request RuntimeOptions * @return ListFormRemarksResponse */ public ListFormRemarksResponse listFormRemarksWithOptions(ListFormRemarksRequest tmpReq, ListFormRemarksHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); ListFormRemarksShrinkRequest request = new ListFormRemarksShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); ListFormRemarksShrinkHeaders headers = new ListFormRemarksShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.formInstanceIdList)) { request.formInstanceIdListShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.formInstanceIdList, "FormInstanceIdList", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.formInstanceIdListShrink)) { body.put("FormInstanceIdList", request.formInstanceIdListShrink); } if (!com.aliyun.teautil.Common.isUnset(request.formUuid)) { body.put("FormUuid", request.formUuid); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "ListFormRemarks"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/listFormRemarks"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new ListFormRemarksResponse()); } /** * <b>summary</b> : * <p>批量查询宜搭表单实例的评论</p> * * @param request ListFormRemarksRequest * @return ListFormRemarksResponse */ public ListFormRemarksResponse listFormRemarks(ListFormRemarksRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); ListFormRemarksHeaders headers = new ListFormRemarksHeaders(); return this.listFormRemarksWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询消息</p> * * @param request ListMessageRequest * @param headers ListMessageHeaders * @param runtime runtime options for this request RuntimeOptions * @return ListMessageResponse */ public ListMessageResponse listMessageWithOptions(ListMessageRequest request, ListMessageHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.assistantId)) { body.put("assistantId", request.assistantId); } if (!com.aliyun.teautil.Common.isUnset(request.limit)) { body.put("limit", request.limit); } if (!com.aliyun.teautil.Common.isUnset(request.order)) { body.put("order", request.order); } if (!com.aliyun.teautil.Common.isUnset(request.originalAssistantId)) { body.put("originalAssistantId", request.originalAssistantId); } if (!com.aliyun.teautil.Common.isUnset(request.runId)) { body.put("runId", request.runId); } if (!com.aliyun.teautil.Common.isUnset(request.sourceIdOfOriginalAssistantId)) { body.put("sourceIdOfOriginalAssistantId", request.sourceIdOfOriginalAssistantId); } if (!com.aliyun.teautil.Common.isUnset(request.sourceTypeOfOriginalAssistantId)) { body.put("sourceTypeOfOriginalAssistantId", request.sourceTypeOfOriginalAssistantId); } if (!com.aliyun.teautil.Common.isUnset(request.threadId)) { body.put("threadId", request.threadId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountId)) { realHeaders.put("accountId", com.aliyun.teautil.Common.toJSONString(headers.accountId)); } 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", "ListMessage"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/ai/v1/assistant/listMessage"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "json"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new ListMessageResponse()); } /** * <b>summary</b> : * <p>查询消息</p> * * @param request ListMessageRequest * @return ListMessageResponse */ public ListMessageResponse listMessage(ListMessageRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); ListMessageHeaders headers = new ListMessageHeaders(); return this.listMessageWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>列出多行记录</p> * * @param tmpReq ListMultiDimTableRecordsRequest * @param tmpHeader ListMultiDimTableRecordsHeaders * @param runtime runtime options for this request RuntimeOptions * @return ListMultiDimTableRecordsResponse */ public ListMultiDimTableRecordsResponse listMultiDimTableRecordsWithOptions(ListMultiDimTableRecordsRequest tmpReq, ListMultiDimTableRecordsHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); ListMultiDimTableRecordsShrinkRequest request = new ListMultiDimTableRecordsShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); ListMultiDimTableRecordsShrinkHeaders headers = new ListMultiDimTableRecordsShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.filter)) { request.filterShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.filter, "Filter", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.baseId)) { body.put("BaseId", request.baseId); } if (!com.aliyun.teautil.Common.isUnset(request.filterShrink)) { body.put("Filter", request.filterShrink); } if (!com.aliyun.teautil.Common.isUnset(request.maxResults)) { body.put("MaxResults", request.maxResults); } if (!com.aliyun.teautil.Common.isUnset(request.nextToken)) { body.put("NextToken", request.nextToken); } if (!com.aliyun.teautil.Common.isUnset(request.sheetIdOrName)) { body.put("SheetIdOrName", request.sheetIdOrName); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "ListMultiDimTableRecords"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/table/listMultiDimTableRecords"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new ListMultiDimTableRecordsResponse()); } /** * <b>summary</b> : * <p>列出多行记录</p> * * @param request ListMultiDimTableRecordsRequest * @return ListMultiDimTableRecordsResponse */ public ListMultiDimTableRecordsResponse listMultiDimTableRecords(ListMultiDimTableRecordsRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); ListMultiDimTableRecordsHeaders headers = new ListMultiDimTableRecordsHeaders(); return this.listMultiDimTableRecordsWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取应用下的页面列表</p> * * @param request ListNavigationByFormTypeRequest * @param tmpHeader ListNavigationByFormTypeHeaders * @param runtime runtime options for this request RuntimeOptions * @return ListNavigationByFormTypeResponse */ public ListNavigationByFormTypeResponse listNavigationByFormTypeWithOptions(ListNavigationByFormTypeRequest request, ListNavigationByFormTypeHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); ListNavigationByFormTypeShrinkHeaders headers = new ListNavigationByFormTypeShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.formType)) { body.put("FormType", request.formType); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "ListNavigationByFormType"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/listNavigationByFormType"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new ListNavigationByFormTypeResponse()); } /** * <b>summary</b> : * <p>获取应用下的页面列表</p> * * @param request ListNavigationByFormTypeRequest * @return ListNavigationByFormTypeResponse */ public ListNavigationByFormTypeResponse listNavigationByFormType(ListNavigationByFormTypeRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); ListNavigationByFormTypeHeaders headers = new ListNavigationByFormTypeHeaders(); return this.listNavigationByFormTypeWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取节点列表</p> * * @param tmpReq ListNodesRequest * @param tmpHeader ListNodesHeaders * @param runtime runtime options for this request RuntimeOptions * @return ListNodesResponse */ public ListNodesResponse listNodesWithOptions(ListNodesRequest tmpReq, ListNodesHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); ListNodesShrinkRequest request = new ListNodesShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); ListNodesShrinkHeaders headers = new ListNodesShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.maxResults)) { body.put("MaxResults", request.maxResults); } if (!com.aliyun.teautil.Common.isUnset(request.nextToken)) { body.put("NextToken", request.nextToken); } if (!com.aliyun.teautil.Common.isUnset(request.parentNodeId)) { body.put("ParentNodeId", request.parentNodeId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.withPermissionRole)) { body.put("WithPermissionRole", request.withPermissionRole); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "ListNodes"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v2/documents/listNodes"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new ListNodesResponse()); } /** * <b>summary</b> : * <p>获取节点列表</p> * * @param request ListNodesRequest * @return ListNodesResponse */ public ListNodesResponse listNodes(ListNodesRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); ListNodesHeaders headers = new ListNodesHeaders(); return this.listNodesWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取文件权限列表</p> * * @param tmpReq ListPermissionsRequest * @param tmpHeader ListPermissionsHeaders * @param runtime runtime options for this request RuntimeOptions * @return ListPermissionsResponse */ public ListPermissionsResponse listPermissionsWithOptions(ListPermissionsRequest tmpReq, ListPermissionsHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); ListPermissionsShrinkRequest request = new ListPermissionsShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); ListPermissionsShrinkHeaders headers = new ListPermissionsShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.option)) { request.optionShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.option, "Option", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.dentryUuid)) { body.put("DentryUuid", request.dentryUuid); } if (!com.aliyun.teautil.Common.isUnset(request.optionShrink)) { body.put("Option", request.optionShrink); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "ListPermissions"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/listPermissions"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new ListPermissionsResponse()); } /** * <b>summary</b> : * <p>获取文件权限列表</p> * * @param request ListPermissionsRequest * @return ListPermissionsResponse */ public ListPermissionsResponse listPermissions(ListPermissionsRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); ListPermissionsHeaders headers = new ListPermissionsHeaders(); return this.listPermissionsWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取用户发出的日志列表</p> * * @param tmpReq ListReportRequest * @param tmpHeader ListReportHeaders * @param runtime runtime options for this request RuntimeOptions * @return ListReportResponse */ public ListReportResponse listReportWithOptions(ListReportRequest tmpReq, ListReportHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); ListReportShrinkRequest request = new ListReportShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); ListReportShrinkHeaders headers = new ListReportShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.cursor)) { body.put("Cursor", request.cursor); } if (!com.aliyun.teautil.Common.isUnset(request.endTime)) { body.put("EndTime", request.endTime); } if (!com.aliyun.teautil.Common.isUnset(request.modifiedEndTime)) { body.put("ModifiedEndTime", request.modifiedEndTime); } if (!com.aliyun.teautil.Common.isUnset(request.modifiedStartTime)) { body.put("ModifiedStartTime", request.modifiedStartTime); } if (!com.aliyun.teautil.Common.isUnset(request.size)) { body.put("Size", request.size); } if (!com.aliyun.teautil.Common.isUnset(request.startTime)) { body.put("StartTime", request.startTime); } if (!com.aliyun.teautil.Common.isUnset(request.templateName)) { body.put("TemplateName", request.templateName); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "ListReport"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/log/listReport"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new ListReportResponse()); } /** * <b>summary</b> : * <p>获取用户发出的日志列表</p> * * @param request ListReportRequest * @return ListReportResponse */ public ListReportResponse listReport(ListReportRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); ListReportHeaders headers = new ListReportHeaders(); return this.listReportWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>列出AI技能</p> * * @param request ListSkillRequest * @param tmpHeader ListSkillHeaders * @param runtime runtime options for this request RuntimeOptions * @return ListSkillResponse */ public ListSkillResponse listSkillWithOptions(ListSkillRequest request, ListSkillHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); ListSkillShrinkHeaders headers = new ListSkillShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.groupId)) { body.put("groupId", request.groupId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "ListSkill"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/ai/v1/skill/listSkill"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new ListSkillResponse()); } /** * <b>summary</b> : * <p>列出AI技能</p> * * @param request ListSkillRequest * @return ListSkillResponse */ public ListSkillResponse listSkill(ListSkillRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); ListSkillHeaders headers = new ListSkillHeaders(); return this.listSkillWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取子表组件数据</p> * * @param request ListTableDataByFormInstanceIdTableIdRequest * @param tmpHeader ListTableDataByFormInstanceIdTableIdHeaders * @param runtime runtime options for this request RuntimeOptions * @return ListTableDataByFormInstanceIdTableIdResponse */ public ListTableDataByFormInstanceIdTableIdResponse listTableDataByFormInstanceIdTableIdWithOptions(ListTableDataByFormInstanceIdTableIdRequest request, ListTableDataByFormInstanceIdTableIdHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); ListTableDataByFormInstanceIdTableIdShrinkHeaders headers = new ListTableDataByFormInstanceIdTableIdShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.formInstanceId)) { body.put("FormInstanceId", request.formInstanceId); } if (!com.aliyun.teautil.Common.isUnset(request.formUuid)) { body.put("FormUuid", request.formUuid); } if (!com.aliyun.teautil.Common.isUnset(request.pageNumber)) { body.put("PageNumber", request.pageNumber); } if (!com.aliyun.teautil.Common.isUnset(request.pageSize)) { body.put("PageSize", request.pageSize); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } if (!com.aliyun.teautil.Common.isUnset(request.tableFieldId)) { body.put("TableFieldId", request.tableFieldId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "ListTableDataByFormInstanceIdTableId"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/listTableDataByFormInstanceIdTableId"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new ListTableDataByFormInstanceIdTableIdResponse()); } /** * <b>summary</b> : * <p>获取子表组件数据</p> * * @param request ListTableDataByFormInstanceIdTableIdRequest * @return ListTableDataByFormInstanceIdTableIdResponse */ public ListTableDataByFormInstanceIdTableIdResponse listTableDataByFormInstanceIdTableId(ListTableDataByFormInstanceIdTableIdRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); ListTableDataByFormInstanceIdTableIdHeaders headers = new ListTableDataByFormInstanceIdTableIdHeaders(); return this.listTableDataByFormInstanceIdTableIdWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取知识小组列表</p> * * @param tmpReq ListTeamsRequest * @param tmpHeader ListTeamsHeaders * @param runtime runtime options for this request RuntimeOptions * @return ListTeamsResponse */ public ListTeamsResponse listTeamsWithOptions(ListTeamsRequest tmpReq, ListTeamsHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); ListTeamsShrinkRequest request = new ListTeamsShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); ListTeamsShrinkHeaders headers = new ListTeamsShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.maxResults)) { body.put("MaxResults", request.maxResults); } if (!com.aliyun.teautil.Common.isUnset(request.nextToken)) { body.put("NextToken", request.nextToken); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "ListTeams"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v2/documents/listTeams"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new ListTeamsResponse()); } /** * <b>summary</b> : * <p>获取知识小组列表</p> * * @param request ListTeamsRequest * @return ListTeamsResponse */ public ListTeamsResponse listTeams(ListTeamsRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); ListTeamsHeaders headers = new ListTeamsHeaders(); return this.listTeamsWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询文档模板</p> * * @param tmpReq ListTemplateRequest * @param tmpHeader ListTemplateHeaders * @param runtime runtime options for this request RuntimeOptions * @return ListTemplateResponse */ public ListTemplateResponse listTemplateWithOptions(ListTemplateRequest tmpReq, ListTemplateHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); ListTemplateShrinkRequest request = new ListTemplateShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); ListTemplateShrinkHeaders headers = new ListTemplateShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.maxResults)) { body.put("MaxResults", request.maxResults); } if (!com.aliyun.teautil.Common.isUnset(request.nextToken)) { body.put("NextToken", request.nextToken); } if (!com.aliyun.teautil.Common.isUnset(request.templateType)) { body.put("TemplateType", request.templateType); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.workspaceId)) { body.put("WorkspaceId", request.workspaceId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "ListTemplate"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/listTemplate"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new ListTemplateResponse()); } /** * <b>summary</b> : * <p>查询文档模板</p> * * @param request ListTemplateRequest * @return ListTemplateResponse */ public ListTemplateResponse listTemplate(ListTemplateRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); ListTemplateHeaders headers = new ListTemplateHeaders(); return this.listTemplateWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询工单操作记录</p> * * @param tmpReq ListTicketOperateRecordRequest * @param tmpHeader ListTicketOperateRecordHeaders * @param runtime runtime options for this request RuntimeOptions * @return ListTicketOperateRecordResponse */ public ListTicketOperateRecordResponse listTicketOperateRecordWithOptions(ListTicketOperateRecordRequest tmpReq, ListTicketOperateRecordHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); ListTicketOperateRecordShrinkRequest request = new ListTicketOperateRecordShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); ListTicketOperateRecordShrinkHeaders headers = new ListTicketOperateRecordShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.openTeamId)) { body.put("OpenTeamId", request.openTeamId); } if (!com.aliyun.teautil.Common.isUnset(request.openTicketId)) { body.put("OpenTicketId", request.openTicketId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "ListTicketOperateRecord"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ticket/listTicketOperateRecord"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new ListTicketOperateRecordResponse()); } /** * <b>summary</b> : * <p>查询工单操作记录</p> * * @param request ListTicketOperateRecordRequest * @return ListTicketOperateRecordResponse */ public ListTicketOperateRecordResponse listTicketOperateRecord(ListTicketOperateRecordRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); ListTicketOperateRecordHeaders headers = new ListTicketOperateRecordHeaders(); return this.listTicketOperateRecordWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取知识库列表</p> * * @param tmpReq ListWorkspacesRequest * @param tmpHeader ListWorkspacesHeaders * @param runtime runtime options for this request RuntimeOptions * @return ListWorkspacesResponse */ public ListWorkspacesResponse listWorkspacesWithOptions(ListWorkspacesRequest tmpReq, ListWorkspacesHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); ListWorkspacesShrinkRequest request = new ListWorkspacesShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); ListWorkspacesShrinkHeaders headers = new ListWorkspacesShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.maxResults)) { body.put("MaxResults", request.maxResults); } if (!com.aliyun.teautil.Common.isUnset(request.nextToken)) { body.put("NextToken", request.nextToken); } if (!com.aliyun.teautil.Common.isUnset(request.orderBy)) { body.put("OrderBy", request.orderBy); } if (!com.aliyun.teautil.Common.isUnset(request.teamId)) { body.put("TeamId", request.teamId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.withPermissionRole)) { body.put("WithPermissionRole", request.withPermissionRole); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "ListWorkspaces"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v2/documents/listWorkspaces"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new ListWorkspacesResponse()); } /** * <b>summary</b> : * <p>获取知识库列表</p> * * @param request ListWorkspacesRequest * @return ListWorkspacesResponse */ public ListWorkspacesResponse listWorkspaces(ListWorkspacesRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); ListWorkspacesHeaders headers = new ListWorkspacesHeaders(); return this.listWorkspacesWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>修改日程</p> * * @param tmpReq PatchEventRequest * @param tmpHeader PatchEventHeaders * @param runtime runtime options for this request RuntimeOptions * @return PatchEventResponse */ public PatchEventResponse patchEventWithOptions(PatchEventRequest tmpReq, PatchEventHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); PatchEventShrinkRequest request = new PatchEventShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); PatchEventShrinkHeaders headers = new PatchEventShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.attendees)) { request.attendeesShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.attendees, "Attendees", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.cardInstances)) { request.cardInstancesShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.cardInstances, "CardInstances", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.end)) { request.endShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.end, "End", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.extra)) { request.extraShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.extra, "Extra", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.location)) { request.locationShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.location, "Location", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.recurrence)) { request.recurrenceShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.recurrence, "Recurrence", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.reminders)) { request.remindersShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.reminders, "Reminders", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.start)) { request.startShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.start, "Start", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.attendeesShrink)) { body.put("Attendees", request.attendeesShrink); } if (!com.aliyun.teautil.Common.isUnset(request.calendarId)) { body.put("CalendarId", request.calendarId); } if (!com.aliyun.teautil.Common.isUnset(request.cardInstancesShrink)) { body.put("CardInstances", request.cardInstancesShrink); } if (!com.aliyun.teautil.Common.isUnset(request.description)) { body.put("Description", request.description); } if (!com.aliyun.teautil.Common.isUnset(request.endShrink)) { body.put("End", request.endShrink); } if (!com.aliyun.teautil.Common.isUnset(request.eventId)) { body.put("EventId", request.eventId); } if (!com.aliyun.teautil.Common.isUnset(request.extraShrink)) { body.put("Extra", request.extraShrink); } if (!com.aliyun.teautil.Common.isUnset(request.isAllDay)) { body.put("IsAllDay", request.isAllDay); } if (!com.aliyun.teautil.Common.isUnset(request.locationShrink)) { body.put("Location", request.locationShrink); } if (!com.aliyun.teautil.Common.isUnset(request.recurrenceShrink)) { body.put("Recurrence", request.recurrenceShrink); } if (!com.aliyun.teautil.Common.isUnset(request.remindersShrink)) { body.put("Reminders", request.remindersShrink); } if (!com.aliyun.teautil.Common.isUnset(request.startShrink)) { body.put("Start", request.startShrink); } if (!com.aliyun.teautil.Common.isUnset(request.summary)) { body.put("Summary", request.summary); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "PatchEvent"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/calendar/patchEvent"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new PatchEventResponse()); } /** * <b>summary</b> : * <p>修改日程</p> * * @param request PatchEventRequest * @return PatchEventResponse */ public PatchEventResponse patchEvent(PatchEventRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); PatchEventHeaders headers = new PatchEventHeaders(); return this.patchEventWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询会议录制中的文本信息</p> * * @param tmpReq QueryCloudRecordTextRequest * @param tmpHeader QueryCloudRecordTextHeaders * @param runtime runtime options for this request RuntimeOptions * @return QueryCloudRecordTextResponse */ public QueryCloudRecordTextResponse queryCloudRecordTextWithOptions(QueryCloudRecordTextRequest tmpReq, QueryCloudRecordTextHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); QueryCloudRecordTextShrinkRequest request = new QueryCloudRecordTextShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); QueryCloudRecordTextShrinkHeaders headers = new QueryCloudRecordTextShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.direction)) { body.put("Direction", request.direction); } if (!com.aliyun.teautil.Common.isUnset(request.maxResults)) { body.put("MaxResults", request.maxResults); } if (!com.aliyun.teautil.Common.isUnset(request.nextToken)) { body.put("NextToken", request.nextToken); } if (!com.aliyun.teautil.Common.isUnset(request.startTime)) { body.put("StartTime", request.startTime); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.conferenceId)) { body.put("conferenceId", request.conferenceId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "QueryCloudRecordText"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/queryCloudRecordText"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new QueryCloudRecordTextResponse()); } /** * <b>summary</b> : * <p>查询会议录制中的文本信息</p> * * @param request QueryCloudRecordTextRequest * @return QueryCloudRecordTextResponse */ public QueryCloudRecordTextResponse queryCloudRecordText(QueryCloudRecordTextRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); QueryCloudRecordTextHeaders headers = new QueryCloudRecordTextHeaders(); return this.queryCloudRecordTextWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询会议录制的详情信息</p> * * @param tmpReq QueryCloudRecordVideoRequest * @param tmpHeader QueryCloudRecordVideoHeaders * @param runtime runtime options for this request RuntimeOptions * @return QueryCloudRecordVideoResponse */ public QueryCloudRecordVideoResponse queryCloudRecordVideoWithOptions(QueryCloudRecordVideoRequest tmpReq, QueryCloudRecordVideoHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); QueryCloudRecordVideoShrinkRequest request = new QueryCloudRecordVideoShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); QueryCloudRecordVideoShrinkHeaders headers = new QueryCloudRecordVideoShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.conferenceId)) { body.put("conferenceId", request.conferenceId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "QueryCloudRecordVideo"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/queryCloudRecordVideo"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new QueryCloudRecordVideoResponse()); } /** * <b>summary</b> : * <p>查询会议录制的详情信息</p> * * @param request QueryCloudRecordVideoRequest * @return QueryCloudRecordVideoResponse */ public QueryCloudRecordVideoResponse queryCloudRecordVideo(QueryCloudRecordVideoRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); QueryCloudRecordVideoHeaders headers = new QueryCloudRecordVideoHeaders(); return this.queryCloudRecordVideoWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询会议录制中的视频信息</p> * * @param tmpReq QueryCloudRecordVideoPlayInfoRequest * @param tmpHeader QueryCloudRecordVideoPlayInfoHeaders * @param runtime runtime options for this request RuntimeOptions * @return QueryCloudRecordVideoPlayInfoResponse */ public QueryCloudRecordVideoPlayInfoResponse queryCloudRecordVideoPlayInfoWithOptions(QueryCloudRecordVideoPlayInfoRequest tmpReq, QueryCloudRecordVideoPlayInfoHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); QueryCloudRecordVideoPlayInfoShrinkRequest request = new QueryCloudRecordVideoPlayInfoShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); QueryCloudRecordVideoPlayInfoShrinkHeaders headers = new QueryCloudRecordVideoPlayInfoShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.conferenceId)) { body.put("ConferenceId", request.conferenceId); } if (!com.aliyun.teautil.Common.isUnset(request.mediaId)) { body.put("MediaId", request.mediaId); } if (!com.aliyun.teautil.Common.isUnset(request.regionId)) { body.put("RegionId", request.regionId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "QueryCloudRecordVideoPlayInfo"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/queryCloudRecordVideoPlayInfo"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new QueryCloudRecordVideoPlayInfoResponse()); } /** * <b>summary</b> : * <p>查询会议录制中的视频信息</p> * * @param request QueryCloudRecordVideoPlayInfoRequest * @return QueryCloudRecordVideoPlayInfoResponse */ public QueryCloudRecordVideoPlayInfoResponse queryCloudRecordVideoPlayInfo(QueryCloudRecordVideoPlayInfoRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); QueryCloudRecordVideoPlayInfoHeaders headers = new QueryCloudRecordVideoPlayInfoHeaders(); return this.queryCloudRecordVideoPlayInfoWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询视频会议信息</p> * * @param request QueryConferenceInfoRequest * @param tmpHeader QueryConferenceInfoHeaders * @param runtime runtime options for this request RuntimeOptions * @return QueryConferenceInfoResponse */ public QueryConferenceInfoResponse queryConferenceInfoWithOptions(QueryConferenceInfoRequest request, QueryConferenceInfoHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); QueryConferenceInfoShrinkHeaders headers = new QueryConferenceInfoShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.conferenceId)) { body.put("conferenceId", request.conferenceId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "QueryConferenceInfo"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/queryConferenceInfo"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new QueryConferenceInfoResponse()); } /** * <b>summary</b> : * <p>查询视频会议信息</p> * * @param request QueryConferenceInfoRequest * @return QueryConferenceInfoResponse */ public QueryConferenceInfoResponse queryConferenceInfo(QueryConferenceInfoRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); QueryConferenceInfoHeaders headers = new QueryConferenceInfoHeaders(); return this.queryConferenceInfoWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>根据会议码查询视频会议信息</p> * * @param tmpReq QueryConferenceInfoByRoomCodeRequest * @param tmpHeader QueryConferenceInfoByRoomCodeHeaders * @param runtime runtime options for this request RuntimeOptions * @return QueryConferenceInfoByRoomCodeResponse */ public QueryConferenceInfoByRoomCodeResponse queryConferenceInfoByRoomCodeWithOptions(QueryConferenceInfoByRoomCodeRequest tmpReq, QueryConferenceInfoByRoomCodeHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); QueryConferenceInfoByRoomCodeShrinkRequest request = new QueryConferenceInfoByRoomCodeShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); QueryConferenceInfoByRoomCodeShrinkHeaders headers = new QueryConferenceInfoByRoomCodeShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.maxResults)) { body.put("maxResults", request.maxResults); } if (!com.aliyun.teautil.Common.isUnset(request.nextToken)) { body.put("nextToken", request.nextToken); } if (!com.aliyun.teautil.Common.isUnset(request.roomCode)) { body.put("roomCode", request.roomCode); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "QueryConferenceInfoByRoomCode"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/queryConferenceInfoByRoomCode"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new QueryConferenceInfoByRoomCodeResponse()); } /** * <b>summary</b> : * <p>根据会议码查询视频会议信息</p> * * @param request QueryConferenceInfoByRoomCodeRequest * @return QueryConferenceInfoByRoomCodeResponse */ public QueryConferenceInfoByRoomCodeResponse queryConferenceInfoByRoomCode(QueryConferenceInfoByRoomCodeRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); QueryConferenceInfoByRoomCodeHeaders headers = new QueryConferenceInfoByRoomCodeHeaders(); return this.queryConferenceInfoByRoomCodeWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询视频会议成员</p> * * @param tmpReq QueryConferenceMembersRequest * @param tmpHeader QueryConferenceMembersHeaders * @param runtime runtime options for this request RuntimeOptions * @return QueryConferenceMembersResponse */ public QueryConferenceMembersResponse queryConferenceMembersWithOptions(QueryConferenceMembersRequest tmpReq, QueryConferenceMembersHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); QueryConferenceMembersShrinkRequest request = new QueryConferenceMembersShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); QueryConferenceMembersShrinkHeaders headers = new QueryConferenceMembersShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.maxResults)) { body.put("MaxResults", request.maxResults); } if (!com.aliyun.teautil.Common.isUnset(request.nextToken)) { body.put("NextToken", request.nextToken); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.conferenceId)) { body.put("conferenceId", request.conferenceId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "QueryConferenceMembers"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/queryConferenceMembers"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new QueryConferenceMembersResponse()); } /** * <b>summary</b> : * <p>查询视频会议成员</p> * * @param request QueryConferenceMembersRequest * @return QueryConferenceMembersResponse */ public QueryConferenceMembersResponse queryConferenceMembers(QueryConferenceMembersRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); QueryConferenceMembersHeaders headers = new QueryConferenceMembersHeaders(); return this.queryConferenceMembersWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取文件或文件夹信息</p> * * @param tmpReq QueryDentriesInfoRequest * @param tmpHeader QueryDentriesInfoHeaders * @param runtime runtime options for this request RuntimeOptions * @return QueryDentriesInfoResponse */ public QueryDentriesInfoResponse queryDentriesInfoWithOptions(QueryDentriesInfoRequest tmpReq, QueryDentriesInfoHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); QueryDentriesInfoShrinkRequest request = new QueryDentriesInfoShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); QueryDentriesInfoShrinkHeaders headers = new QueryDentriesInfoShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.appIdsForAppProperties)) { request.appIdsForAppPropertiesShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.appIdsForAppProperties, "AppIdsForAppProperties", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appIdsForAppPropertiesShrink)) { body.put("AppIdsForAppProperties", request.appIdsForAppPropertiesShrink); } if (!com.aliyun.teautil.Common.isUnset(request.dentryId)) { body.put("DentryId", request.dentryId); } if (!com.aliyun.teautil.Common.isUnset(request.spaceId)) { body.put("SpaceId", request.spaceId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.unionId)) { body.put("UnionId", request.unionId); } if (!com.aliyun.teautil.Common.isUnset(request.withThumbnail)) { body.put("WithThumbnail", request.withThumbnail); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "QueryDentriesInfo"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/queryDentriesInfo"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new QueryDentriesInfoResponse()); } /** * <b>summary</b> : * <p>获取文件或文件夹信息</p> * * @param request QueryDentriesInfoRequest * @return QueryDentriesInfoResponse */ public QueryDentriesInfoResponse queryDentriesInfo(QueryDentriesInfoRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); QueryDentriesInfoHeaders headers = new QueryDentriesInfoHeaders(); return this.queryDentriesInfoWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询知识库节点信息</p> * * @param tmpReq QueryDentryRequest * @param tmpHeader QueryDentryHeaders * @param runtime runtime options for this request RuntimeOptions * @return QueryDentryResponse */ public QueryDentryResponse queryDentryWithOptions(QueryDentryRequest tmpReq, QueryDentryHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); QueryDentryShrinkRequest request = new QueryDentryShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); QueryDentryShrinkHeaders headers = new QueryDentryShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.dentryId)) { body.put("DentryId", request.dentryId); } if (!com.aliyun.teautil.Common.isUnset(request.includeSpace)) { body.put("IncludeSpace", request.includeSpace); } if (!com.aliyun.teautil.Common.isUnset(request.spaceId)) { body.put("SpaceId", request.spaceId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "QueryDentry"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v2/documents/queryDentry"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new QueryDentryResponse()); } /** * <b>summary</b> : * <p>查询知识库节点信息</p> * * @param request QueryDentryRequest * @return QueryDentryResponse */ public QueryDentryResponse queryDentry(QueryDentryRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); QueryDentryHeaders headers = new QueryDentryHeaders(); return this.queryDentryWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询群直播详情</p> * * @param tmpReq QueryGroupLiveInfoRequest * @param tmpHeader QueryGroupLiveInfoHeaders * @param runtime runtime options for this request RuntimeOptions * @return QueryGroupLiveInfoResponse */ public QueryGroupLiveInfoResponse queryGroupLiveInfoWithOptions(QueryGroupLiveInfoRequest tmpReq, QueryGroupLiveInfoHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); QueryGroupLiveInfoShrinkRequest request = new QueryGroupLiveInfoShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); QueryGroupLiveInfoShrinkHeaders headers = new QueryGroupLiveInfoShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.anchorUnionId)) { body.put("AnchorUnionId", request.anchorUnionId); } if (!com.aliyun.teautil.Common.isUnset(request.liveUuid)) { body.put("LiveUuid", request.liveUuid); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "QueryGroupLiveInfo"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/queryGroupLiveInfo"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new QueryGroupLiveInfoResponse()); } /** * <b>summary</b> : * <p>查询群直播详情</p> * * @param request QueryGroupLiveInfoRequest * @return QueryGroupLiveInfoResponse */ public QueryGroupLiveInfoResponse queryGroupLiveInfo(QueryGroupLiveInfoRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); QueryGroupLiveInfoHeaders headers = new QueryGroupLiveInfoHeaders(); return this.queryGroupLiveInfoWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询直播信息</p> * * @param tmpReq QueryLiveInfoRequest * @param tmpHeader QueryLiveInfoHeaders * @param runtime runtime options for this request RuntimeOptions * @return QueryLiveInfoResponse */ public QueryLiveInfoResponse queryLiveInfoWithOptions(QueryLiveInfoRequest tmpReq, QueryLiveInfoHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); QueryLiveInfoShrinkRequest request = new QueryLiveInfoShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); QueryLiveInfoShrinkHeaders headers = new QueryLiveInfoShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.liveId)) { body.put("LiveId", request.liveId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "QueryLiveInfo"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/queryLiveInfo"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new QueryLiveInfoResponse()); } /** * <b>summary</b> : * <p>查询直播信息</p> * * @param request QueryLiveInfoRequest * @return QueryLiveInfoResponse */ public QueryLiveInfoResponse queryLiveInfo(QueryLiveInfoRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); QueryLiveInfoHeaders headers = new QueryLiveInfoHeaders(); return this.queryLiveInfoWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询直播的观看数据</p> * * @param tmpReq QueryLiveWatchDetailRequest * @param tmpHeader QueryLiveWatchDetailHeaders * @param runtime runtime options for this request RuntimeOptions * @return QueryLiveWatchDetailResponse */ public QueryLiveWatchDetailResponse queryLiveWatchDetailWithOptions(QueryLiveWatchDetailRequest tmpReq, QueryLiveWatchDetailHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); QueryLiveWatchDetailShrinkRequest request = new QueryLiveWatchDetailShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); QueryLiveWatchDetailShrinkHeaders headers = new QueryLiveWatchDetailShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.liveId)) { body.put("LiveId", request.liveId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "QueryLiveWatchDetail"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/queryLiveWatchDetail"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new QueryLiveWatchDetailResponse()); } /** * <b>summary</b> : * <p>查询直播的观看数据</p> * * @param request QueryLiveWatchDetailRequest * @return QueryLiveWatchDetailResponse */ public QueryLiveWatchDetailResponse queryLiveWatchDetail(QueryLiveWatchDetailRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); QueryLiveWatchDetailHeaders headers = new QueryLiveWatchDetailHeaders(); return this.queryLiveWatchDetailWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询直播观看人员信息</p> * * @param tmpReq QueryLiveWatchUserListRequest * @param tmpHeader QueryLiveWatchUserListHeaders * @param runtime runtime options for this request RuntimeOptions * @return QueryLiveWatchUserListResponse */ public QueryLiveWatchUserListResponse queryLiveWatchUserListWithOptions(QueryLiveWatchUserListRequest tmpReq, QueryLiveWatchUserListHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); QueryLiveWatchUserListShrinkRequest request = new QueryLiveWatchUserListShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); QueryLiveWatchUserListShrinkHeaders headers = new QueryLiveWatchUserListShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.liveId)) { body.put("LiveId", request.liveId); } if (!com.aliyun.teautil.Common.isUnset(request.pageNumber)) { body.put("PageNumber", request.pageNumber); } if (!com.aliyun.teautil.Common.isUnset(request.pageSize)) { body.put("PageSize", request.pageSize); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "QueryLiveWatchUserList"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/queryLiveWatchUserList"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new QueryLiveWatchUserListResponse()); } /** * <b>summary</b> : * <p>查询直播观看人员信息</p> * * @param request QueryLiveWatchUserListRequest * @return QueryLiveWatchUserListResponse */ public QueryLiveWatchUserListResponse queryLiveWatchUserList(QueryLiveWatchUserListRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); QueryLiveWatchUserListHeaders headers = new QueryLiveWatchUserListHeaders(); return this.queryLiveWatchUserListWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询会议室详情</p> * * @param tmpReq QueryMeetingRoomRequest * @param tmpHeader QueryMeetingRoomHeaders * @param runtime runtime options for this request RuntimeOptions * @return QueryMeetingRoomResponse */ public QueryMeetingRoomResponse queryMeetingRoomWithOptions(QueryMeetingRoomRequest tmpReq, QueryMeetingRoomHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); QueryMeetingRoomShrinkRequest request = new QueryMeetingRoomShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); QueryMeetingRoomShrinkHeaders headers = new QueryMeetingRoomShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.roomId)) { body.put("RoomId", request.roomId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "QueryMeetingRoom"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/queryMeetingRoom"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new QueryMeetingRoomResponse()); } /** * <b>summary</b> : * <p>查询会议室详情</p> * * @param request QueryMeetingRoomRequest * @return QueryMeetingRoomResponse */ public QueryMeetingRoomResponse queryMeetingRoom(QueryMeetingRoomRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); QueryMeetingRoomHeaders headers = new QueryMeetingRoomHeaders(); return this.queryMeetingRoomWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询会议室分组信息</p> * * @param tmpReq QueryMeetingRoomGroupRequest * @param tmpHeader QueryMeetingRoomGroupHeaders * @param runtime runtime options for this request RuntimeOptions * @return QueryMeetingRoomGroupResponse */ public QueryMeetingRoomGroupResponse queryMeetingRoomGroupWithOptions(QueryMeetingRoomGroupRequest tmpReq, QueryMeetingRoomGroupHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); QueryMeetingRoomGroupShrinkRequest request = new QueryMeetingRoomGroupShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); QueryMeetingRoomGroupShrinkHeaders headers = new QueryMeetingRoomGroupShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.groupId)) { body.put("GroupId", request.groupId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "QueryMeetingRoomGroup"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/queryMeetingRoomGroup"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new QueryMeetingRoomGroupResponse()); } /** * <b>summary</b> : * <p>查询会议室分组信息</p> * * @param request QueryMeetingRoomGroupRequest * @return QueryMeetingRoomGroupResponse */ public QueryMeetingRoomGroupResponse queryMeetingRoomGroup(QueryMeetingRoomGroupRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); QueryMeetingRoomGroupHeaders headers = new QueryMeetingRoomGroupHeaders(); return this.queryMeetingRoomGroupWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询会议室分组列表</p> * * @param tmpReq QueryMeetingRoomGroupListRequest * @param tmpHeader QueryMeetingRoomGroupListHeaders * @param runtime runtime options for this request RuntimeOptions * @return QueryMeetingRoomGroupListResponse */ public QueryMeetingRoomGroupListResponse queryMeetingRoomGroupListWithOptions(QueryMeetingRoomGroupListRequest tmpReq, QueryMeetingRoomGroupListHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); QueryMeetingRoomGroupListShrinkRequest request = new QueryMeetingRoomGroupListShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); QueryMeetingRoomGroupListShrinkHeaders headers = new QueryMeetingRoomGroupListShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.request)) { request.requestShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.request, "Request", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.requestShrink)) { body.put("Request", request.requestShrink); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "QueryMeetingRoomGroupList"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/queryMeetingRoomGroupList"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new QueryMeetingRoomGroupListResponse()); } /** * <b>summary</b> : * <p>查询会议室分组列表</p> * * @param request QueryMeetingRoomGroupListRequest * @return QueryMeetingRoomGroupListResponse */ public QueryMeetingRoomGroupListResponse queryMeetingRoomGroupList(QueryMeetingRoomGroupListRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); QueryMeetingRoomGroupListHeaders headers = new QueryMeetingRoomGroupListHeaders(); return this.queryMeetingRoomGroupListWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询会议室列表</p> * * @param tmpReq QueryMeetingRoomListRequest * @param tmpHeader QueryMeetingRoomListHeaders * @param runtime runtime options for this request RuntimeOptions * @return QueryMeetingRoomListResponse */ public QueryMeetingRoomListResponse queryMeetingRoomListWithOptions(QueryMeetingRoomListRequest tmpReq, QueryMeetingRoomListHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); QueryMeetingRoomListShrinkRequest request = new QueryMeetingRoomListShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); QueryMeetingRoomListShrinkHeaders headers = new QueryMeetingRoomListShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.maxResults)) { body.put("MaxResults", request.maxResults); } if (!com.aliyun.teautil.Common.isUnset(request.nextToken)) { body.put("NextToken", request.nextToken); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "QueryMeetingRoomList"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/queryMeetingRoomList"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new QueryMeetingRoomListResponse()); } /** * <b>summary</b> : * <p>查询会议室列表</p> * * @param request QueryMeetingRoomListRequest * @return QueryMeetingRoomListResponse */ public QueryMeetingRoomListResponse queryMeetingRoomList(QueryMeetingRoomListRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); QueryMeetingRoomListHeaders headers = new QueryMeetingRoomListHeaders(); return this.queryMeetingRoomListWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询闪记录音</p> * * @param tmpReq QueryMinutesRequest * @param tmpHeader QueryMinutesHeaders * @param runtime runtime options for this request RuntimeOptions * @return QueryMinutesResponse */ public QueryMinutesResponse queryMinutesWithOptions(QueryMinutesRequest tmpReq, QueryMinutesHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); QueryMinutesShrinkRequest request = new QueryMinutesShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); QueryMinutesShrinkHeaders headers = new QueryMinutesShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.conferenceId)) { body.put("conferenceId", request.conferenceId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "QueryMinutes"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/queryMinutes"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new QueryMinutesResponse()); } /** * <b>summary</b> : * <p>查询闪记录音</p> * * @param request QueryMinutesRequest * @return QueryMinutesResponse */ public QueryMinutesResponse queryMinutes(QueryMinutesRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); QueryMinutesHeaders headers = new QueryMinutesHeaders(); return this.queryMinutesWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询会议闪记智能纪要</p> * * @param tmpReq QueryMinutesSummaryRequest * @param tmpHeader QueryMinutesSummaryHeaders * @param runtime runtime options for this request RuntimeOptions * @return QueryMinutesSummaryResponse */ public QueryMinutesSummaryResponse queryMinutesSummaryWithOptions(QueryMinutesSummaryRequest tmpReq, QueryMinutesSummaryHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); QueryMinutesSummaryShrinkRequest request = new QueryMinutesSummaryShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); QueryMinutesSummaryShrinkHeaders headers = new QueryMinutesSummaryShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.summaryTypeList)) { request.summaryTypeListShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.summaryTypeList, "summaryTypeList", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.conferenceId)) { body.put("conferenceId", request.conferenceId); } if (!com.aliyun.teautil.Common.isUnset(request.summaryTypeListShrink)) { body.put("summaryTypeList", request.summaryTypeListShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "QueryMinutesSummary"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/queryMinutesSummary"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new QueryMinutesSummaryResponse()); } /** * <b>summary</b> : * <p>查询会议闪记智能纪要</p> * * @param request QueryMinutesSummaryRequest * @return QueryMinutesSummaryResponse */ public QueryMinutesSummaryResponse queryMinutesSummary(QueryMinutesSummaryRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); QueryMinutesSummaryHeaders headers = new QueryMinutesSummaryHeaders(); return this.queryMinutesSummaryWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询会议闪记的文本信息</p> * * @param tmpReq QueryMinutesTextRequest * @param tmpHeader QueryMinutesTextHeaders * @param runtime runtime options for this request RuntimeOptions * @return QueryMinutesTextResponse */ public QueryMinutesTextResponse queryMinutesTextWithOptions(QueryMinutesTextRequest tmpReq, QueryMinutesTextHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); QueryMinutesTextShrinkRequest request = new QueryMinutesTextShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); QueryMinutesTextShrinkHeaders headers = new QueryMinutesTextShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.conferenceId)) { body.put("conferenceId", request.conferenceId); } if (!com.aliyun.teautil.Common.isUnset(request.direction)) { body.put("direction", request.direction); } if (!com.aliyun.teautil.Common.isUnset(request.maxResults)) { body.put("maxResults", request.maxResults); } if (!com.aliyun.teautil.Common.isUnset(request.nextToken)) { body.put("nextToken", request.nextToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "QueryMinutesText"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/queryMinutesText"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new QueryMinutesTextResponse()); } /** * <b>summary</b> : * <p>查询会议闪记的文本信息</p> * * @param request QueryMinutesTextRequest * @return QueryMinutesTextResponse */ public QueryMinutesTextResponse queryMinutesText(QueryMinutesTextRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); QueryMinutesTextHeaders headers = new QueryMinutesTextHeaders(); return this.queryMinutesTextWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询企业荣誉</p> * * @param tmpReq QueryOrgHonorsRequest * @param tmpHeader QueryOrgHonorsHeaders * @param runtime runtime options for this request RuntimeOptions * @return QueryOrgHonorsResponse */ public QueryOrgHonorsResponse queryOrgHonorsWithOptions(QueryOrgHonorsRequest tmpReq, QueryOrgHonorsHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); QueryOrgHonorsShrinkRequest request = new QueryOrgHonorsShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); QueryOrgHonorsShrinkHeaders headers = new QueryOrgHonorsShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.maxResults)) { body.put("maxResults", request.maxResults); } if (!com.aliyun.teautil.Common.isUnset(request.nextToken)) { body.put("nextToken", request.nextToken); } if (!com.aliyun.teautil.Common.isUnset(request.orgId)) { body.put("orgId", request.orgId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "QueryOrgHonors"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/aliding/v1/honor/queryOrgHonors"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new QueryOrgHonorsResponse()); } /** * <b>summary</b> : * <p>查询企业荣誉</p> * * @param request QueryOrgHonorsRequest * @return QueryOrgHonorsResponse */ public QueryOrgHonorsResponse queryOrgHonors(QueryOrgHonorsRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); QueryOrgHonorsHeaders headers = new QueryOrgHonorsHeaders(); return this.queryOrgHonorsWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询企业代办</p> * * @param tmpReq QueryOrgTodoTasksRequest * @param tmpHeader QueryOrgTodoTasksHeaders * @param runtime runtime options for this request RuntimeOptions * @return QueryOrgTodoTasksResponse */ public QueryOrgTodoTasksResponse queryOrgTodoTasksWithOptions(QueryOrgTodoTasksRequest tmpReq, QueryOrgTodoTasksHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); QueryOrgTodoTasksShrinkRequest request = new QueryOrgTodoTasksShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); QueryOrgTodoTasksShrinkHeaders headers = new QueryOrgTodoTasksShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.isDone)) { body.put("isDone", request.isDone); } if (!com.aliyun.teautil.Common.isUnset(request.nextToken)) { body.put("nextToken", request.nextToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "QueryOrgTodoTasks"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/task/queryOrgTodoTasks"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new QueryOrgTodoTasksResponse()); } /** * <b>summary</b> : * <p>查询企业代办</p> * * @param request QueryOrgTodoTasksRequest * @return QueryOrgTodoTasksResponse */ public QueryOrgTodoTasksResponse queryOrgTodoTasks(QueryOrgTodoTasksRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); QueryOrgTodoTasksHeaders headers = new QueryOrgTodoTasksHeaders(); return this.queryOrgTodoTasksWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询闪记的链接,可通过链接查看闪记内容</p> * * @param tmpReq QueryRecordMinutesUrlRequest * @param tmpHeader QueryRecordMinutesUrlHeaders * @param runtime runtime options for this request RuntimeOptions * @return QueryRecordMinutesUrlResponse */ public QueryRecordMinutesUrlResponse queryRecordMinutesUrlWithOptions(QueryRecordMinutesUrlRequest tmpReq, QueryRecordMinutesUrlHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); QueryRecordMinutesUrlShrinkRequest request = new QueryRecordMinutesUrlShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); QueryRecordMinutesUrlShrinkHeaders headers = new QueryRecordMinutesUrlShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.bizType)) { body.put("BizType", request.bizType); } if (!com.aliyun.teautil.Common.isUnset(request.conferenceId)) { body.put("ConferenceId", request.conferenceId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "QueryRecordMinutesUrl"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/queryRecordMinutesUrl"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new QueryRecordMinutesUrlResponse()); } /** * <b>summary</b> : * <p>查询闪记的链接,可通过链接查看闪记内容</p> * * @param request QueryRecordMinutesUrlRequest * @return QueryRecordMinutesUrlResponse */ public QueryRecordMinutesUrlResponse queryRecordMinutesUrl(QueryRecordMinutesUrlRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); QueryRecordMinutesUrlHeaders headers = new QueryRecordMinutesUrlHeaders(); return this.queryRecordMinutesUrlWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取日志详情</p> * * @param tmpReq QueryReportDetailRequest * @param tmpHeader QueryReportDetailHeaders * @param runtime runtime options for this request RuntimeOptions * @return QueryReportDetailResponse */ public QueryReportDetailResponse queryReportDetailWithOptions(QueryReportDetailRequest tmpReq, QueryReportDetailHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); QueryReportDetailShrinkRequest request = new QueryReportDetailShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); QueryReportDetailShrinkHeaders headers = new QueryReportDetailShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.reportId)) { body.put("ReportId", request.reportId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "QueryReportDetail"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/log/queryReportDetail"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new QueryReportDetailResponse()); } /** * <b>summary</b> : * <p>获取日志详情</p> * * @param request QueryReportDetailRequest * @return QueryReportDetailResponse */ public QueryReportDetailResponse queryReportDetail(QueryReportDetailRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); QueryReportDetailHeaders headers = new QueryReportDetailHeaders(); return this.queryReportDetailWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询预约会议</p> * * @param tmpReq QueryScheduleConferenceRequest * @param tmpHeader QueryScheduleConferenceHeaders * @param runtime runtime options for this request RuntimeOptions * @return QueryScheduleConferenceResponse */ public QueryScheduleConferenceResponse queryScheduleConferenceWithOptions(QueryScheduleConferenceRequest tmpReq, QueryScheduleConferenceHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); QueryScheduleConferenceShrinkRequest request = new QueryScheduleConferenceShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); QueryScheduleConferenceShrinkHeaders headers = new QueryScheduleConferenceShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.scheduleConferenceId)) { body.put("scheduleConferenceId", request.scheduleConferenceId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "QueryScheduleConference"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/queryScheduleConference"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new QueryScheduleConferenceResponse()); } /** * <b>summary</b> : * <p>查询预约会议</p> * * @param request QueryScheduleConferenceRequest * @return QueryScheduleConferenceResponse */ public QueryScheduleConferenceResponse queryScheduleConference(QueryScheduleConferenceRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); QueryScheduleConferenceHeaders headers = new QueryScheduleConferenceHeaders(); return this.queryScheduleConferenceWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询预约会议历史会议信息</p> * * @param tmpReq QueryScheduleConferenceInfoRequest * @param tmpHeader QueryScheduleConferenceInfoHeaders * @param runtime runtime options for this request RuntimeOptions * @return QueryScheduleConferenceInfoResponse */ public QueryScheduleConferenceInfoResponse queryScheduleConferenceInfoWithOptions(QueryScheduleConferenceInfoRequest tmpReq, QueryScheduleConferenceInfoHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); QueryScheduleConferenceInfoShrinkRequest request = new QueryScheduleConferenceInfoShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); QueryScheduleConferenceInfoShrinkHeaders headers = new QueryScheduleConferenceInfoShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.maxResults)) { body.put("MaxResults", request.maxResults); } if (!com.aliyun.teautil.Common.isUnset(request.nextToken)) { body.put("NextToken", request.nextToken); } if (!com.aliyun.teautil.Common.isUnset(request.scheduleConferenceId)) { body.put("ScheduleConferenceId", request.scheduleConferenceId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "QueryScheduleConferenceInfo"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/queryScheduleConferenceInfo"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new QueryScheduleConferenceInfoResponse()); } /** * <b>summary</b> : * <p>查询预约会议历史会议信息</p> * * @param request QueryScheduleConferenceInfoRequest * @return QueryScheduleConferenceInfoResponse */ public QueryScheduleConferenceInfoResponse queryScheduleConferenceInfo(QueryScheduleConferenceInfoRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); QueryScheduleConferenceInfoHeaders headers = new QueryScheduleConferenceInfoHeaders(); return this.queryScheduleConferenceInfoWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询员工勋章列表</p> * * @param tmpReq QueryUserHonorsRequest * @param tmpHeader QueryUserHonorsHeaders * @param runtime runtime options for this request RuntimeOptions * @return QueryUserHonorsResponse */ public QueryUserHonorsResponse queryUserHonorsWithOptions(QueryUserHonorsRequest tmpReq, QueryUserHonorsHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); QueryUserHonorsShrinkRequest request = new QueryUserHonorsShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); QueryUserHonorsShrinkHeaders headers = new QueryUserHonorsShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.maxResults)) { body.put("maxResults", request.maxResults); } if (!com.aliyun.teautil.Common.isUnset(request.nextToken)) { body.put("nextToken", request.nextToken); } if (!com.aliyun.teautil.Common.isUnset(request.orgId)) { body.put("orgId", request.orgId); } if (!com.aliyun.teautil.Common.isUnset(request.userId)) { body.put("userId", request.userId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "QueryUserHonors"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/aliding/v1/honor/queryUserHonors"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new QueryUserHonorsResponse()); } /** * <b>summary</b> : * <p>查询员工勋章列表</p> * * @param request QueryUserHonorsRequest * @return QueryUserHonorsResponse */ public QueryUserHonorsResponse queryUserHonors(QueryUserHonorsRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); QueryUserHonorsHeaders headers = new QueryUserHonorsHeaders(); return this.queryUserHonorsWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>收回勋章</p> * * @param tmpReq RecallHonorRequest * @param tmpHeader RecallHonorHeaders * @param runtime runtime options for this request RuntimeOptions * @return RecallHonorResponse */ public RecallHonorResponse recallHonorWithOptions(RecallHonorRequest tmpReq, RecallHonorHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); RecallHonorShrinkRequest request = new RecallHonorShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); RecallHonorShrinkHeaders headers = new RecallHonorShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.honorId)) { body.put("honorId", request.honorId); } if (!com.aliyun.teautil.Common.isUnset(request.orgId)) { body.put("orgId", request.orgId); } if (!com.aliyun.teautil.Common.isUnset(request.userId)) { body.put("userId", request.userId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "RecallHonor"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/aliding/v1/honor/recallHonor"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new RecallHonorResponse()); } /** * <b>summary</b> : * <p>收回勋章</p> * * @param request RecallHonorRequest * @return RecallHonorResponse */ public RecallHonorResponse recallHonor(RecallHonorRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); RecallHonorHeaders headers = new RecallHonorHeaders(); return this.recallHonorWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取日志接收人员列表</p> * * @param tmpReq ReceiverListReportRequest * @param tmpHeader ReceiverListReportHeaders * @param runtime runtime options for this request RuntimeOptions * @return ReceiverListReportResponse */ public ReceiverListReportResponse receiverListReportWithOptions(ReceiverListReportRequest tmpReq, ReceiverListReportHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); ReceiverListReportShrinkRequest request = new ReceiverListReportShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); ReceiverListReportShrinkHeaders headers = new ReceiverListReportShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.offset)) { body.put("Offset", request.offset); } if (!com.aliyun.teautil.Common.isUnset(request.reportId)) { body.put("ReportId", request.reportId); } if (!com.aliyun.teautil.Common.isUnset(request.size)) { body.put("Size", request.size); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "ReceiverListReport"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/log/receiverListReport"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new ReceiverListReportResponse()); } /** * <b>summary</b> : * <p>获取日志接收人员列表</p> * * @param request ReceiverListReportRequest * @return ReceiverListReportResponse */ public ReceiverListReportResponse receiverListReport(ReceiverListReportRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); ReceiverListReportHeaders headers = new ReceiverListReportHeaders(); return this.receiverListReportWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>转交任务</p> * * @param request RedirectTaskRequest * @param tmpHeader RedirectTaskHeaders * @param runtime runtime options for this request RuntimeOptions * @return RedirectTaskResponse */ public RedirectTaskResponse redirectTaskWithOptions(RedirectTaskRequest request, RedirectTaskHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); RedirectTaskShrinkHeaders headers = new RedirectTaskShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.byManager)) { body.put("ByManager", request.byManager); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.nowActionExecutorId)) { body.put("NowActionExecutorId", request.nowActionExecutorId); } if (!com.aliyun.teautil.Common.isUnset(request.processInstanceId)) { body.put("ProcessInstanceId", request.processInstanceId); } if (!com.aliyun.teautil.Common.isUnset(request.remark)) { body.put("Remark", request.remark); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } if (!com.aliyun.teautil.Common.isUnset(request.taskId)) { body.put("TaskId", request.taskId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "RedirectTask"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/redirectTask"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new RedirectTaskResponse()); } /** * <b>summary</b> : * <p>转交任务</p> * * @param request RedirectTaskRequest * @return RedirectTaskResponse */ public RedirectTaskResponse redirectTask(RedirectTaskRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); RedirectTaskHeaders headers = new RedirectTaskHeaders(); return this.redirectTaskWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>删除日程参与者</p> * * @param tmpReq RemoveAttendeeRequest * @param tmpHeader RemoveAttendeeHeaders * @param runtime runtime options for this request RuntimeOptions * @return RemoveAttendeeResponse */ public RemoveAttendeeResponse removeAttendeeWithOptions(RemoveAttendeeRequest tmpReq, RemoveAttendeeHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); RemoveAttendeeShrinkRequest request = new RemoveAttendeeShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); RemoveAttendeeShrinkHeaders headers = new RemoveAttendeeShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.attendeesToRemove)) { request.attendeesToRemoveShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.attendeesToRemove, "AttendeesToRemove", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.attendeesToRemoveShrink)) { body.put("AttendeesToRemove", request.attendeesToRemoveShrink); } if (!com.aliyun.teautil.Common.isUnset(request.calendarId)) { body.put("CalendarId", request.calendarId); } if (!com.aliyun.teautil.Common.isUnset(request.eventId)) { body.put("EventId", request.eventId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "RemoveAttendee"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/calendar/removeAttendee"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new RemoveAttendeeResponse()); } /** * <b>summary</b> : * <p>删除日程参与者</p> * * @param request RemoveAttendeeRequest * @return RemoveAttendeeResponse */ public RemoveAttendeeResponse removeAttendee(RemoveAttendeeRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); RemoveAttendeeHeaders headers = new RemoveAttendeeHeaders(); return this.removeAttendeeWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>取消预定会议室</p> * * @param tmpReq RemoveMeetingRoomsRequest * @param tmpHeader RemoveMeetingRoomsHeaders * @param runtime runtime options for this request RuntimeOptions * @return RemoveMeetingRoomsResponse */ public RemoveMeetingRoomsResponse removeMeetingRoomsWithOptions(RemoveMeetingRoomsRequest tmpReq, RemoveMeetingRoomsHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); RemoveMeetingRoomsShrinkRequest request = new RemoveMeetingRoomsShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); RemoveMeetingRoomsShrinkHeaders headers = new RemoveMeetingRoomsShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.meetingRoomsToRemove)) { request.meetingRoomsToRemoveShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.meetingRoomsToRemove, "MeetingRoomsToRemove", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.calendarId)) { body.put("CalendarId", request.calendarId); } if (!com.aliyun.teautil.Common.isUnset(request.eventId)) { body.put("EventId", request.eventId); } if (!com.aliyun.teautil.Common.isUnset(request.meetingRoomsToRemoveShrink)) { body.put("MeetingRoomsToRemove", request.meetingRoomsToRemoveShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "RemoveMeetingRooms"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/calendar/removeMeetingRooms"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new RemoveMeetingRoomsResponse()); } /** * <b>summary</b> : * <p>取消预定会议室</p> * * @param request RemoveMeetingRoomsRequest * @return RemoveMeetingRoomsResponse */ public RemoveMeetingRoomsResponse removeMeetingRooms(RemoveMeetingRoomsRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); RemoveMeetingRoomsHeaders headers = new RemoveMeetingRoomsHeaders(); return this.removeMeetingRoomsWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>设置日程响应邀请状态</p> * * @param tmpReq RespondEventRequest * @param tmpHeader RespondEventHeaders * @param runtime runtime options for this request RuntimeOptions * @return RespondEventResponse */ public RespondEventResponse respondEventWithOptions(RespondEventRequest tmpReq, RespondEventHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); RespondEventShrinkRequest request = new RespondEventShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); RespondEventShrinkHeaders headers = new RespondEventShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.calendarId)) { body.put("CalendarId", request.calendarId); } if (!com.aliyun.teautil.Common.isUnset(request.eventId)) { body.put("EventId", request.eventId); } if (!com.aliyun.teautil.Common.isUnset(request.responseStatus)) { body.put("ResponseStatus", request.responseStatus); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "RespondEvent"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/calendar/respondEvent"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new RespondEventResponse()); } /** * <b>summary</b> : * <p>设置日程响应邀请状态</p> * * @param request RespondEventRequest * @return RespondEventResponse */ public RespondEventResponse respondEvent(RespondEventRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); RespondEventHeaders headers = new RespondEventHeaders(); return this.respondEventWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询运行</p> * * @param request RetrieveRunRequest * @param headers RetrieveRunHeaders * @param runtime runtime options for this request RuntimeOptions * @return RetrieveRunResponse */ public RetrieveRunResponse retrieveRunWithOptions(RetrieveRunRequest request, RetrieveRunHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.assistantId)) { body.put("assistantId", request.assistantId); } if (!com.aliyun.teautil.Common.isUnset(request.originalAssistantId)) { body.put("originalAssistantId", request.originalAssistantId); } if (!com.aliyun.teautil.Common.isUnset(request.runId)) { body.put("runId", request.runId); } if (!com.aliyun.teautil.Common.isUnset(request.sourceIdOfOriginalAssistantId)) { body.put("sourceIdOfOriginalAssistantId", request.sourceIdOfOriginalAssistantId); } if (!com.aliyun.teautil.Common.isUnset(request.sourceTypeOfOriginalAssistantId)) { body.put("sourceTypeOfOriginalAssistantId", request.sourceTypeOfOriginalAssistantId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountId)) { realHeaders.put("accountId", com.aliyun.teautil.Common.toJSONString(headers.accountId)); } 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", "RetrieveRun"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/ai/v1/assistant/retrieveRun"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "json"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new RetrieveRunResponse()); } /** * <b>summary</b> : * <p>查询运行</p> * * @param request RetrieveRunRequest * @return RetrieveRunResponse */ public RetrieveRunResponse retrieveRun(RetrieveRunRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); RetrieveRunHeaders headers = new RetrieveRunHeaders(); return this.retrieveRunWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>保存日志内容</p> * * @param tmpReq SaveContentRequest * @param tmpHeader SaveContentHeaders * @param runtime runtime options for this request RuntimeOptions * @return SaveContentResponse */ public SaveContentResponse saveContentWithOptions(SaveContentRequest tmpReq, SaveContentHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); SaveContentShrinkRequest request = new SaveContentShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); SaveContentShrinkHeaders headers = new SaveContentShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.contents)) { request.contentsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.contents, "Contents", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.contentsShrink)) { body.put("Contents", request.contentsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.ddFrom)) { body.put("DdFrom", request.ddFrom); } if (!com.aliyun.teautil.Common.isUnset(request.templateId)) { body.put("TemplateId", request.templateId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "SaveContent"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/log/saveContent"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new SaveContentResponse()); } /** * <b>summary</b> : * <p>保存日志内容</p> * * @param request SaveContentRequest * @return SaveContentResponse */ public SaveContentResponse saveContent(SaveContentRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); SaveContentHeaders headers = new SaveContentHeaders(); return this.saveContentWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>保存表单数据</p> * * @param request SaveFormDataRequest * @param tmpHeader SaveFormDataHeaders * @param runtime runtime options for this request RuntimeOptions * @return SaveFormDataResponse */ public SaveFormDataResponse saveFormDataWithOptions(SaveFormDataRequest request, SaveFormDataHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); SaveFormDataShrinkHeaders headers = new SaveFormDataShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.formDataJson)) { body.put("FormDataJson", request.formDataJson); } if (!com.aliyun.teautil.Common.isUnset(request.formUuid)) { body.put("FormUuid", request.formUuid); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "SaveFormData"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/saveFormData"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new SaveFormDataResponse()); } /** * <b>summary</b> : * <p>保存表单数据</p> * * @param request SaveFormDataRequest * @return SaveFormDataResponse */ public SaveFormDataResponse saveFormData(SaveFormDataRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); SaveFormDataHeaders headers = new SaveFormDataHeaders(); return this.saveFormDataWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>提交表单或流程实例下的评论</p> * * @param request SaveFormRemarkRequest * @param tmpHeader SaveFormRemarkHeaders * @param runtime runtime options for this request RuntimeOptions * @return SaveFormRemarkResponse */ public SaveFormRemarkResponse saveFormRemarkWithOptions(SaveFormRemarkRequest request, SaveFormRemarkHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); SaveFormRemarkShrinkHeaders headers = new SaveFormRemarkShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.atUserId)) { body.put("AtUserId", request.atUserId); } if (!com.aliyun.teautil.Common.isUnset(request.content)) { body.put("Content", request.content); } if (!com.aliyun.teautil.Common.isUnset(request.formInstanceId)) { body.put("FormInstanceId", request.formInstanceId); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.replyId)) { body.put("ReplyId", request.replyId); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "SaveFormRemark"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/saveFormRemark"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new SaveFormRemarkResponse()); } /** * <b>summary</b> : * <p>提交表单或流程实例下的评论</p> * * @param request SaveFormRemarkRequest * @return SaveFormRemarkResponse */ public SaveFormRemarkResponse saveFormRemark(SaveFormRemarkRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); SaveFormRemarkHeaders headers = new SaveFormRemarkHeaders(); return this.saveFormRemarkWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取员工组件的值</p> * * @param request SearchEmployeeFieldValuesRequest * @param tmpHeader SearchEmployeeFieldValuesHeaders * @param runtime runtime options for this request RuntimeOptions * @return SearchEmployeeFieldValuesResponse */ public SearchEmployeeFieldValuesResponse searchEmployeeFieldValuesWithOptions(SearchEmployeeFieldValuesRequest request, SearchEmployeeFieldValuesHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); SearchEmployeeFieldValuesShrinkHeaders headers = new SearchEmployeeFieldValuesShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.createFromTimeGMT)) { body.put("CreateFromTimeGMT", request.createFromTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.createToTimeGMT)) { body.put("CreateToTimeGMT", request.createToTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.formUuid)) { body.put("FormUuid", request.formUuid); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.modifiedFromTimeGMT)) { body.put("ModifiedFromTimeGMT", request.modifiedFromTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.modifiedToTimeGMT)) { body.put("ModifiedToTimeGMT", request.modifiedToTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.originatorId)) { body.put("OriginatorId", request.originatorId); } if (!com.aliyun.teautil.Common.isUnset(request.searchFieldJson)) { body.put("SearchFieldJson", request.searchFieldJson); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } if (!com.aliyun.teautil.Common.isUnset(request.targetFieldJson)) { body.put("TargetFieldJson", request.targetFieldJson); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "SearchEmployeeFieldValues"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/searchEmployeeFieldValues"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new SearchEmployeeFieldValuesResponse()); } /** * <b>summary</b> : * <p>获取员工组件的值</p> * * @param request SearchEmployeeFieldValuesRequest * @return SearchEmployeeFieldValuesResponse */ public SearchEmployeeFieldValuesResponse searchEmployeeFieldValues(SearchEmployeeFieldValuesRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); SearchEmployeeFieldValuesHeaders headers = new SearchEmployeeFieldValuesHeaders(); return this.searchEmployeeFieldValuesWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取多个表单实例ID</p> * * @param request SearchFormDataIdListRequest * @param tmpHeader SearchFormDataIdListHeaders * @param runtime runtime options for this request RuntimeOptions * @return SearchFormDataIdListResponse */ public SearchFormDataIdListResponse searchFormDataIdListWithOptions(SearchFormDataIdListRequest request, SearchFormDataIdListHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); SearchFormDataIdListShrinkHeaders headers = new SearchFormDataIdListShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.createFromTimeGMT)) { body.put("CreateFromTimeGMT", request.createFromTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.createToTimeGMT)) { body.put("CreateToTimeGMT", request.createToTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.formUuid)) { body.put("FormUuid", request.formUuid); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.modifiedFromTimeGMT)) { body.put("ModifiedFromTimeGMT", request.modifiedFromTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.modifiedToTimeGMT)) { body.put("ModifiedToTimeGMT", request.modifiedToTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.originatorId)) { body.put("OriginatorId", request.originatorId); } if (!com.aliyun.teautil.Common.isUnset(request.pageNumber)) { body.put("PageNumber", request.pageNumber); } if (!com.aliyun.teautil.Common.isUnset(request.pageSize)) { body.put("PageSize", request.pageSize); } if (!com.aliyun.teautil.Common.isUnset(request.searchFieldJson)) { body.put("SearchFieldJson", request.searchFieldJson); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "SearchFormDataIdList"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/searchFormDataIdList"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new SearchFormDataIdListResponse()); } /** * <b>summary</b> : * <p>获取多个表单实例ID</p> * * @param request SearchFormDataIdListRequest * @return SearchFormDataIdListResponse */ public SearchFormDataIdListResponse searchFormDataIdList(SearchFormDataIdListRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); SearchFormDataIdListHeaders headers = new SearchFormDataIdListHeaders(); return this.searchFormDataIdListWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>通过高级查询条件获取表单实例数据(包括子表单组件数据)</p> * * @param request SearchFormDataSecondGenerationRequest * @param tmpHeader SearchFormDataSecondGenerationHeaders * @param runtime runtime options for this request RuntimeOptions * @return SearchFormDataSecondGenerationResponse */ public SearchFormDataSecondGenerationResponse searchFormDataSecondGenerationWithOptions(SearchFormDataSecondGenerationRequest request, SearchFormDataSecondGenerationHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); SearchFormDataSecondGenerationShrinkHeaders headers = new SearchFormDataSecondGenerationShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.createFromTimeGMT)) { body.put("CreateFromTimeGMT", request.createFromTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.createToTimeGMT)) { body.put("CreateToTimeGMT", request.createToTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.formUuid)) { body.put("FormUuid", request.formUuid); } if (!com.aliyun.teautil.Common.isUnset(request.modifiedFromTimeGMT)) { body.put("ModifiedFromTimeGMT", request.modifiedFromTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.modifiedToTimeGMT)) { body.put("ModifiedToTimeGMT", request.modifiedToTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.orderConfigJson)) { body.put("OrderConfigJson", request.orderConfigJson); } if (!com.aliyun.teautil.Common.isUnset(request.originatorId)) { body.put("OriginatorId", request.originatorId); } if (!com.aliyun.teautil.Common.isUnset(request.pageNumber)) { body.put("PageNumber", request.pageNumber); } if (!com.aliyun.teautil.Common.isUnset(request.pageSize)) { body.put("PageSize", request.pageSize); } if (!com.aliyun.teautil.Common.isUnset(request.searchCondition)) { body.put("SearchCondition", request.searchCondition); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "SearchFormDataSecondGeneration"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/searchFormDataSecondGeneration"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new SearchFormDataSecondGenerationResponse()); } /** * <b>summary</b> : * <p>通过高级查询条件获取表单实例数据(包括子表单组件数据)</p> * * @param request SearchFormDataSecondGenerationRequest * @return SearchFormDataSecondGenerationResponse */ public SearchFormDataSecondGenerationResponse searchFormDataSecondGeneration(SearchFormDataSecondGenerationRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); SearchFormDataSecondGenerationHeaders headers = new SearchFormDataSecondGenerationHeaders(); return this.searchFormDataSecondGenerationWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>通过高级查询条件获取表单实例数据(不包括子表单组件数据)</p> * * @param request SearchFormDataSecondGenerationNoTableFieldRequest * @param tmpHeader SearchFormDataSecondGenerationNoTableFieldHeaders * @param runtime runtime options for this request RuntimeOptions * @return SearchFormDataSecondGenerationNoTableFieldResponse */ public SearchFormDataSecondGenerationNoTableFieldResponse searchFormDataSecondGenerationNoTableFieldWithOptions(SearchFormDataSecondGenerationNoTableFieldRequest request, SearchFormDataSecondGenerationNoTableFieldHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); SearchFormDataSecondGenerationNoTableFieldShrinkHeaders headers = new SearchFormDataSecondGenerationNoTableFieldShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.createFromTimeGMT)) { body.put("CreateFromTimeGMT", request.createFromTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.createToTimeGMT)) { body.put("CreateToTimeGMT", request.createToTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.formUuid)) { body.put("FormUuid", request.formUuid); } if (!com.aliyun.teautil.Common.isUnset(request.modifiedFromTimeGMT)) { body.put("ModifiedFromTimeGMT", request.modifiedFromTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.modifiedToTimeGMT)) { body.put("ModifiedToTimeGMT", request.modifiedToTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.orderConfigJson)) { body.put("OrderConfigJson", request.orderConfigJson); } if (!com.aliyun.teautil.Common.isUnset(request.originatorId)) { body.put("OriginatorId", request.originatorId); } if (!com.aliyun.teautil.Common.isUnset(request.pageNumber)) { body.put("PageNumber", request.pageNumber); } if (!com.aliyun.teautil.Common.isUnset(request.pageSize)) { body.put("PageSize", request.pageSize); } if (!com.aliyun.teautil.Common.isUnset(request.searchCondition)) { body.put("SearchCondition", request.searchCondition); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "SearchFormDataSecondGenerationNoTableField"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/searchFormDataSecondGenerationNoTableField"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new SearchFormDataSecondGenerationNoTableFieldResponse()); } /** * <b>summary</b> : * <p>通过高级查询条件获取表单实例数据(不包括子表单组件数据)</p> * * @param request SearchFormDataSecondGenerationNoTableFieldRequest * @return SearchFormDataSecondGenerationNoTableFieldResponse */ public SearchFormDataSecondGenerationNoTableFieldResponse searchFormDataSecondGenerationNoTableField(SearchFormDataSecondGenerationNoTableFieldRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); SearchFormDataSecondGenerationNoTableFieldHeaders headers = new SearchFormDataSecondGenerationNoTableFieldHeaders(); return this.searchFormDataSecondGenerationNoTableFieldWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>查询表单实例数据</p> * * @param request SearchFormDatasRequest * @param tmpHeader SearchFormDatasHeaders * @param runtime runtime options for this request RuntimeOptions * @return SearchFormDatasResponse */ public SearchFormDatasResponse searchFormDatasWithOptions(SearchFormDatasRequest request, SearchFormDatasHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); SearchFormDatasShrinkHeaders headers = new SearchFormDatasShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.createFromTimeGMT)) { body.put("CreateFromTimeGMT", request.createFromTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.createToTimeGMT)) { body.put("CreateToTimeGMT", request.createToTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.currentPage)) { body.put("CurrentPage", request.currentPage); } if (!com.aliyun.teautil.Common.isUnset(request.dynamicOrder)) { body.put("DynamicOrder", request.dynamicOrder); } if (!com.aliyun.teautil.Common.isUnset(request.formUuid)) { body.put("FormUuid", request.formUuid); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.modifiedFromTimeGMT)) { body.put("ModifiedFromTimeGMT", request.modifiedFromTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.modifiedToTimeGMT)) { body.put("ModifiedToTimeGMT", request.modifiedToTimeGMT); } if (!com.aliyun.teautil.Common.isUnset(request.originatorId)) { body.put("OriginatorId", request.originatorId); } if (!com.aliyun.teautil.Common.isUnset(request.pageSize)) { body.put("PageSize", request.pageSize); } if (!com.aliyun.teautil.Common.isUnset(request.searchFieldJson)) { body.put("SearchFieldJson", request.searchFieldJson); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "SearchFormDatas"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/searchFormDatas"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new SearchFormDatasResponse()); } /** * <b>summary</b> : * <p>查询表单实例数据</p> * * @param request SearchFormDatasRequest * @return SearchFormDatasResponse */ public SearchFormDatasResponse searchFormDatas(SearchFormDatasRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); SearchFormDatasHeaders headers = new SearchFormDatasHeaders(); return this.searchFormDatasWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>根据关键词搜索企业内部群</p> * * @param request SearchInnerGroupsRequest * @param tmpHeader SearchInnerGroupsHeaders * @param runtime runtime options for this request RuntimeOptions * @return SearchInnerGroupsResponse */ public SearchInnerGroupsResponse searchInnerGroupsWithOptions(SearchInnerGroupsRequest request, SearchInnerGroupsHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); SearchInnerGroupsShrinkHeaders headers = new SearchInnerGroupsShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.maxResults)) { body.put("MaxResults", request.maxResults); } if (!com.aliyun.teautil.Common.isUnset(request.searchKey)) { body.put("SearchKey", request.searchKey); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "SearchInnerGroups"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/im/searchInnerGroups"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new SearchInnerGroupsResponse()); } /** * <b>summary</b> : * <p>根据关键词搜索企业内部群</p> * * @param request SearchInnerGroupsRequest * @return SearchInnerGroupsResponse */ public SearchInnerGroupsResponse searchInnerGroups(SearchInnerGroupsRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); SearchInnerGroupsHeaders headers = new SearchInnerGroupsHeaders(); return this.searchInnerGroupsWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>发送钉钉Banner通知</p> * * @param tmpReq SendBannerRequest * @param tmpHeader SendBannerHeaders * @param runtime runtime options for this request RuntimeOptions * @return SendBannerResponse */ public SendBannerResponse sendBannerWithOptions(SendBannerRequest tmpReq, SendBannerHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); SendBannerShrinkRequest request = new SendBannerShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); SendBannerShrinkHeaders headers = new SendBannerShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.content)) { request.contentShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.content, "Content", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.contentShrink)) { body.put("Content", request.contentShrink); } if (!com.aliyun.teautil.Common.isUnset(request.endTime)) { body.put("EndTime", request.endTime); } if (!com.aliyun.teautil.Common.isUnset(request.startTime)) { body.put("StartTime", request.startTime); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "SendBanner"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/watt/sendBanner"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new SendBannerResponse()); } /** * <b>summary</b> : * <p>发送钉钉Banner通知</p> * * @param request SendBannerRequest * @return SendBannerResponse */ public SendBannerResponse sendBanner(SendBannerRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); SendBannerHeaders headers = new SendBannerHeaders(); return this.sendBannerWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>发送钉钉封屏弹窗</p> * * @param tmpReq SendPopupRequest * @param tmpHeader SendPopupHeaders * @param runtime runtime options for this request RuntimeOptions * @return SendPopupResponse */ public SendPopupResponse sendPopupWithOptions(SendPopupRequest tmpReq, SendPopupHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); SendPopupShrinkRequest request = new SendPopupShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); SendPopupShrinkHeaders headers = new SendPopupShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.content)) { request.contentShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.content, "Content", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.contentShrink)) { body.put("Content", request.contentShrink); } if (!com.aliyun.teautil.Common.isUnset(request.endTime)) { body.put("EndTime", request.endTime); } if (!com.aliyun.teautil.Common.isUnset(request.startTime)) { body.put("StartTime", request.startTime); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "SendPopup"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/watt/sendPopup"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new SendPopupResponse()); } /** * <b>summary</b> : * <p>发送钉钉封屏弹窗</p> * * @param request SendPopupRequest * @return SendPopupResponse */ public SendPopupResponse sendPopup(SendPopupRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); SendPopupHeaders headers = new SendPopupHeaders(); return this.sendPopupWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>发送钉钉搜索底纹</p> * * @param tmpReq SendSearchShadeRequest * @param tmpHeader SendSearchShadeHeaders * @param runtime runtime options for this request RuntimeOptions * @return SendSearchShadeResponse */ public SendSearchShadeResponse sendSearchShadeWithOptions(SendSearchShadeRequest tmpReq, SendSearchShadeHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); SendSearchShadeShrinkRequest request = new SendSearchShadeShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); SendSearchShadeShrinkHeaders headers = new SendSearchShadeShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.content)) { request.contentShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.content, "Content", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.contentShrink)) { body.put("Content", request.contentShrink); } if (!com.aliyun.teautil.Common.isUnset(request.endTime)) { body.put("EndTime", request.endTime); } if (!com.aliyun.teautil.Common.isUnset(request.startTime)) { body.put("StartTime", request.startTime); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "SendSearchShade"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/watt/sendSearchShade"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new SendSearchShadeResponse()); } /** * <b>summary</b> : * <p>发送钉钉搜索底纹</p> * * @param request SendSearchShadeRequest * @return SendSearchShadeResponse */ public SendSearchShadeResponse sendSearchShade(SendSearchShadeRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); SendSearchShadeHeaders headers = new SendSearchShadeHeaders(); return this.sendSearchShadeWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>指定列隐藏</p> * * @param tmpReq SetColumnsVisibilityRequest * @param tmpHeader SetColumnsVisibilityHeaders * @param runtime runtime options for this request RuntimeOptions * @return SetColumnsVisibilityResponse */ public SetColumnsVisibilityResponse setColumnsVisibilityWithOptions(SetColumnsVisibilityRequest tmpReq, SetColumnsVisibilityHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); SetColumnsVisibilityShrinkRequest request = new SetColumnsVisibilityShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); SetColumnsVisibilityShrinkHeaders headers = new SetColumnsVisibilityShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.column)) { body.put("Column", request.column); } if (!com.aliyun.teautil.Common.isUnset(request.columnCount)) { body.put("ColumnCount", request.columnCount); } if (!com.aliyun.teautil.Common.isUnset(request.sheetId)) { body.put("SheetId", request.sheetId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.visibility)) { body.put("Visibility", request.visibility); } if (!com.aliyun.teautil.Common.isUnset(request.workbookId)) { body.put("WorkbookId", request.workbookId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "SetColumnsVisibility"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/setColumnsVisibility"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new SetColumnsVisibilityResponse()); } /** * <b>summary</b> : * <p>指定列隐藏</p> * * @param request SetColumnsVisibilityRequest * @return SetColumnsVisibilityResponse */ public SetColumnsVisibilityResponse setColumnsVisibility(SetColumnsVisibilityRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); SetColumnsVisibilityHeaders headers = new SetColumnsVisibilityHeaders(); return this.setColumnsVisibilityWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>设置联席主持人</p> * * @param tmpReq SetConferenceHostsRequest * @param tmpHeader SetConferenceHostsHeaders * @param runtime runtime options for this request RuntimeOptions * @return SetConferenceHostsResponse */ public SetConferenceHostsResponse setConferenceHostsWithOptions(SetConferenceHostsRequest tmpReq, SetConferenceHostsHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); SetConferenceHostsShrinkRequest request = new SetConferenceHostsShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); SetConferenceHostsShrinkHeaders headers = new SetConferenceHostsShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.userIds)) { request.userIdsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.userIds, "UserIds", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.operationType)) { body.put("OperationType", request.operationType); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.userIdsShrink)) { body.put("UserIds", request.userIdsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.conferenceId)) { body.put("conferenceId", request.conferenceId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "SetConferenceHosts"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/setConferenceHosts"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new SetConferenceHostsResponse()); } /** * <b>summary</b> : * <p>设置联席主持人</p> * * @param request SetConferenceHostsRequest * @return SetConferenceHostsResponse */ public SetConferenceHostsResponse setConferenceHosts(SetConferenceHostsRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); SetConferenceHostsHeaders headers = new SetConferenceHostsHeaders(); return this.setConferenceHostsWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>指定行隐藏</p> * * @param tmpReq SetRowsVisibilityRequest * @param tmpHeader SetRowsVisibilityHeaders * @param runtime runtime options for this request RuntimeOptions * @return SetRowsVisibilityResponse */ public SetRowsVisibilityResponse setRowsVisibilityWithOptions(SetRowsVisibilityRequest tmpReq, SetRowsVisibilityHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); SetRowsVisibilityShrinkRequest request = new SetRowsVisibilityShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); SetRowsVisibilityShrinkHeaders headers = new SetRowsVisibilityShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.row)) { body.put("Row", request.row); } if (!com.aliyun.teautil.Common.isUnset(request.rowCount)) { body.put("RowCount", request.rowCount); } if (!com.aliyun.teautil.Common.isUnset(request.sheetId)) { body.put("SheetId", request.sheetId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.visibility)) { body.put("Visibility", request.visibility); } if (!com.aliyun.teautil.Common.isUnset(request.workbookId)) { body.put("WorkbookId", request.workbookId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "SetRowsVisibility"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/setRowsVisibility"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new SetRowsVisibilityResponse()); } /** * <b>summary</b> : * <p>指定行隐藏</p> * * @param request SetRowsVisibilityRequest * @return SetRowsVisibilityResponse */ public SetRowsVisibilityResponse setRowsVisibility(SetRowsVisibilityRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); SetRowsVisibilityHeaders headers = new SetRowsVisibilityHeaders(); return this.setRowsVisibilityWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取用户发送日志的概要信息</p> * * @param tmpReq SimpleListReportRequest * @param tmpHeader SimpleListReportHeaders * @param runtime runtime options for this request RuntimeOptions * @return SimpleListReportResponse */ public SimpleListReportResponse simpleListReportWithOptions(SimpleListReportRequest tmpReq, SimpleListReportHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); SimpleListReportShrinkRequest request = new SimpleListReportShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); SimpleListReportShrinkHeaders headers = new SimpleListReportShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.cursor)) { body.put("Cursor", request.cursor); } if (!com.aliyun.teautil.Common.isUnset(request.endTime)) { body.put("EndTime", request.endTime); } if (!com.aliyun.teautil.Common.isUnset(request.size)) { body.put("Size", request.size); } if (!com.aliyun.teautil.Common.isUnset(request.startTime)) { body.put("StartTime", request.startTime); } if (!com.aliyun.teautil.Common.isUnset(request.templateName)) { body.put("TemplateName", request.templateName); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "SimpleListReport"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/log/simpleListReport"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new SimpleListReportResponse()); } /** * <b>summary</b> : * <p>获取用户发送日志的概要信息</p> * * @param request SimpleListReportRequest * @return SimpleListReportResponse */ public SimpleListReportResponse simpleListReport(SimpleListReportRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); SimpleListReportHeaders headers = new SimpleListReportHeaders(); return this.simpleListReportWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>开启视频会议云录制</p> * * @param tmpReq StartCloudRecordRequest * @param tmpHeader StartCloudRecordHeaders * @param runtime runtime options for this request RuntimeOptions * @return StartCloudRecordResponse */ public StartCloudRecordResponse startCloudRecordWithOptions(StartCloudRecordRequest tmpReq, StartCloudRecordHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); StartCloudRecordShrinkRequest request = new StartCloudRecordShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); StartCloudRecordShrinkHeaders headers = new StartCloudRecordShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.mode)) { body.put("Mode", request.mode); } if (!com.aliyun.teautil.Common.isUnset(request.smallWindowPosition)) { body.put("SmallWindowPosition", request.smallWindowPosition); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.conferenceId)) { body.put("conferenceId", request.conferenceId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "StartCloudRecord"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/startCloudRecord"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new StartCloudRecordResponse()); } /** * <b>summary</b> : * <p>开启视频会议云录制</p> * * @param request StartCloudRecordRequest * @return StartCloudRecordResponse */ public StartCloudRecordResponse startCloudRecord(StartCloudRecordRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); StartCloudRecordHeaders headers = new StartCloudRecordHeaders(); return this.startCloudRecordWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>发起宜搭审批流程</p> * * @param request StartInstanceRequest * @param tmpHeader StartInstanceHeaders * @param runtime runtime options for this request RuntimeOptions * @return StartInstanceResponse */ public StartInstanceResponse startInstanceWithOptions(StartInstanceRequest request, StartInstanceHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); StartInstanceShrinkHeaders headers = new StartInstanceShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.departmentId)) { body.put("DepartmentId", request.departmentId); } if (!com.aliyun.teautil.Common.isUnset(request.formDataJson)) { body.put("FormDataJson", request.formDataJson); } if (!com.aliyun.teautil.Common.isUnset(request.formUuid)) { body.put("FormUuid", request.formUuid); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.processCode)) { body.put("ProcessCode", request.processCode); } if (!com.aliyun.teautil.Common.isUnset(request.processData)) { body.put("ProcessData", request.processData); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "StartInstance"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/startInstance"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new StartInstanceResponse()); } /** * <b>summary</b> : * <p>发起宜搭审批流程</p> * * @param request StartInstanceRequest * @return StartInstanceResponse */ public StartInstanceResponse startInstance(StartInstanceRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); StartInstanceHeaders headers = new StartInstanceHeaders(); return this.startInstanceWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>开启闪记</p> * * @param tmpReq StartMinutesRequest * @param tmpHeader StartMinutesHeaders * @param runtime runtime options for this request RuntimeOptions * @return StartMinutesResponse */ public StartMinutesResponse startMinutesWithOptions(StartMinutesRequest tmpReq, StartMinutesHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); StartMinutesShrinkRequest request = new StartMinutesShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); StartMinutesShrinkHeaders headers = new StartMinutesShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.conferenceId)) { body.put("conferenceId", request.conferenceId); } if (!com.aliyun.teautil.Common.isUnset(request.ownerUserId)) { body.put("ownerUserId", request.ownerUserId); } if (!com.aliyun.teautil.Common.isUnset(request.recordAudio)) { body.put("recordAudio", request.recordAudio); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "StartMinutes"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/startMinutes"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new StartMinutesResponse()); } /** * <b>summary</b> : * <p>开启闪记</p> * * @param request StartMinutesRequest * @return StartMinutesResponse */ public StartMinutesResponse startMinutes(StartMinutesRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); StartMinutesHeaders headers = new StartMinutesHeaders(); return this.startMinutesWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取日志相关人员列表</p> * * @param tmpReq StatisticsListByTypeReportRequest * @param tmpHeader StatisticsListByTypeReportHeaders * @param runtime runtime options for this request RuntimeOptions * @return StatisticsListByTypeReportResponse */ public StatisticsListByTypeReportResponse statisticsListByTypeReportWithOptions(StatisticsListByTypeReportRequest tmpReq, StatisticsListByTypeReportHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); StatisticsListByTypeReportShrinkRequest request = new StatisticsListByTypeReportShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); StatisticsListByTypeReportShrinkHeaders headers = new StatisticsListByTypeReportShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.offset)) { body.put("Offset", request.offset); } if (!com.aliyun.teautil.Common.isUnset(request.reportId)) { body.put("ReportId", request.reportId); } if (!com.aliyun.teautil.Common.isUnset(request.size)) { body.put("Size", request.size); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.type)) { body.put("Type", request.type); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "StatisticsListByTypeReport"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/log/statisticsListByTypeReport"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new StatisticsListByTypeReportResponse()); } /** * <b>summary</b> : * <p>获取日志相关人员列表</p> * * @param request StatisticsListByTypeReportRequest * @return StatisticsListByTypeReportResponse */ public StatisticsListByTypeReportResponse statisticsListByTypeReport(StatisticsListByTypeReportRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); StatisticsListByTypeReportHeaders headers = new StatisticsListByTypeReportHeaders(); return this.statisticsListByTypeReportWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>获取日志统计数据</p> * * @param tmpReq StatisticsReportRequest * @param tmpHeader StatisticsReportHeaders * @param runtime runtime options for this request RuntimeOptions * @return StatisticsReportResponse */ public StatisticsReportResponse statisticsReportWithOptions(StatisticsReportRequest tmpReq, StatisticsReportHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); StatisticsReportShrinkRequest request = new StatisticsReportShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); StatisticsReportShrinkHeaders headers = new StatisticsReportShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.reportId)) { body.put("ReportId", request.reportId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "StatisticsReport"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/log/statisticsReport"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new StatisticsReportResponse()); } /** * <b>summary</b> : * <p>获取日志统计数据</p> * * @param request StatisticsReportRequest * @return StatisticsReportResponse */ public StatisticsReportResponse statisticsReport(StatisticsReportRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); StatisticsReportHeaders headers = new StatisticsReportHeaders(); return this.statisticsReportWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>停止视频会议云录制</p> * * @param tmpReq StopCloudRecordRequest * @param tmpHeader StopCloudRecordHeaders * @param runtime runtime options for this request RuntimeOptions * @return StopCloudRecordResponse */ public StopCloudRecordResponse stopCloudRecordWithOptions(StopCloudRecordRequest tmpReq, StopCloudRecordHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); StopCloudRecordShrinkRequest request = new StopCloudRecordShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); StopCloudRecordShrinkHeaders headers = new StopCloudRecordShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.conferenceId)) { body.put("conferenceId", request.conferenceId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "StopCloudRecord"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/stopCloudRecord"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new StopCloudRecordResponse()); } /** * <b>summary</b> : * <p>停止视频会议云录制</p> * * @param request StopCloudRecordRequest * @return StopCloudRecordResponse */ public StopCloudRecordResponse stopCloudRecord(StopCloudRecordRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); StopCloudRecordHeaders headers = new StopCloudRecordHeaders(); return this.stopCloudRecordWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>暂停闪记</p> * * @param tmpReq StopMinutesRequest * @param tmpHeader StopMinutesHeaders * @param runtime runtime options for this request RuntimeOptions * @return StopMinutesResponse */ public StopMinutesResponse stopMinutesWithOptions(StopMinutesRequest tmpReq, StopMinutesHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); StopMinutesShrinkRequest request = new StopMinutesShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); StopMinutesShrinkHeaders headers = new StopMinutesShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.conferenceId)) { body.put("conferenceId", request.conferenceId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "StopMinutes"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/stopMinutes"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new StopMinutesResponse()); } /** * <b>summary</b> : * <p>暂停闪记</p> * * @param request StopMinutesRequest * @return StopMinutesResponse */ public StopMinutesResponse stopMinutes(StopMinutesRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); StopMinutesHeaders headers = new StopMinutesHeaders(); return this.stopMinutesWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>订阅公共日历</p> * * @param request SubscribeCalendarRequest * @param tmpHeader SubscribeCalendarHeaders * @param runtime runtime options for this request RuntimeOptions * @return SubscribeCalendarResponse */ public SubscribeCalendarResponse subscribeCalendarWithOptions(SubscribeCalendarRequest request, SubscribeCalendarHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); SubscribeCalendarShrinkHeaders headers = new SubscribeCalendarShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.calendarId)) { body.put("CalendarId", request.calendarId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "SubscribeCalendar"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/calendar/subscribeCalendar"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new SubscribeCalendarResponse()); } /** * <b>summary</b> : * <p>订阅公共日历</p> * * @param request SubscribeCalendarRequest * @return SubscribeCalendarResponse */ public SubscribeCalendarResponse subscribeCalendar(SubscribeCalendarRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); SubscribeCalendarHeaders headers = new SubscribeCalendarHeaders(); return this.subscribeCalendarWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>订阅文件变更事件</p> * * @param tmpReq SubscribeEventRequest * @param tmpHeader SubscribeEventHeaders * @param runtime runtime options for this request RuntimeOptions * @return SubscribeEventResponse */ public SubscribeEventResponse subscribeEventWithOptions(SubscribeEventRequest tmpReq, SubscribeEventHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); SubscribeEventShrinkRequest request = new SubscribeEventShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); SubscribeEventShrinkHeaders headers = new SubscribeEventShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.scope)) { body.put("Scope", request.scope); } if (!com.aliyun.teautil.Common.isUnset(request.scopeId)) { body.put("ScopeId", request.scopeId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "SubscribeEvent"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/subscribeEvent"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new SubscribeEventResponse()); } /** * <b>summary</b> : * <p>订阅文件变更事件</p> * * @param request SubscribeEventRequest * @return SubscribeEventResponse */ public SubscribeEventResponse subscribeEvent(SubscribeEventRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); SubscribeEventHeaders headers = new SubscribeEventHeaders(); return this.subscribeEventWithOptions(request, headers, runtime); } /** * @param tmpReq SwitchMainOrgRequest * @param tmpHeader SwitchMainOrgHeaders * @param runtime runtime options for this request RuntimeOptions * @return SwitchMainOrgResponse */ public SwitchMainOrgResponse switchMainOrgWithOptions(SwitchMainOrgRequest tmpReq, SwitchMainOrgHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); SwitchMainOrgShrinkRequest request = new SwitchMainOrgShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); SwitchMainOrgShrinkHeaders headers = new SwitchMainOrgShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.targetOrgId)) { body.put("TargetOrgId", request.targetOrgId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "SwitchMainOrg"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/aliding/v1/user/switchMainOrg"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new SwitchMainOrgResponse()); } /** * @param request SwitchMainOrgRequest * @return SwitchMainOrgResponse */ public SwitchMainOrgResponse switchMainOrg(SwitchMainOrgRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); SwitchMainOrgHeaders headers = new SwitchMainOrgHeaders(); return this.switchMainOrgWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>同步钉钉账号类型</p> * * @param tmpReq SyncDingTypeRequest * @param tmpHeader SyncDingTypeHeaders * @param runtime runtime options for this request RuntimeOptions * @return SyncDingTypeResponse */ public SyncDingTypeResponse syncDingTypeWithOptions(SyncDingTypeRequest tmpReq, SyncDingTypeHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); SyncDingTypeShrinkRequest request = new SyncDingTypeShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); SyncDingTypeShrinkHeaders headers = new SyncDingTypeShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.dingType)) { body.put("DingType", request.dingType); } if (!com.aliyun.teautil.Common.isUnset(request.isDimission)) { body.put("IsDimission", request.isDimission); } if (!com.aliyun.teautil.Common.isUnset(request.source)) { body.put("Source", request.source); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.workNo)) { body.put("WorkNo", request.workNo); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "SyncDingType"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/aliding/v1/indepding/syncDingType"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new SyncDingTypeResponse()); } /** * <b>summary</b> : * <p>同步钉钉账号类型</p> * * @param request SyncDingTypeRequest * @return SyncDingTypeResponse */ public SyncDingTypeResponse syncDingType(SyncDingTypeRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); SyncDingTypeHeaders headers = new SyncDingTypeHeaders(); return this.syncDingTypeWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>终止流程实例</p> * * @param request TerminateInstanceRequest * @param tmpHeader TerminateInstanceHeaders * @param runtime runtime options for this request RuntimeOptions * @return TerminateInstanceResponse */ public TerminateInstanceResponse terminateInstanceWithOptions(TerminateInstanceRequest request, TerminateInstanceHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); TerminateInstanceShrinkHeaders headers = new TerminateInstanceShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.processInstanceId)) { body.put("ProcessInstanceId", request.processInstanceId); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "TerminateInstance"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/terminateInstance"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new TerminateInstanceResponse()); } /** * <b>summary</b> : * <p>终止流程实例</p> * * @param request TerminateInstanceRequest * @return TerminateInstanceResponse */ public TerminateInstanceResponse terminateInstance(TerminateInstanceRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); TerminateInstanceHeaders headers = new TerminateInstanceHeaders(); return this.terminateInstanceWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>转交工单</p> * * @param tmpReq TransferTicketRequest * @param tmpHeader TransferTicketHeaders * @param runtime runtime options for this request RuntimeOptions * @return TransferTicketResponse */ public TransferTicketResponse transferTicketWithOptions(TransferTicketRequest tmpReq, TransferTicketHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); TransferTicketShrinkRequest request = new TransferTicketShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); TransferTicketShrinkHeaders headers = new TransferTicketShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.notify)) { request.notifyShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.notify, "Notify", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.processorUserIds)) { request.processorUserIdsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.processorUserIds, "ProcessorUserIds", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.ticketMemo)) { request.ticketMemoShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.ticketMemo, "TicketMemo", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.notifyShrink)) { body.put("Notify", request.notifyShrink); } if (!com.aliyun.teautil.Common.isUnset(request.openTeamId)) { body.put("OpenTeamId", request.openTeamId); } if (!com.aliyun.teautil.Common.isUnset(request.openTicketId)) { body.put("OpenTicketId", request.openTicketId); } if (!com.aliyun.teautil.Common.isUnset(request.processorUserIdsShrink)) { body.put("ProcessorUserIds", request.processorUserIdsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.ticketMemoShrink)) { body.put("TicketMemo", request.ticketMemoShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "TransferTicket"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ticket/transferTicket"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new TransferTicketResponse()); } /** * <b>summary</b> : * <p>转交工单</p> * * @param request TransferTicketRequest * @return TransferTicketResponse */ public TransferTicketResponse transferTicket(TransferTicketRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); TransferTicketHeaders headers = new TransferTicketHeaders(); return this.transferTicketWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>取消订阅公共日历</p> * * @param request UnsubscribeCalendarRequest * @param tmpHeader UnsubscribeCalendarHeaders * @param runtime runtime options for this request RuntimeOptions * @return UnsubscribeCalendarResponse */ public UnsubscribeCalendarResponse unsubscribeCalendarWithOptions(UnsubscribeCalendarRequest request, UnsubscribeCalendarHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); UnsubscribeCalendarShrinkHeaders headers = new UnsubscribeCalendarShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.calendarId)) { body.put("CalendarId", request.calendarId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "UnsubscribeCalendar"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/calendar/unsubscribeCalendar"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new UnsubscribeCalendarResponse()); } /** * <b>summary</b> : * <p>取消订阅公共日历</p> * * @param request UnsubscribeCalendarRequest * @return UnsubscribeCalendarResponse */ public UnsubscribeCalendarResponse unsubscribeCalendar(UnsubscribeCalendarRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); UnsubscribeCalendarHeaders headers = new UnsubscribeCalendarHeaders(); return this.unsubscribeCalendarWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>取消订阅文件变更事件</p> * * @param tmpReq UnsubscribeEventRequest * @param tmpHeader UnsubscribeEventHeaders * @param runtime runtime options for this request RuntimeOptions * @return UnsubscribeEventResponse */ public UnsubscribeEventResponse unsubscribeEventWithOptions(UnsubscribeEventRequest tmpReq, UnsubscribeEventHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); UnsubscribeEventShrinkRequest request = new UnsubscribeEventShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); UnsubscribeEventShrinkHeaders headers = new UnsubscribeEventShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.scope)) { body.put("Scope", request.scope); } if (!com.aliyun.teautil.Common.isUnset(request.scopeId)) { body.put("ScopeId", request.scopeId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "UnsubscribeEvent"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/unsubscribeEvent"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new UnsubscribeEventResponse()); } /** * <b>summary</b> : * <p>取消订阅文件变更事件</p> * * @param request UnsubscribeEventRequest * @return UnsubscribeEventResponse */ public UnsubscribeEventResponse unsubscribeEvent(UnsubscribeEventRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); UnsubscribeEventHeaders headers = new UnsubscribeEventHeaders(); return this.unsubscribeEventWithOptions(request, headers, runtime); } /** * @param tmpReq UpdateAlidingAssistantRequest * @param tmpHeader UpdateAlidingAssistantHeaders * @param runtime runtime options for this request RuntimeOptions * @return UpdateAlidingAssistantResponse */ public UpdateAlidingAssistantResponse updateAlidingAssistantWithOptions(UpdateAlidingAssistantRequest tmpReq, UpdateAlidingAssistantHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); UpdateAlidingAssistantShrinkRequest request = new UpdateAlidingAssistantShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); UpdateAlidingAssistantShrinkHeaders headers = new UpdateAlidingAssistantShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.ext)) { request.extShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.ext, "Ext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.feature)) { request.featureShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.feature, "Feature", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.recommendPrompts)) { request.recommendPromptsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.recommendPrompts, "RecommendPrompts", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.assistantId)) { body.put("AssistantId", request.assistantId); } if (!com.aliyun.teautil.Common.isUnset(request.description)) { body.put("Description", request.description); } if (!com.aliyun.teautil.Common.isUnset(request.extShrink)) { body.put("Ext", request.extShrink); } if (!com.aliyun.teautil.Common.isUnset(request.fallbackContent)) { body.put("FallbackContent", request.fallbackContent); } if (!com.aliyun.teautil.Common.isUnset(request.featureShrink)) { body.put("Feature", request.featureShrink); } if (!com.aliyun.teautil.Common.isUnset(request.icon)) { body.put("Icon", request.icon); } if (!com.aliyun.teautil.Common.isUnset(request.instructions)) { body.put("Instructions", request.instructions); } if (!com.aliyun.teautil.Common.isUnset(request.name)) { body.put("Name", request.name); } if (!com.aliyun.teautil.Common.isUnset(request.recommendPromptsShrink)) { body.put("RecommendPrompts", request.recommendPromptsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.welcomeContent)) { body.put("WelcomeContent", request.welcomeContent); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "UpdateAlidingAssistant"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/aiagent/updateAlidingAssistant"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new UpdateAlidingAssistantResponse()); } /** * @param request UpdateAlidingAssistantRequest * @return UpdateAlidingAssistantResponse */ public UpdateAlidingAssistantResponse updateAlidingAssistant(UpdateAlidingAssistantRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); UpdateAlidingAssistantHeaders headers = new UpdateAlidingAssistantHeaders(); return this.updateAlidingAssistantWithOptions(request, headers, runtime); } /** * @param tmpReq UpdateConvExtensionRequest * @param tmpHeader UpdateConvExtensionHeaders * @param runtime runtime options for this request RuntimeOptions * @return UpdateConvExtensionResponse */ public UpdateConvExtensionResponse updateConvExtensionWithOptions(UpdateConvExtensionRequest tmpReq, UpdateConvExtensionHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); UpdateConvExtensionShrinkRequest request = new UpdateConvExtensionShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); UpdateConvExtensionShrinkHeaders headers = new UpdateConvExtensionShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.staffIdList)) { request.staffIdListShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.staffIdList, "StaffIdList", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.mobileUrl)) { body.put("MobileUrl", request.mobileUrl); } if (!com.aliyun.teautil.Common.isUnset(request.pcUrl)) { body.put("PcUrl", request.pcUrl); } if (!com.aliyun.teautil.Common.isUnset(request.staffIdListShrink)) { body.put("StaffIdList", request.staffIdListShrink); } if (!com.aliyun.teautil.Common.isUnset(request.systemUid)) { body.put("SystemUid", request.systemUid); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "UpdateConvExtension"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/conversation/updateConvExtension"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new UpdateConvExtensionResponse()); } /** * @param request UpdateConvExtensionRequest * @return UpdateConvExtensionResponse */ public UpdateConvExtensionResponse updateConvExtension(UpdateConvExtensionRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); UpdateConvExtensionHeaders headers = new UpdateConvExtensionHeaders(); return this.updateConvExtensionWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>更新表单数据</p> * * @param request UpdateFormDataRequest * @param tmpHeader UpdateFormDataHeaders * @param runtime runtime options for this request RuntimeOptions * @return UpdateFormDataResponse */ public UpdateFormDataResponse updateFormDataWithOptions(UpdateFormDataRequest request, UpdateFormDataHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); UpdateFormDataShrinkHeaders headers = new UpdateFormDataShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.formInstanceId)) { body.put("FormInstanceId", request.formInstanceId); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } if (!com.aliyun.teautil.Common.isUnset(request.updateFormDataJson)) { body.put("UpdateFormDataJson", request.updateFormDataJson); } if (!com.aliyun.teautil.Common.isUnset(request.useLatestVersion)) { body.put("UseLatestVersion", request.useLatestVersion); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "UpdateFormData"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/updateFormData"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new UpdateFormDataResponse()); } /** * <b>summary</b> : * <p>更新表单数据</p> * * @param request UpdateFormDataRequest * @return UpdateFormDataResponse */ public UpdateFormDataResponse updateFormData(UpdateFormDataRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); UpdateFormDataHeaders headers = new UpdateFormDataHeaders(); return this.updateFormDataWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>更新流程实例</p> * * @param request UpdateInstanceRequest * @param tmpHeader UpdateInstanceHeaders * @param runtime runtime options for this request RuntimeOptions * @return UpdateInstanceResponse */ public UpdateInstanceResponse updateInstanceWithOptions(UpdateInstanceRequest request, UpdateInstanceHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); UpdateInstanceShrinkHeaders headers = new UpdateInstanceShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.processInstanceId)) { body.put("ProcessInstanceId", request.processInstanceId); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } if (!com.aliyun.teautil.Common.isUnset(request.updateFormDataJson)) { body.put("UpdateFormDataJson", request.updateFormDataJson); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "UpdateInstance"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/updateInstance"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new UpdateInstanceResponse()); } /** * <b>summary</b> : * <p>更新流程实例</p> * * @param request UpdateInstanceRequest * @return UpdateInstanceResponse */ public UpdateInstanceResponse updateInstance(UpdateInstanceRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); UpdateInstanceHeaders headers = new UpdateInstanceHeaders(); return this.updateInstanceWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>修改直播属性信息</p> * * @param tmpReq UpdateLiveRequest * @param tmpHeader UpdateLiveHeaders * @param runtime runtime options for this request RuntimeOptions * @return UpdateLiveResponse */ public UpdateLiveResponse updateLiveWithOptions(UpdateLiveRequest tmpReq, UpdateLiveHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); UpdateLiveShrinkRequest request = new UpdateLiveShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); UpdateLiveShrinkHeaders headers = new UpdateLiveShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.coverUrl)) { body.put("CoverUrl", request.coverUrl); } if (!com.aliyun.teautil.Common.isUnset(request.introduction)) { body.put("Introduction", request.introduction); } if (!com.aliyun.teautil.Common.isUnset(request.liveId)) { body.put("LiveId", request.liveId); } if (!com.aliyun.teautil.Common.isUnset(request.preEndTime)) { body.put("PreEndTime", request.preEndTime); } if (!com.aliyun.teautil.Common.isUnset(request.preStartTime)) { body.put("PreStartTime", request.preStartTime); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.title)) { body.put("Title", request.title); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "UpdateLive"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/updateLive"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new UpdateLiveResponse()); } /** * <b>summary</b> : * <p>修改直播属性信息</p> * * @param request UpdateLiveRequest * @return UpdateLiveResponse */ public UpdateLiveResponse updateLive(UpdateLiveRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); UpdateLiveHeaders headers = new UpdateLiveHeaders(); return this.updateLiveWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>更新会议室信息</p> * * @param tmpReq UpdateMeetingRoomRequest * @param tmpHeader UpdateMeetingRoomHeaders * @param runtime runtime options for this request RuntimeOptions * @return UpdateMeetingRoomResponse */ public UpdateMeetingRoomResponse updateMeetingRoomWithOptions(UpdateMeetingRoomRequest tmpReq, UpdateMeetingRoomHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); UpdateMeetingRoomShrinkRequest request = new UpdateMeetingRoomShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); UpdateMeetingRoomShrinkHeaders headers = new UpdateMeetingRoomShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.reservationAuthority)) { request.reservationAuthorityShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.reservationAuthority, "ReservationAuthority", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.roomLabelIds)) { request.roomLabelIdsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.roomLabelIds, "RoomLabelIds", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.roomLocation)) { request.roomLocationShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.roomLocation, "RoomLocation", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.enableCycleReservation)) { body.put("EnableCycleReservation", request.enableCycleReservation); } if (!com.aliyun.teautil.Common.isUnset(request.groupId)) { body.put("GroupId", request.groupId); } if (!com.aliyun.teautil.Common.isUnset(request.isvRoomId)) { body.put("IsvRoomId", request.isvRoomId); } if (!com.aliyun.teautil.Common.isUnset(request.reservationAuthorityShrink)) { body.put("ReservationAuthority", request.reservationAuthorityShrink); } if (!com.aliyun.teautil.Common.isUnset(request.roomCapacity)) { body.put("RoomCapacity", request.roomCapacity); } if (!com.aliyun.teautil.Common.isUnset(request.roomId)) { body.put("RoomId", request.roomId); } if (!com.aliyun.teautil.Common.isUnset(request.roomLabelIdsShrink)) { body.put("RoomLabelIds", request.roomLabelIdsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.roomLocationShrink)) { body.put("RoomLocation", request.roomLocationShrink); } if (!com.aliyun.teautil.Common.isUnset(request.roomName)) { body.put("RoomName", request.roomName); } if (!com.aliyun.teautil.Common.isUnset(request.roomPicture)) { body.put("RoomPicture", request.roomPicture); } if (!com.aliyun.teautil.Common.isUnset(request.roomStatus)) { body.put("RoomStatus", request.roomStatus); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "UpdateMeetingRoom"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/updateMeetingRoom"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new UpdateMeetingRoomResponse()); } /** * <b>summary</b> : * <p>更新会议室信息</p> * * @param request UpdateMeetingRoomRequest * @return UpdateMeetingRoomResponse */ public UpdateMeetingRoomResponse updateMeetingRoom(UpdateMeetingRoomRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); UpdateMeetingRoomHeaders headers = new UpdateMeetingRoomHeaders(); return this.updateMeetingRoomWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>更新会议室分组信息</p> * * @param tmpReq UpdateMeetingRoomGroupRequest * @param tmpHeader UpdateMeetingRoomGroupHeaders * @param runtime runtime options for this request RuntimeOptions * @return UpdateMeetingRoomGroupResponse */ public UpdateMeetingRoomGroupResponse updateMeetingRoomGroupWithOptions(UpdateMeetingRoomGroupRequest tmpReq, UpdateMeetingRoomGroupHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); UpdateMeetingRoomGroupShrinkRequest request = new UpdateMeetingRoomGroupShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); UpdateMeetingRoomGroupShrinkHeaders headers = new UpdateMeetingRoomGroupShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.groupId)) { body.put("GroupId", request.groupId); } if (!com.aliyun.teautil.Common.isUnset(request.groupName)) { body.put("GroupName", request.groupName); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "UpdateMeetingRoomGroup"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/updateMeetingRoomGroup"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new UpdateMeetingRoomGroupResponse()); } /** * <b>summary</b> : * <p>更新会议室分组信息</p> * * @param request UpdateMeetingRoomGroupRequest * @return UpdateMeetingRoomGroupResponse */ public UpdateMeetingRoomGroupResponse updateMeetingRoomGroup(UpdateMeetingRoomGroupRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); UpdateMeetingRoomGroupHeaders headers = new UpdateMeetingRoomGroupHeaders(); return this.updateMeetingRoomGroupWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>更新数据表</p> * * @param tmpReq UpdateMultiDimTableRequest * @param tmpHeader UpdateMultiDimTableHeaders * @param runtime runtime options for this request RuntimeOptions * @return UpdateMultiDimTableResponse */ public UpdateMultiDimTableResponse updateMultiDimTableWithOptions(UpdateMultiDimTableRequest tmpReq, UpdateMultiDimTableHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); UpdateMultiDimTableShrinkRequest request = new UpdateMultiDimTableShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); UpdateMultiDimTableShrinkHeaders headers = new UpdateMultiDimTableShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.baseId)) { body.put("BaseId", request.baseId); } if (!com.aliyun.teautil.Common.isUnset(request.name)) { body.put("Name", request.name); } if (!com.aliyun.teautil.Common.isUnset(request.sheetIdOrName)) { body.put("SheetIdOrName", request.sheetIdOrName); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "UpdateMultiDimTable"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/table/updateMultiDimTable"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new UpdateMultiDimTableResponse()); } /** * <b>summary</b> : * <p>更新数据表</p> * * @param request UpdateMultiDimTableRequest * @return UpdateMultiDimTableResponse */ public UpdateMultiDimTableResponse updateMultiDimTable(UpdateMultiDimTableRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); UpdateMultiDimTableHeaders headers = new UpdateMultiDimTableHeaders(); return this.updateMultiDimTableWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>更新字段</p> * * @param tmpReq UpdateMultiDimTableFieldRequest * @param tmpHeader UpdateMultiDimTableFieldHeaders * @param runtime runtime options for this request RuntimeOptions * @return UpdateMultiDimTableFieldResponse */ public UpdateMultiDimTableFieldResponse updateMultiDimTableFieldWithOptions(UpdateMultiDimTableFieldRequest tmpReq, UpdateMultiDimTableFieldHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); UpdateMultiDimTableFieldShrinkRequest request = new UpdateMultiDimTableFieldShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); UpdateMultiDimTableFieldShrinkHeaders headers = new UpdateMultiDimTableFieldShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.property)) { request.propertyShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.property, "Property", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.baseId)) { body.put("BaseId", request.baseId); } if (!com.aliyun.teautil.Common.isUnset(request.fieldIdOrName)) { body.put("FieldIdOrName", request.fieldIdOrName); } if (!com.aliyun.teautil.Common.isUnset(request.name)) { body.put("Name", request.name); } if (!com.aliyun.teautil.Common.isUnset(request.propertyShrink)) { body.put("Property", request.propertyShrink); } if (!com.aliyun.teautil.Common.isUnset(request.sheetIdOrName)) { body.put("SheetIdOrName", request.sheetIdOrName); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "UpdateMultiDimTableField"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/table/updateMultiDimTableField"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new UpdateMultiDimTableFieldResponse()); } /** * <b>summary</b> : * <p>更新字段</p> * * @param request UpdateMultiDimTableFieldRequest * @return UpdateMultiDimTableFieldResponse */ public UpdateMultiDimTableFieldResponse updateMultiDimTableField(UpdateMultiDimTableFieldRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); UpdateMultiDimTableFieldHeaders headers = new UpdateMultiDimTableFieldHeaders(); return this.updateMultiDimTableFieldWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>更新多行记录</p> * * @param tmpReq UpdateMultiDimTableRecordsRequest * @param tmpHeader UpdateMultiDimTableRecordsHeaders * @param runtime runtime options for this request RuntimeOptions * @return UpdateMultiDimTableRecordsResponse */ public UpdateMultiDimTableRecordsResponse updateMultiDimTableRecordsWithOptions(UpdateMultiDimTableRecordsRequest tmpReq, UpdateMultiDimTableRecordsHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); UpdateMultiDimTableRecordsShrinkRequest request = new UpdateMultiDimTableRecordsShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); UpdateMultiDimTableRecordsShrinkHeaders headers = new UpdateMultiDimTableRecordsShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.recordIds)) { request.recordIdsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.recordIds, "RecordIds", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.baseId)) { body.put("BaseId", request.baseId); } if (!com.aliyun.teautil.Common.isUnset(request.recordIdsShrink)) { body.put("RecordIds", request.recordIdsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.sheetIdOrName)) { body.put("SheetIdOrName", request.sheetIdOrName); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "UpdateMultiDimTableRecords"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/table/updateMultiDimTableRecords"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new UpdateMultiDimTableRecordsResponse()); } /** * <b>summary</b> : * <p>更新多行记录</p> * * @param request UpdateMultiDimTableRecordsRequest * @return UpdateMultiDimTableRecordsResponse */ public UpdateMultiDimTableRecordsResponse updateMultiDimTableRecords(UpdateMultiDimTableRecordsRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); UpdateMultiDimTableRecordsHeaders headers = new UpdateMultiDimTableRecordsHeaders(); return this.updateMultiDimTableRecordsWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>更新文件权限</p> * * @param tmpReq UpdatePermissionRequest * @param tmpHeader UpdatePermissionHeaders * @param runtime runtime options for this request RuntimeOptions * @return UpdatePermissionResponse */ public UpdatePermissionResponse updatePermissionWithOptions(UpdatePermissionRequest tmpReq, UpdatePermissionHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); UpdatePermissionShrinkRequest request = new UpdatePermissionShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); UpdatePermissionShrinkHeaders headers = new UpdatePermissionShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.members)) { request.membersShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.members, "Members", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.option)) { request.optionShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.option, "Option", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.dentryUuid)) { body.put("DentryUuid", request.dentryUuid); } if (!com.aliyun.teautil.Common.isUnset(request.membersShrink)) { body.put("Members", request.membersShrink); } if (!com.aliyun.teautil.Common.isUnset(request.optionShrink)) { body.put("Option", request.optionShrink); } if (!com.aliyun.teautil.Common.isUnset(request.roleId)) { body.put("RoleId", request.roleId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "UpdatePermission"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/updatePermission"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new UpdatePermissionResponse()); } /** * <b>summary</b> : * <p>更新文件权限</p> * * @param request UpdatePermissionRequest * @return UpdatePermissionResponse */ public UpdatePermissionResponse updatePermission(UpdatePermissionRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); UpdatePermissionHeaders headers = new UpdatePermissionHeaders(); return this.updatePermissionWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>更新单元格区域</p> * * @param tmpReq UpdateRangeRequest * @param tmpHeader UpdateRangeHeaders * @param runtime runtime options for this request RuntimeOptions * @return UpdateRangeResponse */ public UpdateRangeResponse updateRangeWithOptions(UpdateRangeRequest tmpReq, UpdateRangeHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); UpdateRangeShrinkRequest request = new UpdateRangeShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); UpdateRangeShrinkHeaders headers = new UpdateRangeShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.backgroundColors)) { request.backgroundColorsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.backgroundColors, "BackgroundColors", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.hyperlinks)) { request.hyperlinksShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.hyperlinks, "Hyperlinks", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.values)) { request.valuesShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.values, "Values", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.backgroundColorsShrink)) { body.put("BackgroundColors", request.backgroundColorsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.hyperlinksShrink)) { body.put("Hyperlinks", request.hyperlinksShrink); } if (!com.aliyun.teautil.Common.isUnset(request.numberFormat)) { body.put("NumberFormat", request.numberFormat); } if (!com.aliyun.teautil.Common.isUnset(request.rangeAddress)) { body.put("RangeAddress", request.rangeAddress); } if (!com.aliyun.teautil.Common.isUnset(request.sheetId)) { body.put("SheetId", request.sheetId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.valuesShrink)) { body.put("Values", request.valuesShrink); } if (!com.aliyun.teautil.Common.isUnset(request.workbookId)) { body.put("WorkbookId", request.workbookId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "UpdateRange"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/updateRange"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new UpdateRangeResponse()); } /** * <b>summary</b> : * <p>更新单元格区域</p> * * @param request UpdateRangeRequest * @return UpdateRangeResponse */ public UpdateRangeResponse updateRange(UpdateRangeRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); UpdateRangeHeaders headers = new UpdateRangeHeaders(); return this.updateRangeWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>更新预约会议设置</p> * * @param tmpReq UpdateScheduleConfSettingsRequest * @param tmpHeader UpdateScheduleConfSettingsHeaders * @param runtime runtime options for this request RuntimeOptions * @return UpdateScheduleConfSettingsResponse */ public UpdateScheduleConfSettingsResponse updateScheduleConfSettingsWithOptions(UpdateScheduleConfSettingsRequest tmpReq, UpdateScheduleConfSettingsHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); UpdateScheduleConfSettingsShrinkRequest request = new UpdateScheduleConfSettingsShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); UpdateScheduleConfSettingsShrinkHeaders headers = new UpdateScheduleConfSettingsShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.scheduleConfSettingModel)) { request.scheduleConfSettingModelShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.scheduleConfSettingModel, "ScheduleConfSettingModel", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.scheduleConfSettingModelShrink)) { body.put("ScheduleConfSettingModel", request.scheduleConfSettingModelShrink); } if (!com.aliyun.teautil.Common.isUnset(request.scheduleConferenceId)) { body.put("ScheduleConferenceId", request.scheduleConferenceId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "UpdateScheduleConfSettings"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/updateScheduleConfSettings"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new UpdateScheduleConfSettingsResponse()); } /** * <b>summary</b> : * <p>更新预约会议设置</p> * * @param request UpdateScheduleConfSettingsRequest * @return UpdateScheduleConfSettingsResponse */ public UpdateScheduleConfSettingsResponse updateScheduleConfSettings(UpdateScheduleConfSettingsRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); UpdateScheduleConfSettingsHeaders headers = new UpdateScheduleConfSettingsHeaders(); return this.updateScheduleConfSettingsWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>更新预约会议</p> * * @param tmpReq UpdateScheduleConferenceRequest * @param tmpHeader UpdateScheduleConferenceHeaders * @param runtime runtime options for this request RuntimeOptions * @return UpdateScheduleConferenceResponse */ public UpdateScheduleConferenceResponse updateScheduleConferenceWithOptions(UpdateScheduleConferenceRequest tmpReq, UpdateScheduleConferenceHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); UpdateScheduleConferenceShrinkRequest request = new UpdateScheduleConferenceShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); UpdateScheduleConferenceShrinkHeaders headers = new UpdateScheduleConferenceShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.endTime)) { body.put("EndTime", request.endTime); } if (!com.aliyun.teautil.Common.isUnset(request.scheduleConferenceId)) { body.put("ScheduleConferenceId", request.scheduleConferenceId); } if (!com.aliyun.teautil.Common.isUnset(request.startTime)) { body.put("StartTime", request.startTime); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.title)) { body.put("Title", request.title); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "UpdateScheduleConference"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/updateScheduleConference"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new UpdateScheduleConferenceResponse()); } /** * <b>summary</b> : * <p>更新预约会议</p> * * @param request UpdateScheduleConferenceRequest * @return UpdateScheduleConferenceResponse */ public UpdateScheduleConferenceResponse updateScheduleConference(UpdateScheduleConferenceRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); UpdateScheduleConferenceHeaders headers = new UpdateScheduleConferenceHeaders(); return this.updateScheduleConferenceWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>更新状态</p> * * @param tmpReq UpdateStatusRequest * @param tmpHeader UpdateStatusHeaders * @param runtime runtime options for this request RuntimeOptions * @return UpdateStatusResponse */ public UpdateStatusResponse updateStatusWithOptions(UpdateStatusRequest tmpReq, UpdateStatusHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); UpdateStatusShrinkRequest request = new UpdateStatusShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); UpdateStatusShrinkHeaders headers = new UpdateStatusShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.errorLines)) { request.errorLinesShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.errorLines, "ErrorLines", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.appType)) { body.put("AppType", request.appType); } if (!com.aliyun.teautil.Common.isUnset(request.errorLinesShrink)) { body.put("ErrorLines", request.errorLinesShrink); } if (!com.aliyun.teautil.Common.isUnset(request.importSequence)) { body.put("ImportSequence", request.importSequence); } if (!com.aliyun.teautil.Common.isUnset(request.language)) { body.put("Language", request.language); } if (!com.aliyun.teautil.Common.isUnset(request.status)) { body.put("Status", request.status); } if (!com.aliyun.teautil.Common.isUnset(request.systemToken)) { body.put("SystemToken", request.systemToken); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "UpdateStatus"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/yida/updateStatus"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new UpdateStatusResponse()); } /** * <b>summary</b> : * <p>更新状态</p> * * @param request UpdateStatusRequest * @return UpdateStatusResponse */ public UpdateStatusResponse updateStatus(UpdateStatusRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); UpdateStatusHeaders headers = new UpdateStatusHeaders(); return this.updateStatusWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>更新订阅日历</p> * * @param tmpReq UpdateSubscribedCalendarsRequest * @param tmpHeader UpdateSubscribedCalendarsHeaders * @param runtime runtime options for this request RuntimeOptions * @return UpdateSubscribedCalendarsResponse */ public UpdateSubscribedCalendarsResponse updateSubscribedCalendarsWithOptions(UpdateSubscribedCalendarsRequest tmpReq, UpdateSubscribedCalendarsHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); UpdateSubscribedCalendarsShrinkRequest request = new UpdateSubscribedCalendarsShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); UpdateSubscribedCalendarsShrinkHeaders headers = new UpdateSubscribedCalendarsShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.managers)) { request.managersShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.managers, "Managers", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.subscribeScope)) { request.subscribeScopeShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.subscribeScope, "SubscribeScope", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.calendarId)) { body.put("CalendarId", request.calendarId); } if (!com.aliyun.teautil.Common.isUnset(request.description)) { body.put("Description", request.description); } if (!com.aliyun.teautil.Common.isUnset(request.managersShrink)) { body.put("Managers", request.managersShrink); } if (!com.aliyun.teautil.Common.isUnset(request.name)) { body.put("Name", request.name); } if (!com.aliyun.teautil.Common.isUnset(request.subscribeScopeShrink)) { body.put("SubscribeScope", request.subscribeScopeShrink); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "UpdateSubscribedCalendars"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/calendar/updateSubscribedCalendars"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new UpdateSubscribedCalendarsResponse()); } /** * <b>summary</b> : * <p>更新订阅日历</p> * * @param request UpdateSubscribedCalendarsRequest * @return UpdateSubscribedCalendarsResponse */ public UpdateSubscribedCalendarsResponse updateSubscribedCalendars(UpdateSubscribedCalendarsRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); UpdateSubscribedCalendarsHeaders headers = new UpdateSubscribedCalendarsHeaders(); return this.updateSubscribedCalendarsWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>更新代办</p> * * @param tmpReq UpdateTodoTaskRequest * @param tmpHeader UpdateTodoTaskHeaders * @param runtime runtime options for this request RuntimeOptions * @return UpdateTodoTaskResponse */ public UpdateTodoTaskResponse updateTodoTaskWithOptions(UpdateTodoTaskRequest tmpReq, UpdateTodoTaskHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); UpdateTodoTaskShrinkRequest request = new UpdateTodoTaskShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); UpdateTodoTaskShrinkHeaders headers = new UpdateTodoTaskShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.executorIds)) { request.executorIdsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.executorIds, "executorIds", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.participantIds)) { request.participantIdsShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.participantIds, "participantIds", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.description)) { body.put("description", request.description); } if (!com.aliyun.teautil.Common.isUnset(request.done)) { body.put("done", request.done); } if (!com.aliyun.teautil.Common.isUnset(request.dueTime)) { body.put("dueTime", request.dueTime); } if (!com.aliyun.teautil.Common.isUnset(request.executorIdsShrink)) { body.put("executorIds", request.executorIdsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.participantIdsShrink)) { body.put("participantIds", request.participantIdsShrink); } if (!com.aliyun.teautil.Common.isUnset(request.subject)) { body.put("subject", request.subject); } if (!com.aliyun.teautil.Common.isUnset(request.taskId)) { body.put("taskId", request.taskId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "UpdateTodoTask"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/task/updateTodoTask"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new UpdateTodoTaskResponse()); } /** * <b>summary</b> : * <p>更新代办</p> * * @param request UpdateTodoTaskRequest * @return UpdateTodoTaskResponse */ public UpdateTodoTaskResponse updateTodoTask(UpdateTodoTaskRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); UpdateTodoTaskHeaders headers = new UpdateTodoTaskHeaders(); return this.updateTodoTaskWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>更新代办执行者状态</p> * * @param tmpReq UpdateTodoTaskExecutorStatusRequest * @param tmpHeader UpdateTodoTaskExecutorStatusHeaders * @param runtime runtime options for this request RuntimeOptions * @return UpdateTodoTaskExecutorStatusResponse */ public UpdateTodoTaskExecutorStatusResponse updateTodoTaskExecutorStatusWithOptions(UpdateTodoTaskExecutorStatusRequest tmpReq, UpdateTodoTaskExecutorStatusHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); UpdateTodoTaskExecutorStatusShrinkRequest request = new UpdateTodoTaskExecutorStatusShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); UpdateTodoTaskExecutorStatusShrinkHeaders headers = new UpdateTodoTaskExecutorStatusShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.executorStatusList)) { request.executorStatusListShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.executorStatusList, "executorStatusList", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.executorStatusListShrink)) { body.put("executorStatusList", request.executorStatusListShrink); } if (!com.aliyun.teautil.Common.isUnset(request.operatorId)) { body.put("operatorId", request.operatorId); } if (!com.aliyun.teautil.Common.isUnset(request.taskId)) { body.put("taskId", request.taskId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "UpdateTodoTaskExecutorStatus"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/task/updateTodoTaskExecutorStatus"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new UpdateTodoTaskExecutorStatusResponse()); } /** * <b>summary</b> : * <p>更新代办执行者状态</p> * * @param request UpdateTodoTaskExecutorStatusRequest * @return UpdateTodoTaskExecutorStatusResponse */ public UpdateTodoTaskExecutorStatusResponse updateTodoTaskExecutorStatus(UpdateTodoTaskExecutorStatusRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); UpdateTodoTaskExecutorStatusHeaders headers = new UpdateTodoTaskExecutorStatusHeaders(); return this.updateTodoTaskExecutorStatusWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>更新企业账号用户头像</p> * * @param request UpdateUserAvatarRequest * @param tmpHeader UpdateUserAvatarHeaders * @param runtime runtime options for this request RuntimeOptions * @return UpdateUserAvatarResponse */ public UpdateUserAvatarResponse updateUserAvatarWithOptions(UpdateUserAvatarRequest request, UpdateUserAvatarHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); UpdateUserAvatarShrinkHeaders headers = new UpdateUserAvatarShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.avatarMediaId)) { body.put("AvatarMediaId", request.avatarMediaId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "UpdateUserAvatar"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/contact/updateUserAvatar"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new UpdateUserAvatarResponse()); } /** * <b>summary</b> : * <p>更新企业账号用户头像</p> * * @param request UpdateUserAvatarRequest * @return UpdateUserAvatarResponse */ public UpdateUserAvatarResponse updateUserAvatar(UpdateUserAvatarRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); UpdateUserAvatarHeaders headers = new UpdateUserAvatarHeaders(); return this.updateUserAvatarWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>设置正在进行中的视频会议属性</p> * * @param tmpReq UpdateVideoConferenceSettingRequest * @param tmpHeader UpdateVideoConferenceSettingHeaders * @param runtime runtime options for this request RuntimeOptions * @return UpdateVideoConferenceSettingResponse */ public UpdateVideoConferenceSettingResponse updateVideoConferenceSettingWithOptions(UpdateVideoConferenceSettingRequest tmpReq, UpdateVideoConferenceSettingHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); UpdateVideoConferenceSettingShrinkRequest request = new UpdateVideoConferenceSettingShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); UpdateVideoConferenceSettingShrinkHeaders headers = new UpdateVideoConferenceSettingShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.allowUnmuteSelf)) { body.put("AllowUnmuteSelf", request.allowUnmuteSelf); } if (!com.aliyun.teautil.Common.isUnset(request.autoTransferHost)) { body.put("AutoTransferHost", request.autoTransferHost); } if (!com.aliyun.teautil.Common.isUnset(request.forbiddenShareScreen)) { body.put("ForbiddenShareScreen", request.forbiddenShareScreen); } if (!com.aliyun.teautil.Common.isUnset(request.lockConference)) { body.put("LockConference", request.lockConference); } if (!com.aliyun.teautil.Common.isUnset(request.muteAll)) { body.put("MuteAll", request.muteAll); } if (!com.aliyun.teautil.Common.isUnset(request.onlyInternalEmployeesJoin)) { body.put("OnlyInternalEmployeesJoin", request.onlyInternalEmployeesJoin); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.conferenceId)) { body.put("conferenceId", request.conferenceId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "UpdateVideoConferenceSetting"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/ysp/updateVideoConferenceSetting"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new UpdateVideoConferenceSettingResponse()); } /** * <b>summary</b> : * <p>设置正在进行中的视频会议属性</p> * * @param request UpdateVideoConferenceSettingRequest * @return UpdateVideoConferenceSettingResponse */ public UpdateVideoConferenceSettingResponse updateVideoConferenceSetting(UpdateVideoConferenceSettingRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); UpdateVideoConferenceSettingHeaders headers = new UpdateVideoConferenceSettingHeaders(); return this.updateVideoConferenceSettingWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>修改知识库文档成员权限</p> * * @param tmpReq UpdateWorkspaceDocMembersRequest * @param tmpHeader UpdateWorkspaceDocMembersHeaders * @param runtime runtime options for this request RuntimeOptions * @return UpdateWorkspaceDocMembersResponse */ public UpdateWorkspaceDocMembersResponse updateWorkspaceDocMembersWithOptions(UpdateWorkspaceDocMembersRequest tmpReq, UpdateWorkspaceDocMembersHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); UpdateWorkspaceDocMembersShrinkRequest request = new UpdateWorkspaceDocMembersShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); UpdateWorkspaceDocMembersShrinkHeaders headers = new UpdateWorkspaceDocMembersShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.members)) { request.membersShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.members, "Members", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.membersShrink)) { body.put("Members", request.membersShrink); } if (!com.aliyun.teautil.Common.isUnset(request.nodeId)) { body.put("NodeId", request.nodeId); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.workspaceId)) { body.put("WorkspaceId", request.workspaceId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "UpdateWorkspaceDocMembers"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/updateWorkspaceDocMembers"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new UpdateWorkspaceDocMembersResponse()); } /** * <b>summary</b> : * <p>修改知识库文档成员权限</p> * * @param request UpdateWorkspaceDocMembersRequest * @return UpdateWorkspaceDocMembersResponse */ public UpdateWorkspaceDocMembersResponse updateWorkspaceDocMembers(UpdateWorkspaceDocMembersRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); UpdateWorkspaceDocMembersHeaders headers = new UpdateWorkspaceDocMembersHeaders(); return this.updateWorkspaceDocMembersWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>更新知识库成员权限</p> * * @param tmpReq UpdateWorkspaceMembersRequest * @param tmpHeader UpdateWorkspaceMembersHeaders * @param runtime runtime options for this request RuntimeOptions * @return UpdateWorkspaceMembersResponse */ public UpdateWorkspaceMembersResponse updateWorkspaceMembersWithOptions(UpdateWorkspaceMembersRequest tmpReq, UpdateWorkspaceMembersHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); UpdateWorkspaceMembersShrinkRequest request = new UpdateWorkspaceMembersShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); UpdateWorkspaceMembersShrinkHeaders headers = new UpdateWorkspaceMembersShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.members)) { request.membersShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.members, "Members", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.membersShrink)) { body.put("Members", request.membersShrink); } if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.workspaceId)) { body.put("WorkspaceId", request.workspaceId); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "UpdateWorkspaceMembers"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/dingtalk/v1/documents/updateWorkspaceMembers"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new UpdateWorkspaceMembersResponse()); } /** * <b>summary</b> : * <p>更新知识库成员权限</p> * * @param request UpdateWorkspaceMembersRequest * @return UpdateWorkspaceMembersResponse */ public UpdateWorkspaceMembersResponse updateWorkspaceMembers(UpdateWorkspaceMembersRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); UpdateWorkspaceMembersHeaders headers = new UpdateWorkspaceMembersHeaders(); return this.updateWorkspaceMembersWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>上传媒体<br/></p> * * @param tmpReq UploadMediaRequest * @param tmpHeader UploadMediaHeaders * @param runtime runtime options for this request RuntimeOptions * @return UploadMediaResponse */ public UploadMediaResponse uploadMediaWithOptions(UploadMediaRequest tmpReq, UploadMediaHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); UploadMediaShrinkRequest request = new UploadMediaShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); UploadMediaShrinkHeaders headers = new UploadMediaShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.mediaName)) { body.put("mediaName", request.mediaName); } if (!com.aliyun.teautil.Common.isUnset(request.mediaType)) { body.put("mediaType", request.mediaType); } if (!com.aliyun.teautil.Common.isUnset(request.orgId)) { body.put("orgId", request.orgId); } if (!com.aliyun.teautil.Common.isUnset(request.url)) { body.put("url", request.url); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "UploadMedia"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/aliding/v1/documents/uploadMedia"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new UploadMediaResponse()); } /** * <b>summary</b> : * <p>上传媒体<br/></p> * * @param request UploadMediaRequest * @return UploadMediaResponse */ public UploadMediaResponse uploadMedia(UploadMediaRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); UploadMediaHeaders headers = new UploadMediaHeaders(); return this.uploadMediaWithOptions(request, headers, runtime); } /** * <b>summary</b> : * <p>穿戴勋章</p> * * @param tmpReq WearOrgHonorRequest * @param tmpHeader WearOrgHonorHeaders * @param runtime runtime options for this request RuntimeOptions * @return WearOrgHonorResponse */ public WearOrgHonorResponse wearOrgHonorWithOptions(WearOrgHonorRequest tmpReq, WearOrgHonorHeaders tmpHeader, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(tmpReq); WearOrgHonorShrinkRequest request = new WearOrgHonorShrinkRequest(); com.aliyun.openapiutil.Client.convert(tmpReq, request); WearOrgHonorShrinkHeaders headers = new WearOrgHonorShrinkHeaders(); com.aliyun.openapiutil.Client.convert(tmpHeader, headers); if (!com.aliyun.teautil.Common.isUnset(tmpHeader.accountContext)) { headers.accountContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json"); } if (!com.aliyun.teautil.Common.isUnset(tmpReq.tenantContext)) { request.tenantContextShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json"); } java.util.Map<String, Object> body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.tenantContextShrink)) { body.put("TenantContext", request.tenantContextShrink); } if (!com.aliyun.teautil.Common.isUnset(request.honorId)) { body.put("honorId", request.honorId); } if (!com.aliyun.teautil.Common.isUnset(request.orgId)) { body.put("orgId", request.orgId); } if (!com.aliyun.teautil.Common.isUnset(request.userId)) { body.put("userId", request.userId); } if (!com.aliyun.teautil.Common.isUnset(request.wear)) { body.put("wear", request.wear); } java.util.Map<String, String> realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.accountContextShrink)) { realHeaders.put("AccountContext", com.aliyun.teautil.Common.toJSONString(headers.accountContextShrink)); } 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", "WearOrgHonor"), new TeaPair("version", "2023-04-26"), new TeaPair("protocol", "HTTPS"), new TeaPair("pathname", "/aliding/v1/honor/wearOrgHonor"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "formData"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.callApi(params, req, runtime), new WearOrgHonorResponse()); } /** * <b>summary</b> : * <p>穿戴勋章</p> * * @param request WearOrgHonorRequest * @return WearOrgHonorResponse */ public WearOrgHonorResponse wearOrgHonor(WearOrgHonorRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); WearOrgHonorHeaders headers = new WearOrgHonorHeaders(); return this.wearOrgHonorWithOptions(request, headers, runtime); } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddAttendeeHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddAttendeeHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; @NameInMap("AccountContext") public AddAttendeeHeadersAccountContext accountContext; public static AddAttendeeHeaders build(java.util.Map<String, ?> map) throws Exception { AddAttendeeHeaders self = new AddAttendeeHeaders(); return TeaModel.build(map, self); } public AddAttendeeHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public AddAttendeeHeaders setAccountContext(AddAttendeeHeadersAccountContext accountContext) { this.accountContext = accountContext; return this; } public AddAttendeeHeadersAccountContext getAccountContext() { return this.accountContext; } public static class AddAttendeeHeadersAccountContext extends TeaModel { /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>123456</p> */ @NameInMap("accountId") public String accountId; public static AddAttendeeHeadersAccountContext build(java.util.Map<String, ?> map) throws Exception { AddAttendeeHeadersAccountContext self = new AddAttendeeHeadersAccountContext(); return TeaModel.build(map, self); } public AddAttendeeHeadersAccountContext setAccountId(String accountId) { this.accountId = accountId; return this; } public String getAccountId() { return this.accountId; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddAttendeeRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddAttendeeRequest extends TeaModel { /** * <p>This parameter is required.</p> */ @NameInMap("AttendeesToAdd") public java.util.List<AddAttendeeRequestAttendeesToAdd> attendeesToAdd; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>primary</p> */ @NameInMap("CalendarId") public String calendarId; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cnNTbW1YbU9sL2p6aFJZdEgvdlQrQT08</p> */ @NameInMap("EventId") public String eventId; @NameInMap("chatNotification") public Boolean chatNotification; @NameInMap("pushNotification") public Boolean pushNotification; public static AddAttendeeRequest build(java.util.Map<String, ?> map) throws Exception { AddAttendeeRequest self = new AddAttendeeRequest(); return TeaModel.build(map, self); } public AddAttendeeRequest setAttendeesToAdd(java.util.List<AddAttendeeRequestAttendeesToAdd> attendeesToAdd) { this.attendeesToAdd = attendeesToAdd; return this; } public java.util.List<AddAttendeeRequestAttendeesToAdd> getAttendeesToAdd() { return this.attendeesToAdd; } public AddAttendeeRequest setCalendarId(String calendarId) { this.calendarId = calendarId; return this; } public String getCalendarId() { return this.calendarId; } public AddAttendeeRequest setEventId(String eventId) { this.eventId = eventId; return this; } public String getEventId() { return this.eventId; } public AddAttendeeRequest setChatNotification(Boolean chatNotification) { this.chatNotification = chatNotification; return this; } public Boolean getChatNotification() { return this.chatNotification; } public AddAttendeeRequest setPushNotification(Boolean pushNotification) { this.pushNotification = pushNotification; return this; } public Boolean getPushNotification() { return this.pushNotification; } public static class AddAttendeeRequestAttendeesToAdd extends TeaModel { /** * <strong>example:</strong> * <p>123456</p> */ @NameInMap("id") public String id; /** * <strong>example:</strong> * <p>true</p> */ @NameInMap("isOptional") public Boolean isOptional; public static AddAttendeeRequestAttendeesToAdd build(java.util.Map<String, ?> map) throws Exception { AddAttendeeRequestAttendeesToAdd self = new AddAttendeeRequestAttendeesToAdd(); return TeaModel.build(map, self); } public AddAttendeeRequestAttendeesToAdd setId(String id) { this.id = id; return this; } public String getId() { return this.id; } public AddAttendeeRequestAttendeesToAdd setIsOptional(Boolean isOptional) { this.isOptional = isOptional; return this; } public Boolean getIsOptional() { return this.isOptional; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddAttendeeResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddAttendeeResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public AddAttendeeResponseBody body; public static AddAttendeeResponse build(java.util.Map<String, ?> map) throws Exception { AddAttendeeResponse self = new AddAttendeeResponse(); return TeaModel.build(map, self); } public AddAttendeeResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public AddAttendeeResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public AddAttendeeResponse setBody(AddAttendeeResponseBody body) { this.body = body; return this; } public AddAttendeeResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddAttendeeResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddAttendeeResponseBody extends TeaModel { @NameInMap("Content") public AddAttendeeResponseBodyContent content; /** * <strong>example:</strong> * <p>200</p> */ @NameInMap("ErrorCode") public String errorCode; @NameInMap("ErrorCtx") public java.util.Map<String, ?> errorCtx; /** * <strong>example:</strong> * <p>error check permissions</p> */ @NameInMap("ErrorMsg") public String errorMsg; /** * <strong>example:</strong> * <p>200</p> */ @NameInMap("HttpStatusCode") public Integer httpStatusCode; /** * <p>RequestId</p> * * <strong>example:</strong> * <p>9BCC17ED-0187-54A0-BD31-56FDBE865447</p> */ @NameInMap("RequestId") public String requestId; /** * <strong>example:</strong> * <p>True</p> */ @NameInMap("Success") public Boolean success; public static AddAttendeeResponseBody build(java.util.Map<String, ?> map) throws Exception { AddAttendeeResponseBody self = new AddAttendeeResponseBody(); return TeaModel.build(map, self); } public AddAttendeeResponseBody setContent(AddAttendeeResponseBodyContent content) { this.content = content; return this; } public AddAttendeeResponseBodyContent getContent() { return this.content; } public AddAttendeeResponseBody setErrorCode(String errorCode) { this.errorCode = errorCode; return this; } public String getErrorCode() { return this.errorCode; } public AddAttendeeResponseBody setErrorCtx(java.util.Map<String, ?> errorCtx) { this.errorCtx = errorCtx; return this; } public java.util.Map<String, ?> getErrorCtx() { return this.errorCtx; } public AddAttendeeResponseBody setErrorMsg(String errorMsg) { this.errorMsg = errorMsg; return this; } public String getErrorMsg() { return this.errorMsg; } public AddAttendeeResponseBody setHttpStatusCode(Integer httpStatusCode) { this.httpStatusCode = httpStatusCode; return this; } public Integer getHttpStatusCode() { return this.httpStatusCode; } public AddAttendeeResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public AddAttendeeResponseBody setSuccess(Boolean success) { this.success = success; return this; } public Boolean getSuccess() { return this.success; } public static class AddAttendeeResponseBodyContent extends TeaModel { /** * <strong>example:</strong> * <p>[]</p> */ @NameInMap("Data") public Object data; public static AddAttendeeResponseBodyContent build(java.util.Map<String, ?> map) throws Exception { AddAttendeeResponseBodyContent self = new AddAttendeeResponseBodyContent(); return TeaModel.build(map, self); } public AddAttendeeResponseBodyContent setData(Object data) { this.data = data; return this; } public Object getData() { return this.data; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddAttendeeShrinkHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddAttendeeShrinkHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; @NameInMap("AccountContext") public String accountContextShrink; public static AddAttendeeShrinkHeaders build(java.util.Map<String, ?> map) throws Exception { AddAttendeeShrinkHeaders self = new AddAttendeeShrinkHeaders(); return TeaModel.build(map, self); } public AddAttendeeShrinkHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public AddAttendeeShrinkHeaders setAccountContextShrink(String accountContextShrink) { this.accountContextShrink = accountContextShrink; return this; } public String getAccountContextShrink() { return this.accountContextShrink; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddAttendeeShrinkRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddAttendeeShrinkRequest extends TeaModel { /** * <p>This parameter is required.</p> */ @NameInMap("AttendeesToAdd") public String attendeesToAddShrink; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>primary</p> */ @NameInMap("CalendarId") public String calendarId; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cnNTbW1YbU9sL2p6aFJZdEgvdlQrQT08</p> */ @NameInMap("EventId") public String eventId; @NameInMap("chatNotification") public Boolean chatNotification; @NameInMap("pushNotification") public Boolean pushNotification; public static AddAttendeeShrinkRequest build(java.util.Map<String, ?> map) throws Exception { AddAttendeeShrinkRequest self = new AddAttendeeShrinkRequest(); return TeaModel.build(map, self); } public AddAttendeeShrinkRequest setAttendeesToAddShrink(String attendeesToAddShrink) { this.attendeesToAddShrink = attendeesToAddShrink; return this; } public String getAttendeesToAddShrink() { return this.attendeesToAddShrink; } public AddAttendeeShrinkRequest setCalendarId(String calendarId) { this.calendarId = calendarId; return this; } public String getCalendarId() { return this.calendarId; } public AddAttendeeShrinkRequest setEventId(String eventId) { this.eventId = eventId; return this; } public String getEventId() { return this.eventId; } public AddAttendeeShrinkRequest setChatNotification(Boolean chatNotification) { this.chatNotification = chatNotification; return this; } public Boolean getChatNotification() { return this.chatNotification; } public AddAttendeeShrinkRequest setPushNotification(Boolean pushNotification) { this.pushNotification = pushNotification; return this; } public Boolean getPushNotification() { return this.pushNotification; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddDriveSpaceHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddDriveSpaceHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; /** * <p>This parameter is required.</p> */ @NameInMap("AccountContext") public AddDriveSpaceHeadersAccountContext accountContext; public static AddDriveSpaceHeaders build(java.util.Map<String, ?> map) throws Exception { AddDriveSpaceHeaders self = new AddDriveSpaceHeaders(); return TeaModel.build(map, self); } public AddDriveSpaceHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public AddDriveSpaceHeaders setAccountContext(AddDriveSpaceHeadersAccountContext accountContext) { this.accountContext = accountContext; return this; } public AddDriveSpaceHeadersAccountContext getAccountContext() { return this.accountContext; } public static class AddDriveSpaceHeadersAccountContext extends TeaModel { /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>012345</p> */ @NameInMap("accountId") public String accountId; public static AddDriveSpaceHeadersAccountContext build(java.util.Map<String, ?> map) throws Exception { AddDriveSpaceHeadersAccountContext self = new AddDriveSpaceHeadersAccountContext(); return TeaModel.build(map, self); } public AddDriveSpaceHeadersAccountContext setAccountId(String accountId) { this.accountId = accountId; return this; } public String getAccountId() { return this.accountId; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddDriveSpaceRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddDriveSpaceRequest extends TeaModel { /** * <p>This parameter is required.</p> */ @NameInMap("Name") public String name; @NameInMap("TenantContext") public AddDriveSpaceRequestTenantContext tenantContext; public static AddDriveSpaceRequest build(java.util.Map<String, ?> map) throws Exception { AddDriveSpaceRequest self = new AddDriveSpaceRequest(); return TeaModel.build(map, self); } public AddDriveSpaceRequest setName(String name) { this.name = name; return this; } public String getName() { return this.name; } public AddDriveSpaceRequest setTenantContext(AddDriveSpaceRequestTenantContext tenantContext) { this.tenantContext = tenantContext; return this; } public AddDriveSpaceRequestTenantContext getTenantContext() { return this.tenantContext; } public static class AddDriveSpaceRequestTenantContext extends TeaModel { /** * <strong>example:</strong> * <p>xxxxxx</p> */ @NameInMap("tenantId") public String tenantId; public static AddDriveSpaceRequestTenantContext build(java.util.Map<String, ?> map) throws Exception { AddDriveSpaceRequestTenantContext self = new AddDriveSpaceRequestTenantContext(); return TeaModel.build(map, self); } public AddDriveSpaceRequestTenantContext setTenantId(String tenantId) { this.tenantId = tenantId; return this; } public String getTenantId() { return this.tenantId; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddDriveSpaceResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddDriveSpaceResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public AddDriveSpaceResponseBody body; public static AddDriveSpaceResponse build(java.util.Map<String, ?> map) throws Exception { AddDriveSpaceResponse self = new AddDriveSpaceResponse(); return TeaModel.build(map, self); } public AddDriveSpaceResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public AddDriveSpaceResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public AddDriveSpaceResponse setBody(AddDriveSpaceResponseBody body) { this.body = body; return this; } public AddDriveSpaceResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddDriveSpaceResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddDriveSpaceResponseBody extends TeaModel { @NameInMap("createTime") public String createTime; @NameInMap("modifyTime") public String modifyTime; @NameInMap("permissionMode") public String permissionMode; @NameInMap("quota") public Long quota; /** * <strong>example:</strong> * <p>0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX</p> */ @NameInMap("requestId") public String requestId; @NameInMap("spaceId") public String spaceId; @NameInMap("spaceName") public String spaceName; @NameInMap("spaceType") public String spaceType; @NameInMap("usedQuota") public Long usedQuota; /** * <strong>example:</strong> * <p>0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX</p> */ @NameInMap("vendorRequestId") public String vendorRequestId; /** * <strong>example:</strong> * <p>dingtalk</p> */ @NameInMap("vendorType") public String vendorType; public static AddDriveSpaceResponseBody build(java.util.Map<String, ?> map) throws Exception { AddDriveSpaceResponseBody self = new AddDriveSpaceResponseBody(); return TeaModel.build(map, self); } public AddDriveSpaceResponseBody setCreateTime(String createTime) { this.createTime = createTime; return this; } public String getCreateTime() { return this.createTime; } public AddDriveSpaceResponseBody setModifyTime(String modifyTime) { this.modifyTime = modifyTime; return this; } public String getModifyTime() { return this.modifyTime; } public AddDriveSpaceResponseBody setPermissionMode(String permissionMode) { this.permissionMode = permissionMode; return this; } public String getPermissionMode() { return this.permissionMode; } public AddDriveSpaceResponseBody setQuota(Long quota) { this.quota = quota; return this; } public Long getQuota() { return this.quota; } public AddDriveSpaceResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public AddDriveSpaceResponseBody setSpaceId(String spaceId) { this.spaceId = spaceId; return this; } public String getSpaceId() { return this.spaceId; } public AddDriveSpaceResponseBody setSpaceName(String spaceName) { this.spaceName = spaceName; return this; } public String getSpaceName() { return this.spaceName; } public AddDriveSpaceResponseBody setSpaceType(String spaceType) { this.spaceType = spaceType; return this; } public String getSpaceType() { return this.spaceType; } public AddDriveSpaceResponseBody setUsedQuota(Long usedQuota) { this.usedQuota = usedQuota; return this; } public Long getUsedQuota() { return this.usedQuota; } public AddDriveSpaceResponseBody setVendorRequestId(String vendorRequestId) { this.vendorRequestId = vendorRequestId; return this; } public String getVendorRequestId() { return this.vendorRequestId; } public AddDriveSpaceResponseBody setVendorType(String vendorType) { this.vendorType = vendorType; return this; } public String getVendorType() { return this.vendorType; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddDriveSpaceShrinkHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddDriveSpaceShrinkHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; /** * <p>This parameter is required.</p> */ @NameInMap("AccountContext") public String accountContextShrink; public static AddDriveSpaceShrinkHeaders build(java.util.Map<String, ?> map) throws Exception { AddDriveSpaceShrinkHeaders self = new AddDriveSpaceShrinkHeaders(); return TeaModel.build(map, self); } public AddDriveSpaceShrinkHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public AddDriveSpaceShrinkHeaders setAccountContextShrink(String accountContextShrink) { this.accountContextShrink = accountContextShrink; return this; } public String getAccountContextShrink() { return this.accountContextShrink; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddDriveSpaceShrinkRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddDriveSpaceShrinkRequest extends TeaModel { /** * <p>This parameter is required.</p> */ @NameInMap("Name") public String name; @NameInMap("TenantContext") public String tenantContextShrink; public static AddDriveSpaceShrinkRequest build(java.util.Map<String, ?> map) throws Exception { AddDriveSpaceShrinkRequest self = new AddDriveSpaceShrinkRequest(); return TeaModel.build(map, self); } public AddDriveSpaceShrinkRequest setName(String name) { this.name = name; return this; } public String getName() { return this.name; } public AddDriveSpaceShrinkRequest setTenantContextShrink(String tenantContextShrink) { this.tenantContextShrink = tenantContextShrink; return this; } public String getTenantContextShrink() { return this.tenantContextShrink; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddFolderHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddFolderHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; @NameInMap("AccountContext") public AddFolderHeadersAccountContext accountContext; public static AddFolderHeaders build(java.util.Map<String, ?> map) throws Exception { AddFolderHeaders self = new AddFolderHeaders(); return TeaModel.build(map, self); } public AddFolderHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public AddFolderHeaders setAccountContext(AddFolderHeadersAccountContext accountContext) { this.accountContext = accountContext; return this; } public AddFolderHeadersAccountContext getAccountContext() { return this.accountContext; } public static class AddFolderHeadersAccountContext extends TeaModel { /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>012345</p> */ @NameInMap("accountId") public String accountId; public static AddFolderHeadersAccountContext build(java.util.Map<String, ?> map) throws Exception { AddFolderHeadersAccountContext self = new AddFolderHeadersAccountContext(); return TeaModel.build(map, self); } public AddFolderHeadersAccountContext setAccountId(String accountId) { this.accountId = accountId; return this; } public String getAccountId() { return this.accountId; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddFolderRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddFolderRequest extends TeaModel { /** * <p>This parameter is required.</p> */ @NameInMap("Name") public String name; @NameInMap("Option") public AddFolderRequestOption option; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>140822073803</p> */ @NameInMap("ParentId") public String parentId; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>xPar2SZ63KodG3aV</p> */ @NameInMap("SpaceId") public String spaceId; @NameInMap("TenantContext") public AddFolderRequestTenantContext tenantContext; public static AddFolderRequest build(java.util.Map<String, ?> map) throws Exception { AddFolderRequest self = new AddFolderRequest(); return TeaModel.build(map, self); } public AddFolderRequest setName(String name) { this.name = name; return this; } public String getName() { return this.name; } public AddFolderRequest setOption(AddFolderRequestOption option) { this.option = option; return this; } public AddFolderRequestOption getOption() { return this.option; } public AddFolderRequest setParentId(String parentId) { this.parentId = parentId; return this; } public String getParentId() { return this.parentId; } public AddFolderRequest setSpaceId(String spaceId) { this.spaceId = spaceId; return this; } public String getSpaceId() { return this.spaceId; } public AddFolderRequest setTenantContext(AddFolderRequestTenantContext tenantContext) { this.tenantContext = tenantContext; return this; } public AddFolderRequestTenantContext getTenantContext() { return this.tenantContext; } public static class AddFolderRequestOptionAppProperties extends TeaModel { /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>test</p> */ @NameInMap("Name") public String name; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>value</p> */ @NameInMap("Value") public String value; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>PUBLIC</p> */ @NameInMap("Visibility") public String visibility; public static AddFolderRequestOptionAppProperties build(java.util.Map<String, ?> map) throws Exception { AddFolderRequestOptionAppProperties self = new AddFolderRequestOptionAppProperties(); return TeaModel.build(map, self); } public AddFolderRequestOptionAppProperties setName(String name) { this.name = name; return this; } public String getName() { return this.name; } public AddFolderRequestOptionAppProperties setValue(String value) { this.value = value; return this; } public String getValue() { return this.value; } public AddFolderRequestOptionAppProperties setVisibility(String visibility) { this.visibility = visibility; return this; } public String getVisibility() { return this.visibility; } } public static class AddFolderRequestOption extends TeaModel { @NameInMap("AppProperties") public java.util.List<AddFolderRequestOptionAppProperties> appProperties; /** * <strong>example:</strong> * <p>AUTO_RENAME</p> */ @NameInMap("ConflictStrategy") public String conflictStrategy; public static AddFolderRequestOption build(java.util.Map<String, ?> map) throws Exception { AddFolderRequestOption self = new AddFolderRequestOption(); return TeaModel.build(map, self); } public AddFolderRequestOption setAppProperties(java.util.List<AddFolderRequestOptionAppProperties> appProperties) { this.appProperties = appProperties; return this; } public java.util.List<AddFolderRequestOptionAppProperties> getAppProperties() { return this.appProperties; } public AddFolderRequestOption setConflictStrategy(String conflictStrategy) { this.conflictStrategy = conflictStrategy; return this; } public String getConflictStrategy() { return this.conflictStrategy; } } public static class AddFolderRequestTenantContext extends TeaModel { /** * <strong>example:</strong> * <p>xxxxxx</p> */ @NameInMap("tenantId") public String tenantId; public static AddFolderRequestTenantContext build(java.util.Map<String, ?> map) throws Exception { AddFolderRequestTenantContext self = new AddFolderRequestTenantContext(); return TeaModel.build(map, self); } public AddFolderRequestTenantContext setTenantId(String tenantId) { this.tenantId = tenantId; return this; } public String getTenantId() { return this.tenantId; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddFolderResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddFolderResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public AddFolderResponseBody body; public static AddFolderResponse build(java.util.Map<String, ?> map) throws Exception { AddFolderResponse self = new AddFolderResponse(); return TeaModel.build(map, self); } public AddFolderResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public AddFolderResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public AddFolderResponse setBody(AddFolderResponseBody body) { this.body = body; return this; } public AddFolderResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddFolderResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddFolderResponseBody extends TeaModel { @NameInMap("dentry") public AddFolderResponseBodyDentry dentry; /** * <strong>example:</strong> * <p>0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX</p> */ @NameInMap("requestId") public String requestId; /** * <strong>example:</strong> * <p>0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX</p> */ @NameInMap("vendorRequestId") public String vendorRequestId; /** * <strong>example:</strong> * <p>dingtalk</p> */ @NameInMap("vendorType") public String vendorType; public static AddFolderResponseBody build(java.util.Map<String, ?> map) throws Exception { AddFolderResponseBody self = new AddFolderResponseBody(); return TeaModel.build(map, self); } public AddFolderResponseBody setDentry(AddFolderResponseBodyDentry dentry) { this.dentry = dentry; return this; } public AddFolderResponseBodyDentry getDentry() { return this.dentry; } public AddFolderResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public AddFolderResponseBody setVendorRequestId(String vendorRequestId) { this.vendorRequestId = vendorRequestId; return this; } public String getVendorRequestId() { return this.vendorRequestId; } public AddFolderResponseBody setVendorType(String vendorType) { this.vendorType = vendorType; return this; } public String getVendorType() { return this.vendorType; } public static class AddFolderResponseBodyDentryProperties extends TeaModel { /** * <strong>example:</strong> * <p>true</p> */ @NameInMap("ReadOnly") public Boolean readOnly; public static AddFolderResponseBodyDentryProperties build(java.util.Map<String, ?> map) throws Exception { AddFolderResponseBodyDentryProperties self = new AddFolderResponseBodyDentryProperties(); return TeaModel.build(map, self); } public AddFolderResponseBodyDentryProperties setReadOnly(Boolean readOnly) { this.readOnly = readOnly; return this; } public Boolean getReadOnly() { return this.readOnly; } } public static class AddFolderResponseBodyDentry extends TeaModel { @NameInMap("AppProperties") public java.util.Map<String, java.util.List<DentryAppPropertiesValue>> appProperties; /** * <strong>example:</strong> * <p>2022-01-01T10:00:00Z</p> */ @NameInMap("CreateTime") public String createTime; /** * <strong>example:</strong> * <p>creator_id</p> */ @NameInMap("CreatorId") public String creatorId; /** * <strong>example:</strong> * <p>txt</p> */ @NameInMap("Extension") public String extension; /** * <strong>example:</strong> * <p>dentry_id</p> */ @NameInMap("Id") public String id; /** * <strong>example:</strong> * <p>2022-01-01T10:00:00Z</p> */ @NameInMap("ModifiedTime") public String modifiedTime; /** * <strong>example:</strong> * <p>modifier_id</p> */ @NameInMap("ModifierId") public String modifierId; /** * <strong>example:</strong> * <p>dentry_name</p> */ @NameInMap("Name") public String name; /** * <strong>example:</strong> * <p>163201723391</p> */ @NameInMap("ParentId") public String parentId; /** * <strong>example:</strong> * <p>PUBLIC_OSS_PARTITION</p> */ @NameInMap("PartitionType") public String partitionType; /** * <strong>example:</strong> * <p>./test.txt</p> */ @NameInMap("Path") public String path; @NameInMap("Properties") public AddFolderResponseBodyDentryProperties properties; /** * <strong>example:</strong> * <p>6020771</p> */ @NameInMap("Size") public Long size; /** * <strong>example:</strong> * <p>Ao01nSzzBxZQ68JW</p> */ @NameInMap("SpaceId") public String spaceId; /** * <strong>example:</strong> * <p>NORMAL</p> */ @NameInMap("Status") public String status; /** * <strong>example:</strong> * <p>DINGTALK</p> */ @NameInMap("StorageDriver") public String storageDriver; /** * <strong>example:</strong> * <p>FOLDER</p> */ @NameInMap("Type") public String type; /** * <strong>example:</strong> * <p>80a7201602b34450a7a97d8d4e255421</p> */ @NameInMap("Uuid") public String uuid; /** * <strong>example:</strong> * <p>1</p> */ @NameInMap("Version") public Long version; public static AddFolderResponseBodyDentry build(java.util.Map<String, ?> map) throws Exception { AddFolderResponseBodyDentry self = new AddFolderResponseBodyDentry(); return TeaModel.build(map, self); } public AddFolderResponseBodyDentry setAppProperties(java.util.Map<String, java.util.List<DentryAppPropertiesValue>> appProperties) { this.appProperties = appProperties; return this; } public java.util.Map<String, java.util.List<DentryAppPropertiesValue>> getAppProperties() { return this.appProperties; } public AddFolderResponseBodyDentry setCreateTime(String createTime) { this.createTime = createTime; return this; } public String getCreateTime() { return this.createTime; } public AddFolderResponseBodyDentry setCreatorId(String creatorId) { this.creatorId = creatorId; return this; } public String getCreatorId() { return this.creatorId; } public AddFolderResponseBodyDentry setExtension(String extension) { this.extension = extension; return this; } public String getExtension() { return this.extension; } public AddFolderResponseBodyDentry setId(String id) { this.id = id; return this; } public String getId() { return this.id; } public AddFolderResponseBodyDentry setModifiedTime(String modifiedTime) { this.modifiedTime = modifiedTime; return this; } public String getModifiedTime() { return this.modifiedTime; } public AddFolderResponseBodyDentry setModifierId(String modifierId) { this.modifierId = modifierId; return this; } public String getModifierId() { return this.modifierId; } public AddFolderResponseBodyDentry setName(String name) { this.name = name; return this; } public String getName() { return this.name; } public AddFolderResponseBodyDentry setParentId(String parentId) { this.parentId = parentId; return this; } public String getParentId() { return this.parentId; } public AddFolderResponseBodyDentry setPartitionType(String partitionType) { this.partitionType = partitionType; return this; } public String getPartitionType() { return this.partitionType; } public AddFolderResponseBodyDentry setPath(String path) { this.path = path; return this; } public String getPath() { return this.path; } public AddFolderResponseBodyDentry setProperties(AddFolderResponseBodyDentryProperties properties) { this.properties = properties; return this; } public AddFolderResponseBodyDentryProperties getProperties() { return this.properties; } public AddFolderResponseBodyDentry setSize(Long size) { this.size = size; return this; } public Long getSize() { return this.size; } public AddFolderResponseBodyDentry setSpaceId(String spaceId) { this.spaceId = spaceId; return this; } public String getSpaceId() { return this.spaceId; } public AddFolderResponseBodyDentry setStatus(String status) { this.status = status; return this; } public String getStatus() { return this.status; } public AddFolderResponseBodyDentry setStorageDriver(String storageDriver) { this.storageDriver = storageDriver; return this; } public String getStorageDriver() { return this.storageDriver; } public AddFolderResponseBodyDentry setType(String type) { this.type = type; return this; } public String getType() { return this.type; } public AddFolderResponseBodyDentry setUuid(String uuid) { this.uuid = uuid; return this; } public String getUuid() { return this.uuid; } public AddFolderResponseBodyDentry setVersion(Long version) { this.version = version; return this; } public Long getVersion() { return this.version; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddFolderShrinkHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddFolderShrinkHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; @NameInMap("AccountContext") public String accountContextShrink; public static AddFolderShrinkHeaders build(java.util.Map<String, ?> map) throws Exception { AddFolderShrinkHeaders self = new AddFolderShrinkHeaders(); return TeaModel.build(map, self); } public AddFolderShrinkHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public AddFolderShrinkHeaders setAccountContextShrink(String accountContextShrink) { this.accountContextShrink = accountContextShrink; return this; } public String getAccountContextShrink() { return this.accountContextShrink; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddFolderShrinkRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddFolderShrinkRequest extends TeaModel { /** * <p>This parameter is required.</p> */ @NameInMap("Name") public String name; @NameInMap("Option") public String optionShrink; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>140822073803</p> */ @NameInMap("ParentId") public String parentId; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>xPar2SZ63KodG3aV</p> */ @NameInMap("SpaceId") public String spaceId; @NameInMap("TenantContext") public String tenantContextShrink; public static AddFolderShrinkRequest build(java.util.Map<String, ?> map) throws Exception { AddFolderShrinkRequest self = new AddFolderShrinkRequest(); return TeaModel.build(map, self); } public AddFolderShrinkRequest setName(String name) { this.name = name; return this; } public String getName() { return this.name; } public AddFolderShrinkRequest setOptionShrink(String optionShrink) { this.optionShrink = optionShrink; return this; } public String getOptionShrink() { return this.optionShrink; } public AddFolderShrinkRequest setParentId(String parentId) { this.parentId = parentId; return this; } public String getParentId() { return this.parentId; } public AddFolderShrinkRequest setSpaceId(String spaceId) { this.spaceId = spaceId; return this; } public String getSpaceId() { return this.spaceId; } public AddFolderShrinkRequest setTenantContextShrink(String tenantContextShrink) { this.tenantContextShrink = tenantContextShrink; return this; } public String getTenantContextShrink() { return this.tenantContextShrink; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddMeetingRoomsHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddMeetingRoomsHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; @NameInMap("AccountContext") public AddMeetingRoomsHeadersAccountContext accountContext; public static AddMeetingRoomsHeaders build(java.util.Map<String, ?> map) throws Exception { AddMeetingRoomsHeaders self = new AddMeetingRoomsHeaders(); return TeaModel.build(map, self); } public AddMeetingRoomsHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public AddMeetingRoomsHeaders setAccountContext(AddMeetingRoomsHeadersAccountContext accountContext) { this.accountContext = accountContext; return this; } public AddMeetingRoomsHeadersAccountContext getAccountContext() { return this.accountContext; } public static class AddMeetingRoomsHeadersAccountContext extends TeaModel { /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>012345</p> */ @NameInMap("accountId") public String accountId; public static AddMeetingRoomsHeadersAccountContext build(java.util.Map<String, ?> map) throws Exception { AddMeetingRoomsHeadersAccountContext self = new AddMeetingRoomsHeadersAccountContext(); return TeaModel.build(map, self); } public AddMeetingRoomsHeadersAccountContext setAccountId(String accountId) { this.accountId = accountId; return this; } public String getAccountId() { return this.accountId; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddMeetingRoomsRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddMeetingRoomsRequest extends TeaModel { /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>primary</p> */ @NameInMap("CalendarId") public String calendarId; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>U5Kxxxxx</p> */ @NameInMap("EventId") public String eventId; /** * <p>This parameter is required.</p> */ @NameInMap("MeetingRoomsToAdd") public java.util.List<AddMeetingRoomsRequestMeetingRoomsToAdd> meetingRoomsToAdd; public static AddMeetingRoomsRequest build(java.util.Map<String, ?> map) throws Exception { AddMeetingRoomsRequest self = new AddMeetingRoomsRequest(); return TeaModel.build(map, self); } public AddMeetingRoomsRequest setCalendarId(String calendarId) { this.calendarId = calendarId; return this; } public String getCalendarId() { return this.calendarId; } public AddMeetingRoomsRequest setEventId(String eventId) { this.eventId = eventId; return this; } public String getEventId() { return this.eventId; } public AddMeetingRoomsRequest setMeetingRoomsToAdd(java.util.List<AddMeetingRoomsRequestMeetingRoomsToAdd> meetingRoomsToAdd) { this.meetingRoomsToAdd = meetingRoomsToAdd; return this; } public java.util.List<AddMeetingRoomsRequestMeetingRoomsToAdd> getMeetingRoomsToAdd() { return this.meetingRoomsToAdd; } public static class AddMeetingRoomsRequestMeetingRoomsToAdd extends TeaModel { /** * <strong>example:</strong> * <p>4002fxxxxx</p> */ @NameInMap("RoomId") public String roomId; public static AddMeetingRoomsRequestMeetingRoomsToAdd build(java.util.Map<String, ?> map) throws Exception { AddMeetingRoomsRequestMeetingRoomsToAdd self = new AddMeetingRoomsRequestMeetingRoomsToAdd(); return TeaModel.build(map, self); } public AddMeetingRoomsRequestMeetingRoomsToAdd setRoomId(String roomId) { this.roomId = roomId; return this; } public String getRoomId() { return this.roomId; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddMeetingRoomsResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddMeetingRoomsResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public AddMeetingRoomsResponseBody body; public static AddMeetingRoomsResponse build(java.util.Map<String, ?> map) throws Exception { AddMeetingRoomsResponse self = new AddMeetingRoomsResponse(); return TeaModel.build(map, self); } public AddMeetingRoomsResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public AddMeetingRoomsResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public AddMeetingRoomsResponse setBody(AddMeetingRoomsResponseBody body) { this.body = body; return this; } public AddMeetingRoomsResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddMeetingRoomsResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddMeetingRoomsResponseBody extends TeaModel { /** * <p>requestId</p> * * <strong>example:</strong> * <p>0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX</p> */ @NameInMap("requestId") public String requestId; /** * <strong>example:</strong> * <p>true</p> */ @NameInMap("result") public Boolean result; public static AddMeetingRoomsResponseBody build(java.util.Map<String, ?> map) throws Exception { AddMeetingRoomsResponseBody self = new AddMeetingRoomsResponseBody(); return TeaModel.build(map, self); } public AddMeetingRoomsResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public AddMeetingRoomsResponseBody setResult(Boolean result) { this.result = result; return this; } public Boolean getResult() { return this.result; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddMeetingRoomsShrinkHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddMeetingRoomsShrinkHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; @NameInMap("AccountContext") public String accountContextShrink; public static AddMeetingRoomsShrinkHeaders build(java.util.Map<String, ?> map) throws Exception { AddMeetingRoomsShrinkHeaders self = new AddMeetingRoomsShrinkHeaders(); return TeaModel.build(map, self); } public AddMeetingRoomsShrinkHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public AddMeetingRoomsShrinkHeaders setAccountContextShrink(String accountContextShrink) { this.accountContextShrink = accountContextShrink; return this; } public String getAccountContextShrink() { return this.accountContextShrink; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddMeetingRoomsShrinkRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddMeetingRoomsShrinkRequest extends TeaModel { /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>primary</p> */ @NameInMap("CalendarId") public String calendarId; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>U5Kxxxxx</p> */ @NameInMap("EventId") public String eventId; /** * <p>This parameter is required.</p> */ @NameInMap("MeetingRoomsToAdd") public String meetingRoomsToAddShrink; public static AddMeetingRoomsShrinkRequest build(java.util.Map<String, ?> map) throws Exception { AddMeetingRoomsShrinkRequest self = new AddMeetingRoomsShrinkRequest(); return TeaModel.build(map, self); } public AddMeetingRoomsShrinkRequest setCalendarId(String calendarId) { this.calendarId = calendarId; return this; } public String getCalendarId() { return this.calendarId; } public AddMeetingRoomsShrinkRequest setEventId(String eventId) { this.eventId = eventId; return this; } public String getEventId() { return this.eventId; } public AddMeetingRoomsShrinkRequest setMeetingRoomsToAddShrink(String meetingRoomsToAddShrink) { this.meetingRoomsToAddShrink = meetingRoomsToAddShrink; return this; } public String getMeetingRoomsToAddShrink() { return this.meetingRoomsToAddShrink; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddMultiDimTableHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddMultiDimTableHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; @NameInMap("AccountContext") public AddMultiDimTableHeadersAccountContext accountContext; public static AddMultiDimTableHeaders build(java.util.Map<String, ?> map) throws Exception { AddMultiDimTableHeaders self = new AddMultiDimTableHeaders(); return TeaModel.build(map, self); } public AddMultiDimTableHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public AddMultiDimTableHeaders setAccountContext(AddMultiDimTableHeadersAccountContext accountContext) { this.accountContext = accountContext; return this; } public AddMultiDimTableHeadersAccountContext getAccountContext() { return this.accountContext; } public static class AddMultiDimTableHeadersAccountContext extends TeaModel { /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>012345</p> */ @NameInMap("accountId") public String accountId; public static AddMultiDimTableHeadersAccountContext build(java.util.Map<String, ?> map) throws Exception { AddMultiDimTableHeadersAccountContext self = new AddMultiDimTableHeadersAccountContext(); return TeaModel.build(map, self); } public AddMultiDimTableHeadersAccountContext setAccountId(String accountId) { this.accountId = accountId; return this; } public String getAccountId() { return this.accountId; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddMultiDimTableRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddMultiDimTableRequest extends TeaModel { /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>r1R7q3QmWew5lo02fxB7nxxxxxxxx</p> */ @NameInMap("BaseId") public String baseId; @NameInMap("Fields") public java.util.List<AddMultiDimTableRequestFields> fields; @NameInMap("Name") public String name; @NameInMap("TenantContext") public AddMultiDimTableRequestTenantContext tenantContext; public static AddMultiDimTableRequest build(java.util.Map<String, ?> map) throws Exception { AddMultiDimTableRequest self = new AddMultiDimTableRequest(); return TeaModel.build(map, self); } public AddMultiDimTableRequest setBaseId(String baseId) { this.baseId = baseId; return this; } public String getBaseId() { return this.baseId; } public AddMultiDimTableRequest setFields(java.util.List<AddMultiDimTableRequestFields> fields) { this.fields = fields; return this; } public java.util.List<AddMultiDimTableRequestFields> getFields() { return this.fields; } public AddMultiDimTableRequest setName(String name) { this.name = name; return this; } public String getName() { return this.name; } public AddMultiDimTableRequest setTenantContext(AddMultiDimTableRequestTenantContext tenantContext) { this.tenantContext = tenantContext; return this; } public AddMultiDimTableRequestTenantContext getTenantContext() { return this.tenantContext; } public static class AddMultiDimTableRequestFields extends TeaModel { /** * <p>This parameter is required.</p> */ @NameInMap("Name") public String name; @NameInMap("Property") public java.util.Map<String, ?> property; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>text</p> */ @NameInMap("Type") public String type; public static AddMultiDimTableRequestFields build(java.util.Map<String, ?> map) throws Exception { AddMultiDimTableRequestFields self = new AddMultiDimTableRequestFields(); return TeaModel.build(map, self); } public AddMultiDimTableRequestFields setName(String name) { this.name = name; return this; } public String getName() { return this.name; } public AddMultiDimTableRequestFields setProperty(java.util.Map<String, ?> property) { this.property = property; return this; } public java.util.Map<String, ?> getProperty() { return this.property; } public AddMultiDimTableRequestFields setType(String type) { this.type = type; return this; } public String getType() { return this.type; } } public static class AddMultiDimTableRequestTenantContext extends TeaModel { /** * <strong>example:</strong> * <p>xxxxxx</p> */ @NameInMap("tenantId") public String tenantId; public static AddMultiDimTableRequestTenantContext build(java.util.Map<String, ?> map) throws Exception { AddMultiDimTableRequestTenantContext self = new AddMultiDimTableRequestTenantContext(); return TeaModel.build(map, self); } public AddMultiDimTableRequestTenantContext setTenantId(String tenantId) { this.tenantId = tenantId; return this; } public String getTenantId() { return this.tenantId; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddMultiDimTableResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddMultiDimTableResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public AddMultiDimTableResponseBody body; public static AddMultiDimTableResponse build(java.util.Map<String, ?> map) throws Exception { AddMultiDimTableResponse self = new AddMultiDimTableResponse(); return TeaModel.build(map, self); } public AddMultiDimTableResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public AddMultiDimTableResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public AddMultiDimTableResponse setBody(AddMultiDimTableResponseBody body) { this.body = body; return this; } public AddMultiDimTableResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddMultiDimTableResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddMultiDimTableResponseBody extends TeaModel { /** * <strong>example:</strong> * <p>r1R7q3QmWew5lo02fxB7xxxxxxx</p> */ @NameInMap("Id") public String id; @NameInMap("Name") public String name; /** * <strong>example:</strong> * <p>0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX</p> */ @NameInMap("requestId") public String requestId; /** * <strong>example:</strong> * <p>0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX</p> */ @NameInMap("vendorRequestId") public String vendorRequestId; /** * <strong>example:</strong> * <p>dingtalk</p> */ @NameInMap("vendorType") public String vendorType; public static AddMultiDimTableResponseBody build(java.util.Map<String, ?> map) throws Exception { AddMultiDimTableResponseBody self = new AddMultiDimTableResponseBody(); return TeaModel.build(map, self); } public AddMultiDimTableResponseBody setId(String id) { this.id = id; return this; } public String getId() { return this.id; } public AddMultiDimTableResponseBody setName(String name) { this.name = name; return this; } public String getName() { return this.name; } public AddMultiDimTableResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public AddMultiDimTableResponseBody setVendorRequestId(String vendorRequestId) { this.vendorRequestId = vendorRequestId; return this; } public String getVendorRequestId() { return this.vendorRequestId; } public AddMultiDimTableResponseBody setVendorType(String vendorType) { this.vendorType = vendorType; return this; } public String getVendorType() { return this.vendorType; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddMultiDimTableShrinkHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddMultiDimTableShrinkHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; @NameInMap("AccountContext") public String accountContextShrink; public static AddMultiDimTableShrinkHeaders build(java.util.Map<String, ?> map) throws Exception { AddMultiDimTableShrinkHeaders self = new AddMultiDimTableShrinkHeaders(); return TeaModel.build(map, self); } public AddMultiDimTableShrinkHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public AddMultiDimTableShrinkHeaders setAccountContextShrink(String accountContextShrink) { this.accountContextShrink = accountContextShrink; return this; } public String getAccountContextShrink() { return this.accountContextShrink; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddMultiDimTableShrinkRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddMultiDimTableShrinkRequest extends TeaModel { /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>r1R7q3QmWew5lo02fxB7nxxxxxxxx</p> */ @NameInMap("BaseId") public String baseId; @NameInMap("Fields") public String fieldsShrink; @NameInMap("Name") public String name; @NameInMap("TenantContext") public String tenantContextShrink; public static AddMultiDimTableShrinkRequest build(java.util.Map<String, ?> map) throws Exception { AddMultiDimTableShrinkRequest self = new AddMultiDimTableShrinkRequest(); return TeaModel.build(map, self); } public AddMultiDimTableShrinkRequest setBaseId(String baseId) { this.baseId = baseId; return this; } public String getBaseId() { return this.baseId; } public AddMultiDimTableShrinkRequest setFieldsShrink(String fieldsShrink) { this.fieldsShrink = fieldsShrink; return this; } public String getFieldsShrink() { return this.fieldsShrink; } public AddMultiDimTableShrinkRequest setName(String name) { this.name = name; return this; } public String getName() { return this.name; } public AddMultiDimTableShrinkRequest setTenantContextShrink(String tenantContextShrink) { this.tenantContextShrink = tenantContextShrink; return this; } public String getTenantContextShrink() { return this.tenantContextShrink; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddPermissionHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddPermissionHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; @NameInMap("AccountContext") public AddPermissionHeadersAccountContext accountContext; public static AddPermissionHeaders build(java.util.Map<String, ?> map) throws Exception { AddPermissionHeaders self = new AddPermissionHeaders(); return TeaModel.build(map, self); } public AddPermissionHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public AddPermissionHeaders setAccountContext(AddPermissionHeadersAccountContext accountContext) { this.accountContext = accountContext; return this; } public AddPermissionHeadersAccountContext getAccountContext() { return this.accountContext; } public static class AddPermissionHeadersAccountContext extends TeaModel { /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>012345</p> */ @NameInMap("accountId") public String accountId; public static AddPermissionHeadersAccountContext build(java.util.Map<String, ?> map) throws Exception { AddPermissionHeadersAccountContext self = new AddPermissionHeadersAccountContext(); return TeaModel.build(map, self); } public AddPermissionHeadersAccountContext setAccountId(String accountId) { this.accountId = accountId; return this; } public String getAccountId() { return this.accountId; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddPermissionRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddPermissionRequest extends TeaModel { @NameInMap("DentryUuid") public String dentryUuid; /** * <p>This parameter is required.</p> */ @NameInMap("Members") public java.util.List<AddPermissionRequestMembers> members; @NameInMap("Option") public AddPermissionRequestOption option; /** * <p>This parameter is required.</p> */ @NameInMap("RoleId") public String roleId; @NameInMap("TenantContext") public AddPermissionRequestTenantContext tenantContext; public static AddPermissionRequest build(java.util.Map<String, ?> map) throws Exception { AddPermissionRequest self = new AddPermissionRequest(); return TeaModel.build(map, self); } public AddPermissionRequest setDentryUuid(String dentryUuid) { this.dentryUuid = dentryUuid; return this; } public String getDentryUuid() { return this.dentryUuid; } public AddPermissionRequest setMembers(java.util.List<AddPermissionRequestMembers> members) { this.members = members; return this; } public java.util.List<AddPermissionRequestMembers> getMembers() { return this.members; } public AddPermissionRequest setOption(AddPermissionRequestOption option) { this.option = option; return this; } public AddPermissionRequestOption getOption() { return this.option; } public AddPermissionRequest setRoleId(String roleId) { this.roleId = roleId; return this; } public String getRoleId() { return this.roleId; } public AddPermissionRequest setTenantContext(AddPermissionRequestTenantContext tenantContext) { this.tenantContext = tenantContext; return this; } public AddPermissionRequestTenantContext getTenantContext() { return this.tenantContext; } public static class AddPermissionRequestMembers extends TeaModel { /** * <strong>example:</strong> * <p>123456</p> */ @NameInMap("CorpId") public String corpId; /** * <strong>example:</strong> * <p>123456</p> */ @NameInMap("Id") public String id; /** * <strong>example:</strong> * <p>ORG</p> */ @NameInMap("Type") public String type; public static AddPermissionRequestMembers build(java.util.Map<String, ?> map) throws Exception { AddPermissionRequestMembers self = new AddPermissionRequestMembers(); return TeaModel.build(map, self); } public AddPermissionRequestMembers setCorpId(String corpId) { this.corpId = corpId; return this; } public String getCorpId() { return this.corpId; } public AddPermissionRequestMembers setId(String id) { this.id = id; return this; } public String getId() { return this.id; } public AddPermissionRequestMembers setType(String type) { this.type = type; return this; } public String getType() { return this.type; } } public static class AddPermissionRequestOption extends TeaModel { /** * <strong>example:</strong> * <p>3600</p> */ @NameInMap("Duration") public Long duration; public static AddPermissionRequestOption build(java.util.Map<String, ?> map) throws Exception { AddPermissionRequestOption self = new AddPermissionRequestOption(); return TeaModel.build(map, self); } public AddPermissionRequestOption setDuration(Long duration) { this.duration = duration; return this; } public Long getDuration() { return this.duration; } } public static class AddPermissionRequestTenantContext extends TeaModel { /** * <strong>example:</strong> * <p>xxxxxx</p> */ @NameInMap("tenantId") public String tenantId; public static AddPermissionRequestTenantContext build(java.util.Map<String, ?> map) throws Exception { AddPermissionRequestTenantContext self = new AddPermissionRequestTenantContext(); return TeaModel.build(map, self); } public AddPermissionRequestTenantContext setTenantId(String tenantId) { this.tenantId = tenantId; return this; } public String getTenantId() { return this.tenantId; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddPermissionResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddPermissionResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public AddPermissionResponseBody body; public static AddPermissionResponse build(java.util.Map<String, ?> map) throws Exception { AddPermissionResponse self = new AddPermissionResponse(); return TeaModel.build(map, self); } public AddPermissionResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public AddPermissionResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public AddPermissionResponse setBody(AddPermissionResponseBody body) { this.body = body; return this; } public AddPermissionResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddPermissionResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddPermissionResponseBody extends TeaModel { /** * <strong>example:</strong> * <p>0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX</p> */ @NameInMap("requestId") public String requestId; /** * <strong>example:</strong> * <p>true</p> */ @NameInMap("success") public Boolean success; /** * <strong>example:</strong> * <p>0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX</p> */ @NameInMap("vendorRequestId") public String vendorRequestId; /** * <strong>example:</strong> * <p>dingtalk</p> */ @NameInMap("vendorType") public String vendorType; public static AddPermissionResponseBody build(java.util.Map<String, ?> map) throws Exception { AddPermissionResponseBody self = new AddPermissionResponseBody(); return TeaModel.build(map, self); } public AddPermissionResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public AddPermissionResponseBody setSuccess(Boolean success) { this.success = success; return this; } public Boolean getSuccess() { return this.success; } public AddPermissionResponseBody setVendorRequestId(String vendorRequestId) { this.vendorRequestId = vendorRequestId; return this; } public String getVendorRequestId() { return this.vendorRequestId; } public AddPermissionResponseBody setVendorType(String vendorType) { this.vendorType = vendorType; return this; } public String getVendorType() { return this.vendorType; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddPermissionShrinkHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddPermissionShrinkHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; @NameInMap("AccountContext") public String accountContextShrink; public static AddPermissionShrinkHeaders build(java.util.Map<String, ?> map) throws Exception { AddPermissionShrinkHeaders self = new AddPermissionShrinkHeaders(); return TeaModel.build(map, self); } public AddPermissionShrinkHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public AddPermissionShrinkHeaders setAccountContextShrink(String accountContextShrink) { this.accountContextShrink = accountContextShrink; return this; } public String getAccountContextShrink() { return this.accountContextShrink; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddPermissionShrinkRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddPermissionShrinkRequest extends TeaModel { @NameInMap("DentryUuid") public String dentryUuid; /** * <p>This parameter is required.</p> */ @NameInMap("Members") public String membersShrink; @NameInMap("Option") public String optionShrink; /** * <p>This parameter is required.</p> */ @NameInMap("RoleId") public String roleId; @NameInMap("TenantContext") public String tenantContextShrink; public static AddPermissionShrinkRequest build(java.util.Map<String, ?> map) throws Exception { AddPermissionShrinkRequest self = new AddPermissionShrinkRequest(); return TeaModel.build(map, self); } public AddPermissionShrinkRequest setDentryUuid(String dentryUuid) { this.dentryUuid = dentryUuid; return this; } public String getDentryUuid() { return this.dentryUuid; } public AddPermissionShrinkRequest setMembersShrink(String membersShrink) { this.membersShrink = membersShrink; return this; } public String getMembersShrink() { return this.membersShrink; } public AddPermissionShrinkRequest setOptionShrink(String optionShrink) { this.optionShrink = optionShrink; return this; } public String getOptionShrink() { return this.optionShrink; } public AddPermissionShrinkRequest setRoleId(String roleId) { this.roleId = roleId; return this; } public String getRoleId() { return this.roleId; } public AddPermissionShrinkRequest setTenantContextShrink(String tenantContextShrink) { this.tenantContextShrink = tenantContextShrink; return this; } public String getTenantContextShrink() { return this.tenantContextShrink; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddRecordPermissionHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddRecordPermissionHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; @NameInMap("AccountContext") public AddRecordPermissionHeadersAccountContext accountContext; public static AddRecordPermissionHeaders build(java.util.Map<String, ?> map) throws Exception { AddRecordPermissionHeaders self = new AddRecordPermissionHeaders(); return TeaModel.build(map, self); } public AddRecordPermissionHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public AddRecordPermissionHeaders setAccountContext(AddRecordPermissionHeadersAccountContext accountContext) { this.accountContext = accountContext; return this; } public AddRecordPermissionHeadersAccountContext getAccountContext() { return this.accountContext; } public static class AddRecordPermissionHeadersAccountContext extends TeaModel { /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>012345</p> */ @NameInMap("accountId") public String accountId; public static AddRecordPermissionHeadersAccountContext build(java.util.Map<String, ?> map) throws Exception { AddRecordPermissionHeadersAccountContext self = new AddRecordPermissionHeadersAccountContext(); return TeaModel.build(map, self); } public AddRecordPermissionHeadersAccountContext setAccountId(String accountId) { this.accountId = accountId; return this; } public String getAccountId() { return this.accountId; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddRecordPermissionRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddRecordPermissionRequest extends TeaModel { /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>minutes</p> */ @NameInMap("BizType") public String bizType; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1dddwrqrq</p> */ @NameInMap("ConferenceId") public String conferenceId; @NameInMap("TenantContext") public AddRecordPermissionRequestTenantContext tenantContext; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>012345</p> */ @NameInMap("UserId") public String userId; public static AddRecordPermissionRequest build(java.util.Map<String, ?> map) throws Exception { AddRecordPermissionRequest self = new AddRecordPermissionRequest(); return TeaModel.build(map, self); } public AddRecordPermissionRequest setBizType(String bizType) { this.bizType = bizType; return this; } public String getBizType() { return this.bizType; } public AddRecordPermissionRequest setConferenceId(String conferenceId) { this.conferenceId = conferenceId; return this; } public String getConferenceId() { return this.conferenceId; } public AddRecordPermissionRequest setTenantContext(AddRecordPermissionRequestTenantContext tenantContext) { this.tenantContext = tenantContext; return this; } public AddRecordPermissionRequestTenantContext getTenantContext() { return this.tenantContext; } public AddRecordPermissionRequest setUserId(String userId) { this.userId = userId; return this; } public String getUserId() { return this.userId; } public static class AddRecordPermissionRequestTenantContext extends TeaModel { /** * <strong>example:</strong> * <p>xxxxxx</p> */ @NameInMap("tenantId") public String tenantId; public static AddRecordPermissionRequestTenantContext build(java.util.Map<String, ?> map) throws Exception { AddRecordPermissionRequestTenantContext self = new AddRecordPermissionRequestTenantContext(); return TeaModel.build(map, self); } public AddRecordPermissionRequestTenantContext setTenantId(String tenantId) { this.tenantId = tenantId; return this; } public String getTenantId() { return this.tenantId; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddRecordPermissionResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddRecordPermissionResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public AddRecordPermissionResponseBody body; public static AddRecordPermissionResponse build(java.util.Map<String, ?> map) throws Exception { AddRecordPermissionResponse self = new AddRecordPermissionResponse(); return TeaModel.build(map, self); } public AddRecordPermissionResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public AddRecordPermissionResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public AddRecordPermissionResponse setBody(AddRecordPermissionResponseBody body) { this.body = body; return this; } public AddRecordPermissionResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddRecordPermissionResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddRecordPermissionResponseBody extends TeaModel { /** * <strong>example:</strong> * <p>200</p> */ @NameInMap("code") public String code; /** * <strong>example:</strong> * <p>0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX</p> */ @NameInMap("requestId") public String requestId; /** * <strong>example:</strong> * <p>0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX</p> */ @NameInMap("vendorRequestId") public String vendorRequestId; /** * <strong>example:</strong> * <p>dingtalk</p> */ @NameInMap("vendorType") public String vendorType; public static AddRecordPermissionResponseBody build(java.util.Map<String, ?> map) throws Exception { AddRecordPermissionResponseBody self = new AddRecordPermissionResponseBody(); return TeaModel.build(map, self); } public AddRecordPermissionResponseBody setCode(String code) { this.code = code; return this; } public String getCode() { return this.code; } public AddRecordPermissionResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public AddRecordPermissionResponseBody setVendorRequestId(String vendorRequestId) { this.vendorRequestId = vendorRequestId; return this; } public String getVendorRequestId() { return this.vendorRequestId; } public AddRecordPermissionResponseBody setVendorType(String vendorType) { this.vendorType = vendorType; return this; } public String getVendorType() { return this.vendorType; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddRecordPermissionShrinkHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddRecordPermissionShrinkHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; @NameInMap("AccountContext") public String accountContextShrink; public static AddRecordPermissionShrinkHeaders build(java.util.Map<String, ?> map) throws Exception { AddRecordPermissionShrinkHeaders self = new AddRecordPermissionShrinkHeaders(); return TeaModel.build(map, self); } public AddRecordPermissionShrinkHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public AddRecordPermissionShrinkHeaders setAccountContextShrink(String accountContextShrink) { this.accountContextShrink = accountContextShrink; return this; } public String getAccountContextShrink() { return this.accountContextShrink; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddRecordPermissionShrinkRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddRecordPermissionShrinkRequest extends TeaModel { /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>minutes</p> */ @NameInMap("BizType") public String bizType; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>1dddwrqrq</p> */ @NameInMap("ConferenceId") public String conferenceId; @NameInMap("TenantContext") public String tenantContextShrink; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>012345</p> */ @NameInMap("UserId") public String userId; public static AddRecordPermissionShrinkRequest build(java.util.Map<String, ?> map) throws Exception { AddRecordPermissionShrinkRequest self = new AddRecordPermissionShrinkRequest(); return TeaModel.build(map, self); } public AddRecordPermissionShrinkRequest setBizType(String bizType) { this.bizType = bizType; return this; } public String getBizType() { return this.bizType; } public AddRecordPermissionShrinkRequest setConferenceId(String conferenceId) { this.conferenceId = conferenceId; return this; } public String getConferenceId() { return this.conferenceId; } public AddRecordPermissionShrinkRequest setTenantContextShrink(String tenantContextShrink) { this.tenantContextShrink = tenantContextShrink; return this; } public String getTenantContextShrink() { return this.tenantContextShrink; } public AddRecordPermissionShrinkRequest setUserId(String userId) { this.userId = userId; return this; } public String getUserId() { return this.userId; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddScenegroupMemberHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddScenegroupMemberHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; @NameInMap("AccountContext") public AddScenegroupMemberHeadersAccountContext accountContext; public static AddScenegroupMemberHeaders build(java.util.Map<String, ?> map) throws Exception { AddScenegroupMemberHeaders self = new AddScenegroupMemberHeaders(); return TeaModel.build(map, self); } public AddScenegroupMemberHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public AddScenegroupMemberHeaders setAccountContext(AddScenegroupMemberHeadersAccountContext accountContext) { this.accountContext = accountContext; return this; } public AddScenegroupMemberHeadersAccountContext getAccountContext() { return this.accountContext; } public static class AddScenegroupMemberHeadersAccountContext extends TeaModel { /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>012345</p> */ @NameInMap("accountId") public String accountId; public static AddScenegroupMemberHeadersAccountContext build(java.util.Map<String, ?> map) throws Exception { AddScenegroupMemberHeadersAccountContext self = new AddScenegroupMemberHeadersAccountContext(); return TeaModel.build(map, self); } public AddScenegroupMemberHeadersAccountContext setAccountId(String accountId) { this.accountId = accountId; return this; } public String getAccountId() { return this.accountId; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddScenegroupMemberRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddScenegroupMemberRequest extends TeaModel { /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>cidt*****Xa4K10w==</p> */ @NameInMap("OpenConversationId") public String openConversationId; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>123xx,224xx</p> */ @NameInMap("UserIds") public String userIds; public static AddScenegroupMemberRequest build(java.util.Map<String, ?> map) throws Exception { AddScenegroupMemberRequest self = new AddScenegroupMemberRequest(); return TeaModel.build(map, self); } public AddScenegroupMemberRequest setOpenConversationId(String openConversationId) { this.openConversationId = openConversationId; return this; } public String getOpenConversationId() { return this.openConversationId; } public AddScenegroupMemberRequest setUserIds(String userIds) { this.userIds = userIds; return this; } public String getUserIds() { return this.userIds; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddScenegroupMemberResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddScenegroupMemberResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public AddScenegroupMemberResponseBody body; public static AddScenegroupMemberResponse build(java.util.Map<String, ?> map) throws Exception { AddScenegroupMemberResponse self = new AddScenegroupMemberResponse(); return TeaModel.build(map, self); } public AddScenegroupMemberResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public AddScenegroupMemberResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public AddScenegroupMemberResponse setBody(AddScenegroupMemberResponseBody body) { this.body = body; return this; } public AddScenegroupMemberResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddScenegroupMemberResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddScenegroupMemberResponseBody extends TeaModel { /** * <p>requestId</p> * * <strong>example:</strong> * <p>0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX</p> */ @NameInMap("requestId") public String requestId; /** * <strong>example:</strong> * <p>true</p> */ @NameInMap("success") public Boolean success; public static AddScenegroupMemberResponseBody build(java.util.Map<String, ?> map) throws Exception { AddScenegroupMemberResponseBody self = new AddScenegroupMemberResponseBody(); return TeaModel.build(map, self); } public AddScenegroupMemberResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public AddScenegroupMemberResponseBody setSuccess(Boolean success) { this.success = success; return this; } public Boolean getSuccess() { return this.success; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddScenegroupMemberShrinkHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddScenegroupMemberShrinkHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; @NameInMap("AccountContext") public String accountContextShrink; public static AddScenegroupMemberShrinkHeaders build(java.util.Map<String, ?> map) throws Exception { AddScenegroupMemberShrinkHeaders self = new AddScenegroupMemberShrinkHeaders(); return TeaModel.build(map, self); } public AddScenegroupMemberShrinkHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public AddScenegroupMemberShrinkHeaders setAccountContextShrink(String accountContextShrink) { this.accountContextShrink = accountContextShrink; return this; } public String getAccountContextShrink() { return this.accountContextShrink; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddTicketMemoHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddTicketMemoHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; @NameInMap("AccountContext") public AddTicketMemoHeadersAccountContext accountContext; public static AddTicketMemoHeaders build(java.util.Map<String, ?> map) throws Exception { AddTicketMemoHeaders self = new AddTicketMemoHeaders(); return TeaModel.build(map, self); } public AddTicketMemoHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public AddTicketMemoHeaders setAccountContext(AddTicketMemoHeadersAccountContext accountContext) { this.accountContext = accountContext; return this; } public AddTicketMemoHeadersAccountContext getAccountContext() { return this.accountContext; } public static class AddTicketMemoHeadersAccountContext extends TeaModel { /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>012345</p> */ @NameInMap("accountId") public String accountId; public static AddTicketMemoHeadersAccountContext build(java.util.Map<String, ?> map) throws Exception { AddTicketMemoHeadersAccountContext self = new AddTicketMemoHeadersAccountContext(); return TeaModel.build(map, self); } public AddTicketMemoHeadersAccountContext setAccountId(String accountId) { this.accountId = accountId; return this; } public String getAccountId() { return this.accountId; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddTicketMemoRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddTicketMemoRequest extends TeaModel { /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>eKWh3xxxxiE</p> */ @NameInMap("OpenTeamId") public String openTeamId; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>Dq9hP8Sk2v6vQxxxxiE</p> */ @NameInMap("OpenTicketId") public String openTicketId; @NameInMap("TenantContext") public AddTicketMemoRequestTenantContext tenantContext; @NameInMap("TicketMemo") public AddTicketMemoRequestTicketMemo ticketMemo; public static AddTicketMemoRequest build(java.util.Map<String, ?> map) throws Exception { AddTicketMemoRequest self = new AddTicketMemoRequest(); return TeaModel.build(map, self); } public AddTicketMemoRequest setOpenTeamId(String openTeamId) { this.openTeamId = openTeamId; return this; } public String getOpenTeamId() { return this.openTeamId; } public AddTicketMemoRequest setOpenTicketId(String openTicketId) { this.openTicketId = openTicketId; return this; } public String getOpenTicketId() { return this.openTicketId; } public AddTicketMemoRequest setTenantContext(AddTicketMemoRequestTenantContext tenantContext) { this.tenantContext = tenantContext; return this; } public AddTicketMemoRequestTenantContext getTenantContext() { return this.tenantContext; } public AddTicketMemoRequest setTicketMemo(AddTicketMemoRequestTicketMemo ticketMemo) { this.ticketMemo = ticketMemo; return this; } public AddTicketMemoRequestTicketMemo getTicketMemo() { return this.ticketMemo; } public static class AddTicketMemoRequestTenantContext extends TeaModel { /** * <strong>example:</strong> * <p>xxxxxx</p> */ @NameInMap("tenantId") public String tenantId; public static AddTicketMemoRequestTenantContext build(java.util.Map<String, ?> map) throws Exception { AddTicketMemoRequestTenantContext self = new AddTicketMemoRequestTenantContext(); return TeaModel.build(map, self); } public AddTicketMemoRequestTenantContext setTenantId(String tenantId) { this.tenantId = tenantId; return this; } public String getTenantId() { return this.tenantId; } } public static class AddTicketMemoRequestTicketMemoAttachments extends TeaModel { /** * <strong>example:</strong> * <p>&quot;ticket/image/44xxxx9/43003/e27204b38xxxx1640499.txt</p> */ @NameInMap("FileName") public String fileName; /** * <strong>example:</strong> * <p>wahaha.txt</p> */ @NameInMap("Key") public String key; public static AddTicketMemoRequestTicketMemoAttachments build(java.util.Map<String, ?> map) throws Exception { AddTicketMemoRequestTicketMemoAttachments self = new AddTicketMemoRequestTicketMemoAttachments(); return TeaModel.build(map, self); } public AddTicketMemoRequestTicketMemoAttachments setFileName(String fileName) { this.fileName = fileName; return this; } public String getFileName() { return this.fileName; } public AddTicketMemoRequestTicketMemoAttachments setKey(String key) { this.key = key; return this; } public String getKey() { return this.key; } } public static class AddTicketMemoRequestTicketMemo extends TeaModel { @NameInMap("Attachments") public java.util.List<AddTicketMemoRequestTicketMemoAttachments> attachments; @NameInMap("Memo") public String memo; public static AddTicketMemoRequestTicketMemo build(java.util.Map<String, ?> map) throws Exception { AddTicketMemoRequestTicketMemo self = new AddTicketMemoRequestTicketMemo(); return TeaModel.build(map, self); } public AddTicketMemoRequestTicketMemo setAttachments(java.util.List<AddTicketMemoRequestTicketMemoAttachments> attachments) { this.attachments = attachments; return this; } public java.util.List<AddTicketMemoRequestTicketMemoAttachments> getAttachments() { return this.attachments; } public AddTicketMemoRequestTicketMemo setMemo(String memo) { this.memo = memo; return this; } public String getMemo() { return this.memo; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddTicketMemoResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddTicketMemoResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public AddTicketMemoResponseBody body; public static AddTicketMemoResponse build(java.util.Map<String, ?> map) throws Exception { AddTicketMemoResponse self = new AddTicketMemoResponse(); return TeaModel.build(map, self); } public AddTicketMemoResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public AddTicketMemoResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public AddTicketMemoResponse setBody(AddTicketMemoResponseBody body) { this.body = body; return this; } public AddTicketMemoResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddTicketMemoResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddTicketMemoResponseBody extends TeaModel { /** * <strong>example:</strong> * <p>0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX</p> */ @NameInMap("requestId") public String requestId; /** * <strong>example:</strong> * <p>0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX</p> */ @NameInMap("vendorRequestId") public String vendorRequestId; /** * <strong>example:</strong> * <p>dingtalk</p> */ @NameInMap("vendorType") public String vendorType; public static AddTicketMemoResponseBody build(java.util.Map<String, ?> map) throws Exception { AddTicketMemoResponseBody self = new AddTicketMemoResponseBody(); return TeaModel.build(map, self); } public AddTicketMemoResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public AddTicketMemoResponseBody setVendorRequestId(String vendorRequestId) { this.vendorRequestId = vendorRequestId; return this; } public String getVendorRequestId() { return this.vendorRequestId; } public AddTicketMemoResponseBody setVendorType(String vendorType) { this.vendorType = vendorType; return this; } public String getVendorType() { return this.vendorType; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddTicketMemoShrinkHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddTicketMemoShrinkHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; @NameInMap("AccountContext") public String accountContextShrink; public static AddTicketMemoShrinkHeaders build(java.util.Map<String, ?> map) throws Exception { AddTicketMemoShrinkHeaders self = new AddTicketMemoShrinkHeaders(); return TeaModel.build(map, self); } public AddTicketMemoShrinkHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public AddTicketMemoShrinkHeaders setAccountContextShrink(String accountContextShrink) { this.accountContextShrink = accountContextShrink; return this; } public String getAccountContextShrink() { return this.accountContextShrink; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddTicketMemoShrinkRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddTicketMemoShrinkRequest extends TeaModel { /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>eKWh3xxxxiE</p> */ @NameInMap("OpenTeamId") public String openTeamId; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>Dq9hP8Sk2v6vQxxxxiE</p> */ @NameInMap("OpenTicketId") public String openTicketId; @NameInMap("TenantContext") public String tenantContextShrink; @NameInMap("TicketMemo") public String ticketMemoShrink; public static AddTicketMemoShrinkRequest build(java.util.Map<String, ?> map) throws Exception { AddTicketMemoShrinkRequest self = new AddTicketMemoShrinkRequest(); return TeaModel.build(map, self); } public AddTicketMemoShrinkRequest setOpenTeamId(String openTeamId) { this.openTeamId = openTeamId; return this; } public String getOpenTeamId() { return this.openTeamId; } public AddTicketMemoShrinkRequest setOpenTicketId(String openTicketId) { this.openTicketId = openTicketId; return this; } public String getOpenTicketId() { return this.openTicketId; } public AddTicketMemoShrinkRequest setTenantContextShrink(String tenantContextShrink) { this.tenantContextShrink = tenantContextShrink; return this; } public String getTenantContextShrink() { return this.tenantContextShrink; } public AddTicketMemoShrinkRequest setTicketMemoShrink(String ticketMemoShrink) { this.ticketMemoShrink = ticketMemoShrink; return this; } public String getTicketMemoShrink() { return this.ticketMemoShrink; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddWorkspaceDocMembersHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddWorkspaceDocMembersHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; @NameInMap("AccountContext") public AddWorkspaceDocMembersHeadersAccountContext accountContext; public static AddWorkspaceDocMembersHeaders build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceDocMembersHeaders self = new AddWorkspaceDocMembersHeaders(); return TeaModel.build(map, self); } public AddWorkspaceDocMembersHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public AddWorkspaceDocMembersHeaders setAccountContext(AddWorkspaceDocMembersHeadersAccountContext accountContext) { this.accountContext = accountContext; return this; } public AddWorkspaceDocMembersHeadersAccountContext getAccountContext() { return this.accountContext; } public static class AddWorkspaceDocMembersHeadersAccountContext extends TeaModel { /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>012345</p> */ @NameInMap("accountId") public String accountId; public static AddWorkspaceDocMembersHeadersAccountContext build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceDocMembersHeadersAccountContext self = new AddWorkspaceDocMembersHeadersAccountContext(); return TeaModel.build(map, self); } public AddWorkspaceDocMembersHeadersAccountContext setAccountId(String accountId) { this.accountId = accountId; return this; } public String getAccountId() { return this.accountId; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddWorkspaceDocMembersRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddWorkspaceDocMembersRequest extends TeaModel { /** * <p>This parameter is required.</p> */ @NameInMap("Members") public java.util.List<AddWorkspaceDocMembersRequestMembers> members; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>xxx</p> */ @NameInMap("NodeId") public String nodeId; @NameInMap("TenantContext") public AddWorkspaceDocMembersRequestTenantContext tenantContext; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>xxx</p> */ @NameInMap("WorkspaceId") public String workspaceId; public static AddWorkspaceDocMembersRequest build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceDocMembersRequest self = new AddWorkspaceDocMembersRequest(); return TeaModel.build(map, self); } public AddWorkspaceDocMembersRequest setMembers(java.util.List<AddWorkspaceDocMembersRequestMembers> members) { this.members = members; return this; } public java.util.List<AddWorkspaceDocMembersRequestMembers> getMembers() { return this.members; } public AddWorkspaceDocMembersRequest setNodeId(String nodeId) { this.nodeId = nodeId; return this; } public String getNodeId() { return this.nodeId; } public AddWorkspaceDocMembersRequest setTenantContext(AddWorkspaceDocMembersRequestTenantContext tenantContext) { this.tenantContext = tenantContext; return this; } public AddWorkspaceDocMembersRequestTenantContext getTenantContext() { return this.tenantContext; } public AddWorkspaceDocMembersRequest setWorkspaceId(String workspaceId) { this.workspaceId = workspaceId; return this; } public String getWorkspaceId() { return this.workspaceId; } public static class AddWorkspaceDocMembersRequestMembers extends TeaModel { /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>012345</p> */ @NameInMap("MemberId") public String memberId; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>USER</p> */ @NameInMap("MemberType") public String memberType; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>EDITOR</p> */ @NameInMap("RoleType") public String roleType; public static AddWorkspaceDocMembersRequestMembers build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceDocMembersRequestMembers self = new AddWorkspaceDocMembersRequestMembers(); return TeaModel.build(map, self); } public AddWorkspaceDocMembersRequestMembers setMemberId(String memberId) { this.memberId = memberId; return this; } public String getMemberId() { return this.memberId; } public AddWorkspaceDocMembersRequestMembers setMemberType(String memberType) { this.memberType = memberType; return this; } public String getMemberType() { return this.memberType; } public AddWorkspaceDocMembersRequestMembers setRoleType(String roleType) { this.roleType = roleType; return this; } public String getRoleType() { return this.roleType; } } public static class AddWorkspaceDocMembersRequestTenantContext extends TeaModel { /** * <strong>example:</strong> * <p>1</p> */ @NameInMap("tenantId") public String tenantId; public static AddWorkspaceDocMembersRequestTenantContext build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceDocMembersRequestTenantContext self = new AddWorkspaceDocMembersRequestTenantContext(); return TeaModel.build(map, self); } public AddWorkspaceDocMembersRequestTenantContext setTenantId(String tenantId) { this.tenantId = tenantId; return this; } public String getTenantId() { return this.tenantId; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddWorkspaceDocMembersResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddWorkspaceDocMembersResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public AddWorkspaceDocMembersResponseBody body; public static AddWorkspaceDocMembersResponse build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceDocMembersResponse self = new AddWorkspaceDocMembersResponse(); return TeaModel.build(map, self); } public AddWorkspaceDocMembersResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public AddWorkspaceDocMembersResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public AddWorkspaceDocMembersResponse setBody(AddWorkspaceDocMembersResponseBody body) { this.body = body; return this; } public AddWorkspaceDocMembersResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddWorkspaceDocMembersResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddWorkspaceDocMembersResponseBody extends TeaModel { /** * <p>requestId</p> * * <strong>example:</strong> * <p>0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX</p> */ @NameInMap("requestId") public String requestId; public static AddWorkspaceDocMembersResponseBody build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceDocMembersResponseBody self = new AddWorkspaceDocMembersResponseBody(); return TeaModel.build(map, self); } public AddWorkspaceDocMembersResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddWorkspaceDocMembersShrinkHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddWorkspaceDocMembersShrinkHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; @NameInMap("AccountContext") public String accountContextShrink; public static AddWorkspaceDocMembersShrinkHeaders build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceDocMembersShrinkHeaders self = new AddWorkspaceDocMembersShrinkHeaders(); return TeaModel.build(map, self); } public AddWorkspaceDocMembersShrinkHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public AddWorkspaceDocMembersShrinkHeaders setAccountContextShrink(String accountContextShrink) { this.accountContextShrink = accountContextShrink; return this; } public String getAccountContextShrink() { return this.accountContextShrink; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddWorkspaceDocMembersShrinkRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddWorkspaceDocMembersShrinkRequest extends TeaModel { /** * <p>This parameter is required.</p> */ @NameInMap("Members") public String membersShrink; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>xxx</p> */ @NameInMap("NodeId") public String nodeId; @NameInMap("TenantContext") public String tenantContextShrink; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>xxx</p> */ @NameInMap("WorkspaceId") public String workspaceId; public static AddWorkspaceDocMembersShrinkRequest build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceDocMembersShrinkRequest self = new AddWorkspaceDocMembersShrinkRequest(); return TeaModel.build(map, self); } public AddWorkspaceDocMembersShrinkRequest setMembersShrink(String membersShrink) { this.membersShrink = membersShrink; return this; } public String getMembersShrink() { return this.membersShrink; } public AddWorkspaceDocMembersShrinkRequest setNodeId(String nodeId) { this.nodeId = nodeId; return this; } public String getNodeId() { return this.nodeId; } public AddWorkspaceDocMembersShrinkRequest setTenantContextShrink(String tenantContextShrink) { this.tenantContextShrink = tenantContextShrink; return this; } public String getTenantContextShrink() { return this.tenantContextShrink; } public AddWorkspaceDocMembersShrinkRequest setWorkspaceId(String workspaceId) { this.workspaceId = workspaceId; return this; } public String getWorkspaceId() { return this.workspaceId; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddWorkspaceHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddWorkspaceHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; @NameInMap("AccountContext") public AddWorkspaceHeadersAccountContext accountContext; public static AddWorkspaceHeaders build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceHeaders self = new AddWorkspaceHeaders(); return TeaModel.build(map, self); } public AddWorkspaceHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public AddWorkspaceHeaders setAccountContext(AddWorkspaceHeadersAccountContext accountContext) { this.accountContext = accountContext; return this; } public AddWorkspaceHeadersAccountContext getAccountContext() { return this.accountContext; } public static class AddWorkspaceHeadersAccountContext extends TeaModel { /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>012345</p> */ @NameInMap("accountId") public String accountId; public static AddWorkspaceHeadersAccountContext build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceHeadersAccountContext self = new AddWorkspaceHeadersAccountContext(); return TeaModel.build(map, self); } public AddWorkspaceHeadersAccountContext setAccountId(String accountId) { this.accountId = accountId; return this; } public String getAccountId() { return this.accountId; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddWorkspaceMembersHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddWorkspaceMembersHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; @NameInMap("AccountContext") public AddWorkspaceMembersHeadersAccountContext accountContext; public static AddWorkspaceMembersHeaders build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceMembersHeaders self = new AddWorkspaceMembersHeaders(); return TeaModel.build(map, self); } public AddWorkspaceMembersHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public AddWorkspaceMembersHeaders setAccountContext(AddWorkspaceMembersHeadersAccountContext accountContext) { this.accountContext = accountContext; return this; } public AddWorkspaceMembersHeadersAccountContext getAccountContext() { return this.accountContext; } public static class AddWorkspaceMembersHeadersAccountContext extends TeaModel { /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>012345</p> */ @NameInMap("accountId") public String accountId; public static AddWorkspaceMembersHeadersAccountContext build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceMembersHeadersAccountContext self = new AddWorkspaceMembersHeadersAccountContext(); return TeaModel.build(map, self); } public AddWorkspaceMembersHeadersAccountContext setAccountId(String accountId) { this.accountId = accountId; return this; } public String getAccountId() { return this.accountId; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddWorkspaceMembersRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddWorkspaceMembersRequest extends TeaModel { @NameInMap("Members") public java.util.List<AddWorkspaceMembersRequestMembers> members; @NameInMap("TenantContext") public AddWorkspaceMembersRequestTenantContext tenantContext; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>123</p> */ @NameInMap("WorkspaceId") public String workspaceId; public static AddWorkspaceMembersRequest build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceMembersRequest self = new AddWorkspaceMembersRequest(); return TeaModel.build(map, self); } public AddWorkspaceMembersRequest setMembers(java.util.List<AddWorkspaceMembersRequestMembers> members) { this.members = members; return this; } public java.util.List<AddWorkspaceMembersRequestMembers> getMembers() { return this.members; } public AddWorkspaceMembersRequest setTenantContext(AddWorkspaceMembersRequestTenantContext tenantContext) { this.tenantContext = tenantContext; return this; } public AddWorkspaceMembersRequestTenantContext getTenantContext() { return this.tenantContext; } public AddWorkspaceMembersRequest setWorkspaceId(String workspaceId) { this.workspaceId = workspaceId; return this; } public String getWorkspaceId() { return this.workspaceId; } public static class AddWorkspaceMembersRequestMembers extends TeaModel { /** * <strong>example:</strong> * <p>012345</p> */ @NameInMap("MemberId") public String memberId; /** * <strong>example:</strong> * <p>USER</p> */ @NameInMap("MemberType") public String memberType; /** * <strong>example:</strong> * <p>EDITOR</p> */ @NameInMap("RoleType") public String roleType; public static AddWorkspaceMembersRequestMembers build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceMembersRequestMembers self = new AddWorkspaceMembersRequestMembers(); return TeaModel.build(map, self); } public AddWorkspaceMembersRequestMembers setMemberId(String memberId) { this.memberId = memberId; return this; } public String getMemberId() { return this.memberId; } public AddWorkspaceMembersRequestMembers setMemberType(String memberType) { this.memberType = memberType; return this; } public String getMemberType() { return this.memberType; } public AddWorkspaceMembersRequestMembers setRoleType(String roleType) { this.roleType = roleType; return this; } public String getRoleType() { return this.roleType; } } public static class AddWorkspaceMembersRequestTenantContext extends TeaModel { /** * <strong>example:</strong> * <p>1</p> */ @NameInMap("tenantId") public String tenantId; public static AddWorkspaceMembersRequestTenantContext build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceMembersRequestTenantContext self = new AddWorkspaceMembersRequestTenantContext(); return TeaModel.build(map, self); } public AddWorkspaceMembersRequestTenantContext setTenantId(String tenantId) { this.tenantId = tenantId; return this; } public String getTenantId() { return this.tenantId; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddWorkspaceMembersResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddWorkspaceMembersResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public AddWorkspaceMembersResponseBody body; public static AddWorkspaceMembersResponse build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceMembersResponse self = new AddWorkspaceMembersResponse(); return TeaModel.build(map, self); } public AddWorkspaceMembersResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public AddWorkspaceMembersResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public AddWorkspaceMembersResponse setBody(AddWorkspaceMembersResponseBody body) { this.body = body; return this; } public AddWorkspaceMembersResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddWorkspaceMembersResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddWorkspaceMembersResponseBody extends TeaModel { @NameInMap("NotInOrgList") public java.util.List<String> notInOrgList; /** * <p>requestId</p> * * <strong>example:</strong> * <p>0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX</p> */ @NameInMap("requestId") public String requestId; public static AddWorkspaceMembersResponseBody build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceMembersResponseBody self = new AddWorkspaceMembersResponseBody(); return TeaModel.build(map, self); } public AddWorkspaceMembersResponseBody setNotInOrgList(java.util.List<String> notInOrgList) { this.notInOrgList = notInOrgList; return this; } public java.util.List<String> getNotInOrgList() { return this.notInOrgList; } public AddWorkspaceMembersResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddWorkspaceMembersShrinkHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddWorkspaceMembersShrinkHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; @NameInMap("AccountContext") public String accountContextShrink; public static AddWorkspaceMembersShrinkHeaders build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceMembersShrinkHeaders self = new AddWorkspaceMembersShrinkHeaders(); return TeaModel.build(map, self); } public AddWorkspaceMembersShrinkHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public AddWorkspaceMembersShrinkHeaders setAccountContextShrink(String accountContextShrink) { this.accountContextShrink = accountContextShrink; return this; } public String getAccountContextShrink() { return this.accountContextShrink; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddWorkspaceMembersShrinkRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddWorkspaceMembersShrinkRequest extends TeaModel { @NameInMap("Members") public String membersShrink; @NameInMap("TenantContext") public String tenantContextShrink; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>123</p> */ @NameInMap("WorkspaceId") public String workspaceId; public static AddWorkspaceMembersShrinkRequest build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceMembersShrinkRequest self = new AddWorkspaceMembersShrinkRequest(); return TeaModel.build(map, self); } public AddWorkspaceMembersShrinkRequest setMembersShrink(String membersShrink) { this.membersShrink = membersShrink; return this; } public String getMembersShrink() { return this.membersShrink; } public AddWorkspaceMembersShrinkRequest setTenantContextShrink(String tenantContextShrink) { this.tenantContextShrink = tenantContextShrink; return this; } public String getTenantContextShrink() { return this.tenantContextShrink; } public AddWorkspaceMembersShrinkRequest setWorkspaceId(String workspaceId) { this.workspaceId = workspaceId; return this; } public String getWorkspaceId() { return this.workspaceId; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddWorkspaceRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddWorkspaceRequest extends TeaModel { /** * <p>This parameter is required.</p> */ @NameInMap("Name") public String name; @NameInMap("Option") public AddWorkspaceRequestOption option; @NameInMap("TenantContext") public AddWorkspaceRequestTenantContext tenantContext; public static AddWorkspaceRequest build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceRequest self = new AddWorkspaceRequest(); return TeaModel.build(map, self); } public AddWorkspaceRequest setName(String name) { this.name = name; return this; } public String getName() { return this.name; } public AddWorkspaceRequest setOption(AddWorkspaceRequestOption option) { this.option = option; return this; } public AddWorkspaceRequestOption getOption() { return this.option; } public AddWorkspaceRequest setTenantContext(AddWorkspaceRequestTenantContext tenantContext) { this.tenantContext = tenantContext; return this; } public AddWorkspaceRequestTenantContext getTenantContext() { return this.tenantContext; } public static class AddWorkspaceRequestOption extends TeaModel { @NameInMap("Description") public String description; /** * <strong>example:</strong> * <p>lHiicjNFM2iSFYSdz2iPuI8ZwiEiE</p> */ @NameInMap("TeamId") public String teamId; public static AddWorkspaceRequestOption build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceRequestOption self = new AddWorkspaceRequestOption(); return TeaModel.build(map, self); } public AddWorkspaceRequestOption setDescription(String description) { this.description = description; return this; } public String getDescription() { return this.description; } public AddWorkspaceRequestOption setTeamId(String teamId) { this.teamId = teamId; return this; } public String getTeamId() { return this.teamId; } } public static class AddWorkspaceRequestTenantContext extends TeaModel { /** * <strong>example:</strong> * <p>1</p> */ @NameInMap("tenantId") public String tenantId; public static AddWorkspaceRequestTenantContext build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceRequestTenantContext self = new AddWorkspaceRequestTenantContext(); return TeaModel.build(map, self); } public AddWorkspaceRequestTenantContext setTenantId(String tenantId) { this.tenantId = tenantId; return this; } public String getTenantId() { return this.tenantId; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddWorkspaceResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddWorkspaceResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public AddWorkspaceResponseBody body; public static AddWorkspaceResponse build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceResponse self = new AddWorkspaceResponse(); return TeaModel.build(map, self); } public AddWorkspaceResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public AddWorkspaceResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public AddWorkspaceResponse setBody(AddWorkspaceResponseBody body) { this.body = body; return this; } public AddWorkspaceResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddWorkspaceResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddWorkspaceResponseBody extends TeaModel { /** * <p>requestId</p> * * <strong>example:</strong> * <p>0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX</p> */ @NameInMap("requestId") public String requestId; @NameInMap("workspace") public AddWorkspaceResponseBodyWorkspace workspace; public static AddWorkspaceResponseBody build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceResponseBody self = new AddWorkspaceResponseBody(); return TeaModel.build(map, self); } public AddWorkspaceResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public AddWorkspaceResponseBody setWorkspace(AddWorkspaceResponseBodyWorkspace workspace) { this.workspace = workspace; return this; } public AddWorkspaceResponseBodyWorkspace getWorkspace() { return this.workspace; } public static class AddWorkspaceResponseBodyWorkspaceIcon extends TeaModel { /** * <strong>example:</strong> * <p>TEAM</p> */ @NameInMap("Type") public String type; /** * <strong>example:</strong> * <p><a href="https://example/file-manage-files/zh-CN/202***13/ldet/avatar3.jpg">https://example/file-manage-files/zh-CN/202***13/ldet/avatar3.jpg</a></p> */ @NameInMap("Value") public String value; public static AddWorkspaceResponseBodyWorkspaceIcon build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceResponseBodyWorkspaceIcon self = new AddWorkspaceResponseBodyWorkspaceIcon(); return TeaModel.build(map, self); } public AddWorkspaceResponseBodyWorkspaceIcon setType(String type) { this.type = type; return this; } public String getType() { return this.type; } public AddWorkspaceResponseBodyWorkspaceIcon setValue(String value) { this.value = value; return this; } public String getValue() { return this.value; } } public static class AddWorkspaceResponseBodyWorkspace extends TeaModel { /** * <strong>example:</strong> * <p>ding16b241fd05********288</p> */ @NameInMap("CorpId") public String corpId; /** * <strong>example:</strong> * <p><a href="https://example/file-manage-files/zh-CN/202***13/ldet/XXXX.jpg">https://example/file-manage-files/zh-CN/202***13/ldet/XXXX.jpg</a></p> */ @NameInMap("Cover") public String cover; /** * <strong>example:</strong> * <p>2023-05-15T11:29Z</p> */ @NameInMap("CreateTime") public String createTime; /** * <strong>example:</strong> * <p>01472825524039877041</p> */ @NameInMap("CreatorId") public String creatorId; /** * <strong>example:</strong> * <p>workspace_description</p> */ @NameInMap("Description") public String description; @NameInMap("Icon") public AddWorkspaceResponseBodyWorkspaceIcon icon; /** * <strong>example:</strong> * <p>2023-05-15T11:29Z</p> */ @NameInMap("ModifiedTime") public String modifiedTime; /** * <strong>example:</strong> * <p>01472825524039877041</p> */ @NameInMap("ModifierId") public String modifierId; /** * <strong>example:</strong> * <p>workspace_name</p> */ @NameInMap("Name") public String name; /** * <strong>example:</strong> * <p>READER</p> */ @NameInMap("PermissionRole") public String permissionRole; /** * <strong>example:</strong> * <p>root_node_uuid</p> */ @NameInMap("RootNodeId") public String rootNodeId; /** * <strong>example:</strong> * <p>lHiicjNFM2iSFYSdz2iPuI8ZwiEiE</p> */ @NameInMap("TeamId") public String teamId; /** * <strong>example:</strong> * <p>TEAM</p> */ @NameInMap("Type") public String type; /** * <strong>example:</strong> * <p>workspace_url</p> */ @NameInMap("Url") public String url; /** * <strong>example:</strong> * <p>workspace_id</p> */ @NameInMap("WorkspaceId") public String workspaceId; public static AddWorkspaceResponseBodyWorkspace build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceResponseBodyWorkspace self = new AddWorkspaceResponseBodyWorkspace(); return TeaModel.build(map, self); } public AddWorkspaceResponseBodyWorkspace setCorpId(String corpId) { this.corpId = corpId; return this; } public String getCorpId() { return this.corpId; } public AddWorkspaceResponseBodyWorkspace setCover(String cover) { this.cover = cover; return this; } public String getCover() { return this.cover; } public AddWorkspaceResponseBodyWorkspace setCreateTime(String createTime) { this.createTime = createTime; return this; } public String getCreateTime() { return this.createTime; } public AddWorkspaceResponseBodyWorkspace setCreatorId(String creatorId) { this.creatorId = creatorId; return this; } public String getCreatorId() { return this.creatorId; } public AddWorkspaceResponseBodyWorkspace setDescription(String description) { this.description = description; return this; } public String getDescription() { return this.description; } public AddWorkspaceResponseBodyWorkspace setIcon(AddWorkspaceResponseBodyWorkspaceIcon icon) { this.icon = icon; return this; } public AddWorkspaceResponseBodyWorkspaceIcon getIcon() { return this.icon; } public AddWorkspaceResponseBodyWorkspace setModifiedTime(String modifiedTime) { this.modifiedTime = modifiedTime; return this; } public String getModifiedTime() { return this.modifiedTime; } public AddWorkspaceResponseBodyWorkspace setModifierId(String modifierId) { this.modifierId = modifierId; return this; } public String getModifierId() { return this.modifierId; } public AddWorkspaceResponseBodyWorkspace setName(String name) { this.name = name; return this; } public String getName() { return this.name; } public AddWorkspaceResponseBodyWorkspace setPermissionRole(String permissionRole) { this.permissionRole = permissionRole; return this; } public String getPermissionRole() { return this.permissionRole; } public AddWorkspaceResponseBodyWorkspace setRootNodeId(String rootNodeId) { this.rootNodeId = rootNodeId; return this; } public String getRootNodeId() { return this.rootNodeId; } public AddWorkspaceResponseBodyWorkspace setTeamId(String teamId) { this.teamId = teamId; return this; } public String getTeamId() { return this.teamId; } public AddWorkspaceResponseBodyWorkspace setType(String type) { this.type = type; return this; } public String getType() { return this.type; } public AddWorkspaceResponseBodyWorkspace setUrl(String url) { this.url = url; return this; } public String getUrl() { return this.url; } public AddWorkspaceResponseBodyWorkspace setWorkspaceId(String workspaceId) { this.workspaceId = workspaceId; return this; } public String getWorkspaceId() { return this.workspaceId; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddWorkspaceShrinkHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddWorkspaceShrinkHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; @NameInMap("AccountContext") public String accountContextShrink; public static AddWorkspaceShrinkHeaders build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceShrinkHeaders self = new AddWorkspaceShrinkHeaders(); return TeaModel.build(map, self); } public AddWorkspaceShrinkHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public AddWorkspaceShrinkHeaders setAccountContextShrink(String accountContextShrink) { this.accountContextShrink = accountContextShrink; return this; } public String getAccountContextShrink() { return this.accountContextShrink; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AddWorkspaceShrinkRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AddWorkspaceShrinkRequest extends TeaModel { /** * <p>This parameter is required.</p> */ @NameInMap("Name") public String name; @NameInMap("Option") public String optionShrink; @NameInMap("TenantContext") public String tenantContextShrink; public static AddWorkspaceShrinkRequest build(java.util.Map<String, ?> map) throws Exception { AddWorkspaceShrinkRequest self = new AddWorkspaceShrinkRequest(); return TeaModel.build(map, self); } public AddWorkspaceShrinkRequest setName(String name) { this.name = name; return this; } public String getName() { return this.name; } public AddWorkspaceShrinkRequest setOptionShrink(String optionShrink) { this.optionShrink = optionShrink; return this; } public String getOptionShrink() { return this.optionShrink; } public AddWorkspaceShrinkRequest setTenantContextShrink(String tenantContextShrink) { this.tenantContextShrink = tenantContextShrink; return this; } public String getTenantContextShrink() { return this.tenantContextShrink; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AssignTicketHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AssignTicketHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; @NameInMap("AccountContext") public AssignTicketHeadersAccountContext accountContext; public static AssignTicketHeaders build(java.util.Map<String, ?> map) throws Exception { AssignTicketHeaders self = new AssignTicketHeaders(); return TeaModel.build(map, self); } public AssignTicketHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public AssignTicketHeaders setAccountContext(AssignTicketHeadersAccountContext accountContext) { this.accountContext = accountContext; return this; } public AssignTicketHeadersAccountContext getAccountContext() { return this.accountContext; } public static class AssignTicketHeadersAccountContext extends TeaModel { /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>012345</p> */ @NameInMap("accountId") public String accountId; public static AssignTicketHeadersAccountContext build(java.util.Map<String, ?> map) throws Exception { AssignTicketHeadersAccountContext self = new AssignTicketHeadersAccountContext(); return TeaModel.build(map, self); } public AssignTicketHeadersAccountContext setAccountId(String accountId) { this.accountId = accountId; return this; } public String getAccountId() { return this.accountId; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AssignTicketRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AssignTicketRequest extends TeaModel { @NameInMap("Notify") public AssignTicketRequestNotify notify; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>eKWh3xxxxiE</p> */ @NameInMap("OpenTeamId") public String openTeamId; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>Dq9hP8Sk2v6vQxxxxiE</p> */ @NameInMap("OpenTicketId") public String openTicketId; @NameInMap("ProcessorUserIds") public java.util.List<String> processorUserIds; @NameInMap("TenantContext") public AssignTicketRequestTenantContext tenantContext; @NameInMap("TicketMemo") public AssignTicketRequestTicketMemo ticketMemo; public static AssignTicketRequest build(java.util.Map<String, ?> map) throws Exception { AssignTicketRequest self = new AssignTicketRequest(); return TeaModel.build(map, self); } public AssignTicketRequest setNotify(AssignTicketRequestNotify notify) { this.notify = notify; return this; } public AssignTicketRequestNotify getNotify() { return this.notify; } public AssignTicketRequest setOpenTeamId(String openTeamId) { this.openTeamId = openTeamId; return this; } public String getOpenTeamId() { return this.openTeamId; } public AssignTicketRequest setOpenTicketId(String openTicketId) { this.openTicketId = openTicketId; return this; } public String getOpenTicketId() { return this.openTicketId; } public AssignTicketRequest setProcessorUserIds(java.util.List<String> processorUserIds) { this.processorUserIds = processorUserIds; return this; } public java.util.List<String> getProcessorUserIds() { return this.processorUserIds; } public AssignTicketRequest setTenantContext(AssignTicketRequestTenantContext tenantContext) { this.tenantContext = tenantContext; return this; } public AssignTicketRequestTenantContext getTenantContext() { return this.tenantContext; } public AssignTicketRequest setTicketMemo(AssignTicketRequestTicketMemo ticketMemo) { this.ticketMemo = ticketMemo; return this; } public AssignTicketRequestTicketMemo getTicketMemo() { return this.ticketMemo; } public static class AssignTicketRequestNotify extends TeaModel { @NameInMap("GroupNoticeReceiverUserIds") public java.util.List<String> groupNoticeReceiverUserIds; /** * <strong>example:</strong> * <p>true</p> */ @NameInMap("NoticeAllGroupMember") public Boolean noticeAllGroupMember; @NameInMap("WorkNoticeReceiverUserIds") public java.util.List<String> workNoticeReceiverUserIds; public static AssignTicketRequestNotify build(java.util.Map<String, ?> map) throws Exception { AssignTicketRequestNotify self = new AssignTicketRequestNotify(); return TeaModel.build(map, self); } public AssignTicketRequestNotify setGroupNoticeReceiverUserIds(java.util.List<String> groupNoticeReceiverUserIds) { this.groupNoticeReceiverUserIds = groupNoticeReceiverUserIds; return this; } public java.util.List<String> getGroupNoticeReceiverUserIds() { return this.groupNoticeReceiverUserIds; } public AssignTicketRequestNotify setNoticeAllGroupMember(Boolean noticeAllGroupMember) { this.noticeAllGroupMember = noticeAllGroupMember; return this; } public Boolean getNoticeAllGroupMember() { return this.noticeAllGroupMember; } public AssignTicketRequestNotify setWorkNoticeReceiverUserIds(java.util.List<String> workNoticeReceiverUserIds) { this.workNoticeReceiverUserIds = workNoticeReceiverUserIds; return this; } public java.util.List<String> getWorkNoticeReceiverUserIds() { return this.workNoticeReceiverUserIds; } } public static class AssignTicketRequestTenantContext extends TeaModel { /** * <strong>example:</strong> * <p>xxxxxx</p> */ @NameInMap("tenantId") public String tenantId; public static AssignTicketRequestTenantContext build(java.util.Map<String, ?> map) throws Exception { AssignTicketRequestTenantContext self = new AssignTicketRequestTenantContext(); return TeaModel.build(map, self); } public AssignTicketRequestTenantContext setTenantId(String tenantId) { this.tenantId = tenantId; return this; } public String getTenantId() { return this.tenantId; } } public static class AssignTicketRequestTicketMemoAttachments extends TeaModel { /** * <strong>example:</strong> * <p>ticket/image/44708069/43003/e27aec4499.txt</p> */ @NameInMap("FileName") public String fileName; /** * <strong>example:</strong> * <p>wahaha.txt</p> */ @NameInMap("Key") public String key; public static AssignTicketRequestTicketMemoAttachments build(java.util.Map<String, ?> map) throws Exception { AssignTicketRequestTicketMemoAttachments self = new AssignTicketRequestTicketMemoAttachments(); return TeaModel.build(map, self); } public AssignTicketRequestTicketMemoAttachments setFileName(String fileName) { this.fileName = fileName; return this; } public String getFileName() { return this.fileName; } public AssignTicketRequestTicketMemoAttachments setKey(String key) { this.key = key; return this; } public String getKey() { return this.key; } } public static class AssignTicketRequestTicketMemo extends TeaModel { @NameInMap("Attachments") public java.util.List<AssignTicketRequestTicketMemoAttachments> attachments; @NameInMap("Memo") public String memo; public static AssignTicketRequestTicketMemo build(java.util.Map<String, ?> map) throws Exception { AssignTicketRequestTicketMemo self = new AssignTicketRequestTicketMemo(); return TeaModel.build(map, self); } public AssignTicketRequestTicketMemo setAttachments(java.util.List<AssignTicketRequestTicketMemoAttachments> attachments) { this.attachments = attachments; return this; } public java.util.List<AssignTicketRequestTicketMemoAttachments> getAttachments() { return this.attachments; } public AssignTicketRequestTicketMemo setMemo(String memo) { this.memo = memo; return this; } public String getMemo() { return this.memo; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AssignTicketResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AssignTicketResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public AssignTicketResponseBody body; public static AssignTicketResponse build(java.util.Map<String, ?> map) throws Exception { AssignTicketResponse self = new AssignTicketResponse(); return TeaModel.build(map, self); } public AssignTicketResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public AssignTicketResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public AssignTicketResponse setBody(AssignTicketResponseBody body) { this.body = body; return this; } public AssignTicketResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AssignTicketResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AssignTicketResponseBody extends TeaModel { /** * <strong>example:</strong> * <p>0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX</p> */ @NameInMap("requestId") public String requestId; /** * <strong>example:</strong> * <p>0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX</p> */ @NameInMap("vendorRequestId") public String vendorRequestId; /** * <strong>example:</strong> * <p>dingtalk</p> */ @NameInMap("vendorType") public String vendorType; public static AssignTicketResponseBody build(java.util.Map<String, ?> map) throws Exception { AssignTicketResponseBody self = new AssignTicketResponseBody(); return TeaModel.build(map, self); } public AssignTicketResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public AssignTicketResponseBody setVendorRequestId(String vendorRequestId) { this.vendorRequestId = vendorRequestId; return this; } public String getVendorRequestId() { return this.vendorRequestId; } public AssignTicketResponseBody setVendorType(String vendorType) { this.vendorType = vendorType; return this; } public String getVendorType() { return this.vendorType; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AssignTicketShrinkHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AssignTicketShrinkHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; @NameInMap("AccountContext") public String accountContextShrink; public static AssignTicketShrinkHeaders build(java.util.Map<String, ?> map) throws Exception { AssignTicketShrinkHeaders self = new AssignTicketShrinkHeaders(); return TeaModel.build(map, self); } public AssignTicketShrinkHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public AssignTicketShrinkHeaders setAccountContextShrink(String accountContextShrink) { this.accountContextShrink = accountContextShrink; return this; } public String getAccountContextShrink() { return this.accountContextShrink; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AssignTicketShrinkRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AssignTicketShrinkRequest extends TeaModel { @NameInMap("Notify") public String notifyShrink; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>eKWh3xxxxiE</p> */ @NameInMap("OpenTeamId") public String openTeamId; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>Dq9hP8Sk2v6vQxxxxiE</p> */ @NameInMap("OpenTicketId") public String openTicketId; @NameInMap("ProcessorUserIds") public String processorUserIdsShrink; @NameInMap("TenantContext") public String tenantContextShrink; @NameInMap("TicketMemo") public String ticketMemoShrink; public static AssignTicketShrinkRequest build(java.util.Map<String, ?> map) throws Exception { AssignTicketShrinkRequest self = new AssignTicketShrinkRequest(); return TeaModel.build(map, self); } public AssignTicketShrinkRequest setNotifyShrink(String notifyShrink) { this.notifyShrink = notifyShrink; return this; } public String getNotifyShrink() { return this.notifyShrink; } public AssignTicketShrinkRequest setOpenTeamId(String openTeamId) { this.openTeamId = openTeamId; return this; } public String getOpenTeamId() { return this.openTeamId; } public AssignTicketShrinkRequest setOpenTicketId(String openTicketId) { this.openTicketId = openTicketId; return this; } public String getOpenTicketId() { return this.openTicketId; } public AssignTicketShrinkRequest setProcessorUserIdsShrink(String processorUserIdsShrink) { this.processorUserIdsShrink = processorUserIdsShrink; return this; } public String getProcessorUserIdsShrink() { return this.processorUserIdsShrink; } public AssignTicketShrinkRequest setTenantContextShrink(String tenantContextShrink) { this.tenantContextShrink = tenantContextShrink; return this; } public String getTenantContextShrink() { return this.tenantContextShrink; } public AssignTicketShrinkRequest setTicketMemoShrink(String ticketMemoShrink) { this.ticketMemoShrink = ticketMemoShrink; return this; } public String getTicketMemoShrink() { return this.ticketMemoShrink; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AuthorizeSkillHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AuthorizeSkillHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; @NameInMap("AccountContext") public AuthorizeSkillHeadersAccountContext accountContext; public static AuthorizeSkillHeaders build(java.util.Map<String, ?> map) throws Exception { AuthorizeSkillHeaders self = new AuthorizeSkillHeaders(); return TeaModel.build(map, self); } public AuthorizeSkillHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public AuthorizeSkillHeaders setAccountContext(AuthorizeSkillHeadersAccountContext accountContext) { this.accountContext = accountContext; return this; } public AuthorizeSkillHeadersAccountContext getAccountContext() { return this.accountContext; } public static class AuthorizeSkillHeadersAccountContext extends TeaModel { /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>012345</p> */ @NameInMap("accountId") public String accountId; public static AuthorizeSkillHeadersAccountContext build(java.util.Map<String, ?> map) throws Exception { AuthorizeSkillHeadersAccountContext self = new AuthorizeSkillHeadersAccountContext(); return TeaModel.build(map, self); } public AuthorizeSkillHeadersAccountContext setAccountId(String accountId) { this.accountId = accountId; return this; } public String getAccountId() { return this.accountId; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AuthorizeSkillRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AuthorizeSkillRequest extends TeaModel { @NameInMap("PermissionCodes") public java.util.List<String> permissionCodes; public static AuthorizeSkillRequest build(java.util.Map<String, ?> map) throws Exception { AuthorizeSkillRequest self = new AuthorizeSkillRequest(); return TeaModel.build(map, self); } public AuthorizeSkillRequest setPermissionCodes(java.util.List<String> permissionCodes) { this.permissionCodes = permissionCodes; return this; } public java.util.List<String> getPermissionCodes() { return this.permissionCodes; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AuthorizeSkillResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AuthorizeSkillResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public AuthorizeSkillResponseBody body; public static AuthorizeSkillResponse build(java.util.Map<String, ?> map) throws Exception { AuthorizeSkillResponse self = new AuthorizeSkillResponse(); return TeaModel.build(map, self); } public AuthorizeSkillResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public AuthorizeSkillResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public AuthorizeSkillResponse setBody(AuthorizeSkillResponseBody body) { this.body = body; return this; } public AuthorizeSkillResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AuthorizeSkillResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AuthorizeSkillResponseBody extends TeaModel { /** * <strong>example:</strong> * <p>{}</p> */ @NameInMap("Data") public Object data; /** * <strong>example:</strong> * <p>A348BA5D-FFD4-57E4-9450-23A14D72F331</p> */ @NameInMap("RequestId") public String requestId; public static AuthorizeSkillResponseBody build(java.util.Map<String, ?> map) throws Exception { AuthorizeSkillResponseBody self = new AuthorizeSkillResponseBody(); return TeaModel.build(map, self); } public AuthorizeSkillResponseBody setData(Object data) { this.data = data; return this; } public Object getData() { return this.data; } public AuthorizeSkillResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AuthorizeSkillShrinkHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AuthorizeSkillShrinkHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; @NameInMap("AccountContext") public String accountContextShrink; public static AuthorizeSkillShrinkHeaders build(java.util.Map<String, ?> map) throws Exception { AuthorizeSkillShrinkHeaders self = new AuthorizeSkillShrinkHeaders(); return TeaModel.build(map, self); } public AuthorizeSkillShrinkHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public AuthorizeSkillShrinkHeaders setAccountContextShrink(String accountContextShrink) { this.accountContextShrink = accountContextShrink; return this; } public String getAccountContextShrink() { return this.accountContextShrink; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/AuthorizeSkillShrinkRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class AuthorizeSkillShrinkRequest extends TeaModel { @NameInMap("PermissionCodes") public String permissionCodesShrink; public static AuthorizeSkillShrinkRequest build(java.util.Map<String, ?> map) throws Exception { AuthorizeSkillShrinkRequest self = new AuthorizeSkillShrinkRequest(); return TeaModel.build(map, self); } public AuthorizeSkillShrinkRequest setPermissionCodesShrink(String permissionCodesShrink) { this.permissionCodesShrink = permissionCodesShrink; return this; } public String getPermissionCodesShrink() { return this.permissionCodesShrink; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/BatchGetFormDataByIdListHeaders.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class BatchGetFormDataByIdListHeaders extends TeaModel { @NameInMap("commonHeaders") public java.util.Map<String, String> commonHeaders; @NameInMap("AccountContext") public BatchGetFormDataByIdListHeadersAccountContext accountContext; public static BatchGetFormDataByIdListHeaders build(java.util.Map<String, ?> map) throws Exception { BatchGetFormDataByIdListHeaders self = new BatchGetFormDataByIdListHeaders(); return TeaModel.build(map, self); } public BatchGetFormDataByIdListHeaders setCommonHeaders(java.util.Map<String, String> commonHeaders) { this.commonHeaders = commonHeaders; return this; } public java.util.Map<String, String> getCommonHeaders() { return this.commonHeaders; } public BatchGetFormDataByIdListHeaders setAccountContext(BatchGetFormDataByIdListHeadersAccountContext accountContext) { this.accountContext = accountContext; return this; } public BatchGetFormDataByIdListHeadersAccountContext getAccountContext() { return this.accountContext; } public static class BatchGetFormDataByIdListHeadersAccountContext extends TeaModel { /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>012345</p> */ @NameInMap("accountId") public String accountId; public static BatchGetFormDataByIdListHeadersAccountContext build(java.util.Map<String, ?> map) throws Exception { BatchGetFormDataByIdListHeadersAccountContext self = new BatchGetFormDataByIdListHeadersAccountContext(); return TeaModel.build(map, self); } public BatchGetFormDataByIdListHeadersAccountContext setAccountId(String accountId) { this.accountId = accountId; return this; } public String getAccountId() { return this.accountId; } } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/BatchGetFormDataByIdListRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class BatchGetFormDataByIdListRequest extends TeaModel { /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>APP_PBKT0xxx</p> */ @NameInMap("AppType") public String appType; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>FORM-xxxxx</p> */ @NameInMap("FormInstanceIdList") public java.util.List<String> formInstanceIdList; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>FORM-xxxxx</p> */ @NameInMap("FormUuid") public String formUuid; /** * <strong>example:</strong> * <p>true</p> */ @NameInMap("NeedFormInstanceValue") public Boolean needFormInstanceValue; /** * <p>This parameter is required.</p> * * <strong>example:</strong> * <p>hexxxx</p> */ @NameInMap("SystemToken") public String systemToken; public static BatchGetFormDataByIdListRequest build(java.util.Map<String, ?> map) throws Exception { BatchGetFormDataByIdListRequest self = new BatchGetFormDataByIdListRequest(); return TeaModel.build(map, self); } public BatchGetFormDataByIdListRequest setAppType(String appType) { this.appType = appType; return this; } public String getAppType() { return this.appType; } public BatchGetFormDataByIdListRequest setFormInstanceIdList(java.util.List<String> formInstanceIdList) { this.formInstanceIdList = formInstanceIdList; return this; } public java.util.List<String> getFormInstanceIdList() { return this.formInstanceIdList; } public BatchGetFormDataByIdListRequest setFormUuid(String formUuid) { this.formUuid = formUuid; return this; } public String getFormUuid() { return this.formUuid; } public BatchGetFormDataByIdListRequest setNeedFormInstanceValue(Boolean needFormInstanceValue) { this.needFormInstanceValue = needFormInstanceValue; return this; } public Boolean getNeedFormInstanceValue() { return this.needFormInstanceValue; } public BatchGetFormDataByIdListRequest setSystemToken(String systemToken) { this.systemToken = systemToken; return this; } public String getSystemToken() { return this.systemToken; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/BatchGetFormDataByIdListResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class BatchGetFormDataByIdListResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public BatchGetFormDataByIdListResponseBody body; public static BatchGetFormDataByIdListResponse build(java.util.Map<String, ?> map) throws Exception { BatchGetFormDataByIdListResponse self = new BatchGetFormDataByIdListResponse(); return TeaModel.build(map, self); } public BatchGetFormDataByIdListResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public BatchGetFormDataByIdListResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public BatchGetFormDataByIdListResponse setBody(BatchGetFormDataByIdListResponseBody body) { this.body = body; return this; } public BatchGetFormDataByIdListResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426
java-sources/com/aliyun/aliding20230426/2.43.2/com/aliyun/aliding20230426/models/BatchGetFormDataByIdListResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.aliding20230426.models; import com.aliyun.tea.*; public class BatchGetFormDataByIdListResponseBody extends TeaModel { /** * <strong>example:</strong> * <p>0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX</p> */ @NameInMap("requestId") public String requestId; /** * <strong>example:</strong> * <p>[ &quot;FINST-SASNOO39NSIFF780&quot; ]</p> */ @NameInMap("result") public java.util.List<BatchGetFormDataByIdListResponseBodyResult> result; /** * <strong>example:</strong> * <p>0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX</p> */ @NameInMap("vendorRequestId") public String vendorRequestId; /** * <strong>example:</strong> * <p>dingtalk</p> */ @NameInMap("vendorType") public String vendorType; public static BatchGetFormDataByIdListResponseBody build(java.util.Map<String, ?> map) throws Exception { BatchGetFormDataByIdListResponseBody self = new BatchGetFormDataByIdListResponseBody(); return TeaModel.build(map, self); } public BatchGetFormDataByIdListResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public BatchGetFormDataByIdListResponseBody setResult(java.util.List<BatchGetFormDataByIdListResponseBodyResult> result) { this.result = result; return this; } public java.util.List<BatchGetFormDataByIdListResponseBodyResult> getResult() { return this.result; } public BatchGetFormDataByIdListResponseBody setVendorRequestId(String vendorRequestId) { this.vendorRequestId = vendorRequestId; return this; } public String getVendorRequestId() { return this.vendorRequestId; } public BatchGetFormDataByIdListResponseBody setVendorType(String vendorType) { this.vendorType = vendorType; return this; } public String getVendorType() { return this.vendorType; } public static class BatchGetFormDataByIdListResponseBodyResultModifyUserName extends TeaModel { @NameInMap("NameInChinese") public String nameInChinese; /** * <strong>example:</strong> * <p>EnglishName</p> */ @NameInMap("NameInEnglish") public String nameInEnglish; public static BatchGetFormDataByIdListResponseBodyResultModifyUserName build(java.util.Map<String, ?> map) throws Exception { BatchGetFormDataByIdListResponseBodyResultModifyUserName self = new BatchGetFormDataByIdListResponseBodyResultModifyUserName(); return TeaModel.build(map, self); } public BatchGetFormDataByIdListResponseBodyResultModifyUserName setNameInChinese(String nameInChinese) { this.nameInChinese = nameInChinese; return this; } public String getNameInChinese() { return this.nameInChinese; } public BatchGetFormDataByIdListResponseBodyResultModifyUserName setNameInEnglish(String nameInEnglish) { this.nameInEnglish = nameInEnglish; return this; } public String getNameInEnglish() { return this.nameInEnglish; } } public static class BatchGetFormDataByIdListResponseBodyResultModifyUser extends TeaModel { @NameInMap("Name") public BatchGetFormDataByIdListResponseBodyResultModifyUserName name; /** * <strong>example:</strong> * <p>012345</p> */ @NameInMap("UserId") public String userId; public static BatchGetFormDataByIdListResponseBodyResultModifyUser build(java.util.Map<String, ?> map) throws Exception { BatchGetFormDataByIdListResponseBodyResultModifyUser self = new BatchGetFormDataByIdListResponseBodyResultModifyUser(); return TeaModel.build(map, self); } public BatchGetFormDataByIdListResponseBodyResultModifyUser setName(BatchGetFormDataByIdListResponseBodyResultModifyUserName name) { this.name = name; return this; } public BatchGetFormDataByIdListResponseBodyResultModifyUserName getName() { return this.name; } public BatchGetFormDataByIdListResponseBodyResultModifyUser setUserId(String userId) { this.userId = userId; return this; } public String getUserId() { return this.userId; } } public static class BatchGetFormDataByIdListResponseBodyResultOriginatorName extends TeaModel { @NameInMap("NameInChinese") public String nameInChinese; /** * <strong>example:</strong> * <p>EnglishName</p> */ @NameInMap("NameInEnglish") public String nameInEnglish; public static BatchGetFormDataByIdListResponseBodyResultOriginatorName build(java.util.Map<String, ?> map) throws Exception { BatchGetFormDataByIdListResponseBodyResultOriginatorName self = new BatchGetFormDataByIdListResponseBodyResultOriginatorName(); return TeaModel.build(map, self); } public BatchGetFormDataByIdListResponseBodyResultOriginatorName setNameInChinese(String nameInChinese) { this.nameInChinese = nameInChinese; return this; } public String getNameInChinese() { return this.nameInChinese; } public BatchGetFormDataByIdListResponseBodyResultOriginatorName setNameInEnglish(String nameInEnglish) { this.nameInEnglish = nameInEnglish; return this; } public String getNameInEnglish() { return this.nameInEnglish; } } public static class BatchGetFormDataByIdListResponseBodyResultOriginator extends TeaModel { @NameInMap("Name") public BatchGetFormDataByIdListResponseBodyResultOriginatorName name; /** * <strong>example:</strong> * <p>012345</p> */ @NameInMap("UserId") public String userId; public static BatchGetFormDataByIdListResponseBodyResultOriginator build(java.util.Map<String, ?> map) throws Exception { BatchGetFormDataByIdListResponseBodyResultOriginator self = new BatchGetFormDataByIdListResponseBodyResultOriginator(); return TeaModel.build(map, self); } public BatchGetFormDataByIdListResponseBodyResultOriginator setName(BatchGetFormDataByIdListResponseBodyResultOriginatorName name) { this.name = name; return this; } public BatchGetFormDataByIdListResponseBodyResultOriginatorName getName() { return this.name; } public BatchGetFormDataByIdListResponseBodyResultOriginator setUserId(String userId) { this.userId = userId; return this; } public String getUserId() { return this.userId; } } public static class BatchGetFormDataByIdListResponseBodyResult extends TeaModel { /** * <strong>example:</strong> * <p>2021-05-01 10:10:10</p> */ @NameInMap("CreateTimeGMT") public String createTimeGMT; /** * <strong>example:</strong> * <p>012345</p> */ @NameInMap("CreatorUserId") public String creatorUserId; @NameInMap("FormData") public java.util.Map<String, ?> formData; /** * <strong>example:</strong> * <p>FINST-xxxx</p> */ @NameInMap("FormInstanceId") public String formInstanceId; /** * <strong>example:</strong> * <p>FORM-xxxx</p> */ @NameInMap("FormUuid") public String formUuid; /** * <strong>example:</strong> * <p>21044829126</p> */ @NameInMap("Id") public Long id; /** * <strong>example:</strong> * <p>{}</p> */ @NameInMap("InstanceValue") public String instanceValue; /** * <strong>example:</strong> * <p>2021-05-01 10:10:10</p> */ @NameInMap("ModifiedTimeGMT") public String modifiedTimeGMT; @NameInMap("Modifier") public String modifier; @NameInMap("ModifyUser") public BatchGetFormDataByIdListResponseBodyResultModifyUser modifyUser; @NameInMap("Originator") public BatchGetFormDataByIdListResponseBodyResultOriginator originator; /** * <strong>example:</strong> * <p>1</p> */ @NameInMap("Sequence") public String sequence; /** * <strong>example:</strong> * <p>SA65776</p> */ @NameInMap("SerialNumber") public String serialNumber; @NameInMap("Title") public String title; /** * <strong>example:</strong> * <p>2</p> */ @NameInMap("Version") public Long version; public static BatchGetFormDataByIdListResponseBodyResult build(java.util.Map<String, ?> map) throws Exception { BatchGetFormDataByIdListResponseBodyResult self = new BatchGetFormDataByIdListResponseBodyResult(); return TeaModel.build(map, self); } public BatchGetFormDataByIdListResponseBodyResult setCreateTimeGMT(String createTimeGMT) { this.createTimeGMT = createTimeGMT; return this; } public String getCreateTimeGMT() { return this.createTimeGMT; } public BatchGetFormDataByIdListResponseBodyResult setCreatorUserId(String creatorUserId) { this.creatorUserId = creatorUserId; return this; } public String getCreatorUserId() { return this.creatorUserId; } public BatchGetFormDataByIdListResponseBodyResult setFormData(java.util.Map<String, ?> formData) { this.formData = formData; return this; } public java.util.Map<String, ?> getFormData() { return this.formData; } public BatchGetFormDataByIdListResponseBodyResult setFormInstanceId(String formInstanceId) { this.formInstanceId = formInstanceId; return this; } public String getFormInstanceId() { return this.formInstanceId; } public BatchGetFormDataByIdListResponseBodyResult setFormUuid(String formUuid) { this.formUuid = formUuid; return this; } public String getFormUuid() { return this.formUuid; } public BatchGetFormDataByIdListResponseBodyResult setId(Long id) { this.id = id; return this; } public Long getId() { return this.id; } public BatchGetFormDataByIdListResponseBodyResult setInstanceValue(String instanceValue) { this.instanceValue = instanceValue; return this; } public String getInstanceValue() { return this.instanceValue; } public BatchGetFormDataByIdListResponseBodyResult setModifiedTimeGMT(String modifiedTimeGMT) { this.modifiedTimeGMT = modifiedTimeGMT; return this; } public String getModifiedTimeGMT() { return this.modifiedTimeGMT; } public BatchGetFormDataByIdListResponseBodyResult setModifier(String modifier) { this.modifier = modifier; return this; } public String getModifier() { return this.modifier; } public BatchGetFormDataByIdListResponseBodyResult setModifyUser(BatchGetFormDataByIdListResponseBodyResultModifyUser modifyUser) { this.modifyUser = modifyUser; return this; } public BatchGetFormDataByIdListResponseBodyResultModifyUser getModifyUser() { return this.modifyUser; } public BatchGetFormDataByIdListResponseBodyResult setOriginator(BatchGetFormDataByIdListResponseBodyResultOriginator originator) { this.originator = originator; return this; } public BatchGetFormDataByIdListResponseBodyResultOriginator getOriginator() { return this.originator; } public BatchGetFormDataByIdListResponseBodyResult setSequence(String sequence) { this.sequence = sequence; return this; } public String getSequence() { return this.sequence; } public BatchGetFormDataByIdListResponseBodyResult setSerialNumber(String serialNumber) { this.serialNumber = serialNumber; return this; } public String getSerialNumber() { return this.serialNumber; } public BatchGetFormDataByIdListResponseBodyResult setTitle(String title) { this.title = title; return this; } public String getTitle() { return this.title; } public BatchGetFormDataByIdListResponseBodyResult setVersion(Long version) { this.version = version; return this; } public Long getVersion() { return this.version; } } }