Class: TencentCloud::Emr::V20190103::VolumeSetting

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

Overview

数据卷目录设置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(volumetype = nil, hostpath = nil) ⇒ VolumeSetting

Returns a new instance of VolumeSetting.



14418
14419
14420
14421
# File 'lib/v20190103/models.rb', line 14418

def initialize(volumetype=nil, hostpath=nil)
  @VolumeType = volumetype
  @HostPath = hostpath
end

Instance Attribute Details

#HostPathObject

<li>HOST_PATH表示支持本机路径</li> <li>NEW_PVC表示新建PVC</li> 组件角色支持的数据卷类型可参考 EMR on TKE 集群部署说明:(cloud.tencent.com/document/product/589/94254) 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • VolumeType:

    数据卷类型

  • HostPath:

    主机路径信息



14416
14417
14418
# File 'lib/v20190103/models.rb', line 14416

def HostPath
  @HostPath
end

#VolumeTypeObject

<li>HOST_PATH表示支持本机路径</li> <li>NEW_PVC表示新建PVC</li> 组件角色支持的数据卷类型可参考 EMR on TKE 集群部署说明:(cloud.tencent.com/document/product/589/94254) 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • VolumeType:

    数据卷类型

  • HostPath:

    主机路径信息



14416
14417
14418
# File 'lib/v20190103/models.rb', line 14416

def VolumeType
  @VolumeType
end

Instance Method Details

#deserialize(params) ⇒ Object



14423
14424
14425
14426
14427
14428
14429
# File 'lib/v20190103/models.rb', line 14423

def deserialize(params)
  @VolumeType = params['VolumeType']
  unless params['HostPath'].nil?
    @HostPath = HostPathVolumeSource.new
    @HostPath.deserialize(params['HostPath'])
  end
end