Class: TencentCloud::Eb::V20210416::CreateTransformationRequest

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

Overview

CreateTransformation请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(eventbusid = nil, ruleid = nil, transformations = nil) ⇒ CreateTransformationRequest

Returns a new instance of CreateTransformationRequest.



557
558
559
560
561
# File 'lib/v20210416/models.rb', line 557

def initialize(eventbusid=nil, ruleid=nil, transformations=nil)
  @EventBusId = eventbusid
  @RuleId = ruleid
  @Transformations = transformations
end

Instance Attribute Details

#EventBusIdObject



555
556
557
# File 'lib/v20210416/models.rb', line 555

def EventBusId
  @EventBusId
end

Instance Method Details

#deserialize(params) ⇒ Object



563
564
565
566
567
568
569
570
571
572
573
574
# File 'lib/v20210416/models.rb', line 563

def deserialize(params)
  @EventBusId = params['EventBusId']
  @RuleId = params['RuleId']
  unless params['Transformations'].nil?
    @Transformations = []
    params['Transformations'].each do |i|
      transformation_tmp = Transformation.new
      transformation_tmp.deserialize(i)
      @Transformations << transformation_tmp
    end
  end
end