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.



17612
17613
17614
17615
17616
# File 'lib/v20180525/models.rb', line 17612

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有终端节点的情况也属于开了删除保护。



17610
17611
17612
# File 'lib/v20180525/models.rb', line 17610

def DeleteMode
  @DeleteMode
end

#ResourceTypeObject

Parameters:

  • ResourceType:

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

  • DeleteMode:

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

  • SkipDeletionProtection:

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



17610
17611
17612
# File 'lib/v20180525/models.rb', line 17610

def ResourceType
  @ResourceType
end

#SkipDeletionProtectionObject

Parameters:

  • ResourceType:

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

  • DeleteMode:

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

  • SkipDeletionProtection:

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



17610
17611
17612
# File 'lib/v20180525/models.rb', line 17610

def SkipDeletionProtection
  @SkipDeletionProtection
end

Instance Method Details

#deserialize(params) ⇒ Object



17618
17619
17620
17621
17622
# File 'lib/v20180525/models.rb', line 17618

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