incident_io_api 4.1.0 → 4.3.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.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/lib/incident_io/api/alert_grouping_preferences_v3_api.rb +367 -0
  3. data/lib/incident_io/api/alert_rules_v3_api.rb +367 -0
  4. data/lib/incident_io/api/catalog_v3_api.rb +68 -0
  5. data/lib/incident_io/api/team_grouping_preferences_v3_api.rb +364 -0
  6. data/lib/incident_io/models/alert_grouping_conditional_branch_v3.rb +204 -0
  7. data/lib/incident_io/models/alert_grouping_default_branch_v3.rb +165 -0
  8. data/lib/incident_io/models/alert_grouping_preference_v3.rb +368 -0
  9. data/lib/incident_io/models/alert_grouping_preferences_create_payload_v3.rb +225 -0
  10. data/lib/incident_io/models/alert_grouping_preferences_create_result_v3.rb +164 -0
  11. data/lib/incident_io/models/alert_grouping_preferences_list_result_v3.rb +192 -0
  12. data/lib/incident_io/models/alert_grouping_preferences_show_result_v3.rb +164 -0
  13. data/lib/incident_io/models/alert_grouping_preferences_update_payload_v3.rb +198 -0
  14. data/lib/incident_io/models/alert_grouping_preferences_update_result_v3.rb +164 -0
  15. data/lib/incident_io/models/alert_grouping_settings_v3.rb +246 -0
  16. data/lib/incident_io/models/alert_rule_action_v3.rb +240 -0
  17. data/lib/incident_io/models/alert_rule_block_v3.rb +222 -0
  18. data/lib/incident_io/models/alert_rule_branch_v3.rb +254 -0
  19. data/lib/incident_io/models/alert_rule_create_incident_action_v3.rb +177 -0
  20. data/lib/incident_io/models/alert_rule_escalate_action_v3.rb +215 -0
  21. data/lib/incident_io/models/alert_rule_nested_branch_v3.rb +242 -0
  22. data/lib/incident_io/models/alert_rule_post_action_v3.rb +202 -0
  23. data/lib/incident_io/models/alert_rule_set_v3.rb +351 -0
  24. data/lib/incident_io/models/alert_rules_create_payload_v3.rb +225 -0
  25. data/lib/incident_io/models/alert_rules_create_result_v3.rb +164 -0
  26. data/lib/incident_io/models/alert_rules_list_result_v3.rb +192 -0
  27. data/lib/incident_io/models/alert_rules_show_result_v3.rb +164 -0
  28. data/lib/incident_io/models/alert_rules_update_payload_v3.rb +198 -0
  29. data/lib/incident_io/models/alert_rules_update_result_v3.rb +164 -0
  30. data/lib/incident_io/models/catalog_bulk_archive_entries_payload_v3.rb +212 -0
  31. data/lib/incident_io/models/team_grouping_preference_v3.rb +300 -0
  32. data/lib/incident_io/models/team_grouping_preferences_create_payload_v3.rb +191 -0
  33. data/lib/incident_io/models/team_grouping_preferences_create_result_v3.rb +164 -0
  34. data/lib/incident_io/models/team_grouping_preferences_list_result_v3.rb +192 -0
  35. data/lib/incident_io/models/team_grouping_preferences_show_result_v3.rb +164 -0
  36. data/lib/incident_io/models/team_grouping_preferences_update_payload_v3.rb +191 -0
  37. data/lib/incident_io/models/team_grouping_preferences_update_result_v3.rb +164 -0
  38. data/lib/incident_io/version.rb +1 -1
  39. data/lib/incident_io.rb +35 -0
  40. metadata +37 -2
