Class: TencentCloud::Tke::V20220501::DescribeClustersRequest

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

Overview

DescribeClusters请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterids = nil, offset = nil, limit = nil, filters = nil, clustertype = nil) ⇒ DescribeClustersRequest

Returns a new instance of DescribeClustersRequest.



747
748
749
750
751
752
753
# File 'lib/v20220501/models.rb', line 747

def initialize(clusterids=nil, offset=nil, limit=nil, filters=nil, clustertype=nil)
  @ClusterIds = clusterids
  @Offset = offset
  @Limit = limit
  @Filters = filters
  @ClusterType = clustertype
end

Instance Attribute Details

#ClusterIdsObject

· tag:tag-key

Parameters:

  • ClusterType:

    集群类型,例如:MANAGED_CLUSTER



745
746
747
# File 'lib/v20220501/models.rb', line 745

def ClusterIds
  @ClusterIds
end

#ClusterTypeObject

· tag:tag-key

Parameters:

  • ClusterType:

    集群类型,例如:MANAGED_CLUSTER



745
746
747
# File 'lib/v20220501/models.rb', line 745

def ClusterType
  @ClusterType
end

#FiltersObject

· tag:tag-key

Parameters:

  • ClusterType:

    集群类型,例如:MANAGED_CLUSTER



745
746
747
# File 'lib/v20220501/models.rb', line 745

def Filters
  @Filters
end

#LimitObject

· tag:tag-key

Parameters:

  • ClusterType:

    集群类型,例如:MANAGED_CLUSTER



745
746
747
# File 'lib/v20220501/models.rb', line 745

def Limit
  @Limit
end

#OffsetObject

· tag:tag-key

Parameters:

  • ClusterType:

    集群类型,例如:MANAGED_CLUSTER



745
746
747
# File 'lib/v20220501/models.rb', line 745

def Offset
  @Offset
end

Instance Method Details

#deserialize(params) ⇒ Object



755
756
757
758
759
760
761
762
763
764
765
766
767
768
# File 'lib/v20220501/models.rb', line 755

def deserialize(params)
  @ClusterIds = params['ClusterIds']
  @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
  @ClusterType = params['ClusterType']
end