Class: TencentCloud::Zj::V20190121::CreateCampaignRequest

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

Overview

CreateCampaign请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(license = nil, sendtime = nil, name = nil, strategies = nil, templateid = nil, crowdid = nil, smstype = nil) ⇒ CreateCampaignRequest

Returns a new instance of CreateCampaignRequest.



330
331
332
333
334
335
336
337
338
# File 'lib/v20190121/models.rb', line 330

def initialize(license=nil, sendtime=nil, name=nil, strategies=nil, templateid=nil, crowdid=nil, smstype=nil)
  @License = license
  @SendTime = sendtime
  @Name = name
  @Strategies = strategies
  @TemplateId = templateid
  @CrowdID = crowdid
  @SmsType = smstype
end

Instance Attribute Details

#CrowdIDObject

Parameters:

  • License:

    商户证书

  • SendTime:

    短信活动发送时间

  • Name:

    短信活动名称

  • Strategies:

    发送策略

  • TemplateId:

    废弃

  • CrowdID:

    废弃

  • SmsType:

    活动类型(0-短信,1-超短,不填默认为超短)



328
329
330
# File 'lib/v20190121/models.rb', line 328

def CrowdID
  @CrowdID
end

#LicenseObject

Parameters:

  • License:

    商户证书

  • SendTime:

    短信活动发送时间

  • Name:

    短信活动名称

  • Strategies:

    发送策略

  • TemplateId:

    废弃

  • CrowdID:

    废弃

  • SmsType:

    活动类型(0-短信,1-超短,不填默认为超短)



328
329
330
# File 'lib/v20190121/models.rb', line 328

def License
  @License
end

#NameObject

Parameters:

  • License:

    商户证书

  • SendTime:

    短信活动发送时间

  • Name:

    短信活动名称

  • Strategies:

    发送策略

  • TemplateId:

    废弃

  • CrowdID:

    废弃

  • SmsType:

    活动类型(0-短信,1-超短,不填默认为超短)



328
329
330
# File 'lib/v20190121/models.rb', line 328

def Name
  @Name
end

#SendTimeObject

Parameters:

  • License:

    商户证书

  • SendTime:

    短信活动发送时间

  • Name:

    短信活动名称

  • Strategies:

    发送策略

  • TemplateId:

    废弃

  • CrowdID:

    废弃

  • SmsType:

    活动类型(0-短信,1-超短,不填默认为超短)



328
329
330
# File 'lib/v20190121/models.rb', line 328

def SendTime
  @SendTime
end

#SmsTypeObject

Parameters:

  • License:

    商户证书

  • SendTime:

    短信活动发送时间

  • Name:

    短信活动名称

  • Strategies:

    发送策略

  • TemplateId:

    废弃

  • CrowdID:

    废弃

  • SmsType:

    活动类型(0-短信,1-超短,不填默认为超短)



328
329
330
# File 'lib/v20190121/models.rb', line 328

def SmsType
  @SmsType
end

#StrategiesObject

Parameters:

  • License:

    商户证书

  • SendTime:

    短信活动发送时间

  • Name:

    短信活动名称

  • Strategies:

    发送策略

  • TemplateId:

    废弃

  • CrowdID:

    废弃

  • SmsType:

    活动类型(0-短信,1-超短,不填默认为超短)



328
329
330
# File 'lib/v20190121/models.rb', line 328

def Strategies
  @Strategies
end

#TemplateIdObject

Parameters:

  • License:

    商户证书

  • SendTime:

    短信活动发送时间

  • Name:

    短信活动名称

  • Strategies:

    发送策略

  • TemplateId:

    废弃

  • CrowdID:

    废弃

  • SmsType:

    活动类型(0-短信,1-超短,不填默认为超短)



328
329
330
# File 'lib/v20190121/models.rb', line 328

def TemplateId
  @TemplateId
end

Instance Method Details

#deserialize(params) ⇒ Object



340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
# File 'lib/v20190121/models.rb', line 340

def deserialize(params)
  @License = params['License']
  @SendTime = params['SendTime']
  @Name = params['Name']
  unless params['Strategies'].nil?
    @Strategies = []
    params['Strategies'].each do |i|
      paasstrategy_tmp = PaasStrategy.new
      paasstrategy_tmp.deserialize(i)
      @Strategies << paasstrategy_tmp
    end
  end
  @TemplateId = params['TemplateId']
  @CrowdID = params['CrowdID']
  @SmsType = params['SmsType']
end