tencentcloud-sdk-organization 3.0.880 → 3.0.882

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9faf8e17d880738ac24b38f923b536f797845f59
4
- data.tar.gz: d6d18b28093f975a6416463a499adbfb7f7c922d
3
+ metadata.gz: 5508f645649955ce7be65863747c3843c6d87f16
4
+ data.tar.gz: e242439aca07ac9e23d87e4fcf9fca0bde4fbfd0
5
5
  SHA512:
6
- metadata.gz: 31252c5ecf654e4637197d0c57403ea18e1b80abde2e866667d6fa59db09fe716fc504a1ebc1a20613ada96dfde526fd95169ae73b4dcb1b9de373af57d50a30
7
- data.tar.gz: 404b4fcb7fb779a7335f85f060887aee51228fb812455f7c1ce8f645e9e9b963ddbffe83aca78a1334385b8e56f17ced5bfc2f69d802ca21079c442945e59bcb
6
+ metadata.gz: 6a82526daccc7a5075fe8a8912a2174012eb1fef3e203f8a0b9f0bf83057a49c88506d260bf3a9c64638fcfb66d3b6ae1ba4b282455ced1fcfe18acccd909e9b
7
+ data.tar.gz: 1ca95154ccffb1f15d2eb54f7aee448c5480705670b92ad4a9e9bace2f4257de7c9fdf6ee0b5c5159e42485a03dab9ca35cc0085f3479a69f169c8c138056311
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.880
1
+ 3.0.882
@@ -269,6 +269,30 @@ module TencentCloud
269
269
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
270
270
  end
271
271
 
272
+ # 添加集团服务委派管理员
273
+
274
+ # @param request: Request instance for CreateOrgServiceAssign.
275
+ # @type request: :class:`Tencentcloud::organization::V20210331::CreateOrgServiceAssignRequest`
276
+ # @rtype: :class:`Tencentcloud::organization::V20210331::CreateOrgServiceAssignResponse`
277
+ def CreateOrgServiceAssign(request)
278
+ body = send_request('CreateOrgServiceAssign', request.serialize)
279
+ response = JSON.parse(body)
280
+ if response['Response'].key?('Error') == false
281
+ model = CreateOrgServiceAssignResponse.new
282
+ model.deserialize(response['Response'])
283
+ model
284
+ else
285
+ code = response['Response']['Error']['Code']
286
+ message = response['Response']['Error']['Message']
287
+ reqid = response['Response']['RequestId']
288
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
289
+ end
290
+ rescue TencentCloud::Common::TencentCloudSDKException => e
291
+ raise e
292
+ rescue StandardError => e
293
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
294
+ end
295
+
272
296
  # 创建企业组织
273
297
 
274
298
  # @param request: Request instance for CreateOrganization.
@@ -461,6 +485,30 @@ module TencentCloud
461
485
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
462
486
  end
463
487
 
488
+ # 删除集团服务委派管理员
489
+
490
+ # @param request: Request instance for DeleteOrgServiceAssign.
491
+ # @type request: :class:`Tencentcloud::organization::V20210331::DeleteOrgServiceAssignRequest`
492
+ # @rtype: :class:`Tencentcloud::organization::V20210331::DeleteOrgServiceAssignResponse`
493
+ def DeleteOrgServiceAssign(request)
494
+ body = send_request('DeleteOrgServiceAssign', request.serialize)
495
+ response = JSON.parse(body)
496
+ if response['Response'].key?('Error') == false
497
+ model = DeleteOrgServiceAssignResponse.new
498
+ model.deserialize(response['Response'])
499
+ model
500
+ else
501
+ code = response['Response']['Error']['Code']
502
+ message = response['Response']['Error']['Message']
503
+ reqid = response['Response']['RequestId']
504
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
505
+ end
506
+ rescue TencentCloud::Common::TencentCloudSDKException => e
507
+ raise e
508
+ rescue StandardError => e
509
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
510
+ end
511
+
464
512
  # 删除企业组织
465
513
 
466
514
  # @param request: Request instance for DeleteOrganization.
@@ -1229,6 +1277,30 @@ module TencentCloud
1229
1277
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1230
1278
  end
1231
1279
 
