# bandwidth # # This file was automatically generated by APIMATIC v2.0 # ( https://apimatic.io ). module Bandwidth # ApiTranscribeRecordingRequest Model. class ApiTranscribeRecordingRequest < BaseModel # TODO: Write general description for this method # @return [String] attr_accessor :callback_url # TODO: Write general description for this method # @return [CallbackMethodEnum] attr_accessor :callback_method # TODO: Write general description for this method # @return [String] attr_accessor :username # TODO: Write general description for this method # @return [String] attr_accessor :password # TODO: Write general description for this method # @return [String] attr_accessor :tag # A mapping from model property names to API property names. def self.names @_hash = {} if @_hash.nil? @_hash['callback_url'] = 'callbackUrl' @_hash['callback_method'] = 'callbackMethod' @_hash['username'] = 'username' @_hash['password'] = 'password' @_hash['tag'] = 'tag' @_hash end def initialize(callback_url = nil, callback_method = nil, username = nil, password = nil, tag = nil) @callback_url = callback_url @callback_method = callback_method @username = username @password = password @tag = tag end # Creates an instance of the object from a hash. def self.from_hash(hash) return nil unless hash # Extract variables from the hash. callback_url = hash['callbackUrl'] callback_method = hash['callbackMethod'] username = hash['username'] password = hash['password'] tag = hash['tag'] # Create object from extracted values. ApiTranscribeRecordingRequest.new(callback_url, callback_method, username, password, tag) end end end