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.
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
#EmptyDir ⇒ Object
1547 1548 1549 |
# File 'lib/v20180608/models.rb', line 1547 def EmptyDir @EmptyDir end |
#EnableEmptyDirVolume ⇒ Object
1547 1548 1549 |
# File 'lib/v20180608/models.rb', line 1547 def EnableEmptyDirVolume @EnableEmptyDirVolume end |
#HostPath ⇒ Object
1547 1548 1549 |
# File 'lib/v20180608/models.rb', line 1547 def HostPath @HostPath end |
#Name ⇒ Object
1547 1548 1549 |
# File 'lib/v20180608/models.rb', line 1547 def Name @Name end |
#NFS ⇒ Object
1547 1548 1549 |
# File 'lib/v20180608/models.rb', line 1547 def NFS @NFS end |
#SecretName ⇒ Object
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 |