Class: TencentCloud::Cfg::V20210820::Template
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cfg::V20210820::Template
- Defined in:
- lib/v20210820/models.rb
Overview
经验库
Instance Attribute Summary collapse
-
#AlarmPolicy ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#ApmServiceList ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#PolicyDealType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Tags ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TemplateCreateTime ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TemplateDescription ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TemplateGroups ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TemplateId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TemplateIsUsed ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TemplateMode ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TemplateMonitors ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TemplateOwnerUin ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TemplatePauseDuration ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TemplatePolicy ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TemplatePurpose ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TemplateRegionId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TemplateScenario ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TemplateSource ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TemplateTag ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TemplateTitle ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TemplateUpdateTime ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(templateid = nil, templatetitle = nil, templatedescription = nil, templatetag = nil, templateisused = nil, templatecreatetime = nil, templateupdatetime = nil, templatemode = nil, templatepauseduration = nil, templateowneruin = nil, templateregionid = nil, templategroups = nil, templatemonitors = nil, templatepolicy = nil, tags = nil, templatesource = nil, apmservicelist = nil, alarmpolicy = nil, policydealtype = nil, templatescenario = nil, templatepurpose = nil) ⇒ Template
constructor
A new instance of Template.
Constructor Details
#initialize(templateid = nil, templatetitle = nil, templatedescription = nil, templatetag = nil, templateisused = nil, templatecreatetime = nil, templateupdatetime = nil, templatemode = nil, templatepauseduration = nil, templateowneruin = nil, templateregionid = nil, templategroups = nil, templatemonitors = nil, templatepolicy = nil, tags = nil, templatesource = nil, apmservicelist = nil, alarmpolicy = nil, policydealtype = nil, templatescenario = nil, templatepurpose = nil) ⇒ Template
Returns a new instance of Template.
2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 |
# File 'lib/v20210820/models.rb', line 2406 def initialize(templateid=nil, templatetitle=nil, templatedescription=nil, templatetag=nil, templateisused=nil, templatecreatetime=nil, templateupdatetime=nil, templatemode=nil, templatepauseduration=nil, templateowneruin=nil, templateregionid=nil, templategroups=nil, templatemonitors=nil, templatepolicy=nil, =nil, templatesource=nil, apmservicelist=nil, alarmpolicy=nil, policydealtype=nil, templatescenario=nil, templatepurpose=nil) @TemplateId = templateid @TemplateTitle = templatetitle @TemplateDescription = templatedescription @TemplateTag = templatetag @TemplateIsUsed = templateisused @TemplateCreateTime = templatecreatetime @TemplateUpdateTime = templateupdatetime @TemplateMode = templatemode @TemplatePauseDuration = templatepauseduration @TemplateOwnerUin = templateowneruin @TemplateRegionId = templateregionid @TemplateGroups = templategroups @TemplateMonitors = templatemonitors @TemplatePolicy = templatepolicy @Tags = @TemplateSource = templatesource @ApmServiceList = apmservicelist @AlarmPolicy = alarmpolicy @PolicyDealType = policydealtype @TemplateScenario = templatescenario @TemplatePurpose = templatepurpose end |
Instance Attribute Details
#AlarmPolicy ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2404 2405 2406 |
# File 'lib/v20210820/models.rb', line 2404 def AlarmPolicy @AlarmPolicy end |
#ApmServiceList ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2404 2405 2406 |
# File 'lib/v20210820/models.rb', line 2404 def ApmServiceList @ApmServiceList end |
#PolicyDealType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2404 2405 2406 |
# File 'lib/v20210820/models.rb', line 2404 def PolicyDealType @PolicyDealType end |
#Tags ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2404 2405 2406 |
# File 'lib/v20210820/models.rb', line 2404 def Tags @Tags end |
#TemplateCreateTime ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2404 2405 2406 |
# File 'lib/v20210820/models.rb', line 2404 def TemplateCreateTime @TemplateCreateTime end |
#TemplateDescription ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2404 2405 2406 |
# File 'lib/v20210820/models.rb', line 2404 def TemplateDescription @TemplateDescription end |
#TemplateGroups ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2404 2405 2406 |
# File 'lib/v20210820/models.rb', line 2404 def TemplateGroups @TemplateGroups end |
#TemplateId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2404 2405 2406 |
# File 'lib/v20210820/models.rb', line 2404 def TemplateId @TemplateId end |
#TemplateIsUsed ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2404 2405 2406 |
# File 'lib/v20210820/models.rb', line 2404 def TemplateIsUsed @TemplateIsUsed end |
#TemplateMode ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2404 2405 2406 |
# File 'lib/v20210820/models.rb', line 2404 def TemplateMode @TemplateMode end |
#TemplateMonitors ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2404 2405 2406 |
# File 'lib/v20210820/models.rb', line 2404 def TemplateMonitors @TemplateMonitors end |
#TemplateOwnerUin ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2404 2405 2406 |
# File 'lib/v20210820/models.rb', line 2404 def TemplateOwnerUin @TemplateOwnerUin end |
#TemplatePauseDuration ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2404 2405 2406 |
# File 'lib/v20210820/models.rb', line 2404 def TemplatePauseDuration @TemplatePauseDuration end |
#TemplatePolicy ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2404 2405 2406 |
# File 'lib/v20210820/models.rb', line 2404 def TemplatePolicy @TemplatePolicy end |
#TemplatePurpose ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2404 2405 2406 |
# File 'lib/v20210820/models.rb', line 2404 def TemplatePurpose @TemplatePurpose end |
#TemplateRegionId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2404 2405 2406 |
# File 'lib/v20210820/models.rb', line 2404 def TemplateRegionId @TemplateRegionId end |
#TemplateScenario ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2404 2405 2406 |
# File 'lib/v20210820/models.rb', line 2404 def TemplateScenario @TemplateScenario end |
#TemplateSource ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2404 2405 2406 |
# File 'lib/v20210820/models.rb', line 2404 def TemplateSource @TemplateSource end |
#TemplateTag ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2404 2405 2406 |
# File 'lib/v20210820/models.rb', line 2404 def TemplateTag @TemplateTag end |
#TemplateTitle ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2404 2405 2406 |
# File 'lib/v20210820/models.rb', line 2404 def TemplateTitle @TemplateTitle end |
#TemplateUpdateTime ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2404 2405 2406 |
# File 'lib/v20210820/models.rb', line 2404 def TemplateUpdateTime @TemplateUpdateTime end |
Instance Method Details
#deserialize(params) ⇒ Object
2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 |
# File 'lib/v20210820/models.rb', line 2430 def deserialize(params) @TemplateId = params['TemplateId'] @TemplateTitle = params['TemplateTitle'] @TemplateDescription = params['TemplateDescription'] @TemplateTag = params['TemplateTag'] @TemplateIsUsed = params['TemplateIsUsed'] @TemplateCreateTime = params['TemplateCreateTime'] @TemplateUpdateTime = params['TemplateUpdateTime'] @TemplateMode = params['TemplateMode'] @TemplatePauseDuration = params['TemplatePauseDuration'] @TemplateOwnerUin = params['TemplateOwnerUin'] @TemplateRegionId = params['TemplateRegionId'] unless params['TemplateGroups'].nil? @TemplateGroups = [] params['TemplateGroups'].each do |i| templategroup_tmp = TemplateGroup.new templategroup_tmp.deserialize(i) @TemplateGroups << templategroup_tmp end end unless params['TemplateMonitors'].nil? @TemplateMonitors = [] params['TemplateMonitors'].each do |i| templatemonitor_tmp = TemplateMonitor.new templatemonitor_tmp.deserialize(i) @TemplateMonitors << templatemonitor_tmp end end unless params['TemplatePolicy'].nil? @TemplatePolicy = TemplatePolicy.new @TemplatePolicy.deserialize(params['TemplatePolicy']) end unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tagwithdescribe_tmp = TagWithDescribe.new tagwithdescribe_tmp.deserialize(i) @Tags << tagwithdescribe_tmp end end @TemplateSource = params['TemplateSource'] unless params['ApmServiceList'].nil? @ApmServiceList = [] params['ApmServiceList'].each do |i| apmserviceinfo_tmp = ApmServiceInfo.new apmserviceinfo_tmp.deserialize(i) @ApmServiceList << apmserviceinfo_tmp end end @AlarmPolicy = params['AlarmPolicy'] @PolicyDealType = params['PolicyDealType'] unless params['TemplateScenario'].nil? @TemplateScenario = [] params['TemplateScenario'].each do |i| tasktarget_tmp = TaskTarget.new tasktarget_tmp.deserialize(i) @TemplateScenario << tasktarget_tmp end end unless params['TemplatePurpose'].nil? @TemplatePurpose = [] params['TemplatePurpose'].each do |i| tasktarget_tmp = TaskTarget.new tasktarget_tmp.deserialize(i) @TemplatePurpose << tasktarget_tmp end end end |