@itentialopensource/adapter-digicert_pki 0.1.1 → 1.1.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 (125) hide show
  1. package/.eslintignore +0 -1
  2. package/.jshintrc +3 -0
  3. package/CALLS.md +957 -3
  4. package/CHANGELOG.md +16 -1
  5. package/CONTRIBUTING.md +1 -160
  6. package/ENHANCE.md +2 -2
  7. package/README.md +31 -22
  8. package/adapter.js +13682 -334
  9. package/adapterBase.js +538 -873
  10. package/changelogs/changelog.md +16 -0
  11. package/entities/ACME/action.json +166 -0
  12. package/entities/ACME/mockdatafiles/createAcmeAuthentication-default.json +21 -0
  13. package/entities/ACME/mockdatafiles/getAcmeAuthentication-default.json +21 -0
  14. package/entities/ACME/mockdatafiles/listAcmeAuthentication-default.json +41 -0
  15. package/entities/ACME/mockdatafiles/updateAcmeAuthentication-default.json +21 -0
  16. package/entities/ACME/schema.json +125 -0
  17. package/entities/AuthenticationCACertificates/action.json +107 -0
  18. package/entities/AuthenticationCACertificates/schema.json +155 -0
  19. package/entities/AuthenticationCATemplates/action.json +187 -0
  20. package/entities/AuthenticationCATemplates/mockdatafiles/createAuthenticationCATemplate-default.json +33 -0
  21. package/entities/AuthenticationCATemplates/mockdatafiles/getAuthenticationCATemplate-default.json +33 -0
  22. package/entities/AuthenticationCATemplates/mockdatafiles/updateAuthenticationCATemplate-default.json +33 -0
  23. package/entities/AuthenticationCATemplates/schema.json +137 -0
  24. package/entities/AuthenticationCertificates/action.json +166 -0
  25. package/entities/AuthenticationCertificates/mockdatafiles/addAuthenticationCertificate-default.json +48 -0
  26. package/entities/AuthenticationCertificates/mockdatafiles/getAuthenticationCertificateDetails-default.json +49 -0
  27. package/entities/AuthenticationCertificates/mockdatafiles/listAuthenticationCertificates-default.json +93 -0
  28. package/entities/AuthenticationCertificates/mockdatafiles/updateAuthenticationCertificate-default.json +48 -0
  29. package/entities/AuthenticationCertificates/schema.json +202 -0
  30. package/entities/BatchCertificateEnrollment/action.json +268 -0
  31. package/entities/BatchCertificateEnrollment/mockdatafiles/batchCSREnroll-default.json +22 -0
  32. package/entities/BatchCertificateEnrollment/mockdatafiles/batchEnrollWithKeyGen-default.json +22 -0
  33. package/entities/BatchCertificateEnrollment/mockdatafiles/batchEnrollWithKeyGenMac-default.json +22 -0
  34. package/entities/BatchCertificateEnrollment/mockdatafiles/downloadCertificates-default.json +18 -0
  35. package/entities/BatchCertificateEnrollment/mockdatafiles/getBatchJobSettings-default.json +22 -0
  36. package/entities/BatchCertificateEnrollment/mockdatafiles/regenerateBatchJobPasscode-default.json +22 -0
  37. package/entities/BatchCertificateEnrollment/mockdatafiles/updateBatchJobSettings-default.json +22 -0
  38. package/entities/BatchCertificateEnrollment/schema.json +284 -0
  39. package/entities/CertificateProfiles/action.json +206 -0
  40. package/entities/CertificateProfiles/mockdatafiles/listCertificateProfiles-default.json +219 -0
  41. package/entities/CertificateProfiles/schema.json +116 -0
  42. package/entities/CertificateRequests/action.json +25 -0
  43. package/entities/CertificateRequests/mockdatafiles/getRequestStatus-default.json +5 -0
  44. package/entities/CertificateRequests/schema.json +30 -0
  45. package/entities/CertificateTemplates/action.json +186 -0
  46. package/entities/CertificateTemplates/schema.json +104 -0
  47. package/entities/Certificates/action.json +312 -0
  48. package/entities/Certificates/mockdatafiles/downloadApprovedCertificate-default.json +47 -0
  49. package/entities/Certificates/mockdatafiles/renewBySerial-default.json +23 -0
  50. package/entities/Certificates/mockdatafiles/renewCertificate-default.json +31 -0
  51. package/entities/Certificates/schema.json +462 -0
  52. package/entities/DeviceProfiles/action.json +126 -0
  53. package/entities/DeviceProfiles/mockdatafiles/createDeviceProfile-default.json +28 -0
  54. package/entities/DeviceProfiles/mockdatafiles/getDeviceProfile-default.json +28 -0
  55. package/entities/DeviceProfiles/mockdatafiles/listdeviceprofiles-default.json +53 -0
  56. package/entities/DeviceProfiles/mockdatafiles/updateDeviceProfile-default.json +28 -0
  57. package/entities/DeviceProfiles/schema.json +57 -0
  58. package/entities/Devices/action.json +166 -0
  59. package/entities/Devices/mockdatafiles/archiveDevice-default.json +33 -0
  60. package/entities/Devices/mockdatafiles/disableDevice-default.json +33 -0
  61. package/entities/Devices/mockdatafiles/enableDevice-default.json +33 -0
  62. package/entities/Devices/mockdatafiles/restoreDevice-default.json +33 -0
  63. package/entities/Devices/schema.json +103 -0
  64. package/entities/DevicesV2/action.json +186 -0
  65. package/entities/DevicesV2/mockdatafiles/archiveDeviceV2-default.json +33 -0
  66. package/entities/DevicesV2/mockdatafiles/disableDeviceV2-default.json +33 -0
  67. package/entities/DevicesV2/mockdatafiles/enableDeviceV2-default.json +33 -0
  68. package/entities/DevicesV2/mockdatafiles/restoreDeviceV2-default.json +33 -0
  69. package/entities/DevicesV2/schema.json +115 -0
  70. package/entities/Divisions/action.json +288 -0
  71. package/entities/Divisions/schema.json +164 -0
  72. package/entities/EnrollmentProfilePasscodes/action.json +186 -0
  73. package/entities/EnrollmentProfilePasscodes/schema.json +181 -0
  74. package/entities/EnrollmentProfiles/action.json +191 -0
  75. package/entities/EnrollmentProfiles/mockdatafiles/getEnrollmentProfile-default.json +153 -0
  76. package/entities/EnrollmentProfiles/mockdatafiles/getEnrollmentProfileSpecification-default.json +125 -0
  77. package/entities/EnrollmentProfiles/mockdatafiles/updateEnrollmentProfile-default.json +117 -0
  78. package/entities/EnrollmentProfiles/schema.json +148 -0
  79. package/entities/ExternalBatchCertificateEnrollment/action.json +150 -0
  80. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/batchEnrollExternal-default.json +16 -0
  81. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByCertificateValue-default.json +154 -0
  82. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByCommonName-default.json +150 -0
  83. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByJobIdAndCertificateValue-default.json +36 -0
  84. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByJobIdAndCommonName-default.json +130 -0
  85. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByJobIdAndUniqueId-default.json +42 -0
  86. package/entities/ExternalBatchCertificateEnrollment/schema.json +102 -0
  87. package/entities/Gateways/action.json +187 -0
  88. package/entities/Gateways/schema.json +126 -0
  89. package/entities/ICAs/action.json +46 -0
  90. package/entities/ICAs/schema.json +163 -0
  91. package/entities/OCSPGroups/action.json +167 -0
  92. package/entities/OCSPGroups/schema.json +466 -0
  93. package/metadata.json +49 -0
  94. package/package.json +22 -25
  95. package/pronghorn.json +23155 -266
  96. package/propertiesSchema.json +455 -42
  97. package/refs?service=git-upload-pack +0 -0
  98. package/report/adapter-openapi.json +3224 -0
  99. package/report/adapter-openapi.yaml +2185 -0
  100. package/report/adapterInfo.json +8 -8
  101. package/report/updateReport1691508686598.json +120 -0
  102. package/report/updateReport1692203137726.json +120 -0
  103. package/report/updateReport1694467869659.json +120 -0
  104. package/report/updateReport1698422457936.json +120 -0
  105. package/sampleProperties.json +67 -6
  106. package/test/integration/adapterTestBasicGet.js +1 -1
  107. package/test/integration/adapterTestConnectivity.js +91 -42
  108. package/test/integration/adapterTestIntegration.js +4704 -32
  109. package/test/unit/adapterBaseTestUnit.js +388 -313
  110. package/test/unit/adapterTestUnit.js +5211 -148
  111. package/utils/adapterInfo.js +1 -1
  112. package/utils/addAuth.js +1 -1
  113. package/utils/artifactize.js +1 -1
  114. package/utils/checkMigrate.js +1 -1
  115. package/utils/entitiesToDB.js +1 -0
  116. package/utils/findPath.js +1 -1
  117. package/utils/methodDocumentor.js +71 -23
  118. package/utils/modify.js +13 -15
  119. package/utils/packModificationScript.js +1 -1
  120. package/utils/taskMover.js +309 -0
  121. package/utils/tbScript.js +3 -10
  122. package/utils/tbUtils.js +2 -3
  123. package/utils/testRunner.js +1 -1
  124. package/utils/troubleshootingAdapter.js +1 -3
  125. package/workflows/README.md +0 -3
