Class: TencentCloud::Tcb::V20180608::CloudRunServiceVolume
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tcb::V20180608::CloudRunServiceVolume
- Defined in:
- lib/v20180608/models.rb
Overview
服务的volume
Instance Attribute Summary collapse
- #EmptyDir ⇒ Object
- #EnableEmptyDirVolume ⇒ Object
- #HostPath ⇒ Object
- #Name ⇒ Object
- #NFS ⇒ Object
- #SecretName ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, nfs = nil, secretname = nil, enableemptydirvolume = nil, emptydir = nil, hostpath = nil) ⇒ CloudRunServiceVolume
constructor
A new instance of CloudRunServiceVolume.
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
#EmptyDir ⇒ Object
1293 1294 1295 |
# File 'lib/v20180608/models.rb', line 1293 def EmptyDir @EmptyDir end |
#EnableEmptyDirVolume ⇒ Object
1293 1294 1295 |
# File 'lib/v20180608/models.rb', line 1293 def EnableEmptyDirVolume @EnableEmptyDirVolume end |
#HostPath ⇒ Object
1293 1294 1295 |
# File 'lib/v20180608/models.rb', line 1293 def HostPath @HostPath end |
#Name ⇒ Object
1293 1294 1295 |
# File 'lib/v20180608/models.rb', line 1293 def Name @Name end |
#NFS ⇒ Object
1293 1294 1295 |
# File 'lib/v20180608/models.rb', line 1293 def NFS @NFS end |
#SecretName ⇒ Object
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 |