tencentcloud-sdk-tke 3.0.556 → 3.0.557

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: 0b919baec11b3d2f62101cc78148c3d078260963
4
- data.tar.gz: dabff18072c33ac1d48efd467d7ce3adba48b01e
3
+ metadata.gz: 4f3958deda1c329c21d95ef7e28f8ad5333fe21d
4
+ data.tar.gz: c5178501599dae45764d595650ac9126098cc815
5
5
  SHA512:
6
- metadata.gz: fbf80661409e64370cb017a3a89f61f257d239736458b2670eccb6cbef2dda1d2b4f705d74656f179577382a71dbe10a1b2db9c523eb9dd41e606792d81aa135
7
- data.tar.gz: c09889204435e21affa8c7539d5f629182bfa6394b10daae19cfabed4e333716ebced9d49ee85a25ea40f409346bc42142b2b8455946a8ddb1d3a5bab4ce91bd
6
+ metadata.gz: 77298d6f8f45089bec740dc4a1b297e4c4b05f752c338a5c1dce829a650b0e98fd1211469be4ef9b7529226a15d17558d65f57d2053db226d3da74ea795bb370
7
+ data.tar.gz: 67206992916845c072a6c5250e22c5cf26f4de511b3e70859637705a6cdd0cded4e4a23c94ea800337ea343d9298959220e96f3a02e7480c2999647f9c13e85b
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.556
1
+ 3.0.557
@@ -221,6 +221,30 @@ module TencentCloud
221
221
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
222
  end
223
223
 
224
+ # 创建备份仓库,指定了存储仓库类型(如COS)、COS桶地区、名称等信息,当前最多允许创建100个仓库, 注意此接口当前是全局接口,多个地域的TKE集群如果要备份到相同的备份仓库中,不需要重复创建备份仓库
225
+
226
+ # @param request: Request instance for CreateBackupStorageLocation.
227
+ # @type request: :class:`Tencentcloud::tke::V20180525::CreateBackupStorageLocationRequest`
228
+ # @rtype: :class:`Tencentcloud::tke::V20180525::CreateBackupStorageLocationResponse`
229
+ def CreateBackupStorageLocation(request)
230
+ body = send_request('CreateBackupStorageLocation', request.serialize)
231
+ response = JSON.parse(body)
232
+ if response['Response'].key?('Error') == false
233
+ model = CreateBackupStorageLocationResponse.new
234
+ model.deserialize(response['Response'])
235
+ model
236
+ else
237
+ code = response['Response']['Error']['Code']
238
+ message = response['Response']['Error']['Message']
239
+ reqid = response['Response']['RequestId']
240
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
241
+ end
242
+ rescue TencentCloud::Common::TencentCloudSDKException => e
243
+ raise e
244
+ rescue StandardError => e
245
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
+ end
247
+
224
248
  # 创建集群
225
249
 
226
250
  # @param request: Request instance for CreateCluster.
@@ -845,6 +869,30 @@ module TencentCloud
845
869
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
846
870
  end
847
871
 
