Class: TencentCloud::Emr::V20190103::PodVolume

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

Overview

Pod的存储设备描述信息。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(volumetype = nil, pvcvolume = nil, hostvolume = nil) ⇒ PodVolume

Returns a new instance of PodVolume.



11509
11510
11511
11512
11513
# File 'lib/v20190103/models.rb', line 11509

def initialize(volumetype=nil, pvcvolume=nil, hostvolume=nil)
  @VolumeType = volumetype
  @PVCVolume = pvcvolume
  @HostVolume = hostvolume
end

Instance Attribute Details

#HostVolumeObject

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

Parameters:

  • 存储类型,可为"pvc","hostpath"。

  • 当VolumeType为"pvc"时,该字段生效。

  • 当VolumeType为"hostpath"时,该字段生效。



11507
11508
11509
# File 'lib/v20190103/models.rb', line 11507

def HostVolume
  @HostVolume
end

#PVCVolumeObject

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

Parameters:

  • 存储类型,可为"pvc","hostpath"。

  • 当VolumeType为"pvc"时,该字段生效。

  • 当VolumeType为"hostpath"时,该字段生效。



11507
11508
11509
# File 'lib/v20190103/models.rb', line 11507

def PVCVolume
  @PVCVolume
end

#VolumeTypeObject

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

Parameters:

  • 存储类型,可为"pvc","hostpath"。

  • 当VolumeType为"pvc"时,该字段生效。

  • 当VolumeType为"hostpath"时,该字段生效。



11507
11508
11509
# File 'lib/v20190103/models.rb', line 11507

def VolumeType
  @VolumeType
end

Instance Method Details

#deserialize(params) ⇒ Object



11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
# File 'lib/v20190103/models.rb', line 11515

def deserialize(params)
  @VolumeType = params['VolumeType']
  unless params['PVCVolume'].nil?
    @PVCVolume = PersistentVolumeContext.new
    @PVCVolume.deserialize(params['PVCVolume'])
  end
  unless params['HostVolume'].nil?
    @HostVolume = HostVolumeContext.new
    @HostVolume.deserialize(params['HostVolume'])
  end
end