licensekit-ruby 0.1.0.alpha.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 +7 -0
- data/.gitignore +4 -0
- data/LICENSE +21 -0
- data/README.md +112 -0
- data/examples/01_create_scoped_api_key.rb +16 -0
- data/examples/02_runtime_validate_and_verify.rb +22 -0
- data/lib/licensekit/client.rb +257 -0
- data/lib/licensekit/errors.rb +62 -0
- data/lib/licensekit/generated/clients.rb +833 -0
- data/lib/licensekit/generated/metadata.rb +536 -0
- data/lib/licensekit/generated/operation_scopes.rb +314 -0
- data/lib/licensekit/scopes.rb +16 -0
- data/lib/licensekit/types.rb +53 -0
- data/lib/licensekit/verification.rb +94 -0
- data/lib/licensekit/version.rb +3 -0
- data/lib/licensekit.rb +9 -0
- data/openapi/openapi.yaml +4394 -0
- data/scripts/generate_from_openapi.rb +294 -0
- data/test/test_client.rb +156 -0
- data/test/test_helper.rb +6 -0
- data/test/test_scopes.rb +14 -0
- data/test/test_verification.rb +44 -0
- metadata +85 -0
|
@@ -0,0 +1,536 @@
|
|
|
1
|
+
# Generated by scripts/generate_from_openapi.rb. Do not edit manually.
|
|
2
|
+
|
|
3
|
+
module LicenseKit
|
|
4
|
+
module Generated
|
|
5
|
+
OPERATION_METADATA = {
|
|
6
|
+
"activateLicense" => {
|
|
7
|
+
method: "POST",
|
|
8
|
+
path: "/api/v1/license/activate",
|
|
9
|
+
auth: "license",
|
|
10
|
+
summary: "Activate a license for a hardware or container binding",
|
|
11
|
+
success: { 200 => "json" }
|
|
12
|
+
},
|
|
13
|
+
"assignLicenseFeature" => {
|
|
14
|
+
method: "POST",
|
|
15
|
+
path: "/api/v1/licenses/{id}/features",
|
|
16
|
+
auth: "bearer",
|
|
17
|
+
summary: "Assign or update a feature on a license",
|
|
18
|
+
success: { 200 => "json" }
|
|
19
|
+
},
|
|
20
|
+
"blacklistLicenseDevice" => {
|
|
21
|
+
method: "POST",
|
|
22
|
+
path: "/api/v1/licenses/{id}/devices/{device_id}/blacklist",
|
|
23
|
+
auth: "bearer",
|
|
24
|
+
summary: "Blacklist a managed device and block future reuse",
|
|
25
|
+
success: { 200 => "json" }
|
|
26
|
+
},
|
|
27
|
+
"checkLicense" => {
|
|
28
|
+
method: "POST",
|
|
29
|
+
path: "/api/v1/license/check",
|
|
30
|
+
auth: "license",
|
|
31
|
+
summary: "Check current entitlements without mutating validation timestamps",
|
|
32
|
+
success: { 200 => "json" }
|
|
33
|
+
},
|
|
34
|
+
"checkinFloatingLicense" => {
|
|
35
|
+
method: "POST",
|
|
36
|
+
path: "/api/v1/license/floating/checkin",
|
|
37
|
+
auth: "license",
|
|
38
|
+
summary: "Check in a floating lease token",
|
|
39
|
+
success: { 200 => "json" }
|
|
40
|
+
},
|
|
41
|
+
"checkoutFloatingLicense" => {
|
|
42
|
+
method: "POST",
|
|
43
|
+
path: "/api/v1/license/floating/checkout",
|
|
44
|
+
auth: "license",
|
|
45
|
+
summary: "Check out a floating lease for a hardware or container binding",
|
|
46
|
+
success: { 200 => "json" }
|
|
47
|
+
},
|
|
48
|
+
"consumeLicense" => {
|
|
49
|
+
method: "POST",
|
|
50
|
+
path: "/api/v1/license/consume",
|
|
51
|
+
auth: "license",
|
|
52
|
+
summary: "Consume metered feature usage for an active bound license",
|
|
53
|
+
success: { 200 => "json" }
|
|
54
|
+
},
|
|
55
|
+
"createAPIKey" => {
|
|
56
|
+
method: "POST",
|
|
57
|
+
path: "/api/v1/api-keys",
|
|
58
|
+
auth: "bearer",
|
|
59
|
+
summary: "Create a management API key",
|
|
60
|
+
success: { 201 => "json" }
|
|
61
|
+
},
|
|
62
|
+
"createCustomer" => {
|
|
63
|
+
method: "POST",
|
|
64
|
+
path: "/api/v1/customers",
|
|
65
|
+
auth: "bearer",
|
|
66
|
+
summary: "Create a customer",
|
|
67
|
+
success: { 201 => "json" }
|
|
68
|
+
},
|
|
69
|
+
"createFeature" => {
|
|
70
|
+
method: "POST",
|
|
71
|
+
path: "/api/v1/products/{id}/features",
|
|
72
|
+
auth: "bearer",
|
|
73
|
+
summary: "Create a feature for a product",
|
|
74
|
+
success: { 201 => "json" }
|
|
75
|
+
},
|
|
76
|
+
"createLicense" => {
|
|
77
|
+
method: "POST",
|
|
78
|
+
path: "/api/v1/licenses",
|
|
79
|
+
auth: "bearer",
|
|
80
|
+
summary: "Create a license",
|
|
81
|
+
success: { 201 => "json" }
|
|
82
|
+
},
|
|
83
|
+
"createOrder" => {
|
|
84
|
+
method: "POST",
|
|
85
|
+
path: "/api/v1/products/{id}/orders",
|
|
86
|
+
auth: "bearer",
|
|
87
|
+
summary: "Create an order record for a product",
|
|
88
|
+
success: { 201 => "json" }
|
|
89
|
+
},
|
|
90
|
+
"createPolicy" => {
|
|
91
|
+
method: "POST",
|
|
92
|
+
path: "/api/v1/products/{id}/policies",
|
|
93
|
+
auth: "bearer",
|
|
94
|
+
summary: "Create a policy for a product",
|
|
95
|
+
success: { 201 => "json" }
|
|
96
|
+
},
|
|
97
|
+
"createProduct" => {
|
|
98
|
+
method: "POST",
|
|
99
|
+
path: "/api/v1/products",
|
|
100
|
+
auth: "bearer",
|
|
101
|
+
summary: "Create a product",
|
|
102
|
+
success: { 201 => "json" }
|
|
103
|
+
},
|
|
104
|
+
"createProductCustomFieldDefinition" => {
|
|
105
|
+
method: "POST",
|
|
106
|
+
path: "/api/v1/products/{id}/custom-fields",
|
|
107
|
+
auth: "bearer",
|
|
108
|
+
summary: "Create a product custom field definition",
|
|
109
|
+
success: { 201 => "json" }
|
|
110
|
+
},
|
|
111
|
+
"createProductVersion" => {
|
|
112
|
+
method: "POST",
|
|
113
|
+
path: "/api/v1/products/{id}/versions",
|
|
114
|
+
auth: "bearer",
|
|
115
|
+
summary: "Create a product version",
|
|
116
|
+
success: { 201 => "json" }
|
|
117
|
+
},
|
|
118
|
+
"createSubscription" => {
|
|
119
|
+
method: "POST",
|
|
120
|
+
path: "/api/v1/products/{id}/subscriptions",
|
|
121
|
+
auth: "bearer",
|
|
122
|
+
summary: "Create a subscription record for a product",
|
|
123
|
+
success: { 201 => "json" }
|
|
124
|
+
},
|
|
125
|
+
"createWebhookEndpoint" => {
|
|
126
|
+
method: "POST",
|
|
127
|
+
path: "/api/v1/webhooks",
|
|
128
|
+
auth: "bearer",
|
|
129
|
+
summary: "Create a webhook endpoint",
|
|
130
|
+
success: { 201 => "json" }
|
|
131
|
+
},
|
|
132
|
+
"deactivateLicense" => {
|
|
133
|
+
method: "POST",
|
|
134
|
+
path: "/api/v1/license/deactivate",
|
|
135
|
+
auth: "license",
|
|
136
|
+
summary: "Deactivate a bound license device",
|
|
137
|
+
success: { 200 => "json" }
|
|
138
|
+
},
|
|
139
|
+
"deleteCustomer" => {
|
|
140
|
+
method: "DELETE",
|
|
141
|
+
path: "/api/v1/customers/{id}",
|
|
142
|
+
auth: "bearer",
|
|
143
|
+
summary: "Delete a customer",
|
|
144
|
+
success: { 204 => "empty" }
|
|
145
|
+
},
|
|
146
|
+
"deletePolicy" => {
|
|
147
|
+
method: "DELETE",
|
|
148
|
+
path: "/api/v1/policies/{id}",
|
|
149
|
+
auth: "bearer",
|
|
150
|
+
summary: "Delete a policy",
|
|
151
|
+
success: { 204 => "empty" }
|
|
152
|
+
},
|
|
153
|
+
"deleteProduct" => {
|
|
154
|
+
method: "DELETE",
|
|
155
|
+
path: "/api/v1/products/{id}",
|
|
156
|
+
auth: "bearer",
|
|
157
|
+
summary: "Delete a product",
|
|
158
|
+
success: { 204 => "empty" }
|
|
159
|
+
},
|
|
160
|
+
"deleteProductCustomFieldDefinition" => {
|
|
161
|
+
method: "DELETE",
|
|
162
|
+
path: "/api/v1/products/{id}/custom-fields/{field_id}",
|
|
163
|
+
auth: "bearer",
|
|
164
|
+
summary: "Delete a product custom field definition",
|
|
165
|
+
success: { 204 => "empty" }
|
|
166
|
+
},
|
|
167
|
+
"deleteWebhookEndpoint" => {
|
|
168
|
+
method: "DELETE",
|
|
169
|
+
path: "/api/v1/webhooks/{id}",
|
|
170
|
+
auth: "bearer",
|
|
171
|
+
summary: "Delete a webhook endpoint",
|
|
172
|
+
success: { 204 => "empty" }
|
|
173
|
+
},
|
|
174
|
+
"getCustomer" => {
|
|
175
|
+
method: "GET",
|
|
176
|
+
path: "/api/v1/customers/{id}",
|
|
177
|
+
auth: "bearer",
|
|
178
|
+
summary: "Get a customer",
|
|
179
|
+
success: { 200 => "json" }
|
|
180
|
+
},
|
|
181
|
+
"getFeature" => {
|
|
182
|
+
method: "GET",
|
|
183
|
+
path: "/api/v1/features/{id}",
|
|
184
|
+
auth: "bearer",
|
|
185
|
+
summary: "Get a feature",
|
|
186
|
+
success: { 200 => "json" }
|
|
187
|
+
},
|
|
188
|
+
"getLicense" => {
|
|
189
|
+
method: "GET",
|
|
190
|
+
path: "/api/v1/licenses/{id}",
|
|
191
|
+
auth: "bearer",
|
|
192
|
+
summary: "Get a license",
|
|
193
|
+
success: { 200 => "json" }
|
|
194
|
+
},
|
|
195
|
+
"getLicenseDevice" => {
|
|
196
|
+
method: "GET",
|
|
197
|
+
path: "/api/v1/licenses/{id}/devices/{device_id}",
|
|
198
|
+
auth: "bearer",
|
|
199
|
+
summary: "Get a device for a license",
|
|
200
|
+
success: { 200 => "json" }
|
|
201
|
+
},
|
|
202
|
+
"getMetrics" => {
|
|
203
|
+
method: "GET",
|
|
204
|
+
path: "/metrics",
|
|
205
|
+
auth: "none",
|
|
206
|
+
summary: "Prometheus metrics",
|
|
207
|
+
success: { 200 => "text" }
|
|
208
|
+
},
|
|
209
|
+
"getOrder" => {
|
|
210
|
+
method: "GET",
|
|
211
|
+
path: "/api/v1/orders/{id}",
|
|
212
|
+
auth: "bearer",
|
|
213
|
+
summary: "Get an order record",
|
|
214
|
+
success: { 200 => "json" }
|
|
215
|
+
},
|
|
216
|
+
"getPolicy" => {
|
|
217
|
+
method: "GET",
|
|
218
|
+
path: "/api/v1/policies/{id}",
|
|
219
|
+
auth: "bearer",
|
|
220
|
+
summary: "Get a policy",
|
|
221
|
+
success: { 200 => "json" }
|
|
222
|
+
},
|
|
223
|
+
"getProduct" => {
|
|
224
|
+
method: "GET",
|
|
225
|
+
path: "/api/v1/products/{id}",
|
|
226
|
+
auth: "bearer",
|
|
227
|
+
summary: "Get a product",
|
|
228
|
+
success: { 200 => "json" }
|
|
229
|
+
},
|
|
230
|
+
"getProductCustomFieldDefinition" => {
|
|
231
|
+
method: "GET",
|
|
232
|
+
path: "/api/v1/products/{id}/custom-fields/{field_id}",
|
|
233
|
+
auth: "bearer",
|
|
234
|
+
summary: "Get a product custom field definition",
|
|
235
|
+
success: { 200 => "json" }
|
|
236
|
+
},
|
|
237
|
+
"getSubscription" => {
|
|
238
|
+
method: "GET",
|
|
239
|
+
path: "/api/v1/subscriptions/{id}",
|
|
240
|
+
auth: "bearer",
|
|
241
|
+
summary: "Get a subscription record",
|
|
242
|
+
success: { 200 => "json" }
|
|
243
|
+
},
|
|
244
|
+
"getWebhookEndpoint" => {
|
|
245
|
+
method: "GET",
|
|
246
|
+
path: "/api/v1/webhooks/{id}",
|
|
247
|
+
auth: "bearer",
|
|
248
|
+
summary: "Get a webhook endpoint",
|
|
249
|
+
success: { 200 => "json" }
|
|
250
|
+
},
|
|
251
|
+
"health" => {
|
|
252
|
+
method: "GET",
|
|
253
|
+
path: "/health",
|
|
254
|
+
auth: "none",
|
|
255
|
+
summary: "Hosted-safe liveness probe",
|
|
256
|
+
success: { 200 => "json" }
|
|
257
|
+
},
|
|
258
|
+
"healthz" => {
|
|
259
|
+
method: "GET",
|
|
260
|
+
path: "/healthz",
|
|
261
|
+
auth: "none",
|
|
262
|
+
summary: "Liveness probe",
|
|
263
|
+
success: { 200 => "json" }
|
|
264
|
+
},
|
|
265
|
+
"heartbeatFloatingLicense" => {
|
|
266
|
+
method: "POST",
|
|
267
|
+
path: "/api/v1/license/floating/heartbeat",
|
|
268
|
+
auth: "license",
|
|
269
|
+
summary: "Extend a floating lease before it expires",
|
|
270
|
+
success: { 200 => "json" }
|
|
271
|
+
},
|
|
272
|
+
"issueOfflineLicense" => {
|
|
273
|
+
method: "POST",
|
|
274
|
+
path: "/api/v1/license/offline",
|
|
275
|
+
auth: "license",
|
|
276
|
+
summary: "Issue an encrypted offline license envelope for a bound device",
|
|
277
|
+
success: { 200 => "json" }
|
|
278
|
+
},
|
|
279
|
+
"listAPIKeys" => {
|
|
280
|
+
method: "GET",
|
|
281
|
+
path: "/api/v1/api-keys",
|
|
282
|
+
auth: "bearer",
|
|
283
|
+
summary: "List management API keys",
|
|
284
|
+
success: { 200 => "json" }
|
|
285
|
+
},
|
|
286
|
+
"listCustomerCustomFieldValues" => {
|
|
287
|
+
method: "GET",
|
|
288
|
+
path: "/api/v1/customers/{id}/custom-fields",
|
|
289
|
+
auth: "bearer",
|
|
290
|
+
summary: "List customer custom field values",
|
|
291
|
+
success: { 200 => "json" }
|
|
292
|
+
},
|
|
293
|
+
"listCustomers" => {
|
|
294
|
+
method: "GET",
|
|
295
|
+
path: "/api/v1/customers",
|
|
296
|
+
auth: "bearer",
|
|
297
|
+
summary: "List customers",
|
|
298
|
+
success: { 200 => "json" }
|
|
299
|
+
},
|
|
300
|
+
"listEvents" => {
|
|
301
|
+
method: "GET",
|
|
302
|
+
path: "/api/v1/events",
|
|
303
|
+
auth: "bearer",
|
|
304
|
+
summary: "List audit-backed event records",
|
|
305
|
+
success: { 200 => "json" }
|
|
306
|
+
},
|
|
307
|
+
"listFeaturesByProduct" => {
|
|
308
|
+
method: "GET",
|
|
309
|
+
path: "/api/v1/products/{id}/features",
|
|
310
|
+
auth: "bearer",
|
|
311
|
+
summary: "List features for a product",
|
|
312
|
+
success: { 200 => "json" }
|
|
313
|
+
},
|
|
314
|
+
"listLicenseCustomFieldValues" => {
|
|
315
|
+
method: "GET",
|
|
316
|
+
path: "/api/v1/licenses/{id}/custom-fields",
|
|
317
|
+
auth: "bearer",
|
|
318
|
+
summary: "List license custom field values",
|
|
319
|
+
success: { 200 => "json" }
|
|
320
|
+
},
|
|
321
|
+
"listLicenseDevices" => {
|
|
322
|
+
method: "GET",
|
|
323
|
+
path: "/api/v1/licenses/{id}/devices",
|
|
324
|
+
auth: "bearer",
|
|
325
|
+
summary: "List devices for a license",
|
|
326
|
+
success: { 200 => "json" }
|
|
327
|
+
},
|
|
328
|
+
"listLicenseFeatures" => {
|
|
329
|
+
method: "GET",
|
|
330
|
+
path: "/api/v1/licenses/{id}/features",
|
|
331
|
+
auth: "bearer",
|
|
332
|
+
summary: "List assigned features for a license",
|
|
333
|
+
success: { 200 => "json" }
|
|
334
|
+
},
|
|
335
|
+
"listLicenses" => {
|
|
336
|
+
method: "GET",
|
|
337
|
+
path: "/api/v1/licenses",
|
|
338
|
+
auth: "bearer",
|
|
339
|
+
summary: "List licenses",
|
|
340
|
+
success: { 200 => "json" }
|
|
341
|
+
},
|
|
342
|
+
"listPoliciesByProduct" => {
|
|
343
|
+
method: "GET",
|
|
344
|
+
path: "/api/v1/products/{id}/policies",
|
|
345
|
+
auth: "bearer",
|
|
346
|
+
summary: "List policies for a product",
|
|
347
|
+
success: { 200 => "json" }
|
|
348
|
+
},
|
|
349
|
+
"listProductCustomFieldDefinitions" => {
|
|
350
|
+
method: "GET",
|
|
351
|
+
path: "/api/v1/products/{id}/custom-fields",
|
|
352
|
+
auth: "bearer",
|
|
353
|
+
summary: "List product custom field definitions",
|
|
354
|
+
success: { 200 => "json" }
|
|
355
|
+
},
|
|
356
|
+
"listProductOrders" => {
|
|
357
|
+
method: "GET",
|
|
358
|
+
path: "/api/v1/products/{id}/orders",
|
|
359
|
+
auth: "bearer",
|
|
360
|
+
summary: "List orders for a product",
|
|
361
|
+
success: { 200 => "json" }
|
|
362
|
+
},
|
|
363
|
+
"listProductSubscriptions" => {
|
|
364
|
+
method: "GET",
|
|
365
|
+
path: "/api/v1/products/{id}/subscriptions",
|
|
366
|
+
auth: "bearer",
|
|
367
|
+
summary: "List subscriptions for a product",
|
|
368
|
+
success: { 200 => "json" }
|
|
369
|
+
},
|
|
370
|
+
"listProductVersions" => {
|
|
371
|
+
method: "GET",
|
|
372
|
+
path: "/api/v1/products/{id}/versions",
|
|
373
|
+
auth: "bearer",
|
|
374
|
+
summary: "List product versions",
|
|
375
|
+
success: { 200 => "json" }
|
|
376
|
+
},
|
|
377
|
+
"listProducts" => {
|
|
378
|
+
method: "GET",
|
|
379
|
+
path: "/api/v1/products",
|
|
380
|
+
auth: "bearer",
|
|
381
|
+
summary: "List products",
|
|
382
|
+
success: { 200 => "json" }
|
|
383
|
+
},
|
|
384
|
+
"listPublicKeys" => {
|
|
385
|
+
method: "GET",
|
|
386
|
+
path: "/api/v1/system/public-keys",
|
|
387
|
+
auth: "none",
|
|
388
|
+
summary: "List public signing keys",
|
|
389
|
+
success: { 200 => "json" }
|
|
390
|
+
},
|
|
391
|
+
"listWebhookEndpoints" => {
|
|
392
|
+
method: "GET",
|
|
393
|
+
path: "/api/v1/webhooks",
|
|
394
|
+
auth: "bearer",
|
|
395
|
+
summary: "List webhook endpoints",
|
|
396
|
+
success: { 200 => "json" }
|
|
397
|
+
},
|
|
398
|
+
"readyz" => {
|
|
399
|
+
method: "GET",
|
|
400
|
+
path: "/readyz",
|
|
401
|
+
auth: "none",
|
|
402
|
+
summary: "Readiness probe",
|
|
403
|
+
success: { 200 => "json", 503 => "json" }
|
|
404
|
+
},
|
|
405
|
+
"reinstateLicense" => {
|
|
406
|
+
method: "POST",
|
|
407
|
+
path: "/api/v1/licenses/{id}/reinstate",
|
|
408
|
+
auth: "bearer",
|
|
409
|
+
summary: "Reinstate a suspended license",
|
|
410
|
+
success: { 200 => "json" }
|
|
411
|
+
},
|
|
412
|
+
"removeLicenseFeature" => {
|
|
413
|
+
method: "DELETE",
|
|
414
|
+
path: "/api/v1/licenses/{id}/features/{feature_id}",
|
|
415
|
+
auth: "bearer",
|
|
416
|
+
summary: "Remove a feature assignment from a license",
|
|
417
|
+
success: { 204 => "empty" }
|
|
418
|
+
},
|
|
419
|
+
"renewLicense" => {
|
|
420
|
+
method: "POST",
|
|
421
|
+
path: "/api/v1/licenses/{id}/renew",
|
|
422
|
+
auth: "bearer",
|
|
423
|
+
summary: "Renew or extend a renewable license",
|
|
424
|
+
success: { 200 => "json" }
|
|
425
|
+
},
|
|
426
|
+
"resetLicenseDevice" => {
|
|
427
|
+
method: "POST",
|
|
428
|
+
path: "/api/v1/licenses/{id}/devices/{device_id}/reset",
|
|
429
|
+
auth: "bearer",
|
|
430
|
+
summary: "Reset a managed device and clear its active state",
|
|
431
|
+
success: { 200 => "json" }
|
|
432
|
+
},
|
|
433
|
+
"resetLicenseUsage" => {
|
|
434
|
+
method: "POST",
|
|
435
|
+
path: "/api/v1/licenses/{id}/usage/reset",
|
|
436
|
+
auth: "bearer",
|
|
437
|
+
summary: "Reset or top up metered feature usage",
|
|
438
|
+
success: { 200 => "json" }
|
|
439
|
+
},
|
|
440
|
+
"revokeLicense" => {
|
|
441
|
+
method: "POST",
|
|
442
|
+
path: "/api/v1/licenses/{id}/revoke",
|
|
443
|
+
auth: "bearer",
|
|
444
|
+
summary: "Revoke a license and clear active seats",
|
|
445
|
+
success: { 200 => "json" }
|
|
446
|
+
},
|
|
447
|
+
"suspendLicense" => {
|
|
448
|
+
method: "POST",
|
|
449
|
+
path: "/api/v1/licenses/{id}/suspend",
|
|
450
|
+
auth: "bearer",
|
|
451
|
+
summary: "Suspend a license",
|
|
452
|
+
success: { 200 => "json" }
|
|
453
|
+
},
|
|
454
|
+
"transferLicense" => {
|
|
455
|
+
method: "POST",
|
|
456
|
+
path: "/api/v1/licenses/{id}/transfer",
|
|
457
|
+
auth: "bearer",
|
|
458
|
+
summary: "Transfer a license to another assignee",
|
|
459
|
+
success: { 200 => "json" }
|
|
460
|
+
},
|
|
461
|
+
"updateCustomer" => {
|
|
462
|
+
method: "PATCH",
|
|
463
|
+
path: "/api/v1/customers/{id}",
|
|
464
|
+
auth: "bearer",
|
|
465
|
+
summary: "Update a customer",
|
|
466
|
+
success: { 200 => "json" }
|
|
467
|
+
},
|
|
468
|
+
"updateOrder" => {
|
|
469
|
+
method: "PATCH",
|
|
470
|
+
path: "/api/v1/orders/{id}",
|
|
471
|
+
auth: "bearer",
|
|
472
|
+
summary: "Update an order record",
|
|
473
|
+
success: { 200 => "json" }
|
|
474
|
+
},
|
|
475
|
+
"updatePolicy" => {
|
|
476
|
+
method: "PATCH",
|
|
477
|
+
path: "/api/v1/policies/{id}",
|
|
478
|
+
auth: "bearer",
|
|
479
|
+
summary: "Update a policy",
|
|
480
|
+
success: { 200 => "json" }
|
|
481
|
+
},
|
|
482
|
+
"updateProduct" => {
|
|
483
|
+
method: "PATCH",
|
|
484
|
+
path: "/api/v1/products/{id}",
|
|
485
|
+
auth: "bearer",
|
|
486
|
+
summary: "Update a product",
|
|
487
|
+
success: { 200 => "json" }
|
|
488
|
+
},
|
|
489
|
+
"updateProductCustomFieldDefinition" => {
|
|
490
|
+
method: "PATCH",
|
|
491
|
+
path: "/api/v1/products/{id}/custom-fields/{field_id}",
|
|
492
|
+
auth: "bearer",
|
|
493
|
+
summary: "Update a product custom field definition",
|
|
494
|
+
success: { 200 => "json" }
|
|
495
|
+
},
|
|
496
|
+
"updateSubscription" => {
|
|
497
|
+
method: "PATCH",
|
|
498
|
+
path: "/api/v1/subscriptions/{id}",
|
|
499
|
+
auth: "bearer",
|
|
500
|
+
summary: "Update a subscription record",
|
|
501
|
+
success: { 200 => "json" }
|
|
502
|
+
},
|
|
503
|
+
"updateWebhookEndpoint" => {
|
|
504
|
+
method: "PATCH",
|
|
505
|
+
path: "/api/v1/webhooks/{id}",
|
|
506
|
+
auth: "bearer",
|
|
507
|
+
summary: "Update a webhook endpoint",
|
|
508
|
+
success: { 200 => "json" }
|
|
509
|
+
},
|
|
510
|
+
"upsertCustomerCustomFieldValue" => {
|
|
511
|
+
method: "PUT",
|
|
512
|
+
path: "/api/v1/customers/{id}/custom-fields/{field_id}",
|
|
513
|
+
auth: "bearer",
|
|
514
|
+
summary: "Upsert a customer custom field value",
|
|
515
|
+
success: { 200 => "json", 204 => "empty" }
|
|
516
|
+
},
|
|
517
|
+
"upsertLicenseCustomFieldValue" => {
|
|
518
|
+
method: "PUT",
|
|
519
|
+
path: "/api/v1/licenses/{id}/custom-fields/{field_id}",
|
|
520
|
+
auth: "bearer",
|
|
521
|
+
summary: "Upsert a license custom field value",
|
|
522
|
+
success: { 200 => "json", 204 => "empty" }
|
|
523
|
+
},
|
|
524
|
+
"validateLicense" => {
|
|
525
|
+
method: "POST",
|
|
526
|
+
path: "/api/v1/license/validate",
|
|
527
|
+
auth: "license",
|
|
528
|
+
summary: "Validate a bound license and refresh validation timestamps",
|
|
529
|
+
success: { 200 => "json" }
|
|
530
|
+
},
|
|
531
|
+
}.freeze
|
|
532
|
+
MANAGEMENT_OPERATION_IDS = ["assignLicenseFeature", "blacklistLicenseDevice", "createAPIKey", "createCustomer", "createFeature", "createLicense", "createOrder", "createPolicy", "createProduct", "createProductCustomFieldDefinition", "createProductVersion", "createSubscription", "createWebhookEndpoint", "deleteCustomer", "deletePolicy", "deleteProduct", "deleteProductCustomFieldDefinition", "deleteWebhookEndpoint", "getCustomer", "getFeature", "getLicense", "getLicenseDevice", "getOrder", "getPolicy", "getProduct", "getProductCustomFieldDefinition", "getSubscription", "getWebhookEndpoint", "listAPIKeys", "listCustomerCustomFieldValues", "listCustomers", "listEvents", "listFeaturesByProduct", "listLicenseCustomFieldValues", "listLicenseDevices", "listLicenseFeatures", "listLicenses", "listPoliciesByProduct", "listProductCustomFieldDefinitions", "listProductOrders", "listProductSubscriptions", "listProductVersions", "listProducts", "listWebhookEndpoints", "reinstateLicense", "removeLicenseFeature", "renewLicense", "resetLicenseDevice", "resetLicenseUsage", "revokeLicense", "suspendLicense", "transferLicense", "updateCustomer", "updateOrder", "updatePolicy", "updateProduct", "updateProductCustomFieldDefinition", "updateSubscription", "updateWebhookEndpoint", "upsertCustomerCustomFieldValue", "upsertLicenseCustomFieldValue"].freeze
|
|
533
|
+
RUNTIME_OPERATION_IDS = ["activateLicense", "checkLicense", "checkinFloatingLicense", "checkoutFloatingLicense", "consumeLicense", "deactivateLicense", "heartbeatFloatingLicense", "issueOfflineLicense", "validateLicense"].freeze
|
|
534
|
+
SYSTEM_OPERATION_IDS = ["getMetrics", "health", "healthz", "listPublicKeys", "readyz"].freeze
|
|
535
|
+
end
|
|
536
|
+
end
|