872
+ # 删除备份仓库
873
+
874
+ # @param request: Request instance for DeleteBackupStorageLocation.
875
+ # @type request: :class:`Tencentcloud::tke::V20180525::DeleteBackupStorageLocationRequest`
876
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DeleteBackupStorageLocationResponse`
877
+ def DeleteBackupStorageLocation(request)
878
+ body = send_request('DeleteBackupStorageLocation', request.serialize)
879
+ response = JSON.parse(body)
880
+ if response['Response'].key?('Error') == false
881
+ model = DeleteBackupStorageLocationResponse.new
882
+ model.deserialize(response['Response'])
883
+ model
884
+ else
885
+ code = response['Response']['Error']['Code']
886
+ message = response['Response']['Error']['Message']
887
+ reqid = response['Response']['RequestId']
888
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
889
+ end
890
+ rescue TencentCloud::Common::TencentCloudSDKException => e
891
+ raise e
892
+ rescue StandardError => e
893
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
894
+ end
895
+
848
896
  # 删除集群(YUNAPI V3版本)
849
897
 
850
898
  # @param request: Request instance for DeleteCluster.
@@ -1517,6 +1565,30 @@ module TencentCloud
1517
1565
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1518
1566
  end
1519
1567
 
1568
+ # 查询备份仓库信息
1569
+
1570
+ # @param request: Request instance for DescribeBackupStorageLocations.
1571
+ # @type request: :class:`Tencentcloud::tke::V20180525::DescribeBackupStorageLocationsRequest`
1572
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DescribeBackupStorageLocationsResponse`
1573
+ def DescribeBackupStorageLocations(request)
1574
+ body = send_request('DescribeBackupStorageLocations', request.serialize)
1575
+ response = JSON.parse(body)
1576
+ if response['Response'].key?('Error') == false
1577
+ model = DescribeBackupStorageLocationsResponse.new
1578
+ model.deserialize(response['Response'])
1579
+ model
1580
+ else
1581
+ code = response['Response']['Error']['Code']
1582
+ message = response['Response']['Error']['Message']
1583
+ reqid = response['Response']['RequestId']
1584
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1585
+ end
1586
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1587
+ raise e
1588
+ rescue StandardError => e
1589
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1590
+ end
1591
+
1520
1592
  # 集群弹性伸缩配置
1521
1593
 
1522
1594
  # @param request: Request instance for DescribeClusterAsGroupOption.
@@ -375,6 +375,56 @@ module TencentCloud
375
375
  end
376
376
  end
377
377
 
378
+ # 仓储仓库信息
379
+ class BackupStorageLocation < TencentCloud::Common::AbstractModel
380
+ # @param Name: 备份仓库名称
381
+ # @type Name: String
382
+ # @param StorageRegion: 存储仓库所属地域,比如COS广州(ap-guangzhou)
383
+ # @type StorageRegion: String
384
+ # @param Provider: 存储服务提供方,默认腾讯云
385
+ # 注意:此字段可能返回 null,表示取不到有效值。
386
+ # @type Provider: String
387
+ # @param Bucket: 对象存储桶名称,如果是COS必须是tke-backup-前缀开头
388
+ # 注意:此字段可能返回 null,表示取不到有效值。
389
+ # @type Bucket: String
390
+ # @param Path: 对象存储桶路径
391
+ # 注意:此字段可能返回 null,表示取不到有效值。
392
+ # @type Path: String
393
+ # @param State: 存储仓库状态
394
+ # 注意:此字段可能返回 null,表示取不到有效值。
395
+ # @type State: String
396
+ # @param Message: 详细状态信息
397
+ # 注意:此字段可能返回 null,表示取不到有效值。
398
+ # @type Message: String
399
+ # @param LastValidationTime: 最后一次检查时间
400
+ # 注意:此字段可能返回 null,表示取不到有效值。
401
+ # @type LastValidationTime: String
402
+
403
+ attr_accessor :Name, :StorageRegion, :Provider, :Bucket, :Path, :State, :Message, :LastValidationTime
404
+
405
+ def initialize(name=nil, storageregion=nil, provider=nil, bucket=nil, path=nil, state=nil, message=nil, lastvalidationtime=nil)
406
+ @Name = name
407
+ @StorageRegion = storageregion
408
+ @Provider = provider
409
+ @Bucket = bucket
410
+ @Path = path
411
+ @State = state
412
+ @Message = message
413
+ @LastValidationTime = lastvalidationtime
414
+ end
415
+
416
+ def deserialize(params)
417
+ @Name = params['Name']
418
+ @StorageRegion = params['StorageRegion']
419
+ @Provider = params['Provider']
420
+ @Bucket = params['Bucket']
421
+ @Path = params['Path']
422
+ @State = params['State']
423
+ @Message = params['Message']
424
+ @LastValidationTime = params['LastValidationTime']
425
+ end
426
+ end
427
+
378
428
  # cuDNN的版本信息
