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.



1295
1296
1297
1298
1299
1300
1301
1302
# File 'lib/v20180608/models.rb', line 1295

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:

    主机路径挂载信息



1293
1294
1295
# File 'lib/v20180608/models.rb', line 1293

def EmptyDir
  @EmptyDir
end

#EnableEmptyDirVolumeObject

Parameters:

  • Name:

    名称

  • NFS:

    NFS的挂载方式

  • SecretName:

    secret名称

  • EnableEmptyDirVolume:

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

  • EmptyDir:

    emptydir数据卷详细信息

  • HostPath:

    主机路径挂载信息



1293
1294
1295
# File 'lib/v20180608/models.rb', line 1293

def EnableEmptyDirVolume
  @EnableEmptyDirVolume
end

#HostPathObject

Parameters:

  • Name:

    名称

  • NFS:

    NFS的挂载方式

  • SecretName:

    secret名称

  • EnableEmptyDirVolume:

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

  • EmptyDir:

    emptydir数据卷详细信息

  • HostPath:

    主机路径挂载信息



1293
1294
1295
# File 'lib/v20180608/models.rb', line 1293

def HostPath
  @HostPath
end

#NameObject

Parameters:

  • Name:

    名称

  • NFS:

    NFS的挂载方式

  • SecretName:

    secret名称

  • EnableEmptyDirVolume:

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

  • EmptyDir:

    emptydir数据卷详细信息

  • HostPath:

    主机路径挂载信息



1293
1294
1295
# File 'lib/v20180608/models.rb', line 1293

def Name
  @Name
end

#NFSObject

Parameters:

  • Name:

    名称

  • NFS:

    NFS的挂载方式

  • SecretName:

    secret名称

  • EnableEmptyDirVolume:

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

  • EmptyDir:

    emptydir数据卷详细信息

  • HostPath:

    主机路径挂载信息



1293
1294
1295
# File 'lib/v20180608/models.rb', line 1293

def NFS
  @NFS
end

#SecretNameObject

Parameters:

  • Name:

    名称

  • NFS:

    NFS的挂载方式

  • SecretName:

    secret名称

  • EnableEmptyDirVolume:

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

  • EmptyDir:

    emptydir数据卷详细信息

  • HostPath:

    主机路径挂载信息



1293
1294
1295
# File 'lib/v20180608/models.rb', line 1293

def SecretName
  @SecretName
end

Instance Method Details

#deserialize(params) ⇒ Object



1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
# File 'lib/v20180608/models.rb', line 1304

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