tencentcloud-sdk-sts 1.0.300 → 1.0.303

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: 409b52630d167895aa472d399e51f8d1ea0d238f
4
- data.tar.gz: e405cc330ae98624cf6be4dba656e50a671dd1e3
3
+ metadata.gz: a3d989921186a438e8157e2c415d8e00e6f10458
4
+ data.tar.gz: ecacd0cb722568a4dce4143f16a65cbee444fb5e
5
5
  SHA512:
6
- metadata.gz: 85e08d89f90be8c22c09f87e3d298467509609924f040141e3bc5ae4f25324602b9b2bda65243c46a80e8b1cc1ad4184795cfc38b1615f09dcd6040bf010b264
7
- data.tar.gz: cf74949f423535815202c898fc981639f2667c0cadf50306552490633dd3068f9df1fb2f7d9552ea9ca076406d1838807f5b12c6368dfd886b15349f5991e6ba
6
+ metadata.gz: 2e383c1aa6d02820b3632c7931f55db022ccb97c3e3f044658047aad43ed77aad566dcc8471a6060770e422db5c0c5976c289cddebf407132b540513388e7dd8
7
+ data.tar.gz: dfac8d3566a717262a37fe7162429a1271cf13acf0959b56c82962ab102da8cd46fa0f5a598e0cb8a52e561048c8f035d9f1e3f6d71b19119d569aaf22959207
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.300
1
+ 1.0.303
@@ -77,6 +77,30 @@ module TencentCloud
77
77
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
78
  end
79
79
 
80
+ # 申请OIDC角色临时密钥
81
+
82
+ # @param request: Request instance for AssumeRoleWithWebIdentity.
83
+ # @type request: :class:`Tencentcloud::sts::V20180813::AssumeRoleWithWebIdentityRequest`
84
+ # @rtype: :class:`Tencentcloud::sts::V20180813::AssumeRoleWithWebIdentityResponse`
85
+ def AssumeRoleWithWebIdentity(request)
86
+ body = send_request('AssumeRoleWithWebIdentity', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = AssumeRoleWithWebIdentityResponse.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
  # 接口支持主账号,子账号长期密钥以及AssumeRole,GetFederationToken生成的临时凭据的身份获取。
82
106
 
@@ -177,6 +177,69 @@ module TencentCloud
177
177
  end
178
178
  end
179
179
 
180
+ # AssumeRoleWithWebIdentity请求参数结构体
181
+ class AssumeRoleWithWebIdentityRequest < TencentCloud::Common::AbstractModel
182
+ # @param ProviderId: 身份提供商名称
183
+ # @type ProviderId: String
184
+ # @param WebIdentityToken: IdP签发的OIDC令牌
185
+ # @type WebIdentityToken: String
186
+ # @param RoleArn: 角色访问描述名
187
+ # @type RoleArn: String
188
+ # @param RoleSessionName: 会话名称
189
+ # @type RoleSessionName: String
190
+ # @param DurationSeconds: 指定临时证书的有效期,单位:秒,默认 7200 秒,最长可设定有效期为 43200 秒
191
+ # @type DurationSeconds: Integer
192
+
193
+ attr_accessor :ProviderId, :WebIdentityToken, :RoleArn, :RoleSessionName, :DurationSeconds
194
+
195
+ def initialize(providerid=nil, webidentitytoken=nil, rolearn=nil, rolesessionname=nil, durationseconds=nil)
196
+ @ProviderId = providerid
197
+ @WebIdentityToken = webidentitytoken
198
+ @RoleArn = rolearn
199
+ @RoleSessionName = rolesessionname
200
+ @DurationSeconds = durationseconds
201
+ end
202
+
203
+ def deserialize(params)
204
+ @ProviderId = params['ProviderId']
205
+ @WebIdentityToken = params['WebIdentityToken']
206
+ @RoleArn = params['RoleArn']
207
+ @RoleSessionName = params['RoleSessionName']
208
+ @DurationSeconds = params['DurationSeconds']
209
+ end
210
+ end
211
+
212
+ # AssumeRoleWithWebIdentity返回参数结构体
213
+ class AssumeRoleWithWebIdentityResponse < TencentCloud::Common::AbstractModel
214
+ # @param ExpiredTime: 临时秘钥过期时间(时间戳)
215
+ # @type ExpiredTime: Integer
216
+ # @param Expiration: 临时秘钥过期时间
217
+ # @type Expiration: String
218
+ # @param Credentials: 临时秘钥
219
+ # @type Credentials: :class:`Tencentcloud::Sts.v20180813.models.Credentials`
220
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
221
+ # @type RequestId: String
222
+
223
+ attr_accessor :ExpiredTime, :Expiration, :Credentials, :RequestId
224
+
225
+ def initialize(expiredtime=nil, expiration=nil, credentials=nil, requestid=nil)
226
+ @ExpiredTime = expiredtime
227
+ @Expiration = expiration
228
+ @Credentials = credentials
229
+ @RequestId = requestid
230
+ end
231
+
232
+ def deserialize(params)
233
+ @ExpiredTime = params['ExpiredTime']
234
+ @Expiration = params['Expiration']
235
+ unless params['Credentials'].nil?
236
+ @Credentials = Credentials.new
237
+ @Credentials.deserialize(params['Credentials'])
238
+ end
239
+ @RequestId = params['RequestId']
240
+ end
241
+ end
242
+
180
243
  # 临时证书
181
244
  class Credentials < TencentCloud::Common::AbstractModel
182
245
  # @param Token: token。token长度和绑定的策略有关,最长不超过4096字节。
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.300
4
+ version: 1.0.303
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-04-19 00:00:00.000000000 Z
11
+ date: 2022-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common