Class: TencentCloud::Cvm::V20170312::DescribeKeyPairsResponse
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cvm::V20170312::DescribeKeyPairsResponse
- Defined in:
- lib/v20170312/models.rb
Overview
DescribeKeyPairs返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(totalcount = nil, keypairset = nil, requestid = nil) ⇒ DescribeKeyPairsResponse
constructor
A new instance of DescribeKeyPairsResponse.
Constructor Details
#initialize(totalcount = nil, keypairset = nil, requestid = nil) ⇒ DescribeKeyPairsResponse
Returns a new instance of DescribeKeyPairsResponse.
2763 2764 2765 2766 2767 |
# File 'lib/v20170312/models.rb', line 2763 def initialize(totalcount=nil, keypairset=nil, requestid=nil) @TotalCount = totalcount @KeyPairSet = keypairset @RequestId = requestid end |
Instance Attribute Details
#KeyPairSet ⇒ Object
2761 2762 2763 |
# File 'lib/v20170312/models.rb', line 2761 def KeyPairSet @KeyPairSet end |
#RequestId ⇒ Object
2761 2762 2763 |
# File 'lib/v20170312/models.rb', line 2761 def RequestId @RequestId end |
#TotalCount ⇒ Object
2761 2762 2763 |
# File 'lib/v20170312/models.rb', line 2761 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 |
# File 'lib/v20170312/models.rb', line 2769 def deserialize(params) @TotalCount = params['TotalCount'] unless params['KeyPairSet'].nil? @KeyPairSet = [] params['KeyPairSet'].each do |i| keypair_tmp = KeyPair.new keypair_tmp.deserialize(i) @KeyPairSet << keypair_tmp end end @RequestId = params['RequestId'] end |