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.
1037 1038 1039 1040 1041 1042 1043 |
# File 'lib/v20180608/models.rb', line 1037 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,表示取不到有效值。
1035 1036 1037 |
# File 'lib/v20180608/models.rb', line 1035 def MountPath @MountPath end |
#MountPropagation ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1035 1036 1037 |
# File 'lib/v20180608/models.rb', line 1035 def MountPropagation @MountPropagation end |
#Name ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1035 1036 1037 |
# File 'lib/v20180608/models.rb', line 1035 def Name @Name end |
#NfsVolumes ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1035 1036 1037 |
# File 'lib/v20180608/models.rb', line 1035 def NfsVolumes @NfsVolumes end |
#ReadOnly ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1035 1036 1037 |
# File 'lib/v20180608/models.rb', line 1035 def ReadOnly @ReadOnly end |
Instance Method Details
#deserialize(params) ⇒ Object
1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 |
# File 'lib/v20180608/models.rb', line 1045 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 |