Class: TencentCloud::Cme::V20191029::CreateProjectResponse

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

Overview

CreateProject返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(projectid = nil, rtmppushinputinfoset = nil, requestid = nil) ⇒ CreateProjectResponse

Returns a new instance of CreateProjectResponse.



758
759
760
761
762
# File 'lib/v20191029/models.rb', line 758

def initialize(projectid=nil, rtmppushinputinfoset=nil, requestid=nil)
  @ProjectId = projectid
  @RtmpPushInputInfoSet = rtmppushinputinfoset
  @RequestId = requestid
end

Instance Attribute Details

#ProjectIdObject

Parameters:

  • ProjectId:

    项目 Id。

  • RtmpPushInputInfoSet: (li)

    当 Catagory 为 STREAM_CONNECT 时,数组返回长度为2 ,第0个代表主输入源推流信息,第1个代表备输入源推流信息。只有当各自输入源类型为推流时才有有效内容。

  • RequestId:

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

  • 
    
    756
    757
    758
    # File 'lib/v20191029/models.rb', line 756
    
    def ProjectId
      @ProjectId
    end
    

    #RequestIdObject

    Parameters:

    • ProjectId:

      项目 Id。

    • RtmpPushInputInfoSet: (li)

      当 Catagory 为 STREAM_CONNECT 时,数组返回长度为2 ,第0个代表主输入源推流信息,第1个代表备输入源推流信息。只有当各自输入源类型为推流时才有有效内容。

  • RequestId:

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

  • 
    
    756
    757
    758
    # File 'lib/v20191029/models.rb', line 756
    
    def RequestId
      @RequestId
    end
    

    #RtmpPushInputInfoSetObject

    Parameters:

    • ProjectId:

      项目 Id。

    • RtmpPushInputInfoSet: (li)

      当 Catagory 为 STREAM_CONNECT 时,数组返回长度为2 ,第0个代表主输入源推流信息,第1个代表备输入源推流信息。只有当各自输入源类型为推流时才有有效内容。

  • RequestId:

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

  • 
    
    756
    757
    758
    # File 'lib/v20191029/models.rb', line 756
    
    def RtmpPushInputInfoSet
      @RtmpPushInputInfoSet
    end
    

    Instance Method Details

    #deserialize(params) ⇒ Object

    
    
    764
    765
    766
    767
    768
    769
    770
    771
    772
    773
    774
    775
    # File 'lib/v20191029/models.rb', line 764
    
    def deserialize(params)
      @ProjectId = params['ProjectId']
      unless params['RtmpPushInputInfoSet'].nil?
        @RtmpPushInputInfoSet = []
        params['RtmpPushInputInfoSet'].each do |i|
          rtmppushinputinfo_tmp = RtmpPushInputInfo.new
          rtmppushinputinfo_tmp.deserialize(i)
          @RtmpPushInputInfoSet << rtmppushinputinfo_tmp
        end
      end
      @RequestId = params['RequestId']
    end