Class: TencentCloud::Bm::V20180423::PsaRegulation
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Bm::V20180423::PsaRegulation
- Defined in:
- lib/v20180423/models.rb
Overview
一条预授权规则
Instance Attribute Summary collapse
- #CreateTime ⇒ Object
- #InstanceCount ⇒ Object
- #PsaDescription ⇒ Object
- #PsaId ⇒ Object
- #PsaName ⇒ Object
- #RepairCount ⇒ Object
- #RepairLimit ⇒ Object
- #TagCount ⇒ Object
- #Tags ⇒ Object
- #TaskTypeIds ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(psaid = nil, psaname = nil, tagcount = nil, instancecount = nil, repaircount = nil, repairlimit = nil, createtime = nil, psadescription = nil, tags = nil, tasktypeids = nil) ⇒ PsaRegulation
constructor
A new instance of PsaRegulation.
Constructor Details
#initialize(psaid = nil, psaname = nil, tagcount = nil, instancecount = nil, repaircount = nil, repairlimit = nil, createtime = nil, psadescription = nil, tags = nil, tasktypeids = nil) ⇒ PsaRegulation
Returns a new instance of PsaRegulation.
3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 |
# File 'lib/v20180423/models.rb', line 3275 def initialize(psaid=nil, psaname=nil, tagcount=nil, instancecount=nil, repaircount=nil, repairlimit=nil, createtime=nil, psadescription=nil, =nil, tasktypeids=nil) @PsaId = psaid @PsaName = psaname @TagCount = tagcount @InstanceCount = instancecount @RepairCount = repaircount @RepairLimit = repairlimit @CreateTime = createtime @PsaDescription = psadescription @Tags = @TaskTypeIds = tasktypeids end |
Instance Attribute Details
#CreateTime ⇒ Object
3273 3274 3275 |
# File 'lib/v20180423/models.rb', line 3273 def CreateTime @CreateTime end |
#InstanceCount ⇒ Object
3273 3274 3275 |
# File 'lib/v20180423/models.rb', line 3273 def InstanceCount @InstanceCount end |
#PsaDescription ⇒ Object
3273 3274 3275 |
# File 'lib/v20180423/models.rb', line 3273 def PsaDescription @PsaDescription end |
#PsaId ⇒ Object
3273 3274 3275 |
# File 'lib/v20180423/models.rb', line 3273 def PsaId @PsaId end |
#PsaName ⇒ Object
3273 3274 3275 |
# File 'lib/v20180423/models.rb', line 3273 def PsaName @PsaName end |
#RepairCount ⇒ Object
3273 3274 3275 |
# File 'lib/v20180423/models.rb', line 3273 def RepairCount @RepairCount end |
#RepairLimit ⇒ Object
3273 3274 3275 |
# File 'lib/v20180423/models.rb', line 3273 def RepairLimit @RepairLimit end |
#TagCount ⇒ Object
3273 3274 3275 |
# File 'lib/v20180423/models.rb', line 3273 def TagCount @TagCount end |
#Tags ⇒ Object
3273 3274 3275 |
# File 'lib/v20180423/models.rb', line 3273 def Tags @Tags end |
#TaskTypeIds ⇒ Object
3273 3274 3275 |
# File 'lib/v20180423/models.rb', line 3273 def TaskTypeIds @TaskTypeIds end |
Instance Method Details
#deserialize(params) ⇒ Object
3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 |
# File 'lib/v20180423/models.rb', line 3288 def deserialize(params) @PsaId = params['PsaId'] @PsaName = params['PsaName'] @TagCount = params['TagCount'] @InstanceCount = params['InstanceCount'] @RepairCount = params['RepairCount'] @RepairLimit = params['RepairLimit'] @CreateTime = params['CreateTime'] @PsaDescription = params['PsaDescription'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end @TaskTypeIds = params['TaskTypeIds'] end |