tencentcloud-sdk-tsf 1.0.233 → 1.0.234
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/v20180326/client.rb +24 -0
- data/lib/v20180326/models.rb +231 -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: 58f0ac0591591cdcc0676f13c905b9c09e898a12
|
4
|
+
data.tar.gz: 9d39846823049c1faf5c47e836b84c8845d1e9d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8839e8fbdecfd00575b16eba011d1649fcd5eb9e7030115f588e9231eea50fd210986438c16455743a89e987931890f3802c8c66dba4dc5b1921adfc9aef85a3
|
7
|
+
data.tar.gz: 939da1deeef0ed2558eb3522dc480d6707c5a61179a330a45bc89ff8dbc3444debd94cc2044a7cea23657204050cbd06b7a0a379b4fa1dd0ae8fa17cb7c486f0
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.234
|
data/lib/v20180326/client.rb
CHANGED
@@ -1590,6 +1590,30 @@ module TencentCloud
|
|
1590
1590
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1591
1591
|
end
|
1592
1592
|
|
1593
|
+
# 获取部署组详情
|
1594
|
+
|
1595
|
+
# @param request: Request instance for DescribeContainerGroupDeployInfo.
|
1596
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeContainerGroupDeployInfoRequest`
|
1597
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeContainerGroupDeployInfoResponse`
|
1598
|
+
def DescribeContainerGroupDeployInfo(request)
|
1599
|
+
body = send_request('DescribeContainerGroupDeployInfo', request.serialize)
|
1600
|
+
response = JSON.parse(body)
|
1601
|
+
if response['Response'].key?('Error') == false
|
1602
|
+
model = DescribeContainerGroupDeployInfoResponse.new
|
1603
|
+
model.deserialize(response['Response'])
|
1604
|
+
model
|
1605
|
+
else
|
1606
|
+
code = response['Response']['Error']['Code']
|
1607
|
+
message = response['Response']['Error']['Message']
|
1608
|
+
reqid = response['Response']['RequestId']
|
1609
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1610
|
+
end
|
1611
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1612
|
+
raise e
|
1613
|
+
rescue StandardError => e
|
1614
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1615
|
+
end
|
1616
|
+
|
1593
1617
|
# 容器部署组详情(已废弃,请使用 DescribeContainerGroupDeployInfo)
|
1594
1618
|
|
1595
1619
|
# @param request: Request instance for DescribeContainerGroupDetail.
|
data/lib/v20180326/models.rb
CHANGED
@@ -1580,6 +1580,198 @@ module TencentCloud
|
|
1580
1580
|
end
|
1581
1581
|
end
|
1582
1582
|
|
1583
|
+
# 获取部署组
|
1584
|
+
class ContainerGroupDeploy < TencentCloud::Common::AbstractModel
|
1585
|
+
# @param GroupId: 部署组id
|
1586
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1587
|
+
# @type GroupId: String
|
1588
|
+
# @param GroupName: 分组名称
|
1589
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1590
|
+
# @type GroupName: String
|
1591
|
+
# @param InstanceNum: 实例总数
|
1592
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1593
|
+
# @type InstanceNum: Integer
|
1594
|
+
# @param CurrentNum: 已启动实例总数
|
1595
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1596
|
+
# @type CurrentNum: Integer
|
1597
|
+
# @param Server: 镜像server
|
1598
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1599
|
+
# @type Server: String
|
1600
|
+
# @param Reponame: 镜像名,如/tsf/nginx
|
1601
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1602
|
+
# @type Reponame: String
|
1603
|
+
# @param TagName: 镜像版本名称
|
1604
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1605
|
+
# @type TagName: String
|
1606
|
+
# @param CpuRequest: 业务容器初始分配的 CPU 核数,对应 K8S request
|
1607
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1608
|
+
# @type CpuRequest: String
|
1609
|
+
# @param CpuLimit: 业务容器最大分配的 CPU 核数,对应 K8S limit
|
1610
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1611
|
+
# @type CpuLimit: String
|
1612
|
+
# @param MemRequest: 业务容器初始分配的内存 MiB 数,对应 K8S request
|
1613
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1614
|
+
# @type MemRequest: String
|
1615
|
+
# @param MemLimit: 业务容器最大分配的内存 MiB 数,对应 K8S limit
|
1616
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1617
|
+
# @type MemLimit: String
|
1618
|
+
# @param AccessType: 0:公网 1:集群内访问 2:NodePort
|
1619
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1620
|
+
# @type AccessType: Integer
|
1621
|
+
# @param ProtocolPorts: 端口映射
|
1622
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1623
|
+
# @type ProtocolPorts: Array
|
1624
|
+
# @param UpdateType: 更新方式:0:快速更新 1:滚动更新
|
1625
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1626
|
+
# @type UpdateType: Integer
|
1627
|
+
# @param UpdateIvl: 更新间隔,单位秒
|
1628
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1629
|
+
# @type UpdateIvl: Integer
|
1630
|
+
# @param JvmOpts: jvm参数
|
1631
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1632
|
+
# @type JvmOpts: String
|
1633
|
+
# @param SubnetId: 子网id
|
1634
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1635
|
+
# @type SubnetId: String
|
1636
|
+
# @param AgentCpuRequest: agent容器初始分配的 CPU 核数,对应 K8S request
|
1637
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1638
|
+
# @type AgentCpuRequest: String
|
1639
|
+
# @param AgentCpuLimit: agent容器最大分配的 CPU 核数,对应 K8S limit
|
1640
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1641
|
+
# @type AgentCpuLimit: String
|
1642
|
+
# @param AgentMemRequest: agent容器初始分配的内存 MiB 数,对应 K8S request
|
1643
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1644
|
+
# @type AgentMemRequest: String
|
1645
|
+
# @param AgentMemLimit: agent容器最大分配的内存 MiB 数,对应 K8S limit
|
1646
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1647
|
+
# @type AgentMemLimit: String
|
1648
|
+
# @param IstioCpuRequest: istioproxy容器初始分配的 CPU 核数,对应 K8S request
|
1649
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1650
|
+
# @type IstioCpuRequest: String
|
1651
|
+
# @param IstioCpuLimit: istioproxy容器最大分配的 CPU 核数,对应 K8S limit
|
1652
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1653
|
+
# @type IstioCpuLimit: String
|
1654
|
+
# @param IstioMemRequest: istioproxy容器初始分配的内存 MiB 数,对应 K8S request
|
1655
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1656
|
+
# @type IstioMemRequest: String
|
1657
|
+
# @param IstioMemLimit: istioproxy容器最大分配的内存 MiB 数,对应 K8S limit
|
1658
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1659
|
+
# @type IstioMemLimit: String
|
1660
|
+
# @param Envs: 部署组的环境变量数组,这里没有展示 tsf 使用的环境变量,只展示了用户设置的环境变量。
|
1661
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1662
|
+
# @type Envs: Array
|
1663
|
+
# @param HealthCheckSettings: 健康检查配置信息,若不指定该参数,则默认不设置健康检查。
|
1664
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1665
|
+
# @type HealthCheckSettings: :class:`Tencentcloud::Tsf.v20180326.models.HealthCheckSettings`
|
1666
|
+
# @param DeployAgent: 是否部署Agent容器
|
1667
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1668
|
+
# @type DeployAgent: Boolean
|
1669
|
+
# @param Alias: 部署组备注
|
1670
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1671
|
+
# @type Alias: String
|
1672
|
+
# @param DisableService: 是否创建 k8s service
|
1673
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1674
|
+
# @type DisableService: Boolean
|
1675
|
+
# @param HeadlessService: service 是否为 headless 类型
|
1676
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1677
|
+
# @type HeadlessService: Boolean
|
1678
|
+
# @param TcrRepoInfo: TcrRepoInfo值
|
1679
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1680
|
+
# @type TcrRepoInfo: :class:`Tencentcloud::Tsf.v20180326.models.TcrRepoInfo`
|
1681
|
+
|
1682
|
+
attr_accessor :GroupId, :GroupName, :InstanceNum, :CurrentNum, :Server, :Reponame, :TagName, :CpuRequest, :CpuLimit, :MemRequest, :MemLimit, :AccessType, :ProtocolPorts, :UpdateType, :UpdateIvl, :JvmOpts, :SubnetId, :AgentCpuRequest, :AgentCpuLimit, :AgentMemRequest, :AgentMemLimit, :IstioCpuRequest, :IstioCpuLimit, :IstioMemRequest, :IstioMemLimit, :Envs, :HealthCheckSettings, :DeployAgent, :Alias, :DisableService, :HeadlessService, :TcrRepoInfo
|
1683
|
+
|
1684
|
+
def initialize(groupid=nil, groupname=nil, instancenum=nil, currentnum=nil, server=nil, reponame=nil, tagname=nil, cpurequest=nil, cpulimit=nil, memrequest=nil, memlimit=nil, accesstype=nil, protocolports=nil, updatetype=nil, updateivl=nil, jvmopts=nil, subnetid=nil, agentcpurequest=nil, agentcpulimit=nil, agentmemrequest=nil, agentmemlimit=nil, istiocpurequest=nil, istiocpulimit=nil, istiomemrequest=nil, istiomemlimit=nil, envs=nil, healthchecksettings=nil, deployagent=nil, _alias=nil, disableservice=nil, headlessservice=nil, tcrrepoinfo=nil)
|
1685
|
+
@GroupId = groupid
|
1686
|
+
@GroupName = groupname
|
1687
|
+
@InstanceNum = instancenum
|
1688
|
+
@CurrentNum = currentnum
|
1689
|
+
@Server = server
|
1690
|
+
@Reponame = reponame
|
1691
|
+
@TagName = tagname
|
1692
|
+
@CpuRequest = cpurequest
|
1693
|
+
@CpuLimit = cpulimit
|
1694
|
+
@MemRequest = memrequest
|
1695
|
+
@MemLimit = memlimit
|
1696
|
+
@AccessType = accesstype
|
1697
|
+
@ProtocolPorts = protocolports
|
1698
|
+
@UpdateType = updatetype
|
1699
|
+
@UpdateIvl = updateivl
|
1700
|
+
@JvmOpts = jvmopts
|
1701
|
+
@SubnetId = subnetid
|
1702
|
+
@AgentCpuRequest = agentcpurequest
|
1703
|
+
@AgentCpuLimit = agentcpulimit
|
1704
|
+
@AgentMemRequest = agentmemrequest
|
1705
|
+
@AgentMemLimit = agentmemlimit
|
1706
|
+
@IstioCpuRequest = istiocpurequest
|
1707
|
+
@IstioCpuLimit = istiocpulimit
|
1708
|
+
@IstioMemRequest = istiomemrequest
|
1709
|
+
@IstioMemLimit = istiomemlimit
|
1710
|
+
@Envs = envs
|
1711
|
+
@HealthCheckSettings = healthchecksettings
|
1712
|
+
@DeployAgent = deployagent
|
1713
|
+
@Alias = _alias
|
1714
|
+
@DisableService = disableservice
|
1715
|
+
@HeadlessService = headlessservice
|
1716
|
+
@TcrRepoInfo = tcrrepoinfo
|
1717
|
+
end
|
1718
|
+
|
1719
|
+
def deserialize(params)
|
1720
|
+
@GroupId = params['GroupId']
|
1721
|
+
@GroupName = params['GroupName']
|
1722
|
+
@InstanceNum = params['InstanceNum']
|
1723
|
+
@CurrentNum = params['CurrentNum']
|
1724
|
+
@Server = params['Server']
|
1725
|
+
@Reponame = params['Reponame']
|
1726
|
+
@TagName = params['TagName']
|
1727
|
+
@CpuRequest = params['CpuRequest']
|
1728
|
+
@CpuLimit = params['CpuLimit']
|
1729
|
+
@MemRequest = params['MemRequest']
|
1730
|
+
@MemLimit = params['MemLimit']
|
1731
|
+
@AccessType = params['AccessType']
|
1732
|
+
unless params['ProtocolPorts'].nil?
|
1733
|
+
@ProtocolPorts = []
|
1734
|
+
params['ProtocolPorts'].each do |i|
|
1735
|
+
protocolport_tmp = ProtocolPort.new
|
1736
|
+
protocolport_tmp.deserialize(i)
|
1737
|
+
@ProtocolPorts << protocolport_tmp
|
1738
|
+
end
|
1739
|
+
end
|
1740
|
+
@UpdateType = params['UpdateType']
|
1741
|
+
@UpdateIvl = params['UpdateIvl']
|
1742
|
+
@JvmOpts = params['JvmOpts']
|
1743
|
+
@SubnetId = params['SubnetId']
|
1744
|
+
@AgentCpuRequest = params['AgentCpuRequest']
|
1745
|
+
@AgentCpuLimit = params['AgentCpuLimit']
|
1746
|
+
@AgentMemRequest = params['AgentMemRequest']
|
1747
|
+
@AgentMemLimit = params['AgentMemLimit']
|
1748
|
+
@IstioCpuRequest = params['IstioCpuRequest']
|
1749
|
+
@IstioCpuLimit = params['IstioCpuLimit']
|
1750
|
+
@IstioMemRequest = params['IstioMemRequest']
|
1751
|
+
@IstioMemLimit = params['IstioMemLimit']
|
1752
|
+
unless params['Envs'].nil?
|
1753
|
+
@Envs = []
|
1754
|
+
params['Envs'].each do |i|
|
1755
|
+
env_tmp = Env.new
|
1756
|
+
env_tmp.deserialize(i)
|
1757
|
+
@Envs << env_tmp
|
1758
|
+
end
|
1759
|
+
end
|
1760
|
+
unless params['HealthCheckSettings'].nil?
|
1761
|
+
@HealthCheckSettings = HealthCheckSettings.new
|
1762
|
+
@HealthCheckSettings.deserialize(params['HealthCheckSettings'])
|
1763
|
+
end
|
1764
|
+
@DeployAgent = params['DeployAgent']
|
1765
|
+
@Alias = params['Alias']
|
1766
|
+
@DisableService = params['DisableService']
|
1767
|
+
@HeadlessService = params['HeadlessService']
|
1768
|
+
unless params['TcrRepoInfo'].nil?
|
1769
|
+
@TcrRepoInfo = TcrRepoInfo.new
|
1770
|
+
@TcrRepoInfo.deserialize(params['TcrRepoInfo'])
|
1771
|
+
end
|
1772
|
+
end
|
1773
|
+
end
|
1774
|
+
|
1583
1775
|
# 容器部署组详情
|
1584
1776
|
class ContainerGroupDetail < TencentCloud::Common::AbstractModel
|
1585
1777
|
# @param GroupId: 部署组ID
|
@@ -5292,6 +5484,45 @@ module TencentCloud
|
|
5292
5484
|
end
|
5293
5485
|
end
|
5294
5486
|
|
5487
|
+
# DescribeContainerGroupDeployInfo请求参数结构体
|
5488
|
+
class DescribeContainerGroupDeployInfoRequest < TencentCloud::Common::AbstractModel
|
5489
|
+
# @param GroupId: 实例所属 groupId
|
5490
|
+
# @type GroupId: String
|
5491
|
+
|
5492
|
+
attr_accessor :GroupId
|
5493
|
+
|
5494
|
+
def initialize(groupid=nil)
|
5495
|
+
@GroupId = groupid
|
5496
|
+
end
|
5497
|
+
|
5498
|
+
def deserialize(params)
|
5499
|
+
@GroupId = params['GroupId']
|
5500
|
+
end
|
5501
|
+
end
|
5502
|
+
|
5503
|
+
# DescribeContainerGroupDeployInfo返回参数结构体
|
5504
|
+
class DescribeContainerGroupDeployInfoResponse < TencentCloud::Common::AbstractModel
|
5505
|
+
# @param Result: 获取部署组
|
5506
|
+
# @type Result: :class:`Tencentcloud::Tsf.v20180326.models.ContainerGroupDeploy`
|
5507
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5508
|
+
# @type RequestId: String
|
5509
|
+
|
5510
|
+
attr_accessor :Result, :RequestId
|
5511
|
+
|
5512
|
+
def initialize(result=nil, requestid=nil)
|
5513
|
+
@Result = result
|
5514
|
+
@RequestId = requestid
|
5515
|
+
end
|
5516
|
+
|
5517
|
+
def deserialize(params)
|
5518
|
+
unless params['Result'].nil?
|
5519
|
+
@Result = ContainerGroupDeploy.new
|
5520
|
+
@Result.deserialize(params['Result'])
|
5521
|
+
end
|
5522
|
+
@RequestId = params['RequestId']
|
5523
|
+
end
|
5524
|
+
end
|
5525
|
+
|
5295
5526
|
# DescribeContainerGroupDetail请求参数结构体
|
5296
5527
|
class DescribeContainerGroupDetailRequest < TencentCloud::Common::AbstractModel
|
5297
5528
|
# @param GroupId: 分组ID
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-tsf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.234
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|