Class: TencentCloud::Tke::V20180525::DeleteClusterRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180525/models.rb

Overview

DeleteCluster请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterid = nil, instancedeletemode = nil, resourcedeleteoptions = nil) ⇒ DeleteClusterRequest

Returns a new instance of DeleteClusterRequest.



4214
4215
4216
4217
4218
# File 'lib/v20180525/models.rb', line 4214

def initialize(clusterid=nil, instancedeletemode=nil, resourcedeleteoptions=nil)
  @ClusterId = clusterid
  @InstanceDeleteMode = instancedeletemode
  @ResourceDeleteOptions = resourcedeleteoptions
end

Instance Attribute Details

#ClusterIdObject

Parameters:

  • ClusterId:

    集群ID

  • InstanceDeleteMode:

    集群实例删除时的策略:terminate(销毁实例,仅支持按量计费云主机实例) retain (仅移除,保留实例)

  • ResourceDeleteOptions:

    集群删除时资源的删除策略,目前支持CBS(默认保留CBS)



4212
4213
4214
# File 'lib/v20180525/models.rb', line 4212

def ClusterId
  @ClusterId
end

#InstanceDeleteModeObject

Parameters:

  • ClusterId:

    集群ID

  • InstanceDeleteMode:

    集群实例删除时的策略:terminate(销毁实例,仅支持按量计费云主机实例) retain (仅移除,保留实例)

  • ResourceDeleteOptions:

    集群删除时资源的删除策略,目前支持CBS(默认保留CBS)



4212
4213
4214
# File 'lib/v20180525/models.rb', line 4212

def InstanceDeleteMode
  @InstanceDeleteMode
end

#ResourceDeleteOptionsObject

Parameters:

  • ClusterId:

    集群ID

  • InstanceDeleteMode:

    集群实例删除时的策略:terminate(销毁实例,仅支持按量计费云主机实例) retain (仅移除,保留实例)

  • ResourceDeleteOptions:

    集群删除时资源的删除策略,目前支持CBS(默认保留CBS)



4212
4213
4214
# File 'lib/v20180525/models.rb', line 4212

def ResourceDeleteOptions
  @ResourceDeleteOptions
end

Instance Method Details

#deserialize(params) ⇒ Object



4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
# File 'lib/v20180525/models.rb', line 4220

def deserialize(params)
  @ClusterId = params['ClusterId']
  @InstanceDeleteMode = params['InstanceDeleteMode']
  unless params['ResourceDeleteOptions'].nil?
    @ResourceDeleteOptions = []
    params['ResourceDeleteOptions'].each do |i|
      resourcedeleteoption_tmp = ResourceDeleteOption.new
      resourcedeleteoption_tmp.deserialize(i)
      @ResourceDeleteOptions << resourcedeleteoption_tmp
    end
  end
end