tencentcloud-sdk-organization 1.0.320 → 1.0.323

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: 45cd213d93b2f6308d2353441608a5f6816af510
4
- data.tar.gz: 8a37dabe7966e3482ea9db0bc00438ad674975fc
3
+ metadata.gz: f7080783750163a70641c194044319f7312b106a
4
+ data.tar.gz: a0f0352d347651f45e3448fde75f7c868067c336
5
5
  SHA512:
6
- metadata.gz: 8d209eceffde194db9da50e15935672edc3f64be240efe412d723058030936f7c7bd616835a87269ac77e7212a947bf5a23d5dece76fd5b69ec08719fd431ee8
7
- data.tar.gz: 07a785320b5a86eac20db336b03aff3a9dd1c6ed3f3bf3b85f3595bac60ed860301b519624b0d553d4431544655f583989552a3c53bb2c237be5867d6d9feaea
6
+ metadata.gz: 02bc5c0eb134672e6239becadb7505252c0b9cbc4f78a078d132a83ccd4f4d0cb98fb2054315c9a3cdee277f7172448469d1f7247408661a4c23f7c69d3d2aa5
7
+ data.tar.gz: 2476bdf7804d157501c38c1d2d249b00c5f597bfac6ae3925b7263bfdcd14bc1010fea595825b976342e25ee8e45e96d09f28de41b2336300d43101532cd4ef4
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.320
1
+ 1.0.323
@@ -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.320
4
+ version: 1.0.323
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-26 00:00:00.000000000 Z
11
+ date: 2022-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common