incident_io_api 3.0.0 → 4.0.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: 84200041c95ab1f0604141270a488f07875cc413b08c997ba2a25411764a4f3e
4
- data.tar.gz: 061f296b7e3ebcee33f23dd1d8c07eaf24ef9edb10804e67b3715a0104116cda
3
+ metadata.gz: 21f59c9fefd9cf26baa7eda449da3cccc634d8b183391d41b0138883b1e10c78
4
+ data.tar.gz: c9b21d19226cfa1c5cbd71ae3c8712032e1ea9a224ecb431c08317c304abc696
5
5
  SHA512:
6
- metadata.gz: 441b48a7dc20fe3d7f3bf48fd7d4755792fc10abfad858e83e614852fc61395fe73d450b769f61d29b17f6f2f14fa5712f6d1aae08abf154f29f95ab03ab8b95
7
- data.tar.gz: a300445a54dd2d968e96de06a43ab961237d5d32808a7644294b13f2ed8f7b5bf3b78a295e27e490820ad4e8b15865811da5ed3323d1c17e9eeda92dbecd8931
6
+ metadata.gz: 0d3ab6100efd5b89c48dcb9db48c0f54628fdc7421834160796efb98e7ce14b9cadae5d728b01c55a3514ac1d29e203acb278266bf16ad9b1fb45629a0863811
7
+ data.tar.gz: cbeb61f1308067f164a9dcc5f61a7eaaca6fb74cd8da0649b26355f81cd9eb5c95b5db1d4c6954cf4c28d291f58bc250d104c9476da945f6c336f847cfaba561
@@ -14,26 +14,31 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module IncidentIo
17
- class RBACRoleV2 < ApiModelBase
18
- # Description of the purpose for the RBAC role
17
+ # An access group is a named group of users. Access grants give a group its privileges, and every member of the group gets them. Every organisation has base groups (Owner, Admin and Standard), which can be listed and granted privileges but not changed or deleted. Membership is managed in the dashboard or through SCIM, not through this API.
18
+ class AccessGroupV2 < ApiModelBase
19
+ # Optional description of who belongs in this group
19
20
  attr_accessor :description
20
21
 
21
- # Unique identifier of the RBAC role
22
+ # Unique identifier for this access group
22
23
  attr_accessor :id
23
24
 
24
- # Name of the RBAC role
25
+ # Human-readable name, unique within the organisation
25
26
  attr_accessor :name
26
27
 
27
- # Unique human-readable slug for the RBAC role
28
+ # Stable identifier, unique within the organisation. Base groups use owner, admin and standard. Generated from the name when omitted on create, and cannot be changed later.
28
29
  attr_accessor :slug
29
30
 
31
+ # base for the groups every organisation has, which cannot be changed or deleted, or custom for groups you create Known values: `base`, `custom`
32
+ attr_accessor :type
33
+
30
34
  # Attribute mapping from ruby-style variable name to JSON key.
31
35
  def self.attribute_map
32
36
  {
33
37
  :'description' => :'description',
34
38
  :'id' => :'id',
35
39
  :'name' => :'name',
36
- :'slug' => :'slug'
40
+ :'slug' => :'slug',
41
+ :'type' => :'type'
37
42
  }
38
43
  end
39
44
 
@@ -53,7 +58,8 @@ module IncidentIo
53
58
  :'description' => :'String',
54
59
  :'id' => :'String',
55
60
  :'name' => :'String',
56
- :'slug' => :'String'
61
+ :'slug' => :'String',
62
+ :'type' => :'String'
57
63
  }
58
64
  end
59
65
 
@@ -67,14 +73,14 @@ module IncidentIo
67
73
  # @param [Hash] attributes Model attributes in the form of hash
68
74
  def initialize(attributes = {})
69
75
  if (!attributes.is_a?(Hash))
70
- fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::RBACRoleV2` initialize method"
76
+ fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::AccessGroupV2` initialize method"
71
77
  end
72
78
 
73
79
  # check to see if the attribute exists and convert string to symbol for hash key
74
80
  acceptable_attribute_map = self.class.acceptable_attribute_map
75
81
  attributes = attributes.each_with_object({}) { |(k, v), h|
76
82
  if (!acceptable_attribute_map.key?(k.to_sym))
77
- fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::RBACRoleV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
83
+ fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::AccessGroupV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
78
84
  end
79
85
  h[k.to_sym] = v
80
86
  }
@@ -100,6 +106,12 @@ module IncidentIo
100
106
  else
101
107
  self.slug = nil
102
108
  end
109
+
110
+ if attributes.key?(:'type')
111
+ self.type = attributes[:'type']
112
+ else
113
+ self.type = nil
114
+ end
103
115
  end
104
116
 
105
117
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -119,6 +131,10 @@ module IncidentIo
119
131
  invalid_properties.push('invalid value for "slug", slug cannot be nil.')
120
132
  end
121
133
 
134
+ if @type.nil?
135
+ invalid_properties.push('invalid value for "type", type cannot be nil.')
136
+ end
137
+
122
138
  invalid_properties
123
139
  end
124
140
 
@@ -129,6 +145,7 @@ module IncidentIo
129
145
  return false if @id.nil?
130
146
  return false if @name.nil?
131
147
  return false if @slug.nil?
148
+ return false if @type.nil?
132
149
  true
133
150
  end
134
151
 