1280
+ # 获取集团服务委派管理员列表
1281
+
1282
+ # @param request: Request instance for ListOrgServiceAssignMember.
1283
+ # @type request: :class:`Tencentcloud::organization::V20210331::ListOrgServiceAssignMemberRequest`
1284
+ # @rtype: :class:`Tencentcloud::organization::V20210331::ListOrgServiceAssignMemberResponse`
1285
+ def ListOrgServiceAssignMember(request)
1286
+ body = send_request('ListOrgServiceAssignMember', request.serialize)
1287
+ response = JSON.parse(body)
1288
+ if response['Response'].key?('Error') == false
1289
+ model = ListOrgServiceAssignMemberResponse.new
1290
+ model.deserialize(response['Response'])
1291
+ model
1292
+ else
1293
+ code = response['Response']['Error']['Code']
1294
+ message = response['Response']['Error']['Message']
1295
+ reqid = response['Response']['RequestId']
1296
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1297
+ end
1298
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1299
+ raise e
1300
+ rescue StandardError => e
1301
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1302
+ end
1303
+
1232
1304
  # 获取组织成员访问身份列表
1233
1305
 
1234
1306
  # @param request: Request instance for ListOrganizationIdentity.
@@ -485,6 +485,54 @@ module TencentCloud
485
485
  end
486
486
  end
487
487
 
488
+ # CreateOrgServiceAssign请求参数结构体
489
+ class CreateOrgServiceAssignRequest < TencentCloud::Common::AbstractModel
490
+ # @param ServiceId: 集团服务ID。可以通过[ListOrganizationService](https://cloud.tencent.com/document/product/850/109561)获取
491
+ # @type ServiceId: Integer
492
+ # @param MemberUins: 委派管理员Uin列表。 最大长度20个
493
+ # @type MemberUins: Array
494
+ # @param ManagementScope: 委派管理员管理范围。 取值:1-全部成员 2-部分成员,默认值1
495
+ # @type ManagementScope: Integer
496
+ # @param ManagementScopeUins: 管理的成员Uin列表。ManagementScope为2时该参数有效
497
+ # @type ManagementScopeUins: Array
498
+ # @param ManagementScopeNodeIds: 管理的部门ID列表。ManagementScope为2时该参数有效
499
+ # @type ManagementScopeNodeIds: Array
500
+
501
+ attr_accessor :ServiceId, :MemberUins, :ManagementScope, :ManagementScopeUins, :ManagementScopeNodeIds
502
+
503
+ def initialize(serviceid=nil, memberuins=nil, managementscope=nil, managementscopeuins=nil, managementscopenodeids=nil)
504
+ @ServiceId = serviceid
505
+ @MemberUins = memberuins
506
+ @ManagementScope = managementscope
507
+ @ManagementScopeUins = managementscopeuins
508
+ @ManagementScopeNodeIds = managementscopenodeids
509
+ end
510
+
511
+ def deserialize(params)
512
+ @ServiceId = params['ServiceId']
513
+ @MemberUins = params['MemberUins']
514
+ @ManagementScope = params['ManagementScope']
515
+ @ManagementScopeUins = params['ManagementScopeUins']
516
+ @ManagementScopeNodeIds = params['ManagementScopeNodeIds']
517
+ end
518
+ end
519
+
520
+ # CreateOrgServiceAssign返回参数结构体
521
+ class CreateOrgServiceAssignResponse < TencentCloud::Common::AbstractModel
522
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
523
+ # @type RequestId: String
524
+
525
+ attr_accessor :RequestId
526
+
527
+ def initialize(requestid=nil)
528
+ @RequestId = requestid
529
+ end
530
+
531
+ def deserialize(params)
532
+ @RequestId = params['RequestId']
533
+ end
534
+ end
535
+
488
536
  # CreateOrganizationIdentity请求参数结构体
489
537
  class CreateOrganizationIdentityRequest < TencentCloud::Common::AbstractModel
490
538
  # @param IdentityAliasName: 身份名称
@@ -860,6 +908,42 @@ module TencentCloud
860
908
  end
861
909
  end
862
910
 
911
+ # DeleteOrgServiceAssign请求参数结构体
912
+ class DeleteOrgServiceAssignRequest < TencentCloud::Common::AbstractModel
913
+ # @param ServiceId: 集团服务ID。可以通过[ListOrganizationService](https://cloud.tencent.com/document/product/850/109561)获取
914
+ # @type ServiceId: Integer
915
+ # @param MemberUin: 委派管理员Uin。
916
+ # @type MemberUin: Integer
917
+
918
+ attr_accessor :ServiceId, :MemberUin
919
+
920
+ def initialize(serviceid=nil, memberuin=nil)
921
+ @ServiceId = serviceid
922
+ @MemberUin = memberuin
923
+ end
924
+
925
+ def deserialize(params)
926
+ @ServiceId = params['ServiceId']
927
+ @MemberUin = params['MemberUin']
928
+ end
929
+ end
930
+
931
+ # DeleteOrgServiceAssign返回参数结构体
932
+ class DeleteOrgServiceAssignResponse < TencentCloud::Common::AbstractModel
933
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
934
+ # @type RequestId: String
935
+
936
+ attr_accessor :RequestId
937
+
938
+ def initialize(requestid=nil)
939
+ @RequestId = requestid
940
+ end
941
+
942
+ def deserialize(params)
943
+ @RequestId = params['RequestId']
944
+ end
945
+ end
946
+
863
947
  # DeleteOrganizationIdentity请求参数结构体
