tencentcloud-sdk-tke 1.0.273 → 1.0.274
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/v20180525/client.rb +120 -0
- data/lib/v20180525/models.rb +373 -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: 044781f174f4a6aff30848c7937b56e84ff70624
|
4
|
+
data.tar.gz: c63f45b7fb188b82f50bdd248ba377fc15fdecd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0442629ada09a25fdeb6eb854f5e92f9e6b2b0c44b0854a472e6a348135a1fd08f4ca212608d1baf414b791a3a077a9e1da8e08bce58fa520fe52253b80fb1b4
|
7
|
+
data.tar.gz: 33ae4e6148e3e14516eae21f07834f5779a05ae3436f2d0bd83f1f0fec0d1a4f9246788e70128b2e4b779e709be067474112967f2c7ded910f6e52d3d83f48f4
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.274
|
data/lib/v20180525/client.rb
CHANGED
@@ -437,6 +437,30 @@ module TencentCloud
|
|
437
437
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
438
438
|
end
|
439
439
|
|
440
|
+
# 创建镜像缓存的接口。创建过程中,请勿删除EKSCI实例和云盘,否则镜像缓存将创建失败。
|
441
|
+
|
442
|
+
# @param request: Request instance for CreateImageCache.
|
443
|
+
# @type request: :class:`Tencentcloud::tke::V20180525::CreateImageCacheRequest`
|
444
|
+
# @rtype: :class:`Tencentcloud::tke::V20180525::CreateImageCacheResponse`
|
445
|
+
def CreateImageCache(request)
|
446
|
+
body = send_request('CreateImageCache', request.serialize)
|
447
|
+
response = JSON.parse(body)
|
448
|
+
if response['Response'].key?('Error') == false
|
449
|
+
model = CreateImageCacheResponse.new
|
450
|
+
model.deserialize(response['Response'])
|
451
|
+
model
|
452
|
+
else
|
453
|
+
code = response['Response']['Error']['Code']
|
454
|
+
message = response['Response']['Error']['Message']
|
455
|
+
reqid = response['Response']['RequestId']
|
456
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
457
|
+
end
|
458
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
459
|
+
raise e
|
460
|
+
rescue StandardError => e
|
461
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
462
|
+
end
|
463
|
+
|
440
464
|
# 创建告警规则
|
441
465
|
|
442
466
|
# @param request: Request instance for CreatePrometheusAlertRule.
|
@@ -749,6 +773,30 @@ module TencentCloud
|
|
749
773
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
750
774
|
end
|
751
775
|
|
776
|
+
# 批量删除镜像缓存
|
777
|
+
|
778
|
+
# @param request: Request instance for DeleteImageCaches.
|
779
|
+
# @type request: :class:`Tencentcloud::tke::V20180525::DeleteImageCachesRequest`
|
780
|
+
# @rtype: :class:`Tencentcloud::tke::V20180525::DeleteImageCachesResponse`
|
781
|
+
def DeleteImageCaches(request)
|
782
|
+
body = send_request('DeleteImageCaches', request.serialize)
|
783
|
+
response = JSON.parse(body)
|
784
|
+
if response['Response'].key?('Error') == false
|
785
|
+
model = DeleteImageCachesResponse.new
|
786
|
+
model.deserialize(response['Response'])
|
787
|
+
model
|
788
|
+
else
|
789
|
+
code = response['Response']['Error']['Code']
|
790
|
+
message = response['Response']['Error']['Message']
|
791
|
+
reqid = response['Response']['RequestId']
|
792
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
793
|
+
end
|
794
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
795
|
+
raise e
|
796
|
+
rescue StandardError => e
|
797
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
798
|
+
end
|
799
|
+
|
752
800
|
# 删除告警规则
|
753
801
|
|
754
802
|
# @param request: Request instance for DeletePrometheusAlertRule.
|
@@ -1445,6 +1493,30 @@ module TencentCloud
|
|
1445
1493
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1446
1494
|
end
|
1447
1495
|
|
1496
|
+
# 查询镜像缓存信息接口
|
1497
|
+
|
1498
|
+
# @param request: Request instance for DescribeImageCaches.
|
1499
|
+
# @type request: :class:`Tencentcloud::tke::V20180525::DescribeImageCachesRequest`
|
1500
|
+
# @rtype: :class:`Tencentcloud::tke::V20180525::DescribeImageCachesResponse`
|
1501
|
+
def DescribeImageCaches(request)
|
1502
|
+
body = send_request('DescribeImageCaches', request.serialize)
|
1503
|
+
response = JSON.parse(body)
|
1504
|
+
if response['Response'].key?('Error') == false
|
1505
|
+
model = DescribeImageCachesResponse.new
|
1506
|
+
model.deserialize(response['Response'])
|
1507
|
+
model
|
1508
|
+
else
|
1509
|
+
code = response['Response']['Error']['Code']
|
1510
|
+
message = response['Response']['Error']['Message']
|
1511
|
+
reqid = response['Response']['RequestId']
|
1512
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1513
|
+
end
|
1514
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1515
|
+
raise e
|
1516
|
+
rescue StandardError => e
|
1517
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1518
|
+
end
|
1519
|
+
|
1448
1520
|
# 获取镜像信息
|
1449
1521
|
|
1450
1522
|
# @param request: Request instance for DescribeImages.
|
@@ -1925,6 +1997,30 @@ module TencentCloud
|
|
1925
1997
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1926
1998
|
end
|
1927
1999
|
|
2000
|
+
# 根据镜像列表,查询匹配的镜像缓存
|
2001
|
+
|
2002
|
+
# @param request: Request instance for GetMostSuitableImageCache.
|
2003
|
+
# @type request: :class:`Tencentcloud::tke::V20180525::GetMostSuitableImageCacheRequest`
|
2004
|
+
# @rtype: :class:`Tencentcloud::tke::V20180525::GetMostSuitableImageCacheResponse`
|
2005
|
+
def GetMostSuitableImageCache(request)
|
2006
|
+
body = send_request('GetMostSuitableImageCache', request.serialize)
|
2007
|
+
response = JSON.parse(body)
|
2008
|
+
if response['Response'].key?('Error') == false
|
2009
|
+
model = GetMostSuitableImageCacheResponse.new
|
2010
|
+
model.deserialize(response['Response'])
|
2011
|
+
model
|
2012
|
+
else
|
2013
|
+
code = response['Response']['Error']['Code']
|
2014
|
+
message = response['Response']['Error']['Message']
|
2015
|
+
reqid = response['Response']['RequestId']
|
2016
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2017
|
+
end
|
2018
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2019
|
+
raise e
|
2020
|
+
rescue StandardError => e
|
2021
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2022
|
+
end
|
2023
|
+
|
1928
2024
|
# 获取TKE支持的App列表
|
1929
2025
|
|
1930
2026
|
# @param request: Request instance for GetTkeAppChartList.
|
@@ -2429,6 +2525,30 @@ module TencentCloud
|
|
2429
2525
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2430
2526
|
end
|
2431
2527
|
|
2528
|
+
# 更新镜像缓存接口
|
2529
|
+
|
2530
|
+
# @param request: Request instance for UpdateImageCache.
|
2531
|
+
# @type request: :class:`Tencentcloud::tke::V20180525::UpdateImageCacheRequest`
|
2532
|
+
# @rtype: :class:`Tencentcloud::tke::V20180525::UpdateImageCacheResponse`
|
2533
|
+
def UpdateImageCache(request)
|
2534
|
+
body = send_request('UpdateImageCache', request.serialize)
|
2535
|
+
response = JSON.parse(body)
|
2536
|
+
if response['Response'].key?('Error') == false
|
2537
|
+
model = UpdateImageCacheResponse.new
|
2538
|
+
model.deserialize(response['Response'])
|
2539
|
+
model
|
2540
|
+
else
|
2541
|
+
code = response['Response']['Error']['Code']
|
2542
|
+
message = response['Response']['Error']['Message']
|
2543
|
+
reqid = response['Response']['RequestId']
|
2544
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2545
|
+
end
|
2546
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2547
|
+
raise e
|
2548
|
+
rescue StandardError => e
|
2549
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2550
|
+
end
|
2551
|
+
|
2432
2552
|
# 给集群的一批work节点进行升级
|
2433
2553
|
|
2434
2554
|
# @param request: Request instance for UpgradeClusterInstances.
|
data/lib/v20180525/models.rb
CHANGED
@@ -2107,6 +2107,93 @@ module TencentCloud
|
|
2107
2107
|
end
|
2108
2108
|
end
|
2109
2109
|
|
2110
|
+
# CreateImageCache请求参数结构体
|
2111
|
+
class CreateImageCacheRequest < TencentCloud::Common::AbstractModel
|
2112
|
+
# @param Images: 用于制作镜像缓存的容器镜像列表
|
2113
|
+
# @type Images: Array
|
2114
|
+
# @param SubnetId: 实例所属子网Id
|
2115
|
+
# @type SubnetId: String
|
2116
|
+
# @param VpcId: 实例所属VPC Id
|
2117
|
+
# @type VpcId: String
|
2118
|
+
# @param ImageCacheName: 镜像缓存名称
|
2119
|
+
# @type ImageCacheName: String
|
2120
|
+
# @param SecurityGroupIds: 安全组Id
|
2121
|
+
# @type SecurityGroupIds: Array
|
2122
|
+
# @param ImageRegistryCredentials: 镜像仓库凭证数组
|
2123
|
+
# @type ImageRegistryCredentials: Array
|
2124
|
+
# @param ExistedEipId: 用来绑定容器实例的已有EIP
|
2125
|
+
# @type ExistedEipId: String
|
2126
|
+
# @param AutoCreateEip: 是否为容器实例自动创建EIP,默认为false。若传true,则此参数和ExistedEipIds互斥
|
2127
|
+
# @type AutoCreateEip: Boolean
|
2128
|
+
# @param AutoCreateEipAttribute: 自动创建EIP的可选参数。若传此参数,则会自动创建EIP。
|
2129
|
+
# 另外此参数和ExistedEipIds互斥
|
2130
|
+
# @type AutoCreateEipAttribute: :class:`Tencentcloud::Tke.v20180525.models.EipAttribute`
|
2131
|
+
# @param ImageCacheSize: 镜像缓存的大小。默认为20 GiB。取值范围参考[云硬盘类型](https://cloud.tencent.com/document/product/362/2353)中的高性能云盘类型的大小限制。
|
2132
|
+
# @type ImageCacheSize: Integer
|
2133
|
+
# @param RetentionDays: 镜像缓存保留时间天数,过期将会自动清理,默认为0,永不过期。
|
2134
|
+
# @type RetentionDays: Integer
|
2135
|
+
|
2136
|
+
attr_accessor :Images, :SubnetId, :VpcId, :ImageCacheName, :SecurityGroupIds, :ImageRegistryCredentials, :ExistedEipId, :AutoCreateEip, :AutoCreateEipAttribute, :ImageCacheSize, :RetentionDays
|
2137
|
+
|
2138
|
+
def initialize(images=nil, subnetid=nil, vpcid=nil, imagecachename=nil, securitygroupids=nil, imageregistrycredentials=nil, existedeipid=nil, autocreateeip=nil, autocreateeipattribute=nil, imagecachesize=nil, retentiondays=nil)
|
2139
|
+
@Images = images
|
2140
|
+
@SubnetId = subnetid
|
2141
|
+
@VpcId = vpcid
|
2142
|
+
@ImageCacheName = imagecachename
|
2143
|
+
@SecurityGroupIds = securitygroupids
|
2144
|
+
@ImageRegistryCredentials = imageregistrycredentials
|
2145
|
+
@ExistedEipId = existedeipid
|
2146
|
+
@AutoCreateEip = autocreateeip
|
2147
|
+
@AutoCreateEipAttribute = autocreateeipattribute
|
2148
|
+
@ImageCacheSize = imagecachesize
|
2149
|
+
@RetentionDays = retentiondays
|
2150
|
+
end
|
2151
|
+
|
2152
|
+
def deserialize(params)
|
2153
|
+
@Images = params['Images']
|
2154
|
+
@SubnetId = params['SubnetId']
|
2155
|
+
@VpcId = params['VpcId']
|
2156
|
+
@ImageCacheName = params['ImageCacheName']
|
2157
|
+
@SecurityGroupIds = params['SecurityGroupIds']
|
2158
|
+
unless params['ImageRegistryCredentials'].nil?
|
2159
|
+
@ImageRegistryCredentials = []
|
2160
|
+
params['ImageRegistryCredentials'].each do |i|
|
2161
|
+
imageregistrycredential_tmp = ImageRegistryCredential.new
|
2162
|
+
imageregistrycredential_tmp.deserialize(i)
|
2163
|
+
@ImageRegistryCredentials << imageregistrycredential_tmp
|
2164
|
+
end
|
2165
|
+
end
|
2166
|
+
@ExistedEipId = params['ExistedEipId']
|
2167
|
+
@AutoCreateEip = params['AutoCreateEip']
|
2168
|
+
unless params['AutoCreateEipAttribute'].nil?
|
2169
|
+
@AutoCreateEipAttribute = EipAttribute.new
|
2170
|
+
@AutoCreateEipAttribute.deserialize(params['AutoCreateEipAttribute'])
|
2171
|
+
end
|
2172
|
+
@ImageCacheSize = params['ImageCacheSize']
|
2173
|
+
@RetentionDays = params['RetentionDays']
|
2174
|
+
end
|
2175
|
+
end
|
2176
|
+
|
2177
|
+
# CreateImageCache返回参数结构体
|
2178
|
+
class CreateImageCacheResponse < TencentCloud::Common::AbstractModel
|
2179
|
+
# @param ImageCacheId: 镜像缓存Id
|
2180
|
+
# @type ImageCacheId: String
|
2181
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2182
|
+
# @type RequestId: String
|
2183
|
+
|
2184
|
+
attr_accessor :ImageCacheId, :RequestId
|
2185
|
+
|
2186
|
+
def initialize(imagecacheid=nil, requestid=nil)
|
2187
|
+
@ImageCacheId = imagecacheid
|
2188
|
+
@RequestId = requestid
|
2189
|
+
end
|
2190
|
+
|
2191
|
+
def deserialize(params)
|
2192
|
+
@ImageCacheId = params['ImageCacheId']
|
2193
|
+
@RequestId = params['RequestId']
|
2194
|
+
end
|
2195
|
+
end
|
2196
|
+
|
2110
2197
|
# CreatePrometheusAlertRule请求参数结构体
|
2111
2198
|
class CreatePrometheusAlertRuleRequest < TencentCloud::Common::AbstractModel
|
2112
2199
|
# @param InstanceId: 实例id
|
@@ -2722,6 +2809,38 @@ module TencentCloud
|
|
2722
2809
|
end
|
2723
2810
|
end
|
2724
2811
|
|
2812
|
+
# DeleteImageCaches请求参数结构体
|
2813
|
+
class DeleteImageCachesRequest < TencentCloud::Common::AbstractModel
|
2814
|
+
# @param ImageCacheIds: 镜像缓存Id数组
|
2815
|
+
# @type ImageCacheIds: Array
|
2816
|
+
|
2817
|
+
attr_accessor :ImageCacheIds
|
2818
|
+
|
2819
|
+
def initialize(imagecacheids=nil)
|
2820
|
+
@ImageCacheIds = imagecacheids
|
2821
|
+
end
|
2822
|
+
|
2823
|
+
def deserialize(params)
|
2824
|
+
@ImageCacheIds = params['ImageCacheIds']
|
2825
|
+
end
|
2826
|
+
end
|
2827
|
+
|
2828
|
+
# DeleteImageCaches返回参数结构体
|
2829
|
+
class DeleteImageCachesResponse < TencentCloud::Common::AbstractModel
|
2830
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2831
|
+
# @type RequestId: String
|
2832
|
+
|
2833
|
+
attr_accessor :RequestId
|
2834
|
+
|
2835
|
+
def initialize(requestid=nil)
|
2836
|
+
@RequestId = requestid
|
2837
|
+
end
|
2838
|
+
|
2839
|
+
def deserialize(params)
|
2840
|
+
@RequestId = params['RequestId']
|
2841
|
+
end
|
2842
|
+
end
|
2843
|
+
|
2725
2844
|
# DeletePrometheusAlertRule请求参数结构体
|
2726
2845
|
class DeletePrometheusAlertRuleRequest < TencentCloud::Common::AbstractModel
|
2727
2846
|
# @param InstanceId: 实例id
|
@@ -4323,6 +4442,79 @@ module TencentCloud
|
|
4323
4442
|
end
|
4324
4443
|
end
|
4325
4444
|
|
4445
|
+
# DescribeImageCaches请求参数结构体
|
4446
|
+
class DescribeImageCachesRequest < TencentCloud::Common::AbstractModel
|
4447
|
+
# @param ImageCacheIds: 镜像缓存Id数组
|
4448
|
+
# @type ImageCacheIds: Array
|
4449
|
+
# @param ImageCacheNames: 镜像缓存名称数组
|
4450
|
+
# @type ImageCacheNames: Array
|
4451
|
+
# @param Limit: 限定此次返回资源的数量。如果不设定,默认返回20,最大不能超过50
|
4452
|
+
# @type Limit: Integer
|
4453
|
+
# @param Offset: 偏移量,默认0
|
4454
|
+
# @type Offset: Integer
|
4455
|
+
# @param Filters: 过滤条件,可选条件:
|
4456
|
+
# (1)实例名称
|
4457
|
+
# KeyName: image-cache-name
|
4458
|
+
# 类型:String
|
4459
|
+
# @type Filters: Array
|
4460
|
+
|
4461
|
+
attr_accessor :ImageCacheIds, :ImageCacheNames, :Limit, :Offset, :Filters
|
4462
|
+
|
4463
|
+
def initialize(imagecacheids=nil, imagecachenames=nil, limit=nil, offset=nil, filters=nil)
|
4464
|
+
@ImageCacheIds = imagecacheids
|
4465
|
+
@ImageCacheNames = imagecachenames
|
4466
|
+
@Limit = limit
|
4467
|
+
@Offset = offset
|
4468
|
+
@Filters = filters
|
4469
|
+
end
|
4470
|
+
|
4471
|
+
def deserialize(params)
|
4472
|
+
@ImageCacheIds = params['ImageCacheIds']
|
4473
|
+
@ImageCacheNames = params['ImageCacheNames']
|
4474
|
+
@Limit = params['Limit']
|
4475
|
+
@Offset = params['Offset']
|
4476
|
+
unless params['Filters'].nil?
|
4477
|
+
@Filters = []
|
4478
|
+
params['Filters'].each do |i|
|
4479
|
+
filter_tmp = Filter.new
|
4480
|
+
filter_tmp.deserialize(i)
|
4481
|
+
@Filters << filter_tmp
|
4482
|
+
end
|
4483
|
+
end
|
4484
|
+
end
|
4485
|
+
end
|
4486
|
+
|
4487
|
+
# DescribeImageCaches返回参数结构体
|
4488
|
+
class DescribeImageCachesResponse < TencentCloud::Common::AbstractModel
|
4489
|
+
# @param TotalCount: 镜像缓存总数
|
4490
|
+
# @type TotalCount: Integer
|
4491
|
+
# @param ImageCaches: 镜像缓存信息列表
|
4492
|
+
# @type ImageCaches: Array
|
4493
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4494
|
+
# @type RequestId: String
|
4495
|
+
|
4496
|
+
attr_accessor :TotalCount, :ImageCaches, :RequestId
|
4497
|
+
|
4498
|
+
def initialize(totalcount=nil, imagecaches=nil, requestid=nil)
|
4499
|
+
@TotalCount = totalcount
|
4500
|
+
@ImageCaches = imagecaches
|
4501
|
+
@RequestId = requestid
|
4502
|
+
end
|
4503
|
+
|
4504
|
+
def deserialize(params)
|
4505
|
+
@TotalCount = params['TotalCount']
|
4506
|
+
unless params['ImageCaches'].nil?
|
4507
|
+
@ImageCaches = []
|
4508
|
+
params['ImageCaches'].each do |i|
|
4509
|
+
imagecache_tmp = ImageCache.new
|
4510
|
+
imagecache_tmp.deserialize(i)
|
4511
|
+
@ImageCaches << imagecache_tmp
|
4512
|
+
end
|
4513
|
+
end
|
4514
|
+
@RequestId = params['RequestId']
|
4515
|
+
end
|
4516
|
+
end
|
4517
|
+
|
4326
4518
|
# DescribeImages请求参数结构体
|
4327
4519
|
class DescribeImagesRequest < TencentCloud::Common::AbstractModel
|
4328
4520
|
|
@@ -6009,6 +6201,50 @@ module TencentCloud
|
|
6009
6201
|
end
|
6010
6202
|
end
|
6011
6203
|
|
6204
|
+
# GetMostSuitableImageCache请求参数结构体
|
6205
|
+
class GetMostSuitableImageCacheRequest < TencentCloud::Common::AbstractModel
|
6206
|
+
# @param Images: 容器镜像列表
|
6207
|
+
# @type Images: Array
|
6208
|
+
|
6209
|
+
attr_accessor :Images
|
6210
|
+
|
6211
|
+
def initialize(images=nil)
|
6212
|
+
@Images = images
|
6213
|
+
end
|
6214
|
+
|
6215
|
+
def deserialize(params)
|
6216
|
+
@Images = params['Images']
|
6217
|
+
end
|
6218
|
+
end
|
6219
|
+
|
6220
|
+
# GetMostSuitableImageCache返回参数结构体
|
6221
|
+
class GetMostSuitableImageCacheResponse < TencentCloud::Common::AbstractModel
|
6222
|
+
# @param Found: 是否有匹配的镜像缓存
|
6223
|
+
# @type Found: Boolean
|
6224
|
+
# @param ImageCache: 匹配的镜像缓存
|
6225
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6226
|
+
# @type ImageCache: :class:`Tencentcloud::Tke.v20180525.models.ImageCache`
|
6227
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
6228
|
+
# @type RequestId: String
|
6229
|
+
|
6230
|
+
attr_accessor :Found, :ImageCache, :RequestId
|
6231
|
+
|
6232
|
+
def initialize(found=nil, imagecache=nil, requestid=nil)
|
6233
|
+
@Found = found
|
6234
|
+
@ImageCache = imagecache
|
6235
|
+
@RequestId = requestid
|
6236
|
+
end
|
6237
|
+
|
6238
|
+
def deserialize(params)
|
6239
|
+
@Found = params['Found']
|
6240
|
+
unless params['ImageCache'].nil?
|
6241
|
+
@ImageCache = ImageCache.new
|
6242
|
+
@ImageCache.deserialize(params['ImageCache'])
|
6243
|
+
end
|
6244
|
+
@RequestId = params['RequestId']
|
6245
|
+
end
|
6246
|
+
end
|
6247
|
+
|
6012
6248
|
# GetTkeAppChartList请求参数结构体
|
6013
6249
|
class GetTkeAppChartListRequest < TencentCloud::Common::AbstractModel
|
6014
6250
|
# @param Kind: app类型,取值log,scheduler,network,storage,monitor,dns,image,other,invisible
|
@@ -6188,6 +6424,107 @@ module TencentCloud
|
|
6188
6424
|
end
|
6189
6425
|
end
|
6190
6426
|
|
6427
|
+
# 镜像缓存的信息
|
6428
|
+
class ImageCache < TencentCloud::Common::AbstractModel
|
6429
|
+
# @param ImageCacheId: 镜像缓存Id
|
6430
|
+
# @type ImageCacheId: String
|
6431
|
+
# @param ImageCacheName: 镜像缓存名称
|
6432
|
+
# @type ImageCacheName: String
|
6433
|
+
# @param ImageCacheSize: 镜像缓存大小。单位:GiB
|
6434
|
+
# @type ImageCacheSize: Integer
|
6435
|
+
# @param Images: 镜像缓存包含的镜像列表
|
6436
|
+
# @type Images: Array
|
6437
|
+
# @param CreationTime: 创建时间
|
6438
|
+
# @type CreationTime: String
|
6439
|
+
# @param ExpireDateTime: 到期时间
|
6440
|
+
# @type ExpireDateTime: String
|
6441
|
+
# @param Events: 镜像缓存事件信息
|
6442
|
+
# @type Events: Array
|
6443
|
+
# @param LastMatchedTime: 最新一次匹配到镜像缓存的时间
|
6444
|
+
# @type LastMatchedTime: String
|
6445
|
+
# @param SnapshotId: 镜像缓存对应的快照Id
|
6446
|
+
# @type SnapshotId: String
|
6447
|
+
# @param Status: 镜像缓存状态,可能取值:
|
6448
|
+
# Pending:创建中
|
6449
|
+
# Ready:创建完成
|
6450
|
+
# Failed:创建失败
|
6451
|
+
# Updating:更新中
|
6452
|
+
# UpdateFailed:更新失败
|
6453
|
+
# 只有状态为Ready时,才能正常使用镜像缓存
|
6454
|
+
# @type Status: String
|
6455
|
+
|
6456
|
+
attr_accessor :ImageCacheId, :ImageCacheName, :ImageCacheSize, :Images, :CreationTime, :ExpireDateTime, :Events, :LastMatchedTime, :SnapshotId, :Status
|
6457
|
+
|
6458
|
+
def initialize(imagecacheid=nil, imagecachename=nil, imagecachesize=nil, images=nil, creationtime=nil, expiredatetime=nil, events=nil, lastmatchedtime=nil, snapshotid=nil, status=nil)
|
6459
|
+
@ImageCacheId = imagecacheid
|
6460
|
+
@ImageCacheName = imagecachename
|
6461
|
+
@ImageCacheSize = imagecachesize
|
6462
|
+
@Images = images
|
6463
|
+
@CreationTime = creationtime
|
6464
|
+
@ExpireDateTime = expiredatetime
|
6465
|
+
@Events = events
|
6466
|
+
@LastMatchedTime = lastmatchedtime
|
6467
|
+
@SnapshotId = snapshotid
|
6468
|
+
@Status = status
|
6469
|
+
end
|
6470
|
+
|
6471
|
+
def deserialize(params)
|
6472
|
+
@ImageCacheId = params['ImageCacheId']
|
6473
|
+
@ImageCacheName = params['ImageCacheName']
|
6474
|
+
@ImageCacheSize = params['ImageCacheSize']
|
6475
|
+
@Images = params['Images']
|
6476
|
+
@CreationTime = params['CreationTime']
|
6477
|
+
@ExpireDateTime = params['ExpireDateTime']
|
6478
|
+
unless params['Events'].nil?
|
6479
|
+
@Events = []
|
6480
|
+
params['Events'].each do |i|
|
6481
|
+
imagecacheevent_tmp = ImageCacheEvent.new
|
6482
|
+
imagecacheevent_tmp.deserialize(i)
|
6483
|
+
@Events << imagecacheevent_tmp
|
6484
|
+
end
|
6485
|
+
end
|
6486
|
+
@LastMatchedTime = params['LastMatchedTime']
|
6487
|
+
@SnapshotId = params['SnapshotId']
|
6488
|
+
@Status = params['Status']
|
6489
|
+
end
|
6490
|
+
end
|
6491
|
+
|
6492
|
+
# 镜像缓存的事件
|
6493
|
+
class ImageCacheEvent < TencentCloud::Common::AbstractModel
|
6494
|
+
# @param ImageCacheId: 镜像缓存Id
|
6495
|
+
# @type ImageCacheId: String
|
6496
|
+
# @param Type: 事件类型, Normal或者Warning
|
6497
|
+
# @type Type: String
|
6498
|
+
# @param Reason: 事件原因简述
|
6499
|
+
# @type Reason: String
|
6500
|
+
# @param Message: 事件原因详述
|
6501
|
+
# @type Message: String
|
6502
|
+
# @param FirstTimestamp: 事件第一次出现时间
|
6503
|
+
# @type FirstTimestamp: String
|
6504
|
+
# @param LastTimestamp: 事件最后一次出现时间
|
6505
|
+
# @type LastTimestamp: String
|
6506
|
+
|
6507
|
+
attr_accessor :ImageCacheId, :Type, :Reason, :Message, :FirstTimestamp, :LastTimestamp
|
6508
|
+
|
6509
|
+
def initialize(imagecacheid=nil, type=nil, reason=nil, message=nil, firsttimestamp=nil, lasttimestamp=nil)
|
6510
|
+
@ImageCacheId = imagecacheid
|
6511
|
+
@Type = type
|
6512
|
+
@Reason = reason
|
6513
|
+
@Message = message
|
6514
|
+
@FirstTimestamp = firsttimestamp
|
6515
|
+
@LastTimestamp = lasttimestamp
|
6516
|
+
end
|
6517
|
+
|
6518
|
+
def deserialize(params)
|
6519
|
+
@ImageCacheId = params['ImageCacheId']
|
6520
|
+
@Type = params['Type']
|
6521
|
+
@Reason = params['Reason']
|
6522
|
+
@Message = params['Message']
|
6523
|
+
@FirstTimestamp = params['FirstTimestamp']
|
6524
|
+
@LastTimestamp = params['LastTimestamp']
|
6525
|
+
end
|
6526
|
+
end
|
6527
|
+
|
6191
6528
|
# 镜像信息
|
6192
6529
|
class ImageInstance < TencentCloud::Common::AbstractModel
|
6193
6530
|
# @param Alias: 镜像别名
|
@@ -9140,6 +9477,42 @@ module TencentCloud
|
|
9140
9477
|
end
|
9141
9478
|
end
|
9142
9479
|
|
9480
|
+
# UpdateImageCache请求参数结构体
|
9481
|
+
class UpdateImageCacheRequest < TencentCloud::Common::AbstractModel
|
9482
|
+
# @param ImageCacheId: 镜像缓存Id
|
9483
|
+
# @type ImageCacheId: String
|
9484
|
+
# @param ImageCacheName: 镜像缓存名称
|
9485
|
+
# @type ImageCacheName: String
|
9486
|
+
|
9487
|
+
attr_accessor :ImageCacheId, :ImageCacheName
|
9488
|
+
|
9489
|
+
def initialize(imagecacheid=nil, imagecachename=nil)
|
9490
|
+
@ImageCacheId = imagecacheid
|
9491
|
+
@ImageCacheName = imagecachename
|
9492
|
+
end
|
9493
|
+
|
9494
|
+
def deserialize(params)
|
9495
|
+
@ImageCacheId = params['ImageCacheId']
|
9496
|
+
@ImageCacheName = params['ImageCacheName']
|
9497
|
+
end
|
9498
|
+
end
|
9499
|
+
|
9500
|
+
# UpdateImageCache返回参数结构体
|
9501
|
+
class UpdateImageCacheResponse < TencentCloud::Common::AbstractModel
|
9502
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
9503
|
+
# @type RequestId: String
|
9504
|
+
|
9505
|
+
attr_accessor :RequestId
|
9506
|
+
|
9507
|
+
def initialize(requestid=nil)
|
9508
|
+
@RequestId = requestid
|
9509
|
+
end
|
9510
|
+
|
9511
|
+
def deserialize(params)
|
9512
|
+
@RequestId = params['RequestId']
|
9513
|
+
end
|
9514
|
+
end
|
9515
|
+
|
9143
9516
|
# 可升级节点信息
|
9144
9517
|
class UpgradeAbleInstancesItem < TencentCloud::Common::AbstractModel
|
9145
9518
|
# @param InstanceId: 节点Id
|
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: 1.0.
|
4
|
+
version: 1.0.274
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|