Class: TencentCloud::Tdmq::V20200217::DeleteTopicsRequest

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

Overview

DeleteTopics请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(topicsets = nil, clusterid = nil, environmentid = nil, force = nil) ⇒ DeleteTopicsRequest

Returns a new instance of DeleteTopicsRequest.



3330
3331
3332
3333
3334
3335
# File 'lib/v20200217/models.rb', line 3330

def initialize(topicsets=nil, clusterid=nil, environmentid=nil, force=nil)
  @TopicSets = topicsets
  @ClusterId = clusterid
  @EnvironmentId = environmentid
  @Force = force
end

Instance Attribute Details

#ClusterIdObject

Parameters:

  • TopicSets:

    主题集合,每次最多删除20个。

  • ClusterId:

    pulsar集群Id。

  • EnvironmentId:

    环境(命名空间)名称。

  • Force:

    是否强制删除,默认为false



3328
3329
3330
# File 'lib/v20200217/models.rb', line 3328

def ClusterId
  @ClusterId
end

#EnvironmentIdObject

Parameters:

  • TopicSets:

    主题集合,每次最多删除20个。

  • ClusterId:

    pulsar集群Id。

  • EnvironmentId:

    环境(命名空间)名称。

  • Force:

    是否强制删除,默认为false



3328
3329
3330
# File 'lib/v20200217/models.rb', line 3328

def EnvironmentId
  @EnvironmentId
end

#ForceObject

Parameters:

  • TopicSets:

    主题集合,每次最多删除20个。

  • ClusterId:

    pulsar集群Id。

  • EnvironmentId:

    环境(命名空间)名称。

  • Force:

    是否强制删除,默认为false



3328
3329
3330
# File 'lib/v20200217/models.rb', line 3328

def Force
  @Force
end

#TopicSetsObject

Parameters:

  • TopicSets:

    主题集合,每次最多删除20个。

  • ClusterId:

    pulsar集群Id。

  • EnvironmentId:

    环境(命名空间)名称。

  • Force:

    是否强制删除,默认为false



3328
3329
3330
# File 'lib/v20200217/models.rb', line 3328

def TopicSets
  @TopicSets
end

Instance Method Details

#deserialize(params) ⇒ Object



3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
# File 'lib/v20200217/models.rb', line 3337

def deserialize(params)
  unless params['TopicSets'].nil?
    @TopicSets = []
    params['TopicSets'].each do |i|
      topicrecord_tmp = TopicRecord.new
      topicrecord_tmp.deserialize(i)
      @TopicSets << topicrecord_tmp
    end
  end
  @ClusterId = params['ClusterId']
  @EnvironmentId = params['EnvironmentId']
  @Force = params['Force']
end