shipeasy-sdk 4.2.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 (55) hide show
  1. checksums.yaml +4 -4
  2. data/lib/shipeasy/sdk/version.rb +1 -1
  3. data/lib/shipeasy_admin/api/flags_api.rb +9 -9
  4. data/lib/shipeasy_admin/api/killswitch_api.rb +1 -1
  5. data/lib/shipeasy_admin/api/ops_api.rb +127 -1
  6. data/lib/shipeasy_admin/api_client.rb +1 -1
  7. data/lib/shipeasy_admin/api_error.rb +1 -1
  8. data/lib/shipeasy_admin/api_model_base.rb +1 -1
  9. data/lib/shipeasy_admin/configuration.rb +1 -1
  10. data/lib/shipeasy_admin/models/add_to_gate_whitelist_request.rb +1 -1
  11. data/lib/shipeasy_admin/models/connector_data.rb +157 -0
  12. data/lib/shipeasy_admin/models/create_public_bug_request.rb +1 -1
  13. data/lib/shipeasy_admin/models/create_public_feature_request_request.rb +1 -1
  14. data/lib/shipeasy_admin/models/create_public_ticket_response.rb +1 -1
  15. data/lib/shipeasy_admin/models/env.rb +1 -1
  16. data/lib/shipeasy_admin/models/error.rb +1 -1
  17. data/lib/shipeasy_admin/models/error_code.rb +1 -1
  18. data/lib/shipeasy_admin/models/gate_whitelist.rb +1 -1
  19. data/lib/shipeasy_admin/models/gate_whitelist_attr.rb +1 -1
  20. data/lib/shipeasy_admin/models/github_connector_data.rb +170 -0
  21. data/lib/shipeasy_admin/models/github_connector_data_issue.rb +257 -0
  22. data/lib/shipeasy_admin/models/github_pr_link.rb +319 -0
  23. data/lib/shipeasy_admin/models/killswitch_value.rb +1 -1
  24. data/lib/shipeasy_admin/models/list_ops_items_response_inner.rb +593 -0
  25. data/lib/shipeasy_admin/models/measure_plan_resource.rb +228 -0
  26. data/lib/shipeasy_admin/models/measure_plan_step.rb +211 -0
  27. data/lib/shipeasy_admin/models/notification_target.rb +1 -1
  28. data/lib/shipeasy_admin/models/notification_target_slack_channel.rb +1 -1
  29. data/lib/shipeasy_admin/models/ops_alert_context.rb +350 -0
  30. data/lib/shipeasy_admin/models/ops_alert_metric_summary.rb +222 -0
  31. data/lib/shipeasy_admin/models/ops_alert_rule_summary.rb +298 -0
  32. data/lib/shipeasy_admin/models/ops_browser_context.rb +172 -0
  33. data/lib/shipeasy_admin/models/ops_error_context.rb +429 -0
  34. data/lib/shipeasy_admin/models/ops_investigation_state.rb +48 -0
  35. data/lib/shipeasy_admin/models/ops_item_context.rb +184 -0
  36. data/lib/shipeasy_admin/models/ops_item_context_error_chart.rb +222 -0
  37. data/lib/shipeasy_admin/models/ops_item_context_error_chart_series_inner.rb +193 -0
  38. data/lib/shipeasy_admin/models/ops_item_owner.rb +163 -0
  39. data/lib/shipeasy_admin/models/ops_item_owner_agent.rb +255 -0
  40. data/lib/shipeasy_admin/models/ops_item_owner_user.rb +206 -0
  41. data/lib/shipeasy_admin/models/ops_item_priority.rb +1 -1
  42. data/lib/shipeasy_admin/models/ops_item_status.rb +1 -1
  43. data/lib/shipeasy_admin/models/ops_measure_plan_context.rb +220 -0
  44. data/lib/shipeasy_admin/models/ops_run.rb +309 -0
  45. data/lib/shipeasy_admin/models/ops_run_action.rb +42 -0
  46. data/lib/shipeasy_admin/models/ops_run_action_or_null.rb +146 -0
  47. data/lib/shipeasy_admin/models/remove_from_gate_whitelist_request.rb +1 -1
  48. data/lib/shipeasy_admin/models/set_gate_whitelist_request.rb +1 -1
  49. data/lib/shipeasy_admin/models/slack_connector_data.rb +148 -0
  50. data/lib/shipeasy_admin/models/slack_connector_data_message.rb +203 -0
  51. data/lib/shipeasy_admin/models/toggle_killswitch_request.rb +1 -1
  52. data/lib/shipeasy_admin/models/toggle_killswitch_response.rb +1 -1
  53. data/lib/shipeasy_admin/version.rb +1 -1
  54. data/lib/shipeasy_admin.rb +26 -1
  55. metadata +31 -6
