Class: TencentCloud::Thpc::V20230321::ModifyClusterDeletionProtectionRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Thpc::V20230321::ModifyClusterDeletionProtectionRequest
- Defined in:
- lib/v20230321/models.rb
Overview
ModifyClusterDeletionProtection请求参数结构体
Instance Attribute Summary collapse
-
#ClusterId ⇒ Object
可选值:
- OFF:关闭集群删除保护。
- ON:打开集群删除保护。
. -
#DeletionProtection ⇒ Object
可选值:
- OFF:关闭集群删除保护。
- ON:打开集群删除保护。
.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(clusterid = nil, deletionprotection = nil) ⇒ ModifyClusterDeletionProtectionRequest
constructor
A new instance of ModifyClusterDeletionProtectionRequest.
Constructor Details
#initialize(clusterid = nil, deletionprotection = nil) ⇒ ModifyClusterDeletionProtectionRequest
Returns a new instance of ModifyClusterDeletionProtectionRequest.
2516 2517 2518 2519 |
# File 'lib/v20230321/models.rb', line 2516 def initialize(clusterid=nil, deletionprotection=nil) @ClusterId = clusterid @DeletionProtection = deletionprotection end |
Instance Attribute Details
#ClusterId ⇒ Object
可选值:
2514 2515 2516 |
# File 'lib/v20230321/models.rb', line 2514 def ClusterId @ClusterId end |
#DeletionProtection ⇒ Object
可选值:
2514 2515 2516 |
# File 'lib/v20230321/models.rb', line 2514 def DeletionProtection @DeletionProtection end |
Instance Method Details
#deserialize(params) ⇒ Object
2521 2522 2523 2524 |
# File 'lib/v20230321/models.rb', line 2521 def deserialize(params) @ClusterId = params['ClusterId'] @DeletionProtection = params['DeletionProtection'] end |