Class: TencentCloud::Omics::V20221128::LimitRange

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

Overview

资源限制范围。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(maxcpu = nil, maxmemory = nil) ⇒ LimitRange

Returns a new instance of LimitRange.



1356
1357
1358
1359
# File 'lib/v20221128/models.rb', line 1356

def initialize(maxcpu=nil, maxmemory=nil)
  @MaxCPU = maxcpu
  @MaxMemory = maxmemory
end

Instance Attribute Details

#MaxCPUObject

Parameters:

  • MaxCPU:

    最大CPU设置

  • MaxMemory:

    最大内存设置(单位:Mi,Gi,Ti,M,G,T)



1354
1355
1356
# File 'lib/v20221128/models.rb', line 1354

def MaxCPU
  @MaxCPU
end

#MaxMemoryObject

Parameters:

  • MaxCPU:

    最大CPU设置

  • MaxMemory:

    最大内存设置(单位:Mi,Gi,Ti,M,G,T)



1354
1355
1356
# File 'lib/v20221128/models.rb', line 1354

def MaxMemory
  @MaxMemory
end

Instance Method Details

#deserialize(params) ⇒ Object



1361
1362
1363
1364
# File 'lib/v20221128/models.rb', line 1361

def deserialize(params)
  @MaxCPU = params['MaxCPU']
  @MaxMemory = params['MaxMemory']
end