@@ -0,0 +1,220 @@
1
+ =begin
2
+ #Shipeasy Admin API (server-SDK surface)
3
+
4
+ #The slice of the Shipeasy admin API that the published server SDKs expose as their optional `AdminClient`. Authenticate with an admin SDK key (`Authorization: Bearer sdk_admin_…`) and scope every request to a project via the `X-Project-Id` header. Four capabilities, nothing else: - **List the ops queue** — read the project's tickets, filtered by type, status, priority, owner, reporter (`reporter`) and close time (`closedSince`). - **File a public ticket** — a bug or a feature request onto the project's ops queue. - **Toggle a kill switch** — flip the switch itself, or one of its named sub-switches, on one environment. - **Manage a flag's whitelist** — read, replace, add to, or remove from the allowlist that admits specific identities ahead of every targeting rule. Everything else in the admin API is reachable through the Shipeasy CLI and MCP server, which speak the complete contract (`openapi.yaml`).
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.23.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Shipeasy::Admin::Generated
17
+ # An assistant-proposed measurement plan: what it already built, what it still needs, and the event instrumentation you implement.
18
+ class OpsMeasurePlanContext < ApiModelBase
19
+ # The customer's underlying intent in their own words — WHAT they want to learn or achieve and WHY, independent of the specific steps. The plan below is a best-effort proposal made without repo access; when the code reveals a better path, this goal is the target you optimize for, not literal step-adherence.
20
+ attr_accessor :goal
21
+
22
+ # Resources the assistant already created on approval (live now) — don't recreate them.
23
+ attr_accessor :created
24
+
25
+ # Resources the assistant couldn't create yet (usually a metric whose backing event isn't emitted); create these after the instrumentation lands.
26
+ attr_accessor :pending
27
+
28
+ # The code instrumentation to implement before the metrics can collect data.
29
+ attr_accessor :instrumentation
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'goal' => :'goal',
35
+ :'created' => :'created',
36
+ :'pending' => :'pending',
37
+ :'instrumentation' => :'instrumentation'
38
+ }
39
+ end
40
+
41
+ # Returns attribute mapping this model knows about
42
+ def self.acceptable_attribute_map
43
+ attribute_map
44
+ end
45
+
46
+ # Returns all the JSON keys this model knows about
47
+ def self.acceptable_attributes
48
+ acceptable_attribute_map.values
49
+ end
50
+
51
+ # Attribute type mapping.
52
+ def self.openapi_types
53
+ {
54
+ :'goal' => :'String',
55
+ :'created' => :'Array<MeasurePlanResource>',
56
+ :'pending' => :'Array<MeasurePlanResource>',
57
+ :'instrumentation' => :'Array<MeasurePlanStep>'
58
+ }
59
+ end
60
+
61
+ # List of attributes with nullable: true
62
+ def self.openapi_nullable
63
+ Set.new([
64
+ :'goal',
65
+ ])
66
+ end
67
+
68
+ # Initializes the object
69
+ # @param [Hash] attributes Model attributes in the form of hash
70
+ def initialize(attributes = {})
71
+ if (!attributes.is_a?(Hash))
72
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Shipeasy::Admin::Generated::OpsMeasurePlanContext` initialize method"
73
+ end
74
+
75
+ # check to see if the attribute exists and convert string to symbol for hash key
76
+ acceptable_attribute_map = self.class.acceptable_attribute_map
77
+ attributes = attributes.each_with_object({}) { |(k, v), h|
78
+ if (!acceptable_attribute_map.key?(k.to_sym))
79
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Shipeasy::Admin::Generated::OpsMeasurePlanContext`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
80
+ end
81
+ h[k.to_sym] = v
82
+ }
83
+
84
+ if attributes.key?(:'goal')
85
+ self.goal = attributes[:'goal']
86
+ end
87
+
88
+ if attributes.key?(:'created')
89
+ if (value = attributes[:'created']).is_a?(Array)
90
+ self.created = value
91
+ end
92
+ else
93
+ self.created = nil
94
+ end
95
+
96
+ if attributes.key?(:'pending')
97
+ if (value = attributes[:'pending']).is_a?(Array)
98
+ self.pending = value
99
+ end
100
+ end
101
+
102
+ if attributes.key?(:'instrumentation')
103
+ if (value = attributes[:'instrumentation']).is_a?(Array)
104
+ self.instrumentation = value
105
+ end
106
+ else
107
+ self.instrumentation = nil
108
+ end
109
+ end
110
+
111
+ # Show invalid properties with the reasons. Usually used together with valid?
112
+ # @return Array for valid properties with the reasons
113
+ def list_invalid_properties
114
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
115
+ invalid_properties = Array.new
116
+ if @created.nil?
117
+ invalid_properties.push('invalid value for "created", created cannot be nil.')
118
+ end
119
+
120
+ if @instrumentation.nil?
121
+ invalid_properties.push('invalid value for "instrumentation", instrumentation cannot be nil.')
122
+ end
123
+
124
+ invalid_properties
125
+ end
126
+
127
+ # Check to see if the all the properties in the model are valid
128
+ # @return true if the model is valid
129
+ def valid?
130
+ warn '[DEPRECATED] the `valid?` method is obsolete'
131
+ return false if @created.nil?
132
+ return false if @instrumentation.nil?
133
+ true
134
+ end
135
+
136
+ # Custom attribute writer method with validation
137
+ # @param [Object] created Value to be assigned
138
+ def created=(created)
139
+ if created.nil?
140
+ fail ArgumentError, 'created cannot be nil'
141
+ end
142
+
143
+ @created = created
144
+ end
145
+
146
+ # Custom attribute writer method with validation
147
+ # @param [Object] instrumentation Value to be assigned
148
+ def instrumentation=(instrumentation)
149
+ if instrumentation.nil?
150
+ fail ArgumentError, 'instrumentation cannot be nil'
151
+ end
152
+
153
+ @instrumentation = instrumentation
154
+ end
155
+
156
+ # Checks equality by comparing each attribute.
157
+ # @param [Object] Object to be compared
158
+ def ==(o)
159
+ return true if self.equal?(o)
160
+ self.class == o.class &&
161
+ goal == o.goal &&
162
+ created == o.created &&
163
+ pending == o.pending &&
164
+ instrumentation == o.instrumentation
165
+ end
166
+
167
+ # @see the `==` method
168
+ # @param [Object] Object to be compared
169
+ def eql?(o)
170
+ self == o
171
+ end
172
+
173
+ # Calculates hash code according to all attributes.
174
+ # @return [Integer] Hash code
175
+ def hash
176
+ [goal, created, pending, instrumentation].hash
177
+ end
178
+
179
+ # Builds the object from hash
180
+ # @param [Hash] attributes Model attributes in the form of hash
181
+ # @return [Object] Returns the model itself
182
+ def self.build_from_hash(attributes)
183
+ return nil unless attributes.is_a?(Hash)
184
+ attributes = attributes.transform_keys(&:to_sym)
185
+ transformed_hash = {}
186
+ openapi_types.each_pair do |key, type|
187
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
188
+ transformed_hash["#{key}"] = nil
189
+ elsif type =~ /\AArray<(.*)>/i
190
+ # check to ensure the input is an array given that the attribute
191
+ # is documented as an array but the input is not
192
+ if attributes[attribute_map[key]].is_a?(Array)
193
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
194
+ end
195
+ elsif !attributes[attribute_map[key]].nil?
196
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
197
+ end
198
+ end
199
+ new(transformed_hash)
200
+ end
201
+
202
+ # Returns the object in the form of hash
203
+ # @return [Hash] Returns the object in the form of hash
204
+ def to_hash
205
+ hash = {}
206
+ self.class.attribute_map.each_pair do |attr, param|
207
+ value = self.send(attr)
208
+ if value.nil?
209
+ is_nullable = self.class.openapi_nullable.include?(attr)
210
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
211
+ end
212
+
213
+ hash[param] = _to_hash(value)
214
+ end
215
+ hash
216
+ end
217
+
218
+ end
219
+
220
+ end
@@ -0,0 +1,309 @@
1
+ =begin
2
+ #Shipeasy Admin API (server-SDK surface)
3
+
4
+ #The slice of the Shipeasy admin API that the published server SDKs expose as their optional `AdminClient`. Authenticate with an admin SDK key (`Authorization: Bearer sdk_admin_…`) and scope every request to a project via the `X-Project-Id` header. Four capabilities, nothing else: - **List the ops queue** — read the project's tickets, filtered by type, status, priority, owner, reporter (`reporter`) and close time (`closedSince`). - **File a public ticket** — a bug or a feature request onto the project's ops queue. - **Toggle a kill switch** — flip the switch itself, or one of its named sub-switches, on one environment. - **Manage a flag's whitelist** — read, replace, add to, or remove from the allowlist that admits specific identities ahead of every targeting rule. Everything else in the admin API is reachable through the Shipeasy CLI and MCP server, which speak the complete contract (`openapi.yaml`).
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.23.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Shipeasy::Admin::Generated
17
+ # One run on a queue item — who (person or AI agent) picked it up when, and, once closed, how it ended (final action + PR + session link). Opened by `POST /api/admin/ops/{handle}/ack`.
18
+ class OpsRun < ApiModelBase
19
+ # Run record id.
20
+ attr_accessor :id
21
+
22
+ # The AI agent type working the run (`jarvis` | `claude` | `cursor` | `copilot` | `jules`); `null` for a human ack.
23
+ attr_accessor :agent
24
+
25
+ # The trigger-connector row id backing the acking agent; `null` for a human ack or the built-in Jarvis agent.
26
+ attr_accessor :connector_id
27
+
28
+ # Email of the human who acked; `null` for an AI ack.
29
+ attr_accessor :acked_by
30
+
31
+ # The agent-run session id recorded on the ack (dashboard deep-links to the run page), or `null`.
32
+ attr_accessor :session_id
33
+
34
+ # The run's session-page deep link, or `null`. DERIVED (never stored): rebuilt from `sessionId` + the run's trigger connector — Claude's routine id (`?trigger=`), Copilot's repo (`/tasks/`), Cursor/Jules from the id alone.
35
+ attr_accessor :session_url
36
+
37
+ # ISO-8601 timestamp the run started (the ack time).
38
+ attr_accessor :started_at
39
+
40
+ # ISO-8601 timestamp the run closed, or `null` while still open.
41
+ attr_accessor :completed_at
42
+
43
+ attr_accessor :completed_action
44
+
45
+ # The PR the run linked as its final action, or `null`.
46
+ attr_accessor :pr_number
47
+
48
+ # HTML URL of that PR, or `null`.
49
+ attr_accessor :pr_url
50
+
51
+ # Attribute mapping from ruby-style variable name to JSON key.
52
+ def self.attribute_map
53
+ {
54
+ :'id' => :'id',
55
+ :'agent' => :'agent',
56
+ :'connector_id' => :'connectorId',
57
+ :'acked_by' => :'ackedBy',
58
+ :'session_id' => :'sessionId',
59
+ :'session_url' => :'sessionUrl',
60
+ :'started_at' => :'startedAt',
61
+ :'completed_at' => :'completedAt',
62
+ :'completed_action' => :'completedAction',
63
+ :'pr_number' => :'prNumber',
64
+ :'pr_url' => :'prUrl'
65
+ }
66
+ end
67
+
68
+ # Returns attribute mapping this model knows about
69
+ def self.acceptable_attribute_map
70
+ attribute_map
71
+ end
72
+
73
+ # Returns all the JSON keys this model knows about
74
+ def self.acceptable_attributes
75
+ acceptable_attribute_map.values
76
+ end
77
+
78
+ # Attribute type mapping.
79
+ def self.openapi_types
80
+ {
81
+ :'id' => :'String',
82
+ :'agent' => :'String',
83
+ :'connector_id' => :'String',
84
+ :'acked_by' => :'String',
85
+ :'session_id' => :'String',
86
+ :'session_url' => :'String',
87
+ :'started_at' => :'String',
88
+ :'completed_at' => :'String',
89
+ :'completed_action' => :'OpsRunActionOrNull',
90
+ :'pr_number' => :'Float',
91
+ :'pr_url' => :'String'
92
+ }
93
+ end
94
+
95
+ # List of attributes with nullable: true
96
+ def self.openapi_nullable
97
+ Set.new([
98
+ :'agent',
99
+ :'connector_id',
100
+ :'acked_by',
101
+ :'session_id',
102
+ :'session_url',
103
+ :'completed_at',
104
+ :'completed_action',
105
+ :'pr_number',
106
+ :'pr_url'
107
+ ])
108
+ end
109
+
110
+ # Initializes the object
111
+ # @param [Hash] attributes Model attributes in the form of hash
112
+ def initialize(attributes = {})
113
+ if (!attributes.is_a?(Hash))
114
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Shipeasy::Admin::Generated::OpsRun` initialize method"
115
+ end
116
+
117
+ # check to see if the attribute exists and convert string to symbol for hash key
118
+ acceptable_attribute_map = self.class.acceptable_attribute_map
119
+ attributes = attributes.each_with_object({}) { |(k, v), h|
120
+ if (!acceptable_attribute_map.key?(k.to_sym))
121
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Shipeasy::Admin::Generated::OpsRun`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
122
+ end
123
+ h[k.to_sym] = v
124
+ }
125
+
126
+ if attributes.key?(:'id')
127
+ self.id = attributes[:'id']
128
+ else
129
+ self.id = nil
130
+ end
131
+
132
+ if attributes.key?(:'agent')
133
+ self.agent = attributes[:'agent']
134
+ else
135
+ self.agent = nil
136
+ end
137
+
138
+ if attributes.key?(:'connector_id')
139
+ self.connector_id = attributes[:'connector_id']
140
+ else
141
+ self.connector_id = nil
142
+ end
143
+
144
+ if attributes.key?(:'acked_by')
145
+ self.acked_by = attributes[:'acked_by']
146
+ else
147
+ self.acked_by = nil
148
+ end
149
+
150
+ if attributes.key?(:'session_id')
151
+ self.session_id = attributes[:'session_id']
152
+ else
153
+ self.session_id = nil
154
+ end
155
+
156
+ if attributes.key?(:'session_url')
157
+ self.session_url = attributes[:'session_url']
158
+ else
159
+ self.session_url = nil
160
+ end
161
+
162
+ if attributes.key?(:'started_at')
163
+ self.started_at = attributes[:'started_at']
164
+ else
165
+ self.started_at = nil
166
+ end
167
+
168
+ if attributes.key?(:'completed_at')
169
+ self.completed_at = attributes[:'completed_at']
170
+ else
171
+ self.completed_at = nil
172
+ end
173
+
174
+ if attributes.key?(:'completed_action')
175
+ self.completed_action = attributes[:'completed_action']
176
+ else
177
+ self.completed_action = nil
178
+ end
179
+
180
+ if attributes.key?(:'pr_number')
181
+ self.pr_number = attributes[:'pr_number']
182
+ else
183
+ self.pr_number = nil
184
+ end
185
+
186
+ if attributes.key?(:'pr_url')
187
+ self.pr_url = attributes[:'pr_url']
188
+ else
189
+ self.pr_url = nil
190
+ end
191
+ end
192
+
193
+ # Show invalid properties with the reasons. Usually used together with valid?
194
+ # @return Array for valid properties with the reasons
195
+ def list_invalid_properties
196
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
197
+ invalid_properties = Array.new
198
+ if @id.nil?
199
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
200
+ end
201
+
202
+ if @started_at.nil?
203
+ invalid_properties.push('invalid value for "started_at", started_at cannot be nil.')
204
+ end
205
+
206
+ invalid_properties
207
+ end
208
+
209
+ # Check to see if the all the properties in the model are valid
210
+ # @return true if the model is valid
211
+ def valid?
212
+ warn '[DEPRECATED] the `valid?` method is obsolete'
213
+ return false if @id.nil?
214
+ return false if @started_at.nil?
215
+ true
216
+ end
217
+
218
+ # Custom attribute writer method with validation
219
+ # @param [Object] id Value to be assigned
220
+ def id=(id)
221
+ if id.nil?
222
+ fail ArgumentError, 'id cannot be nil'
223
+ end
224
+
225
+ @id = id
226
+ end
227
+
228
+ # Custom attribute writer method with validation
229
+ # @param [Object] started_at Value to be assigned
230
+ def started_at=(started_at)
231
+ if started_at.nil?
232
+ fail ArgumentError, 'started_at cannot be nil'
233
+ end
234
+
235
+ @started_at = started_at
236
+ end
237
+
238
+ # Checks equality by comparing each attribute.
239
+ # @param [Object] Object to be compared
240
+ def ==(o)
241
+ return true if self.equal?(o)
242
+ self.class == o.class &&
243
+ id == o.id &&
244
+ agent == o.agent &&
245
+ connector_id == o.connector_id &&
246
+ acked_by == o.acked_by &&
247
+ session_id == o.session_id &&
248
+ session_url == o.session_url &&
249
+ started_at == o.started_at &&
250
+ completed_at == o.completed_at &&
251
+ completed_action == o.completed_action &&
252
+ pr_number == o.pr_number &&
253
+ pr_url == o.pr_url
254
+ end
255
+
256
+ # @see the `==` method
257
+ # @param [Object] Object to be compared
258
+ def eql?(o)
259
+ self == o
260
+ end
261
+
262
+ # Calculates hash code according to all attributes.
263
+ # @return [Integer] Hash code
264
+ def hash
265
+ [id, agent, connector_id, acked_by, session_id, session_url, started_at, completed_at, completed_action, pr_number, pr_url].hash
266
+ end
267
+
268
+ # Builds the object from hash
269
+ # @param [Hash] attributes Model attributes in the form of hash
270
+ # @return [Object] Returns the model itself
271
+ def self.build_from_hash(attributes)
272
+ return nil unless attributes.is_a?(Hash)
273
+ attributes = attributes.transform_keys(&:to_sym)
274
+ transformed_hash = {}
275
+ openapi_types.each_pair do |key, type|
276
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
277
+ transformed_hash["#{key}"] = nil
278
+ elsif type =~ /\AArray<(.*)>/i
279
+ # check to ensure the input is an array given that the attribute
280
+ # is documented as an array but the input is not
281
+ if attributes[attribute_map[key]].is_a?(Array)
282
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
283
+ end
284
+ elsif !attributes[attribute_map[key]].nil?
285
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
286
+ end
287
+ end
288
+ new(transformed_hash)
289
+ end
290
+
291
+ # Returns the object in the form of hash
292
+ # @return [Hash] Returns the object in the form of hash
293
+ def to_hash
294
+ hash = {}
295
+ self.class.attribute_map.each_pair do |attr, param|
296
+ value = self.send(attr)
297
+ if value.nil?
298
+ is_nullable = self.class.openapi_nullable.include?(attr)
299
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
300
+ end
301
+
302
+ hash[param] = _to_hash(value)
303
+ end
304
+ hash
305
+ end
306
+
307
+ end
308
+
309
+ end
@@ -0,0 +1,42 @@
1
+ =begin
2
+ #Shipeasy Admin API (server-SDK surface)
3
+
4
+ #The slice of the Shipeasy admin API that the published server SDKs expose as their optional `AdminClient`. Authenticate with an admin SDK key (`Authorization: Bearer sdk_admin_…`) and scope every request to a project via the `X-Project-Id` header. Four capabilities, nothing else: - **List the ops queue** — read the project's tickets, filtered by type, status, priority, owner, reporter (`reporter`) and close time (`closedSince`). - **File a public ticket** — a bug or a feature request onto the project's ops queue. - **Toggle a kill switch** — flip the switch itself, or one of its named sub-switches, on one environment. - **Manage a flag's whitelist** — read, replace, add to, or remove from the allowlist that admits specific identities ahead of every targeting rule. Everything else in the admin API is reachable through the Shipeasy CLI and MCP server, which speak the complete contract (`openapi.yaml`).
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.23.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Shipeasy::Admin::Generated
17
+ class OpsRunAction
18
+ LINK_PR = "link_pr".freeze
19
+ NOTIFY = "notify".freeze
20
+ STATUS = "status".freeze
21
+ SUPERSEDED = "superseded".freeze
22
+
23
+ def self.all_vars
24
+ @all_vars ||= [LINK_PR, NOTIFY, STATUS, SUPERSEDED].freeze
25
+ end
26
+
27
+ # Builds the enum from string
28
+ # @param [String] The enum value in the form of the string
29
+ # @return [String] The enum value
30
+ def self.build_from_hash(value)
31
+ new.build_from_hash(value)
32
+ end
33
+
34
+ # Builds the enum from string
35
+ # @param [String] The enum value in the form of the string
36
+ # @return [String] The enum value
37
+ def build_from_hash(value)
38
+ return value if OpsRunAction.all_vars.include?(value)
39
+ raise "Invalid ENUM value #{value} for class #OpsRunAction"
40
+ end
41
+ end
42
+ end