tencentcloud-sdk-thpc 3.0.561 → 3.0.563
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/v20230321/client.rb +24 -0
- data/lib/v20230321/models.rb +94 -8
- 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: d01fe504a96fa009b62dc33e8c42a37d9495342f
|
4
|
+
data.tar.gz: 6136315621e4b781ed375c5c9705da0d858b3287
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1110a64a6464f4d812bac89004a19f75b435e929b348cd7ea3dcb9607791659c93f4f5eab1b44f7c3a77deae54ee0c2dfc95e46b0e96fbfea99a361812ddc48f
|
7
|
+
data.tar.gz: 38f50b2b24c8a8d170c052b27681d104b7c568012d40efc4ab236323207ec5f21455dc117e8a9efd027995346c5e3250fe606d77fe8bb125e4d00debe6e68557
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.563
|
data/lib/v20230321/client.rb
CHANGED
@@ -372,6 +372,30 @@ module TencentCloud
|
|
372
372
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
373
373
|
end
|
374
374
|
|
375
|
+
# 本接口 (ModifyInitNodeScripts) 用于修改节点初始化脚本。
|
376
|
+
|
377
|
+
# @param request: Request instance for ModifyInitNodeScripts.
|
378
|
+
# @type request: :class:`Tencentcloud::thpc::V20230321::ModifyInitNodeScriptsRequest`
|
379
|
+
# @rtype: :class:`Tencentcloud::thpc::V20230321::ModifyInitNodeScriptsResponse`
|
380
|
+
def ModifyInitNodeScripts(request)
|
381
|
+
body = send_request('ModifyInitNodeScripts', request.serialize)
|
382
|
+
response = JSON.parse(body)
|
383
|
+
if response['Response'].key?('Error') == false
|
384
|
+
model = ModifyInitNodeScriptsResponse.new
|
385
|
+
model.deserialize(response['Response'])
|
386
|
+
model
|
387
|
+
else
|
388
|
+
code = response['Response']['Error']['Code']
|
389
|
+
message = response['Response']['Error']['Message']
|
390
|
+
reqid = response['Response']['RequestId']
|
391
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
392
|
+
end
|
393
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
394
|
+
raise e
|
395
|
+
rescue StandardError => e
|
396
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
397
|
+
end
|
398
|
+
|
375
399
|
# 本接口(SetAutoScalingConfiguration)用于为集群设置集群弹性伸缩配置信息。
|
376
400
|
|
377
401
|
# @param request: Request instance for SetAutoScalingConfiguration.
|
data/lib/v20230321/models.rb
CHANGED
@@ -565,10 +565,12 @@ module TencentCloud
|
|
565
565
|
# @type Tags: Array
|
566
566
|
# @param AutoScalingType: 弹性伸缩类型。默认值:THPC_AS<br><li>THPC_AS:集群自动扩缩容由THPC产品内部实现。<br><li>AS:集群自动扩缩容由[弹性伸缩](https://cloud.tencent.com/document/product/377/3154)产品实现。
|
567
567
|
# @type AutoScalingType: String
|
568
|
+
# @param InitNodeScripts: 节点初始化脚本信息列表。
|
569
|
+
# @type InitNodeScripts: Array
|
568
570
|
|
569
|
-
attr_accessor :Placement, :ManagerNode, :ManagerNodeCount, :ComputeNode, :ComputeNodeCount, :SchedulerType, :ImageId, :VirtualPrivateCloud, :LoginSettings, :SecurityGroupIds, :ClientToken, :DryRun, :AccountType, :ClusterName, :StorageOption, :LoginNode, :LoginNodeCount, :Tags, :AutoScalingType
|
571
|
+
attr_accessor :Placement, :ManagerNode, :ManagerNodeCount, :ComputeNode, :ComputeNodeCount, :SchedulerType, :ImageId, :VirtualPrivateCloud, :LoginSettings, :SecurityGroupIds, :ClientToken, :DryRun, :AccountType, :ClusterName, :StorageOption, :LoginNode, :LoginNodeCount, :Tags, :AutoScalingType, :InitNodeScripts
|
570
572
|
|
571
|
-
def initialize(placement=nil, managernode=nil, managernodecount=nil, computenode=nil, computenodecount=nil, schedulertype=nil, imageid=nil, virtualprivatecloud=nil, loginsettings=nil, securitygroupids=nil, clienttoken=nil, dryrun=nil, accounttype=nil, clustername=nil, storageoption=nil, loginnode=nil, loginnodecount=nil, tags=nil, autoscalingtype=nil)
|
573
|
+
def initialize(placement=nil, managernode=nil, managernodecount=nil, computenode=nil, computenodecount=nil, schedulertype=nil, imageid=nil, virtualprivatecloud=nil, loginsettings=nil, securitygroupids=nil, clienttoken=nil, dryrun=nil, accounttype=nil, clustername=nil, storageoption=nil, loginnode=nil, loginnodecount=nil, tags=nil, autoscalingtype=nil, initnodescripts=nil)
|
572
574
|
@Placement = placement
|
573
575
|
@ManagerNode = managernode
|
574
576
|
@ManagerNodeCount = managernodecount
|
@@ -588,6 +590,7 @@ module TencentCloud
|
|
588
590
|
@LoginNodeCount = loginnodecount
|
589
591
|
@Tags = tags
|
590
592
|
@AutoScalingType = autoscalingtype
|
593
|
+
@InitNodeScripts = initnodescripts
|
591
594
|
end
|
592
595
|
|
593
596
|
def deserialize(params)
|
@@ -638,6 +641,14 @@ module TencentCloud
|
|
638
641
|
end
|
639
642
|
end
|
640
643
|
@AutoScalingType = params['AutoScalingType']
|
644
|
+
unless params['InitNodeScripts'].nil?
|
645
|
+
@InitNodeScripts = []
|
646
|
+
params['InitNodeScripts'].each do |i|
|
647
|
+
nodescript_tmp = NodeScript.new
|
648
|
+
nodescript_tmp.deserialize(i)
|
649
|
+
@InitNodeScripts << nodescript_tmp
|
650
|
+
end
|
651
|
+
end
|
641
652
|
end
|
642
653
|
end
|
643
654
|
|
@@ -1605,6 +1616,49 @@ module TencentCloud
|
|
1605
1616
|
end
|
1606
1617
|
end
|
1607
1618
|
|
1619
|
+
# ModifyInitNodeScripts请求参数结构体
|
1620
|
+
class ModifyInitNodeScriptsRequest < TencentCloud::Common::AbstractModel
|
1621
|
+
# @param ClusterId: 集群ID。
|
1622
|
+
# @type ClusterId: String
|
1623
|
+
# @param InitNodeScripts: 节点初始化脚本信息列表。
|
1624
|
+
# @type InitNodeScripts: Array
|
1625
|
+
|
1626
|
+
attr_accessor :ClusterId, :InitNodeScripts
|
1627
|
+
|
1628
|
+
def initialize(clusterid=nil, initnodescripts=nil)
|
1629
|
+
@ClusterId = clusterid
|
1630
|
+
@InitNodeScripts = initnodescripts
|
1631
|
+
end
|
1632
|
+
|
1633
|
+
def deserialize(params)
|
1634
|
+
@ClusterId = params['ClusterId']
|
1635
|
+
unless params['InitNodeScripts'].nil?
|
1636
|
+
@InitNodeScripts = []
|
1637
|
+
params['InitNodeScripts'].each do |i|
|
1638
|
+
nodescript_tmp = NodeScript.new
|
1639
|
+
nodescript_tmp.deserialize(i)
|
1640
|
+
@InitNodeScripts << nodescript_tmp
|
1641
|
+
end
|
1642
|
+
end
|
1643
|
+
end
|
1644
|
+
end
|
1645
|
+
|
1646
|
+
# ModifyInitNodeScripts返回参数结构体
|
1647
|
+
class ModifyInitNodeScriptsResponse < TencentCloud::Common::AbstractModel
|
1648
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1649
|
+
# @type RequestId: String
|
1650
|
+
|
1651
|
+
attr_accessor :RequestId
|
1652
|
+
|
1653
|
+
def initialize(requestid=nil)
|
1654
|
+
@RequestId = requestid
|
1655
|
+
end
|
1656
|
+
|
1657
|
+
def deserialize(params)
|
1658
|
+
@RequestId = params['RequestId']
|
1659
|
+
end
|
1660
|
+
end
|
1661
|
+
|
1608
1662
|
# 节点活动信息。
|
1609
1663
|
class NodeActivity < TencentCloud::Common::AbstractModel
|
1610
1664
|
# @param NodeInstanceId: 节点活动所在的实例ID。
|
@@ -1683,6 +1737,29 @@ module TencentCloud
|
|
1683
1737
|
end
|
1684
1738
|
end
|
1685
1739
|
|
1740
|
+
# 描述节点执行脚本信息。
|
1741
|
+
class NodeScript < TencentCloud::Common::AbstractModel
|
1742
|
+
# @param ScriptPath: 节点执行脚本获取地址。
|
1743
|
+
# 目前仅支持cos地址。地址最大长度:255。
|
1744
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1745
|
+
# @type ScriptPath: String
|
1746
|
+
# @param Timeout: 脚本执行超时时间(包含拉取脚本的时间)。单位秒,默认值:30。取值范围:10~1200。
|
1747
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1748
|
+
# @type Timeout: Integer
|
1749
|
+
|
1750
|
+
attr_accessor :ScriptPath, :Timeout
|
1751
|
+
|
1752
|
+
def initialize(scriptpath=nil, timeout=nil)
|
1753
|
+
@ScriptPath = scriptpath
|
1754
|
+
@Timeout = timeout
|
1755
|
+
end
|
1756
|
+
|
1757
|
+
def deserialize(params)
|
1758
|
+
@ScriptPath = params['ScriptPath']
|
1759
|
+
@Timeout = params['Timeout']
|
1760
|
+
end
|
1761
|
+
end
|
1762
|
+
|
1686
1763
|
# 描述了实例的抽象位置
|
1687
1764
|
class Placement < TencentCloud::Common::AbstractModel
|
1688
1765
|
# @param Zone: 实例所属的可用区名称。该参数可以通过调用 [DescribeZones](https://cloud.tencent.com/document/product/213/15707) 的返回值中的Zone字段来获取。
|
@@ -1704,9 +1781,9 @@ module TencentCloud
|
|
1704
1781
|
class QueueConfig < TencentCloud::Common::AbstractModel
|
1705
1782
|
# @param QueueName: 队列名称。
|
1706
1783
|
# @type QueueName: String
|
1707
|
-
# @param MinSize:
|
1784
|
+
# @param MinSize: 队列中弹性节点数量最小值。默认值:0。取值范围:0~200。
|
1708
1785
|
# @type MinSize: Integer
|
1709
|
-
# @param MaxSize:
|
1786
|
+
# @param MaxSize: 队列中弹性节点数量最大值。默认值:10。取值范围:0~200。
|
1710
1787
|
# @type MaxSize: Integer
|
1711
1788
|
# @param EnableAutoExpansion: 是否开启自动扩容。
|
1712
1789
|
# @type EnableAutoExpansion: Boolean
|
@@ -1722,10 +1799,12 @@ module TencentCloud
|
|
1722
1799
|
# @type InternetAccessible: :class:`Tencentcloud::Thpc.v20230321.models.InternetAccessible`
|
1723
1800
|
# @param ExpansionNodeConfigs: 扩容节点配置信息。
|
1724
1801
|
# @type ExpansionNodeConfigs: Array
|
1802
|
+
# @param DesiredIdleNodeCapacity: 队列中期望的空闲节点数量(包含弹性节点和静态节点)。默认值:0。队列中,处于空闲状态的节点小于此值,集群会扩容弹性节点;处于空闲状态的节点大于此值,集群会缩容弹性节点。
|
1803
|
+
# @type DesiredIdleNodeCapacity: Integer
|
1725
1804
|
|
1726
|
-
attr_accessor :QueueName, :MinSize, :MaxSize, :EnableAutoExpansion, :EnableAutoShrink, :ImageId, :SystemDisk, :DataDisks, :InternetAccessible, :ExpansionNodeConfigs
|
1805
|
+
attr_accessor :QueueName, :MinSize, :MaxSize, :EnableAutoExpansion, :EnableAutoShrink, :ImageId, :SystemDisk, :DataDisks, :InternetAccessible, :ExpansionNodeConfigs, :DesiredIdleNodeCapacity
|
1727
1806
|
|
1728
|
-
def initialize(queuename=nil, minsize=nil, maxsize=nil, enableautoexpansion=nil, enableautoshrink=nil, imageid=nil, systemdisk=nil, datadisks=nil, internetaccessible=nil, expansionnodeconfigs=nil)
|
1807
|
+
def initialize(queuename=nil, minsize=nil, maxsize=nil, enableautoexpansion=nil, enableautoshrink=nil, imageid=nil, systemdisk=nil, datadisks=nil, internetaccessible=nil, expansionnodeconfigs=nil, desiredidlenodecapacity=nil)
|
1729
1808
|
@QueueName = queuename
|
1730
1809
|
@MinSize = minsize
|
1731
1810
|
@MaxSize = maxsize
|
@@ -1736,6 +1815,7 @@ module TencentCloud
|
|
1736
1815
|
@DataDisks = datadisks
|
1737
1816
|
@InternetAccessible = internetaccessible
|
1738
1817
|
@ExpansionNodeConfigs = expansionnodeconfigs
|
1818
|
+
@DesiredIdleNodeCapacity = desiredidlenodecapacity
|
1739
1819
|
end
|
1740
1820
|
|
1741
1821
|
def deserialize(params)
|
@@ -1769,6 +1849,7 @@ module TencentCloud
|
|
1769
1849
|
@ExpansionNodeConfigs << expansionnodeconfig_tmp
|
1770
1850
|
end
|
1771
1851
|
end
|
1852
|
+
@DesiredIdleNodeCapacity = params['DesiredIdleNodeCapacity']
|
1772
1853
|
end
|
1773
1854
|
end
|
1774
1855
|
|
@@ -1786,16 +1867,20 @@ module TencentCloud
|
|
1786
1867
|
# @type EnableAutoShrink: Boolean
|
1787
1868
|
# @param ExpansionNodeConfigs: 扩容节点配置信息。
|
1788
1869
|
# @type ExpansionNodeConfigs: Array
|
1870
|
+
# @param DesiredIdleNodeCapacity: 队列中期望的空闲节点数量(包含弹性节点和静态节点)。默认值:0。队列中,处于空闲状态的节点小于此值,集群会扩容弹性节点;处于空闲状态的节点大于此值,集群会缩容弹性节点。
|
1871
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1872
|
+
# @type DesiredIdleNodeCapacity: Integer
|
1789
1873
|
|
1790
|
-
attr_accessor :QueueName, :MinSize, :MaxSize, :EnableAutoExpansion, :EnableAutoShrink, :ExpansionNodeConfigs
|
1874
|
+
attr_accessor :QueueName, :MinSize, :MaxSize, :EnableAutoExpansion, :EnableAutoShrink, :ExpansionNodeConfigs, :DesiredIdleNodeCapacity
|
1791
1875
|
|
1792
|
-
def initialize(queuename=nil, minsize=nil, maxsize=nil, enableautoexpansion=nil, enableautoshrink=nil, expansionnodeconfigs=nil)
|
1876
|
+
def initialize(queuename=nil, minsize=nil, maxsize=nil, enableautoexpansion=nil, enableautoshrink=nil, expansionnodeconfigs=nil, desiredidlenodecapacity=nil)
|
1793
1877
|
@QueueName = queuename
|
1794
1878
|
@MinSize = minsize
|
1795
1879
|
@MaxSize = maxsize
|
1796
1880
|
@EnableAutoExpansion = enableautoexpansion
|
1797
1881
|
@EnableAutoShrink = enableautoshrink
|
1798
1882
|
@ExpansionNodeConfigs = expansionnodeconfigs
|
1883
|
+
@DesiredIdleNodeCapacity = desiredidlenodecapacity
|
1799
1884
|
end
|
1800
1885
|
|
1801
1886
|
def deserialize(params)
|
@@ -1812,6 +1897,7 @@ module TencentCloud
|
|
1812
1897
|
@ExpansionNodeConfigs << expansionnodeconfigoverview_tmp
|
1813
1898
|
end
|
1814
1899
|
end
|
1900
|
+
@DesiredIdleNodeCapacity = params['DesiredIdleNodeCapacity']
|
1815
1901
|
end
|
1816
1902
|
end
|
1817
1903
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-thpc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.563
|
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-
|
11
|
+
date: 2023-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|