tencentcloud-sdk-organization 3.0.750 → 3.0.751

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: 4d814dbcdcdbe5b672d39e09319f3f9c4b6b09fc
4
- data.tar.gz: 4da6f03ea527c0e482e5517ad0a3123f6aa5684c
3
+ metadata.gz: 39247f606fc29309c513576365bda425963104eb
4
+ data.tar.gz: 10125ca9506291e859034e82819cb05a7e4fe738
5
5
  SHA512:
6
- metadata.gz: f7b541e903a2f788059f107b1ed09b5f50614b059fbd00cccb5af4f37a2a63be57501b0c731d9f54ba7b4245f7cc271fdbb5614a4187ae56ad67d94c40703ee0
7
- data.tar.gz: 07ef52254297234bac6d5ecb9b71e8e9f50a0bc23a702b04c80de9c99c672a1f25b4356f2a6cc64f45ee900c0dbb1e893836f8e4e1345145daabe4614e18810d
6
+ metadata.gz: f22b7e4d95acfc38f3a71228acd1f9b0d7cdcf2c15e2d088320174071d62a7efc4d8b55fabb51d89a356c087f272bc8446c80a20bebc9756d94a8c9bce10a692
7
+ data.tar.gz: 25cba82fef14eca85b267be4c9b800c31373d78b5474c70143a81b1c6944e3c10102ef1a1a620b8b1a85d1c3c189d4698cb40a26ae2681580403773b39006cf2
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.750
1
+ 3.0.751
@@ -77,6 +77,78 @@ 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 AddShareUnit.
83
+ # @type request: :class:`Tencentcloud::organization::V20210331::AddShareUnitRequest`
84
+ # @rtype: :class:`Tencentcloud::organization::V20210331::AddShareUnitResponse`
85
+ def AddShareUnit(request)
86
+ body = send_request('AddShareUnit', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = AddShareUnitResponse.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
+
104
+ # 添加共享单元成员
105
+
106
+ # @param request: Request instance for AddShareUnitMembers.
107
+ # @type request: :class:`Tencentcloud::organization::V20210331::AddShareUnitMembersRequest`
108
+ # @rtype: :class:`Tencentcloud::organization::V20210331::AddShareUnitMembersResponse`
109
+ def AddShareUnitMembers(request)
110
+ body = send_request('AddShareUnitMembers', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = AddShareUnitMembersResponse.new
114
+ model.deserialize(response['Response'])
115
+ model
116
+ else
117
+ code = response['Response']['Error']['Code']
118
+ message = response['Response']['Error']['Message']
119
+ reqid = response['Response']['RequestId']
120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
+ end
122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
123
+ raise e
124
+ rescue StandardError => e
125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
+ end
127
+
128
+ # 添加共享单元资源
129
+
130
+ # @param request: Request instance for AddShareUnitResources.
131
+ # @type request: :class:`Tencentcloud::organization::V20210331::AddShareUnitResourcesRequest`
132
+ # @rtype: :class:`Tencentcloud::organization::V20210331::AddShareUnitResourcesResponse`
133
+ def AddShareUnitResources(request)
134
+ body = send_request('AddShareUnitResources', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = AddShareUnitResourcesResponse.new
138
+ model.deserialize(response['Response'])
139
+ model
140
+ else
141
+ code = response['Response']['Error']['Code']
142
+ message = response['Response']['Error']['Message']
143
+ reqid = response['Response']['RequestId']
144
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
145
+ end
146
+ rescue TencentCloud::Common::TencentCloudSDKException => e
147
+ raise e
148
+ rescue StandardError => e
149
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
+ end
151
+
80
152
  # 绑定组织成员和组织管理员子账号的授权关系
81
153
 
82
154
  # @param request: Request instance for BindOrganizationMemberAuthAccount.
@@ -437,6 +509,78 @@ module TencentCloud
437
509
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
438
510
  end
439
511
 
512
+ # 删除共享单元。
513
+
514
+ # @param request: Request instance for DeleteShareUnit.
515
+ # @type request: :class:`Tencentcloud::organization::V20210331::DeleteShareUnitRequest`
516
+ # @rtype: :class:`Tencentcloud::organization::V20210331::DeleteShareUnitResponse`
517
+ def DeleteShareUnit(request)
518
+ body = send_request('DeleteShareUnit', request.serialize)
519
+ response = JSON.parse(body)
520
+ if response['Response'].key?('Error') == false
521
+ model = DeleteShareUnitResponse.new
522
+ model.deserialize(response['Response'])
523
+ model
524
+ else
525
+ code = response['Response']['Error']['Code']
526
+ message = response['Response']['Error']['Message']
527
+ reqid = response['Response']['RequestId']
528
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
529
+ end
530
+ rescue TencentCloud::Common::TencentCloudSDKException => e
531
+ raise e
532
+ rescue StandardError => e
533
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
534
+ end
535
+
536
+ # 删除共享单元成员
537
+
538
+ # @param request: Request instance for DeleteShareUnitMembers.
539
+ # @type request: :class:`Tencentcloud::organization::V20210331::DeleteShareUnitMembersRequest`
540
+ # @rtype: :class:`Tencentcloud::organization::V20210331::DeleteShareUnitMembersResponse`
541
+ def DeleteShareUnitMembers(request)
542
+ body = send_request('DeleteShareUnitMembers', request.serialize)
543
+ response = JSON.parse(body)
544
+ if response['Response'].key?('Error') == false
545
+ model = DeleteShareUnitMembersResponse.new
546
+ model.deserialize(response['Response'])
547
+ model
548
+ else
549
+ code = response['Response']['Error']['Code']
550
+ message = response['Response']['Error']['Message']
551
+ reqid = response['Response']['RequestId']
552
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
553
+ end
554
+ rescue TencentCloud::Common::TencentCloudSDKException => e
555
+ raise e
556
+ rescue StandardError => e
557
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
558
+ end
559
+
560
+ # 删除共享单元资源
561
+
562
+ # @param request: Request instance for DeleteShareUnitResources.
563
+ # @type request: :class:`Tencentcloud::organization::V20210331::DeleteShareUnitResourcesRequest`
564
+ # @rtype: :class:`Tencentcloud::organization::V20210331::DeleteShareUnitResourcesResponse`
565
+ def DeleteShareUnitResources(request)
566
+ body = send_request('DeleteShareUnitResources', request.serialize)
567
+ response = JSON.parse(body)
568
+ if response['Response'].key?('Error') == false
569
+ model = DeleteShareUnitResourcesResponse.new
570
+ model.deserialize(response['Response'])
571
+ model
572
+ else
573
+ code = response['Response']['Error']['Code']
574
+ message = response['Response']['Error']['Message']
575
+ reqid = response['Response']['RequestId']
576
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
577
+ end
578
+ rescue TencentCloud::Common::TencentCloudSDKException => e
579
+ raise e
580
+ rescue StandardError => e
581
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
582
+ end
583
+
440
584
  # 获取企业组织信息
441
585
 
442
586
  # @param request: Request instance for DescribeOrganization.
@@ -701,6 +845,102 @@ module TencentCloud
701
845
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
702
846
  end
703
847
 
848
+ # 获取可共享地域列表
849
+
850
+ # @param request: Request instance for DescribeShareAreas.
851
+ # @type request: :class:`Tencentcloud::organization::V20210331::DescribeShareAreasRequest`
852
+ # @rtype: :class:`Tencentcloud::organization::V20210331::DescribeShareAreasResponse`
853
+ def DescribeShareAreas(request)
854
+ body = send_request('DescribeShareAreas', request.serialize)
855
+ response = JSON.parse(body)
856
+ if response['Response'].key?('Error') == false
857
+ model = DescribeShareAreasResponse.new
858
+ model.deserialize(response['Response'])
859
+ model
860
+ else
861
+ code = response['Response']['Error']['Code']
862
+ message = response['Response']['Error']['Message']
863
+ reqid = response['Response']['RequestId']
864
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
865
+ end
866
+ rescue TencentCloud::Common::TencentCloudSDKException => e
867
+ raise e
868
+ rescue StandardError => e
869
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
870
+ end
871
+
872
+ # 获取共享单元成员列表。
873
+
874
+ # @param request: Request instance for DescribeShareUnitMembers.
875
+ # @type request: :class:`Tencentcloud::organization::V20210331::DescribeShareUnitMembersRequest`
876
+ # @rtype: :class:`Tencentcloud::organization::V20210331::DescribeShareUnitMembersResponse`
877
+ def DescribeShareUnitMembers(request)
878
+ body = send_request('DescribeShareUnitMembers', request.serialize)
879
+ response = JSON.parse(body)
880
+ if response['Response'].key?('Error') == false
881
+ model = DescribeShareUnitMembersResponse.new
882
+ model.deserialize(response['Response'])
883
+ model
884
+ else
885
+ code = response['Response']['Error']['Code']
886
+ message = response['Response']['Error']['Message']
887
+ reqid = response['Response']['RequestId']
888
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
889
+ end
890
+ rescue TencentCloud::Common::TencentCloudSDKException => e
891
+ raise e
892
+ rescue StandardError => e
893
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
894
+ end
895
+
896
+ # 获取共享单元资源列表。
897
+
898
+ # @param request: Request instance for DescribeShareUnitResources.
899
+ # @type request: :class:`Tencentcloud::organization::V20210331::DescribeShareUnitResourcesRequest`
900
+ # @rtype: :class:`Tencentcloud::organization::V20210331::DescribeShareUnitResourcesResponse`
901
+ def DescribeShareUnitResources(request)
902
+ body = send_request('DescribeShareUnitResources', request.serialize)
903
+ response = JSON.parse(body)
904
+ if response['Response'].key?('Error') == false
905
+ model = DescribeShareUnitResourcesResponse.new
906
+ model.deserialize(response['Response'])
907
+ model
908
+ else
909
+ code = response['Response']['Error']['Code']
910
+ message = response['Response']['Error']['Message']
911
+ reqid = response['Response']['RequestId']
912
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
913
+ end
914
+ rescue TencentCloud::Common::TencentCloudSDKException => e
915
+ raise e
916
+ rescue StandardError => e
917
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
918
+ end
919
+
920
+ # 获取共享单元列表。
921
+
922
+ # @param request: Request instance for DescribeShareUnits.
923
+ # @type request: :class:`Tencentcloud::organization::V20210331::DescribeShareUnitsRequest`
924
+ # @rtype: :class:`Tencentcloud::organization::V20210331::DescribeShareUnitsResponse`
925
+ def DescribeShareUnits(request)
926
+ body = send_request('DescribeShareUnits', request.serialize)
927
+ response = JSON.parse(body)
928
+ if response['Response'].key?('Error') == false
929
+ model = DescribeShareUnitsResponse.new
930
+ model.deserialize(response['Response'])
931
+ model
932
+ else
933
+ code = response['Response']['Error']['Code']
934
+ message = response['Response']['Error']['Message']
935
+ reqid = response['Response']['RequestId']
936
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
937
+ end
938
+ rescue TencentCloud::Common::TencentCloudSDKException => e
939
+ raise e
940
+ rescue StandardError => e
941
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
942
+ end
943
+
704
944
  # 获取组织成员访问身份列表
705
945
 
706
946
  # @param request: Request instance for ListOrganizationIdentity.
@@ -869,6 +1109,30 @@ module TencentCloud
869
1109
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
870
1110
  end
871
1111
 
1112
+ # 更新共享单元。
1113
+
1114
+ # @param request: Request instance for UpdateShareUnit.
1115
+ # @type request: :class:`Tencentcloud::organization::V20210331::UpdateShareUnitRequest`
1116
+ # @rtype: :class:`Tencentcloud::organization::V20210331::UpdateShareUnitResponse`
1117
+ def UpdateShareUnit(request)
1118
+ body = send_request('UpdateShareUnit', request.serialize)
1119
+ response = JSON.parse(body)
1120
+ if response['Response'].key?('Error') == false
1121
+ model = UpdateShareUnitResponse.new
1122
+ model.deserialize(response['Response'])
1123
+ model
1124
+ else
1125
+ code = response['Response']['Error']['Code']
1126
+ message = response['Response']['Error']['Message']
1127
+ reqid = response['Response']['RequestId']
1128
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1129
+ end
1130
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1131
+ raise e
1132
+ rescue StandardError => e
1133
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1134
+ end
1135
+
872
1136
 
873
1137
  end
874
1138
  end
@@ -110,6 +110,148 @@ module TencentCloud
110
110
  end
111
111
  end
112
112
 
113
+ # AddShareUnitMembers请求参数结构体
114
+ class AddShareUnitMembersRequest < TencentCloud::Common::AbstractModel
115
+ # @param UnitId: 共享单元ID。
116
+ # @type UnitId: String
117
+ # @param Area: 共享单元地域。
118
+ # @type Area: String
119
+ # @param Members: 共享成员列表。最大10个。
120
+ # @type Members: Array
121
+
122
+ attr_accessor :UnitId, :Area, :Members
123
+
124
+ def initialize(unitid=nil, area=nil, members=nil)
125
+ @UnitId = unitid
126
+ @Area = area
127
+ @Members = members
128
+ end
129
+
130
+ def deserialize(params)
131
+ @UnitId = params['UnitId']
132
+ @Area = params['Area']
133
+ unless params['Members'].nil?
134
+ @Members = []
135
+ params['Members'].each do |i|
136
+ sharemember_tmp = ShareMember.new
137
+ sharemember_tmp.deserialize(i)
138
+ @Members << sharemember_tmp
139
+ end
140
+ end
141
+ end
142
+ end
143
+
144
+ # AddShareUnitMembers返回参数结构体
145
+ class AddShareUnitMembersResponse < TencentCloud::Common::AbstractModel
146
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
147
+ # @type RequestId: String
148
+
149
+ attr_accessor :RequestId
150
+
151
+ def initialize(requestid=nil)
152
+ @RequestId = requestid
153
+ end
154
+
155
+ def deserialize(params)
156
+ @RequestId = params['RequestId']
157
+ end
158
+ end
159
+
160
+ # AddShareUnit请求参数结构体
161
+ class AddShareUnitRequest < TencentCloud::Common::AbstractModel
162
+ # @param Name: 共享单元名称。仅支持大小写字母、数字、-、以及_的组合,3-128个字符。
163
+ # @type Name: String
164
+ # @param Area: 共享单元地域。可通过接口DescribeShareAreas获取支持共享的地域。
165
+ # @type Area: String
166
+ # @param Description: 共享单元描述。最大128个字符。
167
+ # @type Description: String
168
+
169
+ attr_accessor :Name, :Area, :Description
170
+
171
+ def initialize(name=nil, area=nil, description=nil)
172
+ @Name = name
173
+ @Area = area
174
+ @Description = description
175
+ end
176
+
177
+ def deserialize(params)
178
+ @Name = params['Name']
179
+ @Area = params['Area']
180
+ @Description = params['Description']
181
+ end
182
+ end
183
+
184
+ # AddShareUnitResources请求参数结构体
185
+ class AddShareUnitResourcesRequest < TencentCloud::Common::AbstractModel
186
+ # @param UnitId: 共享单元ID。
187
+ # @type UnitId: String
188
+ # @param Area: 共享单元地域。
189
+ # @type Area: String
190
+ # @param Type: 共享资源类型。支持共享的资源类型,请参见[资源共享概述](https://cloud.tencent.com/document/product/850/59489)
191
+ # @type Type: String
192
+ # @param Resources: 共享资源列表。最大10个。
193
+ # @type Resources: Array
194
+
195
+ attr_accessor :UnitId, :Area, :Type, :Resources
196
+
197
+ def initialize(unitid=nil, area=nil, type=nil, resources=nil)
198
+ @UnitId = unitid
199
+ @Area = area
200
+ @Type = type
201
+ @Resources = resources
202
+ end
203
+
204
+ def deserialize(params)
205
+ @UnitId = params['UnitId']
206
+ @Area = params['Area']
207
+ @Type = params['Type']
208
+ unless params['Resources'].nil?
209
+ @Resources = []
210
+ params['Resources'].each do |i|
211
+ productresource_tmp = ProductResource.new
212
+ productresource_tmp.deserialize(i)
213
+ @Resources << productresource_tmp
214
+ end
215
+ end
216
+ end
217
+ end
218
+
219
+ # AddShareUnitResources返回参数结构体
220
+ class AddShareUnitResourcesResponse < TencentCloud::Common::AbstractModel
221
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
222
+ # @type RequestId: String
223
+
224
+ attr_accessor :RequestId
225
+
226
+ def initialize(requestid=nil)
227
+ @RequestId = requestid
228
+ end
229
+
230
+ def deserialize(params)
231
+ @RequestId = params['RequestId']
232
+ end
233
+ end
234
+
235
+ # AddShareUnit返回参数结构体
236
+ class AddShareUnitResponse < TencentCloud::Common::AbstractModel
237
+ # @param UnitId: 共享单元ID。
238
+ # @type UnitId: String
239
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
240
+ # @type RequestId: String
241
+
242
+ attr_accessor :UnitId, :RequestId
243
+
244
+ def initialize(unitid=nil, requestid=nil)
245
+ @UnitId = unitid
246
+ @RequestId = requestid
247
+ end
248
+
249
+ def deserialize(params)
250
+ @UnitId = params['UnitId']
251
+ @RequestId = params['RequestId']
252
+ end
253
+ end
254
+
113
255
  # 互信主体主要信息
114
256
  class AuthNode < TencentCloud::Common::AbstractModel
115
257
  # @param RelationId: 互信主体关系ID
@@ -737,6 +879,136 @@ module TencentCloud
737
879
  end
738
880
  end
739
881
 
882
+ # DeleteShareUnitMembers请求参数结构体
883
+ class DeleteShareUnitMembersRequest < TencentCloud::Common::AbstractModel
884
+ # @param UnitId: 共享单元ID。
885
+ # @type UnitId: String
886
+ # @param Area: 共享单元地域。
887
+ # @type Area: String
888
+ # @param Members: 成员列表。
889
+ # @type Members: Array
890
+
891
+ attr_accessor :UnitId, :Area, :Members
892
+
893
+ def initialize(unitid=nil, area=nil, members=nil)
894
+ @UnitId = unitid
895
+ @Area = area
896
+ @Members = members
897
+ end
898
+
899
+ def deserialize(params)
900
+ @UnitId = params['UnitId']
901
+ @Area = params['Area']
902
+ unless params['Members'].nil?
903
+ @Members = []
904
+ params['Members'].each do |i|
905
+ sharemember_tmp = ShareMember.new
906
+ sharemember_tmp.deserialize(i)
907
+ @Members << sharemember_tmp
908
+ end
909
+ end
910
+ end
911
+ end
912
+
913
+ # DeleteShareUnitMembers返回参数结构体
914
+ class DeleteShareUnitMembersResponse < TencentCloud::Common::AbstractModel
915
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
916
+ # @type RequestId: String
917
+
918
+ attr_accessor :RequestId
919
+
920
+ def initialize(requestid=nil)
921
+ @RequestId = requestid
922
+ end
923
+
924
+ def deserialize(params)
925
+ @RequestId = params['RequestId']
926
+ end
927
+ end
928
+
929
+ # DeleteShareUnit请求参数结构体
930
+ class DeleteShareUnitRequest < TencentCloud::Common::AbstractModel
931
+ # @param UnitId: 共享单元ID。
932
+ # @type UnitId: String
933
+
934
+ attr_accessor :UnitId
935
+
936
+ def initialize(unitid=nil)
937
+ @UnitId = unitid
938
+ end
939
+
940
+ def deserialize(params)
941
+ @UnitId = params['UnitId']
942
+ end
943
+ end
944
+
945
+ # DeleteShareUnitResources请求参数结构体
946
+ class DeleteShareUnitResourcesRequest < TencentCloud::Common::AbstractModel
947
+ # @param UnitId: 共享单元ID。
948
+ # @type UnitId: String
949
+ # @param Area: 共享单元地域。
950
+ # @type Area: String
951
+ # @param Type: 资源类型。支持共享的资源类型。
952
+ # @type Type: String
953
+ # @param Resources: 共享资源列表。最大10个。
954
+ # @type Resources: Array
955
+
956
+ attr_accessor :UnitId, :Area, :Type, :Resources
957
+
958
+ def initialize(unitid=nil, area=nil, type=nil, resources=nil)
959
+ @UnitId = unitid
960
+ @Area = area
961
+ @Type = type
962
+ @Resources = resources
963
+ end
964
+
965
+ def deserialize(params)
966
+ @UnitId = params['UnitId']
967
+ @Area = params['Area']
968
+ @Type = params['Type']
969
+ unless params['Resources'].nil?
970
+ @Resources = []
971
+ params['Resources'].each do |i|
972
+ shareresource_tmp = ShareResource.new
973
+ shareresource_tmp.deserialize(i)
974
+ @Resources << shareresource_tmp
975
+ end
976
+ end
977
+ end
978
+ end
979
+
980
+ # DeleteShareUnitResources返回参数结构体
981
+ class DeleteShareUnitResourcesResponse < TencentCloud::Common::AbstractModel
982
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
983
+ # @type RequestId: String
984
+
985
+ attr_accessor :RequestId
986
+
987
+ def initialize(requestid=nil)
988
+ @RequestId = requestid
989
+ end
990
+
991
+ def deserialize(params)
992
+ @RequestId = params['RequestId']
993
+ end
994
+ end
995
+
996
+ # DeleteShareUnit返回参数结构体
997
+ class DeleteShareUnitResponse < TencentCloud::Common::AbstractModel
998
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
999
+ # @type RequestId: String
1000
+
1001
+ attr_accessor :RequestId
1002
+
1003
+ def initialize(requestid=nil)
1004
+ @RequestId = requestid
1005
+ end
1006
+
1007
+ def deserialize(params)
1008
+ @RequestId = params['RequestId']
1009
+ end
1010
+ end
1011
+
740
1012
  # DescribeOrganizationAuthNode请求参数结构体
741
1013
  class DescribeOrganizationAuthNodeRequest < TencentCloud::Common::AbstractModel
742
1014
  # @param Offset: 偏移量。
@@ -1501,6 +1773,245 @@ module TencentCloud
1501
1773
  end
1502
1774
  end
1503
1775
 
1776
+ # DescribeShareAreas请求参数结构体
1777
+ class DescribeShareAreasRequest < TencentCloud::Common::AbstractModel
1778
+ # @param Lang: 国际站:en,国内站:zh
1779
+ # @type Lang: String
1780
+
1781
+ attr_accessor :Lang
1782
+
1783
+ def initialize(lang=nil)
1784
+ @Lang = lang
1785
+ end
1786
+
1787
+ def deserialize(params)
1788
+ @Lang = params['Lang']
1789
+ end
1790
+ end
1791
+
1792
+ # DescribeShareAreas返回参数结构体
1793
+ class DescribeShareAreasResponse < TencentCloud::Common::AbstractModel
1794
+ # @param Items: 详情
1795
+ # 注意:此字段可能返回 null,表示取不到有效值。
1796
+ # @type Items: Array
1797
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1798
+ # @type RequestId: String
1799
+
1800
+ attr_accessor :Items, :RequestId
1801
+
1802
+ def initialize(items=nil, requestid=nil)
1803
+ @Items = items
1804
+ @RequestId = requestid
1805
+ end
1806
+
1807
+ def deserialize(params)
1808
+ unless params['Items'].nil?
1809
+ @Items = []
1810
+ params['Items'].each do |i|
1811
+ sharearea_tmp = ShareArea.new
1812
+ sharearea_tmp.deserialize(i)
1813
+ @Items << sharearea_tmp
1814
+ end
1815
+ end
1816
+ @RequestId = params['RequestId']
1817
+ end
1818
+ end
1819
+
1820
+ # DescribeShareUnitMembers请求参数结构体
1821
+ class DescribeShareUnitMembersRequest < TencentCloud::Common::AbstractModel
1822
+ # @param UnitId: 共享单元ID。
1823
+ # @type UnitId: String
1824
+ # @param Area: 共享单元地域。
1825
+ # @type Area: String
1826
+ # @param Offset: 偏移量。取值是limit的整数倍,默认值 : 0
1827
+ # @type Offset: Integer
1828
+ # @param Limit: 限制数目。取值范围:1~50。
1829
+ # @type Limit: Integer
1830
+ # @param SearchKey: 搜索关键字。支持成员uin搜索。
1831
+ # @type SearchKey: String
1832
+
1833
+ attr_accessor :UnitId, :Area, :Offset, :Limit, :SearchKey
1834
+
1835
+ def initialize(unitid=nil, area=nil, offset=nil, limit=nil, searchkey=nil)
1836
+ @UnitId = unitid
1837
+ @Area = area
1838
+ @Offset = offset
1839
+ @Limit = limit
1840
+ @SearchKey = searchkey
1841
+ end
1842
+
1843
+ def deserialize(params)
1844
+ @UnitId = params['UnitId']
1845
+ @Area = params['Area']
1846
+ @Offset = params['Offset']
1847
+ @Limit = params['Limit']
1848
+ @SearchKey = params['SearchKey']
1849
+ end
1850
+ end
1851
+
1852
+ # DescribeShareUnitMembers返回参数结构体
1853
+ class DescribeShareUnitMembersResponse < TencentCloud::Common::AbstractModel
1854
+ # @param Total: 总数目。
1855
+ # 注意:此字段可能返回 null,表示取不到有效值。
1856
+ # @type Total: Integer
1857
+ # @param Items: 共享单元成员列表。
1858
+ # 注意:此字段可能返回 null,表示取不到有效值。
1859
+ # @type Items: Array
1860
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1861
+ # @type RequestId: String
1862
+
1863
+ attr_accessor :Total, :Items, :RequestId
1864
+
1865
+ def initialize(total=nil, items=nil, requestid=nil)
1866
+ @Total = total
1867
+ @Items = items
1868
+ @RequestId = requestid
1869
+ end
1870
+
1871
+ def deserialize(params)
1872
+ @Total = params['Total']
1873
+ unless params['Items'].nil?
1874
+ @Items = []
1875
+ params['Items'].each do |i|
1876
+ shareunitmember_tmp = ShareUnitMember.new
1877
+ shareunitmember_tmp.deserialize(i)
1878
+ @Items << shareunitmember_tmp
1879
+ end
1880
+ end
1881
+ @RequestId = params['RequestId']
1882
+ end
1883
+ end
1884
+
1885
+ # DescribeShareUnitResources请求参数结构体
1886
+ class DescribeShareUnitResourcesRequest < TencentCloud::Common::AbstractModel
1887
+ # @param UnitId: 共享单元ID。
1888
+ # @type UnitId: String
1889
+ # @param Area: 共享单元地域。
1890
+ # @type Area: String
1891
+ # @param Offset: 偏移量。取值是limit的整数倍,默认值 : 0
1892
+ # @type Offset: Integer
1893
+ # @param Limit: 限制数目。取值范围:1~50。
1894
+ # @type Limit: Integer
1895
+ # @param SearchKey: 搜索关键字。支持产品资源ID搜索。
1896
+ # @type SearchKey: String
1897
+ # @param Type: 共享资源类型。
1898
+ # @type Type: String
1899
+
1900
+ attr_accessor :UnitId, :Area, :Offset, :Limit, :SearchKey, :Type
1901
+
1902
+ def initialize(unitid=nil, area=nil, offset=nil, limit=nil, searchkey=nil, type=nil)
1903
+ @UnitId = unitid
1904
+ @Area = area
1905
+ @Offset = offset
1906
+ @Limit = limit
1907
+ @SearchKey = searchkey
1908
+ @Type = type
1909
+ end
1910
+
1911
+ def deserialize(params)
1912
+ @UnitId = params['UnitId']
1913
+ @Area = params['Area']
1914
+ @Offset = params['Offset']
1915
+ @Limit = params['Limit']
1916
+ @SearchKey = params['SearchKey']
1917
+ @Type = params['Type']
1918
+ end
1919
+ end
1920
+
1921
+ # DescribeShareUnitResources返回参数结构体
1922
+ class DescribeShareUnitResourcesResponse < TencentCloud::Common::AbstractModel
1923
+ # @param Total: 总数目。
1924
+ # 注意:此字段可能返回 null,表示取不到有效值。
1925
+ # @type Total: Integer
1926
+ # @param Items: 共享单元资源列表。
1927
+ # 注意:此字段可能返回 null,表示取不到有效值。
1928
+ # @type Items: Array
1929
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1930
+ # @type RequestId: String
1931
+
1932
+ attr_accessor :Total, :Items, :RequestId
1933
+
1934
+ def initialize(total=nil, items=nil, requestid=nil)
1935
+ @Total = total
1936
+ @Items = items
1937
+ @RequestId = requestid
1938
+ end
1939
+
1940
+ def deserialize(params)
1941
+ @Total = params['Total']
1942
+ unless params['Items'].nil?
1943
+ @Items = []
1944
+ params['Items'].each do |i|
1945
+ shareunitresource_tmp = ShareUnitResource.new
1946
+ shareunitresource_tmp.deserialize(i)
1947
+ @Items << shareunitresource_tmp
1948
+ end
1949
+ end
1950
+ @RequestId = params['RequestId']
1951
+ end
1952
+ end
1953
+
1954
+ # DescribeShareUnits请求参数结构体
1955
+ class DescribeShareUnitsRequest < TencentCloud::Common::AbstractModel
1956
+ # @param Area: 共享单元地域。可通过接口DescribeShareAreas获取支持共享的地域。
1957
+ # @type Area: String
1958
+ # @param Offset: 偏移量。取值是limit的整数倍。默认值 : 0。
1959
+ # @type Offset: Integer
1960
+ # @param Limit: 限制数目。取值范围:1~50。
1961
+ # @type Limit: Integer
1962
+ # @param SearchKey: 搜索关键字。支持UnitId和Name搜索。
1963
+ # @type SearchKey: String
1964
+
1965
+ attr_accessor :Area, :Offset, :Limit, :SearchKey
1966
+
1967
+ def initialize(area=nil, offset=nil, limit=nil, searchkey=nil)
1968
+ @Area = area
1969
+ @Offset = offset
1970
+ @Limit = limit
1971
+ @SearchKey = searchkey
1972
+ end
1973
+
1974
+ def deserialize(params)
1975
+ @Area = params['Area']
1976
+ @Offset = params['Offset']
1977
+ @Limit = params['Limit']
1978
+ @SearchKey = params['SearchKey']
1979
+ end
1980
+ end
1981
+
1982
+ # DescribeShareUnits返回参数结构体
1983
+ class DescribeShareUnitsResponse < TencentCloud::Common::AbstractModel
1984
+ # @param Total: 总数目。
1985
+ # 注意:此字段可能返回 null,表示取不到有效值。
1986
+ # @type Total: Integer
1987
+ # @param Items: 共享单元列表。
1988
+ # 注意:此字段可能返回 null,表示取不到有效值。
1989
+ # @type Items: Array
1990
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1991
+ # @type RequestId: String
1992
+
1993
+ attr_accessor :Total, :Items, :RequestId
1994
+
1995
+ def initialize(total=nil, items=nil, requestid=nil)
1996
+ @Total = total
1997
+ @Items = items
1998
+ @RequestId = requestid
1999
+ end
2000
+
2001
+ def deserialize(params)
2002
+ @Total = params['Total']
2003
+ unless params['Items'].nil?
2004
+ @Items = []
2005
+ params['Items'].each do |i|
2006
+ managershareunit_tmp = ManagerShareUnit.new
2007
+ managershareunit_tmp.deserialize(i)
2008
+ @Items << managershareunit_tmp
2009
+ end
2010
+ end
2011
+ @RequestId = params['RequestId']
2012
+ end
2013
+ end
2014
+
1504
2015
  # 组织身份策略
1505
2016
  class IdentityPolicy < TencentCloud::Common::AbstractModel
1506
2017
  # @param PolicyId: CAM预设策略ID。PolicyType 为预设策略时有效且必选
@@ -1596,6 +2107,58 @@ module TencentCloud
1596
2107
  end
1597
2108
  end
1598
2109
 
2110
+ # 我的共享单元列表详情
2111
+ class ManagerShareUnit < TencentCloud::Common::AbstractModel
2112
+ # @param UnitId: 共享单元ID。
2113
+ # @type UnitId: String
2114
+ # @param Name: 共享单元名称。
2115
+ # @type Name: String
2116
+ # @param Uin: 共享单元管理员Uin。
2117
+ # @type Uin: Integer
2118
+ # @param OwnerUin: 共享单元管理员OwnerUin。
2119
+ # @type OwnerUin: Integer
2120
+ # @param Area: 共享单元地域。
2121
+ # @type Area: String
2122
+ # @param Description: 描述。
2123
+ # 注意:此字段可能返回 null,表示取不到有效值。
2124
+ # @type Description: String
2125
+ # @param CreateTime: 创建时间。
2126
+ # 注意:此字段可能返回 null,表示取不到有效值。
2127
+ # @type CreateTime: String
2128
+ # @param ShareResourceNum: 共享单元资源数。
2129
+ # 注意:此字段可能返回 null,表示取不到有效值。
2130
+ # @type ShareResourceNum: Integer
2131
+ # @param ShareMemberNum: 共享单元成员数。
2132
+ # 注意:此字段可能返回 null,表示取不到有效值。
2133
+ # @type ShareMemberNum: Integer
2134
+
2135
+ attr_accessor :UnitId, :Name, :Uin, :OwnerUin, :Area, :Description, :CreateTime, :ShareResourceNum, :ShareMemberNum
2136
+
2137
+ def initialize(unitid=nil, name=nil, uin=nil, owneruin=nil, area=nil, description=nil, createtime=nil, shareresourcenum=nil, sharemembernum=nil)
2138
+ @UnitId = unitid
2139
+ @Name = name
2140
+ @Uin = uin
2141
+ @OwnerUin = owneruin
2142
+ @Area = area
2143
+ @Description = description
2144
+ @CreateTime = createtime
2145
+ @ShareResourceNum = shareresourcenum
2146
+ @ShareMemberNum = sharemembernum
2147
+ end
2148
+
2149
+ def deserialize(params)
2150
+ @UnitId = params['UnitId']
2151
+ @Name = params['Name']
2152
+ @Uin = params['Uin']
2153
+ @OwnerUin = params['OwnerUin']
2154
+ @Area = params['Area']
2155
+ @Description = params['Description']
2156
+ @CreateTime = params['CreateTime']
2157
+ @ShareResourceNum = params['ShareResourceNum']
2158
+ @ShareMemberNum = params['ShareMemberNum']
2159
+ end
2160
+ end
2161
+
1599
2162
  # 成员管理身份
1600
2163
  class MemberIdentity < TencentCloud::Common::AbstractModel
1601
2164
  # @param IdentityId: 身份ID。
@@ -2165,6 +2728,29 @@ module TencentCloud
2165
2728
  end
2166
2729
  end
2167
2730
 
2731
+ # 产品资源
2732
+ class ProductResource < TencentCloud::Common::AbstractModel
2733
+ # @param ProductResourceId: 产品资源ID。
2734
+ # @type ProductResourceId: String
2735
+ # @param ResourceGrantLast: 资源六段式最后一节
2736
+ # @type ResourceGrantLast: String
2737
+
2738
+ attr_accessor :ProductResourceId, :ResourceGrantLast
2739
+ extend Gem::Deprecate
2740
+ deprecate :ResourceGrantLast, :none, 2024, 1
2741
+ deprecate :ResourceGrantLast=, :none, 2024, 1
2742
+
2743
+ def initialize(productresourceid=nil, resourcegrantlast=nil)
2744
+ @ProductResourceId = productresourceid
2745
+ @ResourceGrantLast = resourcegrantlast
2746
+ end
2747
+
2748
+ def deserialize(params)
2749
+ @ProductResourceId = params['ProductResourceId']
2750
+ @ResourceGrantLast = params['ResourceGrantLast']
2751
+ end
2752
+ end
2753
+
2168
2754
  # QuitOrganization请求参数结构体
2169
2755
  class QuitOrganizationRequest < TencentCloud::Common::AbstractModel
2170
2756
  # @param OrgId: 企业组织ID
@@ -2197,6 +2783,135 @@ module TencentCloud
2197
2783
  end
2198
2784
  end
2199
2785
 
2786
+ # 共享地域
2787
+ class ShareArea < TencentCloud::Common::AbstractModel
2788
+ # @param Name: 地域名称。
2789
+ # @type Name: String
2790
+ # @param Area: 地域标识。
2791
+ # @type Area: String
2792
+ # @param AreaId: 地域ID。
2793
+ # @type AreaId: Integer
2794
+
2795
+ attr_accessor :Name, :Area, :AreaId
2796
+
2797
+ def initialize(name=nil, area=nil, areaid=nil)
2798
+ @Name = name
2799
+ @Area = area
2800
+ @AreaId = areaid
2801
+ end
2802
+
2803
+ def deserialize(params)
2804
+ @Name = params['Name']
2805
+ @Area = params['Area']
2806
+ @AreaId = params['AreaId']
2807
+ end
2808
+ end
2809
+
2810
+ # 共享成员信息
2811
+ class ShareMember < TencentCloud::Common::AbstractModel
2812
+ # @param ShareMemberUin: 共享成员Uin。
2813
+ # @type ShareMemberUin: Integer
2814
+
2815
+ attr_accessor :ShareMemberUin
2816
+
2817
+ def initialize(sharememberuin=nil)
2818
+ @ShareMemberUin = sharememberuin
2819
+ end
2820
+
2821
+ def deserialize(params)
2822
+ @ShareMemberUin = params['ShareMemberUin']
2823
+ end
2824
+ end
2825
+
2826
+ # 共享资源
2827
+ class ShareResource < TencentCloud::Common::AbstractModel
2828
+ # @param ResourceId: 共享资源ID。
2829
+ # @type ResourceId: String
2830
+ # @param ProductResourceId: 产品资源ID。
2831
+ # 注意:此字段可能返回 null,表示取不到有效值。
2832
+ # @type ProductResourceId: String
2833
+
2834
+ attr_accessor :ResourceId, :ProductResourceId
2835
+ extend Gem::Deprecate
2836
+ deprecate :ResourceId, :none, 2024, 1
2837
+ deprecate :ResourceId=, :none, 2024, 1
2838
+
2839
+ def initialize(resourceid=nil, productresourceid=nil)
2840
+ @ResourceId = resourceid
2841
+ @ProductResourceId = productresourceid
2842
+ end
2843
+
2844
+ def deserialize(params)
2845
+ @ResourceId = params['ResourceId']
2846
+ @ProductResourceId = params['ProductResourceId']
2847
+ end
2848
+ end
2849
+
2850
+ # 共享单元成员
2851
+ class ShareUnitMember < TencentCloud::Common::AbstractModel
2852
+ # @param ShareMemberUin: 共享成员Uin。
2853
+ # @type ShareMemberUin: Integer
2854
+ # @param CreateTime: 创建时间。
2855
+ # 注意:此字段可能返回 null,表示取不到有效值。
2856
+ # @type CreateTime: String
2857
+
2858
+ attr_accessor :ShareMemberUin, :CreateTime
2859
+
2860
+ def initialize(sharememberuin=nil, createtime=nil)
2861
+ @ShareMemberUin = sharememberuin
2862
+ @CreateTime = createtime
2863
+ end
2864
+
2865
+ def deserialize(params)
2866
+ @ShareMemberUin = params['ShareMemberUin']
2867
+ @CreateTime = params['CreateTime']
2868
+ end
2869
+ end
2870
+
2871
+ # 共享单元资源
2872
+ class ShareUnitResource < TencentCloud::Common::AbstractModel
2873
+ # @param ResourceId: 共享资源ID。
2874
+ # @type ResourceId: String
2875
+ # @param Type: 共享资源类型。
2876
+ # @type Type: String
2877
+ # @param CreateTime: 创建时间。
2878
+ # 注意:此字段可能返回 null,表示取不到有效值。
2879
+ # @type CreateTime: String
2880
+ # @param ProductResourceId: 产品资源ID。
2881
+ # @type ProductResourceId: String
2882
+ # @param SharedMemberNum: 共享单元成员数。
2883
+ # 注意:此字段可能返回 null,表示取不到有效值。
2884
+ # @type SharedMemberNum: Integer
2885
+ # @param SharedMemberUseNum: 使用中共享单元成员数。
2886
+ # 注意:此字段可能返回 null,表示取不到有效值。
2887
+ # @type SharedMemberUseNum: Integer
2888
+ # @param ShareManagerUin: 共享管理员OwnerUin。
2889
+ # 注意:此字段可能返回 null,表示取不到有效值。
2890
+ # @type ShareManagerUin: Integer
2891
+
2892
+ attr_accessor :ResourceId, :Type, :CreateTime, :ProductResourceId, :SharedMemberNum, :SharedMemberUseNum, :ShareManagerUin
2893
+
2894
+ def initialize(resourceid=nil, type=nil, createtime=nil, productresourceid=nil, sharedmembernum=nil, sharedmemberusenum=nil, sharemanageruin=nil)
2895
+ @ResourceId = resourceid
2896
+ @Type = type
2897
+ @CreateTime = createtime
2898
+ @ProductResourceId = productresourceid
2899
+ @SharedMemberNum = sharedmembernum
2900
+ @SharedMemberUseNum = sharedmemberusenum
2901
+ @ShareManagerUin = sharemanageruin
2902
+ end
2903
+
2904
+ def deserialize(params)
2905
+ @ResourceId = params['ResourceId']
2906
+ @Type = params['Type']
2907
+ @CreateTime = params['CreateTime']
2908
+ @ProductResourceId = params['ProductResourceId']
2909
+ @SharedMemberNum = params['SharedMemberNum']
2910
+ @SharedMemberUseNum = params['SharedMemberUseNum']
2911
+ @ShareManagerUin = params['ShareManagerUin']
2912
+ end
2913
+ end
2914
+
2200
2915
  # UpdateOrganizationIdentity请求参数结构体
2201
2916
  class UpdateOrganizationIdentityRequest < TencentCloud::Common::AbstractModel
2202
2917
  # @param IdentityId: 身份ID
@@ -2389,6 +3104,46 @@ module TencentCloud
2389
3104
  end
2390
3105
  end
2391
3106
 
3107
+ # UpdateShareUnit请求参数结构体
3108
+ class UpdateShareUnitRequest < TencentCloud::Common::AbstractModel
3109
+ # @param UnitId: 共享单元ID。
3110
+ # @type UnitId: String
3111
+ # @param Name: 共享单元名称。仅支持大小写字母、数字、-、以及_的组合,3-128个字符。
3112
+ # @type Name: String
3113
+ # @param Description: 共享单元描述。最大128个字符。
3114
+ # @type Description: String
3115
+
3116
+ attr_accessor :UnitId, :Name, :Description
3117
+
3118
+ def initialize(unitid=nil, name=nil, description=nil)
3119
+ @UnitId = unitid
3120
+ @Name = name
3121
+ @Description = description
3122
+ end
3123
+
3124
+ def deserialize(params)
3125
+ @UnitId = params['UnitId']
3126
+ @Name = params['Name']
3127
+ @Description = params['Description']
3128
+ end
3129
+ end
3130
+
3131
+ # UpdateShareUnit返回参数结构体
3132
+ class UpdateShareUnitResponse < TencentCloud::Common::AbstractModel
3133
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3134
+ # @type RequestId: String
3135
+
3136
+ attr_accessor :RequestId
3137
+
3138
+ def initialize(requestid=nil)
3139
+ @RequestId = requestid
3140
+ end
3141
+
3142
+ def deserialize(params)
3143
+ @RequestId = params['RequestId']
3144
+ end
3145
+ end
3146
+
2392
3147
  end
2393
3148
  end
2394
3149
  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: 3.0.750
4
+ version: 3.0.751
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-01-15 00:00:00.000000000 Z
11
+ date: 2024-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common