Class: TencentCloud::Gaap::V20180529::AddRealServersResponse

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

Overview

AddRealServers返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(realserverset = nil, requestid = nil) ⇒ AddRealServersResponse

Returns a new instance of AddRealServersResponse.



166
167
168
169
# File 'lib/v20180529/models.rb', line 166

def initialize(realserverset=nil, requestid=nil)
  @RealServerSet = realserverset
  @RequestId = requestid
end

Instance Attribute Details

#RealServerSetObject

Parameters:

  • RealServerSet:

    源站信息列表

  • RequestId:

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



164
165
166
# File 'lib/v20180529/models.rb', line 164

def RealServerSet
  @RealServerSet
end

#RequestIdObject

Parameters:

  • RealServerSet:

    源站信息列表

  • RequestId:

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



164
165
166
# File 'lib/v20180529/models.rb', line 164

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



171
172
173
174
175
176
177
178
179
180
181
# File 'lib/v20180529/models.rb', line 171

def deserialize(params)
  unless params['RealServerSet'].nil?
    @RealServerSet = []
    params['RealServerSet'].each do |i|
      newrealserver_tmp = NewRealServer.new
      newrealserver_tmp.deserialize(i)
      @RealServerSet << newrealserver_tmp
    end
  end
  @RequestId = params['RequestId']
end