Class: TencentCloud::Cbs::V20170312::CreateSnapshotGroupRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cbs::V20170312::CreateSnapshotGroupRequest
- Defined in:
- lib/v20170312/models.rb
Overview
CreateSnapshotGroup请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(diskids = nil, snapshotgroupname = nil, tags = nil) ⇒ CreateSnapshotGroupRequest
constructor
A new instance of CreateSnapshotGroupRequest.
Constructor Details
#initialize(diskids = nil, snapshotgroupname = nil, tags = nil) ⇒ CreateSnapshotGroupRequest
Returns a new instance of CreateSnapshotGroupRequest.
815 816 817 818 819 |
# File 'lib/v20170312/models.rb', line 815 def initialize(diskids=nil, snapshotgroupname=nil, =nil) @DiskIds = diskids @SnapshotGroupName = snapshotgroupname @Tags = end |
Instance Attribute Details
#DiskIds ⇒ Object
813 814 815 |
# File 'lib/v20170312/models.rb', line 813 def DiskIds @DiskIds end |
#SnapshotGroupName ⇒ Object
813 814 815 |
# File 'lib/v20170312/models.rb', line 813 def SnapshotGroupName @SnapshotGroupName end |
#Tags ⇒ Object
813 814 815 |
# File 'lib/v20170312/models.rb', line 813 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
821 822 823 824 825 826 827 828 829 830 831 832 |
# File 'lib/v20170312/models.rb', line 821 def deserialize(params) @DiskIds = params['DiskIds'] @SnapshotGroupName = params['SnapshotGroupName'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end end |