@corellium/corellium-cli 1.3.4 → 1.3.5
Sign up to get free protection for your applications and to get access to all the features.
- package/coverage/cobertura-coverage.xml +1 -1
- package/coverage/lcov-report/index.html +1 -1
- package/node_modules/@corellium/client-api/README.md +177 -14
- package/node_modules/@corellium/client-api/dist/ApiClient.js +67 -138
- package/node_modules/@corellium/client-api/dist/api/CorelliumApi.js +4668 -905
- package/node_modules/@corellium/client-api/dist/index.js +469 -37
- package/node_modules/@corellium/client-api/dist/model/Address.js +158 -0
- package/node_modules/@corellium/client-api/dist/model/AgentApp.js +159 -0
- package/node_modules/@corellium/client-api/dist/model/AgentAppReadyResponse.js +112 -0
- package/node_modules/@corellium/client-api/dist/model/AgentAppStatus.js +102 -0
- package/node_modules/@corellium/client-api/dist/model/AgentAppsList.js +127 -0
- package/node_modules/@corellium/client-api/dist/model/AgentAppsStatusList.js +127 -0
- package/node_modules/@corellium/client-api/dist/model/AgentError.js +153 -0
- package/node_modules/@corellium/client-api/dist/model/AgentIcons.js +89 -0
- package/node_modules/@corellium/client-api/dist/model/AgentInstallBody.js +93 -0
- package/node_modules/@corellium/client-api/dist/model/AgentProfilesReturn.js +116 -0
- package/node_modules/@corellium/client-api/dist/model/AgentSystemAdbAuth.js +89 -0
- package/node_modules/@corellium/client-api/dist/model/AgentSystemGetPropBody.js +116 -0
- package/node_modules/@corellium/client-api/dist/model/AgentValueReturn.js +93 -0
- package/node_modules/@corellium/client-api/dist/model/AgreedAck.js +89 -0
- package/node_modules/@corellium/client-api/dist/model/ApiConflictError.js +61 -22
- package/node_modules/@corellium/client-api/dist/model/ApiError.js +64 -21
- package/node_modules/@corellium/client-api/dist/model/ApiInternalConsistencyError.js +144 -0
- package/node_modules/@corellium/client-api/dist/model/ApiNotFoundError.js +65 -23
- package/node_modules/@corellium/client-api/dist/model/ApiToken.js +55 -17
- package/node_modules/@corellium/client-api/dist/model/Bit.js +24 -14
- package/node_modules/@corellium/client-api/dist/model/BtraceEnableOptions.js +93 -0
- package/node_modules/@corellium/client-api/dist/model/Button.js +90 -0
- package/node_modules/@corellium/client-api/dist/model/CouponOptions.js +161 -0
- package/node_modules/@corellium/client-api/dist/model/CreateTeam.js +116 -0
- package/node_modules/@corellium/client-api/dist/model/CreatedBy.js +128 -0
- package/node_modules/@corellium/client-api/dist/model/Credentials.js +59 -19
- package/node_modules/@corellium/client-api/dist/model/DomainOptions.js +103 -0
- package/node_modules/@corellium/client-api/dist/model/Extension.js +167 -0
- package/node_modules/@corellium/client-api/dist/model/Features.js +260 -0
- package/node_modules/@corellium/client-api/dist/model/FileChanges.js +120 -0
- package/node_modules/@corellium/client-api/dist/model/Firmware.js +97 -46
- package/node_modules/@corellium/client-api/dist/model/GpioStateDefinition.js +55 -20
- package/node_modules/@corellium/client-api/dist/model/GpiosState.js +120 -0
- package/node_modules/@corellium/client-api/dist/model/GrantTrialRequestResponse.js +93 -0
- package/node_modules/@corellium/client-api/dist/model/Hook.js +211 -0
- package/node_modules/@corellium/client-api/dist/model/Image.js +99 -49
- package/node_modules/@corellium/client-api/dist/model/Instance.js +201 -71
- package/node_modules/@corellium/client-api/dist/model/InstanceAgentState.js +106 -0
- package/node_modules/@corellium/client-api/dist/model/InstanceBootOptions.js +72 -29
- package/node_modules/@corellium/client-api/dist/model/InstanceBootOptionsAdditionalTag.js +90 -0
- package/node_modules/@corellium/client-api/dist/model/InstanceConsoleEndpoint.js +34 -17
- package/node_modules/@corellium/client-api/dist/model/InstanceCreateOptions.js +126 -49
- package/node_modules/@corellium/client-api/dist/model/InstanceInput.js +181 -0
- package/node_modules/@corellium/client-api/dist/model/InstanceNetdumpState.js +115 -0
- package/node_modules/@corellium/client-api/dist/model/InstanceNetmonState.js +56 -16
- package/node_modules/@corellium/client-api/dist/model/InstanceReturn.js +55 -20
- package/node_modules/@corellium/client-api/dist/model/InstanceServices.js +35 -18
- package/node_modules/@corellium/client-api/dist/model/InstanceStartOptions.js +39 -17
- package/node_modules/@corellium/client-api/dist/model/InstanceState.js +52 -21
- package/node_modules/@corellium/client-api/dist/model/InstanceStopOptions.js +30 -17
- package/node_modules/@corellium/client-api/dist/model/InstanceUpgradeBody.js +129 -0
- package/node_modules/@corellium/client-api/dist/model/Invitation.js +115 -0
- package/node_modules/@corellium/client-api/dist/model/InviteRevokeParams.js +94 -0
- package/node_modules/@corellium/client-api/dist/model/InviteRevokeParamsIds.js +150 -0
- package/node_modules/@corellium/client-api/dist/model/Kcrange.js +106 -0
- package/node_modules/@corellium/client-api/dist/model/KernelTask.js +149 -0
- package/node_modules/@corellium/client-api/dist/model/KernelThread.js +115 -0
- package/node_modules/@corellium/client-api/dist/model/MediaPlayBody.js +106 -0
- package/node_modules/@corellium/client-api/dist/model/Model.js +97 -35
- package/node_modules/@corellium/client-api/dist/model/ModelSoftware.js +77 -28
- package/node_modules/@corellium/client-api/dist/model/NetdumpFilter.js +158 -0
- package/node_modules/@corellium/client-api/dist/model/PasswordChangeBody.js +146 -0
- package/node_modules/@corellium/client-api/dist/model/PasswordResetBody.js +146 -0
- package/node_modules/@corellium/client-api/dist/model/PatchInstanceOptions.js +182 -0
- package/node_modules/@corellium/client-api/dist/model/PeripheralsData.js +63 -33
- package/node_modules/@corellium/client-api/dist/model/Plan.js +106 -0
- package/node_modules/@corellium/client-api/dist/model/Project.js +77 -28
- package/node_modules/@corellium/client-api/dist/model/ProjectKey.js +206 -0
- package/node_modules/@corellium/client-api/dist/model/ProjectQuota.js +35 -21
- package/node_modules/@corellium/client-api/dist/model/ProjectSettings.js +35 -21
- package/node_modules/@corellium/client-api/dist/model/ProjectUsage.js +37 -23
- package/node_modules/@corellium/client-api/dist/model/ProxyConfig.js +116 -0
- package/node_modules/@corellium/client-api/dist/model/RateInfo.js +98 -0
- package/node_modules/@corellium/client-api/dist/model/ResetLinkBody.js +116 -0
- package/node_modules/@corellium/client-api/dist/model/Role.js +164 -0
- package/node_modules/@corellium/client-api/dist/model/RotateBody.js +140 -0
- package/node_modules/@corellium/client-api/dist/model/Snapshot.js +56 -32
- package/node_modules/@corellium/client-api/dist/model/SnapshotCreationOptions.js +54 -17
- package/node_modules/@corellium/client-api/dist/model/SnapshotStatus.js +37 -19
- package/node_modules/@corellium/client-api/dist/model/SubscriberInvite.js +277 -0
- package/node_modules/@corellium/client-api/dist/model/Team.js +162 -0
- package/node_modules/@corellium/client-api/dist/model/TeamCreate.js +93 -0
- package/node_modules/@corellium/client-api/dist/model/TextInput.js +93 -0
- package/node_modules/@corellium/client-api/dist/model/Token.js +56 -19
- package/node_modules/@corellium/client-api/dist/model/TouchCurveInput.js +98 -0
- package/node_modules/@corellium/client-api/dist/model/TouchInput.js +89 -0
- package/node_modules/@corellium/client-api/dist/model/Trial.js +112 -0
- package/node_modules/@corellium/client-api/dist/model/TrialExtension.js +124 -0
- package/node_modules/@corellium/client-api/dist/model/TrialRequestMetadata.js +146 -0
- package/node_modules/@corellium/client-api/dist/model/TrialRequestOptions.js +156 -0
- package/node_modules/@corellium/client-api/dist/model/UpdateExtension.js +89 -0
- package/node_modules/@corellium/client-api/dist/model/User.js +170 -0
- package/node_modules/@corellium/client-api/dist/model/UserError.js +65 -22
- package/node_modules/@corellium/client-api/dist/model/V1CreateHookParameters.js +179 -0
- package/node_modules/@corellium/client-api/dist/model/V1LoadExtensionParameters.js +116 -0
- package/node_modules/@corellium/client-api/dist/model/V1SetStateBody.js +50 -18
- package/node_modules/@corellium/client-api/dist/model/ValidationError.js +157 -0
- package/node_modules/@corellium/client-api/dist/model/VolumeOptions.js +42 -21
- package/node_modules/@corellium/client-api/dist/model/VpnDefinition.js +45 -23
- package/node_modules/@corellium/client-api/dist/model/WebPlayerCreateSessionRequest.js +171 -0
- package/node_modules/@corellium/client-api/dist/model/WebPlayerSession.js +142 -0
- package/node_modules/@corellium/client-api/package.json +1 -1
- package/package.json +2 -2
- package/renovate.json +96 -0
- package/src/commands/login.js +6 -4
- package/src/commands/mast/constants.js +1 -2
- package/src/commands/mast/create-assessment.js +2 -3
- package/src/commands/mast/delete-assessment.js +2 -3
- package/src/commands/mast/download-report.js +4 -4
- package/src/commands/mast/get-assessment.js +2 -3
- package/src/commands/mast/get-assessments.js +2 -3
- package/src/commands/mast/start-monitor.js +2 -3
- package/src/commands/mast/stop-monitor.js +2 -3
- package/src/commands/mast/test.js +2 -3
- package/src/commands/mast/api-base-path.js +0 -21
@@ -0,0 +1,120 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports["default"] = void 0;
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
8
|
+
var _GpioStateDefinition = _interopRequireDefault(require("./GpioStateDefinition"));
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
10
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
11
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
12
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
13
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
14
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
15
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
|
16
|
+
* Corellium API
|
17
|
+
* REST API to manage your virtual devices.
|
18
|
+
*
|
19
|
+
* The version of the OpenAPI document: 4.5.0-16775
|
20
|
+
*
|
21
|
+
*
|
22
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
23
|
+
* https://openapi-generator.tech
|
24
|
+
* Do not edit the class manually.
|
25
|
+
*
|
26
|
+
*/
|
27
|
+
/**
|
28
|
+
* The GpiosState model module.
|
29
|
+
* @module model/GpiosState
|
30
|
+
* @version 0.3.2
|
31
|
+
*/
|
32
|
+
var GpiosState = /*#__PURE__*/function () {
|
33
|
+
/**
|
34
|
+
* Constructs a new <code>GpiosState</code>.
|
35
|
+
* Current state of GPIOs
|
36
|
+
* @alias module:model/GpiosState
|
37
|
+
*/
|
38
|
+
function GpiosState() {
|
39
|
+
_classCallCheck(this, GpiosState);
|
40
|
+
GpiosState.initialize(this);
|
41
|
+
}
|
42
|
+
|
43
|
+
/**
|
44
|
+
* Initializes the fields of this object.
|
45
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
46
|
+
* Only for internal use.
|
47
|
+
*/
|
48
|
+
_createClass(GpiosState, null, [{
|
49
|
+
key: "initialize",
|
50
|
+
value: function initialize(obj) {}
|
51
|
+
|
52
|
+
/**
|
53
|
+
* Constructs a <code>GpiosState</code> from a plain JavaScript object, optionally creating a new instance.
|
54
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
55
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
56
|
+
* @param {module:model/GpiosState} obj Optional instance to populate.
|
57
|
+
* @return {module:model/GpiosState} The populated <code>GpiosState</code> instance.
|
58
|
+
*/
|
59
|
+
}, {
|
60
|
+
key: "constructFromObject",
|
61
|
+
value: function constructFromObject(data, obj) {
|
62
|
+
if (data) {
|
63
|
+
obj = obj || new GpiosState();
|
64
|
+
if (data.hasOwnProperty('led')) {
|
65
|
+
obj['led'] = _GpioStateDefinition["default"].constructFromObject(data['led']);
|
66
|
+
}
|
67
|
+
if (data.hasOwnProperty('button')) {
|
68
|
+
obj['button'] = _GpioStateDefinition["default"].constructFromObject(data['button']);
|
69
|
+
}
|
70
|
+
if (data.hasOwnProperty('switch')) {
|
71
|
+
obj['switch'] = _GpioStateDefinition["default"].constructFromObject(data['switch']);
|
72
|
+
}
|
73
|
+
}
|
74
|
+
return obj;
|
75
|
+
}
|
76
|
+
|
77
|
+
/**
|
78
|
+
* Validates the JSON data with respect to <code>GpiosState</code>.
|
79
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
80
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>GpiosState</code>.
|
81
|
+
*/
|
82
|
+
}, {
|
83
|
+
key: "validateJSON",
|
84
|
+
value: function validateJSON(data) {
|
85
|
+
// validate the optional field `led`
|
86
|
+
if (data['led']) {
|
87
|
+
// data not null
|
88
|
+
_GpioStateDefinition["default"].validateJSON(data['led']);
|
89
|
+
}
|
90
|
+
// validate the optional field `button`
|
91
|
+
if (data['button']) {
|
92
|
+
// data not null
|
93
|
+
_GpioStateDefinition["default"].validateJSON(data['button']);
|
94
|
+
}
|
95
|
+
// validate the optional field `switch`
|
96
|
+
if (data['switch']) {
|
97
|
+
// data not null
|
98
|
+
_GpioStateDefinition["default"].validateJSON(data['switch']);
|
99
|
+
}
|
100
|
+
return true;
|
101
|
+
}
|
102
|
+
}]);
|
103
|
+
return GpiosState;
|
104
|
+
}();
|
105
|
+
/**
|
106
|
+
* @member {module:model/GpioStateDefinition} led
|
107
|
+
*/
|
108
|
+
GpiosState.prototype['led'] = undefined;
|
109
|
+
|
110
|
+
/**
|
111
|
+
* @member {module:model/GpioStateDefinition} button
|
112
|
+
*/
|
113
|
+
GpiosState.prototype['button'] = undefined;
|
114
|
+
|
115
|
+
/**
|
116
|
+
* @member {module:model/GpioStateDefinition} switch
|
117
|
+
*/
|
118
|
+
GpiosState.prototype['switch'] = undefined;
|
119
|
+
var _default = GpiosState;
|
120
|
+
exports["default"] = _default;
|
@@ -0,0 +1,93 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports["default"] = void 0;
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
9
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
10
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
11
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
12
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
14
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
|
15
|
+
* Corellium API
|
16
|
+
* REST API to manage your virtual devices.
|
17
|
+
*
|
18
|
+
* The version of the OpenAPI document: 4.5.0-16775
|
19
|
+
*
|
20
|
+
*
|
21
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
22
|
+
* https://openapi-generator.tech
|
23
|
+
* Do not edit the class manually.
|
24
|
+
*
|
25
|
+
*/
|
26
|
+
/**
|
27
|
+
* The GrantTrialRequestResponse model module.
|
28
|
+
* @module model/GrantTrialRequestResponse
|
29
|
+
* @version 0.3.2
|
30
|
+
*/
|
31
|
+
var GrantTrialRequestResponse = /*#__PURE__*/function () {
|
32
|
+
/**
|
33
|
+
* Constructs a new <code>GrantTrialRequestResponse</code>.
|
34
|
+
*
|
35
|
+
* @alias module:model/GrantTrialRequestResponse
|
36
|
+
*/
|
37
|
+
function GrantTrialRequestResponse() {
|
38
|
+
_classCallCheck(this, GrantTrialRequestResponse);
|
39
|
+
GrantTrialRequestResponse.initialize(this);
|
40
|
+
}
|
41
|
+
|
42
|
+
/**
|
43
|
+
* Initializes the fields of this object.
|
44
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
45
|
+
* Only for internal use.
|
46
|
+
*/
|
47
|
+
_createClass(GrantTrialRequestResponse, null, [{
|
48
|
+
key: "initialize",
|
49
|
+
value: function initialize(obj) {}
|
50
|
+
|
51
|
+
/**
|
52
|
+
* Constructs a <code>GrantTrialRequestResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
53
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
54
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
55
|
+
* @param {module:model/GrantTrialRequestResponse} obj Optional instance to populate.
|
56
|
+
* @return {module:model/GrantTrialRequestResponse} The populated <code>GrantTrialRequestResponse</code> instance.
|
57
|
+
*/
|
58
|
+
}, {
|
59
|
+
key: "constructFromObject",
|
60
|
+
value: function constructFromObject(data, obj) {
|
61
|
+
if (data) {
|
62
|
+
obj = obj || new GrantTrialRequestResponse();
|
63
|
+
if (data.hasOwnProperty('code')) {
|
64
|
+
obj['code'] = _ApiClient["default"].convertToType(data['code'], 'String');
|
65
|
+
}
|
66
|
+
}
|
67
|
+
return obj;
|
68
|
+
}
|
69
|
+
|
70
|
+
/**
|
71
|
+
* Validates the JSON data with respect to <code>GrantTrialRequestResponse</code>.
|
72
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
73
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>GrantTrialRequestResponse</code>.
|
74
|
+
*/
|
75
|
+
}, {
|
76
|
+
key: "validateJSON",
|
77
|
+
value: function validateJSON(data) {
|
78
|
+
// ensure the json data is a string
|
79
|
+
if (data['code'] && !(typeof data['code'] === 'string' || data['code'] instanceof String)) {
|
80
|
+
throw new Error("Expected the field `code` to be a primitive type in the JSON string but got " + data['code']);
|
81
|
+
}
|
82
|
+
return true;
|
83
|
+
}
|
84
|
+
}]);
|
85
|
+
return GrantTrialRequestResponse;
|
86
|
+
}();
|
87
|
+
/**
|
88
|
+
* Trial request code
|
89
|
+
* @member {String} code
|
90
|
+
*/
|
91
|
+
GrantTrialRequestResponse.prototype['code'] = undefined;
|
92
|
+
var _default = GrantTrialRequestResponse;
|
93
|
+
exports["default"] = _default;
|
@@ -0,0 +1,211 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports["default"] = void 0;
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
9
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
10
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
11
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
12
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
14
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
|
15
|
+
* Corellium API
|
16
|
+
* REST API to manage your virtual devices.
|
17
|
+
*
|
18
|
+
* The version of the OpenAPI document: 4.5.0-16775
|
19
|
+
*
|
20
|
+
*
|
21
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
22
|
+
* https://openapi-generator.tech
|
23
|
+
* Do not edit the class manually.
|
24
|
+
*
|
25
|
+
*/
|
26
|
+
/**
|
27
|
+
* The Hook model module.
|
28
|
+
* @module model/Hook
|
29
|
+
* @version 0.3.2
|
30
|
+
*/
|
31
|
+
var Hook = /*#__PURE__*/function () {
|
32
|
+
/**
|
33
|
+
* Constructs a new <code>Hook</code>.
|
34
|
+
*
|
35
|
+
* @alias module:model/Hook
|
36
|
+
*/
|
37
|
+
function Hook() {
|
38
|
+
_classCallCheck(this, Hook);
|
39
|
+
Hook.initialize(this);
|
40
|
+
}
|
41
|
+
|
42
|
+
/**
|
43
|
+
* Initializes the fields of this object.
|
44
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
45
|
+
* Only for internal use.
|
46
|
+
*/
|
47
|
+
_createClass(Hook, null, [{
|
48
|
+
key: "initialize",
|
49
|
+
value: function initialize(obj) {}
|
50
|
+
|
51
|
+
/**
|
52
|
+
* Constructs a <code>Hook</code> from a plain JavaScript object, optionally creating a new instance.
|
53
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
54
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
55
|
+
* @param {module:model/Hook} obj Optional instance to populate.
|
56
|
+
* @return {module:model/Hook} The populated <code>Hook</code> instance.
|
57
|
+
*/
|
58
|
+
}, {
|
59
|
+
key: "constructFromObject",
|
60
|
+
value: function constructFromObject(data, obj) {
|
61
|
+
if (data) {
|
62
|
+
obj = obj || new Hook();
|
63
|
+
if (data.hasOwnProperty('identifier')) {
|
64
|
+
obj['identifier'] = _ApiClient["default"].convertToType(data['identifier'], 'String');
|
65
|
+
}
|
66
|
+
if (data.hasOwnProperty('label')) {
|
67
|
+
obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
|
68
|
+
}
|
69
|
+
if (data.hasOwnProperty('address')) {
|
70
|
+
obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String');
|
71
|
+
}
|
72
|
+
if (data.hasOwnProperty('patch')) {
|
73
|
+
obj['patch'] = _ApiClient["default"].convertToType(data['patch'], 'String');
|
74
|
+
}
|
75
|
+
if (data.hasOwnProperty('patchType')) {
|
76
|
+
obj['patchType'] = _ApiClient["default"].convertToType(data['patchType'], 'String');
|
77
|
+
}
|
78
|
+
if (data.hasOwnProperty('enabled')) {
|
79
|
+
obj['enabled'] = _ApiClient["default"].convertToType(data['enabled'], 'Boolean');
|
80
|
+
}
|
81
|
+
if (data.hasOwnProperty('createdAt')) {
|
82
|
+
obj['createdAt'] = _ApiClient["default"].convertToType(data['createdAt'], 'String');
|
83
|
+
}
|
84
|
+
if (data.hasOwnProperty('updatedAt')) {
|
85
|
+
obj['updatedAt'] = _ApiClient["default"].convertToType(data['updatedAt'], 'String');
|
86
|
+
}
|
87
|
+
if (data.hasOwnProperty('instanceId')) {
|
88
|
+
obj['instanceId'] = _ApiClient["default"].convertToType(data['instanceId'], 'String');
|
89
|
+
}
|
90
|
+
}
|
91
|
+
return obj;
|
92
|
+
}
|
93
|
+
|
94
|
+
/**
|
95
|
+
* Validates the JSON data with respect to <code>Hook</code>.
|
96
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
97
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Hook</code>.
|
98
|
+
*/
|
99
|
+
}, {
|
100
|
+
key: "validateJSON",
|
101
|
+
value: function validateJSON(data) {
|
102
|
+
// ensure the json data is a string
|
103
|
+
if (data['identifier'] && !(typeof data['identifier'] === 'string' || data['identifier'] instanceof String)) {
|
104
|
+
throw new Error("Expected the field `identifier` to be a primitive type in the JSON string but got " + data['identifier']);
|
105
|
+
}
|
106
|
+
// ensure the json data is a string
|
107
|
+
if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
|
108
|
+
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
|
109
|
+
}
|
110
|
+
// ensure the json data is a string
|
111
|
+
if (data['address'] && !(typeof data['address'] === 'string' || data['address'] instanceof String)) {
|
112
|
+
throw new Error("Expected the field `address` to be a primitive type in the JSON string but got " + data['address']);
|
113
|
+
}
|
114
|
+
// ensure the json data is a string
|
115
|
+
if (data['patch'] && !(typeof data['patch'] === 'string' || data['patch'] instanceof String)) {
|
116
|
+
throw new Error("Expected the field `patch` to be a primitive type in the JSON string but got " + data['patch']);
|
117
|
+
}
|
118
|
+
// ensure the json data is a string
|
119
|
+
if (data['patchType'] && !(typeof data['patchType'] === 'string' || data['patchType'] instanceof String)) {
|
120
|
+
throw new Error("Expected the field `patchType` to be a primitive type in the JSON string but got " + data['patchType']);
|
121
|
+
}
|
122
|
+
// ensure the json data is a string
|
123
|
+
if (data['createdAt'] && !(typeof data['createdAt'] === 'string' || data['createdAt'] instanceof String)) {
|
124
|
+
throw new Error("Expected the field `createdAt` to be a primitive type in the JSON string but got " + data['createdAt']);
|
125
|
+
}
|
126
|
+
// ensure the json data is a string
|
127
|
+
if (data['updatedAt'] && !(typeof data['updatedAt'] === 'string' || data['updatedAt'] instanceof String)) {
|
128
|
+
throw new Error("Expected the field `updatedAt` to be a primitive type in the JSON string but got " + data['updatedAt']);
|
129
|
+
}
|
130
|
+
// ensure the json data is a string
|
131
|
+
if (data['instanceId'] && !(typeof data['instanceId'] === 'string' || data['instanceId'] instanceof String)) {
|
132
|
+
throw new Error("Expected the field `instanceId` to be a primitive type in the JSON string but got " + data['instanceId']);
|
133
|
+
}
|
134
|
+
return true;
|
135
|
+
}
|
136
|
+
}]);
|
137
|
+
return Hook;
|
138
|
+
}();
|
139
|
+
/**
|
140
|
+
* Identifier
|
141
|
+
* @member {String} identifier
|
142
|
+
*/
|
143
|
+
Hook.prototype['identifier'] = undefined;
|
144
|
+
|
145
|
+
/**
|
146
|
+
* Label
|
147
|
+
* @member {String} label
|
148
|
+
*/
|
149
|
+
Hook.prototype['label'] = undefined;
|
150
|
+
|
151
|
+
/**
|
152
|
+
* Address
|
153
|
+
* @member {String} address
|
154
|
+
*/
|
155
|
+
Hook.prototype['address'] = undefined;
|
156
|
+
|
157
|
+
/**
|
158
|
+
* Patch
|
159
|
+
* @member {String} patch
|
160
|
+
*/
|
161
|
+
Hook.prototype['patch'] = undefined;
|
162
|
+
|
163
|
+
/**
|
164
|
+
* Patch Type
|
165
|
+
* @member {module:model/Hook.PatchTypeEnum} patchType
|
166
|
+
*/
|
167
|
+
Hook.prototype['patchType'] = undefined;
|
168
|
+
|
169
|
+
/**
|
170
|
+
* If true, instances can call required hooks
|
171
|
+
* @member {Boolean} enabled
|
172
|
+
*/
|
173
|
+
Hook.prototype['enabled'] = undefined;
|
174
|
+
|
175
|
+
/**
|
176
|
+
* Created Date in ISO-8601 format e.g. 2022-05-06T02:39:23.000Z
|
177
|
+
* @member {String} createdAt
|
178
|
+
*/
|
179
|
+
Hook.prototype['createdAt'] = undefined;
|
180
|
+
|
181
|
+
/**
|
182
|
+
* Updated Date in ISO-8601 format e.g. 2022-05-06T02:39:23.000Z
|
183
|
+
* @member {String} updatedAt
|
184
|
+
*/
|
185
|
+
Hook.prototype['updatedAt'] = undefined;
|
186
|
+
|
187
|
+
/**
|
188
|
+
* Instance Id
|
189
|
+
* @member {String} instanceId
|
190
|
+
*/
|
191
|
+
Hook.prototype['instanceId'] = undefined;
|
192
|
+
|
193
|
+
/**
|
194
|
+
* Allowed values for the <code>patchType</code> property.
|
195
|
+
* @enum {String}
|
196
|
+
* @readonly
|
197
|
+
*/
|
198
|
+
Hook['PatchTypeEnum'] = {
|
199
|
+
/**
|
200
|
+
* value: "csmfcc"
|
201
|
+
* @const
|
202
|
+
*/
|
203
|
+
"csmfcc": "csmfcc",
|
204
|
+
/**
|
205
|
+
* value: "csmfvm"
|
206
|
+
* @const
|
207
|
+
*/
|
208
|
+
"csmfvm": "csmfvm"
|
209
|
+
};
|
210
|
+
var _default = Hook;
|
211
|
+
exports["default"] = _default;
|