tencentcloud-sdk-tsf 1.0.231 → 1.0.235

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9db8d5f55afea72855ec49b04ce3a04ee69f6b17
4
- data.tar.gz: af70682ae1a9a2fc434a6bfe880d6c7e8a290be1
3
+ metadata.gz: 1af294af01a66b125696ff1efd3ae250cd904b9f
4
+ data.tar.gz: a2f948573d6ddcda42ee067680f799af642c8b7c
5
5
  SHA512:
6
- metadata.gz: 439955e7c6948b3ee483aae2df92f8250ed1c6daf584858d6544353e382509dc2ab7fb480c1ab614d5733e2a9372bef6b89c9d81271add8effdac212bce8512e
7
- data.tar.gz: 3cd1e678edc5d89288962fc5f52fb7f8caa8f93527b132d19c0dc4ef58a8d37815c019af24a6313a8b1572b66e5e12c326853cff4b79c47b4d9465eb5f1c305a
6
+ metadata.gz: c76022f130dba6a151ec9cbacddd9018a120c64bc892a8db61bdf9739251905c75baa5e8791e1098126b2613c2ca8d449fb3c7309ab7e8fc065cbd70d8a88b06
7
+ data.tar.gz: 2d3d8b5806a6fd9f91451366db0c8a937faab8839aca7b42de86c831809c55bb053936c8596bc30494f62c282d13b965d4aa8bfbc089505417c98ba0d1d8b16d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.231
1
+ 1.0.235
@@ -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.
@@ -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
@@ -4094,14 +4286,18 @@ module TencentCloud
4094
4286
  # @type IncrementalDeployment: Boolean
4095
4287
  # @param RepoType: tcr或者不填
4096
4288
  # @type RepoType: String
4097
- # @param VolumeInfos: 数据卷信息
4289
+ # @param VolumeInfos: 数据卷信息-废弃,请用VolumeInfoList参数
4098
4290
  # @type VolumeInfos: :class:`Tencentcloud::Tsf.v20180326.models.VolumeInfo`
4099
- # @param VolumeMountInfos: 数据卷挂载点信息
4291
+ # @param VolumeMountInfos: 数据卷挂载点信息-废弃,请用VolumeMountInfoList参数
4100
4292
  # @type VolumeMountInfos: :class:`Tencentcloud::Tsf.v20180326.models.VolumeMountInfo`
4293
+ # @param VolumeInfoList: 数据卷信息,list
4294
+ # @type VolumeInfoList: Array
4295
+ # @param VolumeMountInfoList: 数据卷挂载点信息,list
4296
+ # @type VolumeMountInfoList: Array
4101
4297
 
4102
- attr_accessor :GroupId, :TagName, :InstanceNum, :Server, :Reponame, :CpuLimit, :MemLimit, :JvmOpts, :CpuRequest, :MemRequest, :DoNotStart, :RepoName, :UpdateType, :UpdateIvl, :AgentCpuRequest, :AgentCpuLimit, :AgentMemRequest, :AgentMemLimit, :IstioCpuRequest, :IstioCpuLimit, :IstioMemRequest, :IstioMemLimit, :MaxSurge, :MaxUnavailable, :HealthCheckSettings, :Envs, :ServiceSetting, :DeployAgent, :SchedulingStrategy, :IncrementalDeployment, :RepoType, :VolumeInfos, :VolumeMountInfos
4298
+ attr_accessor :GroupId, :TagName, :InstanceNum, :Server, :Reponame, :CpuLimit, :MemLimit, :JvmOpts, :CpuRequest, :MemRequest, :DoNotStart, :RepoName, :UpdateType, :UpdateIvl, :AgentCpuRequest, :AgentCpuLimit, :AgentMemRequest, :AgentMemLimit, :IstioCpuRequest, :IstioCpuLimit, :IstioMemRequest, :IstioMemLimit, :MaxSurge, :MaxUnavailable, :HealthCheckSettings, :Envs, :ServiceSetting, :DeployAgent, :SchedulingStrategy, :IncrementalDeployment, :RepoType, :VolumeInfos, :VolumeMountInfos, :VolumeInfoList, :VolumeMountInfoList
4103
4299
 
