Class: TencentCloud::Tcb::V20180608::CloudBaseRunVolumeMount

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

Overview

cfs挂载点

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, mountpath = nil, readonly = nil, nfsvolumes = nil, mountpropagation = nil) ⇒ CloudBaseRunVolumeMount

Returns a new instance of CloudBaseRunVolumeMount.



1037
1038
1039
1040
1041
1042
1043
# File 'lib/v20180608/models.rb', line 1037

def initialize(name=nil, mountpath=nil, readonly=nil, nfsvolumes=nil, mountpropagation=nil)
  @Name = name
  @MountPath = mountpath
  @ReadOnly = readonly
  @NfsVolumes = nfsvolumes
  @MountPropagation = mountpropagation
end

Instance Attribute Details

#MountPathObject

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

Parameters:

  • Name:

    资源名

  • MountPath:

    挂载路径

  • ReadOnly:

    是否只读

  • NfsVolumes:

    Nfs挂载信息

  • MountPropagation:

    挂载配置



1035
1036
1037
# File 'lib/v20180608/models.rb', line 1035

def MountPath
  @MountPath
end

#MountPropagationObject

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

Parameters:

  • Name:

    资源名

  • MountPath:

    挂载路径

  • ReadOnly:

    是否只读

  • NfsVolumes:

    Nfs挂载信息

  • MountPropagation:

    挂载配置



1035
1036
1037
# File 'lib/v20180608/models.rb', line 1035

def MountPropagation
  @MountPropagation
end

#NameObject

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

Parameters:

  • Name:

    资源名

  • MountPath:

    挂载路径

  • ReadOnly:

    是否只读

  • NfsVolumes:

    Nfs挂载信息

  • MountPropagation:

    挂载配置



1035
1036
1037
# File 'lib/v20180608/models.rb', line 1035

def Name
  @Name
end

#NfsVolumesObject

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

Parameters:

  • Name:

    资源名

  • MountPath:

    挂载路径

  • ReadOnly:

    是否只读

  • NfsVolumes:

    Nfs挂载信息

  • MountPropagation:

    挂载配置



1035
1036
1037
# File 'lib/v20180608/models.rb', line 1035

def NfsVolumes
  @NfsVolumes
end

#ReadOnlyObject

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

Parameters:

  • Name:

    资源名

  • MountPath:

    挂载路径

  • ReadOnly:

    是否只读

  • NfsVolumes:

    Nfs挂载信息

  • MountPropagation:

    挂载配置



1035
1036
1037
# File 'lib/v20180608/models.rb', line 1035

def ReadOnly
  @ReadOnly
end

Instance Method Details

#deserialize(params) ⇒ Object



1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
# File 'lib/v20180608/models.rb', line 1045

def deserialize(params)
  @Name = params['Name']
  @MountPath = params['MountPath']
  @ReadOnly = params['ReadOnly']
  unless params['NfsVolumes'].nil?
    @NfsVolumes = []
    params['NfsVolumes'].each do |i|
      cloudbaserunnfsvolumesource_tmp = CloudBaseRunNfsVolumeSource.new
      cloudbaserunnfsvolumesource_tmp.deserialize(i)
      @NfsVolumes << cloudbaserunnfsvolumesource_tmp
    end
  end
  @MountPropagation = params['MountPropagation']
end