diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7e16a11d..d2d78c3a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,7 +30,10 @@ jobs: - name: Test (No Real Feishu API Calls) run: | - go test ./... -count=1 + go test ./... -count=1 -covermode=atomic -coverprofile=coverage.out - name: Upload Cov - run: bash <(curl -s https://codecov.io/bash) + uses: codecov/codecov-action@v5 + with: + files: coverage.out + fail_ci_if_error: false diff --git a/api_contact_v2_department_batch_add.go b/api_contact_v2_department_batch_add.go new file mode 100644 index 00000000..f5d0e46d --- /dev/null +++ b/api_contact_v2_department_batch_add.go @@ -0,0 +1,81 @@ +// Code generated by lark_sdk_gen. DO NOT EDIT. +/** + * Copyright 2022 chyroc + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package lark + +import ( + "context" +) + +// BatchAddContactV2Department 该接口用于向通讯录中批量新增多个部门。 +// +// 调用该接口需要具有所有新增部门父部门的授权范围。 +// 应用商店应用无权限调用此接口。 +// 调用该接口需要申请 `更新通讯录` 以及 `以应用身份访问通讯录` 权限。 +// +// doc: https://open.feishu.cn/document/ukTMukTMukTM/uMDOwUjLzgDM14yM4ATN +// new doc: https://open.feishu.cn/document/server-docs/historic-version//import-api/batch-add-departments +// +// Deprecated +func (r *ContactService) BatchAddContactV2Department(ctx context.Context, request *BatchAddContactV2DepartmentReq, options ...MethodOptionFunc) (*BatchAddContactV2DepartmentResp, *Response, error) { + if r.cli.mock.mockContactBatchAddContactV2Department != nil { + r.cli.Log(ctx, LogLevelDebug, "[lark] Contact#BatchAddContactV2Department mock enable") + return r.cli.mock.mockContactBatchAddContactV2Department(ctx, request, options...) + } + + req := &RawRequestReq{ + Scope: "Contact", + API: "BatchAddContactV2Department", + Method: "POST", + URL: r.cli.openBaseURL + "/open-apis/contact/v2/department/batch_add", + Body: request, + MethodOption: newMethodOption(options), + NeedTenantAccessToken: true, + } + resp := new(batchAddContactV2DepartmentResp) + + response, err := r.cli.RawRequest(ctx, req, resp) + return resp.Data, response, err +} + +// MockContactBatchAddContactV2Department mock ContactBatchAddContactV2Department method +func (r *Mock) MockContactBatchAddContactV2Department(f func(ctx context.Context, request *BatchAddContactV2DepartmentReq, options ...MethodOptionFunc) (*BatchAddContactV2DepartmentResp, *Response, error)) { + r.mockContactBatchAddContactV2Department = f +} + +// UnMockContactBatchAddContactV2Department un-mock ContactBatchAddContactV2Department method +func (r *Mock) UnMockContactBatchAddContactV2Department() { + r.mockContactBatchAddContactV2Department = nil +} + +// BatchAddContactV2DepartmentReq ... +type BatchAddContactV2DepartmentReq struct { + Departments []string `json:"departments,omitempty"` // 所有要新增部门的集合。 +} + +// BatchAddContactV2DepartmentResp ... +type BatchAddContactV2DepartmentResp struct { + TaskID string `json:"task_id,omitempty"` // 生成的异步任务 ID, 参见 [查询批量任务执行状态](https://open.feishu.cn/document/ukTMukTMukTM/uUDOwUjL1gDM14SN4ATN) 接口。 +} + +// batchAddContactV2DepartmentResp ... +type batchAddContactV2DepartmentResp struct { + Code int64 `json:"code,omitempty"` // 返回码, 非 0 表示失败。 + Msg string `json:"msg,omitempty"` // 对返回码的文本描述。 + Data *BatchAddContactV2DepartmentResp `json:"data,omitempty"` + Error *ErrorDetail `json:"error,omitempty"` +} diff --git a/api_drive_sheet_default_import_result.go b/api_drive_sheet_default_import_result.go new file mode 100644 index 00000000..a7254f65 --- /dev/null +++ b/api_drive_sheet_default_import_result.go @@ -0,0 +1,79 @@ +// Code generated by lark_sdk_gen. DO NOT EDIT. +/** + * Copyright 2022 chyroc + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package lark + +import ( + "context" +) + +// GetDriveSheetDefaultImportResult 该接口用于查询文件导入结果。查询30分钟无结果为导入失败。 +// +// doc: https://open.feishu.cn/document/ukTMukTMukTM/uETO2YjLxkjN24SM5YjN +// new doc: https://open.feishu.cn/document/server-docs/historic-version/docs/sheets/sheet-operation/query-import-results +// +// Deprecated +func (r *DriveService) GetDriveSheetDefaultImportResult(ctx context.Context, request *GetDriveSheetDefaultImportResultReq, options ...MethodOptionFunc) (*GetDriveSheetDefaultImportResultResp, *Response, error) { + if r.cli.mock.mockDriveGetDriveSheetDefaultImportResult != nil { + r.cli.Log(ctx, LogLevelDebug, "[lark] Drive#GetDriveSheetDefaultImportResult mock enable") + return r.cli.mock.mockDriveGetDriveSheetDefaultImportResult(ctx, request, options...) + } + + req := &RawRequestReq{ + Scope: "Drive", + API: "GetDriveSheetDefaultImportResult", + Method: "GET", + URL: r.cli.openBaseURL + "/open-apis/sheets/v2/import/result", + Body: request, + MethodOption: newMethodOption(options), + NeedTenantAccessToken: true, + NeedUserAccessToken: true, + } + resp := new(getDriveSheetDefaultImportResultResp) + + response, err := r.cli.RawRequest(ctx, req, resp) + return resp.Data, response, err +} + +// MockDriveGetDriveSheetDefaultImportResult mock DriveGetDriveSheetDefaultImportResult method +func (r *Mock) MockDriveGetDriveSheetDefaultImportResult(f func(ctx context.Context, request *GetDriveSheetDefaultImportResultReq, options ...MethodOptionFunc) (*GetDriveSheetDefaultImportResultResp, *Response, error)) { + r.mockDriveGetDriveSheetDefaultImportResult = f +} + +// UnMockDriveGetDriveSheetDefaultImportResult un-mock DriveGetDriveSheetDefaultImportResult method +func (r *Mock) UnMockDriveGetDriveSheetDefaultImportResult() { + r.mockDriveGetDriveSheetDefaultImportResult = nil +} + +// GetDriveSheetDefaultImportResultReq ... +type GetDriveSheetDefaultImportResultReq struct { + Ticket string `query:"ticket" json:"-"` // 导入时获取的凭证 +} + +// GetDriveSheetDefaultImportResultResp ... +type GetDriveSheetDefaultImportResultResp struct { + Ticket string `json:"ticket,omitempty"` // 导入时获取的凭证 + URL string `json:"url,omitempty"` // 导入文档的链接 + WarningCode int64 `json:"warningCode,omitempty"` // 导入的文档的状态码 +} + +// getDriveSheetDefaultImportResultResp ... +type getDriveSheetDefaultImportResultResp struct { + Code int64 `json:"code,omitempty"` + Msg string `json:"msg,omitempty"` + Data *GetDriveSheetDefaultImportResultResp `json:"data,omitempty"` +} diff --git a/api_mdm_user_auth_data_relation_bind.go b/api_mdm_user_auth_data_relation_bind.go index 5ceb711f..40e7df44 100644 --- a/api_mdm_user_auth_data_relation_bind.go +++ b/api_mdm_user_auth_data_relation_bind.go @@ -23,7 +23,7 @@ import ( // BindMDMUserAuthDataRelation 通过该接口, 可为指定应用下的用户绑定一类数据维度, 支持批量给多个用户同时增量授权。 // -// doc: https://open.larkoffice.com/document/uAjLw4CM/ukTMukTMukTM/mdm-v1/user_auth_data_relation/bind +// doc: https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/mdm-v1/user_auth_data_relation/bind // new doc: https://open.feishu.cn/document/server-docs/mdm-v1/user_auth_data_relation/bind func (r *MDMService) BindMDMUserAuthDataRelation(ctx context.Context, request *BindMDMUserAuthDataRelationReq, options ...MethodOptionFunc) (*BindMDMUserAuthDataRelationResp, *Response, error) { if r.cli.mock.mockMDMBindMDMUserAuthDataRelation != nil { @@ -58,11 +58,11 @@ func (r *Mock) UnMockMDMBindMDMUserAuthDataRelation() { // BindMDMUserAuthDataRelationReq ... type BindMDMUserAuthDataRelationReq struct { - UserIDType *IDType `query:"user_id_type" json:"-"` // 用户 ID 类型, 示例值: open_id, 可选值有: open_id: 标识一个用户在某个应用中的身份。同一个用户在不同应用中的 Open ID 不同。[了解更多: 如何获取 Open ID](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-openid), union_id: 标识一个用户在某个应用开发商下的身份。同一用户在同一开发商下的应用中的 Union ID 是相同的, 在不同开发商下的应用中的 Union ID 是不同的。通过 Union ID, 应用开发商可以把同个用户在多个应用中的身份关联起来。[了解更多: 如何获取 Union ID?](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-union-id), user_id: 标识一个用户在某个租户内的身份。同一个用户在租户 A 和租户 B 内的 User ID 是不同的。在同一个租户内, 一个用户的 User ID 在所有应用(包括商店应用)中都保持一致。User ID 主要用于在不同的应用间打通用户数据。[了解更多: 如何获取 User ID?](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-user-id), 默认值: `open_id`, 当值为 `user_id`, 字段权限要求: 获取用户 user ID - RootDimensionType string `json:"root_dimension_type,omitempty"` // 数据类型编码, 示例值: "gongsi", 长度范围: `1` ~ `200` 字符 - SubDimensionTypes []string `json:"sub_dimension_types,omitempty"` // 数据编码列表, 示例值: ["code_dimension"], 长度范围: `1` ~ `200` - AuthorizedUserIDs []string `json:"authorized_user_ids,omitempty"` // 授权人的lark id, 示例值: ["ou_7dab8a3d3cdcc9da365777c7ad535d62"], 长度范围: `1` ~ `200` - UamsAppID string `json:"uams_app_id,omitempty"` // uams系统中应用id, 示例值: "uams-tenant-test", 长度范围: `1` ~ `200` 字符 + UserIDType *IDType `query:"user_id_type" json:"-"` // 用户 ID 类型示例值: open_id可选值有: 标识一个用户在某个应用中的身份。同一个用户在不同应用中的 Open ID 不同。[了解更多: 如何获取 Open ID](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-openid)标识一个用户在某个应用开发商下的身份。同一用户在同一开发商下的应用中的 Union ID 是相同的, 在不同开发商下的应用中的 Union ID 是不同的。通过 Union ID, 应用开发商可以把同个用户在多个应用中的身份关联起来。[了解更多: 如何获取 Union ID?](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-union-id)标识一个用户在某个租户内的身份。同一个用户在租户 A 和租户 B 内的 User ID 是不同的。在同一个租户内, 一个用户的 User ID 在所有应用(包括商店应用)中都保持一致。User ID 主要用于在不同的应用间打通用户数据。[了解更多: 如何获取 User ID?](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-user-id)默认值: `open_id`当值为 `user_id`, 字段权限要求: 获取用户 user ID + RootDimensionType string `json:"root_dimension_type,omitempty"` // 数据类型编码示例值: "gongsi" 长度范围: `1` ~ `200` 字符 + SubDimensionTypes []string `json:"sub_dimension_types,omitempty"` // 数据编码列表示例值: ["code_dimension"] 长度范围: `1` ~ `200` + AuthorizedUserIDs []string `json:"authorized_user_ids,omitempty"` // 授权人的lark id示例值: ["ou_7dab8a3d3cdcc9da365777c7ad535d62"] 长度范围: `1` ~ `200` + UamsAppID string `json:"uams_app_id,omitempty"` // uams系统中应用id示例值: "uams-tenant-test" 长度范围: `1` ~ `200` 字符 } // BindMDMUserAuthDataRelationResp ... diff --git a/api_mdm_user_auth_data_relation_unbind.go b/api_mdm_user_auth_data_relation_unbind.go index 2472caae..ccfc3487 100644 --- a/api_mdm_user_auth_data_relation_unbind.go +++ b/api_mdm_user_auth_data_relation_unbind.go @@ -23,7 +23,7 @@ import ( // UnbindMDMUserAuthDataRelation 通过该接口, 可为指定应用下的指定用户解除一类数据维度。 // -// doc: https://open.larkoffice.com/document/uAjLw4CM/ukTMukTMukTM/mdm-v1/user_auth_data_relation/unbind +// doc: https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/mdm-v1/user_auth_data_relation/unbind // new doc: https://open.feishu.cn/document/server-docs/mdm-v1/user_auth_data_relation/unbind func (r *MDMService) UnbindMDMUserAuthDataRelation(ctx context.Context, request *UnbindMDMUserAuthDataRelationReq, options ...MethodOptionFunc) (*UnbindMDMUserAuthDataRelationResp, *Response, error) { if r.cli.mock.mockMDMUnbindMDMUserAuthDataRelation != nil { @@ -58,11 +58,11 @@ func (r *Mock) UnMockMDMUnbindMDMUserAuthDataRelation() { // UnbindMDMUserAuthDataRelationReq ... type UnbindMDMUserAuthDataRelationReq struct { - UserIDType *IDType `query:"user_id_type" json:"-"` // 用户 ID 类型, 示例值: open_id, 可选值有: open_id: 标识一个用户在某个应用中的身份。同一个用户在不同应用中的 Open ID 不同。[了解更多: 如何获取 Open ID](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-openid), union_id: 标识一个用户在某个应用开发商下的身份。同一用户在同一开发商下的应用中的 Union ID 是相同的, 在不同开发商下的应用中的 Union ID 是不同的。通过 Union ID, 应用开发商可以把同个用户在多个应用中的身份关联起来。[了解更多: 如何获取 Union ID?](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-union-id), user_id: 标识一个用户在某个租户内的身份。同一个用户在租户 A 和租户 B 内的 User ID 是不同的。在同一个租户内, 一个用户的 User ID 在所有应用(包括商店应用)中都保持一致。User ID 主要用于在不同的应用间打通用户数据。[了解更多: 如何获取 User ID?](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-user-id), 默认值: `open_id`, 当值为 `user_id`, 字段权限要求: 获取用户 user ID - RootDimensionType string `json:"root_dimension_type,omitempty"` // 数据类型编码, 示例值: "gongsi", 长度范围: `1` ~ `200` 字符 - SubDimensionTypes []string `json:"sub_dimension_types,omitempty"` // 数据编码列表, 示例值: ["zijie"], 长度范围: `1` ~ `200` - AuthorizedUserIDs []string `json:"authorized_user_ids,omitempty"` // 授权人的lark id, 示例值: ["on_21f2db9bdbafadeb16cd77b76060d41d"], 长度范围: `1` ~ `200` - UamsAppID string `json:"uams_app_id,omitempty"` // uams系统中应用id, 示例值: "uams-tenant-test", 长度范围: `1` ~ `200` 字符 + UserIDType *IDType `query:"user_id_type" json:"-"` // 用户 ID 类型示例值: open_id可选值有: 标识一个用户在某个应用中的身份。同一个用户在不同应用中的 Open ID 不同。[了解更多: 如何获取 Open ID](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-openid)标识一个用户在某个应用开发商下的身份。同一用户在同一开发商下的应用中的 Union ID 是相同的, 在不同开发商下的应用中的 Union ID 是不同的。通过 Union ID, 应用开发商可以把同个用户在多个应用中的身份关联起来。[了解更多: 如何获取 Union ID?](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-union-id)标识一个用户在某个租户内的身份。同一个用户在租户 A 和租户 B 内的 User ID 是不同的。在同一个租户内, 一个用户的 User ID 在所有应用(包括商店应用)中都保持一致。User ID 主要用于在不同的应用间打通用户数据。[了解更多: 如何获取 User ID?](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-user-id)默认值: `open_id`当值为 `user_id`, 字段权限要求: 获取用户 user ID + RootDimensionType string `json:"root_dimension_type,omitempty"` // 数据类型编码示例值: "gongsi" 长度范围: `1` ~ `200` 字符 + SubDimensionTypes []string `json:"sub_dimension_types,omitempty"` // 数据编码列表示例值: ["zijie"] 长度范围: `1` ~ `200` + AuthorizedUserIDs []string `json:"authorized_user_ids,omitempty"` // 授权人的lark id示例值: ["on_21f2db9bdbafadeb16cd77b76060d41d"] 长度范围: `1` ~ `200` + UamsAppID string `json:"uams_app_id,omitempty"` // uams系统中应用id示例值: "uams-tenant-test" 长度范围: `1` ~ `200` 字符 } // UnbindMDMUserAuthDataRelationResp ... diff --git a/api_url_preview_batch_update.go b/api_url_preview_batch_update.go index fca1f822..19b3c7a8 100644 --- a/api_url_preview_batch_update.go +++ b/api_url_preview_batch_update.go @@ -21,9 +21,12 @@ import ( "context" ) -// BatchUpdateURLPreview 主动更新 URL 预览, 调用后会重新触发一次客户端拉取, 需要回调服务返回更新后的数据。 +// BatchUpdateURLPreview 该接口用于主动更新 [URL 预览](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/development-link-preview/link-preview-development-guide), 调用后会重新触发一次客户端拉取, 需要回调服务返回更新后的数据。 // -// doc: https://open.larkoffice.com/document/uAjLw4CM/ukTMukTMukTM/group/im-v2/url_preview/batch_update +// 注意: 更新链接预览时需要注意更新频率, 如果更新时不指定用户, 则可能会造成链接预览请求放大。例如, 群聊中的链接预览, 所有群成员均会尝试重新拉取预览请求。 +// +// doc: https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/group/im-v2/url_preview/batch_update +// new doc: https://open.feishu.cn/document/im-v1/url_preview/batch_update func (r *MessageService) BatchUpdateURLPreview(ctx context.Context, request *BatchUpdateURLPreviewReq, options ...MethodOptionFunc) (*BatchUpdateURLPreviewResp, *Response, error) { if r.cli.mock.mockMessageBatchUpdateURLPreview != nil { r.cli.Log(ctx, LogLevelDebug, "[lark] Message#BatchUpdateURLPreview mock enable") @@ -57,12 +60,13 @@ func (r *Mock) UnMockMessageBatchUpdateURLPreview() { // BatchUpdateURLPreviewReq ... type BatchUpdateURLPreviewReq struct { - PreviewTokens []string `json:"preview_tokens,omitempty"` // URL 预览的 token 列表。单个 token 限制更新频率为 1次/5秒, 示例值: ["952te0c8-9ccf-463d-ad73-593f8f768a5c"], 长度范围: `1` ~ `10` - OpenIDs *string `json:"open_ids,omitempty"` // 需要更新 URL 预览的用户 open_id。若不传, 则默认更新 URL 预览所在会话的所有成员;若用户不在 URL 所在会话, 则无法触发更新该用户对应的 URL 预览结果, 示例值: ["ou_xxx"], 长度范围: `0` ~ `100` + PreviewTokens []string `json:"preview_tokens,omitempty"` // URL 预览的 preview_tokens 列表。需要通过[拉取链接预览数据](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/development-link-preview/pull-link-preview-data-callback-structure)回调获取 preview_tokens。注意: 单个 token 限制更新频率为 1次/5秒。示例值: ["952te0c8-9ccf-463d-ad73-593f8f768a5c"] 长度范围: `1` ~ `10` + OpenIDs *string `json:"open_ids,omitempty"` // 需要更新 URL 预览的用户 open_id。若不传, 则默认更新 URL 预览所在会话的所有成员;若用户不在 URL 所在会话, 则无法触发更新该用户对应的 URL 预览结果。获取方式参见[如何获取 Open ID](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-openid)。示例值: ["ou_xxx"] 长度范围: `0` ~ `100` } // BatchUpdateURLPreviewResp ... -type BatchUpdateURLPreviewResp struct{} +type BatchUpdateURLPreviewResp struct { +} // batchUpdateURLPreviewResp ... type batchUpdateURLPreviewResp struct { diff --git a/mock.go b/mock.go index bf599101..5a74771c 100644 --- a/mock.go +++ b/mock.go @@ -321,6 +321,7 @@ type Mock struct { mockContactAddContactGroupMember func(ctx context.Context, request *AddContactGroupMemberReq, options ...MethodOptionFunc) (*AddContactGroupMemberResp, *Response, error) mockContactBatchAddContactGroupMember func(ctx context.Context, request *BatchAddContactGroupMemberReq, options ...MethodOptionFunc) (*BatchAddContactGroupMemberResp, *Response, error) mockContactBatchAddContactV2User func(ctx context.Context, request *BatchAddContactV2UserReq, options ...MethodOptionFunc) (*BatchAddContactV2UserResp, *Response, error) + mockContactBatchAddContactV2Department func(ctx context.Context, request *BatchAddContactV2DepartmentReq, options ...MethodOptionFunc) (*BatchAddContactV2DepartmentResp, *Response, error) mockContactBatchCreateContactFunctionalRoleMember func(ctx context.Context, request *BatchCreateContactFunctionalRoleMemberReq, options ...MethodOptionFunc) (*BatchCreateContactFunctionalRoleMemberResp, *Response, error) mockContactBatchDeleteContactFunctionalRoleMember func(ctx context.Context, request *BatchDeleteContactFunctionalRoleMemberReq, options ...MethodOptionFunc) (*BatchDeleteContactFunctionalRoleMemberResp, *Response, error) mockContactBatchDeleteContactGroupMember func(ctx context.Context, request *BatchDeleteContactGroupMemberReq, options ...MethodOptionFunc) (*BatchDeleteContactGroupMemberResp, *Response, error) @@ -631,6 +632,7 @@ type Mock struct { mockDriveGetSheet func(ctx context.Context, request *GetSheetReq, options ...MethodOptionFunc) (*GetSheetResp, *Response, error) mockDriveGetSheetConditionFormat func(ctx context.Context, request *GetSheetConditionFormatReq, options ...MethodOptionFunc) (*GetSheetConditionFormatResp, *Response, error) mockDriveGetSheetDataValidationDropdown func(ctx context.Context, request *GetSheetDataValidationDropdownReq, options ...MethodOptionFunc) (*GetSheetDataValidationDropdownResp, *Response, error) + mockDriveGetDriveSheetDefaultImportResult func(ctx context.Context, request *GetDriveSheetDefaultImportResultReq, options ...MethodOptionFunc) (*GetDriveSheetDefaultImportResultResp, *Response, error) mockDriveGetSheetFilter func(ctx context.Context, request *GetSheetFilterReq, options ...MethodOptionFunc) (*GetSheetFilterResp, *Response, error) mockDriveGetSheetFilterView func(ctx context.Context, request *GetSheetFilterViewReq, options ...MethodOptionFunc) (*GetSheetFilterViewResp, *Response, error) mockDriveGetSheetFilterViewCondition func(ctx context.Context, request *GetSheetFilterViewConditionReq, options ...MethodOptionFunc) (*GetSheetFilterViewConditionResp, *Response, error)