@corellium/corellium-cli 1.3.3 → 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/instances/get.js +11 -7
- package/src/commands/instances/list.js +2 -1
- 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
@@ -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 PeripheralsData model module.
|
20
28
|
* @module model/PeripheralsData
|
21
|
-
* @version 0.
|
29
|
+
* @version 0.3.2
|
22
30
|
*/
|
23
31
|
var PeripheralsData = /*#__PURE__*/function () {
|
24
32
|
/**
|
25
33
|
* Constructs a new <code>PeripheralsData</code>.
|
34
|
+
*
|
26
35
|
* @alias module:model/PeripheralsData
|
27
36
|
*/
|
28
37
|
function PeripheralsData() {
|
29
38
|
_classCallCheck(this, PeripheralsData);
|
30
|
-
|
31
39
|
PeripheralsData.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(PeripheralsData, null, [{
|
41
48
|
key: "initialize",
|
42
49
|
value: function initialize(obj) {}
|
50
|
+
|
43
51
|
/**
|
44
52
|
* Constructs a <code>PeripheralsData</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,101 +55,123 @@ var PeripheralsData = /*#__PURE__*/function () {
|
|
47
55
|
* @param {module:model/PeripheralsData} obj Optional instance to populate.
|
48
56
|
* @return {module:model/PeripheralsData} The populated <code>PeripheralsData</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 PeripheralsData();
|
56
|
-
|
57
63
|
if (data.hasOwnProperty('acceleration')) {
|
58
64
|
obj['acceleration'] = _ApiClient["default"].convertToType(data['acceleration'], ['Number']);
|
59
65
|
}
|
60
|
-
|
61
66
|
if (data.hasOwnProperty('gyroscope')) {
|
62
67
|
obj['gyroscope'] = _ApiClient["default"].convertToType(data['gyroscope'], ['Number']);
|
63
68
|
}
|
64
|
-
|
65
69
|
if (data.hasOwnProperty('magnetic')) {
|
66
70
|
obj['magnetic'] = _ApiClient["default"].convertToType(data['magnetic'], ['Number']);
|
67
71
|
}
|
68
|
-
|
69
72
|
if (data.hasOwnProperty('orientation')) {
|
70
73
|
obj['orientation'] = _ApiClient["default"].convertToType(data['orientation'], ['Number']);
|
71
74
|
}
|
72
|
-
|
73
75
|
if (data.hasOwnProperty('temperature')) {
|
74
76
|
obj['temperature'] = _ApiClient["default"].convertToType(data['temperature'], 'Number');
|
75
77
|
}
|
76
|
-
|
77
78
|
if (data.hasOwnProperty('proximity')) {
|
78
79
|
obj['proximity'] = _ApiClient["default"].convertToType(data['proximity'], 'Number');
|
79
80
|
}
|
80
|
-
|
81
81
|
if (data.hasOwnProperty('light')) {
|
82
82
|
obj['light'] = _ApiClient["default"].convertToType(data['light'], 'Number');
|
83
83
|
}
|
84
|
-
|
85
84
|
if (data.hasOwnProperty('pressure')) {
|
86
85
|
obj['pressure'] = _ApiClient["default"].convertToType(data['pressure'], 'Number');
|
87
86
|
}
|
88
|
-
|
89
87
|
if (data.hasOwnProperty('humidity')) {
|
90
88
|
obj['humidity'] = _ApiClient["default"].convertToType(data['humidity'], 'Number');
|
91
89
|
}
|
92
90
|
}
|
93
|
-
|
94
91
|
return obj;
|
95
92
|
}
|
96
|
-
}]);
|
97
93
|
|
94
|
+
/**
|
95
|
+
* Validates the JSON data with respect to <code>PeripheralsData</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>PeripheralsData</code>.
|
98
|
+
*/
|
99
|
+
}, {
|
100
|
+
key: "validateJSON",
|
101
|
+
value: function validateJSON(data) {
|
102
|
+
// ensure the json data is an array
|
103
|
+
if (!Array.isArray(data['acceleration'])) {
|
104
|
+
throw new Error("Expected the field `acceleration` to be an array in the JSON data but got " + data['acceleration']);
|
105
|
+
}
|
106
|
+
// ensure the json data is an array
|
107
|
+
if (!Array.isArray(data['gyroscope'])) {
|
108
|
+
throw new Error("Expected the field `gyroscope` to be an array in the JSON data but got " + data['gyroscope']);
|
109
|
+
}
|
110
|
+
// ensure the json data is an array
|
111
|
+
if (!Array.isArray(data['magnetic'])) {
|
112
|
+
throw new Error("Expected the field `magnetic` to be an array in the JSON data but got " + data['magnetic']);
|
113
|
+
}
|
114
|
+
// ensure the json data is an array
|
115
|
+
if (!Array.isArray(data['orientation'])) {
|
116
|
+
throw new Error("Expected the field `orientation` to be an array in the JSON data but got " + data['orientation']);
|
117
|
+
}
|
118
|
+
return true;
|
119
|
+
}
|
120
|
+
}]);
|
98
121
|
return PeripheralsData;
|
99
122
|
}();
|
100
123
|
/**
|
124
|
+
*
|
101
125
|
* @member {Array.<Number>} acceleration
|
102
126
|
*/
|
103
|
-
|
104
|
-
|
105
127
|
PeripheralsData.prototype['acceleration'] = undefined;
|
128
|
+
|
106
129
|
/**
|
130
|
+
*
|
107
131
|
* @member {Array.<Number>} gyroscope
|
108
132
|
*/
|
109
|
-
|
110
133
|
PeripheralsData.prototype['gyroscope'] = undefined;
|
134
|
+
|
111
135
|
/**
|
136
|
+
*
|
112
137
|
* @member {Array.<Number>} magnetic
|
113
138
|
*/
|
114
|
-
|
115
139
|
PeripheralsData.prototype['magnetic'] = undefined;
|
140
|
+
|
116
141
|
/**
|
142
|
+
*
|
117
143
|
* @member {Array.<Number>} orientation
|
118
144
|
*/
|
119
|
-
|
120
145
|
PeripheralsData.prototype['orientation'] = undefined;
|
146
|
+
|
121
147
|
/**
|
148
|
+
*
|
122
149
|
* @member {Number} temperature
|
123
150
|
*/
|
124
|
-
|
125
151
|
PeripheralsData.prototype['temperature'] = undefined;
|
152
|
+
|
126
153
|
/**
|
154
|
+
*
|
127
155
|
* @member {Number} proximity
|
128
156
|
*/
|
129
|
-
|
130
157
|
PeripheralsData.prototype['proximity'] = undefined;
|
158
|
+
|
131
159
|
/**
|
160
|
+
*
|
132
161
|
* @member {Number} light
|
133
162
|
*/
|
134
|
-
|
135
163
|
PeripheralsData.prototype['light'] = undefined;
|
164
|
+
|
136
165
|
/**
|
166
|
+
*
|
137
167
|
* @member {Number} pressure
|
138
168
|
*/
|
139
|
-
|
140
169
|
PeripheralsData.prototype['pressure'] = undefined;
|
170
|
+
|
141
171
|
/**
|
172
|
+
*
|
142
173
|
* @member {Number} humidity
|
143
174
|
*/
|
144
|
-
|
145
175
|
PeripheralsData.prototype['humidity'] = undefined;
|
146
176
|
var _default = PeripheralsData;
|
147
177
|
exports["default"] = _default;
|
@@ -0,0 +1,106 @@
|
|
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 Plan model module.
|
28
|
+
* @module model/Plan
|
29
|
+
* @version 0.3.2
|
30
|
+
*/
|
31
|
+
var Plan = /*#__PURE__*/function () {
|
32
|
+
/**
|
33
|
+
* Constructs a new <code>Plan</code>.
|
34
|
+
*
|
35
|
+
* @alias module:model/Plan
|
36
|
+
*/
|
37
|
+
function Plan() {
|
38
|
+
_classCallCheck(this, Plan);
|
39
|
+
Plan.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(Plan, null, [{
|
48
|
+
key: "initialize",
|
49
|
+
value: function initialize(obj) {}
|
50
|
+
|
51
|
+
/**
|
52
|
+
* Constructs a <code>Plan</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/Plan} obj Optional instance to populate.
|
56
|
+
* @return {module:model/Plan} The populated <code>Plan</code> instance.
|
57
|
+
*/
|
58
|
+
}, {
|
59
|
+
key: "constructFromObject",
|
60
|
+
value: function constructFromObject(data, obj) {
|
61
|
+
if (data) {
|
62
|
+
obj = obj || new Plan();
|
63
|
+
if (data.hasOwnProperty('planId')) {
|
64
|
+
obj['planId'] = _ApiClient["default"].convertToType(data['planId'], 'String');
|
65
|
+
}
|
66
|
+
if (data.hasOwnProperty('name')) {
|
67
|
+
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
68
|
+
}
|
69
|
+
}
|
70
|
+
return obj;
|
71
|
+
}
|
72
|
+
|
73
|
+
/**
|
74
|
+
* Validates the JSON data with respect to <code>Plan</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>Plan</code>.
|
77
|
+
*/
|
78
|
+
}, {
|
79
|
+
key: "validateJSON",
|
80
|
+
value: function validateJSON(data) {
|
81
|
+
// ensure the json data is a string
|
82
|
+
if (data['planId'] && !(typeof data['planId'] === 'string' || data['planId'] instanceof String)) {
|
83
|
+
throw new Error("Expected the field `planId` to be a primitive type in the JSON string but got " + data['planId']);
|
84
|
+
}
|
85
|
+
// ensure the json data is a string
|
86
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
87
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
88
|
+
}
|
89
|
+
return true;
|
90
|
+
}
|
91
|
+
}]);
|
92
|
+
return Plan;
|
93
|
+
}();
|
94
|
+
/**
|
95
|
+
* Plan ID
|
96
|
+
* @member {String} planId
|
97
|
+
*/
|
98
|
+
Plan.prototype['planId'] = undefined;
|
99
|
+
|
100
|
+
/**
|
101
|
+
* Plan Name
|
102
|
+
* @member {String} name
|
103
|
+
*/
|
104
|
+
Plan.prototype['name'] = undefined;
|
105
|
+
var _default = Plan;
|
106
|
+
exports["default"] = _default;
|
@@ -4,51 +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 _ProjectQuota = _interopRequireDefault(require("./ProjectQuota"));
|
11
|
-
|
12
9
|
var _ProjectSettings = _interopRequireDefault(require("./ProjectSettings"));
|
13
|
-
|
14
10
|
var _ProjectUsage = _interopRequireDefault(require("./ProjectUsage"));
|
15
|
-
|
16
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
17
|
-
|
12
|
+
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); }
|
13
|
+
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; } } }; }
|
14
|
+
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); }
|
15
|
+
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; }
|
18
16
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
19
|
-
|
20
|
-
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); } }
|
21
|
-
|
17
|
+
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); } }
|
22
18
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
23
|
-
|
19
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
20
|
+
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); } /**
|
21
|
+
* Corellium API
|
22
|
+
* REST API to manage your virtual devices.
|
23
|
+
*
|
24
|
+
* The version of the OpenAPI document: 4.5.0-16775
|
25
|
+
*
|
26
|
+
*
|
27
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
28
|
+
* https://openapi-generator.tech
|
29
|
+
* Do not edit the class manually.
|
30
|
+
*
|
31
|
+
*/
|
24
32
|
/**
|
25
33
|
* The Project model module.
|
26
34
|
* @module model/Project
|
27
|
-
* @version 0.
|
35
|
+
* @version 0.3.2
|
28
36
|
*/
|
29
37
|
var Project = /*#__PURE__*/function () {
|
30
38
|
/**
|
31
39
|
* Constructs a new <code>Project</code>.
|
40
|
+
*
|
32
41
|
* @alias module:model/Project
|
33
42
|
* @param id {String} Project Identifier
|
34
43
|
*/
|
35
44
|
function Project(id) {
|
36
45
|
_classCallCheck(this, Project);
|
37
|
-
|
38
46
|
Project.initialize(this, id);
|
39
47
|
}
|
48
|
+
|
40
49
|
/**
|
41
50
|
* Initializes the fields of this object.
|
42
51
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
43
52
|
* Only for internal use.
|
44
53
|
*/
|
45
|
-
|
46
|
-
|
47
54
|
_createClass(Project, null, [{
|
48
55
|
key: "initialize",
|
49
56
|
value: function initialize(obj, id) {
|
50
57
|
obj['id'] = id;
|
51
58
|
}
|
59
|
+
|
52
60
|
/**
|
53
61
|
* Constructs a <code>Project</code> from a plain JavaScript object, optionally creating a new instance.
|
54
62
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
@@ -56,67 +64,108 @@ var Project = /*#__PURE__*/function () {
|
|
56
64
|
* @param {module:model/Project} obj Optional instance to populate.
|
57
65
|
* @return {module:model/Project} The populated <code>Project</code> instance.
|
58
66
|
*/
|
59
|
-
|
60
67
|
}, {
|
61
68
|
key: "constructFromObject",
|
62
69
|
value: function constructFromObject(data, obj) {
|
63
70
|
if (data) {
|
64
71
|
obj = obj || new Project();
|
65
|
-
|
66
72
|
if (data.hasOwnProperty('id')) {
|
67
73
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
68
74
|
}
|
69
|
-
|
70
75
|
if (data.hasOwnProperty('name')) {
|
71
76
|
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
72
77
|
}
|
73
|
-
|
74
78
|
if (data.hasOwnProperty('settings')) {
|
75
79
|
obj['settings'] = _ProjectSettings["default"].constructFromObject(data['settings']);
|
76
80
|
}
|
77
|
-
|
78
81
|
if (data.hasOwnProperty('quotas')) {
|
79
82
|
obj['quotas'] = _ProjectQuota["default"].constructFromObject(data['quotas']);
|
80
83
|
}
|
81
|
-
|
82
84
|
if (data.hasOwnProperty('quotasUsed')) {
|
83
85
|
obj['quotasUsed'] = _ProjectUsage["default"].constructFromObject(data['quotasUsed']);
|
84
86
|
}
|
85
87
|
}
|
86
|
-
|
87
88
|
return obj;
|
88
89
|
}
|
89
|
-
}]);
|
90
90
|
|
91
|
+
/**
|
92
|
+
* Validates the JSON data with respect to <code>Project</code>.
|
93
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
94
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Project</code>.
|
95
|
+
*/
|
96
|
+
}, {
|
97
|
+
key: "validateJSON",
|
98
|
+
value: function validateJSON(data) {
|
99
|
+
// check to make sure all required properties are present in the JSON string
|
100
|
+
var _iterator = _createForOfIteratorHelper(Project.RequiredProperties),
|
101
|
+
_step;
|
102
|
+
try {
|
103
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
104
|
+
var property = _step.value;
|
105
|
+
if (!data[property]) {
|
106
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
107
|
+
}
|
108
|
+
}
|
109
|
+
// ensure the json data is a string
|
110
|
+
} catch (err) {
|
111
|
+
_iterator.e(err);
|
112
|
+
} finally {
|
113
|
+
_iterator.f();
|
114
|
+
}
|
115
|
+
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
|
116
|
+
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
|
117
|
+
}
|
118
|
+
// ensure the json data is a string
|
119
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
120
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
121
|
+
}
|
122
|
+
// validate the optional field `settings`
|
123
|
+
if (data['settings']) {
|
124
|
+
// data not null
|
125
|
+
_ProjectSettings["default"].validateJSON(data['settings']);
|
126
|
+
}
|
127
|
+
// validate the optional field `quotas`
|
128
|
+
if (data['quotas']) {
|
129
|
+
// data not null
|
130
|
+
_ProjectQuota["default"].validateJSON(data['quotas']);
|
131
|
+
}
|
132
|
+
// validate the optional field `quotasUsed`
|
133
|
+
if (data['quotasUsed']) {
|
134
|
+
// data not null
|
135
|
+
_ProjectUsage["default"].validateJSON(data['quotasUsed']);
|
136
|
+
}
|
137
|
+
return true;
|
138
|
+
}
|
139
|
+
}]);
|
91
140
|
return Project;
|
92
141
|
}();
|
142
|
+
Project.RequiredProperties = ["id"];
|
143
|
+
|
93
144
|
/**
|
94
145
|
* Project Identifier
|
95
146
|
* @member {String} id
|
96
147
|
*/
|
97
|
-
|
98
|
-
|
99
148
|
Project.prototype['id'] = undefined;
|
149
|
+
|
100
150
|
/**
|
101
151
|
* Project Name
|
102
152
|
* @member {String} name
|
103
153
|
*/
|
104
|
-
|
105
154
|
Project.prototype['name'] = undefined;
|
155
|
+
|
106
156
|
/**
|
107
157
|
* @member {module:model/ProjectSettings} settings
|
108
158
|
*/
|
109
|
-
|
110
159
|
Project.prototype['settings'] = undefined;
|
160
|
+
|
111
161
|
/**
|
112
162
|
* @member {module:model/ProjectQuota} quotas
|
113
163
|
*/
|
114
|
-
|
115
164
|
Project.prototype['quotas'] = undefined;
|
165
|
+
|
116
166
|
/**
|
117
167
|
* @member {module:model/ProjectUsage} quotasUsed
|
118
168
|
*/
|
119
|
-
|
120
169
|
Project.prototype['quotasUsed'] = undefined;
|
121
170
|
var _default = Project;
|
122
171
|
exports["default"] = _default;
|