379
429
  class CUDNN < TencentCloud::Common::AbstractModel
380
430
  # @param Version: cuDNN的版本
@@ -1714,6 +1764,54 @@ module TencentCloud
1714
1764
  end
1715
1765
  end
1716
1766
 
1767
+ # CreateBackupStorageLocation请求参数结构体
1768
+ class CreateBackupStorageLocationRequest < TencentCloud::Common::AbstractModel
1769
+ # @param StorageRegion: 存储仓库所属地域,比如COS广州(ap-guangzhou)
1770
+ # @type StorageRegion: String
1771
+ # @param Bucket: 对象存储桶名称,如果是COS必须是tke-backup前缀开头
1772
+ # @type Bucket: String
1773
+ # @param Name: 备份仓库名称
1774
+ # @type Name: String
1775
+ # @param Provider: 存储服务提供方,默认腾讯云
1776
+ # @type Provider: String
1777
+ # @param Path: 对象存储桶路径
1778
+ # @type Path: String
1779
+
1780
+ attr_accessor :StorageRegion, :Bucket, :Name, :Provider, :Path
1781
+
1782
+ def initialize(storageregion=nil, bucket=nil, name=nil, provider=nil, path=nil)
1783
+ @StorageRegion = storageregion
1784
+ @Bucket = bucket
1785
+ @Name = name
1786
+ @Provider = provider
1787
+ @Path = path
1788
+ end
1789
+
1790
+ def deserialize(params)
1791
+ @StorageRegion = params['StorageRegion']
1792
+ @Bucket = params['Bucket']
1793
+ @Name = params['Name']
1794
+ @Provider = params['Provider']
1795
+ @Path = params['Path']
1796
+ end
1797
+ end
1798
+
1799
+ # CreateBackupStorageLocation返回参数结构体
1800
+ class CreateBackupStorageLocationResponse < TencentCloud::Common::AbstractModel
1801
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1802
+ # @type RequestId: String
1803
+
1804
+ attr_accessor :RequestId
1805
+
1806
+ def initialize(requestid=nil)
1807
+ @RequestId = requestid
1808
+ end
1809
+
1810
+ def deserialize(params)
1811
+ @RequestId = params['RequestId']
1812
+ end
1813
+ end
1814
+
1717
1815
  # CreateClusterEndpoint请求参数结构体
1718
1816
  class CreateClusterEndpointRequest < TencentCloud::Common::AbstractModel
1719
1817
  # @param ClusterId: 集群ID
@@ -3553,6 +3651,38 @@ module TencentCloud
3553
3651
  end
3554
3652
  end
3555
3653
 
3654
+ # DeleteBackupStorageLocation请求参数结构体
3655
+ class DeleteBackupStorageLocationRequest < TencentCloud::Common::AbstractModel
3656
+ # @param Name: 备份仓库名称
3657
+ # @type Name: String
3658
+
3659
+ attr_accessor :Name
3660
+
3661
+ def initialize(name=nil)
3662
+ @Name = name
3663
+ end
3664
+
3665
+ def deserialize(params)
3666
+ @Name = params['Name']
3667
+ end
3668
+ end
3669
+
3670
+ # DeleteBackupStorageLocation返回参数结构体
3671
+ class DeleteBackupStorageLocationResponse < TencentCloud::Common::AbstractModel
3672
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3673
+ # @type RequestId: String
3674
+
3675
+ attr_accessor :RequestId
3676
+
3677
+ def initialize(requestid=nil)
3678
+ @RequestId = requestid
3679
+ end
3680
+
3681
+ def deserialize(params)
3682
+ @RequestId = params['RequestId']
3683
+ end
3684
+ end
3685
+
3556
3686
  # DeleteClusterAsGroups请求参数结构体
3557
3687
  class DeleteClusterAsGroupsRequest < TencentCloud::Common::AbstractModel
