Class: TencentCloud::Ckafka::V20190819::ModifyInstanceAttributesConfig

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

Overview

修改实例属性的配置对象

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(autocreatetopicenable = nil, defaultnumpartitions = nil, defaultreplicationfactor = nil) ⇒ ModifyInstanceAttributesConfig

Returns a new instance of ModifyInstanceAttributesConfig.



9324
9325
9326
9327
9328
# File 'lib/v20190819/models.rb', line 9324

def initialize(autocreatetopicenable=nil, defaultnumpartitions=nil, defaultreplicationfactor=nil)
  @AutoCreateTopicEnable = autocreatetopicenable
  @DefaultNumPartitions = defaultnumpartitions
  @DefaultReplicationFactor = defaultreplicationfactor
end

Instance Attribute Details

#AutoCreateTopicEnableObject

Parameters:

  • AutoCreateTopicEnable:

    自动创建 true 表示开启,false 表示不开启

  • DefaultNumPartitions:

    新创建主题的默认分区数,如果AutoCreateTopicEnable设置为true没有设置该值时,默认设置为3

  • DefaultReplicationFactor:

    新创建主题的默认副本数,如果AutoCreateTopicEnable设置为true没有指定该值时默认设置为2



9322
9323
9324
# File 'lib/v20190819/models.rb', line 9322

def AutoCreateTopicEnable
  @AutoCreateTopicEnable
end

#DefaultNumPartitionsObject

Parameters:

  • AutoCreateTopicEnable:

    自动创建 true 表示开启,false 表示不开启

  • DefaultNumPartitions:

    新创建主题的默认分区数,如果AutoCreateTopicEnable设置为true没有设置该值时,默认设置为3

  • DefaultReplicationFactor:

    新创建主题的默认副本数,如果AutoCreateTopicEnable设置为true没有指定该值时默认设置为2



9322
9323
9324
# File 'lib/v20190819/models.rb', line 9322

def DefaultNumPartitions
  @DefaultNumPartitions
end

#DefaultReplicationFactorObject

Parameters:

  • AutoCreateTopicEnable:

    自动创建 true 表示开启,false 表示不开启

  • DefaultNumPartitions:

    新创建主题的默认分区数,如果AutoCreateTopicEnable设置为true没有设置该值时,默认设置为3

  • DefaultReplicationFactor:

    新创建主题的默认副本数,如果AutoCreateTopicEnable设置为true没有指定该值时默认设置为2



9322
9323
9324
# File 'lib/v20190819/models.rb', line 9322

def DefaultReplicationFactor
  @DefaultReplicationFactor
end

Instance Method Details

#deserialize(params) ⇒ Object



9330
9331
9332
9333
9334
# File 'lib/v20190819/models.rb', line 9330

def deserialize(params)
  @AutoCreateTopicEnable = params['AutoCreateTopicEnable']
  @DefaultNumPartitions = params['DefaultNumPartitions']
  @DefaultReplicationFactor = params['DefaultReplicationFactor']
end