tencentcloud-sdk-sts 1.0.223 → 1.0.227

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: 370dba296f056dacf19e6d3a678b30ac819bf165
4
- data.tar.gz: 60b2a1b90ef62fc197fb775fd19227fe383c6d73
3
+ metadata.gz: 781c6644cdeda26073479393f6bcb54ccd3d49de
4
+ data.tar.gz: f9f0c4985226e7ab269cd87375b9209e3fea9690
5
5
  SHA512:
6
- metadata.gz: ff025fa09b076c628154770128b67c072d6f3ef54f12e22cb27008d157fd11d0370a3d2f8c11208c65f8427765884c64af1885cb3805ef7e3abae803b0b5a4bb
7
- data.tar.gz: 87453c29baa469e961e717ae3d50760c049d0c4ec4860177881024e365e7b22250793aab10b4ee9f29ea9ca89f1ee4a341a2cb3843309edaeb132a494319bde8
6
+ metadata.gz: e472b942a3ef8574355d7461d8426b58f72bbe778c6aac209a5554f1a358541998cf63203de9e19a528f544506e347d78e7b4fb15a13ff60de8b4bb8308dfdc3
7
+ data.tar.gz: 8271346ebb069dd2e9ba153e483c3f3eef8d3ebaa15e3e56369fbead9c72b1fae417b0f97bb36a3e33d6ee4253adb18d6e9da0979458ec4d0912d97873a85884
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.223
1
+ 1.0.227
@@ -77,6 +77,31 @@ module TencentCloud
77
77
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
78
  end
79
79
 
80
+ # 获取当前调用者的身份信息。
81
+ # 接口支持主账号,子账号长期密钥以及AssumeRole,GetFederationToken生成的临时凭据的身份获取。
82
+
83
+ # @param request: Request instance for GetCallerIdentity.
84
+ # @type request: :class:`Tencentcloud::sts::V20180813::GetCallerIdentityRequest`
85
+ # @rtype: :class:`Tencentcloud::sts::V20180813::GetCallerIdentityResponse`
86
+ def GetCallerIdentity(request)
87
+ body = send_request('GetCallerIdentity', request.serialize)
88
+ response = JSON.parse(body)
89
+ if response['Response'].key?('Error') == false
90
+ model = GetCallerIdentityResponse.new
91
+ model.deserialize(response['Response'])
92
+ model
93
+ else
94
+ code = response['Response']['Error']['Code']
95
+ message = response['Response']['Error']['Message']
96
+ reqid = response['Response']['RequestId']
97
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
98
+ end
99
+ rescue TencentCloud::Common::TencentCloudSDKException => e
100
+ raise e
101
+ rescue StandardError => e
102
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
103
+ end
104
+
80
105
  # 获取联合身份临时访问凭证
81
106
 
82
107
  # @param request: Request instance for GetFederationToken.
@@ -201,6 +201,58 @@ module TencentCloud
201
201
  end
202
202
  end
203
203
 
204
+ # GetCallerIdentity请求参数结构体
205
+ class GetCallerIdentityRequest < TencentCloud::Common::AbstractModel
206
+
207
+
208
+ def initialize()
209
+ end
210
+
211
+ def deserialize(params)
212
+ end
213
+ end
214
+
215
+ # GetCallerIdentity返回参数结构体
216
+ class GetCallerIdentityResponse < TencentCloud::Common::AbstractModel
217
+ # @param Arn: 当前调用者ARN。
218
+ # @type Arn: String
219
+ # @param AccountId: 当前调用者所属主账号Uin。
220
+ # @type AccountId: String
221
+ # @param UserId: 身份标识。
222
+ # 1. 调用者是云账号时,返回的是当前账号Uin
223
+ # 2. 调用者是角色时,返回的是roleId:roleSessionName
224
+ # 3. 调用者是联合身份时,返回的是uin:federatedUserName
225
+ # @type UserId: String
226
+ # @param PrincipalId: 密钥所属账号Uin。
227
+ # 1. 调用者是云账号,返回的当前账号Uin
228
+ # 2, 调用者是角色,返回的申请角色密钥的账号Uin
229
+ # @type PrincipalId: String
230
+ # @param Type: 身份类型。
231
+ # @type Type: String
232
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
233
+ # @type RequestId: String
234
+
235
+ attr_accessor :Arn, :AccountId, :UserId, :PrincipalId, :Type, :RequestId
236
+
237
+ def initialize(arn=nil, accountid=nil, userid=nil, principalid=nil, type=nil, requestid=nil)
238
+ @Arn = arn
239
+ @AccountId = accountid
240
+ @UserId = userid
241
+ @PrincipalId = principalid
242
+ @Type = type
243
+ @RequestId = requestid
244
+ end
245
+
246
+ def deserialize(params)
247
+ @Arn = params['Arn']
248
+ @AccountId = params['AccountId']
249
+ @UserId = params['UserId']
250
+ @PrincipalId = params['PrincipalId']
251
+ @Type = params['Type']
252
+ @RequestId = params['RequestId']
253
+ end
254
+ end
255
+
204
256
  # GetFederationToken请求参数结构体
205
257
  class GetFederationTokenRequest < TencentCloud::Common::AbstractModel
206
258
  # @param Name: 您可以自定义调用方英文名称,由字母组成。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-sts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.223
4
+ version: 1.0.227
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-14 00:00:00.000000000 Z
11
+ date: 2021-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common