incident_io_api 2.6.0 → 2.8.0

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.
@@ -0,0 +1,175 @@
1
+ =begin
2
+ #incident.io
3
+
4
+ #Ruby client for the incident.io API.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.25.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module IncidentIo
17
+ class StatusPageComponentsUpdatePayloadV2 < ApiModelBase
18
+ # Optional short description of this component
19
+ attr_accessor :description
20
+
21
+ # Human-readable name for the component
22
+ attr_accessor :name
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'description' => :'description',
28
+ :'name' => :'name'
29
+ }
30
+ end
31
+
32
+ # Returns attribute mapping this model knows about
33
+ def self.acceptable_attribute_map
34
+ attribute_map
35
+ end
36
+
37
+ # Returns all the JSON keys this model knows about
38
+ def self.acceptable_attributes
39
+ acceptable_attribute_map.values
40
+ end
41
+
42
+ # Attribute type mapping.
43
+ def self.openapi_types
44
+ {
45
+ :'description' => :'String',
46
+ :'name' => :'String'
47
+ }
48
+ end
49
+
50
+ # List of attributes with nullable: true
51
+ def self.openapi_nullable
52
+ Set.new([
53
+ ])
54
+ end
55
+
56
+ # Initializes the object
57
+ # @param [Hash] attributes Model attributes in the form of hash
58
+ def initialize(attributes = {})
59
+ if (!attributes.is_a?(Hash))
60
+ fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::StatusPageComponentsUpdatePayloadV2` initialize method"
61
+ end
62
+
63
+ # check to see if the attribute exists and convert string to symbol for hash key
64
+ acceptable_attribute_map = self.class.acceptable_attribute_map
65
+ attributes = attributes.each_with_object({}) { |(k, v), h|
66
+ if (!acceptable_attribute_map.key?(k.to_sym))
67
+ fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::StatusPageComponentsUpdatePayloadV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
68
+ end
69
+ h[k.to_sym] = v
70
+ }
71
+
72
+ if attributes.key?(:'description')
73
+ self.description = attributes[:'description']
74
+ end
75
+
76
+ if attributes.key?(:'name')
77
+ self.name = attributes[:'name']
78
+ else
79
+ self.name = nil
80
+ end
81
+ end
82
+
83
+ # Show invalid properties with the reasons. Usually used together with valid?
84
+ # @return Array for valid properties with the reasons
85
+ def list_invalid_properties
86
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
87
+ invalid_properties = Array.new
88
+ if @name.nil?
89
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
90
+ end
91
+
92
+ invalid_properties
93
+ end
94
+
95
+ # Check to see if the all the properties in the model are valid
96
+ # @return true if the model is valid
97
+ def valid?
98
+ warn '[DEPRECATED] the `valid?` method is obsolete'
99
+ return false if @name.nil?
100
+ true
101
+ end
102
+
103
+ # Custom attribute writer method with validation
104
+ # @param [Object] name Value to be assigned
105
+ def name=(name)
106
+ if name.nil?
107
+ fail ArgumentError, 'name cannot be nil'
108
+ end
109
+
110
+ @name = name
111
+ end
112
+
113
+ # Checks equality by comparing each attribute.
114
+ # @param [Object] Object to be compared
115
+ def ==(o)
116
+ return true if self.equal?(o)
117
+ self.class == o.class &&
118
+ description == o.description &&
119
+ name == o.name
120
+ end
121
+
122
+ # @see the `==` method
123
+ # @param [Object] Object to be compared
124
+ def eql?(o)
125
+ self == o
126
+ end
127
+
128
+ # Calculates hash code according to all attributes.
129
+ # @return [Integer] Hash code
130
+ def hash
131
+ [description, name].hash
132
+ end
133
+
134
+ # Builds the object from hash
135
+ # @param [Hash] attributes Model attributes in the form of hash
136
+ # @return [Object] Returns the model itself
137
+ def self.build_from_hash(attributes)
138
+ return nil unless attributes.is_a?(Hash)
139
+ attributes = attributes.transform_keys(&:to_sym)
140
+ transformed_hash = {}
141
+ openapi_types.each_pair do |key, type|
142
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
143
+ transformed_hash["#{key}"] = nil
144
+ elsif type =~ /\AArray<(.*)>/i
145
+ # check to ensure the input is an array given that the attribute
146
+ # is documented as an array but the input is not
147
+ if attributes[attribute_map[key]].is_a?(Array)
148
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
149
+ end
150
+ elsif !attributes[attribute_map[key]].nil?
151
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
152
+ end
153
+ end
154
+ new(transformed_hash)
155
+ end
156
+
157
+ # Returns the object in the form of hash
158
+ # @return [Hash] Returns the object in the form of hash
159
+ def to_hash
160
+ hash = {}
161
+ self.class.attribute_map.each_pair do |attr, param|
162
+ value = self.send(attr)
163
+ if value.nil?
164
+ is_nullable = self.class.openapi_nullable.include?(attr)
165
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
166
+ end
167
+
168
+ hash[param] = _to_hash(value)
169
+ end
170
+ hash
171
+ end
172
+
173
+ end
174
+
175
+ end
@@ -0,0 +1,164 @@
1
+ =begin
2
+ #incident.io
3
+
4
+ #Ruby client for the incident.io API.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.25.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module IncidentIo
17
+ class StatusPageComponentsUpdateResultV2 < ApiModelBase
18
+ attr_accessor :status_page_component
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'status_page_component' => :'status_page_component'
24
+ }
25
+ end
26
+
27
+ # Returns attribute mapping this model knows about
28
+ def self.acceptable_attribute_map
29
+ attribute_map
30
+ end
31
+
32
+ # Returns all the JSON keys this model knows about
33
+ def self.acceptable_attributes
34
+ acceptable_attribute_map.values
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.openapi_types
39
+ {
40
+ :'status_page_component' => :'StatusPageComponentV2'
41
+ }
42
+ end
43
+
44
+ # List of attributes with nullable: true
45
+ def self.openapi_nullable
46
+ Set.new([
47
+ ])
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param [Hash] attributes Model attributes in the form of hash
52
+ def initialize(attributes = {})
53
+ if (!attributes.is_a?(Hash))
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::StatusPageComponentsUpdateResultV2` initialize method"
55
+ end
56
+
57
+ # check to see if the attribute exists and convert string to symbol for hash key
58
+ acceptable_attribute_map = self.class.acceptable_attribute_map
59
+ attributes = attributes.each_with_object({}) { |(k, v), h|
60
+ if (!acceptable_attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::StatusPageComponentsUpdateResultV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
62
+ end
63
+ h[k.to_sym] = v
64
+ }
65
+
66
+ if attributes.key?(:'status_page_component')
67
+ self.status_page_component = attributes[:'status_page_component']
68
+ else
69
+ self.status_page_component = nil
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
77
+ invalid_properties = Array.new
78
+ if @status_page_component.nil?
79
+ invalid_properties.push('invalid value for "status_page_component", status_page_component cannot be nil.')
80
+ end
81
+
82
+ invalid_properties
83
+ end
84
+
85
+ # Check to see if the all the properties in the model are valid
86
+ # @return true if the model is valid
87
+ def valid?
88
+ warn '[DEPRECATED] the `valid?` method is obsolete'
89
+ return false if @status_page_component.nil?
90
+ true
91
+ end
92
+
93
+ # Custom attribute writer method with validation
94
+ # @param [Object] status_page_component Value to be assigned
95
+ def status_page_component=(status_page_component)
96
+ if status_page_component.nil?
97
+ fail ArgumentError, 'status_page_component cannot be nil'
98
+ end
99
+
100
+ @status_page_component = status_page_component
101
+ end
102
+
103
+ # Checks equality by comparing each attribute.
104
+ # @param [Object] Object to be compared
105
+ def ==(o)
106
+ return true if self.equal?(o)
107
+ self.class == o.class &&
108
+ status_page_component == o.status_page_component
109
+ end
110
+
111
+ # @see the `==` method
112
+ # @param [Object] Object to be compared
113
+ def eql?(o)
114
+ self == o
115
+ end
116
+
117
+ # Calculates hash code according to all attributes.
118
+ # @return [Integer] Hash code
119
+ def hash
120
+ [status_page_component].hash
121
+ end
122
+
123
+ # Builds the object from hash
124
+ # @param [Hash] attributes Model attributes in the form of hash
125
+ # @return [Object] Returns the model itself
126
+ def self.build_from_hash(attributes)
127
+ return nil unless attributes.is_a?(Hash)
128
+ attributes = attributes.transform_keys(&:to_sym)
129
+ transformed_hash = {}
130
+ openapi_types.each_pair do |key, type|
131
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
132
+ transformed_hash["#{key}"] = nil
133
+ elsif type =~ /\AArray<(.*)>/i
134
+ # check to ensure the input is an array given that the attribute
135
+ # is documented as an array but the input is not
136
+ if attributes[attribute_map[key]].is_a?(Array)
137
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
138
+ end
139
+ elsif !attributes[attribute_map[key]].nil?
140
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
141
+ end
142
+ end
143
+ new(transformed_hash)
144
+ end
145
+
146
+ # Returns the object in the form of hash
147
+ # @return [Hash] Returns the object in the form of hash
148
+ def to_hash
149
+ hash = {}
150
+ self.class.attribute_map.each_pair do |attr, param|
151
+ value = self.send(attr)
152
+ if value.nil?
153
+ is_nullable = self.class.openapi_nullable.include?(attr)
154
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
155
+ end
156
+
157
+ hash[param] = _to_hash(value)
158
+ end
159
+ hash
160
+ end
161
+
162
+ end
163
+
164
+ end
@@ -18,6 +18,12 @@ module IncidentIo
18
18
  # The ID of the affected component. This may be found by calling the ShowStatusPageStructure endpoint.
19
19
  attr_accessor :component_id
20
20
 
21
+ # Whether the page shows this component's uptime
22
+ attr_accessor :display_uptime
23
+
24
+ # Whether the component is hidden from the page
25
+ attr_accessor :hidden
26
+
21
27
  # The name of this component
22
28
  attr_accessor :name
23
29
 
@@ -25,6 +31,8 @@ module IncidentIo
25
31
  def self.attribute_map
26
32
  {
27
33
  :'component_id' => :'component_id',
34
+ :'display_uptime' => :'display_uptime',
35
+ :'hidden' => :'hidden',
28
36
  :'name' => :'name'
29
37
  }
30
38
  end
@@ -43,6 +51,8 @@ module IncidentIo
43
51
  def self.openapi_types
44
52
  {
45
53
  :'component_id' => :'String',
54
+ :'display_uptime' => :'Boolean',
55
+ :'hidden' => :'Boolean',
46
56
  :'name' => :'String'
47
57
  }
48
58
  end
@@ -75,6 +85,18 @@ module IncidentIo
75
85
  self.component_id = nil
76
86
  end
77
87
 
88
+ if attributes.key?(:'display_uptime')
89
+ self.display_uptime = attributes[:'display_uptime']
90
+ else
91
+ self.display_uptime = nil
92
+ end
93
+
94
+ if attributes.key?(:'hidden')
95
+ self.hidden = attributes[:'hidden']
96
+ else
97
+ self.hidden = nil
98
+ end
99
+
78
100
  if attributes.key?(:'name')
79
101
  self.name = attributes[:'name']
80
102
  else
@@ -91,6 +113,14 @@ module IncidentIo
91
113
  invalid_properties.push('invalid value for "component_id", component_id cannot be nil.')
92
114
  end
93
115
 
116
+ if @display_uptime.nil?
117
+ invalid_properties.push('invalid value for "display_uptime", display_uptime cannot be nil.')
118
+ end
119
+
120
+ if @hidden.nil?
121
+ invalid_properties.push('invalid value for "hidden", hidden cannot be nil.')
122
+ end
123
+
94
124
  if @name.nil?
95
125
  invalid_properties.push('invalid value for "name", name cannot be nil.')
96
126
  end
@@ -103,6 +133,8 @@ module IncidentIo
103
133
  def valid?
104
134
  warn '[DEPRECATED] the `valid?` method is obsolete'
105
135
  return false if @component_id.nil?
136
+ return false if @display_uptime.nil?
137
+ return false if @hidden.nil?
106
138
  return false if @name.nil?
107
139
  true
108
140
  end
@@ -117,6 +149,26 @@ module IncidentIo
117
149
  @component_id = component_id
118
150
  end
119
151
 
152
+ # Custom attribute writer method with validation
153
+ # @param [Object] display_uptime Value to be assigned
154
+ def display_uptime=(display_uptime)
155
+ if display_uptime.nil?
156
+ fail ArgumentError, 'display_uptime cannot be nil'
157
+ end
158
+
159
+ @display_uptime = display_uptime
160
+ end
161
+
162
+ # Custom attribute writer method with validation
163
+ # @param [Object] hidden Value to be assigned
164
+ def hidden=(hidden)
165
+ if hidden.nil?
166
+ fail ArgumentError, 'hidden cannot be nil'
167
+ end
168
+
169
+ @hidden = hidden
170
+ end
171
+
120
172
  # Custom attribute writer method with validation
121
173
  # @param [Object] name Value to be assigned
122
174
  def name=(name)
@@ -133,6 +185,8 @@ module IncidentIo
133
185
  return true if self.equal?(o)
134
186
  self.class == o.class &&
135
187
  component_id == o.component_id &&
188
+ display_uptime == o.display_uptime &&
189
+ hidden == o.hidden &&
136
190
  name == o.name
137
191
  end
138
192
 
@@ -145,7 +199,7 @@ module IncidentIo
145
199
  # Calculates hash code according to all attributes.
146
200
  # @return [Integer] Hash code
147
201
  def hash
148
- [component_id, name].hash
202
+ [component_id, display_uptime, hidden, name].hash
149
203
  end
150
204
 
151
205
  # Builds the object from hash
@@ -18,6 +18,15 @@ module IncidentIo
18
18
  # Array of components belonging to this group
19
19
  attr_accessor :components
20
20
 
21
+ # A description shown under the group's name
22
+ attr_accessor :description
23
+
24
+ # Whether the page shows uptime aggregated across the group's components
25
+ attr_accessor :display_aggregated_uptime
26
+
27
+ # Whether the group is hidden from the page
28
+ attr_accessor :hidden
29
+
21
30
  # Unique ID of this component group
22
31
  attr_accessor :id
23
32
 
@@ -28,6 +37,9 @@ module IncidentIo
28
37
  def self.attribute_map
29
38
  {
30
39
  :'components' => :'components',
40
+ :'description' => :'description',
41
+ :'display_aggregated_uptime' => :'display_aggregated_uptime',
42
+ :'hidden' => :'hidden',
31
43
  :'id' => :'id',
32
44
  :'name' => :'name'
33
45
  }
@@ -47,6 +59,9 @@ module IncidentIo
47
59
  def self.openapi_types
48
60
  {
49
61
  :'components' => :'Array<StatusPageStructureComponentV2>',
62
+ :'description' => :'String',
63
+ :'display_aggregated_uptime' => :'Boolean',
64
+ :'hidden' => :'Boolean',
50
65
  :'id' => :'String',
51
66
  :'name' => :'String'
52
67
  }
@@ -82,6 +97,22 @@ module IncidentIo
82
97
  self.components = nil
83
98
  end
84
99
 
100
+ if attributes.key?(:'description')
101
+ self.description = attributes[:'description']
102
+ end
103
+
104
+ if attributes.key?(:'display_aggregated_uptime')
105
+ self.display_aggregated_uptime = attributes[:'display_aggregated_uptime']
106
+ else
107
+ self.display_aggregated_uptime = nil
108
+ end
109
+
110
+ if attributes.key?(:'hidden')
111
+ self.hidden = attributes[:'hidden']
112
+ else
113
+ self.hidden = nil
114
+ end
115
+
85
116
  if attributes.key?(:'id')
86
117
  self.id = attributes[:'id']
87
118
  else
@@ -104,6 +135,14 @@ module IncidentIo
104
135
  invalid_properties.push('invalid value for "components", components cannot be nil.')
105
136
  end
106
137
 
138
+ if @display_aggregated_uptime.nil?
139
+ invalid_properties.push('invalid value for "display_aggregated_uptime", display_aggregated_uptime cannot be nil.')
140
+ end
141
+
142
+ if @hidden.nil?
143
+ invalid_properties.push('invalid value for "hidden", hidden cannot be nil.')
144
+ end
145
+
107
146
  if @id.nil?
108
147
  invalid_properties.push('invalid value for "id", id cannot be nil.')
109
148
  end
@@ -120,6 +159,8 @@ module IncidentIo
120
159
  def valid?
121
160
  warn '[DEPRECATED] the `valid?` method is obsolete'
122
161
  return false if @components.nil?
162
+ return false if @display_aggregated_uptime.nil?
163
+ return false if @hidden.nil?
123
164
  return false if @id.nil?
124
165
  return false if @name.nil?
125
166
  true
@@ -135,6 +176,26 @@ module IncidentIo
135
176
  @components = components
136
177
  end
137
178
 
179
+ # Custom attribute writer method with validation
180
+ # @param [Object] display_aggregated_uptime Value to be assigned
181
+ def display_aggregated_uptime=(display_aggregated_uptime)
182
+ if display_aggregated_uptime.nil?
183
+ fail ArgumentError, 'display_aggregated_uptime cannot be nil'
184
+ end
185
+
186
+ @display_aggregated_uptime = display_aggregated_uptime
187
+ end
188
+
189
+ # Custom attribute writer method with validation
190
+ # @param [Object] hidden Value to be assigned
191
+ def hidden=(hidden)
192
+ if hidden.nil?
193
+ fail ArgumentError, 'hidden cannot be nil'
194
+ end
195
+
196
+ @hidden = hidden
197
+ end
198
+
138
199
  # Custom attribute writer method with validation
139
200
  # @param [Object] id Value to be assigned
140
201
  def id=(id)
@@ -161,6 +222,9 @@ module IncidentIo
161
222
  return true if self.equal?(o)
162
223
  self.class == o.class &&
163
224
  components == o.components &&
225
+ description == o.description &&
226
+ display_aggregated_uptime == o.display_aggregated_uptime &&
227
+ hidden == o.hidden &&
164
228
  id == o.id &&
165
229
  name == o.name
166
230
  end
@@ -174,7 +238,7 @@ module IncidentIo
174
238
  # Calculates hash code according to all attributes.
175
239
  # @return [Integer] Hash code
176
240
  def hash
177
- [components, id, name].hash
241
+ [components, description, display_aggregated_uptime, hidden, id, name].hash
178
242
  end
179
243
 
180
244
  # Builds the object from hash
@@ -17,10 +17,17 @@ module IncidentIo
17
17
  class StatusPagesShowStatusPageStructureResultV2 < ApiModelBase
18
18
  attr_accessor :current_structure
19
19
 
20
+ # How the page shows uptime against its components Known values: `chart_and_percentage`, `chart_only`, `nothing`
21
+ attr_accessor :display_uptime_mode
22
+
23
+ attr_accessor :management_meta
24
+
20
25
  # Attribute mapping from ruby-style variable name to JSON key.
21
26
  def self.attribute_map
22
27
  {
23
- :'current_structure' => :'current_structure'
28
+ :'current_structure' => :'current_structure',
29
+ :'display_uptime_mode' => :'display_uptime_mode',
30
+ :'management_meta' => :'management_meta'
24
31
  }
25
32
  end
26
33
 
@@ -37,7 +44,9 @@ module IncidentIo
37
44
  # Attribute type mapping.
38
45
  def self.openapi_types
39
46
  {
40
- :'current_structure' => :'StatusPageStructureV2'
47
+ :'current_structure' => :'StatusPageStructureV2',
48
+ :'display_uptime_mode' => :'String',
49
+ :'management_meta' => :'ManagementMetaV2'
41
50
  }
42
51
  end
43
52
 
@@ -68,6 +77,18 @@ module IncidentIo
68
77
  else
69
78
  self.current_structure = nil
70
79
  end
80
+
81
+ if attributes.key?(:'display_uptime_mode')
82
+ self.display_uptime_mode = attributes[:'display_uptime_mode']
83
+ else
84
+ self.display_uptime_mode = nil
85
+ end
86
+
87
+ if attributes.key?(:'management_meta')
88
+ self.management_meta = attributes[:'management_meta']
89
+ else
90
+ self.management_meta = nil
91
+ end
71
92
  end
72
93
 
73
94
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -79,6 +100,14 @@ module IncidentIo
79
100
  invalid_properties.push('invalid value for "current_structure", current_structure cannot be nil.')
80
101
  end
81
102
 
103
+ if @display_uptime_mode.nil?
104
+ invalid_properties.push('invalid value for "display_uptime_mode", display_uptime_mode cannot be nil.')
105
+ end
106
+
107
+ if @management_meta.nil?
108
+ invalid_properties.push('invalid value for "management_meta", management_meta cannot be nil.')
109
+ end
110
+
82
111
  invalid_properties
83
112
  end
84
113
 
@@ -87,6 +116,8 @@ module IncidentIo
87
116
  def valid?
88
117
  warn '[DEPRECATED] the `valid?` method is obsolete'
89
118
  return false if @current_structure.nil?
119
+ return false if @display_uptime_mode.nil?
120
+ return false if @management_meta.nil?
90
121
  true
91
122
  end
92
123
 
@@ -100,12 +131,34 @@ module IncidentIo
100
131
  @current_structure = current_structure
101
132
  end
102
133
 
134
+ # Custom attribute writer method with validation
135
+ # @param [Object] display_uptime_mode Value to be assigned
136
+ def display_uptime_mode=(display_uptime_mode)
137
+ if display_uptime_mode.nil?
138
+ fail ArgumentError, 'display_uptime_mode cannot be nil'
139
+ end
140
+
141
+ @display_uptime_mode = display_uptime_mode
142
+ end
143
+
144
+ # Custom attribute writer method with validation
145
+ # @param [Object] management_meta Value to be assigned
146
+ def management_meta=(management_meta)
147
+ if management_meta.nil?
148
+ fail ArgumentError, 'management_meta cannot be nil'
149
+ end
150
+
151
+ @management_meta = management_meta
152
+ end
153
+
103
154
  # Checks equality by comparing each attribute.
104
155
  # @param [Object] Object to be compared
105
156
  def ==(o)
106
157
  return true if self.equal?(o)
107
158
  self.class == o.class &&
108
- current_structure == o.current_structure
159
+ current_structure == o.current_structure &&
160
+ display_uptime_mode == o.display_uptime_mode &&
161
+ management_meta == o.management_meta
109
162
  end
110
163
 
111
164
  # @see the `==` method
@@ -117,7 +170,7 @@ module IncidentIo
117
170
  # Calculates hash code according to all attributes.
118
171
  # @return [Integer] Hash code
119
172
  def hash
120
- [current_structure].hash
173
+ [current_structure, display_uptime_mode, management_meta].hash
121
174
  end
122
175
 
123
176
  # Builds the object from hash
@@ -4,5 +4,5 @@ module IncidentIo
4
4
  # The release workflow sets this before building, so it tracks whatever we
5
5
  # last published. Listed in .openapi-generator-ignore so regeneration can't
6
6
  # reset it.
7
- VERSION = "2.6.0"
7
+ VERSION = "2.8.0"
8
8
  end