4104
- def initialize(groupid=nil, tagname=nil, instancenum=nil, server=nil, reponame=nil, cpulimit=nil, memlimit=nil, jvmopts=nil, cpurequest=nil, memrequest=nil, donotstart=nil, reponame=nil, updatetype=nil, updateivl=nil, agentcpurequest=nil, agentcpulimit=nil, agentmemrequest=nil, agentmemlimit=nil, istiocpurequest=nil, istiocpulimit=nil, istiomemrequest=nil, istiomemlimit=nil, maxsurge=nil, maxunavailable=nil, healthchecksettings=nil, envs=nil, servicesetting=nil, deployagent=nil, schedulingstrategy=nil, incrementaldeployment=nil, repotype=nil, volumeinfos=nil, volumemountinfos=nil)
4300
+ def initialize(groupid=nil, tagname=nil, instancenum=nil, server=nil, reponame=nil, cpulimit=nil, memlimit=nil, jvmopts=nil, cpurequest=nil, memrequest=nil, donotstart=nil, reponame=nil, updatetype=nil, updateivl=nil, agentcpurequest=nil, agentcpulimit=nil, agentmemrequest=nil, agentmemlimit=nil, istiocpurequest=nil, istiocpulimit=nil, istiomemrequest=nil, istiomemlimit=nil, maxsurge=nil, maxunavailable=nil, healthchecksettings=nil, envs=nil, servicesetting=nil, deployagent=nil, schedulingstrategy=nil, incrementaldeployment=nil, repotype=nil, volumeinfos=nil, volumemountinfos=nil, volumeinfolist=nil, volumemountinfolist=nil)
4105
4301
  @GroupId = groupid
4106
4302
  @TagName = tagname
4107
4303
  @InstanceNum = instancenum
@@ -4135,6 +4331,8 @@ module TencentCloud
4135
4331
  @RepoType = repotype
4136
4332
  @VolumeInfos = volumeinfos
4137
4333
  @VolumeMountInfos = volumemountinfos
4334
+ @VolumeInfoList = volumeinfolist
4335
+ @VolumeMountInfoList = volumemountinfolist
4138
4336
  end
4139
4337
 
4140
4338
  def deserialize(params)
@@ -4193,6 +4391,22 @@ module TencentCloud
4193
4391
  @VolumeMountInfos = VolumeMountInfo.new
4194
4392
  @VolumeMountInfos.deserialize(params['VolumeMountInfos'])
4195
4393
  end
4394
+ unless params['VolumeInfoList'].nil?
4395
+ @VolumeInfoList = []
4396
+ params['VolumeInfoList'].each do |i|
4397
+ volumeinfo_tmp = VolumeInfo.new
4398
+ volumeinfo_tmp.deserialize(i)
4399
+ @VolumeInfoList << volumeinfo_tmp
4400
+ end
4401
+ end
4402
+ unless params['VolumeMountInfoList'].nil?
4403
+ @VolumeMountInfoList = []
4404
+ params['VolumeMountInfoList'].each do |i|
4405
+ volumemountinfo_tmp = VolumeMountInfo.new
4406
+ volumemountinfo_tmp.deserialize(i)
4407
+ @VolumeMountInfoList << volumemountinfo_tmp
4408
+ end
4409
+ end
4196
4410
  end
4197
4411
  end
4198
4412
 
@@ -5292,6 +5506,45 @@ module TencentCloud
5292
5506
  end
5293
5507
  end
5294
5508
 
5509
+ # DescribeContainerGroupDeployInfo请求参数结构体
5510
+ class DescribeContainerGroupDeployInfoRequest < TencentCloud::Common::AbstractModel
5511
+ # @param GroupId: 实例所属 groupId
5512
+ # @type GroupId: String
5513
+
5514
+ attr_accessor :GroupId
5515
+
5516
+ def initialize(groupid=nil)
5517
+ @GroupId = groupid
5518
+ end
5519
+
5520
+ def deserialize(params)
5521
+ @GroupId = params['GroupId']
5522
+ end
5523
+ end
5524
+
5525
+ # DescribeContainerGroupDeployInfo返回参数结构体
5526
+ class DescribeContainerGroupDeployInfoResponse < TencentCloud::Common::AbstractModel
5527
+ # @param Result: 获取部署组
5528
+ # @type Result: :class:`Tencentcloud::Tsf.v20180326.models.ContainerGroupDeploy`
5529
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5530
+ # @type RequestId: String
5531
+
5532
+ attr_accessor :Result, :RequestId
5533
+
5534
+ def initialize(result=nil, requestid=nil)
5535
+ @Result = result
5536
+ @RequestId = requestid
5537
+ end
5538
+
5539
+ def deserialize(params)
5540
+ unless params['Result'].nil?
5541
+ @Result = ContainerGroupDeploy.new
5542
+ @Result.deserialize(params['Result'])
5543
+ end
5544
+ @RequestId = params['RequestId']
5545
+ end
5546
+ end
5547
+
5295
5548
  # DescribeContainerGroupDetail请求参数结构体
5296
5549
  class DescribeContainerGroupDetailRequest < TencentCloud::Common::AbstractModel
5297
5550
  # @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.231
4
+ version: 1.0.235
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-27 00:00:00.000000000 Z
11
+ date: 2022-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common