Class: TencentCloud::Cvm::V20170312::OperationCountLimit

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

Overview

描述了单台实例操作次数限制

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(operation = nil, instanceid = nil, currentcount = nil, limitcount = nil) ⇒ OperationCountLimit

Returns a new instance of OperationCountLimit.



7039
7040
7041
7042
7043
7044
# File 'lib/v20170312/models.rb', line 7039

def initialize(operation=nil, instanceid=nil, currentcount=nil, limitcount=nil)
  @Operation = operation
  @InstanceId = instanceid
  @CurrentCount = currentcount
  @LimitCount = limitcount
end

Instance Attribute Details

#CurrentCount ⇒ Object

Parameters:

  • Operation: —

    实例操作。取值范围:

  • INSTANCE_DEGRADE:降配操作
  • INTERNET_CHARGE_TYPE_CHANGE:修改网络带宽计费模式
  • InstanceId: —

    实例ID。

  • CurrentCount: —

    当前已使用次数,如果返回值为-1表示该操作无次数限制。

  • LimitCount: —

    操作次数最高额度,如果返回值为-1表示该操作无次数限制,如果返回值为0表示不支持调整配置。

  • 
    
    7037
    7038
    7039
    # File 'lib/v20170312/models.rb', line 7037
    
    def CurrentCount
      @CurrentCount
    end

    #InstanceId ⇒ Object

    Parameters:

    • Operation: —

      实例操作。取值范围:

    • INSTANCE_DEGRADE:降配操作
    • INTERNET_CHARGE_TYPE_CHANGE:修改网络带宽计费模式
  • InstanceId: —

    实例ID。

  • CurrentCount: —

    当前已使用次数,如果返回值为-1表示该操作无次数限制。

  • LimitCount: —

    操作次数最高额度,如果返回值为-1表示该操作无次数限制,如果返回值为0表示不支持调整配置。

  • 
    
    7037
    7038
    7039
    # File 'lib/v20170312/models.rb', line 7037
    
    def InstanceId
      @InstanceId
    end

    #LimitCount ⇒ Object

    Parameters:

    • Operation: —

      实例操作。取值范围:

    • INSTANCE_DEGRADE:降配操作
    • INTERNET_CHARGE_TYPE_CHANGE:修改网络带宽计费模式
  • InstanceId: —

    实例ID。

  • CurrentCount: —

    当前已使用次数,如果返回值为-1表示该操作无次数限制。

  • LimitCount: —

    操作次数最高额度,如果返回值为-1表示该操作无次数限制,如果返回值为0表示不支持调整配置。

  • 
    
    7037
    7038
    7039
    # File 'lib/v20170312/models.rb', line 7037
    
    def LimitCount
      @LimitCount
    end

    #Operation ⇒ Object

    Parameters:

  • InstanceId: —

    实例ID。

  • CurrentCount: —

    当前已使用次数,如果返回值为-1表示该操作无次数限制。

  • LimitCount: —

    操作次数最高额度,如果返回值为-1表示该操作无次数限制,如果返回值为0表示不支持调整配置。

  • 
    
    7037
    7038
    7039
    # File 'lib/v20170312/models.rb', line 7037
    
    def Operation
      @Operation
    end

    Instance Method Details

    #deserialize(params) ⇒ Object

    
    
    7046
    7047
    7048
    7049
    7050
    7051
    # File 'lib/v20170312/models.rb', line 7046
    
    def deserialize(params)
      @Operation = params['Operation']
      @InstanceId = params['InstanceId']
      @CurrentCount = params['CurrentCount']
      @LimitCount = params['LimitCount']
    end