tencentcloud-sdk-organization 3.0.660 → 3.0.662

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: 84bbd2e609b346bc441b4a74f7079aeca11467b8
4
- data.tar.gz: f589694f0f2d9ac4f4c1378d749904016e07b95a
3
+ metadata.gz: 3cefb157167337171122a86e3c1ea8ab4ad10239
4
+ data.tar.gz: e23a0cb9ddf8408d9b188da3032db05f75bc15e2
5
5
  SHA512:
6
- metadata.gz: 0fbced8fad978d3d29c69a0295769dc77a9214e5757447e958863b3ef50cd23a006b39792e2e8583f6dc091d03e7b851f3db4ae4b3f88987505b84ca75d8eaed
7
- data.tar.gz: c0f73dcb4033e02396fad01c60e918c07ac8e27120dcbff27e9b736f5ec6109d546c6f8e6c6c9fa7c861a2d3b9c23903cb8ba32c621826aee7a87686b2194c70
6
+ metadata.gz: 17024d6b3d674d4ba1e82d941c1ce851aed48ce09955986a9c71b513082fc30a94d9125016aa89f5824a380e4250bfb185da6e3eb9547c4a054bafa47db89a2a
7
+ data.tar.gz: 9607f04b4551dbfe6fb3edb35565c49720541bd4f772aeb5886cca76f79c84a3f3ae4024bdc046058d06a3e3a224e137f7d1dc6d623c11970e22cf9845054647
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.660
1
+ 3.0.662
@@ -125,6 +125,30 @@ module TencentCloud
125
125
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
126
  end
127
127
 
128
+ # 创建企业组织
129
+
130
+ # @param request: Request instance for CreateOrganization.
131
+ # @type request: :class:`Tencentcloud::organization::V20210331::CreateOrganizationRequest`
132
+ # @rtype: :class:`Tencentcloud::organization::V20210331::CreateOrganizationResponse`
133
+ def CreateOrganization(request)
134
+ body = send_request('CreateOrganization', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = CreateOrganizationResponse.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
+
128
152
  # 创建组织成员
129
153
 
130
154
  # @param request: Request instance for CreateOrganizationMember.
@@ -197,6 +221,30 @@ module TencentCloud
197
221
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
222
  end
199
223
 
224
+ # 删除企业组织
225
+
226
+ # @param request: Request instance for DeleteOrganization.
227
+ # @type request: :class:`Tencentcloud::organization::V20210331::DeleteOrganizationRequest`
228
+ # @rtype: :class:`Tencentcloud::organization::V20210331::DeleteOrganizationResponse`
229
+ def DeleteOrganization(request)
230
+ body = send_request('DeleteOrganization', request.serialize)
231
+ response = JSON.parse(body)
232
+ if response['Response'].key?('Error') == false
233
+ model = DeleteOrganizationResponse.new
234
+ model.deserialize(response['Response'])
235
+ model
236
+ else
237
+ code = response['Response']['Error']['Code']
238
+ message = response['Response']['Error']['Message']
239
+ reqid = response['Response']['RequestId']
240
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
241
+ end
242
+ rescue TencentCloud::Common::TencentCloudSDKException => e
243
+ raise e
244
+ rescue StandardError => e
245
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
+ end
247
+
200
248
  # 删除组织成员访问授权
201
249
 
202
250
  # @param request: Request instance for DeleteOrganizationMemberAuthIdentity.
@@ -373,6 +373,41 @@ module TencentCloud
373
373
  end
374
374
  end
375
375
 
376
+ # CreateOrganization请求参数结构体
377
+ class CreateOrganizationRequest < TencentCloud::Common::AbstractModel
378
+
379
+
380
+ def initialize()
381
+ end
382
+
383
+ def deserialize(params)
384
+ end
385
+ end
386
+
387
+ # CreateOrganization返回参数结构体
388
+ class CreateOrganizationResponse < TencentCloud::Common::AbstractModel
389
+ # @param OrgId: 企业组织ID
390
+ # @type OrgId: Integer
391
+ # @param NickName: 创建者昵称
392
+ # @type NickName: String
393
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
394
+ # @type RequestId: String
395
+
396
+ attr_accessor :OrgId, :NickName, :RequestId
397
+
398
+ def initialize(orgid=nil, nickname=nil, requestid=nil)
399
+ @OrgId = orgid
400
+ @NickName = nickname
401
+ @RequestId = requestid
402
+ end
403
+
404
+ def deserialize(params)
405
+ @OrgId = params['OrgId']
406
+ @NickName = params['NickName']
407
+ @RequestId = params['RequestId']
408
+ end
409
+ end
410
+
376
411
  # DeleteOrganizationMemberAuthIdentity请求参数结构体
377
412
  class DeleteOrganizationMemberAuthIdentityRequest < TencentCloud::Common::AbstractModel
378
413
  # @param MemberUin: 成员uin。
@@ -505,6 +540,33 @@ module TencentCloud
505
540
  end
506
541
  end
507
542
 
543
+ # DeleteOrganization请求参数结构体
544
+ class DeleteOrganizationRequest < TencentCloud::Common::AbstractModel
545
+
546
+
547
+ def initialize()
548
+ end
549
+
550
+ def deserialize(params)
551
+ end
552
+ end
553
+
554
+ # DeleteOrganization返回参数结构体
555
+ class DeleteOrganizationResponse < TencentCloud::Common::AbstractModel
556
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
557
+ # @type RequestId: String
558
+
559
+ attr_accessor :RequestId
560
+
561
+ def initialize(requestid=nil)
562
+ @RequestId = requestid
563
+ end
564
+
565
+ def deserialize(params)
566
+ @RequestId = params['RequestId']
567
+ end
568
+ end
569
+
508
570
  # DescribeOrganizationAuthNode请求参数结构体
509
571
  class DescribeOrganizationAuthNodeRequest < TencentCloud::Common::AbstractModel
510
572
  # @param Offset: 偏移量。
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.660
4
+ version: 3.0.662
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-09-15 00:00:00.000000000 Z
11
+ date: 2023-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common