Class: TencentCloud::Cvm::V20170312::DescribeKeyPairsRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cvm::V20170312::DescribeKeyPairsRequest
- Defined in:
- lib/v20170312/models.rb
Overview
DescribeKeyPairs请求参数结构体
Instance Attribute Summary collapse
-
#Filters ⇒ Object
- project-id - Integer - 是否必填:否 -(过滤条件)按照项目ID过滤。可以通过[项目列表](https://console.cloud.tencent.com/project)查询项目ID,或者调用接口 [DescribeProjects](https://cloud.tencent.com/document/api/651/78725),取返回信息中的projectId获取项目ID。
- key-name - String - 是否必填:否 -(过滤条件)按照密钥对名称过滤。
- tag-key - String - 是否必填:否 -(过滤条件)按照标签键过滤。
- tag-value - String - 是否必填:否 -(过滤条件)按照标签值过滤。
- tag:tag-key - String - 是否必填:否 -(过滤条件)按照标签键值对过滤。tag-key使用具体的标签键进行替换。
参数不支持同时指定 `KeyIds` 和 `Filters`。. -
#KeyIds ⇒ Object
- project-id - Integer - 是否必填:否 -(过滤条件)按照项目ID过滤。可以通过[项目列表](https://console.cloud.tencent.com/project)查询项目ID,或者调用接口 [DescribeProjects](https://cloud.tencent.com/document/api/651/78725),取返回信息中的projectId获取项目ID。
- key-name - String - 是否必填:否 -(过滤条件)按照密钥对名称过滤。
- tag-key - String - 是否必填:否 -(过滤条件)按照标签键过滤。
- tag-value - String - 是否必填:否 -(过滤条件)按照标签值过滤。
- tag:tag-key - String - 是否必填:否 -(过滤条件)按照标签键值对过滤。tag-key使用具体的标签键进行替换。
参数不支持同时指定 `KeyIds` 和 `Filters`。. -
#Limit ⇒ Object
- project-id - Integer - 是否必填:否 -(过滤条件)按照项目ID过滤。可以通过[项目列表](https://console.cloud.tencent.com/project)查询项目ID,或者调用接口 [DescribeProjects](https://cloud.tencent.com/document/api/651/78725),取返回信息中的projectId获取项目ID。
- key-name - String - 是否必填:否 -(过滤条件)按照密钥对名称过滤。
- tag-key - String - 是否必填:否 -(过滤条件)按照标签键过滤。
- tag-value - String - 是否必填:否 -(过滤条件)按照标签值过滤。
- tag:tag-key - String - 是否必填:否 -(过滤条件)按照标签键值对过滤。tag-key使用具体的标签键进行替换。
参数不支持同时指定 `KeyIds` 和 `Filters`。. -
#Offset ⇒ Object
- project-id - Integer - 是否必填:否 -(过滤条件)按照项目ID过滤。可以通过[项目列表](https://console.cloud.tencent.com/project)查询项目ID,或者调用接口 [DescribeProjects](https://cloud.tencent.com/document/api/651/78725),取返回信息中的projectId获取项目ID。
- key-name - String - 是否必填:否 -(过滤条件)按照密钥对名称过滤。
- tag-key - String - 是否必填:否 -(过滤条件)按照标签键过滤。
- tag-value - String - 是否必填:否 -(过滤条件)按照标签值过滤。
- tag:tag-key - String - 是否必填:否 -(过滤条件)按照标签键值对过滤。tag-key使用具体的标签键进行替换。
参数不支持同时指定 `KeyIds` 和 `Filters`。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(keyids = nil, filters = nil, offset = nil, limit = nil) ⇒ DescribeKeyPairsRequest
constructor
A new instance of DescribeKeyPairsRequest.
Constructor Details
#initialize(keyids = nil, filters = nil, offset = nil, limit = nil) ⇒ DescribeKeyPairsRequest
Returns a new instance of DescribeKeyPairsRequest.
3063 3064 3065 3066 3067 3068 |
# File 'lib/v20170312/models.rb', line 3063 def initialize(keyids=nil, filters=nil, offset=nil, limit=nil) @KeyIds = keyids @Filters = filters @Offset = offset @Limit = limit end |
Instance Attribute Details
#Filters ⇒ Object
3061 3062 3063 |
# File 'lib/v20170312/models.rb', line 3061 def Filters @Filters end |
#KeyIds ⇒ Object
3061 3062 3063 |
# File 'lib/v20170312/models.rb', line 3061 def KeyIds @KeyIds end |
#Limit ⇒ Object
3061 3062 3063 |
# File 'lib/v20170312/models.rb', line 3061 def Limit @Limit end |
#Offset ⇒ Object
3061 3062 3063 |
# File 'lib/v20170312/models.rb', line 3061 def Offset @Offset end |
Instance Method Details
#deserialize(params) ⇒ Object
3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 |
# File 'lib/v20170312/models.rb', line 3070 def deserialize(params) @KeyIds = params['KeyIds'] unless params['Filters'].nil? @Filters = [] params['Filters'].each do |i| filter_tmp = Filter.new filter_tmp.deserialize(i) @Filters << filter_tmp end end @Offset = params['Offset'] @Limit = params['Limit'] end |