tencentcloud-sdk-organization 1.0.321 → 1.0.324
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: 79aa7d11892720848df5602004183ffc9ffa8934
|
4
|
+
data.tar.gz: 2e34420debf59f1fb3ec9c0051620dc762b49a38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cba3e77bf32b6258ad3cd176d71e999cf828bad55e9cd9b25d73e9fd796538b9a884c0275973e122b6ccb42f07a671b8be07f36d1c6931b5fc7f227e21624cd3
|
7
|
+
data.tar.gz: 2ea1973aeb80d98264e81ecae02e8eff84e75e7ba45ca6b4078fbb0a6a51f8e3772cd5e4595c10571c8cf7b995140e6089bfb3004a9d4e6d76cdc36ba0c90fd9
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.324
|
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.324
|
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-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|