innologix 0.0.40 → 0.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6080f596212711704051279683ff05caad540139
4
- data.tar.gz: da4655326aca61aa3870d05624215d6fd676073a
3
+ metadata.gz: 5da79d2d60ac859b3e3d23a5e343df1770a3dc81
4
+ data.tar.gz: 40db41828b5cf8e0c60968a81cfee5f9460e1860
5
5
  SHA512:
6
- metadata.gz: 11445213cbbcc39f66c3b75a09ea363e967572813b02a22f2a066492bed4046807caaf2cb5b67db9b43d63d53cd80c3093e8c93520a0a9320635bc3a023f0b84
7
- data.tar.gz: fba863ae757849b6c065857f274ea628b4fedc4cf81abca89e93246a1e3d4cd605a197705a34bcfecafeaae9d8bff555fc065d988ff69fa5a34ae80dd1df99b9
6
+ metadata.gz: 49c0374da40d143c38af6709f8535b37339eae5ecefe700e1f830f59d24ad39ea9f2c1f66952d0d0236515d9a2a46aac1f219c460686231ed538215d87d9202f
7
+ data.tar.gz: 18179082f998d71c6fd2c9b5d6c8dc1ca0ca1d8bfbdb5fd4629d4e366407d48777f9aa6ac71fdd2f5f519399d3cff4dc0d974a045864e93be1f10a5c15bea2c4
@@ -2,6 +2,7 @@ module Innologix
2
2
  class SlaGroup
3
3
  attr_accessor :id
4
4
  attr_accessor :name
5
+ attr_accessor :supervisor_id
5
6
  attr_accessor :time_frames
6
7
  attr_accessor :created_at
7
8
  attr_accessor :updated_at
@@ -17,10 +18,10 @@ module Innologix
17
18
  def list(offset = 0, limit = 10)
18
19
  path = '/sla_groups'
19
20
  method = 'get'
20
- options = {query_params: {offset: offset, limit: limit}}
21
+ options = { query_params: { offset: offset, limit: limit } }
21
22
  result = client.call_api(path, method, options)
22
23
  if result[:error].nil?
23
- list =[]
24
+ list = []
24
25
  result[:sla_groups].each do |sla_group|
25
26
  list.push(from_hash(sla_group))
26
27
  end
@@ -52,7 +53,7 @@ module Innologix
52
53
  def create
53
54
  path = '/sla_groups'
54
55
  method = 'post'
55
- options = {form_params: {sla_group: {name: name, time_frames: time_frames}}}
56
+ options = { form_params: { sla_group: { name: name, supervisor_id: supervisor_id, time_frames: time_frames } } }
56
57
  result = client.call_api(path, method, options)
57
58
  if result[:error].nil?
58
59
  from_hash(result)
@@ -64,7 +65,7 @@ module Innologix
64
65
  def update
65
66
  path = '/sla_groups/' + id.to_s
66
67
  method = 'put'
67
- options = {form_params: {sla_group: {name: name, time_frames: time_frames}}}
68
+ options = { form_params: { sla_group: { name: name, supervisor_id: supervisor_id, time_frames: time_frames } } }
68
69
  result = client.call_api(path, method, options)
69
70
  if result[:error].nil?
70
71
  from_hash(result)
@@ -88,6 +89,7 @@ module Innologix
88
89
  sla_group = Innologix::SlaGroup.new
89
90
  sla_group.id = attributes[:id]
90
91
  sla_group.name = attributes[:name]
92
+ sla_group.supervisor_id = attributes[:supervisor_id]
91
93
  sla_group.time_frames = attributes[:time_frames]
92
94
  sla_group.created_at = attributes[:created_at]
93
95
  sla_group.updated_at = attributes[:updated_at]
@@ -1,3 +1,3 @@
1
1
  module Innologix
2
- VERSION = "0.0.40"
2
+ VERSION = "0.0.41"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: innologix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.40
4
+ version: 0.0.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - SkyLab Innogram
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-25 00:00:00.000000000 Z
11
+ date: 2018-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler