tencentcloud-sdk-organization 3.0.770 → 3.0.772

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: 044e40238e78706086505ab385abb36114674e9a
4
- data.tar.gz: d4f126d063dd4f6647b83f89cde9549d6c3f8bd0
3
+ metadata.gz: f8a05b1f3d0fcb73bef6a9ebb1d43261d529a28d
4
+ data.tar.gz: 9344d44aac28fe8bea2c40ae4724a9d081df18b8
5
5
  SHA512:
6
- metadata.gz: bf5b8da583e77237e0985fb142cdd1672d443965394b3768f6ddcae0b898587fe780c215004d4118e20f6ee8b889f41ba4895531eddfd0df1cad9896cde136f4
7
- data.tar.gz: 92121e07182b6485979894e5e98c556121124d0420772ed6d994f760b3afa467cb41dae797369fc369f83135756a5ede03c885c20af45f8096f8abd0e2cfac06
6
+ metadata.gz: 7f163e4c6bd02964cb1987c98be1fd505c249ae15534e4ceff4a870ef16c9480d6d5fb85692c7c63d451438ac6724c55a36805d85d2eaaa0eb3e62c208077207
7
+ data.tar.gz: c27e27b8867de828353c816a2ae9dfcd46a8eccdeefabc989de0b061e0e367629cd2b71bd33a5444a180222b944eb7e1ff939cac3c81bf7491058b291783dd19
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.770
1
+ 3.0.772
@@ -197,6 +197,30 @@ module TencentCloud
197
197
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
198
  end
199
199
 
200
+ # 成员账号删除检查
201
+
202
+ # @param request: Request instance for CheckAccountDelete.
203
+ # @type request: :class:`Tencentcloud::organization::V20210331::CheckAccountDeleteRequest`
204
+ # @rtype: :class:`Tencentcloud::organization::V20210331::CheckAccountDeleteResponse`
205
+ def CheckAccountDelete(request)
206
+ body = send_request('CheckAccountDelete', request.serialize)
207
+ response = JSON.parse(body)
208
+ if response['Response'].key?('Error') == false
209
+ model = CheckAccountDeleteResponse.new
210
+ model.deserialize(response['Response'])
211
+ model
212
+ else
213
+ code = response['Response']['Error']['Code']
214
+ message = response['Response']['Error']['Message']
215
+ reqid = response['Response']['RequestId']
216
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
217
+ end
218
+ rescue TencentCloud::Common::TencentCloudSDKException => e
219
+ raise e
220
+ rescue StandardError => e
221
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
+ end
223
+
200
224
  # 创建企业组织
201
225
 
202
226
  # @param request: Request instance for CreateOrganization.
@@ -362,6 +362,49 @@ module TencentCloud
362
362
  end
363
363
  end
364
364
 
365
+ # CheckAccountDelete请求参数结构体
366
+ class CheckAccountDeleteRequest < TencentCloud::Common::AbstractModel
367
+ # @param MemberUin: 成员uin。
368
+ # @type MemberUin: Integer
369
+
370
+ attr_accessor :MemberUin
371
+
372
+ def initialize(memberuin=nil)
373
+ @MemberUin = memberuin
374
+ end
375
+
376
+ def deserialize(params)
377
+ @MemberUin = params['MemberUin']
378
+ end
379
+ end
380
+
381
+ # CheckAccountDelete返回参数结构体
382
+ class CheckAccountDeleteResponse < TencentCloud::Common::AbstractModel
383
+ # @param AllowDelete: 成员是否允许删除。 true-是、false-否
384
+ # @type AllowDelete: Boolean
385
+ # @param NotAllowReason: 不允许删除原因。
386
+ # @type NotAllowReason: :class:`Tencentcloud::Organization.v20210331.models.NotAllowReason`
387
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
388
+ # @type RequestId: String
389
+
390
+ attr_accessor :AllowDelete, :NotAllowReason, :RequestId
391
+
392
+ def initialize(allowdelete=nil, notallowreason=nil, requestid=nil)
393
+ @AllowDelete = allowdelete
394
+ @NotAllowReason = notallowreason
395
+ @RequestId = requestid
396
+ end
397
+
398
+ def deserialize(params)
399
+ @AllowDelete = params['AllowDelete']
400
+ unless params['NotAllowReason'].nil?
401
+ @NotAllowReason = NotAllowReason.new
402
+ @NotAllowReason.deserialize(params['NotAllowReason'])
403
+ end
404
+ @RequestId = params['RequestId']
405
+ end
406
+ end
407
+
365
408
  # CreateOrganizationIdentity请求参数结构体
366
409
  class CreateOrganizationIdentityRequest < TencentCloud::Common::AbstractModel
367
410
  # @param IdentityAliasName: 身份名称
@@ -2239,6 +2282,63 @@ module TencentCloud
2239
2282
  end
2240
2283
  end
2241
2284
 
2285
+ # 不允许删除的原因。
2286
+ class NotAllowReason < TencentCloud::Common::AbstractModel
2287
+ # @param IsCreateMember: 是否创建的成员。true-是、false-否;成员不是创建的成员不允许删除
2288
+ # 注意:此字段可能返回 null,表示取不到有效值。
2289
+ # @type IsCreateMember: Boolean
2290
+ # @param DeletionPermission: 成员删除许可。true-开启、false-关闭;成员删除许可关闭时不允许删除
2291
+ # 注意:此字段可能返回 null,表示取不到有效值。
2292
+ # @type DeletionPermission: Boolean
2293
+ # @param IsAssignManager: 是否可信服务委派管理员。true-是、false-否;成员是可信服务委派管理员不允许删除
2294
+ # 注意:此字段可能返回 null,表示取不到有效值。
2295
+ # @type IsAssignManager: Boolean
2296
+ # @param IsAuthManager: 是否主体管理员。true-是、false-否;成员是主体管理员不允许删除
2297
+ # 注意:此字段可能返回 null,表示取不到有效值。
2298
+ # @type IsAuthManager: Boolean
2299
+ # @param IsShareManager: 是否共享资源管理员。true-是、false-否;成员是共享资源管理员不允许删除
2300
+ # 注意:此字段可能返回 null,表示取不到有效值。
2301
+ # @type IsShareManager: Boolean
2302
+ # @param OperateProcess: 成员是否设置了操作审批。true-是、false-否;成员设置了操作审批时不允许删除
2303
+ # 注意:此字段可能返回 null,表示取不到有效值。
2304
+ # @type OperateProcess: Boolean
2305
+ # @param BillingPermission: 是否允许解除成员财务权限。true-是、false-否;成员不能解除财务权限时不允许删除
2306
+ # 注意:此字段可能返回 null,表示取不到有效值。
2307
+ # @type BillingPermission: Boolean
2308
+ # @param ExistResources: 存在的资源列表。账号存在资源时不允许删除
2309
+ # 注意:此字段可能返回 null,表示取不到有效值。
2310
+ # @type ExistResources: Array
2311
+ # @param DetectFailedResources: 检测失败的资源列表。账号有资源检测失败时不允许删除。
2312
+ # 注意:此字段可能返回 null,表示取不到有效值。
2313
+ # @type DetectFailedResources: Array
2314
+
2315
+ attr_accessor :IsCreateMember, :DeletionPermission, :IsAssignManager, :IsAuthManager, :IsShareManager, :OperateProcess, :BillingPermission, :ExistResources, :DetectFailedResources
2316
+
2317
+ def initialize(iscreatemember=nil, deletionpermission=nil, isassignmanager=nil, isauthmanager=nil, issharemanager=nil, operateprocess=nil, billingpermission=nil, existresources=nil, detectfailedresources=nil)
2318
+ @IsCreateMember = iscreatemember
2319
+ @DeletionPermission = deletionpermission
2320
+ @IsAssignManager = isassignmanager
2321
+ @IsAuthManager = isauthmanager
2322
+ @IsShareManager = issharemanager
2323
+ @OperateProcess = operateprocess
2324
+ @BillingPermission = billingpermission
2325
+ @ExistResources = existresources
2326
+ @DetectFailedResources = detectfailedresources
2327
+ end
2328
+
2329
+ def deserialize(params)
2330
+ @IsCreateMember = params['IsCreateMember']
2331
+ @DeletionPermission = params['DeletionPermission']
2332
+ @IsAssignManager = params['IsAssignManager']
2333
+ @IsAuthManager = params['IsAuthManager']
2334
+ @IsShareManager = params['IsShareManager']
2335
+ @OperateProcess = params['OperateProcess']
2336
+ @BillingPermission = params['BillingPermission']
2337
+ @ExistResources = params['ExistResources']
2338
+ @DetectFailedResources = params['DetectFailedResources']
2339
+ end
2340
+ end
2341
+
2242
2342
  # 按月获取组织财务信息
2243
2343
  class OrgFinancialByMonth < TencentCloud::Common::AbstractModel
2244
2344
  # @param Id: 记录ID。
@@ -2737,8 +2837,8 @@ module TencentCloud
2737
2837
 
2738
2838
  attr_accessor :ProductResourceId, :ResourceGrantLast
2739
2839
  extend Gem::Deprecate
2740
- deprecate :ResourceGrantLast, :none, 2024, 1
2741
- deprecate :ResourceGrantLast=, :none, 2024, 1
2840
+ deprecate :ResourceGrantLast, :none, 2024, 2
2841
+ deprecate :ResourceGrantLast=, :none, 2024, 2
2742
2842
 
2743
2843
  def initialize(productresourceid=nil, resourcegrantlast=nil)
2744
2844
  @ProductResourceId = productresourceid
@@ -2833,8 +2933,8 @@ module TencentCloud
2833
2933
 
2834
2934
  attr_accessor :ResourceId, :ProductResourceId
2835
2935
  extend Gem::Deprecate
2836
- deprecate :ResourceId, :none, 2024, 1
2837
- deprecate :ResourceId=, :none, 2024, 1
2936
+ deprecate :ResourceId, :none, 2024, 2
2937
+ deprecate :ResourceId=, :none, 2024, 2
2838
2938
 
2839
2939
  def initialize(resourceid=nil, productresourceid=nil)
2840
2940
  @ResourceId = resourceid
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.770
4
+ version: 3.0.772
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-02-27 00:00:00.000000000 Z
11
+ date: 2024-02-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common