Class: TencentCloud::Zj::V20190121::AddSmsTemplateResponse

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

Overview

AddSmsTemplate返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = nil, requestid = nil) ⇒ AddSmsTemplateResponse

Returns a new instance of AddSmsTemplateResponse.



238
239
240
241
# File 'lib/v20190121/models.rb', line 238

def initialize(data=nil, requestid=nil)
  @Data = data
  @RequestId = requestid
end

Instance Attribute Details

#DataObject

Parameters:

  • Data:

    短信模板创建接口返回

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



236
237
238
# File 'lib/v20190121/models.rb', line 236

def Data
  @Data
end

#RequestIdObject

Parameters:

  • Data:

    短信模板创建接口返回

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



236
237
238
# File 'lib/v20190121/models.rb', line 236

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



243
244
245
246
247
248
249
# File 'lib/v20190121/models.rb', line 243

def deserialize(params)
  unless params['Data'].nil?
    @Data = AddSmsTemplateDataStruct.new
    @Data.deserialize(params['Data'])
  end
  @RequestId = params['RequestId']
end