tencentcloud-sdk-cloudstudio 3.0.519 → 3.0.520
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210524/client.rb +24 -0
- data/lib/v20210524/models.rb +85 -0
- 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: cf4a539d293e707e7b62ad53ef66cfd4b01103f4
|
4
|
+
data.tar.gz: b667766e24efeed96c97e70b136970be158b7aed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6209f43576a5d831231a2d62a94d0241cc9d82715cc7f39e5e6f6be4707bf8a2e30970d44bded8792fd206a801f0e83f3a0c21dad57b467facad9f62c39b4bdd
|
7
|
+
data.tar.gz: 05a12c6c7191e651797482f672aba8017b674396869e968c98db520b3fe7dc91ddb20b117ec15736fe3ec0bf55fede3213691332506136fbb28776752b20d131
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.520
|
data/lib/v20210524/client.rb
CHANGED
@@ -125,6 +125,30 @@ module TencentCloud
|
|
125
125
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
126
|
end
|
127
127
|
|
128
|
+
# 为工作空间创建临时访问凭证,重复调用会创建新的 Token,旧的 Token 将会自动失效
|
129
|
+
|
130
|
+
# @param request: Request instance for CreateWorkspaceTemporaryToken.
|
131
|
+
# @type request: :class:`Tencentcloud::cloudstudio::V20210524::CreateWorkspaceTemporaryTokenRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::cloudstudio::V20210524::CreateWorkspaceTemporaryTokenResponse`
|
133
|
+
def CreateWorkspaceTemporaryToken(request)
|
134
|
+
body = send_request('CreateWorkspaceTemporaryToken', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = CreateWorkspaceTemporaryTokenResponse.new
|
138
|
+
model.deserialize(response['Response'])
|
139
|
+
model
|
140
|
+
else
|
141
|
+
code = response['Response']['Error']['Code']
|
142
|
+
message = response['Response']['Error']['Message']
|
143
|
+
reqid = response['Response']['RequestId']
|
144
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
145
|
+
end
|
146
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
147
|
+
raise e
|
148
|
+
rescue StandardError => e
|
149
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
|
+
end
|
151
|
+
|
128
152
|
# 删除自定义模板
|
129
153
|
|
130
154
|
# @param request: Request instance for DeleteCustomizeTemplatesById.
|
data/lib/v20210524/models.rb
CHANGED
@@ -256,6 +256,48 @@ module TencentCloud
|
|
256
256
|
end
|
257
257
|
end
|
258
258
|
|
259
|
+
# CreateWorkspaceTemporaryToken请求参数结构体
|
260
|
+
class CreateWorkspaceTemporaryTokenRequest < TencentCloud::Common::AbstractModel
|
261
|
+
# @param WorkspaceTokenDTO: 创建工作空间凭证 DTO
|
262
|
+
# @type WorkspaceTokenDTO: :class:`Tencentcloud::Cloudstudio.v20210524.models.WorkspaceTokenDTO`
|
263
|
+
|
264
|
+
attr_accessor :WorkspaceTokenDTO
|
265
|
+
|
266
|
+
def initialize(workspacetokendto=nil)
|
267
|
+
@WorkspaceTokenDTO = workspacetokendto
|
268
|
+
end
|
269
|
+
|
270
|
+
def deserialize(params)
|
271
|
+
unless params['WorkspaceTokenDTO'].nil?
|
272
|
+
@WorkspaceTokenDTO = WorkspaceTokenDTO.new
|
273
|
+
@WorkspaceTokenDTO.deserialize(params['WorkspaceTokenDTO'])
|
274
|
+
end
|
275
|
+
end
|
276
|
+
end
|
277
|
+
|
278
|
+
# CreateWorkspaceTemporaryToken返回参数结构体
|
279
|
+
class CreateWorkspaceTemporaryTokenResponse < TencentCloud::Common::AbstractModel
|
280
|
+
# @param Data: 工作空间临时访问 token 信息
|
281
|
+
# @type Data: :class:`Tencentcloud::Cloudstudio.v20210524.models.WorkspaceTokenInfoV0`
|
282
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
283
|
+
# @type RequestId: String
|
284
|
+
|
285
|
+
attr_accessor :Data, :RequestId
|
286
|
+
|
287
|
+
def initialize(data=nil, requestid=nil)
|
288
|
+
@Data = data
|
289
|
+
@RequestId = requestid
|
290
|
+
end
|
291
|
+
|
292
|
+
def deserialize(params)
|
293
|
+
unless params['Data'].nil?
|
294
|
+
@Data = WorkspaceTokenInfoV0.new
|
295
|
+
@Data.deserialize(params['Data'])
|
296
|
+
end
|
297
|
+
@RequestId = params['RequestId']
|
298
|
+
end
|
299
|
+
end
|
300
|
+
|
259
301
|
# 模板的预置参数
|
260
302
|
class CustomizeTemplatesPresetsInfo < TencentCloud::Common::AbstractModel
|
261
303
|
# @param Tags: 模板tag列表
|
@@ -1664,6 +1706,49 @@ module TencentCloud
|
|
1664
1706
|
end
|
1665
1707
|
end
|
1666
1708
|
|
1709
|
+
# 创建临时工作空间凭证 DTO
|
1710
|
+
class WorkspaceTokenDTO < TencentCloud::Common::AbstractModel
|
1711
|
+
# @param SpaceKey: 工作空间 SpaceKey
|
1712
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1713
|
+
# @type SpaceKey: String
|
1714
|
+
# @param TokenExpiredLimitSec: token过期时间,单位是秒,默认 3600
|
1715
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1716
|
+
# @type TokenExpiredLimitSec: Integer
|
1717
|
+
|
1718
|
+
attr_accessor :SpaceKey, :TokenExpiredLimitSec
|
1719
|
+
|
1720
|
+
def initialize(spacekey=nil, tokenexpiredlimitsec=nil)
|
1721
|
+
@SpaceKey = spacekey
|
1722
|
+
@TokenExpiredLimitSec = tokenexpiredlimitsec
|
1723
|
+
end
|
1724
|
+
|
1725
|
+
def deserialize(params)
|
1726
|
+
@SpaceKey = params['SpaceKey']
|
1727
|
+
@TokenExpiredLimitSec = params['TokenExpiredLimitSec']
|
1728
|
+
end
|
1729
|
+
end
|
1730
|
+
|
1731
|
+
# 获取工作空间临时访问 token 出参
|
1732
|
+
class WorkspaceTokenInfoV0 < TencentCloud::Common::AbstractModel
|
1733
|
+
# @param Token: 访问工作空间临时凭证
|
1734
|
+
# @type Token: String
|
1735
|
+
# @param ExpiredTime: token 过期时间
|
1736
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1737
|
+
# @type ExpiredTime: String
|
1738
|
+
|
1739
|
+
attr_accessor :Token, :ExpiredTime
|
1740
|
+
|
1741
|
+
def initialize(token=nil, expiredtime=nil)
|
1742
|
+
@Token = token
|
1743
|
+
@ExpiredTime = expiredtime
|
1744
|
+
end
|
1745
|
+
|
1746
|
+
def deserialize(params)
|
1747
|
+
@Token = params['Token']
|
1748
|
+
@ExpiredTime = params['ExpiredTime']
|
1749
|
+
end
|
1750
|
+
end
|
1751
|
+
|
1667
1752
|
end
|
1668
1753
|
end
|
1669
1754
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cloudstudio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.520
|
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-03-
|
11
|
+
date: 2023-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|