864
948
  class DeleteOrganizationIdentityRequest < TencentCloud::Common::AbstractModel
865
949
  # @param IdentityId: 身份ID。可以通过[ListOrganizationIdentity](https://cloud.tencent.com/document/product/850/82934)获取
@@ -2605,6 +2689,63 @@ module TencentCloud
2605
2689
  end
2606
2690
  end
2607
2691
 
2692
+ # ListOrgServiceAssignMember请求参数结构体
2693
+ class ListOrgServiceAssignMemberRequest < TencentCloud::Common::AbstractModel
2694
+ # @param Offset: 偏移量。取值是limit的整数倍,默认值 : 0
2695
+ # @type Offset: Integer
2696
+ # @param Limit: 限制数目。取值范围:1~50,默认值:10
2697
+ # @type Limit: Integer
2698
+ # @param ServiceId: 集团服务ID。可以通过[ListOrganizationService](https://cloud.tencent.com/document/product/850/109561)获取
2699
+ # @type ServiceId: Integer
2700
+
2701
+ attr_accessor :Offset, :Limit, :ServiceId
2702
+
2703
+ def initialize(offset=nil, limit=nil, serviceid=nil)
2704
+ @Offset = offset
2705
+ @Limit = limit
2706
+ @ServiceId = serviceid
2707
+ end
2708
+
2709
+ def deserialize(params)
2710
+ @Offset = params['Offset']
2711
+ @Limit = params['Limit']
2712
+ @ServiceId = params['ServiceId']
2713
+ end
2714
+ end
2715
+
2716
+ # ListOrgServiceAssignMember返回参数结构体
2717
+ class ListOrgServiceAssignMemberResponse < TencentCloud::Common::AbstractModel
2718
+ # @param Total: 总数。
2719
+ # 注意:此字段可能返回 null,表示取不到有效值。
2720
+ # @type Total: Integer
2721
+ # @param Items: 委派管理员列表。
2722
+ # 注意:此字段可能返回 null,表示取不到有效值。
2723
+ # @type Items: Array
2724
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2725
+ # @type RequestId: String
2726
+
2727
+ attr_accessor :Total, :Items, :RequestId
2728
+
2729
+ def initialize(total=nil, items=nil, requestid=nil)
2730
+ @Total = total
2731
+ @Items = items
2732
+ @RequestId = requestid
2733
+ end
2734
+
2735
+ def deserialize(params)
2736
+ @Total = params['Total']
2737
+ unless params['Items'].nil?
2738
+ @Items = []
2739
+ params['Items'].each do |i|
2740
+ organizationserviceassignmember_tmp = OrganizationServiceAssignMember.new
2741
+ organizationserviceassignmember_tmp.deserialize(i)
2742
+ @Items << organizationserviceassignmember_tmp
2743
+ end
2744
+ end
2745
+ @RequestId = params['RequestId']
2746
+ end
2747
+ end
2748
+
2608
2749
  # ListOrganizationIdentity请求参数结构体
2609
2750
  class ListOrganizationIdentityRequest < TencentCloud::Common::AbstractModel
2610
2751
  # @param Offset: 偏移量。取值是limit的整数倍。默认值 : 0。
@@ -3186,6 +3327,28 @@ module TencentCloud
3186
3327
  end
3187
3328
  end
3188
3329
 
3330
+ # 部门主要信息
3331
+ class NodeMainInfo < TencentCloud::Common::AbstractModel
3332
+ # @param NodeId: 部门ID
3333
+ # 注意:此字段可能返回 null,表示取不到有效值。
3334
+ # @type NodeId: Integer
3335
+ # @param NodeName: 部门名称
3336
+ # 注意:此字段可能返回 null,表示取不到有效值。
3337
+ # @type NodeName: String
3338
+
3339
+ attr_accessor :NodeId, :NodeName
3340
+
3341
+ def initialize(nodeid=nil, nodename=nil)
3342
+ @NodeId = nodeid
3343
+ @NodeName = nodename
3344
+ end
3345
+
3346
+ def deserialize(params)
3347
+ @NodeId = params['NodeId']
3348
+ @NodeName = params['NodeName']
3349
+ end
3350
+ end
3351
+
3189
3352
  # 不允许删除的原因。
3190
3353
  class NotAllowReason < TencentCloud::Common::AbstractModel
