Class: TencentCloud::Bm::V20180423::PsaRegulation

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180423/models.rb

Overview

一条预授权规则

Instance Attribute Summary collapse

Instance Method Summary collapse

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, tags=nil, tasktypeids=nil)
  @PsaId = psaid
  @PsaName = psaname
  @TagCount = tagcount
  @InstanceCount = instancecount
  @RepairCount = repaircount
  @RepairLimit = repairlimit
  @CreateTime = createtime
  @PsaDescription = psadescription
  @Tags = tags
  @TaskTypeIds = tasktypeids
end

Instance Attribute Details

#CreateTimeObject

Parameters:

  • PsaId:

    规则ID

  • PsaName:

    规则别名

  • TagCount:

    关联标签数量

  • InstanceCount:

    关联实例数量

  • RepairCount:

    故障实例数量

  • RepairLimit:

    故障实例上限

  • CreateTime:

    创建时间

  • PsaDescription:

    规则备注

  • Tags:

    关联标签

  • TaskTypeIds:

    关联故障类型id



3273
3274
3275
# File 'lib/v20180423/models.rb', line 3273

def CreateTime
  @CreateTime
end

#InstanceCountObject

Parameters:

  • PsaId:

    规则ID

  • PsaName:

    规则别名

  • TagCount:

    关联标签数量

  • InstanceCount:

    关联实例数量

  • RepairCount:

    故障实例数量

  • RepairLimit:

    故障实例上限

  • CreateTime:

    创建时间

  • PsaDescription:

    规则备注

  • Tags:

    关联标签

  • TaskTypeIds:

    关联故障类型id



3273
3274
3275
# File 'lib/v20180423/models.rb', line 3273

def InstanceCount
  @InstanceCount
end

#PsaDescriptionObject

Parameters:

  • PsaId:

    规则ID

  • PsaName:

    规则别名

  • TagCount:

    关联标签数量

  • InstanceCount:

    关联实例数量

  • RepairCount:

    故障实例数量

  • RepairLimit:

    故障实例上限

  • CreateTime:

    创建时间

  • PsaDescription:

    规则备注

  • Tags:

    关联标签

  • TaskTypeIds:

    关联故障类型id



3273
3274
3275
# File 'lib/v20180423/models.rb', line 3273

def PsaDescription
  @PsaDescription
end

#PsaIdObject

Parameters:

  • PsaId:

    规则ID

  • PsaName:

    规则别名

  • TagCount:

    关联标签数量

  • InstanceCount:

    关联实例数量

  • RepairCount:

    故障实例数量

  • RepairLimit:

    故障实例上限

  • CreateTime:

    创建时间

  • PsaDescription:

    规则备注

  • Tags:

    关联标签

  • TaskTypeIds:

    关联故障类型id



3273
3274
3275
# File 'lib/v20180423/models.rb', line 3273

def PsaId
  @PsaId
end

#PsaNameObject

Parameters:

  • PsaId:

    规则ID

  • PsaName:

    规则别名

  • TagCount:

    关联标签数量

  • InstanceCount:

    关联实例数量

  • RepairCount:

    故障实例数量

  • RepairLimit:

    故障实例上限

  • CreateTime:

    创建时间

  • PsaDescription:

    规则备注

  • Tags:

    关联标签

  • TaskTypeIds:

    关联故障类型id



3273
3274
3275
# File 'lib/v20180423/models.rb', line 3273

def PsaName
  @PsaName
end

#RepairCountObject

Parameters:

  • PsaId:

    规则ID

  • PsaName:

    规则别名

  • TagCount:

    关联标签数量

  • InstanceCount:

    关联实例数量

  • RepairCount:

    故障实例数量

  • RepairLimit:

    故障实例上限

  • CreateTime:

    创建时间

  • PsaDescription:

    规则备注

  • Tags:

    关联标签

  • TaskTypeIds:

    关联故障类型id



3273
3274
3275
# File 'lib/v20180423/models.rb', line 3273

def RepairCount
  @RepairCount
end

#RepairLimitObject

Parameters:

  • PsaId:

    规则ID

  • PsaName:

    规则别名

  • TagCount:

    关联标签数量

  • InstanceCount:

    关联实例数量

  • RepairCount:

    故障实例数量

  • RepairLimit:

    故障实例上限

  • CreateTime:

    创建时间

  • PsaDescription:

    规则备注

  • Tags:

    关联标签

  • TaskTypeIds:

    关联故障类型id



3273
3274
3275
# File 'lib/v20180423/models.rb', line 3273

def RepairLimit
  @RepairLimit
end

#TagCountObject

Parameters:

  • PsaId:

    规则ID

  • PsaName:

    规则别名

  • TagCount:

    关联标签数量

  • InstanceCount:

    关联实例数量

  • RepairCount:

    故障实例数量

  • RepairLimit:

    故障实例上限

  • CreateTime:

    创建时间

  • PsaDescription:

    规则备注

  • Tags:

    关联标签

  • TaskTypeIds:

    关联故障类型id



3273
3274
3275
# File 'lib/v20180423/models.rb', line 3273

def TagCount
  @TagCount
end

#TagsObject

Parameters:

  • PsaId:

    规则ID

  • PsaName:

    规则别名

  • TagCount:

    关联标签数量

  • InstanceCount:

    关联实例数量

  • RepairCount:

    故障实例数量

  • RepairLimit:

    故障实例上限

  • CreateTime:

    创建时间

  • PsaDescription:

    规则备注

  • Tags:

    关联标签

  • TaskTypeIds:

    关联故障类型id



3273
3274
3275
# File 'lib/v20180423/models.rb', line 3273

def Tags
  @Tags
end

#TaskTypeIdsObject

Parameters:

  • PsaId:

    规则ID

  • PsaName:

    规则别名

  • TagCount:

    关联标签数量

  • InstanceCount:

    关联实例数量

  • RepairCount:

    故障实例数量

  • RepairLimit:

    故障实例上限

  • CreateTime:

    创建时间

  • PsaDescription:

    规则备注

  • Tags:

    关联标签

  • TaskTypeIds:

    关联故障类型id



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