Class: TencentCloud::Tem::V20210701::CreateApplicationServiceRequest

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

Overview

CreateApplicationService请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(applicationid = nil, environmentid = nil, service = nil, sourcechannel = nil) ⇒ CreateApplicationServiceRequest

Returns a new instance of CreateApplicationServiceRequest.



348
349
350
351
352
353
# File 'lib/v20210701/models.rb', line 348

def initialize(applicationid=nil, environmentid=nil, service=nil, sourcechannel=nil)
  @ApplicationId = applicationid
  @EnvironmentId = environmentid
  @Service = service
  @SourceChannel = sourcechannel
end

Instance Attribute Details

#ApplicationIdObject

Parameters:

  • ApplicationId:

    服务id

  • EnvironmentId:

    环境ID

  • Service:

    访问方式详情

  • SourceChannel:

    来源渠道



346
347
348
# File 'lib/v20210701/models.rb', line 346

def ApplicationId
  @ApplicationId
end

#EnvironmentIdObject

Parameters:

  • ApplicationId:

    服务id

  • EnvironmentId:

    环境ID

  • Service:

    访问方式详情

  • SourceChannel:

    来源渠道



346
347
348
# File 'lib/v20210701/models.rb', line 346

def EnvironmentId
  @EnvironmentId
end

#ServiceObject

Parameters:

  • ApplicationId:

    服务id

  • EnvironmentId:

    环境ID

  • Service:

    访问方式详情

  • SourceChannel:

    来源渠道



346
347
348
# File 'lib/v20210701/models.rb', line 346

def Service
  @Service
end

#SourceChannelObject

Parameters:

  • ApplicationId:

    服务id

  • EnvironmentId:

    环境ID

  • Service:

    访问方式详情

  • SourceChannel:

    来源渠道



346
347
348
# File 'lib/v20210701/models.rb', line 346

def SourceChannel
  @SourceChannel
end

Instance Method Details

#deserialize(params) ⇒ Object



355
356
357
358
359
360
361
362
363
# File 'lib/v20210701/models.rb', line 355

def deserialize(params)
  @ApplicationId = params['ApplicationId']
  @EnvironmentId = params['EnvironmentId']
  unless params['Service'].nil?
    @Service = ServicePortMapping.new
    @Service.deserialize(params['Service'])
  end
  @SourceChannel = params['SourceChannel']
end