@itentialopensource/adapter-kentik 0.1.1

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 (91) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +18 -0
  3. package/.jshintrc +3 -0
  4. package/AUTH.md +39 -0
  5. package/BROKER.md +199 -0
  6. package/CALLS.md +170 -0
  7. package/CHANGELOG.md +9 -0
  8. package/CODE_OF_CONDUCT.md +43 -0
  9. package/CONTRIBUTING.md +172 -0
  10. package/ENHANCE.md +69 -0
  11. package/LICENSE +201 -0
  12. package/PROPERTIES.md +641 -0
  13. package/README.md +337 -0
  14. package/SUMMARY.md +9 -0
  15. package/SYSTEMINFO.md +11 -0
  16. package/TROUBLESHOOT.md +47 -0
  17. package/adapter.js +7518 -0
  18. package/adapterBase.js +1787 -0
  19. package/entities/.generic/action.json +214 -0
  20. package/entities/.generic/schema.json +28 -0
  21. package/entities/.system/action.json +50 -0
  22. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  23. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  24. package/entities/.system/schema.json +19 -0
  25. package/entities/.system/schemaTokenReq.json +53 -0
  26. package/entities/.system/schemaTokenResp.json +53 -0
  27. package/entities/ASGroupService/action.json +106 -0
  28. package/entities/ASGroupService/schema.json +34 -0
  29. package/entities/BgpMonitoringAdminService/action.json +126 -0
  30. package/entities/BgpMonitoringAdminService/schema.json +24 -0
  31. package/entities/BgpMonitoringDataService/action.json +44 -0
  32. package/entities/BgpMonitoringDataService/schema.json +20 -0
  33. package/entities/CapacityPlanService/action.json +88 -0
  34. package/entities/CapacityPlanService/schema.json +22 -0
  35. package/entities/CloudExportAdminService/action.json +106 -0
  36. package/entities/CloudExportAdminService/schema.json +34 -0
  37. package/entities/InterfaceService/action.json +126 -0
  38. package/entities/InterfaceService/schema.json +101 -0
  39. package/entities/KmiService/action.json +65 -0
  40. package/entities/KmiService/schema.json +21 -0
  41. package/entities/LabelService/action.json +85 -0
  42. package/entities/LabelService/schema.json +22 -0
  43. package/entities/NetworkClassService/action.json +45 -0
  44. package/entities/NetworkClassService/schema.json +20 -0
  45. package/entities/NotificationChannelService/action.json +66 -0
  46. package/entities/NotificationChannelService/schema.json +21 -0
  47. package/entities/PackageService/action.json +126 -0
  48. package/entities/PackageService/schema.json +24 -0
  49. package/entities/SiteService/action.json +208 -0
  50. package/entities/SiteService/schema.json +28 -0
  51. package/entities/SyntheticsAdminService/action.json +208 -0
  52. package/entities/SyntheticsAdminService/schema.json +39 -0
  53. package/entities/SyntheticsDataService/action.json +44 -0
  54. package/entities/SyntheticsDataService/schema.json +20 -0
  55. package/entities/TenantService/action.json +126 -0
  56. package/entities/TenantService/schema.json +24 -0
  57. package/entities/UserService/action.json +146 -0
  58. package/entities/UserService/schema.json +25 -0
  59. package/error.json +190 -0
  60. package/package.json +85 -0
  61. package/pronghorn.json +9793 -0
  62. package/propertiesDecorators.json +14 -0
  63. package/propertiesSchema.json +1248 -0
  64. package/refs?service=git-upload-pack +0 -0
  65. package/report/creationReport.json +840 -0
  66. package/report/kentik-openapi-combined.json +8602 -0
  67. package/sampleProperties.json +203 -0
  68. package/test/integration/adapterTestBasicGet.js +83 -0
  69. package/test/integration/adapterTestConnectivity.js +93 -0
  70. package/test/integration/adapterTestIntegration.js +3869 -0
  71. package/test/unit/adapterBaseTestUnit.js +949 -0
  72. package/test/unit/adapterTestUnit.js +3728 -0
  73. package/utils/adapterInfo.js +206 -0
  74. package/utils/addAuth.js +94 -0
  75. package/utils/artifactize.js +146 -0
  76. package/utils/basicGet.js +50 -0
  77. package/utils/checkMigrate.js +63 -0
  78. package/utils/entitiesToDB.js +178 -0
  79. package/utils/findPath.js +74 -0
  80. package/utils/methodDocumentor.js +225 -0
  81. package/utils/modify.js +154 -0
  82. package/utils/packModificationScript.js +35 -0
  83. package/utils/patches2bundledDeps.js +90 -0
  84. package/utils/pre-commit.sh +32 -0
  85. package/utils/removeHooks.js +20 -0
  86. package/utils/setup.js +33 -0
  87. package/utils/tbScript.js +246 -0
  88. package/utils/tbUtils.js +490 -0
  89. package/utils/testRunner.js +298 -0
  90. package/utils/troubleshootingAdapter.js +195 -0
  91. package/workflows/README.md +3 -0
