Class: TencentCloud::Tdmq::V20200217::DescribeEnvironmentsResponse

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

Overview

DescribeEnvironments返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, environmentset = nil, requestid = nil) ⇒ DescribeEnvironmentsResponse

Returns a new instance of DescribeEnvironmentsResponse.



4293
4294
4295
4296
4297
# File 'lib/v20200217/models.rb', line 4293

def initialize(totalcount=nil, environmentset=nil, requestid=nil)
  @TotalCount = totalcount
  @EnvironmentSet = environmentset
  @RequestId = requestid
end

Instance Attribute Details

#EnvironmentSetObject

Parameters:

  • TotalCount:

    命名空间记录数。

  • EnvironmentSet:

    命名空间集合数组。

  • RequestId:

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



4291
4292
4293
# File 'lib/v20200217/models.rb', line 4291

def EnvironmentSet
  @EnvironmentSet
end

#RequestIdObject

Parameters:

  • TotalCount:

    命名空间记录数。

  • EnvironmentSet:

    命名空间集合数组。

  • RequestId:

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



4291
4292
4293
# File 'lib/v20200217/models.rb', line 4291

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    命名空间记录数。

  • EnvironmentSet:

    命名空间集合数组。

  • RequestId:

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



4291
4292
4293
# File 'lib/v20200217/models.rb', line 4291

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
# File 'lib/v20200217/models.rb', line 4299

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