Class: TencentCloud::Cvm::V20170312::CreateDisasterRecoverGroupRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cvm::V20170312::CreateDisasterRecoverGroupRequest
- Defined in:
- lib/v20170312/models.rb
Overview
CreateDisasterRecoverGroup请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, type = nil, clienttoken = nil, affinity = nil, tagspecification = nil) ⇒ CreateDisasterRecoverGroupRequest
constructor
A new instance of CreateDisasterRecoverGroupRequest.
Constructor Details
#initialize(name = nil, type = nil, clienttoken = nil, affinity = nil, tagspecification = nil) ⇒ CreateDisasterRecoverGroupRequest
Returns a new instance of CreateDisasterRecoverGroupRequest.
797 798 799 800 801 802 803 |
# File 'lib/v20170312/models.rb', line 797 def initialize(name=nil, type=nil, clienttoken=nil, affinity=nil, =nil) @Name = name @Type = type @ClientToken = clienttoken @Affinity = affinity @TagSpecification = end |
Instance Attribute Details
#Affinity ⇒ Object
795 796 797 |
# File 'lib/v20170312/models.rb', line 795 def Affinity @Affinity end |
#ClientToken ⇒ Object
795 796 797 |
# File 'lib/v20170312/models.rb', line 795 def ClientToken @ClientToken end |
#Name ⇒ Object
795 796 797 |
# File 'lib/v20170312/models.rb', line 795 def Name @Name end |
#TagSpecification ⇒ Object
795 796 797 |
# File 'lib/v20170312/models.rb', line 795 def TagSpecification @TagSpecification end |
#Type ⇒ Object
795 796 797 |
# File 'lib/v20170312/models.rb', line 795 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
805 806 807 808 809 810 811 812 813 814 815 816 817 818 |
# File 'lib/v20170312/models.rb', line 805 def deserialize(params) @Name = params['Name'] @Type = params['Type'] @ClientToken = params['ClientToken'] @Affinity = params['Affinity'] unless params['TagSpecification'].nil? @TagSpecification = [] params['TagSpecification'].each do |i| = TagSpecification.new .deserialize(i) @TagSpecification << end end end |