Class: TencentCloud::Tke::V20180525::EksCiVolume

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

Overview

EKS Instance Volume, 可选包括CbsVolume和NfsVolume

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cbsvolumes = nil, nfsvolumes = nil) ⇒ EksCiVolume

Returns a new instance of EksCiVolume.



11372
11373
11374
11375
# File 'lib/v20180525/models.rb', line 11372

def initialize(cbsvolumes=nil, nfsvolumes=nil)
  @CbsVolumes = cbsvolumes
  @NfsVolumes = nfsvolumes
end

Instance Attribute Details

#CbsVolumesObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • CbsVolumes:

    Cbs Volume

  • NfsVolumes:

    Nfs Volume



11370
11371
11372
# File 'lib/v20180525/models.rb', line 11370

def CbsVolumes
  @CbsVolumes
end

#NfsVolumesObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • CbsVolumes:

    Cbs Volume

  • NfsVolumes:

    Nfs Volume



11370
11371
11372
# File 'lib/v20180525/models.rb', line 11370

def NfsVolumes
  @NfsVolumes
end

Instance Method Details

#deserialize(params) ⇒ Object



11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
# File 'lib/v20180525/models.rb', line 11377

def deserialize(params)
  unless params['CbsVolumes'].nil?
    @CbsVolumes = []
    params['CbsVolumes'].each do |i|
      cbsvolume_tmp = CbsVolume.new
      cbsvolume_tmp.deserialize(i)
      @CbsVolumes << cbsvolume_tmp
    end
  end
  unless params['NfsVolumes'].nil?
    @NfsVolumes = []
    params['NfsVolumes'].each do |i|
      nfsvolume_tmp = NfsVolume.new
      nfsvolume_tmp.deserialize(i)
      @NfsVolumes << nfsvolume_tmp
    end
  end
end