tencentcloud-sdk-organization 3.0.679 → 3.0.681
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 +96 -0
- data/lib/v20210331/models.rb +180 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af4440091bd01931981de4c7f9f8b004116ed7bc
|
4
|
+
data.tar.gz: d4d002901a3c8d6ae8cf2e387e6076b127de8c84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c18ab7f7eb636d7c5a399612ffa3b23cce354419b5f06f7d8777bff6d3e8f0636ad49eb9d964d88ef36697019c196b7b9f5f895ef76c335e69cd19431711b357
|
7
|
+
data.tar.gz: 3943bbc37f065a986fb76205df4dbb105b7ac148e804c92b385cd8c60c872ad6d09c38f01c4006eb46d0d769522613012686fe4594a4c658d680f0510daf50b3
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.681
|
data/lib/v20210331/client.rb
CHANGED
@@ -149,6 +149,30 @@ module TencentCloud
|
|
149
149
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
150
|
end
|
151
151
|
|
152
|
+
# 添加组织身份
|
153
|
+
|
154
|
+
# @param request: Request instance for CreateOrganizationIdentity.
|
155
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::CreateOrganizationIdentityRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::CreateOrganizationIdentityResponse`
|
157
|
+
def CreateOrganizationIdentity(request)
|
158
|
+
body = send_request('CreateOrganizationIdentity', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = CreateOrganizationIdentityResponse.new
|
162
|
+
model.deserialize(response['Response'])
|
163
|
+
model
|
164
|
+
else
|
165
|
+
code = response['Response']['Error']['Code']
|
166
|
+
message = response['Response']['Error']['Message']
|
167
|
+
reqid = response['Response']['RequestId']
|
168
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
169
|
+
end
|
170
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
171
|
+
raise e
|
172
|
+
rescue StandardError => e
|
173
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
|
+
end
|
175
|
+
|
152
176
|
# 创建组织成员
|
153
177
|
|
154
178
|
# @param request: Request instance for CreateOrganizationMember.
|
@@ -221,6 +245,30 @@ module TencentCloud
|
|
221
245
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
222
246
|
end
|
223
247
|
|
248
|
+
# 创建组织成员访问策略
|
249
|
+
|
250
|
+
# @param request: Request instance for CreateOrganizationMembersPolicy.
|
251
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::CreateOrganizationMembersPolicyRequest`
|
252
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::CreateOrganizationMembersPolicyResponse`
|
253
|
+
def CreateOrganizationMembersPolicy(request)
|
254
|
+
body = send_request('CreateOrganizationMembersPolicy', request.serialize)
|
255
|
+
response = JSON.parse(body)
|
256
|
+
if response['Response'].key?('Error') == false
|
257
|
+
model = CreateOrganizationMembersPolicyResponse.new
|
258
|
+
model.deserialize(response['Response'])
|
259
|
+
model
|
260
|
+
else
|
261
|
+
code = response['Response']['Error']['Code']
|
262
|
+
message = response['Response']['Error']['Message']
|
263
|
+
reqid = response['Response']['RequestId']
|
264
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
265
|
+
end
|
266
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
267
|
+
raise e
|
268
|
+
rescue StandardError => e
|
269
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
|
+
end
|
271
|
+
|
224
272
|
# 删除企业组织
|
225
273
|
|
226
274
|
# @param request: Request instance for DeleteOrganization.
|
@@ -245,6 +293,30 @@ module TencentCloud
|
|
245
293
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
294
|
end
|
247
295
|
|
296
|
+
# 删除组织身份
|
297
|
+
|
298
|
+
# @param request: Request instance for DeleteOrganizationIdentity.
|
299
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::DeleteOrganizationIdentityRequest`
|
300
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::DeleteOrganizationIdentityResponse`
|
301
|
+
def DeleteOrganizationIdentity(request)
|
302
|
+
body = send_request('DeleteOrganizationIdentity', request.serialize)
|
303
|
+
response = JSON.parse(body)
|
304
|
+
if response['Response'].key?('Error') == false
|
305
|
+
model = DeleteOrganizationIdentityResponse.new
|
306
|
+
model.deserialize(response['Response'])
|
307
|
+
model
|
308
|
+
else
|
309
|
+
code = response['Response']['Error']['Code']
|
310
|
+
message = response['Response']['Error']['Message']
|
311
|
+
reqid = response['Response']['RequestId']
|
312
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
313
|
+
end
|
314
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
315
|
+
raise e
|
316
|
+
rescue StandardError => e
|
317
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
318
|
+
end
|
319
|
+
|
248
320
|
# 删除组织成员访问授权
|
249
321
|
|
250
322
|
# @param request: Request instance for DeleteOrganizationMemberAuthIdentity.
|
@@ -677,6 +749,30 @@ module TencentCloud
|
|
677
749
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
678
750
|
end
|
679
751
|
|
752
|
+
# 更新组织身份
|
753
|
+
|
754
|
+
# @param request: Request instance for UpdateOrganizationIdentity.
|
755
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::UpdateOrganizationIdentityRequest`
|
756
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::UpdateOrganizationIdentityResponse`
|
757
|
+
def UpdateOrganizationIdentity(request)
|
758
|
+
body = send_request('UpdateOrganizationIdentity', request.serialize)
|
759
|
+
response = JSON.parse(body)
|
760
|
+
if response['Response'].key?('Error') == false
|
761
|
+
model = UpdateOrganizationIdentityResponse.new
|
762
|
+
model.deserialize(response['Response'])
|
763
|
+
model
|
764
|
+
else
|
765
|
+
code = response['Response']['Error']['Code']
|
766
|
+
message = response['Response']['Error']['Message']
|
767
|
+
reqid = response['Response']['RequestId']
|
768
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
769
|
+
end
|
770
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
771
|
+
raise e
|
772
|
+
rescue StandardError => e
|
773
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
774
|
+
end
|
775
|
+
|
680
776
|
# 更新组织成员信息
|
681
777
|
|
682
778
|
# @param request: Request instance for UpdateOrganizationMember.
|
data/lib/v20210331/models.rb
CHANGED
@@ -220,6 +220,58 @@ module TencentCloud
|
|
220
220
|
end
|
221
221
|
end
|
222
222
|
|
223
|
+
# CreateOrganizationIdentity请求参数结构体
|
224
|
+
class CreateOrganizationIdentityRequest < TencentCloud::Common::AbstractModel
|
225
|
+
# @param IdentityAliasName: 身份名称
|
226
|
+
# @type IdentityAliasName: String
|
227
|
+
# @param IdentityPolicy: 身份策略
|
228
|
+
# @type IdentityPolicy: Array
|
229
|
+
# @param Description: 身份描述
|
230
|
+
# @type Description: String
|
231
|
+
|
232
|
+
attr_accessor :IdentityAliasName, :IdentityPolicy, :Description
|
233
|
+
|
234
|
+
def initialize(identityaliasname=nil, identitypolicy=nil, description=nil)
|
235
|
+
@IdentityAliasName = identityaliasname
|
236
|
+
@IdentityPolicy = identitypolicy
|
237
|
+
@Description = description
|
238
|
+
end
|
239
|
+
|
240
|
+
def deserialize(params)
|
241
|
+
@IdentityAliasName = params['IdentityAliasName']
|
242
|
+
unless params['IdentityPolicy'].nil?
|
243
|
+
@IdentityPolicy = []
|
244
|
+
params['IdentityPolicy'].each do |i|
|
245
|
+
identitypolicy_tmp = IdentityPolicy.new
|
246
|
+
identitypolicy_tmp.deserialize(i)
|
247
|
+
@IdentityPolicy << identitypolicy_tmp
|
248
|
+
end
|
249
|
+
end
|
250
|
+
@Description = params['Description']
|
251
|
+
end
|
252
|
+
end
|
253
|
+
|
254
|
+
# CreateOrganizationIdentity返回参数结构体
|
255
|
+
class CreateOrganizationIdentityResponse < TencentCloud::Common::AbstractModel
|
256
|
+
# @param IdentityId: 身份ID
|
257
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
258
|
+
# @type IdentityId: Integer
|
259
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
260
|
+
# @type RequestId: String
|
261
|
+
|
262
|
+
attr_accessor :IdentityId, :RequestId
|
263
|
+
|
264
|
+
def initialize(identityid=nil, requestid=nil)
|
265
|
+
@IdentityId = identityid
|
266
|
+
@RequestId = requestid
|
267
|
+
end
|
268
|
+
|
269
|
+
def deserialize(params)
|
270
|
+
@IdentityId = params['IdentityId']
|
271
|
+
@RequestId = params['RequestId']
|
272
|
+
end
|
273
|
+
end
|
274
|
+
|
223
275
|
# CreateOrganizationMemberAuthIdentity请求参数结构体
|
224
276
|
class CreateOrganizationMemberAuthIdentityRequest < TencentCloud::Common::AbstractModel
|
225
277
|
# @param MemberUins: 成员uin列表。最多10个
|
@@ -378,6 +430,55 @@ module TencentCloud
|
|
378
430
|
end
|
379
431
|
end
|
380
432
|
|
433
|
+
# CreateOrganizationMembersPolicy请求参数结构体
|
434
|
+
class CreateOrganizationMembersPolicyRequest < TencentCloud::Common::AbstractModel
|
435
|
+
# @param MemberUins: 成员Uin列表。最多10个
|
436
|
+
# @type MemberUins: Array
|
437
|
+
# @param PolicyName: 策略名。长度1~128个字符,支持英文字母、数字、符号+=,.@_-
|
438
|
+
# @type PolicyName: String
|
439
|
+
# @param IdentityId: 成员访问身份ID。
|
440
|
+
# @type IdentityId: Integer
|
441
|
+
# @param Description: 策略描述。最大长度为128个字符
|
442
|
+
# @type Description: String
|
443
|
+
|
444
|
+
attr_accessor :MemberUins, :PolicyName, :IdentityId, :Description
|
445
|
+
|
446
|
+
def initialize(memberuins=nil, policyname=nil, identityid=nil, description=nil)
|
447
|
+
@MemberUins = memberuins
|
448
|
+
@PolicyName = policyname
|
449
|
+
@IdentityId = identityid
|
450
|
+
@Description = description
|
451
|
+
end
|
452
|
+
|
453
|
+
def deserialize(params)
|
454
|
+
@MemberUins = params['MemberUins']
|
455
|
+
@PolicyName = params['PolicyName']
|
456
|
+
@IdentityId = params['IdentityId']
|
457
|
+
@Description = params['Description']
|
458
|
+
end
|
459
|
+
end
|
460
|
+
|
461
|
+
# CreateOrganizationMembersPolicy返回参数结构体
|
462
|
+
class CreateOrganizationMembersPolicyResponse < TencentCloud::Common::AbstractModel
|
463
|
+
# @param PolicyId: 策略ID。
|
464
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
465
|
+
# @type PolicyId: Integer
|
466
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
467
|
+
# @type RequestId: String
|
468
|
+
|
469
|
+
attr_accessor :PolicyId, :RequestId
|
470
|
+
|
471
|
+
def initialize(policyid=nil, requestid=nil)
|
472
|
+
@PolicyId = policyid
|
473
|
+
@RequestId = requestid
|
474
|
+
end
|
475
|
+
|
476
|
+
def deserialize(params)
|
477
|
+
@PolicyId = params['PolicyId']
|
478
|
+
@RequestId = params['RequestId']
|
479
|
+
end
|
480
|
+
end
|
481
|
+
|
381
482
|
# CreateOrganization请求参数结构体
|
382
483
|
class CreateOrganizationRequest < TencentCloud::Common::AbstractModel
|
383
484
|
|
@@ -413,6 +514,38 @@ module TencentCloud
|
|
413
514
|
end
|
414
515
|
end
|
415
516
|
|
517
|
+
# DeleteOrganizationIdentity请求参数结构体
|
518
|
+
class DeleteOrganizationIdentityRequest < TencentCloud::Common::AbstractModel
|
519
|
+
# @param IdentityId: 身份ID
|
520
|
+
# @type IdentityId: Integer
|
521
|
+
|
522
|
+
attr_accessor :IdentityId
|
523
|
+
|
524
|
+
def initialize(identityid=nil)
|
525
|
+
@IdentityId = identityid
|
526
|
+
end
|
527
|
+
|
528
|
+
def deserialize(params)
|
529
|
+
@IdentityId = params['IdentityId']
|
530
|
+
end
|
531
|
+
end
|
532
|
+
|
533
|
+
# DeleteOrganizationIdentity返回参数结构体
|
534
|
+
class DeleteOrganizationIdentityResponse < TencentCloud::Common::AbstractModel
|
535
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
536
|
+
# @type RequestId: String
|
537
|
+
|
538
|
+
attr_accessor :RequestId
|
539
|
+
|
540
|
+
def initialize(requestid=nil)
|
541
|
+
@RequestId = requestid
|
542
|
+
end
|
543
|
+
|
544
|
+
def deserialize(params)
|
545
|
+
@RequestId = params['RequestId']
|
546
|
+
end
|
547
|
+
end
|
548
|
+
|
416
549
|
# DeleteOrganizationMemberAuthIdentity请求参数结构体
|
417
550
|
class DeleteOrganizationMemberAuthIdentityRequest < TencentCloud::Common::AbstractModel
|
418
551
|
# @param MemberUin: 成员uin。
|
@@ -2032,6 +2165,53 @@ module TencentCloud
|
|
2032
2165
|
end
|
2033
2166
|
end
|
2034
2167
|
|
2168
|
+
# UpdateOrganizationIdentity请求参数结构体
|
2169
|
+
class UpdateOrganizationIdentityRequest < TencentCloud::Common::AbstractModel
|
2170
|
+
# @param IdentityId: 身份ID
|
2171
|
+
# @type IdentityId: Integer
|
2172
|
+
# @param Description: 身份描述
|
2173
|
+
# @type Description: String
|
2174
|
+
# @param IdentityPolicy: 身份策略
|
2175
|
+
# @type IdentityPolicy: Array
|
2176
|
+
|
2177
|
+
attr_accessor :IdentityId, :Description, :IdentityPolicy
|
2178
|
+
|
2179
|
+
def initialize(identityid=nil, description=nil, identitypolicy=nil)
|
2180
|
+
@IdentityId = identityid
|
2181
|
+
@Description = description
|
2182
|
+
@IdentityPolicy = identitypolicy
|
2183
|
+
end
|
2184
|
+
|
2185
|
+
def deserialize(params)
|
2186
|
+
@IdentityId = params['IdentityId']
|
2187
|
+
@Description = params['Description']
|
2188
|
+
unless params['IdentityPolicy'].nil?
|
2189
|
+
@IdentityPolicy = []
|
2190
|
+
params['IdentityPolicy'].each do |i|
|
2191
|
+
identitypolicy_tmp = IdentityPolicy.new
|
2192
|
+
identitypolicy_tmp.deserialize(i)
|
2193
|
+
@IdentityPolicy << identitypolicy_tmp
|
2194
|
+
end
|
2195
|
+
end
|
2196
|
+
end
|
2197
|
+
end
|
2198
|
+
|
2199
|
+
# UpdateOrganizationIdentity返回参数结构体
|
2200
|
+
class UpdateOrganizationIdentityResponse < TencentCloud::Common::AbstractModel
|
2201
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2202
|
+
# @type RequestId: String
|
2203
|
+
|
2204
|
+
attr_accessor :RequestId
|
2205
|
+
|
2206
|
+
def initialize(requestid=nil)
|
2207
|
+
@RequestId = requestid
|
2208
|
+
end
|
2209
|
+
|
2210
|
+
def deserialize(params)
|
2211
|
+
@RequestId = params['RequestId']
|
2212
|
+
end
|
2213
|
+
end
|
2214
|
+
|
2035
2215
|
# UpdateOrganizationMemberEmailBind请求参数结构体
|
2036
2216
|
class UpdateOrganizationMemberEmailBindRequest < TencentCloud::Common::AbstractModel
|
2037
2217
|
# @param MemberUin: 成员Uin
|
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: 3.0.
|
4
|
+
version: 3.0.681
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|
@@ -34,10 +34,10 @@ extensions: []
|
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
36
|
- lib/tencentcloud-sdk-organization.rb
|
37
|
-
- lib/v20181225/models.rb
|
38
37
|
- lib/v20181225/client.rb
|
39
|
-
- lib/
|
38
|
+
- lib/v20181225/models.rb
|
40
39
|
- lib/v20210331/client.rb
|
40
|
+
- lib/v20210331/models.rb
|
41
41
|
- lib/VERSION
|
42
42
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
43
43
|
licenses:
|