3191
3354
  # @param IsCreateMember: 是否创建的成员。true-是、false-否;成员不是创建的成员不允许删除
@@ -3810,6 +3973,77 @@ module TencentCloud
3810
3973
  end
3811
3974
  end
3812
3975
 
3976
+ # 集团服务委派成员信息
3977
+ class OrganizationServiceAssignMember < TencentCloud::Common::AbstractModel
3978
+ # @param ServiceId: 集团服务ID。
3979
+ # 注意:此字段可能返回 null,表示取不到有效值。
3980
+ # @type ServiceId: Integer
3981
+ # @param ProductName: 集团服务产品名称。
3982
+ # 注意:此字段可能返回 null,表示取不到有效值。
3983
+ # @type ProductName: String
3984
+ # @param MemberUin: 委派管理员Uin。
3985
+ # 注意:此字段可能返回 null,表示取不到有效值。
3986
+ # @type MemberUin: Integer
3987
+ # @param MemberName: 委派管理员名称。
3988
+ # 注意:此字段可能返回 null,表示取不到有效值。
3989
+ # @type MemberName: String
3990
+ # @param UsageStatus: 启用状态 。取值:0-服务无启用状态 1-已启用 2-未启用
3991
+ # 注意:此字段可能返回 null,表示取不到有效值。
3992
+ # @type UsageStatus: Integer
3993
+ # @param CreateTime: 委派时间。
3994
+ # 注意:此字段可能返回 null,表示取不到有效值。
3995
+ # @type CreateTime: String
3996
+ # @param ManagementScope: 委派管理员管理范围。取值: 1-全部成员 2-部分成员
3997
+ # 注意:此字段可能返回 null,表示取不到有效值。
3998
+ # @type ManagementScope: Integer
3999
+ # @param ManagementScopeMembers: 管理的成员Uin列表。ManagementScope值为2时该参数有效
4000
+ # 注意:此字段可能返回 null,表示取不到有效值。
4001
+ # @type ManagementScopeMembers: Array
4002
+ # @param ManagementScopeNodes: 管理的部门ID列表。ManagementScope值为2时该参数有效
4003
+ # 注意:此字段可能返回 null,表示取不到有效值。
4004
+ # @type ManagementScopeNodes: Array
4005
+
4006
+ attr_accessor :ServiceId, :ProductName, :MemberUin, :MemberName, :UsageStatus, :CreateTime, :ManagementScope, :ManagementScopeMembers, :ManagementScopeNodes
4007
+
4008
+ def initialize(serviceid=nil, productname=nil, memberuin=nil, membername=nil, usagestatus=nil, createtime=nil, managementscope=nil, managementscopemembers=nil, managementscopenodes=nil)
4009
+ @ServiceId = serviceid
4010
+ @ProductName = productname
4011
+ @MemberUin = memberuin
4012
+ @MemberName = membername
4013
+ @UsageStatus = usagestatus
4014
+ @CreateTime = createtime
4015
+ @ManagementScope = managementscope
4016
+ @ManagementScopeMembers = managementscopemembers
4017
+ @ManagementScopeNodes = managementscopenodes
4018
+ end
4019
+
4020
+ def deserialize(params)
4021
+ @ServiceId = params['ServiceId']
4022
+ @ProductName = params['ProductName']
4023
+ @MemberUin = params['MemberUin']
4024
+ @MemberName = params['MemberName']
4025
+ @UsageStatus = params['UsageStatus']
4026
+ @CreateTime = params['CreateTime']
4027
+ @ManagementScope = params['ManagementScope']
4028
+ unless params['ManagementScopeMembers'].nil?
4029
+ @ManagementScopeMembers = []
4030
+ params['ManagementScopeMembers'].each do |i|
4031
+ membermaininfo_tmp = MemberMainInfo.new
4032
+ membermaininfo_tmp.deserialize(i)
4033
+ @ManagementScopeMembers << membermaininfo_tmp
4034
+ end
4035
+ end
4036
+ unless params['ManagementScopeNodes'].nil?
4037
+ @ManagementScopeNodes = []
4038
+ params['ManagementScopeNodes'].each do |i|
4039
+ nodemaininfo_tmp = NodeMainInfo.new
4040
+ nodemaininfo_tmp.deserialize(i)
4041
+ @ManagementScopeNodes << nodemaininfo_tmp
4042
+ end
4043
+ end
4044
+ end
4045
+ end
4046
+
3813
4047
  # 产品资源
3814
4048
  class ProductResource < TencentCloud::Common::AbstractModel
3815
4049
  # @param ProductResourceId: 产品资源ID。
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.880
4
+ version: 3.0.882
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-06 00:00:00.000000000 Z
11
+ date: 2024-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common