3558
3688
  # @param ClusterId: 集群ID,通过[DescribeClusters](https://cloud.tencent.com/document/api/457/31862)接口获取。
@@ -4655,6 +4785,50 @@ module TencentCloud
4655
4785
  end
4656
4786
  end
4657
4787
 
4788
+ # DescribeBackupStorageLocations请求参数结构体
4789
+ class DescribeBackupStorageLocationsRequest < TencentCloud::Common::AbstractModel
4790
+ # @param Names: 多个备份仓库名称,如果不填写,默认返回当前地域所有存储仓库名称
4791
+ # @type Names: Array
4792
+
4793
+ attr_accessor :Names
4794
+
4795
+ def initialize(names=nil)
4796
+ @Names = names
4797
+ end
4798
+
4799
+ def deserialize(params)
4800
+ @Names = params['Names']
4801
+ end
4802
+ end
4803
+
4804
+ # DescribeBackupStorageLocations返回参数结构体
4805
+ class DescribeBackupStorageLocationsResponse < TencentCloud::Common::AbstractModel
4806
+ # @param BackupStorageLocationSet: 详细备份仓库信息
4807
+ # 注意:此字段可能返回 null,表示取不到有效值。
4808
+ # @type BackupStorageLocationSet: Array
4809
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4810
+ # @type RequestId: String
4811
+
4812
+ attr_accessor :BackupStorageLocationSet, :RequestId
4813
+
4814
+ def initialize(backupstoragelocationset=nil, requestid=nil)
4815
+ @BackupStorageLocationSet = backupstoragelocationset
4816
+ @RequestId = requestid
4817
+ end
4818
+
4819
+ def deserialize(params)
4820
+ unless params['BackupStorageLocationSet'].nil?
4821
+ @BackupStorageLocationSet = []
4822
+ params['BackupStorageLocationSet'].each do |i|
4823
+ backupstoragelocation_tmp = BackupStorageLocation.new
4824
+ backupstoragelocation_tmp.deserialize(i)
4825
+ @BackupStorageLocationSet << backupstoragelocation_tmp
4826
+ end
4827
+ end
4828
+ @RequestId = params['RequestId']
4829
+ end
4830
+ end
4831
+
4658
4832
  # DescribeClusterAsGroupOption请求参数结构体
4659
4833
  class DescribeClusterAsGroupOptionRequest < TencentCloud::Common::AbstractModel
4660
4834
  # @param ClusterId: 集群ID
@@ -9250,10 +9424,13 @@ module TencentCloud
9250
9424
  # @param ChargeType: 集群付费模式,支持POSTPAID_BY_HOUR或者PREPAID
9251
9425
  # 注意:此字段可能返回 null,表示取不到有效值。
9252
9426
  # @type ChargeType: String
9427
+ # @param EdgeVersion: 边缘集群组件的版本
9428
+ # 注意:此字段可能返回 null,表示取不到有效值。
9429
+ # @type EdgeVersion: String
9253
9430
 
9254
- attr_accessor :ClusterId, :ClusterName, :VpcId, :PodCIDR, :ServiceCIDR, :K8SVersion, :Status, :ClusterDesc, :CreatedTime, :EdgeClusterVersion, :MaxNodePodNum, :ClusterAdvancedSettings, :Level, :AutoUpgradeClusterLevel, :ChargeType
9431
+ attr_accessor :ClusterId, :ClusterName, :VpcId, :PodCIDR, :ServiceCIDR, :K8SVersion, :Status, :ClusterDesc, :CreatedTime, :EdgeClusterVersion, :MaxNodePodNum, :ClusterAdvancedSettings, :Level, :AutoUpgradeClusterLevel, :ChargeType, :EdgeVersion
9255
9432
 
