Class: TencentCloud::Tdmq::V20200217::CreateSubscriptionResponse

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

Overview

CreateSubscription返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(result = nil, requestid = nil) ⇒ CreateSubscriptionResponse

Returns a new instance of CreateSubscriptionResponse.



2424
2425
2426
2427
# File 'lib/v20200217/models.rb', line 2424

def initialize(result=nil, requestid=nil)
  @Result = result
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • Result:

    创建结果。

  • RequestId:

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



2422
2423
2424
# File 'lib/v20200217/models.rb', line 2422

def RequestId
  @RequestId
end

#ResultObject

Parameters:

  • Result:

    创建结果。

  • RequestId:

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



2422
2423
2424
# File 'lib/v20200217/models.rb', line 2422

def Result
  @Result
end

Instance Method Details

#deserialize(params) ⇒ Object



2429
2430
2431
2432
# File 'lib/v20200217/models.rb', line 2429

def deserialize(params)
  @Result = params['Result']
  @RequestId = params['RequestId']
end