tencentcloud-sdk-organization 3.0.452 → 3.0.453

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: 235207cacf3bcb6c5cfb8121be59fd5622af6612
4
- data.tar.gz: 4e4cac6b95620b9e2aea5437ad67c579f1839aa2
3
+ metadata.gz: 4f6af9d102c27e3601b79cea66f41f0f48c3a20a
4
+ data.tar.gz: fa4e1217db36a4dd3cc0e58fd7a5c64a852858a2
5
5
  SHA512:
6
- metadata.gz: c7c8d14c4b203d39970b09b0d141072f24a469daba33662bbb35e89de2e10bdb8481f2dc8b46a458adf5275e72fb7d811eaee644460db964eea94de7ae39fa89
7
- data.tar.gz: a922c9022c3d580a90987cbd513fcafb9096d330ae3f58d1529f193907781f0413cf1f8396a3a55d7e51e0f9b1232de4cf661f8c00595898a639d4eec3ac9dd5
6
+ metadata.gz: a4790e3ce342a2c032ab53491236f40ca5bc0ae09254e15bec825458dc4cc5342c76d59e4c01aa27881c7d0f659ef5c5b8f09273648dc6ac6ef185ef5713aec4
7
+ data.tar.gz: 9b4b81cf1bda7937b1e4de1c14ad777515cf1b18d72b9aa25899b75ae2f87dd0b97026011887f0b034e9ab48d9427b1ea5670e226cfd3cef186e9dcb66e8d443
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.452
1
+ 3.0.453
@@ -77,6 +77,30 @@ 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 CancelOrganizationMemberAuthAccount.
83
+ # @type request: :class:`Tencentcloud::organization::V20210331::CancelOrganizationMemberAuthAccountRequest`
84
+ # @rtype: :class:`Tencentcloud::organization::V20210331::CancelOrganizationMemberAuthAccountResponse`
85
+ def CancelOrganizationMemberAuthAccount(request)
86
+ body = send_request('CancelOrganizationMemberAuthAccount', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = CancelOrganizationMemberAuthAccountResponse.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
+
80
104
  # 创建组织成员
81
105
 
82
106
  # @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 DescribeOrganizationMemberAuthAccounts.
251
+ # @type request: :class:`Tencentcloud::organization::V20210331::DescribeOrganizationMemberAuthAccountsRequest`
252
+ # @rtype: :class:`Tencentcloud::organization::V20210331::DescribeOrganizationMemberAuthAccountsResponse`
253
+ def DescribeOrganizationMemberAuthAccounts(request)
254
+ body = send_request('DescribeOrganizationMemberAuthAccounts', request.serialize)
255
+ response = JSON.parse(body)
256
+ if response['Response'].key?('Error') == false
257
+ model = DescribeOrganizationMemberAuthAccountsResponse.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 DescribeOrganizationMemberAuthIdentities.
@@ -123,6 +123,46 @@ module TencentCloud
123
123
  end
124
124
  end
125
125
 
126
+ # CancelOrganizationMemberAuthAccount请求参数结构体
127
+ class CancelOrganizationMemberAuthAccountRequest < TencentCloud::Common::AbstractModel
128
+ # @param MemberUin: 成员Uin。
129
+ # @type MemberUin: Integer
130
+ # @param PolicyId: 策略ID。
131
+ # @type PolicyId: Integer
132
+ # @param OrgSubAccountUin: 组织子账号Uin。
133
+ # @type OrgSubAccountUin: Integer
134
+
135
+ attr_accessor :MemberUin, :PolicyId, :OrgSubAccountUin
136
+
137
+ def initialize(memberuin=nil, policyid=nil, orgsubaccountuin=nil)
138
+ @MemberUin = memberuin
139
+ @PolicyId = policyid
140
+ @OrgSubAccountUin = orgsubaccountuin
141
+ end
142
+
143
+ def deserialize(params)
144
+ @MemberUin = params['MemberUin']
145
+ @PolicyId = params['PolicyId']
146
+ @OrgSubAccountUin = params['OrgSubAccountUin']
147
+ end
148
+ end
149
+
150
+ # CancelOrganizationMemberAuthAccount返回参数结构体
151
+ class CancelOrganizationMemberAuthAccountResponse < TencentCloud::Common::AbstractModel
152
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
153
+ # @type RequestId: String
154
+
155
+ attr_accessor :RequestId
156
+
157
+ def initialize(requestid=nil)
158
+ @RequestId = requestid
159
+ end
160
+
161
+ def deserialize(params)
162
+ @RequestId = params['RequestId']
163
+ end
164
+ end
165
+
126
166
  # CreateOrganizationMemberPolicy请求参数结构体
127
167
  class CreateOrganizationMemberPolicyRequest < TencentCloud::Common::AbstractModel
128
168
  # @param MemberUin: 成员Uin。
@@ -362,6 +402,67 @@ module TencentCloud
362
402
  end
363
403
  end
364
404
 
405
+ # DescribeOrganizationMemberAuthAccounts请求参数结构体
406
+ class DescribeOrganizationMemberAuthAccountsRequest < TencentCloud::Common::AbstractModel
407
+ # @param Offset: 偏移量。
408
+ # @type Offset: Integer
409
+ # @param Limit: 限制数目。
410
+ # @type Limit: Integer
411
+ # @param MemberUin: 成员Uin。
412
+ # @type MemberUin: Integer
413
+ # @param PolicyId: 策略ID。
414
+ # @type PolicyId: Integer
415
+
416
+ attr_accessor :Offset, :Limit, :MemberUin, :PolicyId
417
+
418
+ def initialize(offset=nil, limit=nil, memberuin=nil, policyid=nil)
419
+ @Offset = offset
420
+ @Limit = limit
421
+ @MemberUin = memberuin
422
+ @PolicyId = policyid
423
+ end
424
+
425
+ def deserialize(params)
426
+ @Offset = params['Offset']
427
+ @Limit = params['Limit']
428
+ @MemberUin = params['MemberUin']
429
+ @PolicyId = params['PolicyId']
430
+ end
431
+ end
432
+
433
+ # DescribeOrganizationMemberAuthAccounts返回参数结构体
434
+ class DescribeOrganizationMemberAuthAccountsResponse < TencentCloud::Common::AbstractModel
435
+ # @param Items: 列表
436
+ # 注意:此字段可能返回 null,表示取不到有效值。
437
+ # @type Items: Array
438
+ # @param Total: 总数目
439
+ # 注意:此字段可能返回 null,表示取不到有效值。
440
+ # @type Total: Integer
441
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
442
+ # @type RequestId: String
443
+
444
+ attr_accessor :Items, :Total, :RequestId
445
+
446
+ def initialize(items=nil, total=nil, requestid=nil)
447
+ @Items = items
448
+ @Total = total
449
+ @RequestId = requestid
450
+ end
451
+
452
+ def deserialize(params)
453
+ unless params['Items'].nil?
454
+ @Items = []
455
+ params['Items'].each do |i|
456
+ orgmemberauthaccount_tmp = OrgMemberAuthAccount.new
457
+ orgmemberauthaccount_tmp.deserialize(i)
458
+ @Items << orgmemberauthaccount_tmp
459
+ end
460
+ end
461
+ @Total = params['Total']
462
+ @RequestId = params['RequestId']
463
+ end
464
+ end
465
+
365
466
  # DescribeOrganizationMemberAuthIdentities请求参数结构体
366
467
  class DescribeOrganizationMemberAuthIdentitiesRequest < TencentCloud::Common::AbstractModel
367
468
  # @param Offset: 偏移量。
@@ -1022,6 +1123,63 @@ module TencentCloud
1022
1123
  end
1023
1124
  end
1024
1125
 
1126
+ # 成员和子账号的授权关系
1127
+ class OrgMemberAuthAccount < TencentCloud::Common::AbstractModel
1128
+ # @param OrgSubAccountUin: 组织子账号Uin。
1129
+ # 注意:此字段可能返回 null,表示取不到有效值。
1130
+ # @type OrgSubAccountUin: Integer
1131
+ # @param PolicyId: 策略ID。
1132
+ # 注意:此字段可能返回 null,表示取不到有效值。
1133
+ # @type PolicyId: Integer
1134
+ # @param PolicyName: 策略名。
1135
+ # 注意:此字段可能返回 null,表示取不到有效值。
1136
+ # @type PolicyName: String
1137
+ # @param IdentityId: 身份ID。
1138
+ # 注意:此字段可能返回 null,表示取不到有效值。
1139
+ # @type IdentityId: Integer
1140
+ # @param IdentityRoleName: 身份角色名。
1141
+ # 注意:此字段可能返回 null,表示取不到有效值。
1142
+ # @type IdentityRoleName: String
1143
+ # @param IdentityRoleAliasName: 身份角色别名。
1144
+ # 注意:此字段可能返回 null,表示取不到有效值。
1145
+ # @type IdentityRoleAliasName: String
1146
+ # @param CreateTime: 创建时间。
1147
+ # 注意:此字段可能返回 null,表示取不到有效值。
1148
+ # @type CreateTime: String
1149
+ # @param UpdateTime: 更新时间。
1150
+ # 注意:此字段可能返回 null,表示取不到有效值。
1151
+ # @type UpdateTime: String
1152
+ # @param OrgSubAccountName: 子账号名称
1153
+ # 注意:此字段可能返回 null,表示取不到有效值。
1154
+ # @type OrgSubAccountName: String
1155
+
1156
+ attr_accessor :OrgSubAccountUin, :PolicyId, :PolicyName, :IdentityId, :IdentityRoleName, :IdentityRoleAliasName, :CreateTime, :UpdateTime, :OrgSubAccountName
1157
+
1158
+ def initialize(orgsubaccountuin=nil, policyid=nil, policyname=nil, identityid=nil, identityrolename=nil, identityrolealiasname=nil, createtime=nil, updatetime=nil, orgsubaccountname=nil)
1159
+ @OrgSubAccountUin = orgsubaccountuin
1160
+ @PolicyId = policyid
1161
+ @PolicyName = policyname
1162
+ @IdentityId = identityid
1163
+ @IdentityRoleName = identityrolename
1164
+ @IdentityRoleAliasName = identityrolealiasname
1165
+ @CreateTime = createtime
1166
+ @UpdateTime = updatetime
1167
+ @OrgSubAccountName = orgsubaccountname
1168
+ end
1169
+
1170
+ def deserialize(params)
1171
+ @OrgSubAccountUin = params['OrgSubAccountUin']
1172
+ @PolicyId = params['PolicyId']
1173
+ @PolicyName = params['PolicyName']
1174
+ @IdentityId = params['IdentityId']
1175
+ @IdentityRoleName = params['IdentityRoleName']
1176
+ @IdentityRoleAliasName = params['IdentityRoleAliasName']
1177
+ @CreateTime = params['CreateTime']
1178
+ @UpdateTime = params['UpdateTime']
1179
+ @OrgSubAccountName = params['OrgSubAccountName']
1180
+ end
1181
+ end
1182
+
1025
1183
  # 组织成员可授权的身份
1026
1184
  class OrgMemberAuthIdentity < TencentCloud::Common::AbstractModel
1027
1185
  # @param IdentityId: 身份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.452
4
+ version: 3.0.453
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-15 00:00:00.000000000 Z
11
+ date: 2022-11-17 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/v20181225/models.rb
37
- - lib/v20181225/client.rb
38
- - lib/tencentcloud-sdk-organization.rb
39
- - lib/v20210331/models.rb
40
36
  - lib/v20210331/client.rb
37
+ - lib/v20210331/models.rb
38
+ - lib/tencentcloud-sdk-organization.rb
39
+ - lib/v20181225/client.rb
40
+ - lib/v20181225/models.rb
41
41
  - lib/VERSION
42
42
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
43
43
  licenses: