Class: TencentCloud::Tke::V20180525::DescribeReservedInstancesRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180525/models.rb

Overview

DescribeReservedInstances请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(offset = nil, limit = nil, filters = nil, orderfield = nil, orderdirection = nil) ⇒ DescribeReservedInstancesRequest

Returns a new instance of DescribeReservedInstancesRequest.



9926
9927
9928
9929
9930
9931
9932
# File 'lib/v20180525/models.rb', line 9926

def initialize(offset=nil, limit=nil, filters=nil, orderfield=nil, orderdirection=nil)
  @Offset = offset
  @Limit = limit
  @Filters = filters
  @OrderField = orderfield
  @OrderDirection = orderdirection
end

Instance Attribute Details

#FiltersObject

reserved-instance-not-deduct 按照**【上个周期未抵扣的预留券**】进行过滤。Values可不设置。 必选:否

Parameters:

  • OrderField:

    排序字段。支持CreatedAt、ActiveAt、ExpireAt。默认值CreatedAt。

  • OrderDirection:

    排序方法。顺序:ASC,倒序:DESC。默认值DESC。



9924
9925
9926
# File 'lib/v20180525/models.rb', line 9924

def Filters
  @Filters
end

#LimitObject

reserved-instance-not-deduct 按照**【上个周期未抵扣的预留券**】进行过滤。Values可不设置。 必选:否

Parameters:

  • OrderField:

    排序字段。支持CreatedAt、ActiveAt、ExpireAt。默认值CreatedAt。

  • OrderDirection:

    排序方法。顺序:ASC,倒序:DESC。默认值DESC。



9924
9925
9926
# File 'lib/v20180525/models.rb', line 9924

def Limit
  @Limit
end

#OffsetObject

reserved-instance-not-deduct 按照**【上个周期未抵扣的预留券**】进行过滤。Values可不设置。 必选:否

Parameters:

  • OrderField:

    排序字段。支持CreatedAt、ActiveAt、ExpireAt。默认值CreatedAt。

  • OrderDirection:

    排序方法。顺序:ASC,倒序:DESC。默认值DESC。



9924
9925
9926
# File 'lib/v20180525/models.rb', line 9924

def Offset
  @Offset
end

#OrderDirectionObject

reserved-instance-not-deduct 按照**【上个周期未抵扣的预留券**】进行过滤。Values可不设置。 必选:否

Parameters:

  • OrderField:

    排序字段。支持CreatedAt、ActiveAt、ExpireAt。默认值CreatedAt。

  • OrderDirection:

    排序方法。顺序:ASC,倒序:DESC。默认值DESC。



9924
9925
9926
# File 'lib/v20180525/models.rb', line 9924

def OrderDirection
  @OrderDirection
end

#OrderFieldObject

reserved-instance-not-deduct 按照**【上个周期未抵扣的预留券**】进行过滤。Values可不设置。 必选:否

Parameters:

  • OrderField:

    排序字段。支持CreatedAt、ActiveAt、ExpireAt。默认值CreatedAt。

  • OrderDirection:

    排序方法。顺序:ASC,倒序:DESC。默认值DESC。



9924
9925
9926
# File 'lib/v20180525/models.rb', line 9924

def OrderField
  @OrderField
end

Instance Method Details

#deserialize(params) ⇒ Object



9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
# File 'lib/v20180525/models.rb', line 9934

def deserialize(params)
  @Offset = params['Offset']
  @Limit = params['Limit']
  unless params['Filters'].nil?
    @Filters = []
    params['Filters'].each do |i|
      filter_tmp = Filter.new
      filter_tmp.deserialize(i)
      @Filters << filter_tmp
    end
  end
  @OrderField = params['OrderField']
  @OrderDirection = params['OrderDirection']
end