incident_io_api 2.62.0 → 2.64.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ee2eb30f327949881c01a6f7cb1a3eec0b1a6d783d3f15c54bb94fe31cf19ef
4
- data.tar.gz: 67084360c0e1009e97e227aad959589e390efe15808c9c78439f35d98107dfdc
3
+ metadata.gz: 9eaee1a289acadc33d0c4a38a525d265290158c34247c3604f541afdd55a7c7b
4
+ data.tar.gz: 54a822f334c4f1d1853ddd91ebb8459081f77f605a5f40d5feb9aff93dcff1fa
5
5
  SHA512:
6
- metadata.gz: 5006010bcdac0e1affe8148ca838901dae602ba3c48180c95f172942b5a6ff5c02d7c8af5762260369e12bfc05da1c5b85aec24adf31bd08873e8241de4d267a
7
- data.tar.gz: 0a67d192df67ffd79ab7a786e0eecdc61422b4088d581264d09d1f919e5a3ac93c2466013c0e2c918d586d433334df6a761d42642d16a1752cdec44a2f378c99
6
+ metadata.gz: 2d764e4139f4087ed061f2733916abb98e2565cbe60df7b16bf2c66e1376b4ab2095b9b0588b08c7df9b36b31ff6eaa317f9df3495c467c9b481104ee14fce16
7
+ data.tar.gz: dacacd3b3ee2d1495c3ac00cf5464445f220eae37e46e965103502630f0a9a639a9a68eac375b2cd584c232db5cd234637a2cd63fed844d0308c7323988e3e4a
@@ -0,0 +1,212 @@
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 AuditLogMobileKeyArchivedMetadataV2 < ApiModelBase
18
+ # The name of the device, absent when the app did not send one
19
+ attr_accessor :device_name
20
+
21
+ # The model of the device, absent when the app did not send one
22
+ attr_accessor :model_name
23
+
24
+ # The device platform, such as ios or android
25
+ attr_accessor :platform
26
+
27
+ # Why the sign-in ended, such as logged_out, user_deleted, user_has_been_deactivated, sessions_revoked, device_unregistered or duplicate_token
28
+ attr_accessor :reason
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+ :'device_name' => :'device_name',
34
+ :'model_name' => :'model_name',
35
+ :'platform' => :'platform',
36
+ :'reason' => :'reason'
37
+ }
38
+ end
39
+
40
+ # Returns attribute mapping this model knows about
41
+ def self.acceptable_attribute_map
42
+ attribute_map
43
+ end
44
+
45
+ # Returns all the JSON keys this model knows about
46
+ def self.acceptable_attributes
47
+ acceptable_attribute_map.values
48
+ end
49
+
50
+ # Attribute type mapping.
51
+ def self.openapi_types
52
+ {
53
+ :'device_name' => :'String',
54
+ :'model_name' => :'String',
55
+ :'platform' => :'String',
56
+ :'reason' => :'String'
57
+ }
58
+ end
59
+
60
+ # List of attributes with nullable: true
61
+ def self.openapi_nullable
62
+ Set.new([
63
+ ])
64
+ end
65
+
66
+ # Initializes the object
67
+ # @param [Hash] attributes Model attributes in the form of hash
68
+ def initialize(attributes = {})
69
+ if (!attributes.is_a?(Hash))
70
+ fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::AuditLogMobileKeyArchivedMetadataV2` initialize method"
71
+ end
72
+
73
+ # check to see if the attribute exists and convert string to symbol for hash key
74
+ acceptable_attribute_map = self.class.acceptable_attribute_map
75
+ attributes = attributes.each_with_object({}) { |(k, v), h|
76
+ if (!acceptable_attribute_map.key?(k.to_sym))
77
+ fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::AuditLogMobileKeyArchivedMetadataV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
78
+ end
79
+ h[k.to_sym] = v
80
+ }
81
+
82
+ if attributes.key?(:'device_name')
83
+ self.device_name = attributes[:'device_name']
84
+ end
85
+
86
+ if attributes.key?(:'model_name')
87
+ self.model_name = attributes[:'model_name']
88
+ end
89
+
90
+ if attributes.key?(:'platform')
91
+ self.platform = attributes[:'platform']
92
+ else
93
+ self.platform = nil
94
+ end
95
+
96
+ if attributes.key?(:'reason')
97
+ self.reason = attributes[:'reason']
98
+ else
99
+ self.reason = nil
100
+ end
101
+ end
102
+
103
+ # Show invalid properties with the reasons. Usually used together with valid?
104
+ # @return Array for valid properties with the reasons
105
+ def list_invalid_properties
106
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
107
+ invalid_properties = Array.new
108
+ if @platform.nil?
109
+ invalid_properties.push('invalid value for "platform", platform cannot be nil.')
110
+ end
111
+
112
+ if @reason.nil?
113
+ invalid_properties.push('invalid value for "reason", reason cannot be nil.')
114
+ end
115
+
116
+ invalid_properties
117
+ end
118
+
119
+ # Check to see if the all the properties in the model are valid
120
+ # @return true if the model is valid
121
+ def valid?
122
+ warn '[DEPRECATED] the `valid?` method is obsolete'
123
+ return false if @platform.nil?
124
+ return false if @reason.nil?
125
+ true
126
+ end
127
+
128
+ # Custom attribute writer method with validation
129
+ # @param [Object] platform Value to be assigned
130
+ def platform=(platform)
131
+ if platform.nil?
132
+ fail ArgumentError, 'platform cannot be nil'
133
+ end
134
+
135
+ @platform = platform
136
+ end
137
+
138
+ # Custom attribute writer method with validation
139
+ # @param [Object] reason Value to be assigned
140
+ def reason=(reason)
141
+ if reason.nil?
142
+ fail ArgumentError, 'reason cannot be nil'
143
+ end
144
+
145
+ @reason = reason
146
+ end
147
+
148
+ # Checks equality by comparing each attribute.
149
+ # @param [Object] Object to be compared
150
+ def ==(o)
151
+ return true if self.equal?(o)
152
+ self.class == o.class &&
153
+ device_name == o.device_name &&
154
+ model_name == o.model_name &&
155
+ platform == o.platform &&
156
+ reason == o.reason
157
+ end
158
+
159
+ # @see the `==` method
160
+ # @param [Object] Object to be compared
161
+ def eql?(o)
162
+ self == o
163
+ end
164
+
165
+ # Calculates hash code according to all attributes.
166
+ # @return [Integer] Hash code
167
+ def hash
168
+ [device_name, model_name, platform, reason].hash
169
+ end
170
+
171
+ # Builds the object from hash
172
+ # @param [Hash] attributes Model attributes in the form of hash
173
+ # @return [Object] Returns the model itself
174
+ def self.build_from_hash(attributes)
175
+ return nil unless attributes.is_a?(Hash)
176
+ attributes = attributes.transform_keys(&:to_sym)
177
+ transformed_hash = {}
178
+ openapi_types.each_pair do |key, type|
179
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
180
+ transformed_hash["#{key}"] = nil
181
+ elsif type =~ /\AArray<(.*)>/i
182
+ # check to ensure the input is an array given that the attribute
183
+ # is documented as an array but the input is not
184
+ if attributes[attribute_map[key]].is_a?(Array)
185
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
186
+ end
187
+ elsif !attributes[attribute_map[key]].nil?
188
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
189
+ end
190
+ end
191
+ new(transformed_hash)
192
+ end
193
+
194
+ # Returns the object in the form of hash
195
+ # @return [Hash] Returns the object in the form of hash
196
+ def to_hash
197
+ hash = {}
198
+ self.class.attribute_map.each_pair do |attr, param|
199
+ value = self.send(attr)
200
+ if value.nil?
201
+ is_nullable = self.class.openapi_nullable.include?(attr)
202
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
203
+ end
204
+
205
+ hash[param] = _to_hash(value)
206
+ end
207
+ hash
208
+ end
209
+
210
+ end
211
+
212
+ end
@@ -0,0 +1,212 @@
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 AuditLogMobileKeyCreatedMetadataV2 < ApiModelBase
18
+ # The name of the device, absent when the app did not send one
19
+ attr_accessor :device_name
20
+
21
+ # The model of the device, absent when the app did not send one
22
+ attr_accessor :model_name
23
+
24
+ # The device platform, such as ios or android
25
+ attr_accessor :platform
26
+
27
+ # How the user signed in: saml, qr_code, email_otp, or sso for a sign-in redirect without SAML
28
+ attr_accessor :sign_in_method
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+ :'device_name' => :'device_name',
34
+ :'model_name' => :'model_name',
35
+ :'platform' => :'platform',
36
+ :'sign_in_method' => :'sign_in_method'
37
+ }
38
+ end
39
+
40
+ # Returns attribute mapping this model knows about
41
+ def self.acceptable_attribute_map
42
+ attribute_map
43
+ end
44
+
45
+ # Returns all the JSON keys this model knows about
46
+ def self.acceptable_attributes
47
+ acceptable_attribute_map.values
48
+ end
49
+
50
+ # Attribute type mapping.
51
+ def self.openapi_types
52
+ {
53
+ :'device_name' => :'String',
54
+ :'model_name' => :'String',
55
+ :'platform' => :'String',
56
+ :'sign_in_method' => :'String'
57
+ }
58
+ end
59
+
60
+ # List of attributes with nullable: true
61
+ def self.openapi_nullable
62
+ Set.new([
63
+ ])
64
+ end
65
+
66
+ # Initializes the object
67
+ # @param [Hash] attributes Model attributes in the form of hash
68
+ def initialize(attributes = {})
69
+ if (!attributes.is_a?(Hash))
70
+ fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::AuditLogMobileKeyCreatedMetadataV2` initialize method"
71
+ end
72
+
73
+ # check to see if the attribute exists and convert string to symbol for hash key
74
+ acceptable_attribute_map = self.class.acceptable_attribute_map
75
+ attributes = attributes.each_with_object({}) { |(k, v), h|
76
+ if (!acceptable_attribute_map.key?(k.to_sym))
77
+ fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::AuditLogMobileKeyCreatedMetadataV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
78
+ end
79
+ h[k.to_sym] = v
80
+ }
81
+
82
+ if attributes.key?(:'device_name')
83
+ self.device_name = attributes[:'device_name']
84
+ end
85
+
86
+ if attributes.key?(:'model_name')
87
+ self.model_name = attributes[:'model_name']
88
+ end
89
+
90
+ if attributes.key?(:'platform')
91
+ self.platform = attributes[:'platform']
92
+ else
93
+ self.platform = nil
94
+ end
95
+
96
+ if attributes.key?(:'sign_in_method')
97
+ self.sign_in_method = attributes[:'sign_in_method']
98
+ else
99
+ self.sign_in_method = nil
100
+ end
101
+ end
102
+
103
+ # Show invalid properties with the reasons. Usually used together with valid?
104
+ # @return Array for valid properties with the reasons
105
+ def list_invalid_properties
106
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
107
+ invalid_properties = Array.new
108
+ if @platform.nil?
109
+ invalid_properties.push('invalid value for "platform", platform cannot be nil.')
110
+ end
111
+
112
+ if @sign_in_method.nil?
113
+ invalid_properties.push('invalid value for "sign_in_method", sign_in_method cannot be nil.')
114
+ end
115
+
116
+ invalid_properties
117
+ end
118
+
119
+ # Check to see if the all the properties in the model are valid
120
+ # @return true if the model is valid
121
+ def valid?
122
+ warn '[DEPRECATED] the `valid?` method is obsolete'
123
+ return false if @platform.nil?
124
+ return false if @sign_in_method.nil?
125
+ true
126
+ end
127
+
128
+ # Custom attribute writer method with validation
129
+ # @param [Object] platform Value to be assigned
130
+ def platform=(platform)
131
+ if platform.nil?
132
+ fail ArgumentError, 'platform cannot be nil'
133
+ end
134
+
135
+ @platform = platform
136
+ end
137
+
138
+ # Custom attribute writer method with validation
139
+ # @param [Object] sign_in_method Value to be assigned
140
+ def sign_in_method=(sign_in_method)
141
+ if sign_in_method.nil?
142
+ fail ArgumentError, 'sign_in_method cannot be nil'
143
+ end
144
+
145
+ @sign_in_method = sign_in_method
146
+ end
147
+
148
+ # Checks equality by comparing each attribute.
149
+ # @param [Object] Object to be compared
150
+ def ==(o)
151
+ return true if self.equal?(o)
152
+ self.class == o.class &&
153
+ device_name == o.device_name &&
154
+ model_name == o.model_name &&
155
+ platform == o.platform &&
156
+ sign_in_method == o.sign_in_method
157
+ end
158
+
159
+ # @see the `==` method
160
+ # @param [Object] Object to be compared
161
+ def eql?(o)
162
+ self == o
163
+ end
164
+
165
+ # Calculates hash code according to all attributes.
166
+ # @return [Integer] Hash code
167
+ def hash
168
+ [device_name, model_name, platform, sign_in_method].hash
169
+ end
170
+
171
+ # Builds the object from hash
172
+ # @param [Hash] attributes Model attributes in the form of hash
173
+ # @return [Object] Returns the model itself
174
+ def self.build_from_hash(attributes)
175
+ return nil unless attributes.is_a?(Hash)
176
+ attributes = attributes.transform_keys(&:to_sym)
177
+ transformed_hash = {}
178
+ openapi_types.each_pair do |key, type|
179
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
180
+ transformed_hash["#{key}"] = nil
181
+ elsif type =~ /\AArray<(.*)>/i
182
+ # check to ensure the input is an array given that the attribute
183
+ # is documented as an array but the input is not
184
+ if attributes[attribute_map[key]].is_a?(Array)
185
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
186
+ end
187
+ elsif !attributes[attribute_map[key]].nil?
188
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
189
+ end
190
+ end
191
+ new(transformed_hash)
192
+ end
193
+
194
+ # Returns the object in the form of hash
195
+ # @return [Hash] Returns the object in the form of hash
196
+ def to_hash
197
+ hash = {}
198
+ self.class.attribute_map.each_pair do |attr, param|
199
+ value = self.send(attr)
200
+ if value.nil?
201
+ is_nullable = self.class.openapi_nullable.include?(attr)
202
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
203
+ end
204
+
205
+ hash[param] = _to_hash(value)
206
+ end
207
+ hash
208
+ end
209
+
210
+ end
211
+
212
+ end
@@ -21,7 +21,7 @@ module IncidentIo
21
21
  # The name of the target
