Class: TencentCloud::Tdmq::V20200217::DescribeEnvironmentRolesResponse

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

Overview

DescribeEnvironmentRoles返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, environmentrolesets = nil, requestid = nil) ⇒ DescribeEnvironmentRolesResponse

Returns a new instance of DescribeEnvironmentRolesResponse.



4220
4221
4222
4223
4224
# File 'lib/v20200217/models.rb', line 4220

def initialize(totalcount=nil, environmentrolesets=nil, requestid=nil)
  @TotalCount = totalcount
  @EnvironmentRoleSets = environmentrolesets
  @RequestId = requestid
end

Instance Attribute Details

#EnvironmentRoleSetsObject

Parameters:

  • TotalCount:

    记录数。

  • EnvironmentRoleSets:

    命名空间角色集合。

  • RequestId:

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



4218
4219
4220
# File 'lib/v20200217/models.rb', line 4218

def EnvironmentRoleSets
  @EnvironmentRoleSets
end

#RequestIdObject

Parameters:

  • TotalCount:

    记录数。

  • EnvironmentRoleSets:

    命名空间角色集合。

  • RequestId:

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



4218
4219
4220
# File 'lib/v20200217/models.rb', line 4218

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    记录数。

  • EnvironmentRoleSets:

    命名空间角色集合。

  • RequestId:

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



4218
4219
4220
# File 'lib/v20200217/models.rb', line 4218

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
# File 'lib/v20200217/models.rb', line 4226

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