tencentcloud-sdk-tke 1.0.209 → 1.0.210

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: 7be426e649574b86fedf54d8a6076a43757289b0
4
- data.tar.gz: dab87be8f5d859061b04f07f7d9f505867c90543
3
+ metadata.gz: 841078a36ddacbdfdf0e09cebe6660c80f828ba9
4
+ data.tar.gz: 1414ab3e4dffc7696cdcc4d8af0dfb5dd353d688
5
5
  SHA512:
6
- metadata.gz: d67b9d125f84aeae7badff3cc92c0f5cf3067bce0f21ddb7ecd75b698727da308f0ff5c24a14c8c7de1e193f685f1ea6a61a6044ba5cca798efb7c40930071f4
7
- data.tar.gz: edc9736d1ed3d47bb31b272ffb40d3dcb301b70f0f2bfa85e79b11d7c04e48b3222ab4a75d91e33d2c44256c651a870b03add671ab04dba4c232a79271632451
6
+ metadata.gz: 1de465e8e453b3aa53431f94b6b9d70243fd2b3e17529310396a1ca3d1a2c1a49a38a50a1fe794fa2df132c707dd09d071e8c1c7931d3c3c54ca3e51a006f9a5
7
+ data.tar.gz: 17d632f5b31b8aa2bf5386eba6b4cecf666f9ea75cb84efd304c89a191f293b5db5f8278bfea68029355504d8c7184da16785fce3fc323ce742e3b4903e026e2
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.209
1
+ 1.0.210
@@ -2117,6 +2117,54 @@ module TencentCloud
2117
2117
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2118
2118
  end
2119
2119
 
2120
+ # 缩容独立集群master节点
2121
+
2122
+ # @param request: Request instance for ScaleInClusterMaster.
2123
+ # @type request: :class:`Tencentcloud::tke::V20180525::ScaleInClusterMasterRequest`
2124
+ # @rtype: :class:`Tencentcloud::tke::V20180525::ScaleInClusterMasterResponse`
2125
+ def ScaleInClusterMaster(request)
2126
+ body = send_request('ScaleInClusterMaster', request.serialize)
2127
+ response = JSON.parse(body)
2128
+ if response['Response'].key?('Error') == false
2129
+ model = ScaleInClusterMasterResponse.new
2130
+ model.deserialize(response['Response'])
2131
+ model
2132
+ else
2133
+ code = response['Response']['Error']['Code']
2134
+ message = response['Response']['Error']['Message']
2135
+ reqid = response['Response']['RequestId']
2136
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2137
+ end
2138
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2139
+ raise e
2140
+ rescue StandardError => e
2141
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2142
+ end
2143
+
2144
+ # 扩容独立集群master节点
2145
+
2146
+ # @param request: Request instance for ScaleOutClusterMaster.
2147
+ # @type request: :class:`Tencentcloud::tke::V20180525::ScaleOutClusterMasterRequest`
2148
+ # @rtype: :class:`Tencentcloud::tke::V20180525::ScaleOutClusterMasterResponse`
2149
+ def ScaleOutClusterMaster(request)
2150
+ body = send_request('ScaleOutClusterMaster', request.serialize)
2151
+ response = JSON.parse(body)
2152
+ if response['Response'].key?('Error') == false
2153
+ model = ScaleOutClusterMasterResponse.new
2154
+ model.deserialize(response['Response'])
2155
+ model
2156
+ else
2157
+ code = response['Response']['Error']['Code']
2158
+ message = response['Response']['Error']['Message']
2159
+ reqid = response['Response']['RequestId']
2160
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2161
+ end
2162
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2163
+ raise e
2164
+ rescue StandardError => e
2165
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2166
+ end
2167
+
2120
2168
  # 仅能设置节点池中处于伸缩组的节点
2121
2169
 
2122
2170
  # @param request: Request instance for SetNodePoolNodeProtection.
@@ -8043,6 +8043,141 @@ module TencentCloud
8043
8043
  end
8044
8044
  end
8045
8045
 
