tencentcloud-sdk-organization 3.0.678 → 3.0.680
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/tencentcloud-sdk-organization.rb +3 -3
- data/lib/v20210331/client.rb +96 -0
- data/lib/v20210331/models.rb +180 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b625098219967b8195894166504861e2f70f7ef5
|
4
|
+
data.tar.gz: 9cc75ae31ddef27f77d0b8b36bb5bf3c778ddd19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2571a76ea434d1b2645ba54a8b9c1c41bec20bdff75cc8734c18e8839bbc8cbbc5aa3abc8d8ba681f0493ed2e7892d0255b9ab0edb9b2564dcc15e537d9ac626
|
7
|
+
data.tar.gz: a90809a0ebedf576dd8722739f438a8f812acfd976222865b6830f1b10149cd8f0c1776aed963f034abdd70d7674ab79f6af3de04dafe157ef8adcbac944c2e6
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.680
|
@@ -2,12 +2,12 @@
|
|
2
2
|
|
3
3
|
require 'tencentcloud-sdk-common'
|
4
4
|
|
5
|
-
require_relative 'v20181225/client'
|
6
|
-
require_relative 'v20181225/models'
|
7
|
-
|
8
5
|
require_relative 'v20210331/client'
|
9
6
|
require_relative 'v20210331/models'
|
10
7
|
|
8
|
+
require_relative 'v20181225/client'
|
9
|
+
require_relative 'v20181225/models'
|
10
|
+
|
11
11
|
module TencentCloud
|
12
12
|
module Organization
|
13
13
|
end
|
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.680
|
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-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|
@@ -33,11 +33,11 @@ executables: []
|
|
33
33
|
extensions: []
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
|
-
- lib/
|
36
|
+
- lib/tencentcloud-sdk-organization.rb
|
37
37
|
- lib/v20181225/client.rb
|
38
|
-
- lib/
|
38
|
+
- lib/v20181225/models.rb
|
39
39
|
- lib/v20210331/client.rb
|
40
|
-
- lib/
|
40
|
+
- lib/v20210331/models.rb
|
41
41
|
- lib/VERSION
|
42
42
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
43
43
|
licenses:
|