tencentcloud-sdk-oceanus 3.0.594 → 3.0.595
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/v20190422/client.rb +24 -0
- data/lib/v20190422/models.rb +305 -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: fc2851efed5fea2eff1b86ff2c8fe4fd2ad8503b
|
4
|
+
data.tar.gz: 487858fcf10a619a1e59d19f409ccc5e4ada5191
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b35176d4f8d959383d1b6973fecae0fb35f4d3eef2f51b5ebf9902347f2fc51f58d71b43f1ef68b0dbc45fb534ced657614b4510e94c254c0e4a4ae04fb01b62
|
7
|
+
data.tar.gz: b1e4984d522999d2214a70f8d0d0ae2049ce294a0db9e7ce743e43aed0389b69d8e584cbd0b59292a2b8e5e890def5680cce9d572cbc690da262b0c95f0fda24
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.595
|
data/lib/v20190422/client.rb
CHANGED
@@ -533,6 +533,30 @@ module TencentCloud
|
|
533
533
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
534
534
|
end
|
535
535
|
|
536
|
+
# 授权工作空间列表
|
537
|
+
|
538
|
+
# @param request: Request instance for DescribeWorkSpaces.
|
539
|
+
# @type request: :class:`Tencentcloud::oceanus::V20190422::DescribeWorkSpacesRequest`
|
540
|
+
# @rtype: :class:`Tencentcloud::oceanus::V20190422::DescribeWorkSpacesResponse`
|
541
|
+
def DescribeWorkSpaces(request)
|
542
|
+
body = send_request('DescribeWorkSpaces', request.serialize)
|
543
|
+
response = JSON.parse(body)
|
544
|
+
if response['Response'].key?('Error') == false
|
545
|
+
model = DescribeWorkSpacesResponse.new
|
546
|
+
model.deserialize(response['Response'])
|
547
|
+
model
|
548
|
+
else
|
549
|
+
code = response['Response']['Error']['Code']
|
550
|
+
message = response['Response']['Error']['Message']
|
551
|
+
reqid = response['Response']['RequestId']
|
552
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
553
|
+
end
|
554
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
555
|
+
raise e
|
556
|
+
rescue StandardError => e
|
557
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
558
|
+
end
|
559
|
+
|
536
560
|
# 更新作业属性,仅允许以下3种操作,不支持组合操作:
|
537
561
|
# (1) 更新作业名称
|
538
562
|
# (2) 更新作业备注
|
data/lib/v20190422/models.rb
CHANGED
@@ -303,6 +303,94 @@ module TencentCloud
|
|
303
303
|
end
|
304
304
|
end
|
305
305
|
|
306
|
+
# 工作空间集群组信息
|
307
|
+
class ClusterGroupSetItem < TencentCloud::Common::AbstractModel
|
308
|
+
# @param ClusterId: clusterGroup 的 SerialId
|
309
|
+
# @type ClusterId: String
|
310
|
+
# @param Name: 集群名称
|
311
|
+
# @type Name: String
|
312
|
+
# @param Region: 地域
|
313
|
+
# @type Region: String
|
314
|
+
# @param Zone: 区
|
315
|
+
# @type Zone: String
|
316
|
+
# @param AppId: 账号 APPID
|
317
|
+
# @type AppId: Integer
|
318
|
+
# @param OwnerUin: 主账号 UIN
|
319
|
+
# @type OwnerUin: String
|
320
|
+
# @param CreatorUin: 创建账号 UIN
|
321
|
+
# @type CreatorUin: String
|
322
|
+
# @param CuNum: CU 数量
|
323
|
+
# @type CuNum: Integer
|
324
|
+
# @param CuMem: CU 内存规格
|
325
|
+
# @type CuMem: Integer
|
326
|
+
# @param Status: 集群状态, 1 未初始化,,3 初始化中,2 运行中
|
327
|
+
# @type Status: Integer
|
328
|
+
# @param StatusDesc: 状态描述
|
329
|
+
# @type StatusDesc: String
|
330
|
+
# @param CreateTime: 集群创建时间
|
331
|
+
# @type CreateTime: String
|
332
|
+
# @param UpdateTime: 最后一次操作集群的时间
|
333
|
+
# @type UpdateTime: String
|
334
|
+
# @param Remark: 描述
|
335
|
+
# @type Remark: String
|
336
|
+
# @param NetEnvironmentType: 网络
|
337
|
+
# @type NetEnvironmentType: Integer
|
338
|
+
# @param FreeCuNum: 空闲 CU
|
339
|
+
# @type FreeCuNum: Integer
|
340
|
+
# @param FreeCu: 细粒度资源下的空闲CU
|
341
|
+
# @type FreeCu: Float
|
342
|
+
# @param RunningCu: 运行中CU
|
343
|
+
# @type RunningCu: Float
|
344
|
+
# @param PayMode: 付费模式
|
345
|
+
# @type PayMode: Integer
|
346
|
+
|
347
|
+
attr_accessor :ClusterId, :Name, :Region, :Zone, :AppId, :OwnerUin, :CreatorUin, :CuNum, :CuMem, :Status, :StatusDesc, :CreateTime, :UpdateTime, :Remark, :NetEnvironmentType, :FreeCuNum, :FreeCu, :RunningCu, :PayMode
|
348
|
+
|
349
|
+
def initialize(clusterid=nil, name=nil, region=nil, zone=nil, appid=nil, owneruin=nil, creatoruin=nil, cunum=nil, cumem=nil, status=nil, statusdesc=nil, createtime=nil, updatetime=nil, remark=nil, netenvironmenttype=nil, freecunum=nil, freecu=nil, runningcu=nil, paymode=nil)
|
350
|
+
@ClusterId = clusterid
|
351
|
+
@Name = name
|
352
|
+
@Region = region
|
353
|
+
@Zone = zone
|
354
|
+
@AppId = appid
|
355
|
+
@OwnerUin = owneruin
|
356
|
+
@CreatorUin = creatoruin
|
357
|
+
@CuNum = cunum
|
358
|
+
@CuMem = cumem
|
359
|
+
@Status = status
|
360
|
+
@StatusDesc = statusdesc
|
361
|
+
@CreateTime = createtime
|
362
|
+
@UpdateTime = updatetime
|
363
|
+
@Remark = remark
|
364
|
+
@NetEnvironmentType = netenvironmenttype
|
365
|
+
@FreeCuNum = freecunum
|
366
|
+
@FreeCu = freecu
|
367
|
+
@RunningCu = runningcu
|
368
|
+
@PayMode = paymode
|
369
|
+
end
|
370
|
+
|
371
|
+
def deserialize(params)
|
372
|
+
@ClusterId = params['ClusterId']
|
373
|
+
@Name = params['Name']
|
374
|
+
@Region = params['Region']
|
375
|
+
@Zone = params['Zone']
|
376
|
+
@AppId = params['AppId']
|
377
|
+
@OwnerUin = params['OwnerUin']
|
378
|
+
@CreatorUin = params['CreatorUin']
|
379
|
+
@CuNum = params['CuNum']
|
380
|
+
@CuMem = params['CuMem']
|
381
|
+
@Status = params['Status']
|
382
|
+
@StatusDesc = params['StatusDesc']
|
383
|
+
@CreateTime = params['CreateTime']
|
384
|
+
@UpdateTime = params['UpdateTime']
|
385
|
+
@Remark = params['Remark']
|
386
|
+
@NetEnvironmentType = params['NetEnvironmentType']
|
387
|
+
@FreeCuNum = params['FreeCuNum']
|
388
|
+
@FreeCu = params['FreeCu']
|
389
|
+
@RunningCu = params['RunningCu']
|
390
|
+
@PayMode = params['PayMode']
|
391
|
+
end
|
392
|
+
end
|
393
|
+
|
306
394
|
# session集群信息
|
307
395
|
class ClusterSession < TencentCloud::Common::AbstractModel
|
308
396
|
|
@@ -1765,6 +1853,73 @@ module TencentCloud
|
|
1765
1853
|
end
|
1766
1854
|
end
|
1767
1855
|
|
1856
|
+
# DescribeWorkSpaces请求参数结构体
|
1857
|
+
class DescribeWorkSpacesRequest < TencentCloud::Common::AbstractModel
|
1858
|
+
# @param Offset: 偏移量,默认 0
|
1859
|
+
# @type Offset: Integer
|
1860
|
+
# @param OrderType: 1 按照创建时间降序排序(默认) 2.按照创建时间升序排序,3. 按照状态降序排序 4. 按照状态升序排序 默认为0
|
1861
|
+
# @type OrderType: Integer
|
1862
|
+
# @param Limit: 请求的集群数量,默认 20
|
1863
|
+
# @type Limit: Integer
|
1864
|
+
# @param Filters: 过滤规则
|
1865
|
+
# @type Filters: Array
|
1866
|
+
|
1867
|
+
attr_accessor :Offset, :OrderType, :Limit, :Filters
|
1868
|
+
|
1869
|
+
def initialize(offset=nil, ordertype=nil, limit=nil, filters=nil)
|
1870
|
+
@Offset = offset
|
1871
|
+
@OrderType = ordertype
|
1872
|
+
@Limit = limit
|
1873
|
+
@Filters = filters
|
1874
|
+
end
|
1875
|
+
|
1876
|
+
def deserialize(params)
|
1877
|
+
@Offset = params['Offset']
|
1878
|
+
@OrderType = params['OrderType']
|
1879
|
+
@Limit = params['Limit']
|
1880
|
+
unless params['Filters'].nil?
|
1881
|
+
@Filters = []
|
1882
|
+
params['Filters'].each do |i|
|
1883
|
+
filter_tmp = Filter.new
|
1884
|
+
filter_tmp.deserialize(i)
|
1885
|
+
@Filters << filter_tmp
|
1886
|
+
end
|
1887
|
+
end
|
1888
|
+
end
|
1889
|
+
end
|
1890
|
+
|
1891
|
+
# DescribeWorkSpaces返回参数结构体
|
1892
|
+
class DescribeWorkSpacesResponse < TencentCloud::Common::AbstractModel
|
1893
|
+
# @param WorkSpaceSetItem: 空间详情列表
|
1894
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1895
|
+
# @type WorkSpaceSetItem: Array
|
1896
|
+
# @param TotalCount: 空间总数
|
1897
|
+
# @type TotalCount: Integer
|
1898
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1899
|
+
# @type RequestId: String
|
1900
|
+
|
1901
|
+
attr_accessor :WorkSpaceSetItem, :TotalCount, :RequestId
|
1902
|
+
|
1903
|
+
def initialize(workspacesetitem=nil, totalcount=nil, requestid=nil)
|
1904
|
+
@WorkSpaceSetItem = workspacesetitem
|
1905
|
+
@TotalCount = totalcount
|
1906
|
+
@RequestId = requestid
|
1907
|
+
end
|
1908
|
+
|
1909
|
+
def deserialize(params)
|
1910
|
+
unless params['WorkSpaceSetItem'].nil?
|
1911
|
+
@WorkSpaceSetItem = []
|
1912
|
+
params['WorkSpaceSetItem'].each do |i|
|
1913
|
+
workspacesetitem_tmp = WorkSpaceSetItem.new
|
1914
|
+
workspacesetitem_tmp.deserialize(i)
|
1915
|
+
@WorkSpaceSetItem << workspacesetitem_tmp
|
1916
|
+
end
|
1917
|
+
end
|
1918
|
+
@TotalCount = params['TotalCount']
|
1919
|
+
@RequestId = params['RequestId']
|
1920
|
+
end
|
1921
|
+
end
|
1922
|
+
|
1768
1923
|
# 查询作业列表时的过滤器
|
1769
1924
|
class Filter < TencentCloud::Common::AbstractModel
|
1770
1925
|
# @param Name: 要过滤的字段
|
@@ -2488,6 +2643,69 @@ module TencentCloud
|
|
2488
2643
|
end
|
2489
2644
|
end
|
2490
2645
|
|
2646
|
+
# 角色授权信息
|
2647
|
+
class RoleAuth < TencentCloud::Common::AbstractModel
|
2648
|
+
# @param AppId: 用户 AppID
|
2649
|
+
# @type AppId: Integer
|
2650
|
+
# @param WorkSpaceSerialId: 工作空间 SerialId
|
2651
|
+
# @type WorkSpaceSerialId: String
|
2652
|
+
# @param OwnerUin: 主账号 UIN
|
2653
|
+
# @type OwnerUin: String
|
2654
|
+
# @param CreatorUin: 创建者 UIN
|
2655
|
+
# @type CreatorUin: String
|
2656
|
+
# @param AuthSubAccountUin: 绑定授权的 UIN
|
2657
|
+
# @type AuthSubAccountUin: String
|
2658
|
+
# @param Permission: 对应 role表的id
|
2659
|
+
# @type Permission: Integer
|
2660
|
+
# @param CreateTime: 创建时间
|
2661
|
+
# @type CreateTime: String
|
2662
|
+
# @param UpdateTime: 最后一次操作时间
|
2663
|
+
# @type UpdateTime: String
|
2664
|
+
# @param Status: 2 启用 1 停用
|
2665
|
+
# @type Status: Integer
|
2666
|
+
# @param Id: id
|
2667
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2668
|
+
# @type Id: Integer
|
2669
|
+
# @param WorkSpaceId: 工作空间id
|
2670
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2671
|
+
# @type WorkSpaceId: Integer
|
2672
|
+
# @param RoleName: 权限名称
|
2673
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2674
|
+
# @type RoleName: String
|
2675
|
+
|
2676
|
+
attr_accessor :AppId, :WorkSpaceSerialId, :OwnerUin, :CreatorUin, :AuthSubAccountUin, :Permission, :CreateTime, :UpdateTime, :Status, :Id, :WorkSpaceId, :RoleName
|
2677
|
+
|
2678
|
+
def initialize(appid=nil, workspaceserialid=nil, owneruin=nil, creatoruin=nil, authsubaccountuin=nil, permission=nil, createtime=nil, updatetime=nil, status=nil, id=nil, workspaceid=nil, rolename=nil)
|
2679
|
+
@AppId = appid
|
2680
|
+
@WorkSpaceSerialId = workspaceserialid
|
2681
|
+
@OwnerUin = owneruin
|
2682
|
+
@CreatorUin = creatoruin
|
2683
|
+
@AuthSubAccountUin = authsubaccountuin
|
2684
|
+
@Permission = permission
|
2685
|
+
@CreateTime = createtime
|
2686
|
+
@UpdateTime = updatetime
|
2687
|
+
@Status = status
|
2688
|
+
@Id = id
|
2689
|
+
@WorkSpaceId = workspaceid
|
2690
|
+
@RoleName = rolename
|
2691
|
+
end
|
2692
|
+
|
2693
|
+
def deserialize(params)
|
2694
|
+
@AppId = params['AppId']
|
2695
|
+
@WorkSpaceSerialId = params['WorkSpaceSerialId']
|
2696
|
+
@OwnerUin = params['OwnerUin']
|
2697
|
+
@CreatorUin = params['CreatorUin']
|
2698
|
+
@AuthSubAccountUin = params['AuthSubAccountUin']
|
2699
|
+
@Permission = params['Permission']
|
2700
|
+
@CreateTime = params['CreateTime']
|
2701
|
+
@UpdateTime = params['UpdateTime']
|
2702
|
+
@Status = params['Status']
|
2703
|
+
@Id = params['Id']
|
2704
|
+
@WorkSpaceId = params['WorkSpaceId']
|
2705
|
+
@RoleName = params['RoleName']
|
2706
|
+
end
|
2707
|
+
end
|
2708
|
+
|
2491
2709
|
# 作业启动详情
|
2492
2710
|
class RunJobDescription < TencentCloud::Common::AbstractModel
|
2493
2711
|
# @param JobId: 作业Id
|
@@ -2930,6 +3148,93 @@ module TencentCloud
|
|
2930
3148
|
end
|
2931
3149
|
end
|
2932
3150
|
|
3151
|
+
# 工作空间详情
|
3152
|
+
class WorkSpaceSetItem < TencentCloud::Common::AbstractModel
|
3153
|
+
# @param SerialId: 工作空间 SerialId
|
3154
|
+
# @type SerialId: String
|
3155
|
+
# @param AppId: 用户 APPID
|
3156
|
+
# @type AppId: Integer
|
3157
|
+
# @param OwnerUin: 主账号 UIN
|
3158
|
+
# @type OwnerUin: String
|
3159
|
+
# @param CreatorUin: 创建者 UIN
|
3160
|
+
# @type CreatorUin: String
|
3161
|
+
# @param WorkSpaceName: 工作空间名称
|
3162
|
+
# @type WorkSpaceName: String
|
3163
|
+
# @param Region: 区域
|
3164
|
+
# @type Region: String
|
3165
|
+
# @param CreateTime: 创建时间
|
3166
|
+
# @type CreateTime: String
|
3167
|
+
# @param UpdateTime: 更新时间
|
3168
|
+
# @type UpdateTime: String
|
3169
|
+
# @param Status: 1 未初始化 2 可用 -1 已删除
|
3170
|
+
# @type Status: Integer
|
3171
|
+
# @param Description: 工作空间描述
|
3172
|
+
# @type Description: String
|
3173
|
+
# @param ClusterGroupSetItem: 工作空间包含集群信息
|
3174
|
+
# @type ClusterGroupSetItem: Array
|
3175
|
+
# @param RoleAuth: 工作空间角色的信息
|
3176
|
+
# @type RoleAuth: Array
|
3177
|
+
# @param RoleAuthCount: 工作空间成员数量
|
3178
|
+
# @type RoleAuthCount: Integer
|
3179
|
+
# @param WorkSpaceId: 工作空间 SerialId
|
3180
|
+
# @type WorkSpaceId: String
|
3181
|
+
# @param JobsCount: 1
|
3182
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3183
|
+
# @type JobsCount: Integer
|
3184
|
+
|
3185
|
+
attr_accessor :SerialId, :AppId, :OwnerUin, :CreatorUin, :WorkSpaceName, :Region, :CreateTime, :UpdateTime, :Status, :Description, :ClusterGroupSetItem, :RoleAuth, :RoleAuthCount, :WorkSpaceId, :JobsCount
|
3186
|
+
|
3187
|
+
def initialize(serialid=nil, appid=nil, owneruin=nil, creatoruin=nil, workspacename=nil, region=nil, createtime=nil, updatetime=nil, status=nil, description=nil, clustergroupsetitem=nil, roleauth=nil, roleauthcount=nil, workspaceid=nil, jobscount=nil)
|
3188
|
+
@SerialId = serialid
|
3189
|
+
@AppId = appid
|
3190
|
+
@OwnerUin = owneruin
|
3191
|
+
@CreatorUin = creatoruin
|
3192
|
+
@WorkSpaceName = workspacename
|
3193
|
+
@Region = region
|
3194
|
+
@CreateTime = createtime
|
3195
|
+
@UpdateTime = updatetime
|
3196
|
+
@Status = status
|
3197
|
+
@Description = description
|
3198
|
+
@ClusterGroupSetItem = clustergroupsetitem
|
3199
|
+
@RoleAuth = roleauth
|
3200
|
+
@RoleAuthCount = roleauthcount
|
3201
|
+
@WorkSpaceId = workspaceid
|
3202
|
+
@JobsCount = jobscount
|
3203
|
+
end
|
3204
|
+
|
3205
|
+
def deserialize(params)
|
3206
|
+
@SerialId = params['SerialId']
|
3207
|
+
@AppId = params['AppId']
|
3208
|
+
@OwnerUin = params['OwnerUin']
|
3209
|
+
@CreatorUin = params['CreatorUin']
|
3210
|
+
@WorkSpaceName = params['WorkSpaceName']
|
3211
|
+
@Region = params['Region']
|
3212
|
+
@CreateTime = params['CreateTime']
|
3213
|
+
@UpdateTime = params['UpdateTime']
|
3214
|
+
@Status = params['Status']
|
3215
|
+
@Description = params['Description']
|
3216
|
+
unless params['ClusterGroupSetItem'].nil?
|
3217
|
+
@ClusterGroupSetItem = []
|
3218
|
+
params['ClusterGroupSetItem'].each do |i|
|
3219
|
+
clustergroupsetitem_tmp = ClusterGroupSetItem.new
|
3220
|
+
clustergroupsetitem_tmp.deserialize(i)
|
3221
|
+
@ClusterGroupSetItem << clustergroupsetitem_tmp
|
3222
|
+
end
|
3223
|
+
end
|
3224
|
+
unless params['RoleAuth'].nil?
|
3225
|
+
@RoleAuth = []
|
3226
|
+
params['RoleAuth'].each do |i|
|
3227
|
+
roleauth_tmp = RoleAuth.new
|
3228
|
+
roleauth_tmp.deserialize(i)
|
3229
|
+
@RoleAuth << roleauth_tmp
|
3230
|
+
end
|
3231
|
+
end
|
3232
|
+
@RoleAuthCount = params['RoleAuthCount']
|
3233
|
+
@WorkSpaceId = params['WorkSpaceId']
|
3234
|
+
@JobsCount = params['JobsCount']
|
3235
|
+
end
|
3236
|
+
end
|
3237
|
+
|
2933
3238
|
end
|
2934
3239
|
end
|
2935
3240
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-oceanus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.595
|
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-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|