class PureCloud::HomerRecord

Attributes

auth[RW]

metadata associated to the SIP calls

auth_user[RW]

metadata associated to the SIP calls

callid[RW]

metadata associated to the SIP calls

callid_aleg[RW]

metadata associated to the SIP calls

contact_ip[RW]

metadata associated to the SIP calls

contact_port[RW]

metadata associated to the SIP calls

contact_user[RW]

metadata associated to the SIP calls

content_type[RW]

metadata associated to the SIP calls

conversation_id[RW]

metadata associated to the SIP calls

correlation_id[RW]

metadata associated to the SIP calls

cseq[RW]

metadata associated to the SIP calls

date[RW]

metadata associated to the SIP calls. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ

dbnode[RW]

metadata associated to the SIP calls

destination_alias[RW]

metadata associated to the SIP calls

destination_ip[RW]

metadata associated to the SIP calls

destination_port[RW]

metadata associated to the SIP calls

diversion[RW]

metadata associated to the SIP calls

family[RW]

metadata associated to the SIP calls

from_domain[RW]

metadata associated to the SIP calls

from_tag[RW]

metadata associated to the SIP calls

from_user[RW]

metadata associated to the SIP calls

id[RW]

The globally unique identifier for the object.

method[RW]

metadata associated to the SIP calls

micro_ts[RW]

metadata associated to the SIP calls

milli_ts[RW]

metadata associated to the SIP calls

msg[RW]

metadata associated to the SIP calls

name[RW]
node[RW]

metadata associated to the SIP calls

originator_ip[RW]

metadata associated to the SIP calls

originator_port[RW]

metadata associated to the SIP calls

participant_id[RW]

metadata associated to the SIP calls

pid_user[RW]

metadata associated to the SIP calls

proto[RW]

metadata associated to the SIP calls

reason[RW]

metadata associated to the SIP calls

reply_reason[RW]

metadata associated to the SIP calls

rtp_stat[RW]

metadata associated to the SIP calls

ruri[RW]

metadata associated to the SIP calls

ruri_domain[RW]

metadata associated to the SIP calls

ruri_user[RW]

metadata associated to the SIP calls

self_uri[RW]

The URI for this object

source_alias[RW]

metadata associated to the SIP calls

source_ip[RW]

metadata associated to the SIP calls

source_port[RW]

metadata associated to the SIP calls

to_domain[RW]

metadata associated to the SIP calls

to_tag[RW]

metadata associated to the SIP calls

to_user[RW]

metadata associated to the SIP calls

trans[RW]

metadata associated to the SIP calls

type[RW]

metadata associated to the SIP calls

user_agent[RW]

metadata associated to the SIP calls

via1[RW]

metadata associated to the SIP calls

via1_branch[RW]

metadata associated to the SIP calls

Public Class Methods

attribute_map() click to toggle source

Attribute mapping from ruby-style variable name to JSON key.

# File lib/purecloudplatformclientv2/models/homer_record.rb, line 174
def self.attribute_map
  {
    
    :'id' => :'id',
    
    :'name' => :'name',
    
    :'date' => :'date',
    
    :'milli_ts' => :'milliTs',
    
    :'micro_ts' => :'microTs',
    
    :'method' => :'method',
    
    :'reply_reason' => :'replyReason',
    
    :'ruri' => :'ruri',
    
    :'ruri_user' => :'ruriUser',
    
    :'ruri_domain' => :'ruriDomain',
    
    :'from_user' => :'fromUser',
    
    :'from_domain' => :'fromDomain',
    
    :'from_tag' => :'fromTag',
    
    :'to_user' => :'toUser',
    
    :'to_domain' => :'toDomain',
    
    :'to_tag' => :'toTag',
    
    :'pid_user' => :'pidUser',
    
    :'contact_user' => :'contactUser',
    
    :'auth_user' => :'authUser',
    
    :'callid' => :'callid',
    
    :'callid_aleg' => :'callidAleg',
    
    :'via1' => :'via1',
    
    :'via1_branch' => :'via1Branch',
    
    :'cseq' => :'cseq',
    
    :'diversion' => :'diversion',
    
    :'reason' => :'reason',
    
    :'content_type' => :'contentType',
    
    :'auth' => :'auth',
    
    :'user_agent' => :'userAgent',
    
    :'source_ip' => :'sourceIp',
    
    :'source_port' => :'sourcePort',
    
    :'destination_ip' => :'destinationIp',
    
    :'destination_port' => :'destinationPort',
    
    :'contact_ip' => :'contactIp',
    
    :'contact_port' => :'contactPort',
    
    :'originator_ip' => :'originatorIp',
    
    :'originator_port' => :'originatorPort',
    
    :'correlation_id' => :'correlationId',
    
    :'proto' => :'proto',
    
    :'family' => :'family',
    
    :'rtp_stat' => :'rtpStat',
    
    :'type' => :'type',
    
    :'node' => :'node',
    
    :'trans' => :'trans',
    
    :'dbnode' => :'dbnode',
    
    :'msg' => :'msg',
    
    :'source_alias' => :'sourceAlias',
    
    :'destination_alias' => :'destinationAlias',
    
    :'conversation_id' => :'conversationId',
    
    :'participant_id' => :'participantId',
    
    :'self_uri' => :'selfUri'
    
  }
