Class: TencentCloud::Tke::V20180525::SwitchInfo

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

Overview

日志开关详细信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enable = nil, errormsg = nil, logsetid = nil, status = nil, topicid = nil, topicregion = nil, upgradeable = nil, version = nil) ⇒ SwitchInfo

Returns a new instance of SwitchInfo.



20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
# File 'lib/v20180525/models.rb', line 20277

def initialize(enable=nil, errormsg=nil, logsetid=nil, status=nil, topicid=nil, topicregion=nil, upgradeable=nil, version=nil)
  @Enable = enable
  @ErrorMsg = errormsg
  @LogsetId = logsetid
  @Status = status
  @TopicId = topicid
  @TopicRegion = topicregion
  @UpgradeAble = upgradeable
  @Version = version
end

Instance Attribute Details

#EnableObject

Parameters:

  • Enable:

    开启标识符 true代表开启

  • ErrorMsg:

    获取日志状态失败时,返回错误信息

  • LogsetId:

    CLS日志集ID

  • Status:

    日志主题状态,opened表示已开启,opening开启中,closed表示已关闭,closing 表示关闭中

  • TopicId:

    CLS日志主题ID

  • TopicRegion:

    CLS日志主题所属region

  • UpgradeAble:

    是否可升级

  • Version:

    当前log-agent版本



20275
20276
20277
# File 'lib/v20180525/models.rb', line 20275

def Enable
  @Enable
end

#ErrorMsgObject

Parameters:

  • Enable:

    开启标识符 true代表开启

  • ErrorMsg:

    获取日志状态失败时,返回错误信息

  • LogsetId:

    CLS日志集ID

  • Status:

    日志主题状态,opened表示已开启,opening开启中,closed表示已关闭,closing 表示关闭中

  • TopicId:

    CLS日志主题ID

  • TopicRegion:

    CLS日志主题所属region

  • UpgradeAble:

    是否可升级

  • Version:

    当前log-agent版本



20275
20276
20277
# File 'lib/v20180525/models.rb', line 20275

def ErrorMsg
  @ErrorMsg
end

#LogsetIdObject

Parameters:

  • Enable:

    开启标识符 true代表开启

  • ErrorMsg:

    获取日志状态失败时,返回错误信息

  • LogsetId:

    CLS日志集ID

  • Status:

    日志主题状态,opened表示已开启,opening开启中,closed表示已关闭,closing 表示关闭中

  • TopicId:

    CLS日志主题ID

  • TopicRegion:

    CLS日志主题所属region

  • UpgradeAble:

    是否可升级

  • Version:

    当前log-agent版本



20275
20276
20277
# File 'lib/v20180525/models.rb', line 20275

def LogsetId
  @LogsetId
end

#StatusObject

Parameters:

  • Enable:

    开启标识符 true代表开启

  • ErrorMsg:

    获取日志状态失败时,返回错误信息

  • LogsetId:

    CLS日志集ID

  • Status:

    日志主题状态,opened表示已开启,opening开启中,closed表示已关闭,closing 表示关闭中

  • TopicId:

    CLS日志主题ID

  • TopicRegion:

    CLS日志主题所属region

  • UpgradeAble:

    是否可升级

  • Version:

    当前log-agent版本



20275
20276
20277
# File 'lib/v20180525/models.rb', line 20275

def Status
  @Status
end

#TopicIdObject

Parameters:

  • Enable:

    开启标识符 true代表开启

  • ErrorMsg:

    获取日志状态失败时,返回错误信息

  • LogsetId:

    CLS日志集ID

  • Status:

    日志主题状态,opened表示已开启,opening开启中,closed表示已关闭,closing 表示关闭中

  • TopicId:

    CLS日志主题ID

  • TopicRegion:

    CLS日志主题所属region

  • UpgradeAble:

    是否可升级

  • Version:

    当前log-agent版本



20275
20276
20277
# File 'lib/v20180525/models.rb', line 20275

def TopicId
  @TopicId
end

#TopicRegionObject

Parameters:

  • Enable:

    开启标识符 true代表开启

  • ErrorMsg:

    获取日志状态失败时,返回错误信息

  • LogsetId:

    CLS日志集ID

  • Status:

    日志主题状态,opened表示已开启,opening开启中,closed表示已关闭,closing 表示关闭中

  • TopicId:

    CLS日志主题ID

  • TopicRegion:

    CLS日志主题所属region

  • UpgradeAble:

    是否可升级

  • Version:

    当前log-agent版本



20275
20276
20277
# File 'lib/v20180525/models.rb', line 20275

def TopicRegion
  @TopicRegion
end

#UpgradeAbleObject

Parameters:

  • Enable:

    开启标识符 true代表开启

  • ErrorMsg:

    获取日志状态失败时,返回错误信息

  • LogsetId:

    CLS日志集ID

  • Status:

    日志主题状态,opened表示已开启,opening开启中,closed表示已关闭,closing 表示关闭中

  • TopicId:

    CLS日志主题ID

  • TopicRegion:

    CLS日志主题所属region

  • UpgradeAble:

    是否可升级

  • Version:

    当前log-agent版本



20275
20276
20277
# File 'lib/v20180525/models.rb', line 20275

def UpgradeAble
  @UpgradeAble
end

#VersionObject

Parameters:

  • Enable:

    开启标识符 true代表开启

  • ErrorMsg:

    获取日志状态失败时,返回错误信息

  • LogsetId:

    CLS日志集ID

  • Status:

    日志主题状态,opened表示已开启,opening开启中,closed表示已关闭,closing 表示关闭中

  • TopicId:

    CLS日志主题ID

  • TopicRegion:

    CLS日志主题所属region

  • UpgradeAble:

    是否可升级

  • Version:

    当前log-agent版本



20275
20276
20277
# File 'lib/v20180525/models.rb', line 20275

def Version
  @Version
end

Instance Method Details

#deserialize(params) ⇒ Object



20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
# File 'lib/v20180525/models.rb', line 20288

def deserialize(params)
  @Enable = params['Enable']
  @ErrorMsg = params['ErrorMsg']
  @LogsetId = params['LogsetId']
  @Status = params['Status']
  @TopicId = params['TopicId']
  @TopicRegion = params['TopicRegion']
  @UpgradeAble = params['UpgradeAble']
  @Version = params['Version']
end