@@ -0,0 +1,101 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "listInterface",
12
+ "enum": [
13
+ "listInterface",
14
+ "interfaceCreate",
15
+ "interfaceGet",
16
+ "interfaceDelete",
17
+ "interfaceUpdate",
18
+ "manualClassify"
19
+ ],
20
+ "external_name": "ph_request_type"
21
+ },
22
+ "filtersText": {
23
+ "type": "string",
24
+ "description": "Search text match in interface description and alias.",
25
+ "parse": false,
26
+ "encode": false,
27
+ "encrypt": {
28
+ "type": "AES",
29
+ "key": ""
30
+ },
31
+ "external_name": "filters.text"
32
+ },
33
+ "filtersDeviceIds": {
34
+ "type": "array",
35
+ "description": "Search by device ID.",
36
+ "parse": false,
37
+ "encode": false,
38
+ "encrypt": {
39
+ "type": "AES",
40
+ "key": ""
41
+ },
42
+ "external_name": "filters.deviceIds"
43
+ },
44
+ "filtersConnectivityTypes": {
45
+ "type": "array",
46
+ "description": "Search by type of interface connectivity.",
47
+ "parse": false,
48
+ "encode": false,
49
+ "encrypt": {
50
+ "type": "AES",
51
+ "key": ""
52
+ },
53
+ "external_name": "filters.connectivityTypes"
54
+ },
55
+ "filtersNetworkBoundaries": {
56
+ "type": "array",
57
+ "description": "Search by type of network boundary.",
58
+ "parse": false,
59
+ "encode": false,
60
+ "encrypt": {
61
+ "type": "AES",
62
+ "key": ""
63
+ },
64
+ "external_name": "filters.networkBoundaries"
65
+ },
66
+ "filtersProviders": {
67
+ "type": "array",
68
+ "description": "Search by provider.",
69
+ "parse": false,
70
+ "encode": false,
71
+ "encrypt": {
72
+ "type": "AES",
73
+ "key": ""
74
+ },
75
+ "external_name": "filters.providers"
76
+ },
77
+ "filtersSnmpSpeeds": {
78
+ "type": "array",
79
+ "description": "SNMP speed in Mbps.",
80
+ "parse": false,
81
+ "encode": false,
82
+ "encrypt": {
83
+ "type": "AES",
84
+ "key": ""
85
+ },
86
+ "external_name": "filters.snmpSpeeds"
87
+ },
88
+ "filtersIpTypes": {
89
+ "type": "array",
90
+ "description": "Search by ip address.",
91
+ "parse": false,
92
+ "encode": false,
93
+ "encrypt": {
94
+ "type": "AES",
95
+ "key": ""
96
+ },
97
+ "external_name": "filters.ipTypes"
98
+ }
99
+ },
100
+ "definitions": {}
101
+ }
@@ -0,0 +1,65 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getASNDetails",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "/kmi/{version}/market/{pathv1}/network/{pathv2}/{pathv3}?{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": ""
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "getRankings",
25
+ "protocol": "REST",
26
+ "method": "POST",
27
+ "entitypath": "/kmi/{version}/market/{pathv1}/rankings/{pathv2}?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "requestDatatype": "JSON",
33
+ "responseDatatype": "JSON",
34
+ "headers": {},
35
+ "responseObjects": [
36
+ {
37
+ "type": "default",
38
+ "key": "",
39
+ "mockFile": ""
40
+ }
41
+ ]
42
+ },
43
+ {
44
+ "name": "listMarkets",
45
+ "protocol": "REST",
46
+ "method": "GET",
47
+ "entitypath": "/kmi/{version}/markets?{query}",
48
+ "requestSchema": "schema.json",
49
+ "responseSchema": "schema.json",
50
+ "timeout": 0,
51
+ "sendEmpty": false,
52
+ "sendGetBody": false,
53
+ "requestDatatype": "JSON",
54
+ "responseDatatype": "JSON",
55
+ "headers": {},
56
+ "responseObjects": [
57
+ {
58
+ "type": "default",
59
+ "key": "",
60
+ "mockFile": ""
61
+ }
62
+ ]
63
+ }
64
+ ]
65
+ }
@@ -0,0 +1,21 @@
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": "getASNDetails",
12
+ "enum": [
13
+ "getASNDetails",
14
+ "getRankings",
15
+ "listMarkets"
16
+ ],
17
+ "external_name": "ph_request_type"
18
+ }
19
+ },
20
+ "definitions": {}
21
+ }
@@ -0,0 +1,85 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "listLabels",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "/label/{version}/labels?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": ""
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "createLabel",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "/label/{version}/labels?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": ""
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "deleteLabel",
46
+ "protocol": "REST",
47
+ "method": "DELETE",
48
+ "entitypath": "/label/{version}/labels/{pathv1}?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "requestDatatype": "JSON",
54
+ "responseDatatype": "JSON",
55
+ "headers": {},
56
+ "responseObjects": [
57
+ {
58
+ "type": "default",
59
+ "key": "",
60
+ "mockFile": ""
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ "name": "updateLabel",
66
+ "protocol": "REST",
67
+ "method": "POST",
68
+ "entitypath": "/label/{version}/labels/{pathv1}?{query}",
69
+ "requestSchema": "schema.json",
70
+ "responseSchema": "schema.json",
71
+ "timeout": 0,
72
+ "sendEmpty": false,
73
+ "requestDatatype": "JSON",
74
+ "responseDatatype": "JSON",
75
+ "headers": {},
76
+ "responseObjects": [
77
+ {
78
+ "type": "default",
79
+ "key": "",
80
+ "mockFile": ""
81
+ }
82
+ ]
83
+ }
84
+ ]
85
+ }
@@ -0,0 +1,22 @@
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": "listLabels",
12
+ "enum": [
13
+ "listLabels",
14
+ "createLabel",
15
+ "deleteLabel",
16
+ "updateLabel"
17
+ ],
18
+ "external_name": "ph_request_type"
19
+ }
20
+ },
21
+ "definitions": {}
22
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "networkClassGet",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "/network_class/{version}/network_class?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": ""
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "networkClassUpdate",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "/network_class/{version}/network_class?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": ""
41
+ }
42
+ ]
43
+ }
44
+ ]
45
+ }
@@ -0,0 +1,20 @@
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": "networkClassGet",
12
+ "enum": [
13
+ "networkClassGet",
14
+ "networkClassUpdate"
15
+ ],
16
+ "external_name": "ph_request_type"
17
+ }
18
+ },
19
+ "definitions": {}
20
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "listNotificationChannels",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "/notification_channel/{version}/notification_channels?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": ""
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "searchNotificationChannels",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "/notification_channel/{version}/notification_channels/search?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": ""
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "getNotificationChannel",
46
+ "protocol": "REST",
47
+ "method": "GET",
48
+ "entitypath": "/notification_channel/{version}/notification_channels/{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": ""
62
+ }
63
+ ]
64
+ }
65
+ ]
66
+ }
@@ -0,0 +1,21 @@
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": "listNotificationChannels",
12
+ "enum": [
13
+ "listNotificationChannels",
14
+ "searchNotificationChannels",
15
+ "getNotificationChannel"
16
+ ],
17
+ "external_name": "ph_request_type"
18
+ }
19
+ },
20
+ "definitions": {}
21
+ }
@@ -0,0 +1,126 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "packageList",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "/mkp/{version}/packages?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": ""
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "packageCreate",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "/mkp/{version}/packages?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": ""
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "packageGet",
46
+ "protocol": "REST",
47
+ "method": "GET",
48
+ "entitypath": "/mkp/{version}/packages/{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": ""
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "name": "packageDelete",
67
+ "protocol": "REST",
68
+ "method": "DELETE",
69
+ "entitypath": "/mkp/{version}/packages/{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": ""
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "name": "packageUpdate",
87
+ "protocol": "REST",
88
+ "method": "PUT",
89
+ "entitypath": "/mkp/{version}/packages/{pathv1}?{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": "packagePatch",
107
+ "protocol": "REST",
108
+ "method": "PATCH",
109
+ "entitypath": "/mkp/{version}/packages/{pathv1}?{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,24 @@
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": "packageList",
12
+ "enum": [
13
+ "packageList",
14
+ "packageCreate",
15
+ "packageGet",
16
+ "packageDelete",
17
+ "packageUpdate",
18
+ "packagePatch"
19
+ ],
20
+ "external_name": "ph_request_type"
21
+ }
22
+ },
23
+ "definitions": {}
24
+ }