Class: TencentCloud::Thpc::V20230321::ModifyClusterDeletionProtectionRequest

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

Overview

ModifyClusterDeletionProtection请求参数结构体

Instance Attribute Summary collapse

  • #DeletionProtection ⇒ Object

    可选值:

  • OFF:关闭集群删除保护。
  • ON:打开集群删除保护。
  • .

    Instance Method Summary collapse

    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

    #ClusterIdObject

    可选值:

  • OFF:关闭集群删除保护。
  • ON:打开集群删除保护。
  • Parameters:

    • ClusterId:

      集群ID。

    • DeletionProtection:

      集群删除保护开关。

    
    
    2514
    2515
    2516
    # File 'lib/v20230321/models.rb', line 2514
    
    def ClusterId
      @ClusterId
    end

    #DeletionProtectionObject

    可选值:

  • OFF:关闭集群删除保护。
  • ON:打开集群删除保护。
  • Parameters:

    • ClusterId:

      集群ID。

    • DeletionProtection:

      集群删除保护开关。

    
    
    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