end
new(attributes = {}) click to toggle source

Initializes the object @param [Hash] attributes Model attributes in the form of hash

# File lib/purecloudplatformclientv2/models/homer_record.rb, line 393
def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}

  
  if attributes.has_key?(:'id')
    
    
    self.id = attributes[:'id']
    
  
  end

  
  if attributes.has_key?(:'name')
    
    
    self.name = attributes[:'name']
    
  
  end

  
  if attributes.has_key?(:'date')
    
    
    self.date = attributes[:'date']
    
  
  end

  
  if attributes.has_key?(:'milliTs')
    
    
    self.milli_ts = attributes[:'milliTs']
    
  
  end

  
  if attributes.has_key?(:'microTs')
    
    
    self.micro_ts = attributes[:'microTs']
    
  
  end

  
  if attributes.has_key?(:'method')
    
    
    self.method = attributes[:'method']
    
  
  end

  
  if attributes.has_key?(:'replyReason')
    
    
    self.reply_reason = attributes[:'replyReason']
    
  
  end

  
  if attributes.has_key?(:'ruri')
    
    
    self.ruri = attributes[:'ruri']
    
  
  end

  
  if attributes.has_key?(:'ruriUser')
    
    
    self.ruri_user = attributes[:'ruriUser']
    
  
  end

  
  if attributes.has_key?(:'ruriDomain')
    
    
    self.ruri_domain = attributes[:'ruriDomain']
    
  
  end

  
  if attributes.has_key?(:'fromUser')
    
    
    self.from_user = attributes[:'fromUser']
    
  
  end

  
  if attributes.has_key?(:'fromDomain')
    
    
    self.from_domain = attributes[:'fromDomain']
    
  
  end

  
  if attributes.has_key?(:'fromTag')
    
    
    self.from_tag = attributes[:'fromTag']
    
  
  end

  
  if attributes.has_key?(:'toUser')
    
    
    self.to_user = attributes[:'toUser']
    
  
  end

  
  if attributes.has_key?(:'toDomain')
    
    
    self.to_domain = attributes[:'toDomain']
    
  
  end

  
  if attributes.has_key?(:'toTag')
    
    
    self.to_tag = attributes[:'toTag']
    
  
  end

  
  if attributes.has_key?(:'pidUser')
    
    
    self.pid_user = attributes[:'pidUser']
    
  
  end

  
  if attributes.has_key?(:'contactUser')
    
    
    self.contact_user = attributes[:'contactUser']
    
  
  end

  
  if attributes.has_key?(:'authUser')
    
    
    self.auth_user = attributes[:'authUser']
    
  
  end

  
  if attributes.has_key?(:'callid')
    
    
    self.callid = attributes[:'callid']
    
  
  end

  
  if attributes.has_key?(:'callidAleg')
    
    
    self.callid_aleg = attributes[:'callidAleg']
    
  
  end

  
  if attributes.has_key?(:'via1')
    
    
    self.via1 = attributes[:'via1']
    
  
  end

  
  if attributes.has_key?(:'via1Branch')
    
    
    self.via1_branch = attributes[:'via1Branch']
    
  
  end

  
  if attributes.has_key?(:'cseq')
    
    
    self.cseq = attributes[:'cseq']
    
  
  end

  
  if attributes.has_key?(:'diversion')
    
    
    self.diversion = attributes[:'diversion']
    
  
  end

  
  if attributes.has_key?(:'reason')
    
    
    self.reason = attributes[:'reason']
    
  
  end

  
  if attributes.has_key?(:'contentType')
    
    
    self.content_type = attributes[:'contentType']
    
  
  end

  
  if attributes.has_key?(:'auth')
    
    
    self.auth = attributes[:'auth']
    
  
  end

  
  if attributes.has_key?(:'userAgent')
    
    
    self.user_agent = attributes[:'userAgent']
    
  
  end

  
  if attributes.has_key?(:'sourceIp')
    
    
    self.source_ip = attributes[:'sourceIp']
    
  
  end

  
  if attributes.has_key?(:'sourcePort')
    
    
    self.source_port = attributes[:'sourcePort']
    
  
  end

  
  if attributes.has_key?(:'destinationIp')
    
    
    self.destination_ip = attributes[:'destinationIp']
    
  
  end

  
  if attributes.has_key?(:'destinationPort')
    
    
    self.destination_port = attributes[:'destinationPort']
    
  
  end

  
  if attributes.has_key?(:'contactIp')
    
    
    self.contact_ip = attributes[:'contactIp']
    
  
  end

  
  if attributes.has_key?(:'contactPort')
    
    
    self.contact_port = attributes[:'contactPort']
    
  
  end

  
  if attributes.has_key?(:'originatorIp')
    
    
    self.originator_ip = attributes[:'originatorIp']
    
  
  end

  
  if attributes.has_key?(:'originatorPort')
    
    
    self.originator_port = attributes[:'originatorPort']
    
  
  end

  
  if attributes.has_key?(:'correlationId')
    
    
    self.correlation_id = attributes[:'correlationId']
    
  
  end

  
  if attributes.has_key?(:'proto')
    
    
    self.proto = attributes[:'proto']
    
  
  end

  
  if attributes.has_key?(:'family')
    
    
    self.family = attributes[:'family']
    
  
  end

  
  if attributes.has_key?(:'rtpStat')
    
    
    self.rtp_stat = attributes[:'rtpStat']
    
  
  end

  
  if attributes.has_key?(:'type')
    
    
    self.type = attributes[:'type']
    
  
  end

  
  if attributes.has_key?(:'node')
    
    
    self.node = attributes[:'node']
    
  
  end

  
  if attributes.has_key?(:'trans')
    
    
    self.trans = attributes[:'trans']
    
  
  end

  
  if attributes.has_key?(:'dbnode')
    
    
    self.dbnode = attributes[:'dbnode']
    
  
  end

  
  if attributes.has_key?(:'msg')
    
    
    self.msg = attributes[:'msg']
    
  
  end

  
  if attributes.has_key?(:'sourceAlias')
    
    
    self.source_alias = attributes[:'sourceAlias']
    
  
  end

  
  if attributes.has_key?(:'destinationAlias')
    
    
    self.destination_alias = attributes[:'destinationAlias']
    
  
  end

  
  if attributes.has_key?(:'conversationId')
    
    
    self.conversation_id = attributes[:'conversationId']
    
  
  end

  
  if attributes.has_key?(:'participantId')
    
    
    self.participant_id = attributes[:'participantId']
    
  
  end

  
  if attributes.has_key?(:'selfUri')
    
    
    self.self_uri = attributes[:'selfUri']
    
  
  end

  
