Class: BandwidthIris::SipPeerProducts

Inherits:
Object
  • Object
show all
Extended by:
ClientWrapper
Includes:
ApiItem
Defined in:
lib/bandwidth-iris/sip_peer_products.rb

Class Method Summary collapse

Methods included from ClientWrapper

wrap_client_arg

Methods included from ApiItem

#[], #[]=, #initialize, #to_data

Class Method Details

.create_mms_feature_settings(client, site_id, sippeer_id, data) ⇒ Object



72
73
74
75
# File 'lib/bandwidth-iris/sip_peer_products.rb', line 72

def self.create_mms_feature_settings(client, site_id, sippeer_id, data)
  response = client.make_request(:post, "#{client.(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/features/mms", {:mms_feature => data})
  return response[0][:mms_feature]
end

.create_origination_settings(client, site_id, sippeer_id, data) ⇒ Object



14
15
16
17
# File 'lib/bandwidth-iris/sip_peer_products.rb', line 14

def self.create_origination_settings(client, site_id, sippeer_id, data)
  response = client.make_request(:post, "#{client.(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/origination/settings", {:sip_peer_origination_settings => data})
  return response[0][:sip_peer_origination_settings]
end

.create_sms_feature_settings(client, site_id, sippeer_id, data) ⇒ Object



48
49
50
51
# File 'lib/bandwidth-iris/sip_peer_products.rb', line 48

def self.create_sms_feature_settings(client, site_id, sippeer_id, data)
  response = client.make_request(:post, "#{client.(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/features/sms", {:sip_peer_sms_feature => data})
  return response[0][:sip_peer_sms_feature]
end

.create_termination_settings(client, site_id, sippeer_id, data) ⇒ Object



31
32
33
34
# File 'lib/bandwidth-iris/sip_peer_products.rb', line 31

def self.create_termination_settings(client, site_id, sippeer_id, data)
  response = client.make_request(:post, "#{client.(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/termination/settings", {:sip_peer_termination_settings => data})
  return response[0][:sip_peer_termination_settings]
end

.delete_mms_feature_settings(client, site_id, sippeer_id) ⇒ Object



83
84
85
# File 'lib/bandwidth-iris/sip_peer_products.rb', line 83

def self.delete_mms_feature_settings(client, site_id, sippeer_id)
  client.make_request(:delete, "#{client.(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/features/mms")
end

.delete_sms_feature_settings(client, site_id, sippeer_id) ⇒ Object



60
61
62
63
# File 'lib/bandwidth-iris/sip_peer_products.rb', line 60

def self.delete_sms_feature_settings(client, site_id, sippeer_id)
  response = client.make_request(:delete, "#{client.(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/features/sms")
  return response
end

.get_messaging_application_settings(client, site_id, sippeer_id) ⇒ Object



94
95
96
97
# File 'lib/bandwidth-iris/sip_peer_products.rb', line 94

def self.get_messaging_application_settings(client, site_id, sippeer_id)
  response = client.make_request(:get, "#{client.(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/applicationSettings")
  return response[0][:applications_settings]
end

.get_messaging_settings(client, site_id, sippeer_id) ⇒ Object



106
107
108
109
# File 'lib/bandwidth-iris/sip_peer_products.rb', line 106

def self.get_messaging_settings(client, site_id, sippeer_id)
  response = client.make_request(:get, "#{client.(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/settings")
  return response[0][:sip_peer_messaging_settings]
end

.get_mms_feature_mms_settings(client, site_id, sippeer_id) ⇒ Object



88
89
90
91
# File 'lib/bandwidth-iris/sip_peer_products.rb', line 88

def self.get_mms_feature_mms_settings(client, site_id, sippeer_id)
  response = client.make_request(:get, "#{client.(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/features/mms/settings")
  return response[0][:mms_settings]
end

.get_mms_feature_settings(client, site_id, sippeer_id) ⇒ Object



66
67
68
69
# File 'lib/bandwidth-iris/sip_peer_products.rb', line 66

def self.get_mms_feature_settings(client, site_id, sippeer_id)
  response = client.make_request(:get, "#{client.(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/features/mms")
  return response[0][:mms_feature]
end

.get_origination_settings(client, site_id, sippeer_id) ⇒ Object



8
9
10
11
# File 'lib/bandwidth-iris/sip_peer_products.rb', line 8

def self.get_origination_settings(client, site_id, sippeer_id)
  response = client.make_request(:get, "#{client.(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/origination/settings")
  return response[0][:sip_peer_origination_settings]
end

.get_sms_feature_settings(client, site_id, sippeer_id) ⇒ Object



42
43
44
45
# File 'lib/bandwidth-iris/sip_peer_products.rb', line 42

def self.get_sms_feature_settings(client, site_id, sippeer_id)
  response = client.make_request(:get, "#{client.(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/features/sms")
  return response[0][:sip_peer_sms_feature]
end

.get_termination_settings(client, site_id, sippeer_id) ⇒ Object



25
26
27
28
# File 'lib/bandwidth-iris/sip_peer_products.rb', line 25

def self.get_termination_settings(client, site_id, sippeer_id)
  response = client.make_request(:get, "#{client.(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/termination/settings")
  return response[0][:sip_peer_termination_settings]
end

.update_messaging_application_settings(client, site_id, sippeer_id, data) ⇒ Object



100
101
102
103
# File 'lib/bandwidth-iris/sip_peer_products.rb', line 100

def self.update_messaging_application_settings(client, site_id, sippeer_id, data)
  response = client.make_request(:put, "#{client.(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/applicationSettings", {:applications_settings => data})
  return response[0][:applications_settings]
end

.update_messaging_settings(client, site_id, sippeer_id, data) ⇒ Object



112
113
114
115
# File 'lib/bandwidth-iris/sip_peer_products.rb', line 112

def self.update_messaging_settings(client, site_id, sippeer_id, data)
  response = client.make_request(:put, "#{client.(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/settings", {:sip_peer_messaging_settings => data})
  return response[0][:sip_peer_messaging_settings]
end

.update_mms_feature_settings(client, site_id, sippeer_id, data) ⇒ Object



78
79
80
# File 'lib/bandwidth-iris/sip_peer_products.rb', line 78

def self.update_mms_feature_settings(client, site_id, sippeer_id, data)
  client.make_request(:put, "#{client.(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/features/mms", {:mms_feature => data})
end

.update_origination_settings(client, site_id, sippeer_id, data) ⇒ Object



20
21
22
# File 'lib/bandwidth-iris/sip_peer_products.rb', line 20

def self.update_origination_settings(client, site_id, sippeer_id, data)
  client.make_request(:put, "#{client.(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/origination/settings", {:sip_peer_origination_settings => data})
end

.update_sms_feature_settings(client, site_id, sippeer_id, data) ⇒ Object



54
55
56
57
# File 'lib/bandwidth-iris/sip_peer_products.rb', line 54

def self.update_sms_feature_settings(client, site_id, sippeer_id, data)
  response = client.make_request(:put, "#{client.(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/features/sms", {:sip_peer_sms_feature => data})
  return response[0][:sip_peer_sms_feature]
end

.update_termination_settings(client, site_id, sippeer_id, data) ⇒ Object



37
38
39
# File 'lib/bandwidth-iris/sip_peer_products.rb', line 37

def self.update_termination_settings(client, site_id, sippeer_id, data)
  client.make_request(:put, "#{client.(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/termination/settings", {:sip_peer_termination_settings => data})
end