Class: TencentCloud::Ecm::V20190719::CreateDisksRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ecm::V20190719::CreateDisksRequest
- Defined in:
- lib/v20190719/models.rb
Overview
CreateDisks请求参数结构体
Instance Attribute Summary collapse
- #ClientToken ⇒ Object
- #DiskChargePrepaid ⇒ Object
- #DiskChargeType ⇒ Object
- #DiskCount ⇒ Object
- #DiskName ⇒ Object
- #DiskSize ⇒ Object
- #DiskType ⇒ Object
- #Encrypt ⇒ Object
- #Placement ⇒ Object
- #Shareable ⇒ Object
- #SnapshotId ⇒ Object
- #Tags ⇒ Object
- #ThroughputPerformance ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(placement = nil, diskchargetype = nil, disktype = nil, diskname = nil, tags = nil, diskchargeprepaid = nil, diskcount = nil, throughputperformance = nil, disksize = nil, shareable = nil, clienttoken = nil, encrypt = nil, snapshotid = nil) ⇒ CreateDisksRequest
constructor
A new instance of CreateDisksRequest.
Constructor Details
#initialize(placement = nil, diskchargetype = nil, disktype = nil, diskname = nil, tags = nil, diskchargeprepaid = nil, diskcount = nil, throughputperformance = nil, disksize = nil, shareable = nil, clienttoken = nil, encrypt = nil, snapshotid = nil) ⇒ CreateDisksRequest
Returns a new instance of CreateDisksRequest.
1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 |
# File 'lib/v20190719/models.rb', line 1118 def initialize(placement=nil, diskchargetype=nil, disktype=nil, diskname=nil, =nil, diskchargeprepaid=nil, diskcount=nil, throughputperformance=nil, disksize=nil, shareable=nil, clienttoken=nil, encrypt=nil, snapshotid=nil) @Placement = placement @DiskChargeType = diskchargetype @DiskType = disktype @DiskName = diskname @Tags = @DiskChargePrepaid = diskchargeprepaid @DiskCount = diskcount @ThroughputPerformance = throughputperformance @DiskSize = disksize @Shareable = shareable @ClientToken = clienttoken @Encrypt = encrypt @SnapshotId = snapshotid end |
Instance Attribute Details
#ClientToken ⇒ Object
1116 1117 1118 |
# File 'lib/v20190719/models.rb', line 1116 def ClientToken @ClientToken end |
#DiskChargePrepaid ⇒ Object
1116 1117 1118 |
# File 'lib/v20190719/models.rb', line 1116 def DiskChargePrepaid @DiskChargePrepaid end |
#DiskChargeType ⇒ Object
1116 1117 1118 |
# File 'lib/v20190719/models.rb', line 1116 def DiskChargeType @DiskChargeType end |
#DiskCount ⇒ Object
1116 1117 1118 |
# File 'lib/v20190719/models.rb', line 1116 def DiskCount @DiskCount end |
#DiskName ⇒ Object
1116 1117 1118 |
# File 'lib/v20190719/models.rb', line 1116 def DiskName @DiskName end |
#DiskSize ⇒ Object
1116 1117 1118 |
# File 'lib/v20190719/models.rb', line 1116 def DiskSize @DiskSize end |
#DiskType ⇒ Object
1116 1117 1118 |
# File 'lib/v20190719/models.rb', line 1116 def DiskType @DiskType end |
#Encrypt ⇒ Object
1116 1117 1118 |
# File 'lib/v20190719/models.rb', line 1116 def Encrypt @Encrypt end |
#Placement ⇒ Object
1116 1117 1118 |
# File 'lib/v20190719/models.rb', line 1116 def Placement @Placement end |
#Shareable ⇒ Object
1116 1117 1118 |
# File 'lib/v20190719/models.rb', line 1116 def Shareable @Shareable end |
#SnapshotId ⇒ Object
1116 1117 1118 |
# File 'lib/v20190719/models.rb', line 1116 def SnapshotId @SnapshotId end |
#Tags ⇒ Object
1116 1117 1118 |
# File 'lib/v20190719/models.rb', line 1116 def Tags @Tags end |
#ThroughputPerformance ⇒ Object
1116 1117 1118 |
# File 'lib/v20190719/models.rb', line 1116 def ThroughputPerformance @ThroughputPerformance end |
Instance Method Details
#deserialize(params) ⇒ Object
1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 |
# File 'lib/v20190719/models.rb', line 1134 def deserialize(params) unless params['Placement'].nil? @Placement = Placement.new @Placement.deserialize(params['Placement']) end @DiskChargeType = params['DiskChargeType'] @DiskType = params['DiskType'] @DiskName = params['DiskName'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end unless params['DiskChargePrepaid'].nil? @DiskChargePrepaid = DiskChargePrepaid.new @DiskChargePrepaid.deserialize(params['DiskChargePrepaid']) end @DiskCount = params['DiskCount'] @ThroughputPerformance = params['ThroughputPerformance'] @DiskSize = params['DiskSize'] @Shareable = params['Shareable'] @ClientToken = params['ClientToken'] @Encrypt = params['Encrypt'] @SnapshotId = params['SnapshotId'] end |