@corellium/corellium-cli 1.3.4 → 1.3.6
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 +3 -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
@@ -4,42 +4,50 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports["default"] = void 0;
|
7
|
-
|
8
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
9
|
-
|
10
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
11
|
-
|
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); }
|
12
10
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
13
|
-
|
14
|
-
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, descriptor.key, descriptor); } }
|
15
|
-
|
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); } }
|
16
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; }
|
17
|
-
|
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
|
+
*/
|
18
26
|
/**
|
19
27
|
* The InstanceNetmonState model module.
|
20
28
|
* @module model/InstanceNetmonState
|
21
|
-
* @version 0.
|
29
|
+
* @version 0.3.2
|
22
30
|
*/
|
23
31
|
var InstanceNetmonState = /*#__PURE__*/function () {
|
24
32
|
/**
|
25
33
|
* Constructs a new <code>InstanceNetmonState</code>.
|
34
|
+
*
|
26
35
|
* @alias module:model/InstanceNetmonState
|
27
36
|
*/
|
28
37
|
function InstanceNetmonState() {
|
29
38
|
_classCallCheck(this, InstanceNetmonState);
|
30
|
-
|
31
39
|
InstanceNetmonState.initialize(this);
|
32
40
|
}
|
41
|
+
|
33
42
|
/**
|
34
43
|
* Initializes the fields of this object.
|
35
44
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
36
45
|
* Only for internal use.
|
37
46
|
*/
|
38
|
-
|
39
|
-
|
40
47
|
_createClass(InstanceNetmonState, null, [{
|
41
48
|
key: "initialize",
|
42
49
|
value: function initialize(obj) {}
|
50
|
+
|
43
51
|
/**
|
44
52
|
* Constructs a <code>InstanceNetmonState</code> from a plain JavaScript object, optionally creating a new instance.
|
45
53
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
@@ -47,29 +55,61 @@ var InstanceNetmonState = /*#__PURE__*/function () {
|
|
47
55
|
* @param {module:model/InstanceNetmonState} obj Optional instance to populate.
|
48
56
|
* @return {module:model/InstanceNetmonState} The populated <code>InstanceNetmonState</code> instance.
|
49
57
|
*/
|
50
|
-
|
51
58
|
}, {
|
52
59
|
key: "constructFromObject",
|
53
60
|
value: function constructFromObject(data, obj) {
|
54
61
|
if (data) {
|
55
62
|
obj = obj || new InstanceNetmonState();
|
56
|
-
|
63
|
+
if (data.hasOwnProperty('hash')) {
|
64
|
+
obj['hash'] = _ApiClient["default"].convertToType(data['hash'], 'String');
|
65
|
+
}
|
66
|
+
if (data.hasOwnProperty('info')) {
|
67
|
+
obj['info'] = _ApiClient["default"].convertToType(data['info'], 'String');
|
68
|
+
}
|
57
69
|
if (data.hasOwnProperty('enabled')) {
|
58
70
|
obj['enabled'] = _ApiClient["default"].convertToType(data['enabled'], 'Boolean');
|
59
71
|
}
|
60
72
|
}
|
61
|
-
|
62
73
|
return obj;
|
63
74
|
}
|
64
|
-
}]);
|
65
75
|
|
76
|
+
/**
|
77
|
+
* Validates the JSON data with respect to <code>InstanceNetmonState</code>.
|
78
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
79
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>InstanceNetmonState</code>.
|
80
|
+
*/
|
81
|
+
}, {
|
82
|
+
key: "validateJSON",
|
83
|
+
value: function validateJSON(data) {
|
84
|
+
// ensure the json data is a string
|
85
|
+
if (data['hash'] && !(typeof data['hash'] === 'string' || data['hash'] instanceof String)) {
|
86
|
+
throw new Error("Expected the field `hash` to be a primitive type in the JSON string but got " + data['hash']);
|
87
|
+
}
|
88
|
+
// ensure the json data is a string
|
89
|
+
if (data['info'] && !(typeof data['info'] === 'string' || data['info'] instanceof String)) {
|
90
|
+
throw new Error("Expected the field `info` to be a primitive type in the JSON string but got " + data['info']);
|
91
|
+
}
|
92
|
+
return true;
|
93
|
+
}
|
94
|
+
}]);
|
66
95
|
return InstanceNetmonState;
|
67
96
|
}();
|
68
97
|
/**
|
69
|
-
*
|
98
|
+
*
|
99
|
+
* @member {String} hash
|
70
100
|
*/
|
101
|
+
InstanceNetmonState.prototype['hash'] = undefined;
|
71
102
|
|
103
|
+
/**
|
104
|
+
*
|
105
|
+
* @member {String} info
|
106
|
+
*/
|
107
|
+
InstanceNetmonState.prototype['info'] = undefined;
|
72
108
|
|
109
|
+
/**
|
110
|
+
*
|
111
|
+
* @member {Boolean} enabled
|
112
|
+
*/
|
73
113
|
InstanceNetmonState.prototype['enabled'] = undefined;
|
74
114
|
var _default = InstanceNetmonState;
|
75
115
|
exports["default"] = _default;
|
@@ -4,49 +4,59 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports["default"] = void 0;
|
7
|
-
|
8
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
9
|
-
|
10
8
|
var _InstanceState = _interopRequireDefault(require("./InstanceState"));
|
11
|
-
|
12
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
13
|
-
|
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 _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
12
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
13
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
14
14
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
15
|
-
|
16
|
-
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, descriptor.key, descriptor); } }
|
17
|
-
|
15
|
+
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); } }
|
18
16
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
19
|
-
|
17
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
18
|
+
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); } /**
|
19
|
+
* Corellium API
|
20
|
+
* REST API to manage your virtual devices.
|
21
|
+
*
|
22
|
+
* The version of the OpenAPI document: 4.5.0-16775
|
23
|
+
*
|
24
|
+
*
|
25
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
26
|
+
* https://openapi-generator.tech
|
27
|
+
* Do not edit the class manually.
|
28
|
+
*
|
29
|
+
*/
|
20
30
|
/**
|
21
31
|
* The InstanceReturn model module.
|
22
32
|
* @module model/InstanceReturn
|
23
|
-
* @version 0.
|
33
|
+
* @version 0.3.2
|
24
34
|
*/
|
25
35
|
var InstanceReturn = /*#__PURE__*/function () {
|
26
36
|
/**
|
27
37
|
* Constructs a new <code>InstanceReturn</code>.
|
38
|
+
*
|
28
39
|
* @alias module:model/InstanceReturn
|
29
40
|
* @param id {String} Instance ID
|
30
41
|
* @param state {module:model/InstanceState}
|
31
42
|
*/
|
32
43
|
function InstanceReturn(id, state) {
|
33
44
|
_classCallCheck(this, InstanceReturn);
|
34
|
-
|
35
45
|
InstanceReturn.initialize(this, id, state);
|
36
46
|
}
|
47
|
+
|
37
48
|
/**
|
38
49
|
* Initializes the fields of this object.
|
39
50
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
40
51
|
* Only for internal use.
|
41
52
|
*/
|
42
|
-
|
43
|
-
|
44
53
|
_createClass(InstanceReturn, null, [{
|
45
54
|
key: "initialize",
|
46
55
|
value: function initialize(obj, id, state) {
|
47
56
|
obj['id'] = id;
|
48
57
|
obj['state'] = state;
|
49
58
|
}
|
59
|
+
|
50
60
|
/**
|
51
61
|
* Constructs a <code>InstanceReturn</code> from a plain JavaScript object, optionally creating a new instance.
|
52
62
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
@@ -54,39 +64,64 @@ var InstanceReturn = /*#__PURE__*/function () {
|
|
54
64
|
* @param {module:model/InstanceReturn} obj Optional instance to populate.
|
55
65
|
* @return {module:model/InstanceReturn} The populated <code>InstanceReturn</code> instance.
|
56
66
|
*/
|
57
|
-
|
58
67
|
}, {
|
59
68
|
key: "constructFromObject",
|
60
69
|
value: function constructFromObject(data, obj) {
|
61
70
|
if (data) {
|
62
71
|
obj = obj || new InstanceReturn();
|
63
|
-
|
64
72
|
if (data.hasOwnProperty('id')) {
|
65
73
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
66
74
|
}
|
67
|
-
|
68
75
|
if (data.hasOwnProperty('state')) {
|
69
76
|
obj['state'] = _InstanceState["default"].constructFromObject(data['state']);
|
70
77
|
}
|
71
78
|
}
|
72
|
-
|
73
79
|
return obj;
|
74
80
|
}
|
75
|
-
}]);
|
76
81
|
|
82
|
+
/**
|
83
|
+
* Validates the JSON data with respect to <code>InstanceReturn</code>.
|
84
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
85
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>InstanceReturn</code>.
|
86
|
+
*/
|
87
|
+
}, {
|
88
|
+
key: "validateJSON",
|
89
|
+
value: function validateJSON(data) {
|
90
|
+
// check to make sure all required properties are present in the JSON string
|
91
|
+
var _iterator = _createForOfIteratorHelper(InstanceReturn.RequiredProperties),
|
92
|
+
_step;
|
93
|
+
try {
|
94
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
95
|
+
var property = _step.value;
|
96
|
+
if (!data[property]) {
|
97
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
98
|
+
}
|
99
|
+
}
|
100
|
+
// ensure the json data is a string
|
101
|
+
} catch (err) {
|
102
|
+
_iterator.e(err);
|
103
|
+
} finally {
|
104
|
+
_iterator.f();
|
105
|
+
}
|
106
|
+
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
|
107
|
+
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
|
108
|
+
}
|
109
|
+
return true;
|
110
|
+
}
|
111
|
+
}]);
|
77
112
|
return InstanceReturn;
|
78
113
|
}();
|
114
|
+
InstanceReturn.RequiredProperties = ["id", "state"];
|
115
|
+
|
79
116
|
/**
|
80
117
|
* Instance ID
|
81
118
|
* @member {String} id
|
82
119
|
*/
|
83
|
-
|
84
|
-
|
85
120
|
InstanceReturn.prototype['id'] = undefined;
|
121
|
+
|
86
122
|
/**
|
87
123
|
* @member {module:model/InstanceState} state
|
88
124
|
*/
|
89
|
-
|
90
125
|
InstanceReturn.prototype['state'] = undefined;
|
91
126
|
var _default = InstanceReturn;
|
92
127
|
exports["default"] = _default;
|
@@ -4,44 +4,51 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports["default"] = void 0;
|
7
|
-
|
8
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
9
|
-
|
10
8
|
var _VpnDefinition = _interopRequireDefault(require("./VpnDefinition"));
|
11
|
-
|
12
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
13
|
-
|
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); }
|
14
11
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
15
|
-
|
16
|
-
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, descriptor.key, descriptor); } }
|
17
|
-
|
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); } }
|
18
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; }
|
19
|
-
|
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
|
+
*/
|
20
27
|
/**
|
21
28
|
* The InstanceServices model module.
|
22
29
|
* @module model/InstanceServices
|
23
|
-
* @version 0.
|
30
|
+
* @version 0.3.2
|
24
31
|
*/
|
25
32
|
var InstanceServices = /*#__PURE__*/function () {
|
26
33
|
/**
|
27
34
|
* Constructs a new <code>InstanceServices</code>.
|
35
|
+
*
|
28
36
|
* @alias module:model/InstanceServices
|
29
37
|
*/
|
30
38
|
function InstanceServices() {
|
31
39
|
_classCallCheck(this, InstanceServices);
|
32
|
-
|
33
40
|
InstanceServices.initialize(this);
|
34
41
|
}
|
42
|
+
|
35
43
|
/**
|
36
44
|
* Initializes the fields of this object.
|
37
45
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
38
46
|
* Only for internal use.
|
39
47
|
*/
|
40
|
-
|
41
|
-
|
42
48
|
_createClass(InstanceServices, null, [{
|
43
49
|
key: "initialize",
|
44
50
|
value: function initialize(obj) {}
|
51
|
+
|
45
52
|
/**
|
46
53
|
* Constructs a <code>InstanceServices</code> from a plain JavaScript object, optionally creating a new instance.
|
47
54
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
@@ -49,29 +56,39 @@ var InstanceServices = /*#__PURE__*/function () {
|
|
49
56
|
* @param {module:model/InstanceServices} obj Optional instance to populate.
|
50
57
|
* @return {module:model/InstanceServices} The populated <code>InstanceServices</code> instance.
|
51
58
|
*/
|
52
|
-
|
53
59
|
}, {
|
54
60
|
key: "constructFromObject",
|
55
61
|
value: function constructFromObject(data, obj) {
|
56
62
|
if (data) {
|
57
63
|
obj = obj || new InstanceServices();
|
58
|
-
|
59
64
|
if (data.hasOwnProperty('vpn')) {
|
60
65
|
obj['vpn'] = _VpnDefinition["default"].constructFromObject(data['vpn']);
|
61
66
|
}
|
62
67
|
}
|
63
|
-
|
64
68
|
return obj;
|
65
69
|
}
|
66
|
-
}]);
|
67
70
|
|
71
|
+
/**
|
72
|
+
* Validates the JSON data with respect to <code>InstanceServices</code>.
|
73
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
74
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>InstanceServices</code>.
|
75
|
+
*/
|
76
|
+
}, {
|
77
|
+
key: "validateJSON",
|
78
|
+
value: function validateJSON(data) {
|
79
|
+
// validate the optional field `vpn`
|
80
|
+
if (data['vpn']) {
|
81
|
+
// data not null
|
82
|
+
_VpnDefinition["default"].validateJSON(data['vpn']);
|
83
|
+
}
|
84
|
+
return true;
|
85
|
+
}
|
86
|
+
}]);
|
68
87
|
return InstanceServices;
|
69
88
|
}();
|
70
89
|
/**
|
71
90
|
* @member {module:model/VpnDefinition} vpn
|
72
91
|
*/
|
73
|
-
|
74
|
-
|
75
92
|
InstanceServices.prototype['vpn'] = undefined;
|
76
93
|
var _default = InstanceServices;
|
77
94
|
exports["default"] = _default;
|
@@ -4,42 +4,50 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports["default"] = void 0;
|
7
|
-
|
8
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
9
|
-
|
10
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
11
|
-
|
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); }
|
12
10
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
13
|
-
|
14
|
-
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, descriptor.key, descriptor); } }
|
15
|
-
|
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); } }
|
16
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; }
|
17
|
-
|
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
|
+
*/
|
18
26
|
/**
|
19
27
|
* The InstanceStartOptions model module.
|
20
28
|
* @module model/InstanceStartOptions
|
21
|
-
* @version 0.
|
29
|
+
* @version 0.3.2
|
22
30
|
*/
|
23
31
|
var InstanceStartOptions = /*#__PURE__*/function () {
|
24
32
|
/**
|
25
33
|
* Constructs a new <code>InstanceStartOptions</code>.
|
34
|
+
*
|
26
35
|
* @alias module:model/InstanceStartOptions
|
27
36
|
*/
|
28
37
|
function InstanceStartOptions() {
|
29
38
|
_classCallCheck(this, InstanceStartOptions);
|
30
|
-
|
31
39
|
InstanceStartOptions.initialize(this);
|
32
40
|
}
|
41
|
+
|
33
42
|
/**
|
34
43
|
* Initializes the fields of this object.
|
35
44
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
36
45
|
* Only for internal use.
|
37
46
|
*/
|
38
|
-
|
39
|
-
|
40
47
|
_createClass(InstanceStartOptions, null, [{
|
41
48
|
key: "initialize",
|
42
49
|
value: function initialize(obj) {}
|
50
|
+
|
43
51
|
/**
|
44
52
|
* Constructs a <code>InstanceStartOptions</code> from a plain JavaScript object, optionally creating a new instance.
|
45
53
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
@@ -47,30 +55,44 @@ var InstanceStartOptions = /*#__PURE__*/function () {
|
|
47
55
|
* @param {module:model/InstanceStartOptions} obj Optional instance to populate.
|
48
56
|
* @return {module:model/InstanceStartOptions} The populated <code>InstanceStartOptions</code> instance.
|
49
57
|
*/
|
50
|
-
|
51
58
|
}, {
|
52
59
|
key: "constructFromObject",
|
53
60
|
value: function constructFromObject(data, obj) {
|
54
61
|
if (data) {
|
55
62
|
obj = obj || new InstanceStartOptions();
|
56
|
-
|
57
63
|
if (data.hasOwnProperty('paused')) {
|
58
64
|
obj['paused'] = _ApiClient["default"].convertToType(data['paused'], 'Boolean');
|
59
65
|
}
|
66
|
+
if (data.hasOwnProperty('sockcap')) {
|
67
|
+
obj['sockcap'] = _ApiClient["default"].convertToType(data['sockcap'], 'Boolean');
|
68
|
+
}
|
60
69
|
}
|
61
|
-
|
62
70
|
return obj;
|
63
71
|
}
|
64
|
-
}]);
|
65
72
|
|
73
|
+
/**
|
74
|
+
* Validates the JSON data with respect to <code>InstanceStartOptions</code>.
|
75
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
76
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>InstanceStartOptions</code>.
|
77
|
+
*/
|
78
|
+
}, {
|
79
|
+
key: "validateJSON",
|
80
|
+
value: function validateJSON(data) {
|
81
|
+
return true;
|
82
|
+
}
|
83
|
+
}]);
|
66
84
|
return InstanceStartOptions;
|
67
85
|
}();
|
68
86
|
/**
|
69
87
|
* Start device paused
|
70
88
|
* @member {Boolean} paused
|
71
89
|
*/
|
72
|
-
|
73
|
-
|
74
90
|
InstanceStartOptions.prototype['paused'] = undefined;
|
91
|
+
|
92
|
+
/**
|
93
|
+
* Start device with Process Network Monitoring enabled
|
94
|
+
* @member {Boolean} sockcap
|
95
|
+
*/
|
96
|
+
InstanceStartOptions.prototype['sockcap'] = undefined;
|
75
97
|
var _default = InstanceStartOptions;
|
76
98
|
exports["default"] = _default;
|
@@ -4,19 +4,26 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports["default"] = void 0;
|
7
|
-
|
8
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
9
|
-
|
10
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
11
|
-
|
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); }
|
12
10
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
13
|
-
|
14
|
-
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, descriptor.key, descriptor); } }
|
15
|
-
|
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); } }
|
16
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; }
|
17
|
-
|
18
|
-
function
|
19
|
-
|
13
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
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
|
+
*/
|
20
27
|
/**
|
21
28
|
* Enum class InstanceState.
|
22
29
|
* @enum {}
|
@@ -25,26 +32,52 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
25
32
|
var InstanceState = /*#__PURE__*/function () {
|
26
33
|
function InstanceState() {
|
27
34
|
_classCallCheck(this, InstanceState);
|
28
|
-
|
35
|
+
/**
|
36
|
+
* value: "on"
|
37
|
+
* @const
|
38
|
+
*/
|
29
39
|
_defineProperty(this, "on", "on");
|
30
|
-
|
40
|
+
/**
|
41
|
+
* value: "off"
|
42
|
+
* @const
|
43
|
+
*/
|
31
44
|
_defineProperty(this, "off", "off");
|
32
|
-
|
45
|
+
/**
|
46
|
+
* value: "booting"
|
47
|
+
* @const
|
48
|
+
*/
|
33
49
|
_defineProperty(this, "booting", "booting");
|
34
|
-
|
50
|
+
/**
|
51
|
+
* value: "deleting"
|
52
|
+
* @const
|
53
|
+
*/
|
35
54
|
_defineProperty(this, "deleting", "deleting");
|
36
|
-
|
55
|
+
/**
|
56
|
+
* value: "creating"
|
57
|
+
* @const
|
58
|
+
*/
|
37
59
|
_defineProperty(this, "creating", "creating");
|
38
|
-
|
60
|
+
/**
|
61
|
+
* value: "restoring"
|
62
|
+
* @const
|
63
|
+
*/
|
39
64
|
_defineProperty(this, "restoring", "restoring");
|
40
|
-
|
65
|
+
/**
|
66
|
+
* value: "paused"
|
67
|
+
* @const
|
68
|
+
*/
|
41
69
|
_defineProperty(this, "paused", "paused");
|
42
|
-
|
70
|
+
/**
|
71
|
+
* value: "rebooting"
|
72
|
+
* @const
|
73
|
+
*/
|
43
74
|
_defineProperty(this, "rebooting", "rebooting");
|
44
|
-
|
75
|
+
/**
|
76
|
+
* value: "error"
|
77
|
+
* @const
|
78
|
+
*/
|
45
79
|
_defineProperty(this, "error", "error");
|
46
80
|
}
|
47
|
-
|
48
81
|
_createClass(InstanceState, null, [{
|
49
82
|
key: "constructFromObject",
|
50
83
|
value:
|
@@ -57,8 +90,6 @@ var InstanceState = /*#__PURE__*/function () {
|
|
57
90
|
return object;
|
58
91
|
}
|
59
92
|
}]);
|
60
|
-
|
61
93
|
return InstanceState;
|
62
94
|
}();
|
63
|
-
|
64
95
|
exports["default"] = InstanceState;
|