Class: TencentCloud::Tcb::V20180608::CloudBaseRunVolumeMount
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tcb::V20180608::CloudBaseRunVolumeMount
- Defined in:
- lib/v20180608/models.rb
Overview
cfs挂载点
Instance Attribute Summary collapse
-
#MountPath ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#MountPropagation ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Name ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#NfsVolumes ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#ReadOnly ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, mountpath = nil, readonly = nil, nfsvolumes = nil, mountpropagation = nil) ⇒ CloudBaseRunVolumeMount
constructor
A new instance of CloudBaseRunVolumeMount.
Constructor Details
#initialize(name = nil, mountpath = nil, readonly = nil, nfsvolumes = nil, mountpropagation = nil) ⇒ CloudBaseRunVolumeMount
Returns a new instance of CloudBaseRunVolumeMount.
1291 1292 1293 1294 1295 1296 1297 |
# File 'lib/v20180608/models.rb', line 1291 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
#MountPath ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1289 1290 1291 |
# File 'lib/v20180608/models.rb', line 1289 def MountPath @MountPath end |
#MountPropagation ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1289 1290 1291 |
# File 'lib/v20180608/models.rb', line 1289 def MountPropagation @MountPropagation end |
#Name ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1289 1290 1291 |
# File 'lib/v20180608/models.rb', line 1289 def Name @Name end |
#NfsVolumes ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1289 1290 1291 |
# File 'lib/v20180608/models.rb', line 1289 def NfsVolumes @NfsVolumes end |
#ReadOnly ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1289 1290 1291 |
# File 'lib/v20180608/models.rb', line 1289 def ReadOnly @ReadOnly end |
Instance Method Details
#deserialize(params) ⇒ Object
1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 |
# File 'lib/v20180608/models.rb', line 1299 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 |