22
22
  attr_accessor :name
23
23
 
24
- # The type of target Known values: `api_key`, `alert`, `alert_chat_message_template`, `alert_route`, `alert_schema`, `alert_source`, `alert_priority`, `escalation_urgency`, `announcement_rule`, `announcement_post_template`, `catalog_type`, `catalog_entry`, `catalog_attribute`, `connector_config`, `custom_field`, `debrief_invite_rule`, `escalation`, `escalation_path`, `escalation_path_template`, `extension_connector`, `extension_connector_tool`, `extension_plugin`, `glossary_entry`, `investigation_trigger`, `investigation_config`, `code_repository`, `reliability_review_settings`, `reliability_review_rule`, `follow_up_category`, `follow_up_priority`, `holiday_user_feed`, `hris_time_off_policy`, `incident`, `incident_call_transcription_session`, `incident_call_setting`, `incident_duration_metric`, `incident_template`, `incident_summary_config`, `incident_update_config`, `maintenance_window`, `incident_role`, `incident_status`, `incident_timestamp`, `incident_timestamp_set_by_rule`, `incident_type`, `integration`, `internal_status_page`, `ip_allowlist`, `nudge`, `on_call_notification_method`, `on_call_notification_pause`, `organisation`, `organisation_settings`, `schedule_override`, `schedule_sync_rule`, `schedule_sync_target`, `policy`, `policy_report_schedule`, `post_incident_task`, `postmortem_template`, `postmortem_template_section`, `private_incident_membership`, `rbac_role`, `scim_group`, `schedule`, `team_role`, `secret`, `severity`, `status_page`, `status_page_sub_page`, `status_page_template`, `team_settings`, `telemetry_data_source`, `twilio_connection`, `user`, `user_api_key`, `workflow`, `activity_log`, `timeline_item`, `on_call_upsell_request`
24
+ # The type of target Known values: `api_key`, `alert`, `alert_chat_message_template`, `alert_route`, `alert_schema`, `alert_source`, `alert_priority`, `escalation_urgency`, `announcement_rule`, `announcement_post_template`, `catalog_type`, `catalog_entry`, `catalog_attribute`, `connector_config`, `custom_field`, `debrief_invite_rule`, `escalation`, `escalation_path`, `escalation_path_template`, `extension_connector`, `extension_connector_tool`, `extension_plugin`, `glossary_entry`, `investigation_trigger`, `investigation_config`, `code_repository`, `reliability_review_settings`, `reliability_review_rule`, `follow_up_category`, `follow_up_priority`, `holiday_user_feed`, `hris_time_off_policy`, `incident`, `incident_call_transcription_session`, `incident_call_setting`, `incident_duration_metric`, `incident_template`, `incident_summary_config`, `incident_update_config`, `maintenance_window`, `mobile_key`, `incident_role`, `incident_status`, `incident_timestamp`, `incident_timestamp_set_by_rule`, `incident_type`, `integration`, `internal_status_page`, `ip_allowlist`, `nudge`, `oauth_session`, `on_call_notification_method`, `on_call_notification_pause`, `organisation`, `organisation_settings`, `schedule_override`, `schedule_sync_rule`, `schedule_sync_target`, `policy`, `policy_report_schedule`, `post_incident_task`, `postmortem_template`, `postmortem_template_section`, `private_incident_membership`, `rbac_role`, `scim_group`, `schedule`, `team_role`, `secret`, `severity`, `status_page`, `status_page_sub_page`, `status_page_template`, `team_settings`, `telemetry_data_source`, `twilio_connection`, `user`, `user_api_key`, `workflow`, `activity_log`, `timeline_item`, `on_call_upsell_request`
25
25
  attr_accessor :type
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.