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.
860 861 862 863 864 |
# File 'lib/v20170312/models.rb', line 860 def initialize(diskids=nil, snapshotgroupname=nil, =nil) @DiskIds = diskids @SnapshotGroupName = snapshotgroupname @Tags = end |
Instance Attribute Details
#DiskIds ⇒ Object
858 859 860 |
# File 'lib/v20170312/models.rb', line 858 def DiskIds @DiskIds end |
#SnapshotGroupName ⇒ Object
858 859 860 |
# File 'lib/v20170312/models.rb', line 858 def SnapshotGroupName @SnapshotGroupName end |
#Tags ⇒ Object
858 859 860 |
# File 'lib/v20170312/models.rb', line 858 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
866 867 868 869 870 871 872 873 874 875 876 877 |
# File 'lib/v20170312/models.rb', line 866 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 |