Class: TencentCloud::Tcb::V20180608::CloudRunServiceVolume

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

Overview

服务的volume

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, nfs = nil, secretname = nil, enableemptydirvolume = nil, emptydir = nil, hostpath = nil) ⇒ CloudRunServiceVolume

Returns a new instance of CloudRunServiceVolume.



1549
1550
1551
1552
1553
1554
1555
1556
# File 'lib/v20180608/models.rb', line 1549

def initialize(name=nil, nfs=nil, secretname=nil, enableemptydirvolume=nil, emptydir=nil, hostpath=nil)
  @Name = name
  @NFS = nfs
  @SecretName = secretname
  @EnableEmptyDirVolume = enableemptydirvolume
  @EmptyDir = emptydir
  @HostPath = hostpath
end

Instance Attribute Details

#EmptyDirObject

Parameters:

  • Name:

    名称

  • NFS:

    NFS的挂载方式

  • SecretName:

    secret名称

  • EnableEmptyDirVolume:

    是否开启临时目录逐步废弃,请使用 EmptyDir

  • EmptyDir:

    emptydir数据卷详细信息

  • HostPath:

    主机路径挂载信息



1547
1548
1549
# File 'lib/v20180608/models.rb', line 1547

def EmptyDir
  @EmptyDir
end

#EnableEmptyDirVolumeObject

Parameters:

  • Name:

    名称

  • NFS:

    NFS的挂载方式

  • SecretName:

    secret名称

  • EnableEmptyDirVolume:

    是否开启临时目录逐步废弃,请使用 EmptyDir

  • EmptyDir:

    emptydir数据卷详细信息

  • HostPath:

    主机路径挂载信息



1547
1548
1549
# File 'lib/v20180608/models.rb', line 1547

def EnableEmptyDirVolume
  @EnableEmptyDirVolume
end

#HostPathObject

Parameters:

  • Name:

    名称

  • NFS:

    NFS的挂载方式

  • SecretName:

    secret名称

  • EnableEmptyDirVolume:

    是否开启临时目录逐步废弃,请使用 EmptyDir

  • EmptyDir:

    emptydir数据卷详细信息

  • HostPath:

    主机路径挂载信息



1547
1548
1549
# File 'lib/v20180608/models.rb', line 1547

def HostPath
  @HostPath
end

#NameObject

Parameters:

  • Name:

    名称

  • NFS:

    NFS的挂载方式

  • SecretName:

    secret名称

  • EnableEmptyDirVolume:

    是否开启临时目录逐步废弃,请使用 EmptyDir

  • EmptyDir:

    emptydir数据卷详细信息

  • HostPath:

    主机路径挂载信息



1547
1548
1549
# File 'lib/v20180608/models.rb', line 1547

def Name
  @Name
end

#NFSObject

Parameters:

  • Name:

    名称

  • NFS:

    NFS的挂载方式

  • SecretName:

    secret名称

  • EnableEmptyDirVolume:

    是否开启临时目录逐步废弃,请使用 EmptyDir

  • EmptyDir:

    emptydir数据卷详细信息

  • HostPath:

    主机路径挂载信息



1547
1548
1549
# File 'lib/v20180608/models.rb', line 1547

def NFS
  @NFS
end

#SecretNameObject

Parameters:

  • Name:

    名称

  • NFS:

    NFS的挂载方式

  • SecretName:

    secret名称

  • EnableEmptyDirVolume:

    是否开启临时目录逐步废弃,请使用 EmptyDir

  • EmptyDir:

    emptydir数据卷详细信息

  • HostPath:

    主机路径挂载信息



1547
1548
1549
# File 'lib/v20180608/models.rb', line 1547

def SecretName
  @SecretName
end

Instance Method Details

#deserialize(params) ⇒ Object



1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
# File 'lib/v20180608/models.rb', line 1558

def deserialize(params)
  @Name = params['Name']
  unless params['NFS'].nil?
    @NFS = CloudBaseRunNfsVolumeSource.new
    @NFS.deserialize(params['NFS'])
  end
  @SecretName = params['SecretName']
  @EnableEmptyDirVolume = params['EnableEmptyDirVolume']
  unless params['EmptyDir'].nil?
    @EmptyDir = CloudBaseRunEmptyDirVolumeSource.new
    @EmptyDir.deserialize(params['EmptyDir'])
  end
  unless params['HostPath'].nil?
    @HostPath = CloudBaseRunServiceVolumeHostPath.new
    @HostPath.deserialize(params['HostPath'])
  end
end