end
swagger_types() click to toggle source

Attribute type mapping.

# File lib/purecloudplatformclientv2/models/homer_record.rb, line 283
def self.swagger_types
  {
    
    :'id' => :'String',
    
    :'name' => :'String',
    
    :'date' => :'DateTime',
    
    :'milli_ts' => :'String',
    
    :'micro_ts' => :'String',
    
    :'method' => :'String',
    
    :'reply_reason' => :'String',
    
    :'ruri' => :'String',
    
    :'ruri_user' => :'String',
    
    :'ruri_domain' => :'String',
    
    :'from_user' => :'String',
    
    :'from_domain' => :'String',
    
    :'from_tag' => :'String',
    
    :'to_user' => :'String',
    
    :'to_domain' => :'String',
    
    :'to_tag' => :'String',
    
    :'pid_user' => :'String',
    
    :'contact_user' => :'String',
    
    :'auth_user' => :'String',
    
    :'callid' => :'String',
    
    :'callid_aleg' => :'String',
    
    :'via1' => :'String',
    
    :'via1_branch' => :'String',
    
    :'cseq' => :'String',
    
    :'diversion' => :'String',
    
    :'reason' => :'String',
    
    :'content_type' => :'String',
    
    :'auth' => :'String',
    
    :'user_agent' => :'String',
    
    :'source_ip' => :'String',
    
    :'source_port' => :'String',
    
    :'destination_ip' => :'String',
    
    :'destination_port' => :'String',
    
    :'contact_ip' => :'String',
    
    :'contact_port' => :'String',
    
    :'originator_ip' => :'String',
    
    :'originator_port' => :'String',
    
    :'correlation_id' => :'String',
    
    :'proto' => :'String',
    
    :'family' => :'String',
    
    :'rtp_stat' => :'String',
    
    :'type' => :'String',
    
    :'node' => :'String',
    
    :'trans' => :'String',
    
    :'dbnode' => :'String',
    
    :'msg' => :'String',
    
    :'source_alias' => :'String',
    
    :'destination_alias' => :'String',
    
    :'conversation_id' => :'String',
    
    :'participant_id' => :'String',
    
    :'self_uri' => :'String'
    
  }
end

Public Instance Methods

==(o) click to toggle source

Checks equality by comparing each attribute. @param [Object] Object to be compared

