incident_io_api 2.65.0 → 2.66.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: df5eff1e62f0722d08d72da7921970c6a0122ec9cff3563ac20a2863dbfdb9a8
4
- data.tar.gz: f4c5a7ef795fb712f201b9b49bbd9c565bcd06dc823b2c8797c8983fad8947a8
3
+ metadata.gz: ec5e8f5f92243f7e6a29aec6f1c32c6a0027c0970e07a0d7be966cf6cf6d6e2b
4
+ data.tar.gz: 7b982782fbd72cc7639f4c17c5baba0523a83a3c9cd1ee85f8544fcb1a76cf93
5
5
  SHA512:
6
- metadata.gz: f1b9fa2fa4a28081ef8cdd30b10353ce6813632436f280cbc0822cf2f302e00d4d8497861028ce9238679d2642eeaeaff6e0a9d1a9cdf2fa2cd9a39fd663aa53
7
- data.tar.gz: 1261484f739c2a406ce3eefee4664c592bd2a686ade8bba64a4e12ee4accf1938ef38cbdcb834c5109d009271c6f865959adb4c5cb038680b5c84857813fe276
6
+ metadata.gz: 1a410189ec05401ff1ff8337da982f54112b62389175b0d89ce7b94836841fa8bab5d148b3395f5a71aa1a63f52453cfbb81274c2f6000e76292e83c2cbc5908
7
+ data.tar.gz: b78ae75d761b07e6d6e4d73c202a1f47c6a65897510dea215dda4c6df74df35b599e62d6acd2795e00dd1443d2041877dec2fb247806589ec981e6ff1a2714ba
@@ -23,6 +23,9 @@ module IncidentIo
23
23
 
24
24
  attr_accessor :creator
25
25
 
26
+ # When this API key stops working. If it's not set, the key never expires.
27
+ attr_accessor :expires_at
28
+
26
29
  # Unique identifier for this API key
27
30
  attr_accessor :id
28
31
 
@@ -50,6 +53,7 @@ module IncidentIo
50
53
  :'comments' => :'comments',
51
54
  :'created_at' => :'created_at',
52
55
  :'creator' => :'creator',
56
+ :'expires_at' => :'expires_at',
53
57
  :'id' => :'id',
54
58
  :'last_used_at' => :'last_used_at',
55
59
  :'name' => :'name',
@@ -76,6 +80,7 @@ module IncidentIo
76
80
  :'comments' => :'String',
77
81
  :'created_at' => :'Time',
78
82
  :'creator' => :'ActorV1',
83
+ :'expires_at' => :'Time',
79
84
  :'id' => :'String',
80
85
  :'last_used_at' => :'Time',
81
86
  :'name' => :'String',
@@ -124,6 +129,10 @@ module IncidentIo
124
129
  self.creator = nil
125
130
  end
126
131
 
132
+ if attributes.key?(:'expires_at')
133
+ self.expires_at = attributes[:'expires_at']
134
+ end
135
+
127
136
  if attributes.key?(:'id')
128
137
  self.id = attributes[:'id']
129
138
  else
@@ -344,6 +353,7 @@ module IncidentIo
344
353
  comments == o.comments &&
345
354
  created_at == o.created_at &&
346
355
  creator == o.creator &&
356
+ expires_at == o.expires_at &&
347
357
  id == o.id &&
348
358
  last_used_at == o.last_used_at &&
349
359
  name == o.name &&
@@ -362,7 +372,7 @@ module IncidentIo
362
372
  # Calculates hash code according to all attributes.
363
373
  # @return [Integer] Hash code
364
374
  def hash
365
- [comments, created_at, creator, id, last_used_at, name, roles, team_ids, team_roles, token_last_issued_at].hash
375
+ [comments, created_at, creator, expires_at, id, last_used_at, name, roles, team_ids, team_roles, token_last_issued_at].hash
366
376
  end
367
377
 
368
378
  # Builds the object from hash
@@ -18,6 +18,9 @@ module IncidentIo
18
18
  # Freeform notes about the API key
19
19
  attr_accessor :comments
20
20
 
21
+ # When the API key stops working. Leave it out for a key that never expires. It must be in the future and within your organization's maximum lifetime for API keys.
22
+ attr_accessor :expires_at
23
+
21
24
  # Human-readable name for the new API key
