tencentcloud-sdk-organization 1.0.319 → 1.0.322
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210331/client.rb +24 -0
- data/lib/v20210331/models.rb +49 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1288c7d017741153bcfd213f83fc2a4fdb2326d
|
4
|
+
data.tar.gz: 8a5b5de32336f7c850b8ab978ce9a8dee3e86870
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7e7b17da2acb29ac5b3d743a3274d53307e20bc58ddbff23a965f0bd183c7b53cb5a82c833ec7b72b88bc678432b83025bc45fd629123a44f99df3326ad0a2a
|
7
|
+
data.tar.gz: d39194b882e40ec5c73c44d71076a762b0ce5f3802addcb041661ff21b45f857e00e46cde463a60f66c488b56ae0e8f38a43de6eb2d38db83d4e2f93eaddc786
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.322
|
data/lib/v20210331/client.rb
CHANGED
@@ -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 CreateOrganizationMemberPolicy.
|
83
|
+
# @type request: :class:`Tencentcloud::organization::V20210331::CreateOrganizationMemberPolicyRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::organization::V20210331::CreateOrganizationMemberPolicyResponse`
|
85
|
+
def CreateOrganizationMemberPolicy(request)
|
86
|
+
body = send_request('CreateOrganizationMemberPolicy', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = CreateOrganizationMemberPolicyResponse.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 DescribeOrganization.
|
data/lib/v20210331/models.rb
CHANGED
@@ -57,6 +57,55 @@ module TencentCloud
|
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
|
+
# CreateOrganizationMemberPolicy请求参数结构体
|
61
|
+
class CreateOrganizationMemberPolicyRequest < TencentCloud::Common::AbstractModel
|
62
|
+
# @param MemberUin: 成员Uin。
|
63
|
+
# @type MemberUin: Integer
|
64
|
+
# @param PolicyName: 策略名。
|
65
|
+
# @type PolicyName: String
|
66
|
+
# @param IdentityId: 身份ID。
|
67
|
+
# @type IdentityId: Integer
|
68
|
+
# @param Description: 描述。
|
69
|
+
# @type Description: String
|
70
|
+
|
71
|
+
attr_accessor :MemberUin, :PolicyName, :IdentityId, :Description
|
72
|
+
|
73
|
+
def initialize(memberuin=nil, policyname=nil, identityid=nil, description=nil)
|
74
|
+
@MemberUin = memberuin
|
75
|
+
@PolicyName = policyname
|
76
|
+
@IdentityId = identityid
|
77
|
+
@Description = description
|
78
|
+
end
|
79
|
+
|
80
|
+
def deserialize(params)
|
81
|
+
@MemberUin = params['MemberUin']
|
82
|
+
@PolicyName = params['PolicyName']
|
83
|
+
@IdentityId = params['IdentityId']
|
84
|
+
@Description = params['Description']
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
# CreateOrganizationMemberPolicy返回参数结构体
|
89
|
+
class CreateOrganizationMemberPolicyResponse < TencentCloud::Common::AbstractModel
|
90
|
+
# @param PolicyId: 策略ID。
|
91
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
92
|
+
# @type PolicyId: Integer
|
93
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
94
|
+
# @type RequestId: String
|
95
|
+
|
96
|
+
attr_accessor :PolicyId, :RequestId
|
97
|
+
|
98
|
+
def initialize(policyid=nil, requestid=nil)
|
99
|
+
@PolicyId = policyid
|
100
|
+
@RequestId = requestid
|
101
|
+
end
|
102
|
+
|
103
|
+
def deserialize(params)
|
104
|
+
@PolicyId = params['PolicyId']
|
105
|
+
@RequestId = params['RequestId']
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
60
109
|
# CreateOrganizationMember请求参数结构体
|
61
110
|
class CreateOrganizationMemberRequest < TencentCloud::Common::AbstractModel
|
62
111
|
# @param Name: 名称
|
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: 1.0.
|
4
|
+
version: 1.0.322
|
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-05-
|
11
|
+
date: 2022-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|