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.



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

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



17616
17617
17618
# File 'lib/v20180525/models.rb', line 17616

def DeleteMode
  @DeleteMode
end

#ResourceTypeObject

Parameters:

  • ResourceType:

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

  • DeleteMode:

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

  • SkipDeletionProtection:

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



17616
17617
17618
# File 'lib/v20180525/models.rb', line 17616

def ResourceType
  @ResourceType
end

#SkipDeletionProtectionObject

Parameters:

  • ResourceType:

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

  • DeleteMode:

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

  • SkipDeletionProtection:

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



17616
17617
17618
# File 'lib/v20180525/models.rb', line 17616

def SkipDeletionProtection
  @SkipDeletionProtection
end

Instance Method Details

#deserialize(params) ⇒ Object



17624
17625
17626
17627
17628
# File 'lib/v20180525/models.rb', line 17624

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