Class: TencentCloud::Tke::V20180525::ResourceDeleteOption

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

Overview

资源删除选项

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resourcetype = nil, deletemode = nil, skipdeletionprotection = nil) ⇒ ResourceDeleteOption

Returns a new instance of ResourceDeleteOption.



19371
19372
19373
19374
19375
# File 'lib/v20180525/models.rb', line 19371

def initialize(resourcetype=nil, deletemode=nil, skipdeletionprotection=nil)
  @ResourceType = resourcetype
  @DeleteMode = deletemode
  @SkipDeletionProtection = skipdeletionprotection
end

Instance Attribute Details

#DeleteModeObject

Parameters:

  • ResourceType:

    资源类型,例如CBS、CLB、CVM

  • DeleteMode:

    集群删除时CBS资源的删除模式:terminate(销毁),retain (保留)。其他资源默认为销毁。

  • SkipDeletionProtection:

    是否跳过开启删除保护的资源,默认false,设置为true时不清理开启了删除保护的资源,clb有终端节点的情况也属于开了删除保护。



19369
19370
19371
# File 'lib/v20180525/models.rb', line 19369

def DeleteMode
  @DeleteMode
end

#ResourceTypeObject

Parameters:

  • ResourceType:

    资源类型,例如CBS、CLB、CVM

  • DeleteMode:

    集群删除时CBS资源的删除模式:terminate(销毁),retain (保留)。其他资源默认为销毁。

  • SkipDeletionProtection:

    是否跳过开启删除保护的资源,默认false,设置为true时不清理开启了删除保护的资源,clb有终端节点的情况也属于开了删除保护。



19369
19370
19371
# File 'lib/v20180525/models.rb', line 19369

def ResourceType
  @ResourceType
end

#SkipDeletionProtectionObject

Parameters:

  • ResourceType:

    资源类型,例如CBS、CLB、CVM

  • DeleteMode:

    集群删除时CBS资源的删除模式:terminate(销毁),retain (保留)。其他资源默认为销毁。

  • SkipDeletionProtection:

    是否跳过开启删除保护的资源,默认false,设置为true时不清理开启了删除保护的资源,clb有终端节点的情况也属于开了删除保护。



19369
19370
19371
# File 'lib/v20180525/models.rb', line 19369

def SkipDeletionProtection
  @SkipDeletionProtection
end

Instance Method Details

#deserialize(params) ⇒ Object



19377
19378
19379
19380
19381
# File 'lib/v20180525/models.rb', line 19377

def deserialize(params)
  @ResourceType = params['ResourceType']
  @DeleteMode = params['DeleteMode']
  @SkipDeletionProtection = params['SkipDeletionProtection']
end