incident_io_api 2.7.0 → 2.9.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 +4 -4
- data/lib/incident_io/api/incident_forms_v3_api.rb +361 -0
- data/lib/incident_io/api/status_page_components_v2_api.rb +347 -0
- data/lib/incident_io/models/incident_form_lifecycle_element_config_v3.rb +148 -0
- data/lib/incident_io/models/incident_form_lifecycle_element_payload_v3.rb +287 -0
- data/lib/incident_io/models/incident_form_lifecycle_element_v3.rb +287 -0
- data/lib/incident_io/models/incident_form_v3.rb +297 -0
- data/lib/incident_io/models/incident_forms_create_payload_v3.rb +216 -0
- data/lib/incident_io/models/incident_forms_create_result_v3.rb +164 -0
- data/lib/incident_io/models/incident_forms_list_result_v3.rb +192 -0
- data/lib/incident_io/models/incident_forms_show_result_v3.rb +164 -0
- data/lib/incident_io/models/incident_forms_update_payload_v3.rb +216 -0
- data/lib/incident_io/models/incident_forms_update_result_v3.rb +164 -0
- data/lib/incident_io/models/status_page_component_v2.rb +229 -0
- data/lib/incident_io/models/status_page_components_create_payload_v2.rb +175 -0
- data/lib/incident_io/models/status_page_components_create_result_v2.rb +164 -0
- data/lib/incident_io/models/status_page_components_list_result_v2.rb +166 -0
- data/lib/incident_io/models/status_page_components_show_result_v2.rb +164 -0
- data/lib/incident_io/models/status_page_components_update_payload_v2.rb +175 -0
- data/lib/incident_io/models/status_page_components_update_result_v2.rb +164 -0
- data/lib/incident_io/version.rb +1 -1
- data/lib/incident_io.rb +19 -0
- metadata +20 -1
|
@@ -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
|
data/lib/incident_io/version.rb
CHANGED
data/lib/incident_io.rb
CHANGED
|
@@ -777,6 +777,16 @@ IncidentIo.autoload :IncidentDebriefV2, 'incident_io/models/incident_debrief_v2'
|
|
|
777
777
|
IncidentIo.autoload :IncidentDurationMetricV2, 'incident_io/models/incident_duration_metric_v2'
|
|
778
778
|
IncidentIo.autoload :IncidentDurationMetricWithValueV2, 'incident_io/models/incident_duration_metric_with_value_v2'
|
|
779
779
|
IncidentIo.autoload :IncidentEditPayloadV2, 'incident_io/models/incident_edit_payload_v2'
|
|
780
|
+
IncidentIo.autoload :IncidentFormLifecycleElementConfigV3, 'incident_io/models/incident_form_lifecycle_element_config_v3'
|
|
781
|
+
IncidentIo.autoload :IncidentFormLifecycleElementPayloadV3, 'incident_io/models/incident_form_lifecycle_element_payload_v3'
|
|
782
|
+
IncidentIo.autoload :IncidentFormLifecycleElementV3, 'incident_io/models/incident_form_lifecycle_element_v3'
|
|
783
|
+
IncidentIo.autoload :IncidentFormV3, 'incident_io/models/incident_form_v3'
|
|
784
|
+
IncidentIo.autoload :IncidentFormsCreatePayloadV3, 'incident_io/models/incident_forms_create_payload_v3'
|
|
785
|
+
IncidentIo.autoload :IncidentFormsCreateResultV3, 'incident_io/models/incident_forms_create_result_v3'
|
|
786
|
+
IncidentIo.autoload :IncidentFormsListResultV3, 'incident_io/models/incident_forms_list_result_v3'
|
|
787
|
+
IncidentIo.autoload :IncidentFormsShowResultV3, 'incident_io/models/incident_forms_show_result_v3'
|
|
788
|
+
IncidentIo.autoload :IncidentFormsUpdatePayloadV3, 'incident_io/models/incident_forms_update_payload_v3'
|
|
789
|
+
IncidentIo.autoload :IncidentFormsUpdateResultV3, 'incident_io/models/incident_forms_update_result_v3'
|
|
780
790
|
IncidentIo.autoload :IncidentMembershipV1, 'incident_io/models/incident_membership_v1'
|
|
781
791
|
IncidentIo.autoload :IncidentMembershipsCreatePayloadV1, 'incident_io/models/incident_memberships_create_payload_v1'
|
|
782
792
|
IncidentIo.autoload :IncidentMembershipsCreateResultV1, 'incident_io/models/incident_memberships_create_result_v1'
|
|
@@ -1069,6 +1079,13 @@ IncidentIo.autoload :SeveritiesUpdateResultV1, 'incident_io/models/severities_up
|
|
|
1069
1079
|
IncidentIo.autoload :SeverityV1, 'incident_io/models/severity_v1'
|
|
1070
1080
|
IncidentIo.autoload :SeverityV2, 'incident_io/models/severity_v2'
|
|
1071
1081
|
IncidentIo.autoload :StatusPageComponentAvailabilityV2, 'incident_io/models/status_page_component_availability_v2'
|
|
1082
|
+
IncidentIo.autoload :StatusPageComponentV2, 'incident_io/models/status_page_component_v2'
|
|
1083
|
+
IncidentIo.autoload :StatusPageComponentsCreatePayloadV2, 'incident_io/models/status_page_components_create_payload_v2'
|
|
1084
|
+
IncidentIo.autoload :StatusPageComponentsCreateResultV2, 'incident_io/models/status_page_components_create_result_v2'
|
|
1085
|
+
IncidentIo.autoload :StatusPageComponentsListResultV2, 'incident_io/models/status_page_components_list_result_v2'
|
|
1086
|
+
IncidentIo.autoload :StatusPageComponentsShowResultV2, 'incident_io/models/status_page_components_show_result_v2'
|
|
1087
|
+
IncidentIo.autoload :StatusPageComponentsUpdatePayloadV2, 'incident_io/models/status_page_components_update_payload_v2'
|
|
1088
|
+
IncidentIo.autoload :StatusPageComponentsUpdateResultV2, 'incident_io/models/status_page_components_update_result_v2'
|
|
1072
1089
|
IncidentIo.autoload :StatusPageIncidentAffectedComponentV2, 'incident_io/models/status_page_incident_affected_component_v2'
|
|
1073
1090
|
IncidentIo.autoload :StatusPageIncidentComponentImpactV2, 'incident_io/models/status_page_incident_component_impact_v2'
|
|
1074
1091
|
IncidentIo.autoload :StatusPageIncidentUpdateV2, 'incident_io/models/status_page_incident_update_v2'
|
|
@@ -1232,6 +1249,7 @@ IncidentIo.autoload :HeartbeatV2Api, 'incident_io/api/heartbeat_v2_api'
|
|
|
1232
1249
|
IncidentIo.autoload :IPAllowlistsV1Api, 'incident_io/api/ip_allowlists_v1_api'
|
|
1233
1250
|
IncidentIo.autoload :IncidentActivityLogEntriesV2Api, 'incident_io/api/incident_activity_log_entries_v2_api'
|
|
1234
1251
|
IncidentIo.autoload :IncidentAttachmentsV1Api, 'incident_io/api/incident_attachments_v1_api'
|
|
1252
|
+
IncidentIo.autoload :IncidentFormsV3Api, 'incident_io/api/incident_forms_v3_api'
|
|
1235
1253
|
IncidentIo.autoload :IncidentMembershipsV1Api, 'incident_io/api/incident_memberships_v1_api'
|
|
1236
1254
|
IncidentIo.autoload :IncidentParticipantWorkloadsV2Api, 'incident_io/api/incident_participant_workloads_v2_api'
|
|
1237
1255
|
IncidentIo.autoload :IncidentParticipantsV2Api, 'incident_io/api/incident_participants_v2_api'
|
|
@@ -1257,6 +1275,7 @@ IncidentIo.autoload :ScheduleSyncTargetsV2Api, 'incident_io/api/schedule_sync_ta
|
|
|
1257
1275
|
IncidentIo.autoload :SchedulesV2Api, 'incident_io/api/schedules_v2_api'
|
|
1258
1276
|
IncidentIo.autoload :SecretsV2Api, 'incident_io/api/secrets_v2_api'
|
|
1259
1277
|
IncidentIo.autoload :SeveritiesV1Api, 'incident_io/api/severities_v1_api'
|
|
1278
|
+
IncidentIo.autoload :StatusPageComponentsV2Api, 'incident_io/api/status_page_components_v2_api'
|
|
1260
1279
|
IncidentIo.autoload :StatusPagesV1Api, 'incident_io/api/status_pages_v1_api'
|
|
1261
1280
|
IncidentIo.autoload :StatusPagesV2Api, 'incident_io/api/status_pages_v2_api'
|
|
1262
1281
|
IncidentIo.autoload :TeamsV3Api, 'incident_io/api/teams_v3_api'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: incident_io_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- incident.io
|
|
@@ -103,6 +103,7 @@ files:
|
|
|
103
103
|
- lib/incident_io/api/heartbeat_v2_api.rb
|
|
104
104
|
- lib/incident_io/api/incident_activity_log_entries_v2_api.rb
|
|
105
105
|
- lib/incident_io/api/incident_attachments_v1_api.rb
|
|
106
|
+
- lib/incident_io/api/incident_forms_v3_api.rb
|
|
106
107
|
- lib/incident_io/api/incident_memberships_v1_api.rb
|
|
107
108
|
- lib/incident_io/api/incident_participant_workloads_v2_api.rb
|
|
108
109
|
- lib/incident_io/api/incident_participants_v2_api.rb
|
|
@@ -129,6 +130,7 @@ files:
|
|
|
129
130
|
- lib/incident_io/api/schedules_v2_api.rb
|
|
130
131
|
- lib/incident_io/api/secrets_v2_api.rb
|
|
131
132
|
- lib/incident_io/api/severities_v1_api.rb
|
|
133
|
+
- lib/incident_io/api/status_page_components_v2_api.rb
|
|
132
134
|
- lib/incident_io/api/status_pages_v1_api.rb
|
|
133
135
|
- lib/incident_io/api/status_pages_v2_api.rb
|
|
134
136
|
- lib/incident_io/api/teams_v3_api.rb
|
|
@@ -893,6 +895,16 @@ files:
|
|
|
893
895
|
- lib/incident_io/models/incident_duration_metric_v2.rb
|
|
894
896
|
- lib/incident_io/models/incident_duration_metric_with_value_v2.rb
|
|
895
897
|
- lib/incident_io/models/incident_edit_payload_v2.rb
|
|
898
|
+
- lib/incident_io/models/incident_form_lifecycle_element_config_v3.rb
|
|
899
|
+
- lib/incident_io/models/incident_form_lifecycle_element_payload_v3.rb
|
|
900
|
+
- lib/incident_io/models/incident_form_lifecycle_element_v3.rb
|
|
901
|
+
- lib/incident_io/models/incident_form_v3.rb
|
|
902
|
+
- lib/incident_io/models/incident_forms_create_payload_v3.rb
|
|
903
|
+
- lib/incident_io/models/incident_forms_create_result_v3.rb
|
|
904
|
+
- lib/incident_io/models/incident_forms_list_result_v3.rb
|
|
905
|
+
- lib/incident_io/models/incident_forms_show_result_v3.rb
|
|
906
|
+
- lib/incident_io/models/incident_forms_update_payload_v3.rb
|
|
907
|
+
- lib/incident_io/models/incident_forms_update_result_v3.rb
|
|
896
908
|
- lib/incident_io/models/incident_membership_v1.rb
|
|
897
909
|
- lib/incident_io/models/incident_memberships_create_payload_v1.rb
|
|
898
910
|
- lib/incident_io/models/incident_memberships_create_result_v1.rb
|
|
@@ -1191,6 +1203,13 @@ files:
|
|
|
1191
1203
|
- lib/incident_io/models/severity_v1.rb
|
|
1192
1204
|
- lib/incident_io/models/severity_v2.rb
|
|
1193
1205
|
- lib/incident_io/models/status_page_component_availability_v2.rb
|
|
1206
|
+
- lib/incident_io/models/status_page_component_v2.rb
|
|
1207
|
+
- lib/incident_io/models/status_page_components_create_payload_v2.rb
|
|
1208
|
+
- lib/incident_io/models/status_page_components_create_result_v2.rb
|
|
1209
|
+
- lib/incident_io/models/status_page_components_list_result_v2.rb
|
|
1210
|
+
- lib/incident_io/models/status_page_components_show_result_v2.rb
|
|
1211
|
+
- lib/incident_io/models/status_page_components_update_payload_v2.rb
|
|
1212
|
+
- lib/incident_io/models/status_page_components_update_result_v2.rb
|
|
1194
1213
|
- lib/incident_io/models/status_page_incident_affected_component_v2.rb
|
|
1195
1214
|
- lib/incident_io/models/status_page_incident_component_impact_v2.rb
|
|
1196
1215
|
- lib/incident_io/models/status_page_incident_update_v2.rb
|