tencentcloud-sdk-organization 1.0.321 → 1.0.324

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a34e570abedf7b6bee8b8450c3cc44d7048c918
4
- data.tar.gz: 55881f34cb9b43dc4e749a107e59d58e1ca7f10c
3
+ metadata.gz: 79aa7d11892720848df5602004183ffc9ffa8934
4
+ data.tar.gz: 2e34420debf59f1fb3ec9c0051620dc762b49a38
5
5
  SHA512:
6
- metadata.gz: 05815f237a7ae026e7565bca12802fc3440279ec39bcfd6b26783ec534323a477ca93f6d8a1227000abf17e9846ebe64a1f6c97358c5af7cc82498ac39c622d7
7
- data.tar.gz: acdb20e9424d69267231bc5dc2dd946d2e78b5679a19148342c3ecd69bd674eef85f72720da4aca71f2b9d9f26aec4a6f6e978a0677a1f88bf293b96d8323124
6
+ metadata.gz: cba3e77bf32b6258ad3cd176d71e999cf828bad55e9cd9b25d73e9fd796538b9a884c0275973e122b6ccb42f07a671b8be07f36d1c6931b5fc7f227e21624cd3
7
+ data.tar.gz: 2ea1973aeb80d98264e81ecae02e8eff84e75e7ba45ca6b4078fbb0a6a51f8e3772cd5e4595c10571c8cf7b995140e6089bfb3004a9d4e6d76cdc36ba0c90fd9
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.321
1
+ 1.0.324
@@ -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.
@@ -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.321
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-27 00:00:00.000000000 Z
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