@@ -162,6 +179,16 @@ module IncidentIo
162
179
  @slug = slug
163
180
  end
164
181
 
182
+ # Custom attribute writer method with validation
183
+ # @param [Object] type Value to be assigned
184
+ def type=(type)
185
+ if type.nil?
186
+ fail ArgumentError, 'type cannot be nil'
187
+ end
188
+
189
+ @type = type
190
+ end
191
+
165
192
  # Checks equality by comparing each attribute.
166
193
  # @param [Object] Object to be compared
167
194
  def ==(o)
@@ -170,7 +197,8 @@ module IncidentIo
170
197
  description == o.description &&
171
198
  id == o.id &&
172
199
  name == o.name &&
173
- slug == o.slug
200
+ slug == o.slug &&
201
+ type == o.type
174
202
  end
175
203
 
176
204
  # @see the `==` method
@@ -182,7 +210,7 @@ module IncidentIo
182
210
  # Calculates hash code according to all attributes.
183
211
  # @return [Integer] Hash code
184
212
  def hash
185
- [description, id, name, slug].hash
213
+ [description, id, name, slug, type].hash
186
214
  end
187
215
 
188
216
  # Builds the object from hash
@@ -17,6 +17,7 @@ module IncidentIo
17
17
  class UserWithRolesV2 < ApiModelBase
18
18
  attr_accessor :base_role
19
19
 
20
+ # The custom access groups the user is in
20
21
  attr_accessor :custom_roles
21
22
 
22
23
  # Email address of the user.
@@ -67,8 +68,8 @@ module IncidentIo
67
68
  # Attribute type mapping.
68
69
  def self.openapi_types
69
70
  {
70
- :'base_role' => :'RBACRoleV2',
71
- :'custom_roles' => :'Array<RBACRoleV2>',
71
+ :'base_role' => :'AccessGroupV2',
72
+ :'custom_roles' => :'Array<AccessGroupV2>',
72
73
  :'email' => :'String',
73
74
  :'id' => :'String',
74
75
  :'is_active' => :'Boolean',
@@ -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 = "3.0.0"
7
+ VERSION = "4.0.0"
8
8
  end
data/lib/incident_io.rb CHANGED
@@ -34,6 +34,7 @@ IncidentIo.autoload :APIKeysRotateResultV1, 'incident_io/models/api_keys_rotate_
34
34
  IncidentIo.autoload :APIKeysShowResultV1, 'incident_io/models/api_keys_show_result_v1'
35
35
  IncidentIo.autoload :APIKeysUpdatePayloadV1, 'incident_io/models/api_keys_update_payload_v1'
36
36
  IncidentIo.autoload :APIKeysUpdateResultV1, 'incident_io/models/api_keys_update_result_v1'
37
+ IncidentIo.autoload :AccessGroupV2, 'incident_io/models/access_group_v2'
37
38
  IncidentIo.autoload :ActionV1, 'incident_io/models/action_v1'
38
39
  IncidentIo.autoload :ActionV2, 'incident_io/models/action_v2'
39
40
  IncidentIo.autoload :ActionV3, 'incident_io/models/action_v3'
@@ -1297,7 +1298,6 @@ IncidentIo.autoload :PostmortemDocumentsShowContentResultV1, 'incident_io/models
1297
1298
  IncidentIo.autoload :PostmortemDocumentsShowResultV1, 'incident_io/models/postmortem_documents_show_result_v1'
1298
1299
  IncidentIo.autoload :PostmortemDocumentsUpdateStatusPayloadV1, 'incident_io/models/postmortem_documents_update_status_payload_v1'
1299
1300
  IncidentIo.autoload :PostmortemDocumentsUpdateStatusResultV1, 'incident_io/models/postmortem_documents_update_status_result_v1'
1300
- IncidentIo.autoload :RBACRoleV2, 'incident_io/models/rbac_role_v2'
1301
1301
  IncidentIo.autoload :RetrospectiveIncidentOptionsV2, 'incident_io/models/retrospective_incident_options_v2'
1302
1302
  IncidentIo.autoload :ReturnsMetaV2, 'incident_io/models/returns_meta_v2'
1303
1303
  IncidentIo.autoload :ReturnsMetaV3, 'incident_io/models/returns_meta_v3'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: incident_io_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - incident.io
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-24 00:00:00.000000000 Z
11
+ date: 2026-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -150,6 +150,7 @@ files:
150
150
  - lib/incident_io/configuration.rb
151
151
  - lib/incident_io/deprecation.rb
152
152
  - lib/incident_io/errors.rb
153
+ - lib/incident_io/models/access_group_v2.rb
153
154
  - lib/incident_io/models/action_v1.rb
154
155
  - lib/incident_io/models/action_v2.rb
155
156
  - lib/incident_io/models/action_v3.rb
@@ -1426,7 +1427,6 @@ files:
1426
1427
  - lib/incident_io/models/postmortem_documents_show_result_v1.rb
1427
1428
  - lib/incident_io/models/postmortem_documents_update_status_payload_v1.rb
1428
1429
  - lib/incident_io/models/postmortem_documents_update_status_result_v1.rb
1429
- - lib/incident_io/models/rbac_role_v2.rb
1430
1430
  - lib/incident_io/models/retrospective_incident_options_v2.rb
1431
1431
  - lib/incident_io/models/returns_meta_v2.rb
1432
1432
  - lib/incident_io/models/returns_meta_v3.rb