@@ -0,0 +1,225 @@
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 AlertGroupingPreferencesCreatePayloadV3 < ApiModelBase
18
+ # Grouping branches in order. Alert rules group an alert by the first branch whose conditions hold, else by the default. Alert routes only use the default. Omit it on an update to keep the current branches and expressions. Only organisations that use alert rules can add or change branches.
19
+ attr_accessor :branches
20
+
21
+ attr_accessor :default
22
+
23
+ # Expressions the branches' conditions test or compare against, as expressions[\"reference\"]. Omit it on an update to keep the current expressions, which are also kept when branches are omitted.
24
+ attr_accessor :expressions
25
+
26
+ # Which preference this is. A team's preference groups the alerts of its team. The organisation's default groups alerts that no team's preference groups, and is used only by alert rules. Known values: `default`, `team`
27
+ attr_accessor :kind
28
+
29
+ # The catalog entry ID of the team. Set it for a team's preference only.
30
+ attr_accessor :team_id
31
+
32
+ # Attribute mapping from ruby-style variable name to JSON key.
33
+ def self.attribute_map
34
+ {
35
+ :'branches' => :'branches',
36
+ :'default' => :'default',
37
+ :'expressions' => :'expressions',
38
+ :'kind' => :'kind',
39
+ :'team_id' => :'team_id'
40
+ }
41
+ end
42
+
43
+ # Returns attribute mapping this model knows about
44
+ def self.acceptable_attribute_map
45
+ attribute_map
46
+ end
47
+
48
+ # Returns all the JSON keys this model knows about
49
+ def self.acceptable_attributes
50
+ acceptable_attribute_map.values
51
+ end
52
+
53
+ # Attribute type mapping.
54
+ def self.openapi_types
55
+ {
56
+ :'branches' => :'Array<AlertGroupingConditionalBranchV3>',
57
+ :'default' => :'AlertGroupingDefaultBranchV3',
58
+ :'expressions' => :'Array<ExpressionPayloadV3>',
59
+ :'kind' => :'String',
60
+ :'team_id' => :'String'
61
+ }
62
+ end
63
+
64
+ # List of attributes with nullable: true
65
+ def self.openapi_nullable
66
+ Set.new([
67
+ ])
68
+ end
69
+
70
+ # Initializes the object
71
+ # @param [Hash] attributes Model attributes in the form of hash
72
+ def initialize(attributes = {})
73
+ if (!attributes.is_a?(Hash))
74
+ fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::AlertGroupingPreferencesCreatePayloadV3` initialize method"
75
+ end
76
+
77
+ # check to see if the attribute exists and convert string to symbol for hash key
78
+ acceptable_attribute_map = self.class.acceptable_attribute_map
79
+ attributes = attributes.each_with_object({}) { |(k, v), h|
80
+ if (!acceptable_attribute_map.key?(k.to_sym))
81
+ fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::AlertGroupingPreferencesCreatePayloadV3`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
82
+ end
83
+ h[k.to_sym] = v
84
+ }
85
+
86
+ if attributes.key?(:'branches')
87
+ if (value = attributes[:'branches']).is_a?(Array)
88
+ self.branches = value
89
+ end
90
+ end
91
+
92
+ if attributes.key?(:'default')
93
+ self.default = attributes[:'default']
94
+ else
95
+ self.default = nil
96
+ end
97
+
98
+ if attributes.key?(:'expressions')
99
+ if (value = attributes[:'expressions']).is_a?(Array)
100
+ self.expressions = value
101
+ end
102
+ end
103
+
104
+ if attributes.key?(:'kind')
105
+ self.kind = attributes[:'kind']
106
+ else
107
+ self.kind = nil
108
+ end
109
+
110
+ if attributes.key?(:'team_id')
111
+ self.team_id = attributes[:'team_id']
112
+ end
113
+ end
114
+
115
+ # Show invalid properties with the reasons. Usually used together with valid?
116
+ # @return Array for valid properties with the reasons
117
+ def list_invalid_properties
118
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
119
+ invalid_properties = Array.new
120
+ if @default.nil?
121
+ invalid_properties.push('invalid value for "default", default cannot be nil.')
122
+ end
123
+
124
+ if @kind.nil?
125
+ invalid_properties.push('invalid value for "kind", kind cannot be nil.')
126
+ end
127
+
128
+ invalid_properties
129
+ end
130
+
131
+ # Check to see if the all the properties in the model are valid
132
+ # @return true if the model is valid
133
+ def valid?
134
+ warn '[DEPRECATED] the `valid?` method is obsolete'
135
+ return false if @default.nil?
136
+ return false if @kind.nil?
137
+ true
138
+ end
139
+
140
+ # Custom attribute writer method with validation
141
+ # @param [Object] default Value to be assigned
142
+ def default=(default)
143
+ if default.nil?
144
+ fail ArgumentError, 'default cannot be nil'
145
+ end
146
+
147
+ @default = default
148
+ end
149
+
150
+ # Custom attribute writer method with validation
151
+ # @param [Object] kind Value to be assigned
152
+ def kind=(kind)
153
+ if kind.nil?
154
+ fail ArgumentError, 'kind cannot be nil'
155
+ end
156
+
157
+ @kind = kind
158
+ end
159
+
160
+ # Checks equality by comparing each attribute.
161
+ # @param [Object] Object to be compared
162
+ def ==(o)
163
+ return true if self.equal?(o)
164
+ self.class == o.class &&
165
+ branches == o.branches &&
166
+ default == o.default &&
167
+ expressions == o.expressions &&
168
+ kind == o.kind &&
169
+ team_id == o.team_id
170
+ end
171
+
172
+ # @see the `==` method
173
+ # @param [Object] Object to be compared
174
+ def eql?(o)
175
+ self == o
176
+ end
177
+
178
+ # Calculates hash code according to all attributes.
179
+ # @return [Integer] Hash code
180
+ def hash
181
+ [branches, default, expressions, kind, team_id].hash
182
+ end
183
+
184
+ # Builds the object from hash
185
+ # @param [Hash] attributes Model attributes in the form of hash
186
+ # @return [Object] Returns the model itself
187
+ def self.build_from_hash(attributes)
188
+ return nil unless attributes.is_a?(Hash)
189
+ attributes = attributes.transform_keys(&:to_sym)
190
+ transformed_hash = {}
191
+ openapi_types.each_pair do |key, type|
192
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
193
+ transformed_hash["#{key}"] = nil
194
+ elsif type =~ /\AArray<(.*)>/i
195
+ # check to ensure the input is an array given that the attribute
196
+ # is documented as an array but the input is not
197
+ if attributes[attribute_map[key]].is_a?(Array)
198
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
199
+ end
200
+ elsif !attributes[attribute_map[key]].nil?
201
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
202
+ end
203
+ end
204
+ new(transformed_hash)
205
+ end
206
+
207
+ # Returns the object in the form of hash
208
+ # @return [Hash] Returns the object in the form of hash
209
+ def to_hash
210
+ hash = {}
211
+ self.class.attribute_map.each_pair do |attr, param|
212
+ value = self.send(attr)
213
+ if value.nil?
214
+ is_nullable = self.class.openapi_nullable.include?(attr)
215
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
216
+ end
217
+
218
+ hash[param] = _to_hash(value)
219
+ end
220
+ hash
221
+ end
222
+
223
+ end
224
+
225
+ 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 AlertGroupingPreferencesCreateResultV3 < ApiModelBase
18
+ attr_accessor :alert_grouping_preference
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'alert_grouping_preference' => :'alert_grouping_preference'
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
+ :'alert_grouping_preference' => :'AlertGroupingPreferenceV3'
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::AlertGroupingPreferencesCreateResultV3` 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::AlertGroupingPreferencesCreateResultV3`. 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?(:'alert_grouping_preference')
67
+ self.alert_grouping_preference = attributes[:'alert_grouping_preference']
68
+ else
69
+ self.alert_grouping_preference = 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 @alert_grouping_preference.nil?
79
+ invalid_properties.push('invalid value for "alert_grouping_preference", alert_grouping_preference 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 @alert_grouping_preference.nil?
90
+ true
91
+ end
92
+
93
+ # Custom attribute writer method with validation
94
+ # @param [Object] alert_grouping_preference Value to be assigned
95
+ def alert_grouping_preference=(alert_grouping_preference)
96
+ if alert_grouping_preference.nil?
97
+ fail ArgumentError, 'alert_grouping_preference cannot be nil'
98
+ end
99
+
100
+ @alert_grouping_preference = alert_grouping_preference
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
+ alert_grouping_preference == o.alert_grouping_preference
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
+ [alert_grouping_preference].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
@@ -0,0 +1,192 @@
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 AlertGroupingPreferencesListResultV3 < ApiModelBase
18
+ attr_accessor :alert_grouping_preferences
19
+
20
+ attr_accessor :pagination_meta
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'alert_grouping_preferences' => :'alert_grouping_preferences',
26
+ :'pagination_meta' => :'pagination_meta'
27
+ }
28
+ end
29
+
30
+ # Returns attribute mapping this model knows about
31
+ def self.acceptable_attribute_map
32
+ attribute_map
33
+ end
34
+
35
+ # Returns all the JSON keys this model knows about
36
+ def self.acceptable_attributes
37
+ acceptable_attribute_map.values
38
+ end
39
+
40
+ # Attribute type mapping.
41
+ def self.openapi_types
42
+ {
43
+ :'alert_grouping_preferences' => :'Array<AlertGroupingPreferenceV3>',
44
+ :'pagination_meta' => :'PaginationMetaResultV3'
45
+ }
46
+ end
47
+
48
+ # List of attributes with nullable: true
49
+ def self.openapi_nullable
50
+ Set.new([
51
+ ])
52
+ end
53
+
54
+ # Initializes the object
55
+ # @param [Hash] attributes Model attributes in the form of hash
56
+ def initialize(attributes = {})
57
+ if (!attributes.is_a?(Hash))
58
+ fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::AlertGroupingPreferencesListResultV3` initialize method"
59
+ end
60
+
61
+ # check to see if the attribute exists and convert string to symbol for hash key
62
+ acceptable_attribute_map = self.class.acceptable_attribute_map
63
+ attributes = attributes.each_with_object({}) { |(k, v), h|
64
+ if (!acceptable_attribute_map.key?(k.to_sym))
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::AlertGroupingPreferencesListResultV3`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
66
+ end
67
+ h[k.to_sym] = v
68
+ }
69
+
70
+ if attributes.key?(:'alert_grouping_preferences')
71
+ if (value = attributes[:'alert_grouping_preferences']).is_a?(Array)
72
+ self.alert_grouping_preferences = value
73
+ end
74
+ else
75
+ self.alert_grouping_preferences = nil
76
+ end
77
+
78
+ if attributes.key?(:'pagination_meta')
79
+ self.pagination_meta = attributes[:'pagination_meta']
80
+ else
81
+ self.pagination_meta = nil
82
+ end
83
+ end
84
+
85
+ # Show invalid properties with the reasons. Usually used together with valid?
86
+ # @return Array for valid properties with the reasons
87
+ def list_invalid_properties
88
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
89
+ invalid_properties = Array.new
90
+ if @alert_grouping_preferences.nil?
91
+ invalid_properties.push('invalid value for "alert_grouping_preferences", alert_grouping_preferences cannot be nil.')
92
+ end
93
+
94
+ if @pagination_meta.nil?
95
+ invalid_properties.push('invalid value for "pagination_meta", pagination_meta cannot be nil.')
96
+ end
97
+
98
+ invalid_properties
99
+ end
100
+
101
+ # Check to see if the all the properties in the model are valid
102
+ # @return true if the model is valid
103
+ def valid?
104
+ warn '[DEPRECATED] the `valid?` method is obsolete'
105
+ return false if @alert_grouping_preferences.nil?
106
+ return false if @pagination_meta.nil?
107
+ true
108
+ end
109
+
110
+ # Custom attribute writer method with validation
111
+ # @param [Object] alert_grouping_preferences Value to be assigned
112
+ def alert_grouping_preferences=(alert_grouping_preferences)
113
+ if alert_grouping_preferences.nil?
114
+ fail ArgumentError, 'alert_grouping_preferences cannot be nil'
115
+ end
116
+
117
+ @alert_grouping_preferences = alert_grouping_preferences
118
+ end
119
+
120
+ # Custom attribute writer method with validation
121
+ # @param [Object] pagination_meta Value to be assigned
122
+ def pagination_meta=(pagination_meta)
123
+ if pagination_meta.nil?
124
+ fail ArgumentError, 'pagination_meta cannot be nil'
125
+ end
126
+
127
+ @pagination_meta = pagination_meta
128
+ end
129
+
130
+ # Checks equality by comparing each attribute.
131
+ # @param [Object] Object to be compared
132
+ def ==(o)
133
+ return true if self.equal?(o)
134
+ self.class == o.class &&
135
+ alert_grouping_preferences == o.alert_grouping_preferences &&
136
+ pagination_meta == o.pagination_meta
137
+ end
138
+
139
+ # @see the `==` method
140
+ # @param [Object] Object to be compared
141
+ def eql?(o)
142
+ self == o
143
+ end
144
+
145
+ # Calculates hash code according to all attributes.
146
+ # @return [Integer] Hash code
147
+ def hash
148
+ [alert_grouping_preferences, pagination_meta].hash
149
+ end
150
+
151
+ # Builds the object from hash
152
+ # @param [Hash] attributes Model attributes in the form of hash
153
+ # @return [Object] Returns the model itself
154
+ def self.build_from_hash(attributes)
155
+ return nil unless attributes.is_a?(Hash)
156
+ attributes = attributes.transform_keys(&:to_sym)
157
+ transformed_hash = {}
158
+ openapi_types.each_pair do |key, type|
159
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
160
+ transformed_hash["#{key}"] = nil
161
+ elsif type =~ /\AArray<(.*)>/i
162
+ # check to ensure the input is an array given that the attribute
163
+ # is documented as an array but the input is not
164
+ if attributes[attribute_map[key]].is_a?(Array)
165
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
166
+ end
167
+ elsif !attributes[attribute_map[key]].nil?
168
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
169
+ end
170
+ end
171
+ new(transformed_hash)
172
+ end
173
+
174
+ # Returns the object in the form of hash
175
+ # @return [Hash] Returns the object in the form of hash
176
+ def to_hash
177
+ hash = {}
178
+ self.class.attribute_map.each_pair do |attr, param|
179
+ value = self.send(attr)
180
+ if value.nil?
181
+ is_nullable = self.class.openapi_nullable.include?(attr)
182
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
183
+ end
184
+
185
+ hash[param] = _to_hash(value)
186
+ end
187
+ hash
188
+ end
189
+
190
+ end
191
+
192
+ end