Class: TencentCloud::Tem::V20210701::CreateConfigDataRequest

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

Overview

CreateConfigData请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(environmentid = nil, name = nil, data = nil, sourcechannel = nil) ⇒ CreateConfigDataRequest

Returns a new instance of CreateConfigDataRequest.



399
400
401
402
403
404
# File 'lib/v20210701/models.rb', line 399

def initialize(environmentid=nil, name=nil, data=nil, sourcechannel=nil)
  @EnvironmentId = environmentid
  @Name = name
  @Data = data
  @SourceChannel = sourcechannel
end

Instance Attribute Details

#DataObject

Parameters:

  • EnvironmentId:

    环境 ID

  • Name:

    配置名

  • Data:

    配置信息

  • SourceChannel:

    来源渠道



397
398
399
# File 'lib/v20210701/models.rb', line 397

def Data
  @Data
end

#EnvironmentIdObject

Parameters:

  • EnvironmentId:

    环境 ID

  • Name:

    配置名

  • Data:

    配置信息

  • SourceChannel:

    来源渠道



397
398
399
# File 'lib/v20210701/models.rb', line 397

def EnvironmentId
  @EnvironmentId
end

#NameObject

Parameters:

  • EnvironmentId:

    环境 ID

  • Name:

    配置名

  • Data:

    配置信息

  • SourceChannel:

    来源渠道



397
398
399
# File 'lib/v20210701/models.rb', line 397

def Name
  @Name
end

#SourceChannelObject

Parameters:

  • EnvironmentId:

    环境 ID

  • Name:

    配置名

  • Data:

    配置信息

  • SourceChannel:

    来源渠道



397
398
399
# File 'lib/v20210701/models.rb', line 397

def SourceChannel
  @SourceChannel
end

Instance Method Details

#deserialize(params) ⇒ Object



406
407
408
409
410
411
412
413
414
415
416
417
418
# File 'lib/v20210701/models.rb', line 406

def deserialize(params)
  @EnvironmentId = params['EnvironmentId']
  @Name = params['Name']
  unless params['Data'].nil?
    @Data = []
    params['Data'].each do |i|
      pair_tmp = Pair.new
      pair_tmp.deserialize(i)
      @Data << pair_tmp
    end
  end
  @SourceChannel = params['SourceChannel']
end