22
25
  attr_accessor :name
23
26
 
@@ -34,6 +37,7 @@ module IncidentIo
34
37
  def self.attribute_map
35
38
  {
36
39
  :'comments' => :'comments',
40
+ :'expires_at' => :'expires_at',
37
41
  :'name' => :'name',
38
42
  :'role_names' => :'role_names',
39
43
  :'team_ids' => :'team_ids',
@@ -55,6 +59,7 @@ module IncidentIo
55
59
  def self.openapi_types
56
60
  {
57
61
  :'comments' => :'String',
62
+ :'expires_at' => :'Time',
58
63
  :'name' => :'String',
59
64
  :'role_names' => :'Array<String>',
60
65
  :'team_ids' => :'Array<String>',
@@ -88,6 +93,10 @@ module IncidentIo
88
93
  self.comments = attributes[:'comments']
89
94
  end
90
95
 
96
+ if attributes.key?(:'expires_at')
97
+ self.expires_at = attributes[:'expires_at']
98
+ end
99
+
91
100
  if attributes.key?(:'name')
92
101
  self.name = attributes[:'name']
93
102
  else
@@ -248,6 +257,7 @@ module IncidentIo
248
257
  return true if self.equal?(o)
249
258
  self.class == o.class &&
250
259
  comments == o.comments &&
260
+ expires_at == o.expires_at &&
251
261
  name == o.name &&
252
262
  role_names == o.role_names &&
253
263
  team_ids == o.team_ids &&
@@ -263,7 +273,7 @@ module IncidentIo
263
273
  # Calculates hash code according to all attributes.
264
274
  # @return [Integer] Hash code
265
275
  def hash
266
- [comments, name, role_names, team_ids, team_role_names].hash
276
+ [comments, expires_at, name, role_names, team_ids, team_role_names].hash
267
277
  end
268
278
 
269
279
  # Builds the object from hash
@@ -15,12 +15,16 @@ require 'time'
15
15
 
16
16
  module IncidentIo
17
17
  class APIKeysRotatePayloadV1 < ApiModelBase
18
+ # A new expiry for the API key. Leave it blank to keep its current expiry. It must be in the future and within your organization's maximum lifetime for API keys.
19
+ attr_accessor :expires_at
20
+
18
21
  # How many minutes to keep the old access token alive.
19
22
  attr_accessor :grace_period_minutes
20
23
 
21
24
  # Attribute mapping from ruby-style variable name to JSON key.
22
25
  def self.attribute_map
23
26
  {
27
+ :'expires_at' => :'expires_at',
24
28
  :'grace_period_minutes' => :'grace_period_minutes'
25
29
  }
26
30
  end
@@ -38,6 +42,7 @@ module IncidentIo
38
42
  # Attribute type mapping.
39
43
  def self.openapi_types
40
44
  {
45
+ :'expires_at' => :'Time',
41
46
  :'grace_period_minutes' => :'Integer'
42
47
  }
43
48
  end
@@ -64,6 +69,10 @@ module IncidentIo
64
69
  h[k.to_sym] = v
65
70
  }
66
71
 
72
+ if attributes.key?(:'expires_at')
73
+ self.expires_at = attributes[:'expires_at']
74
+ end
75
+
67
76
  if attributes.key?(:'grace_period_minutes')
68
77
  self.grace_period_minutes = attributes[:'grace_period_minutes']
69
78
  else
@@ -124,6 +133,7 @@ module IncidentIo
124
133
  def ==(o)
125
134
  return true if self.equal?(o)
126
135
  self.class == o.class &&
136
+ expires_at == o.expires_at &&
127
137
  grace_period_minutes == o.grace_period_minutes
128
138
  end
129
139
 
@@ -136,7 +146,7 @@ module IncidentIo
136
146
  # Calculates hash code according to all attributes.
137
147
  # @return [Integer] Hash code
138
148
  def hash
139
- [grace_period_minutes].hash
149
+ [expires_at, grace_period_minutes].hash
140
150
  end
141
151
 
142
152
  # 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.65.0"
7
+ VERSION = "2.66.0"
8
8
  end
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.65.0
4
+ version: 2.66.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - incident.io