tencentcloud-sdk-organization 1.0.231 → 1.0.232
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210331/client.rb +24 -0
- data/lib/v20210331/models.rb +119 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1798695ec4d87835333ba8a2325f563bfc74e132
|
4
|
+
data.tar.gz: b57c50ca4cc4e56c7a941da0c5d64575c96f3ab1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbf4cb67673b964f3bfdf0e140df1eb12eb844015b5d641d8fa1d22f089f3dbb8c87a9117c5adcf2a6ea955fea08af71b44470d736e832b55917c677c869f97c
|
7
|
+
data.tar.gz: 9bd9765405d626f0d5b5a5be744405924eb8e6493240d995bdc9f75ab65a54114f58cd5a1829d1db2a6a5a0cc42032ddfd70a5fa4c737eafd489d355bbb2a63b
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.232
|
data/lib/v20210331/client.rb
CHANGED
@@ -77,6 +77,30 @@ module TencentCloud
|
|
77
77
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
78
|
end
|
79
79
|
|
80
|
+
# 获取企业组织信息
|
81
|
+
|
82
|
+
# @param request: Request instance for DescribeOrganization.
|
83
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::DescribeOrganizationRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::DescribeOrganizationResponse`
|
85
|
+
def DescribeOrganization(request)
|
86
|
+
body = send_request('DescribeOrganization', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = DescribeOrganizationResponse.new
|
90
|
+
model.deserialize(response['Response'])
|
91
|
+
model
|
92
|
+
else
|
93
|
+
code = response['Response']['Error']['Code']
|
94
|
+
message = response['Response']['Error']['Message']
|
95
|
+
reqid = response['Response']['RequestId']
|
96
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
97
|
+
end
|
98
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
99
|
+
raise e
|
100
|
+
rescue StandardError => e
|
101
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
|
+
end
|
103
|
+
|
80
104
|
|
81
105
|
end
|
82
106
|
end
|
data/lib/v20210331/models.rb
CHANGED
@@ -113,6 +113,125 @@ module TencentCloud
|
|
113
113
|
end
|
114
114
|
end
|
115
115
|
|
116
|
+
# DescribeOrganization请求参数结构体
|
117
|
+
class DescribeOrganizationRequest < TencentCloud::Common::AbstractModel
|
118
|
+
# @param Lang: 国际站:en,国内站:zh
|
119
|
+
# @type Lang: String
|
120
|
+
|
121
|
+
attr_accessor :Lang
|
122
|
+
|
123
|
+
def initialize(lang=nil)
|
124
|
+
@Lang = lang
|
125
|
+
end
|
126
|
+
|
127
|
+
def deserialize(params)
|
128
|
+
@Lang = params['Lang']
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
# DescribeOrganization返回参数结构体
|
133
|
+
class DescribeOrganizationResponse < TencentCloud::Common::AbstractModel
|
134
|
+
# @param OrgId: 企业组织ID
|
135
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
136
|
+
# @type OrgId: Integer
|
137
|
+
# @param HostUin: 创建者UIN
|
138
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
139
|
+
# @type HostUin: Integer
|
140
|
+
# @param NickName: 创建者昵称
|
141
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
142
|
+
# @type NickName: String
|
143
|
+
# @param OrgType: 企业组织类型
|
144
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
145
|
+
# @type OrgType: Integer
|
146
|
+
# @param IsManager: 组织管理员:true,组织成员:false
|
147
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
148
|
+
# @type IsManager: Boolean
|
149
|
+
# @param OrgPolicyType: 策略类型
|
150
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
151
|
+
# @type OrgPolicyType: String
|
152
|
+
# @param OrgPolicyName: 策略名
|
153
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
154
|
+
# @type OrgPolicyName: String
|
155
|
+
# @param OrgPermission: 策略权限
|
156
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
157
|
+
# @type OrgPermission: Array
|
158
|
+
# @param RootNodeId: 根节点ID
|
159
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
160
|
+
# @type RootNodeId: Integer
|
161
|
+
# @param CreateTime: 创建时间
|
162
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
163
|
+
# @type CreateTime: String
|
164
|
+
# @param JoinTime: 成员加入时间
|
165
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
166
|
+
# @type JoinTime: String
|
167
|
+
# @param IsAllowQuit: 是否允许退出。允许:Allow,不允许:Denied。
|
168
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
169
|
+
# @type IsAllowQuit: String
|
170
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
171
|
+
# @type RequestId: String
|
172
|
+
|
173
|
+
attr_accessor :OrgId, :HostUin, :NickName, :OrgType, :IsManager, :OrgPolicyType, :OrgPolicyName, :OrgPermission, :RootNodeId, :CreateTime, :JoinTime, :IsAllowQuit, :RequestId
|
174
|
+
|
175
|
+
def initialize(orgid=nil, hostuin=nil, nickname=nil, orgtype=nil, ismanager=nil, orgpolicytype=nil, orgpolicyname=nil, orgpermission=nil, rootnodeid=nil, createtime=nil, jointime=nil, isallowquit=nil, requestid=nil)
|
176
|
+
@OrgId = orgid
|
177
|
+
@HostUin = hostuin
|
178
|
+
@NickName = nickname
|
179
|
+
@OrgType = orgtype
|
180
|
+
@IsManager = ismanager
|
181
|
+
@OrgPolicyType = orgpolicytype
|
182
|
+
@OrgPolicyName = orgpolicyname
|
183
|
+
@OrgPermission = orgpermission
|
184
|
+
@RootNodeId = rootnodeid
|
185
|
+
@CreateTime = createtime
|
186
|
+
@JoinTime = jointime
|
187
|
+
@IsAllowQuit = isallowquit
|
188
|
+
@RequestId = requestid
|
189
|
+
end
|
190
|
+
|
191
|
+
def deserialize(params)
|
192
|
+
@OrgId = params['OrgId']
|
193
|
+
@HostUin = params['HostUin']
|
194
|
+
@NickName = params['NickName']
|
195
|
+
@OrgType = params['OrgType']
|
196
|
+
@IsManager = params['IsManager']
|
197
|
+
@OrgPolicyType = params['OrgPolicyType']
|
198
|
+
@OrgPolicyName = params['OrgPolicyName']
|
199
|
+
unless params['OrgPermission'].nil?
|
200
|
+
@OrgPermission = []
|
201
|
+
params['OrgPermission'].each do |i|
|
202
|
+
orgpermission_tmp = OrgPermission.new
|
203
|
+
orgpermission_tmp.deserialize(i)
|
204
|
+
@OrgPermission << orgpermission_tmp
|
205
|
+
end
|
206
|
+
end
|
207
|
+
@RootNodeId = params['RootNodeId']
|
208
|
+
@CreateTime = params['CreateTime']
|
209
|
+
@JoinTime = params['JoinTime']
|
210
|
+
@IsAllowQuit = params['IsAllowQuit']
|
211
|
+
@RequestId = params['RequestId']
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
# 关系策略权限
|
216
|
+
class OrgPermission < TencentCloud::Common::AbstractModel
|
217
|
+
# @param Id: 权限Id
|
218
|
+
# @type Id: Integer
|
219
|
+
# @param Name: 权限名
|
220
|
+
# @type Name: String
|
221
|
+
|
222
|
+
attr_accessor :Id, :Name
|
223
|
+
|
224
|
+
def initialize(id=nil, name=nil)
|
225
|
+
@Id = id
|
226
|
+
@Name = name
|
227
|
+
end
|
228
|
+
|
229
|
+
def deserialize(params)
|
230
|
+
@Id = params['Id']
|
231
|
+
@Name = params['Name']
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
116
235
|
end
|
117
236
|
end
|
118
237
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-organization
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.232
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|