9256
- def initialize(clusterid=nil, clustername=nil, vpcid=nil, podcidr=nil, servicecidr=nil, k8sversion=nil, status=nil, clusterdesc=nil, createdtime=nil, edgeclusterversion=nil, maxnodepodnum=nil, clusteradvancedsettings=nil, level=nil, autoupgradeclusterlevel=nil, chargetype=nil)
9433
+ def initialize(clusterid=nil, clustername=nil, vpcid=nil, podcidr=nil, servicecidr=nil, k8sversion=nil, status=nil, clusterdesc=nil, createdtime=nil, edgeclusterversion=nil, maxnodepodnum=nil, clusteradvancedsettings=nil, level=nil, autoupgradeclusterlevel=nil, chargetype=nil, edgeversion=nil)
9257
9434
  @ClusterId = clusterid
9258
9435
  @ClusterName = clustername
9259
9436
  @VpcId = vpcid
@@ -9269,6 +9446,7 @@ module TencentCloud
9269
9446
  @Level = level
9270
9447
  @AutoUpgradeClusterLevel = autoupgradeclusterlevel
9271
9448
  @ChargeType = chargetype
9449
+ @EdgeVersion = edgeversion
9272
9450
  end
9273
9451
 
9274
9452
  def deserialize(params)
@@ -9290,6 +9468,7 @@ module TencentCloud
9290
9468
  @Level = params['Level']
9291
9469
  @AutoUpgradeClusterLevel = params['AutoUpgradeClusterLevel']
9292
9470
  @ChargeType = params['ChargeType']
9471
+ @EdgeVersion = params['EdgeVersion']
9293
9472
  end
9294
9473
  end
9295
9474
 
@@ -9843,15 +10022,18 @@ module TencentCloud
9843
10022
  # @type Subnets: Array
9844
10023
  # @param ExpiredSeconds: 在固定IP模式下,Pod销毁后退还IP的时间,传参必须大于300;不传默认IP永不销毁。
9845
10024
  # @type ExpiredSeconds: Integer
10025
+ # @param SkipAddingNonMasqueradeCIDRs: 是否同步添加 vpc 网段到 ip-masq-agent-config 的 NonMasqueradeCIDRs 字段,默认 false 会同步添加
10026
+ # @type SkipAddingNonMasqueradeCIDRs: Boolean
9846
10027
 
9847
- attr_accessor :ClusterId, :VpcCniType, :EnableStaticIp, :Subnets, :ExpiredSeconds
10028
+ attr_accessor :ClusterId, :VpcCniType, :EnableStaticIp, :Subnets, :ExpiredSeconds, :SkipAddingNonMasqueradeCIDRs
9848
10029
 
9849
- def initialize(clusterid=nil, vpccnitype=nil, enablestaticip=nil, subnets=nil, expiredseconds=nil)
10030
+ def initialize(clusterid=nil, vpccnitype=nil, enablestaticip=nil, subnets=nil, expiredseconds=nil, skipaddingnonmasqueradecidrs=nil)
9850
10031
  @ClusterId = clusterid
9851
10032
  @VpcCniType = vpccnitype
9852
10033
  @EnableStaticIp = enablestaticip
9853
10034
  @Subnets = subnets
9854
10035
  @ExpiredSeconds = expiredseconds
10036
+ @SkipAddingNonMasqueradeCIDRs = skipaddingnonmasqueradecidrs
9855
10037
  end
9856
10038
 
9857
10039
  def deserialize(params)
@@ -9860,6 +10042,7 @@ module TencentCloud
9860
10042
  @EnableStaticIp = params['EnableStaticIp']
9861
10043
  @Subnets = params['Subnets']
9862
10044
  @ExpiredSeconds = params['ExpiredSeconds']
10045
+ @SkipAddingNonMasqueradeCIDRs = params['SkipAddingNonMasqueradeCIDRs']
9863
10046
  end
9864
10047
  end
9865
10048
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tke
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.556
4
+ version: 3.0.557
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-04-20 00:00:00.000000000 Z
11
+ date: 2023-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common