tencentcloud-sdk-sts 3.0.596 → 3.0.598
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180813/client.rb +18 -5
- data/lib/v20180813/models.rb +15 -15
- 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: acd530bf19f9b0ca223ae207cff4c864d528eb42
|
4
|
+
data.tar.gz: e501cdf439991b9721f1bea5290855da56b38a06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 08cdfa5ad5728fe8d5f04aabf3c3e20fb046cf49a417192f624ef1b64485e538d8169a95b8b1c2751d09b8f76dc43eea2cb687f9b83da380bce927f07693cdb5
|
7
|
+
data.tar.gz: b00d19ecc4dc086ea441e16bdab6c635cb606f4c338cdf2579b54c62c93d4e32d78c303173f456e3199cf54e4833aa83ce48698c750fc38056a8f4f95ff75528
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.598
|
data/lib/v20180813/client.rb
CHANGED
@@ -29,7 +29,7 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
-
#
|
32
|
+
# 申请扮演角色临时访问凭证。
|
33
33
|
|
34
34
|
# @param request: Request instance for AssumeRole.
|
35
35
|
# @type request: :class:`Tencentcloud::sts::V20180813::AssumeRoleRequest`
|
@@ -53,7 +53,9 @@ module TencentCloud
|
|
53
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
54
|
end
|
55
55
|
|
56
|
-
# 本接口(AssumeRoleWithSAML)用于根据 SAML
|
56
|
+
# 本接口(AssumeRoleWithSAML)用于根据 SAML 断言申请角色临时访问凭证。
|
57
|
+
|
58
|
+
# 注意:当使用签名方法 V3 调用本接口时,请求头无须传入 X-TC-Token, 但 Authorization 需要传入值 SKIP。
|
57
59
|
|
58
60
|
# @param request: Request instance for AssumeRoleWithSAML.
|
59
61
|
# @type request: :class:`Tencentcloud::sts::V20180813::AssumeRoleWithSAMLRequest`
|
@@ -77,7 +79,9 @@ module TencentCloud
|
|
77
79
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
80
|
end
|
79
81
|
|
80
|
-
# 申请OIDC
|
82
|
+
# 申请OIDC角色临时访问凭证。
|
83
|
+
|
84
|
+
# 注意:当使用签名方法 V3 调用本接口时,请求头无须传入 X-TC-Token, 但 Authorization 需要传入值 SKIP。
|
81
85
|
|
82
86
|
# @param request: Request instance for AssumeRoleWithWebIdentity.
|
83
87
|
# @type request: :class:`Tencentcloud::sts::V20180813::AssumeRoleWithWebIdentityRequest`
|
@@ -102,7 +106,8 @@ module TencentCloud
|
|
102
106
|
end
|
103
107
|
|
104
108
|
# 获取当前调用者的身份信息。
|
105
|
-
|
109
|
+
|
110
|
+
# 接口支持主账号,子账号长期密钥以及AssumeRole,GetFederationToken生成的临时访问凭证身份获取。
|
106
111
|
|
107
112
|
# @param request: Request instance for GetCallerIdentity.
|
108
113
|
# @type request: :class:`Tencentcloud::sts::V20180813::GetCallerIdentityRequest`
|
@@ -126,7 +131,15 @@ module TencentCloud
|
|
126
131
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
127
132
|
end
|
128
133
|
|
129
|
-
#
|
134
|
+
# **使用说明**
|
135
|
+
|
136
|
+
# 返回一组临时访问凭证,典型的应用场景是代理应用程序集中申请临时访问凭证,下发给企业网络内其他分布式终端应用,比如终端应用上传文件到COS场景,本接口仅支持永久密钥调用。
|
137
|
+
|
138
|
+
# **最佳实践**
|
139
|
+
|
140
|
+
# 1. 临时访问凭据在有效期内都可以使用,建议在有效期内重复使用,以避免业务请求速率上升后被限频
|
141
|
+
# 2. 授予临时访问凭证权限的CAM策略,建议按权限最小化原则
|
142
|
+
# 3. 调用接口的永久密钥,建议不要使用主账号
|
130
143
|
|
131
144
|
# @param request: Request instance for GetFederationToken.
|
132
145
|
# @type request: :class:`Tencentcloud::sts::V20180813::GetFederationTokenRequest`
|
data/lib/v20180813/models.rb
CHANGED
@@ -52,7 +52,7 @@ module TencentCloud
|
|
52
52
|
# @param RoleSessionName: 临时会话名称,由用户自定义名称。
|
53
53
|
# 长度在2到128之间,可包含大小写字符,数字以及特殊字符:=,.@_-。 正则为:[\w+=,.@_-]*
|
54
54
|
# @type RoleSessionName: String
|
55
|
-
# @param DurationSeconds:
|
55
|
+
# @param DurationSeconds: 指定临时访问凭证的有效期,单位:秒,默认 7200 秒,最长可设定有效期为 43200 秒
|
56
56
|
# @type DurationSeconds: Integer
|
57
57
|
# @param Policy: 策略描述
|
58
58
|
# 注意:
|
@@ -100,11 +100,11 @@ module TencentCloud
|
|
100
100
|
|
101
101
|
# AssumeRole返回参数结构体
|
102
102
|
class AssumeRoleResponse < TencentCloud::Common::AbstractModel
|
103
|
-
# @param Credentials:
|
103
|
+
# @param Credentials: 临时访问凭证
|
104
104
|
# @type Credentials: :class:`Tencentcloud::Sts.v20180813.models.Credentials`
|
105
|
-
# @param ExpiredTime:
|
105
|
+
# @param ExpiredTime: 临时访问凭证的过期时间,返回 Unix 时间戳,精确到秒
|
106
106
|
# @type ExpiredTime: Integer
|
107
|
-
# @param Expiration:
|
107
|
+
# @param Expiration: 临时访问凭证的过期时间,以 iso8601 格式的 UTC 时间表示
|
108
108
|
# @type Expiration: String
|
109
109
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
110
110
|
# @type RequestId: String
|
@@ -139,7 +139,7 @@ module TencentCloud
|
|
139
139
|
# @type RoleArn: String
|
140
140
|
# @param RoleSessionName: 会话名称
|
141
141
|
# @type RoleSessionName: String
|
142
|
-
# @param DurationSeconds:
|
142
|
+
# @param DurationSeconds: 指定临时访问凭证的有效期,单位:秒,默认 7200 秒,最长可设定有效期为 43200 秒
|
143
143
|
# @type DurationSeconds: Integer
|
144
144
|
|
145
145
|
attr_accessor :SAMLAssertion, :PrincipalArn, :RoleArn, :RoleSessionName, :DurationSeconds
|
@@ -165,9 +165,9 @@ module TencentCloud
|
|
165
165
|
class AssumeRoleWithSAMLResponse < TencentCloud::Common::AbstractModel
|
166
166
|
# @param Credentials: 对象里面包含 Token,TmpSecretId,TmpSecretKey 三元组
|
167
167
|
# @type Credentials: :class:`Tencentcloud::Sts.v20180813.models.Credentials`
|
168
|
-
# @param ExpiredTime:
|
168
|
+
# @param ExpiredTime: 临时访问凭证的过期时间,返回 Unix 时间戳,精确到秒
|
169
169
|
# @type ExpiredTime: Integer
|
170
|
-
# @param Expiration:
|
170
|
+
# @param Expiration: 临时访问凭证的过期时间,以 ISO8601 格式的 UTC 时间表示
|
171
171
|
# @type Expiration: String
|
172
172
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
173
173
|
# @type RequestId: String
|
@@ -202,7 +202,7 @@ module TencentCloud
|
|
202
202
|
# @type RoleArn: String
|
203
203
|
# @param RoleSessionName: 会话名称
|
204
204
|
# @type RoleSessionName: String
|
205
|
-
# @param DurationSeconds:
|
205
|
+
# @param DurationSeconds: 指定临时访问凭证的有效期,单位:秒,默认 7200 秒,最长可设定有效期为 43200 秒
|
206
206
|
# @type DurationSeconds: Integer
|
207
207
|
|
208
208
|
attr_accessor :ProviderId, :WebIdentityToken, :RoleArn, :RoleSessionName, :DurationSeconds
|
@@ -226,11 +226,11 @@ module TencentCloud
|
|
226
226
|
|
227
227
|
# AssumeRoleWithWebIdentity返回参数结构体
|
228
228
|
class AssumeRoleWithWebIdentityResponse < TencentCloud::Common::AbstractModel
|
229
|
-
# @param ExpiredTime:
|
229
|
+
# @param ExpiredTime: 临时访问凭证过期时间(时间戳)
|
230
230
|
# @type ExpiredTime: Integer
|
231
|
-
# @param Expiration:
|
231
|
+
# @param Expiration: 临时访问凭证过期时间
|
232
232
|
# @type Expiration: String
|
233
|
-
# @param Credentials:
|
233
|
+
# @param Credentials: 临时访问凭证
|
234
234
|
# @type Credentials: :class:`Tencentcloud::Sts.v20180813.models.Credentials`
|
235
235
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
236
236
|
# @type RequestId: String
|
@@ -335,7 +335,7 @@ module TencentCloud
|
|
335
335
|
class GetFederationTokenRequest < TencentCloud::Common::AbstractModel
|
336
336
|
# @param Name: 您可以自定义调用方英文名称,由字母组成。
|
337
337
|
# @type Name: String
|
338
|
-
# @param Policy:
|
338
|
+
# @param Policy: 授予该临时访问凭证权限的CAM策略
|
339
339
|
# 注意:
|
340
340
|
# 1、策略语法参照[ CAM 策略语法](https://cloud.tencent.com/document/product/598/10603)。
|
341
341
|
# 2、策略中不能包含 principal 元素。
|
@@ -361,11 +361,11 @@ module TencentCloud
|
|
361
361
|
|
362
362
|
# GetFederationToken返回参数结构体
|
363
363
|
class GetFederationTokenResponse < TencentCloud::Common::AbstractModel
|
364
|
-
# @param Credentials:
|
364
|
+
# @param Credentials: 临时访问凭证
|
365
365
|
# @type Credentials: :class:`Tencentcloud::Sts.v20180813.models.Credentials`
|
366
|
-
# @param ExpiredTime:
|
366
|
+
# @param ExpiredTime: 临时访问凭证有效的时间,返回 Unix 时间戳,精确到秒
|
367
367
|
# @type ExpiredTime: Integer
|
368
|
-
# @param Expiration:
|
368
|
+
# @param Expiration: 临时访问凭证有效的时间,以 iso8601 格式的 UTC 时间表示
|
369
369
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
370
370
|
# @type Expiration: String
|
371
371
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
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: 3.0.
|
4
|
+
version: 3.0.598
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|