Class: TencentCloud::Live::V20180801::BackupStreamGroupInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Live::V20180801::BackupStreamGroupInfo
- Defined in:
- lib/v20180801/models.rb
Overview
主备流分组信息。
Instance Attribute Summary collapse
-
#BackupList ⇒ Object
0 - 未开启。 1 - 已开启。.
-
#HostGroupName ⇒ Object
0 - 未开启。 1 - 已开启。.
-
#OptimalEnable ⇒ Object
0 - 未开启。 1 - 已开启。.
-
#StreamName ⇒ Object
0 - 未开启。 1 - 已开启。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(streamname = nil, backuplist = nil, optimalenable = nil, hostgroupname = nil) ⇒ BackupStreamGroupInfo
constructor
A new instance of BackupStreamGroupInfo.
Constructor Details
#initialize(streamname = nil, backuplist = nil, optimalenable = nil, hostgroupname = nil) ⇒ BackupStreamGroupInfo
Returns a new instance of BackupStreamGroupInfo.
608 609 610 611 612 613 |
# File 'lib/v20180801/models.rb', line 608 def initialize(streamname=nil, backuplist=nil, optimalenable=nil, hostgroupname=nil) @StreamName = streamname @BackupList = backuplist @OptimalEnable = optimalenable @HostGroupName = hostgroupname end |
Instance Attribute Details
#BackupList ⇒ Object
0 - 未开启。1 - 已开启。
606 607 608 |
# File 'lib/v20180801/models.rb', line 606 def BackupList @BackupList end |
#HostGroupName ⇒ Object
0 - 未开启。1 - 已开启。
606 607 608 |
# File 'lib/v20180801/models.rb', line 606 def HostGroupName @HostGroupName end |
#OptimalEnable ⇒ Object
0 - 未开启。1 - 已开启。
606 607 608 |
# File 'lib/v20180801/models.rb', line 606 def OptimalEnable @OptimalEnable end |
#StreamName ⇒ Object
0 - 未开启。1 - 已开启。
606 607 608 |
# File 'lib/v20180801/models.rb', line 606 def StreamName @StreamName end |
Instance Method Details
#deserialize(params) ⇒ Object
615 616 617 618 619 620 621 622 623 624 625 626 627 |
# File 'lib/v20180801/models.rb', line 615 def deserialize(params) @StreamName = params['StreamName'] unless params['BackupList'].nil? @BackupList = [] params['BackupList'].each do |i| backupstreamdetaildata_tmp = BackupStreamDetailData.new backupstreamdetaildata_tmp.deserialize(i) @BackupList << backupstreamdetaildata_tmp end end @OptimalEnable = params['OptimalEnable'] @HostGroupName = params['HostGroupName'] end |