@@ -0,0 +1,462 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "",
12
+ "enum": [
13
+ "listCertificates",
14
+ "getExampleCertificateRequestCertificateID",
15
+ "renewCertificate",
16
+ "renewBySerial",
17
+ "revokeCertificate",
18
+ "updateNote",
19
+ "revokeCertificateBySerialNumber",
20
+ "downloadCertificate",
21
+ "downloadCertificateBySerialNumber",
22
+ "importCertificate",
23
+ "getImportDetails",
24
+ "getCertificateStatus",
25
+ "getCertificateStatusById",
26
+ "listCertificatesByCertificateValue",
27
+ "downloadApprovedCertificate"
28
+ ],
29
+ "external_name": "ph_request_type"
30
+ },
31
+ "accountId": {
32
+ "type": "string",
33
+ "description": "Limits results to certificates with an account ID that is an exact match for the given string.",
34
+ "parse": false,
35
+ "encode": false,
36
+ "encrypt": {
37
+ "type": "AES",
38
+ "key": ""
39
+ },
40
+ "external_name": "account_id"
41
+ },
42
+ "divisionId": {
43
+ "type": "string",
44
+ "description": "Limits results to certificates with a division ID that is an exact match for the given string.",
45
+ "parse": false,
46
+ "encode": false,
47
+ "encrypt": {
48
+ "type": "AES",
49
+ "key": ""
50
+ },
51
+ "external_name": "division_id"
52
+ },
53
+ "serialNumber": {
54
+ "type": "string",
55
+ "description": "Limits results to certificates with a serial number that contains the given string.",
56
+ "parse": false,
57
+ "encode": false,
58
+ "encrypt": {
59
+ "type": "AES",
60
+ "key": ""
61
+ },
62
+ "external_name": "serial_number"
63
+ },
64
+ "commonName": {
65
+ "type": "string",
66
+ "description": "Limits results to certificates with a common name that contains the given string.",
67
+ "parse": false,
68
+ "encode": false,
69
+ "encrypt": {
70
+ "type": "AES",
71
+ "key": ""
72
+ },
73
+ "external_name": "common_name"
74
+ },
75
+ "certificateValue": {
76
+ "type": "string",
77
+ "description": "Limits results to certificates with a certificate value that contains the given string.",
78
+ "parse": false,
79
+ "encode": false,
80
+ "encrypt": {
81
+ "type": "AES",
82
+ "key": ""
83
+ },
84
+ "external_name": "certificate_value"
85
+ },
86
+ "deviceIdentifier": {
87
+ "type": "string",
88
+ "description": "Limits results to certificates with a device name (`device_identifier`) that contains the given string.",
89
+ "parse": false,
90
+ "encode": false,
91
+ "encrypt": {
92
+ "type": "AES",
93
+ "key": ""
94
+ },
95
+ "external_name": "device_identifier"
96
+ },
97
+ "enrollmentMethod": {
98
+ "type": "",
99
+ "description": "Limits results to certificates issued using the given enrollment method.",
100
+ "parse": false,
101
+ "encode": false,
102
+ "encrypt": {
103
+ "type": "AES",
104
+ "key": ""
105
+ },
106
+ "external_name": "enrollment_method"
107
+ },
108
+ "createdFrom": {
109
+ "type": "string",
110
+ "description": "Limits results to certificates created after the given date. UTC timezone. Format: `YYYY-MM-DD`",
111
+ "parse": false,
112
+ "encode": false,
113
+ "encrypt": {
114
+ "type": "AES",
115
+ "key": ""
116
+ },
117
+ "external_name": "created_from"
118
+ },
119
+ "createdTo": {
120
+ "type": "string",
121
+ "description": "Limits results to certificates created before the given date. UTC timezone. Format: `YYYY-MM-DD`",
122
+ "parse": false,
123
+ "encode": false,
124
+ "encrypt": {
125
+ "type": "AES",
126
+ "key": ""
127
+ },
128
+ "external_name": "created_to"
129
+ },
130
+ "validToStart": {
131
+ "type": "string",
132
+ "description": "Limits results to certificates with a `valid_to` value on or after the given date or date-time. Use with `valid_to_end` to search for certificates with a `valid_to` date ...(description truncated)",
133
+ "parse": false,
134
+ "encode": false,
135
+ "encrypt": {
136
+ "type": "AES",
137
+ "key": ""
138
+ },
139
+ "external_name": "valid_to_start"
140
+ },
141
+ "validToEnd": {
142
+ "type": "string",
143
+ "description": "Limits results to certificates with a `valid_to` value on or before the given date or date-time. Use with `valid_to_start` to search for certificates with a `valid_to` da...(description truncated)",
144
+ "parse": false,
145
+ "encode": false,
146
+ "encrypt": {
147
+ "type": "AES",
148
+ "key": ""
149
+ },
150
+ "external_name": "valid_to_end"
151
+ },
152
+ "issuerCommonName": {
153
+ "type": "string",
154
+ "description": "Limits results to certificates issued from a CA with a common name that contains the given string.",
155
+ "parse": false,
156
+ "encode": false,
157
+ "encrypt": {
158
+ "type": "AES",
159
+ "key": ""
160
+ },
161
+ "external_name": "issuer_common_name"
162
+ },
163
+ "issuerSerialNumber": {
164
+ "type": "string",
165
+ "description": "Limits results to certificates issued from the CA with a serial number that is an exact match for the given string.",
166
+ "parse": false,
167
+ "encode": false,
168
+ "encrypt": {
169
+ "type": "AES",
170
+ "key": ""
171
+ },
172
+ "external_name": "issuer_serial_number"
173
+ },
174
+ "keyType": {
175
+ "type": "string",
176
+ "description": "Limits results to certificates with key type that contains the given string.",
177
+ "parse": false,
178
+ "encode": false,
179
+ "encrypt": {
180
+ "type": "AES",
181
+ "key": ""
182
+ },
183
+ "external_name": "key_type"
184
+ },
185
+ "enrollmentProfileId": {
186
+ "type": "string",
187
+ "description": "Limits results to certificates issued using an enrollment profile with an ID that is an exact match for the given string.",
188
+ "parse": false,
189
+ "encode": false,
190
+ "encrypt": {
191
+ "type": "AES",
192
+ "key": ""
193
+ },
194
+ "external_name": "enrollment_profile_id"
195
+ },
196
+ "revokedFrom": {
197
+ "type": "string",
198
+ "description": "Limits results to certificates revoked after a specific date. UTC timezone. Format: `YYYY-MM-DD`",
199
+ "parse": false,
200
+ "encode": false,
201
+ "encrypt": {
202
+ "type": "AES",
203
+ "key": ""
204
+ },
205
+ "external_name": "revoked_from"
206
+ },
207
+ "revokedTo": {
208
+ "type": "string",
209
+ "description": "Limits results to certificates revoked before a specific date. UTC timezone. Format: `YYYY-MM-DD`",
210
+ "parse": false,
211
+ "encode": false,
212
+ "encrypt": {
213
+ "type": "AES",
214
+ "key": ""
215
+ },
216
+ "external_name": "revoked_to"
217
+ },
218
+ "ocspGroup": {
219
+ "type": "string",
220
+ "description": "Filter results using OCSP group ID. Must be an exact match. Modified using `included_in_ocsp_group`.",
221
+ "parse": false,
222
+ "encode": false,
223
+ "encrypt": {
224
+ "type": "AES",
225
+ "key": ""
226
+ },
227
+ "external_name": "ocsp_group"
228
+ },
229
+ "includedInOcspGroup": {
230
+ "type": "boolean",
231
+ "description": "If true, limits results to certificates included in the given `ocsp_group`. If false, limits results to certificates excluded from the given `ocsp_group`. If omitted, no ...(description truncated)",
232
+ "parse": false,
233
+ "encode": false,
234
+ "encrypt": {
235
+ "type": "AES",
236
+ "key": ""
237
+ },
238
+ "external_name": "included_in_ocsp_group"
239
+ },
240
+ "deviceId": {
241
+ "type": "string",
242
+ "description": "Limits results to certificates with a device ID that is an exact match for the given string.",
243
+ "parse": false,
244
+ "encode": false,
245
+ "encrypt": {
246
+ "type": "AES",
247
+ "key": ""
248
+ },
249
+ "external_name": "device_id"
250
+ },
251
+ "certificateType": {
252
+ "type": "",
253
+ "description": "Limits results to certificates of the given type.",
254
+ "parse": false,
255
+ "encode": false,
256
+ "encrypt": {
257
+ "type": "AES",
258
+ "key": ""
259
+ },
260
+ "external_name": "certificate_type"
261
+ },
262
+ "createdInLastNDays": {
263
+ "type": "number",
264
+ "description": "Limits results to certificates created in the last *n* days, where *n* is a numerical value you provide in your request.",
265
+ "parse": false,
266
+ "encode": false,
267
+ "encrypt": {
268
+ "type": "AES",
269
+ "key": ""
270
+ },
271
+ "external_name": "created_in_last_n_days"
272
+ },
273
+ "createdInCurrentMonth": {
274
+ "type": "boolean",
275
+ "description": "If true, limits results to certificates created in the current month.",
276
+ "parse": false,
277
+ "encode": false,
278
+ "encrypt": {
279
+ "type": "AES",
280
+ "key": ""
281
+ },
282
+ "external_name": "created_in_current_month"
283
+ },
284
+ "createdInPreviousMonth": {
285
+ "type": "boolean",
286
+ "description": "If true, limits results to certificates created in the previous month.",
287
+ "parse": false,
288
+ "encode": false,
289
+ "encrypt": {
290
+ "type": "AES",
291
+ "key": ""
292
+ },
293
+ "external_name": "created_in_previous_month"
294
+ },
295
+ "expiringInNextNDays": {
296
+ "type": "number",
297
+ "description": "Limits results to certificates expiring in the next *n* days, where *n* is a numerical value you provide in your request.",
298
+ "parse": false,
299
+ "encode": false,
300
+ "encrypt": {
301
+ "type": "AES",
302
+ "key": ""
303
+ },
304
+ "external_name": "expiring_in_next_n_days"
305
+ },
306
+ "expiringInRemainingOfCurrentMonth": {
307
+ "type": "number",
308
+ "description": "If true, limits results to certificates expiring before the end of the current month.",
309
+ "parse": false,
310
+ "encode": false,
311
+ "encrypt": {
312
+ "type": "AES",
313
+ "key": ""
314
+ },
315
+ "external_name": "expiring_in_remaining_of_current_month"
316
+ },
317
+ "expiringInNextMonth": {
318
+ "type": "number",
319
+ "description": "If true, limits results to certificates expiring before the end of the next month.",
320
+ "parse": false,
321
+ "encode": false,
322
+ "encrypt": {
323
+ "type": "AES",
324
+ "key": ""
325
+ },
326
+ "external_name": "expiring_in_next_month"
327
+ },
328
+ "keyUsage": {
329
+ "type": "string",
330
+ "description": "Limits results to certificates with the given key usage extension.",
331
+ "parse": false,
332
+ "encode": false,
333
+ "encrypt": {
334
+ "type": "AES",
335
+ "key": ""
336
+ },
337
+ "external_name": "key_usage"
338
+ },
339
+ "extendedKeyUsage": {
340
+ "type": "string",
341
+ "description": "Limits results to certificates with the given extended key usage (EKU) extension.",
342
+ "parse": false,
343
+ "encode": false,
344
+ "encrypt": {
345
+ "type": "AES",
346
+ "key": ""
347
+ },
348
+ "external_name": "extended_key_usage"
349
+ },
350
+ "certificatePolicies": {
351
+ "type": "string",
352
+ "description": "Limits results to certificates with the given certificate policies.",
353
+ "parse": false,
354
+ "encode": false,
355
+ "encrypt": {
356
+ "type": "AES",
357
+ "key": ""
358
+ },
359
+ "external_name": "certificate_policies"
360
+ },
361
+ "authenticationId": {
362
+ "type": "string",
363
+ "description": "Limits results to certificates requested with an authentication ID that contains the given string.",
364
+ "parse": false,
365
+ "encode": false,
366
+ "encrypt": {
367
+ "type": "AES",
368
+ "key": ""
369
+ },
370
+ "external_name": "authentication_id"
371
+ },
372
+ "authenticationType": {
373
+ "type": "",
374
+ "description": "Limits results to certificates requested with the given authentication type.",
375
+ "parse": false,
376
+ "encode": false,
377
+ "encrypt": {
378
+ "type": "AES",
379
+ "key": ""
380
+ },
381
+ "external_name": "authentication_type"
382
+ },
383
+ "authenticationName": {
384
+ "type": "string",
385
+ "description": "Limits results to certificates requested with an authentication name that contains the given string.",
386
+ "parse": false,
387
+ "encode": false,
388
+ "encrypt": {
389
+ "type": "AES",
390
+ "key": ""
391
+ },
392
+ "external_name": "authentication_name"
393
+ },
394
+ "caConnectorType": {
395
+ "type": "",
396
+ "description": "Limits results to certificates with the given CA connector type.",
397
+ "parse": false,
398
+ "encode": false,
399
+ "encrypt": {
400
+ "type": "AES",
401
+ "key": ""
402
+ },
403
+ "external_name": "ca_connector_type"
404
+ },
405
+ "sortBy": {
406
+ "type": "",
407
+ "description": "Sorts results by the given property. Case-insensitive. If not provided, results are sorted in descending order by date created (`created_at`).",
408
+ "parse": false,
409
+ "encode": false,
410
+ "encrypt": {
411
+ "type": "AES",
412
+ "key": ""
413
+ },
414
+ "external_name": "sort_by"
415
+ },
416
+ "sortDirection": {
417
+ "type": "",
418
+ "description": "Sorts results in ascending or descending order by the value of the `sort_by` property. Case-insensitive.",
419
+ "parse": false,
420
+ "encode": false,
421
+ "encrypt": {
422
+ "type": "AES",
423
+ "key": ""
424
+ },
425
+ "external_name": "sort_direction"
426
+ },
427
+ "certificateId": {
428
+ "type": "string",
429
+ "description": "Certificate ID.",
430
+ "parse": false,
431
+ "encode": false,
432
+ "encrypt": {
433
+ "type": "AES",
434
+ "key": ""
435
+ },
436
+ "external_name": "certificate_id"
437
+ },
438
+ "certificateSerialNumber": {
439
+ "type": "string",
440
+ "description": "Certificate serial number.",
441
+ "parse": false,
442
+ "encode": false,
443
+ "encrypt": {
444
+ "type": "AES",
445
+ "key": ""
446
+ },
447
+ "external_name": "certificate_serial_number"
448
+ },
449
+ "jobId": {
450
+ "type": "string",
451
+ "description": "ID of the certificate import job.",
452
+ "parse": false,
453
+ "encode": false,
454
+ "encrypt": {
455
+ "type": "AES",
456
+ "key": ""
457
+ },
458
+ "external_name": "job_id"
459
+ }
460
+ },
461
+ "definitions": {}
462
+ }
@@ -0,0 +1,126 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "createDeviceProfile",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/api/v1/device-profile?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": "mockdatafiles/createDeviceProfile-default.json"
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "listdeviceprofiles",
25
+ "protocol": "REST",
26
+ "method": "GET",
27
+ "entitypath": "{base_path}/{version}/api/v1/device-profile?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "sendGetBody": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": "mockdatafiles/listdeviceprofiles-default.json"
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "getDeviceProfile",
46
+ "protocol": "REST",
47
+ "method": "GET",
48
+ "entitypath": "{base_path}/{version}/api/v1/device-profile/{pathv1}?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "sendGetBody": false,
54
+ "requestDatatype": "JSON",
55
+ "responseDatatype": "JSON",
56
+ "headers": {},
57
+ "responseObjects": [
58
+ {
59
+ "type": "default",
60
+ "key": "",
61
+ "mockFile": "mockdatafiles/getDeviceProfile-default.json"
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "name": "updateDeviceProfile",
67
+ "protocol": "REST",
68
+ "method": "PUT",
69
+ "entitypath": "{base_path}/{version}/api/v1/device-profile/{pathv1}?{query}",
70
+ "requestSchema": "schema.json",
71
+ "responseSchema": "schema.json",
72
+ "timeout": 0,
73
+ "sendEmpty": false,
74
+ "requestDatatype": "JSON",
75
+ "responseDatatype": "JSON",
76
+ "headers": {},
77
+ "responseObjects": [
78
+ {
79
+ "type": "default",
80
+ "key": "",
81
+ "mockFile": "mockdatafiles/updateDeviceProfile-default.json"
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "name": "deleteDeviceProfile",
87
+ "protocol": "REST",
88
+ "method": "PUT",
89
+ "entitypath": "{base_path}/{version}/api/v1/device-profile/{pathv1}/delete?{query}",
90
+ "requestSchema": "schema.json",
91
+ "responseSchema": "schema.json",
92
+ "timeout": 0,
93
+ "sendEmpty": false,
94
+ "requestDatatype": "JSON",
95
+ "responseDatatype": "JSON",
96
+ "headers": {},
97
+ "responseObjects": [
98
+ {
99
+ "type": "default",
100
+ "key": "",
101
+ "mockFile": ""
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ "name": "restoreDeviceProfile",
107
+ "protocol": "REST",
108
+ "method": "PUT",
109
+ "entitypath": "{base_path}/{version}/api/v1/device-profile/{pathv1}/undelete?{query}",
110
+ "requestSchema": "schema.json",
111
+ "responseSchema": "schema.json",
112
+ "timeout": 0,
113
+ "sendEmpty": false,
114
+ "requestDatatype": "JSON",
115
+ "responseDatatype": "JSON",
116
+ "headers": {},
117
+ "responseObjects": [
118
+ {
119
+ "type": "default",
120
+ "key": "",
121
+ "mockFile": ""
122
+ }
123
+ ]
124
+ }
125
+ ]
126
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "id": "dcfe811c-ecf1-4d2e-bf44-462963bc4ade",
3
+ "name": "Device profile example",
4
+ "description": "An example device profile",
5
+ "status": "ACTIVE",
6
+ "device_api_allow_read": true,
7
+ "device_api_allow_write": true,
8
+ "device_api_allow_revoke": true,
9
+ "device_api_allow_renew_certificate": true,
10
+ "device_api_allow_enroll_certificate": false,
11
+ "fields": [
12
+ {
13
+ "id": "226ca489-1ce2-49ef-ab23-5968ae6440ef",
14
+ "name": "mandatory",
15
+ "mandatory": true
16
+ },
17
+ {
18
+ "id": "661820ce-4d8b-45bd-af2b-4baf924b8650",
19
+ "name": "optional",
20
+ "mandatory": false
21
+ }
22
+ ],
23
+ "division": {
24
+ "id": "d5faa1e-623a-47a9-831b-b9397c33395f",
25
+ "name": "IoT Account"
26
+ },
27
+ "account_id": "f92834ce-cdea-1584-b154-193bb198345e"
28
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "id": "dcfe811c-ecf1-4d2e-bf44-462963bc4ade",
3
+ "name": "Device profile example",
4
+ "description": "An example device profile",
5
+ "status": "ACTIVE",
6
+ "device_api_allow_read": true,
7
+ "device_api_allow_write": true,
8
+ "device_api_allow_revoke": true,
9
+ "device_api_allow_renew_certificate": true,
10
+ "device_api_allow_enroll_certificate": false,
11
+ "fields": [
12
+ {
13
+ "id": "226ca489-1ce2-49ef-ab23-5968ae6440ef",
14
+ "name": "mandatory",
15
+ "mandatory": true
16
+ },
17
+ {
18
+ "id": "661820ce-4d8b-45bd-af2b-4baf924b8650",
19
+ "name": "optional",
20
+ "mandatory": false
21
+ }
22
+ ],
23
+ "division": {
24
+ "id": "d5faa1e-623a-47a9-831b-b9397c33395f",
25
+ "name": "IoT Account"
26
+ },
27
+ "account_id": "f92834ce-cdea-1584-b154-193bb198345e"
28
+ }