Class: TencentCloud::Sqlserver::V20180328::DescribeHASwitchLogResponse

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

Overview

DescribeHASwitchLog返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, switchlog = nil, requestid = nil) ⇒ DescribeHASwitchLogResponse

Returns a new instance of DescribeHASwitchLogResponse.



5130
5131
5132
5133
5134
# File 'lib/v20180328/models.rb', line 5130

def initialize(totalcount=nil, switchlog=nil, requestid=nil)
  @TotalCount = totalcount
  @SwitchLog = switchlog
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • TotalCount:

    日志总数量

  • SwitchLog:

    主备切换日志

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



5128
5129
5130
# File 'lib/v20180328/models.rb', line 5128

def RequestId
  @RequestId
end

#SwitchLogObject

Parameters:

  • TotalCount:

    日志总数量

  • SwitchLog:

    主备切换日志

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



5128
5129
5130
# File 'lib/v20180328/models.rb', line 5128

def SwitchLog
  @SwitchLog
end

#TotalCountObject

Parameters:

  • TotalCount:

    日志总数量

  • SwitchLog:

    主备切换日志

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



5128
5129
5130
# File 'lib/v20180328/models.rb', line 5128

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
# File 'lib/v20180328/models.rb', line 5136

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['SwitchLog'].nil?
    @SwitchLog = []
    params['SwitchLog'].each do |i|
      switchlog_tmp = SwitchLog.new
      switchlog_tmp.deserialize(i)
      @SwitchLog << switchlog_tmp
    end
  end
  @RequestId = params['RequestId']
end