Class: TencentCloud::Lighthouse::V20200324::CreateInstanceSnapshotRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Lighthouse::V20200324::CreateInstanceSnapshotRequest
- Defined in:
- lib/v20200324/models.rb
Overview
CreateInstanceSnapshot请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instanceid = nil, snapshotname = nil, tags = nil) ⇒ CreateInstanceSnapshotRequest
constructor
A new instance of CreateInstanceSnapshotRequest.
Constructor Details
#initialize(instanceid = nil, snapshotname = nil, tags = nil) ⇒ CreateInstanceSnapshotRequest
Returns a new instance of CreateInstanceSnapshotRequest.
1052 1053 1054 1055 1056 |
# File 'lib/v20200324/models.rb', line 1052 def initialize(instanceid=nil, snapshotname=nil, =nil) @InstanceId = instanceid @SnapshotName = snapshotname @Tags = end |
Instance Attribute Details
#InstanceId ⇒ Object
1050 1051 1052 |
# File 'lib/v20200324/models.rb', line 1050 def InstanceId @InstanceId end |
#SnapshotName ⇒ Object
1050 1051 1052 |
# File 'lib/v20200324/models.rb', line 1050 def SnapshotName @SnapshotName end |
#Tags ⇒ Object
1050 1051 1052 |
# File 'lib/v20200324/models.rb', line 1050 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 |
# File 'lib/v20200324/models.rb', line 1058 def deserialize(params) @InstanceId = params['InstanceId'] @SnapshotName = params['SnapshotName'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end end |