# File lib/purecloudplatformclientv2/models/homer_record.rb, line 1338
def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      id == o.id &&
      name == o.name &&
      date == o.date &&
      milli_ts == o.milli_ts &&
      micro_ts == o.micro_ts &&
      method == o.method &&
      reply_reason == o.reply_reason &&
      ruri == o.ruri &&
      ruri_user == o.ruri_user &&
      ruri_domain == o.ruri_domain &&
      from_user == o.from_user &&
      from_domain == o.from_domain &&
      from_tag == o.from_tag &&
      to_user == o.to_user &&
      to_domain == o.to_domain &&
      to_tag == o.to_tag &&
      pid_user == o.pid_user &&
      contact_user == o.contact_user &&
      auth_user == o.auth_user &&
      callid == o.callid &&
      callid_aleg == o.callid_aleg &&
      via1 == o.via1 &&
      via1_branch == o.via1_branch &&
      cseq == o.cseq &&
      diversion == o.diversion &&
      reason == o.reason &&
      content_type == o.content_type &&
      auth == o.auth &&
      user_agent == o.user_agent &&
      source_ip == o.source_ip &&
      source_port == o.source_port &&
      destination_ip == o.destination_ip &&
      destination_port == o.destination_port &&
      contact_ip == o.contact_ip &&
      contact_port == o.contact_port &&
      originator_ip == o.originator_ip &&
      originator_port == o.originator_port &&
      correlation_id == o.correlation_id &&
      proto == o.proto &&
      family == o.family &&
      rtp_stat == o.rtp_stat &&
      type == o.type &&
      node == o.node &&
      trans == o.trans &&
      dbnode == o.dbnode &&
      msg == o.msg &&
      source_alias == o.source_alias &&
      destination_alias == o.destination_alias &&
      conversation_id == o.conversation_id &&
      participant_id == o.participant_id &&
      self_uri == o.self_uri
end
_deserialize(type, value) click to toggle source
# File lib/purecloudplatformclientv2/models/homer_record.rb, line 1426
def _deserialize(type, value)
  case type.to_sym
  when :DateTime
    DateTime.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :BOOLEAN
    if value.to_s =~ /^(true|t|yes|y|1)$/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    _model = Object.const_get("PureCloud").const_get(type).new
    _model.build_from_hash(value)
  end
end
_to_hash(value) click to toggle source

Method to output non-array value in the form of hash For object, use to_hash. Otherwise, just return the value

# File lib/purecloudplatformclientv2/models/homer_record.rb, line 1486
def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map{ |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end
build_from_hash(attributes) click to toggle source

build the object from hash

# File lib/purecloudplatformclientv2/models/homer_record.rb, line 1407
def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  self.class.swagger_types.each_pair do |key, type|
    if type =~ /^Array<(.*)>/i
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
      else
        #TODO show warning in debug mode
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
    else
      # data not found in attributes(hash), not an issue as the data can be optional
    end
  end

  self
end
eql?(o) click to toggle source

@see the `==` method @param [Object] Object to be compared

# File lib/purecloudplatformclientv2/models/homer_record.rb, line 1396
def eql?(o)
  self == o
end
hash() click to toggle source

Calculates hash code according to all attributes. @return [Fixnum] Hash code

# File lib/purecloudplatformclientv2/models/homer_record.rb, line 1402
def hash
  [id, name, date, milli_ts, micro_ts, method, reply_reason, ruri, ruri_user, ruri_domain, from_user, from_domain, from_tag, to_user, to_domain, to_tag, pid_user, contact_user, auth_user, callid, callid_aleg, via1, via1_branch, cseq, diversion, reason, content_type, auth, user_agent, source_ip, source_port, destination_ip, destination_port, contact_ip, contact_port, originator_ip, originator_port, correlation_id, proto, family, rtp_stat, type, node, trans, dbnode, msg, source_alias, destination_alias, conversation_id, participant_id, self_uri].hash
end
list_invalid_properties() click to toggle source

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properies with the reasons

# File lib/purecloudplatformclientv2/models/homer_record.rb, line 863
def list_invalid_properties
  invalid_properties = Array.new
  
  
  return invalid_properties
end
to_body() click to toggle source

to_body is an alias to to_body (backward compatibility))

# File lib/purecloudplatformclientv2/models/homer_record.rb, line 1469
def to_body
  to_hash
end
to_hash() click to toggle source

return the object in the form of hash

# File lib/purecloudplatformclientv2/models/homer_record.rb, line 1474
def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    next if value.nil?
    hash[param] = _to_hash(value)
  end
  hash
end
to_s() click to toggle source
# File lib/purecloudplatformclientv2/models/homer_record.rb, line 1464
def to_s
  to_hash.to_s
end
valid?() click to toggle source

Check to see if the all the properties in the model are valid @return true if the model is valid

# File lib/purecloudplatformclientv2/models/homer_record.rb, line 872
def valid?
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
end