8046
+ # ScaleInClusterMaster请求参数结构体
8047
+ class ScaleInClusterMasterRequest < TencentCloud::Common::AbstractModel
8048
+ # @param ClusterId: 集群实例ID
8049
+ # @type ClusterId: String
8050
+ # @param ScaleInMasters: master缩容选项
8051
+ # @type ScaleInMasters: Array
8052
+
8053
+ attr_accessor :ClusterId, :ScaleInMasters
8054
+
8055
+ def initialize(clusterid=nil, scaleinmasters=nil)
8056
+ @ClusterId = clusterid
8057
+ @ScaleInMasters = scaleinmasters
8058
+ end
8059
+
8060
+ def deserialize(params)
8061
+ @ClusterId = params['ClusterId']
8062
+ unless params['ScaleInMasters'].nil?
8063
+ @ScaleInMasters = []
8064
+ params['ScaleInMasters'].each do |i|
8065
+ scaleinmaster_tmp = ScaleInMaster.new
8066
+ scaleinmaster_tmp.deserialize(i)
8067
+ @ScaleInMasters << scaleinmaster_tmp
8068
+ end
8069
+ end
8070
+ end
8071
+ end
8072
+
8073
+ # ScaleInClusterMaster返回参数结构体
8074
+ class ScaleInClusterMasterResponse < TencentCloud::Common::AbstractModel
8075
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8076
+ # @type RequestId: String
8077
+
8078
+ attr_accessor :RequestId
8079
+
8080
+ def initialize(requestid=nil)
8081
+ @RequestId = requestid
8082
+ end
8083
+
8084
+ def deserialize(params)
8085
+ @RequestId = params['RequestId']
8086
+ end
8087
+ end
8088
+
8089
+ # master节点缩容参数
8090
+ class ScaleInMaster < TencentCloud::Common::AbstractModel
8091
+ # @param InstanceId: 实例ID
8092
+ # @type InstanceId: String
8093
+ # @param NodeRole: 缩容的实例角色:MASTER,ETCD,MASTER_ETCD
8094
+ # @type NodeRole: String
8095
+ # @param InstanceDeleteMode: 实例的保留模式
8096
+ # @type InstanceDeleteMode: String
8097
+
8098
+ attr_accessor :InstanceId, :NodeRole, :InstanceDeleteMode
8099
+
8100
+ def initialize(instanceid=nil, noderole=nil, instancedeletemode=nil)
8101
+ @InstanceId = instanceid
8102
+ @NodeRole = noderole
8103
+ @InstanceDeleteMode = instancedeletemode
8104
+ end
8105
+
8106
+ def deserialize(params)
8107
+ @InstanceId = params['InstanceId']
8108
+ @NodeRole = params['NodeRole']
8109
+ @InstanceDeleteMode = params['InstanceDeleteMode']
8110
+ end
8111
+ end
8112
+
8113
+ # ScaleOutClusterMaster请求参数结构体
8114
+ class ScaleOutClusterMasterRequest < TencentCloud::Common::AbstractModel
8115
+ # @param ClusterId: 集群实例ID
8116
+ # @type ClusterId: String
8117
+ # @param RunInstancesForNode: 新建节点参数
8118
+ # @type RunInstancesForNode: Array
8119
+ # @param ExistedInstancesForNode: 添加已有节点相关参数
8120
+ # @type ExistedInstancesForNode: Array
8121
+ # @param InstanceAdvancedSettings: 实例高级设置
8122
+ # @type InstanceAdvancedSettings: :class:`Tencentcloud::Tke.v20180525.models.InstanceAdvancedSettings`
8123
+ # @param ExtraArgs: 集群master组件自定义参数
8124
+ # @type ExtraArgs: :class:`Tencentcloud::Tke.v20180525.models.ClusterExtraArgs`
8125
+
8126
+ attr_accessor :ClusterId, :RunInstancesForNode, :ExistedInstancesForNode, :InstanceAdvancedSettings, :ExtraArgs
8127
+
8128
+ def initialize(clusterid=nil, runinstancesfornode=nil, existedinstancesfornode=nil, instanceadvancedsettings=nil, extraargs=nil)
8129
+ @ClusterId = clusterid
8130
+ @RunInstancesForNode = runinstancesfornode
8131
+ @ExistedInstancesForNode = existedinstancesfornode
8132
+ @InstanceAdvancedSettings = instanceadvancedsettings
8133
+ @ExtraArgs = extraargs
8134
+ end
8135
+
8136
+ def deserialize(params)
8137
+ @ClusterId = params['ClusterId']
8138
+ unless params['RunInstancesForNode'].nil?
8139
+ @RunInstancesForNode = []
8140
+ params['RunInstancesForNode'].each do |i|
8141
+ runinstancesfornode_tmp = RunInstancesForNode.new
8142
+ runinstancesfornode_tmp.deserialize(i)
8143
+ @RunInstancesForNode << runinstancesfornode_tmp
8144
+ end
8145
+ end
8146
+ unless params['ExistedInstancesForNode'].nil?
8147
+ @ExistedInstancesForNode = []
8148
+ params['ExistedInstancesForNode'].each do |i|
8149
+ existedinstancesfornode_tmp = ExistedInstancesForNode.new
8150
+ existedinstancesfornode_tmp.deserialize(i)
8151
+ @ExistedInstancesForNode << existedinstancesfornode_tmp
8152
+ end
8153
+ end
8154
+ unless params['InstanceAdvancedSettings'].nil?
8155
+ @InstanceAdvancedSettings = InstanceAdvancedSettings.new
8156
+ @InstanceAdvancedSettings.deserialize(params['InstanceAdvancedSettings'])
8157
+ end
8158
+ unless params['ExtraArgs'].nil?
8159
+ @ExtraArgs = ClusterExtraArgs.new
8160
+ @ExtraArgs.deserialize(params['ExtraArgs'])
8161
+ end
8162
+ end
8163
+ end
8164
+
8165
+ # ScaleOutClusterMaster返回参数结构体
8166
+ class ScaleOutClusterMasterResponse < TencentCloud::Common::AbstractModel
8167
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8168
+ # @type RequestId: String
8169
+
8170
+ attr_accessor :RequestId
8171
+
8172
+ def initialize(requestid=nil)
8173
+ @RequestId = requestid
8174
+ end
8175
+
8176
+ def deserialize(params)
8177
+ @RequestId = params['RequestId']
8178
+ end
8179
+ end
8180
+
8046
8181
  # cloudrun安全特性
8047
8182
  class SecurityContext < TencentCloud::Common::AbstractModel
8048
8183
  # @param Capabilities: 安全能力清单
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.209
4
+ version: 1.0.210
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-11-24 00:00:00.000000000 Z
11
+ date: 2021-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common