Class: TencentCloud::Cvm::V20170312::CreateKeyPairRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cvm::V20170312::CreateKeyPairRequest
- Defined in:
- lib/v20170312/models.rb
Overview
CreateKeyPair请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(keyname = nil, projectid = nil, tagspecification = nil) ⇒ CreateKeyPairRequest
constructor
A new instance of CreateKeyPairRequest.
Constructor Details
#initialize(keyname = nil, projectid = nil, tagspecification = nil) ⇒ CreateKeyPairRequest
Returns a new instance of CreateKeyPairRequest.
1037 1038 1039 1040 1041 |
# File 'lib/v20170312/models.rb', line 1037 def initialize(keyname=nil, projectid=nil, =nil) @KeyName = keyname @ProjectId = projectid @TagSpecification = end |
Instance Attribute Details
#KeyName ⇒ Object
可以通过以下方式获取项目ID:
1035 1036 1037 |
# File 'lib/v20170312/models.rb', line 1035 def KeyName @KeyName end |
#ProjectId ⇒ Object
可以通过以下方式获取项目ID:
1035 1036 1037 |
# File 'lib/v20170312/models.rb', line 1035 def ProjectId @ProjectId end |
#TagSpecification ⇒ Object
可以通过以下方式获取项目ID:
1035 1036 1037 |
# File 'lib/v20170312/models.rb', line 1035 def TagSpecification @TagSpecification end |
Instance Method Details
#deserialize(params) ⇒ Object
1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 |
# File 'lib/v20170312/models.rb', line 1043 def deserialize(params) @KeyName = params['KeyName'] @ProjectId = params['ProjectId'] unless params['TagSpecification'].nil? @TagSpecification = [] params['TagSpecification'].each do |i| = TagSpecification.new .deserialize(i) @TagSpecification << end end end |