tencentcloud-sdk-thpc 3.0.898 → 3.0.899
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/v20230321/client.rb +72 -0
- data/lib/v20230321/models.rb +218 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bab926fdc1b4de2683f994de7bfa82c20ec87210
|
4
|
+
data.tar.gz: 93939d4039998cf1bebef4ce4bbadfa028491ac5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8b8975e2a9f7cdc13feba001070237261f1651cf6e19223009056ba530343f144493743cbd69a633a4b475c36673391e36516aa95f6933a64a3fcc0a928f949
|
7
|
+
data.tar.gz: f9a1e7b8dd9f30d3b5e5f5808357d79d25e0c823bb5ba43e80e96756e4f5339592bf77dadb09658e75b032ae0f14d2edbd2145063bf9988fd7498c8873ec4582
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.899
|
data/lib/v20230321/client.rb
CHANGED
@@ -444,6 +444,30 @@ module TencentCloud
|
|
444
444
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
445
445
|
end
|
446
446
|
|
447
|
+
# 本接口(DescribeWorkspaces)用于查询工作空间列表。
|
448
|
+
|
449
|
+
# @param request: Request instance for DescribeWorkspaces.
|
450
|
+
# @type request: :class:`Tencentcloud::thpc::V20230321::DescribeWorkspacesRequest`
|
451
|
+
# @rtype: :class:`Tencentcloud::thpc::V20230321::DescribeWorkspacesResponse`
|
452
|
+
def DescribeWorkspaces(request)
|
453
|
+
body = send_request('DescribeWorkspaces', request.serialize)
|
454
|
+
response = JSON.parse(body)
|
455
|
+
if response['Response'].key?('Error') == false
|
456
|
+
model = DescribeWorkspacesResponse.new
|
457
|
+
model.deserialize(response['Response'])
|
458
|
+
model
|
459
|
+
else
|
460
|
+
code = response['Response']['Error']['Code']
|
461
|
+
message = response['Response']['Error']['Message']
|
462
|
+
reqid = response['Response']['RequestId']
|
463
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
464
|
+
end
|
465
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
466
|
+
raise e
|
467
|
+
rescue StandardError => e
|
468
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
469
|
+
end
|
470
|
+
|
447
471
|
# 本接口 (DetachNodes) 用于将一个或者多个计算节点从集群中移除,但是不销毁指定计算资源。
|
448
472
|
|
449
473
|
# @param request: Request instance for DetachNodes.
|
@@ -492,6 +516,30 @@ module TencentCloud
|
|
492
516
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
493
517
|
end
|
494
518
|
|
519
|
+
# 本接口 (ModifyWorkspacesAttribute) 用于修改工作空间的属性(目前只支持修改工作空间的名称)。
|
520
|
+
|
521
|
+
# @param request: Request instance for ModifyWorkspacesAttribute.
|
522
|
+
# @type request: :class:`Tencentcloud::thpc::V20230321::ModifyWorkspacesAttributeRequest`
|
523
|
+
# @rtype: :class:`Tencentcloud::thpc::V20230321::ModifyWorkspacesAttributeResponse`
|
524
|
+
def ModifyWorkspacesAttribute(request)
|
525
|
+
body = send_request('ModifyWorkspacesAttribute', request.serialize)
|
526
|
+
response = JSON.parse(body)
|
527
|
+
if response['Response'].key?('Error') == false
|
528
|
+
model = ModifyWorkspacesAttributeResponse.new
|
529
|
+
model.deserialize(response['Response'])
|
530
|
+
model
|
531
|
+
else
|
532
|
+
code = response['Response']['Error']['Code']
|
533
|
+
message = response['Response']['Error']['Message']
|
534
|
+
reqid = response['Response']['RequestId']
|
535
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
536
|
+
end
|
537
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
538
|
+
raise e
|
539
|
+
rescue StandardError => e
|
540
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
541
|
+
end
|
542
|
+
|
495
543
|
# 本接口(SetAutoScalingConfiguration)用于为集群设置集群弹性伸缩配置信息。
|
496
544
|
|
497
545
|
# @param request: Request instance for SetAutoScalingConfiguration.
|
@@ -516,6 +564,30 @@ module TencentCloud
|
|
516
564
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
517
565
|
end
|
518
566
|
|
567
|
+
# 本接口 (TerminateWorkspaces) 用于主动退还工作空间。
|
568
|
+
|
569
|
+
# @param request: Request instance for TerminateWorkspaces.
|
570
|
+
# @type request: :class:`Tencentcloud::thpc::V20230321::TerminateWorkspacesRequest`
|
571
|
+
# @rtype: :class:`Tencentcloud::thpc::V20230321::TerminateWorkspacesResponse`
|
572
|
+
def TerminateWorkspaces(request)
|
573
|
+
body = send_request('TerminateWorkspaces', request.serialize)
|
574
|
+
response = JSON.parse(body)
|
575
|
+
if response['Response'].key?('Error') == false
|
576
|
+
model = TerminateWorkspacesResponse.new
|
577
|
+
model.deserialize(response['Response'])
|
578
|
+
model
|
579
|
+
else
|
580
|
+
code = response['Response']['Error']['Code']
|
581
|
+
message = response['Response']['Error']['Message']
|
582
|
+
reqid = response['Response']['RequestId']
|
583
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
584
|
+
end
|
585
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
586
|
+
raise e
|
587
|
+
rescue StandardError => e
|
588
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
589
|
+
end
|
590
|
+
|
519
591
|
|
520
592
|
end
|
521
593
|
end
|
data/lib/v20230321/models.rb
CHANGED
@@ -1472,6 +1472,72 @@ module TencentCloud
|
|
1472
1472
|
end
|
1473
1473
|
end
|
1474
1474
|
|
1475
|
+
# DescribeWorkspaces请求参数结构体
|
1476
|
+
class DescribeWorkspacesRequest < TencentCloud::Common::AbstractModel
|
1477
|
+
# @param SpaceIds: 集群ID列表。通过该参数可以指定需要查询信息的集群列表。<br>如果您不指定该参数,则返回Limit数量以内的集群信息。
|
1478
|
+
# @type SpaceIds: Array
|
1479
|
+
# @param Offset: 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
1480
|
+
# @type Offset: Integer
|
1481
|
+
# @param Limit: 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
1482
|
+
# @type Limit: Integer
|
1483
|
+
# @param Filters: 过滤列表
|
1484
|
+
# @type Filters: Array
|
1485
|
+
|
1486
|
+
attr_accessor :SpaceIds, :Offset, :Limit, :Filters
|
1487
|
+
|
1488
|
+
def initialize(spaceids=nil, offset=nil, limit=nil, filters=nil)
|
1489
|
+
@SpaceIds = spaceids
|
1490
|
+
@Offset = offset
|
1491
|
+
@Limit = limit
|
1492
|
+
@Filters = filters
|
1493
|
+
end
|
1494
|
+
|
1495
|
+
def deserialize(params)
|
1496
|
+
@SpaceIds = params['SpaceIds']
|
1497
|
+
@Offset = params['Offset']
|
1498
|
+
@Limit = params['Limit']
|
1499
|
+
unless params['Filters'].nil?
|
1500
|
+
@Filters = []
|
1501
|
+
params['Filters'].each do |i|
|
1502
|
+
filter_tmp = Filter.new
|
1503
|
+
filter_tmp.deserialize(i)
|
1504
|
+
@Filters << filter_tmp
|
1505
|
+
end
|
1506
|
+
end
|
1507
|
+
end
|
1508
|
+
end
|
1509
|
+
|
1510
|
+
# DescribeWorkspaces返回参数结构体
|
1511
|
+
class DescribeWorkspacesResponse < TencentCloud::Common::AbstractModel
|
1512
|
+
# @param SpaceSet: 集群概览信息列表
|
1513
|
+
# @type SpaceSet: Array
|
1514
|
+
# @param TotalCount: 集群数量
|
1515
|
+
# @type TotalCount: Integer
|
1516
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1517
|
+
# @type RequestId: String
|
1518
|
+
|
1519
|
+
attr_accessor :SpaceSet, :TotalCount, :RequestId
|
1520
|
+
|
1521
|
+
def initialize(spaceset=nil, totalcount=nil, requestid=nil)
|
1522
|
+
@SpaceSet = spaceset
|
1523
|
+
@TotalCount = totalcount
|
1524
|
+
@RequestId = requestid
|
1525
|
+
end
|
1526
|
+
|
1527
|
+
def deserialize(params)
|
1528
|
+
unless params['SpaceSet'].nil?
|
1529
|
+
@SpaceSet = []
|
1530
|
+
params['SpaceSet'].each do |i|
|
1531
|
+
spaceinfo_tmp = SpaceInfo.new
|
1532
|
+
spaceinfo_tmp.deserialize(i)
|
1533
|
+
@SpaceSet << spaceinfo_tmp
|
1534
|
+
end
|
1535
|
+
end
|
1536
|
+
@TotalCount = params['TotalCount']
|
1537
|
+
@RequestId = params['RequestId']
|
1538
|
+
end
|
1539
|
+
end
|
1540
|
+
|
1475
1541
|
# DetachNodes请求参数结构体
|
1476
1542
|
class DetachNodesRequest < TencentCloud::Common::AbstractModel
|
1477
1543
|
# @param ClusterId: 集群id
|
@@ -2066,6 +2132,42 @@ module TencentCloud
|
|
2066
2132
|
end
|
2067
2133
|
end
|
2068
2134
|
|
2135
|
+
# ModifyWorkspacesAttribute请求参数结构体
|
2136
|
+
class ModifyWorkspacesAttributeRequest < TencentCloud::Common::AbstractModel
|
2137
|
+
# @param SpaceIds: 工作空间列表
|
2138
|
+
# @type SpaceIds: Array
|
2139
|
+
# @param SpaceName: 修改后的工作空间名称。可任意命名,但不得超过60个字符。
|
2140
|
+
# @type SpaceName: String
|
2141
|
+
|
2142
|
+
attr_accessor :SpaceIds, :SpaceName
|
2143
|
+
|
2144
|
+
def initialize(spaceids=nil, spacename=nil)
|
2145
|
+
@SpaceIds = spaceids
|
2146
|
+
@SpaceName = spacename
|
2147
|
+
end
|
2148
|
+
|
2149
|
+
def deserialize(params)
|
2150
|
+
@SpaceIds = params['SpaceIds']
|
2151
|
+
@SpaceName = params['SpaceName']
|
2152
|
+
end
|
2153
|
+
end
|
2154
|
+
|
2155
|
+
# ModifyWorkspacesAttribute返回参数结构体
|
2156
|
+
class ModifyWorkspacesAttributeResponse < TencentCloud::Common::AbstractModel
|
2157
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2158
|
+
# @type RequestId: String
|
2159
|
+
|
2160
|
+
attr_accessor :RequestId
|
2161
|
+
|
2162
|
+
def initialize(requestid=nil)
|
2163
|
+
@RequestId = requestid
|
2164
|
+
end
|
2165
|
+
|
2166
|
+
def deserialize(params)
|
2167
|
+
@RequestId = params['RequestId']
|
2168
|
+
end
|
2169
|
+
end
|
2170
|
+
|
2069
2171
|
# 节点活动信息。
|
2070
2172
|
class NodeActivity < TencentCloud::Common::AbstractModel
|
2071
2173
|
# @param NodeInstanceId: 节点活动所在的实例ID。
|
@@ -2627,6 +2729,86 @@ module TencentCloud
|
|
2627
2729
|
end
|
2628
2730
|
end
|
2629
2731
|
|
2732
|
+
# 描述工作空间的信息
|
2733
|
+
class SpaceInfo < TencentCloud::Common::AbstractModel
|
2734
|
+
# @param SpaceId: 工作空间ID
|
2735
|
+
# @type SpaceId: String
|
2736
|
+
# @param SpaceFamily: 工作空间类型
|
2737
|
+
# @type SpaceFamily: String
|
2738
|
+
# @param SpaceType: 工作空间规格
|
2739
|
+
# @type SpaceType: String
|
2740
|
+
# @param SpaceName: 工作空间名称
|
2741
|
+
# @type SpaceName: String
|
2742
|
+
# @param SpaceState: 工作空间状态。取值范围:<br><li>PENDING:表示创建中<br></li><li>LAUNCH_FAILED:表示创建失败<br></li><li>ONLINE:表示运行中<br></li><li>ARREARS:表示隔离中<br></li><li>TERMINATING:表示销毁中。<br></li>
|
2743
|
+
# @type SpaceState: String
|
2744
|
+
# @param SpaceChargeType: 工作空间计费模式
|
2745
|
+
# @type SpaceChargeType: String
|
2746
|
+
# @param ResourceId: 工作空间对应资源ID
|
2747
|
+
# @type ResourceId: String
|
2748
|
+
# @param RenewFlag: 自动续费标识
|
2749
|
+
# @type RenewFlag: String
|
2750
|
+
# @param Tags: 工作空间关联的工作列表
|
2751
|
+
# @type Tags: Array
|
2752
|
+
# @param CreatedTime: 创建时间
|
2753
|
+
# @type CreatedTime: String
|
2754
|
+
# @param ExpiredTime: 到期时间
|
2755
|
+
# @type ExpiredTime: String
|
2756
|
+
# @param Placement: 工作空间所在位置
|
2757
|
+
# @type Placement: :class:`Tencentcloud::Thpc.v20230321.models.Placement`
|
2758
|
+
# @param LatestOperation: 工作空间的最新操作
|
2759
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2760
|
+
# @type LatestOperation: String
|
2761
|
+
# @param LatestOperationState: 工作空间的最新操作状态
|
2762
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2763
|
+
# @type LatestOperationState: String
|
2764
|
+
|
2765
|
+
attr_accessor :SpaceId, :SpaceFamily, :SpaceType, :SpaceName, :SpaceState, :SpaceChargeType, :ResourceId, :RenewFlag, :Tags, :CreatedTime, :ExpiredTime, :Placement, :LatestOperation, :LatestOperationState
|
2766
|
+
|
2767
|
+
def initialize(spaceid=nil, spacefamily=nil, spacetype=nil, spacename=nil, spacestate=nil, spacechargetype=nil, resourceid=nil, renewflag=nil, tags=nil, createdtime=nil, expiredtime=nil, placement=nil, latestoperation=nil, latestoperationstate=nil)
|
2768
|
+
@SpaceId = spaceid
|
2769
|
+
@SpaceFamily = spacefamily
|
2770
|
+
@SpaceType = spacetype
|
2771
|
+
@SpaceName = spacename
|
2772
|
+
@SpaceState = spacestate
|
2773
|
+
@SpaceChargeType = spacechargetype
|
2774
|
+
@ResourceId = resourceid
|
2775
|
+
@RenewFlag = renewflag
|
2776
|
+
@Tags = tags
|
2777
|
+
@CreatedTime = createdtime
|
2778
|
+
@ExpiredTime = expiredtime
|
2779
|
+
@Placement = placement
|
2780
|
+
@LatestOperation = latestoperation
|
2781
|
+
@LatestOperationState = latestoperationstate
|
2782
|
+
end
|
2783
|
+
|
2784
|
+
def deserialize(params)
|
2785
|
+
@SpaceId = params['SpaceId']
|
2786
|
+
@SpaceFamily = params['SpaceFamily']
|
2787
|
+
@SpaceType = params['SpaceType']
|
2788
|
+
@SpaceName = params['SpaceName']
|
2789
|
+
@SpaceState = params['SpaceState']
|
2790
|
+
@SpaceChargeType = params['SpaceChargeType']
|
2791
|
+
@ResourceId = params['ResourceId']
|
2792
|
+
@RenewFlag = params['RenewFlag']
|
2793
|
+
unless params['Tags'].nil?
|
2794
|
+
@Tags = []
|
2795
|
+
params['Tags'].each do |i|
|
2796
|
+
tag_tmp = Tag.new
|
2797
|
+
tag_tmp.deserialize(i)
|
2798
|
+
@Tags << tag_tmp
|
2799
|
+
end
|
2800
|
+
end
|
2801
|
+
@CreatedTime = params['CreatedTime']
|
2802
|
+
@ExpiredTime = params['ExpiredTime']
|
2803
|
+
unless params['Placement'].nil?
|
2804
|
+
@Placement = Placement.new
|
2805
|
+
@Placement.deserialize(params['Placement'])
|
2806
|
+
end
|
2807
|
+
@LatestOperation = params['LatestOperation']
|
2808
|
+
@LatestOperationState = params['LatestOperationState']
|
2809
|
+
end
|
2810
|
+
end
|
2811
|
+
|
2630
2812
|
# 描述了工作空间的公网可访问性,声明了工作空间的公网使用计费模式,最大带宽等
|
2631
2813
|
class SpaceInternetAccessible < TencentCloud::Common::AbstractModel
|
2632
2814
|
# @param InternetChargeType: 网络计费类型
|
@@ -2901,6 +3083,42 @@ module TencentCloud
|
|
2901
3083
|
end
|
2902
3084
|
end
|
2903
3085
|
|
3086
|
+
# TerminateWorkspaces请求参数结构体
|
3087
|
+
class TerminateWorkspacesRequest < TencentCloud::Common::AbstractModel
|
3088
|
+
# @param SpaceIds: 工作空间ID
|
3089
|
+
# @type SpaceIds: Array
|
3090
|
+
# @param ReleasePrepaidDataDisks: 释放空间挂载的包年包月数据盘。true表示销毁空间同时释放包年包月数据盘,false表示只销毁空间。
|
3091
|
+
# @type ReleasePrepaidDataDisks: Boolean
|
3092
|
+
|
3093
|
+
attr_accessor :SpaceIds, :ReleasePrepaidDataDisks
|
3094
|
+
|
3095
|
+
def initialize(spaceids=nil, releaseprepaiddatadisks=nil)
|
3096
|
+
@SpaceIds = spaceids
|
3097
|
+
@ReleasePrepaidDataDisks = releaseprepaiddatadisks
|
3098
|
+
end
|
3099
|
+
|
3100
|
+
def deserialize(params)
|
3101
|
+
@SpaceIds = params['SpaceIds']
|
3102
|
+
@ReleasePrepaidDataDisks = params['ReleasePrepaidDataDisks']
|
3103
|
+
end
|
3104
|
+
end
|
3105
|
+
|
3106
|
+
# TerminateWorkspaces返回参数结构体
|
3107
|
+
class TerminateWorkspacesResponse < TencentCloud::Common::AbstractModel
|
3108
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3109
|
+
# @type RequestId: String
|
3110
|
+
|
3111
|
+
attr_accessor :RequestId
|
3112
|
+
|
3113
|
+
def initialize(requestid=nil)
|
3114
|
+
@RequestId = requestid
|
3115
|
+
end
|
3116
|
+
|
3117
|
+
def deserialize(params)
|
3118
|
+
@RequestId = params['RequestId']
|
3119
|
+
end
|
3120
|
+
end
|
3121
|
+
|
2904
3122
|
# 描述了VPC相关信息
|
2905
3123
|
class VirtualPrivateCloud < TencentCloud::Common::AbstractModel
|
2906
3124
|
# @param VpcId: 私有网络ID,形如`vpc-xxx`。有效的VpcId可通过登录[控制台](https://console.cloud.tencent.com/vpc/vpc?rid=1)查询;也可以调用接口 [DescribeVpcEx](/document/api/215/1372) ,从接口返回中的`unVpcId`字段获取。若在创建子机时VpcId与SubnetId同时传入`DEFAULT`,则强制使用默认vpc网络。
|