/
organization_client.js
151 lines (151 loc) · 4.35 KB
/
organization_client.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Client = void 0;
/* eslint-disable @typescript-eslint/no-unused-vars */
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* 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.
*/
const abstract_client_1 = require("../../../common/abstract_client");
/**
* organization client
* @class
*/
class Client extends abstract_client_1.AbstractClient {
constructor(clientConfig) {
super("organization.tencentcloudapi.com", "2018-12-25", clientConfig);
}
/**
* 拒绝企业组织邀请
*/
async DenyOrganizationInvitation(req, cb) {
return this.request("DenyOrganizationInvitation", req, cb);
}
/**
* 获取邀请信息列表
*/
async ListOrganizationInvitations(req, cb) {
return this.request("ListOrganizationInvitations", req, cb);
}
/**
* 更新企业组织单元
*/
async UpdateOrganizationNode(req, cb) {
return this.request("UpdateOrganizationNode", req, cb);
}
/**
* 接受加入企业组织邀请
*/
async AcceptOrganizationInvitation(req, cb) {
return this.request("AcceptOrganizationInvitation", req, cb);
}
/**
* 获取企业组织成员
*/
async GetOrganizationMember(req, cb) {
return this.request("GetOrganizationMember", req, cb);
}
/**
* 获取企业组织信息
*/
async GetOrganization(req, cb) {
return this.request("GetOrganization", req, cb);
}
/**
* 获取企业组织单元列表
*/
async ListOrganizationNodes(req, cb) {
return this.request("ListOrganizationNodes", req, cb);
}
/**
* 更新企业成员信息
*/
async UpdateOrganizationMember(req, cb) {
return this.request("UpdateOrganizationMember", req, cb);
}
/**
* 退出企业组织
*/
async QuitOrganization(req, cb) {
return this.request("QuitOrganization", req, cb);
}
/**
* 批量删除企业组织单元
*/
async DeleteOrganizationNodes(req, cb) {
return this.request("DeleteOrganizationNodes", req, cb);
}
/**
* 获取企业组织成员列表
*/
async ListOrganizationMembers(req, cb) {
return this.request("ListOrganizationMembers", req, cb);
}
/**
* 删除企业组织成员
*/
async DeleteOrganizationMemberFromNode(req, cb) {
return this.request("DeleteOrganizationMemberFromNode", req, cb);
}
/**
* 添加企业组织单元
*/
async AddOrganizationNode(req, cb) {
return this.request("AddOrganizationNode", req, cb);
}
/**
* 发送企业组织邀请
*/
async SendOrganizationInvitation(req, cb) {
return this.request("SendOrganizationInvitation", req, cb);
}
/**
* 取消企业组织邀请
*/
async CancelOrganizationInvitation(req, cb) {
return this.request("CancelOrganizationInvitation", req, cb);
}
/**
* 删除企业组织
*/
async DeleteOrganization(req, cb) {
return this.request("DeleteOrganization", req, cb);
}
/**
* 批量删除企业组织成员
*/
async DeleteOrganizationMembers(req, cb) {
return this.request("DeleteOrganizationMembers", req, cb);
}
/**
* 获取企业组织单元成员列表
*/
async ListOrganizationNodeMembers(req, cb) {
return this.request("ListOrganizationNodeMembers", req, cb);
}
/**
* 创建企业组织
*/
async CreateOrganization(req, cb) {
return this.request("CreateOrganization", req, cb);
}
/**
* 移动成员到指定企业组织单元
*/
async MoveOrganizationMembersToNode(req, cb) {
return this.request("MoveOrganizationMembersToNode", req, cb);
}
}
exports.Client = Client;