Class: TencentCloud::Weilingwith::V20230427::LinkRuleInfo

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

Overview

联动规则信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, name = nil, eventset = nil, actionset = nil, status = nil, begindate = nil, enddate = nil, validperiod = nil) ⇒ LinkRuleInfo

Returns a new instance of LinkRuleInfo.



5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
# File 'lib/v20230427/models.rb', line 5847

def initialize(id=nil, name=nil, eventset=nil, actionset=nil, status=nil, begindate=nil, enddate=nil, validperiod=nil)
  @Id = id
  @Name = name
  @EventSet = eventset
  @ActionSet = actionset
  @Status = status
  @BeginDate = begindate
  @EndDate = enddate
  @ValidPeriod = validperiod
end

Instance Attribute Details

#ActionSetObject

Parameters:

  • Id:

    联动id

  • Name:

    联动名称

  • EventSet:

    事件列表

  • ActionSet:

    动作列表

  • Status:

    状态:0开,-1关

  • BeginDate:

    起始时间

  • EndDate:

    结束时间

  • ValidPeriod:

    有效周期内容,有效字段为x-json后的字段



5845
5846
5847
# File 'lib/v20230427/models.rb', line 5845

def ActionSet
  @ActionSet
end

#BeginDateObject

Parameters:

  • Id:

    联动id

  • Name:

    联动名称

  • EventSet:

    事件列表

  • ActionSet:

    动作列表

  • Status:

    状态:0开,-1关

  • BeginDate:

    起始时间

  • EndDate:

    结束时间

  • ValidPeriod:

    有效周期内容,有效字段为x-json后的字段



5845
5846
5847
# File 'lib/v20230427/models.rb', line 5845

def BeginDate
  @BeginDate
end

#EndDateObject

Parameters:

  • Id:

    联动id

  • Name:

    联动名称

  • EventSet:

    事件列表

  • ActionSet:

    动作列表

  • Status:

    状态:0开,-1关

  • BeginDate:

    起始时间

  • EndDate:

    结束时间

  • ValidPeriod:

    有效周期内容,有效字段为x-json后的字段



5845
5846
5847
# File 'lib/v20230427/models.rb', line 5845

def EndDate
  @EndDate
end

#EventSetObject

Parameters:

  • Id:

    联动id

  • Name:

    联动名称

  • EventSet:

    事件列表

  • ActionSet:

    动作列表

  • Status:

    状态:0开,-1关

  • BeginDate:

    起始时间

  • EndDate:

    结束时间

  • ValidPeriod:

    有效周期内容,有效字段为x-json后的字段



5845
5846
5847
# File 'lib/v20230427/models.rb', line 5845

def EventSet
  @EventSet
end

#IdObject

Parameters:

  • Id:

    联动id

  • Name:

    联动名称

  • EventSet:

    事件列表

  • ActionSet:

    动作列表

  • Status:

    状态:0开,-1关

  • BeginDate:

    起始时间

  • EndDate:

    结束时间

  • ValidPeriod:

    有效周期内容,有效字段为x-json后的字段



5845
5846
5847
# File 'lib/v20230427/models.rb', line 5845

def Id
  @Id
end

#NameObject

Parameters:

  • Id:

    联动id

  • Name:

    联动名称

  • EventSet:

    事件列表

  • ActionSet:

    动作列表

  • Status:

    状态:0开,-1关

  • BeginDate:

    起始时间

  • EndDate:

    结束时间

  • ValidPeriod:

    有效周期内容,有效字段为x-json后的字段



5845
5846
5847
# File 'lib/v20230427/models.rb', line 5845

def Name
  @Name
end

#StatusObject

Parameters:

  • Id:

    联动id

  • Name:

    联动名称

  • EventSet:

    事件列表

  • ActionSet:

    动作列表

  • Status:

    状态:0开,-1关

  • BeginDate:

    起始时间

  • EndDate:

    结束时间

  • ValidPeriod:

    有效周期内容,有效字段为x-json后的字段



5845
5846
5847
# File 'lib/v20230427/models.rb', line 5845

def Status
  @Status
end

#ValidPeriodObject

Parameters:

  • Id:

    联动id

  • Name:

    联动名称

  • EventSet:

    事件列表

  • ActionSet:

    动作列表

  • Status:

    状态:0开,-1关

  • BeginDate:

    起始时间

  • EndDate:

    结束时间

  • ValidPeriod:

    有效周期内容,有效字段为x-json后的字段



5845
5846
5847
# File 'lib/v20230427/models.rb', line 5845

def ValidPeriod
  @ValidPeriod
end

Instance Method Details

#deserialize(params) ⇒ Object



5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
# File 'lib/v20230427/models.rb', line 5858

def deserialize(params)
  @Id = params['Id']
  @Name = params['Name']
  unless params['EventSet'].nil?
    @EventSet = []
    params['EventSet'].each do |i|
      event_tmp = Event.new
      event_tmp.deserialize(i)
      @EventSet << event_tmp
    end
  end
  unless params['ActionSet'].nil?
    @ActionSet = []
    params['ActionSet'].each do |i|
      action_tmp = Action.new
      action_tmp.deserialize(i)
      @ActionSet << action_tmp
    end
  end
  @Status = params['Status']
  @BeginDate = params['BeginDate']
  @EndDate = params['EndDate']
  @ValidPeriod = params['ValidPeriod']
end