@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 InstanceStopOptions model module.
|
20
28
|
* @module model/InstanceStopOptions
|
21
|
-
* @version 0.
|
29
|
+
* @version 0.3.2
|
22
30
|
*/
|
23
31
|
var InstanceStopOptions = /*#__PURE__*/function () {
|
24
32
|
/**
|
25
33
|
* Constructs a new <code>InstanceStopOptions</code>.
|
34
|
+
*
|
26
35
|
* @alias module:model/InstanceStopOptions
|
27
36
|
*/
|
28
37
|
function InstanceStopOptions() {
|
29
38
|
_classCallCheck(this, InstanceStopOptions);
|
30
|
-
|
31
39
|
InstanceStopOptions.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(InstanceStopOptions, null, [{
|
41
48
|
key: "initialize",
|
42
49
|
value: function initialize(obj) {}
|
50
|
+
|
43
51
|
/**
|
44
52
|
* Constructs a <code>InstanceStopOptions</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,35 @@ var InstanceStopOptions = /*#__PURE__*/function () {
|
|
47
55
|
* @param {module:model/InstanceStopOptions} obj Optional instance to populate.
|
48
56
|
* @return {module:model/InstanceStopOptions} The populated <code>InstanceStopOptions</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 InstanceStopOptions();
|
56
|
-
|
57
63
|
if (data.hasOwnProperty('soft')) {
|
58
64
|
obj['soft'] = _ApiClient["default"].convertToType(data['soft'], 'Boolean');
|
59
65
|
}
|
60
66
|
}
|
61
|
-
|
62
67
|
return obj;
|
63
68
|
}
|
64
|
-
}]);
|
65
69
|
|
70
|
+
/**
|
71
|
+
* Validates the JSON data with respect to <code>InstanceStopOptions</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>InstanceStopOptions</code>.
|
74
|
+
*/
|
75
|
+
}, {
|
76
|
+
key: "validateJSON",
|
77
|
+
value: function validateJSON(data) {
|
78
|
+
return true;
|
79
|
+
}
|
80
|
+
}]);
|
66
81
|
return InstanceStopOptions;
|
67
82
|
}();
|
68
83
|
/**
|
69
84
|
* Request VM OS power down
|
70
85
|
* @member {Boolean} soft
|
71
86
|
*/
|
72
|
-
|
73
|
-
|
74
87
|
InstanceStopOptions.prototype['soft'] = undefined;
|
75
88
|
var _default = InstanceStopOptions;
|
76
89
|
exports["default"] = _default;
|
@@ -0,0 +1,129 @@
|
|
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 _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; } } }; }
|
11
|
+
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); }
|
12
|
+
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; }
|
13
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
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, _toPropertyKey(descriptor.key), descriptor); } }
|
15
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
16
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
17
|
+
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); } /**
|
18
|
+
* Corellium API
|
19
|
+
* REST API to manage your virtual devices.
|
20
|
+
*
|
21
|
+
* The version of the OpenAPI document: 4.5.0-16775
|
22
|
+
*
|
23
|
+
*
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
25
|
+
* https://openapi-generator.tech
|
26
|
+
* Do not edit the class manually.
|
27
|
+
*
|
28
|
+
*/
|
29
|
+
/**
|
30
|
+
* The InstanceUpgradeBody model module.
|
31
|
+
* @module model/InstanceUpgradeBody
|
32
|
+
* @version 0.3.2
|
33
|
+
*/
|
34
|
+
var InstanceUpgradeBody = /*#__PURE__*/function () {
|
35
|
+
/**
|
36
|
+
* Constructs a new <code>InstanceUpgradeBody</code>.
|
37
|
+
*
|
38
|
+
* @alias module:model/InstanceUpgradeBody
|
39
|
+
* @param os {String} iOS version
|
40
|
+
*/
|
41
|
+
function InstanceUpgradeBody(os) {
|
42
|
+
_classCallCheck(this, InstanceUpgradeBody);
|
43
|
+
InstanceUpgradeBody.initialize(this, os);
|
44
|
+
}
|
45
|
+
|
46
|
+
/**
|
47
|
+
* Initializes the fields of this object.
|
48
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
49
|
+
* Only for internal use.
|
50
|
+
*/
|
51
|
+
_createClass(InstanceUpgradeBody, null, [{
|
52
|
+
key: "initialize",
|
53
|
+
value: function initialize(obj, os) {
|
54
|
+
obj['os'] = os;
|
55
|
+
}
|
56
|
+
|
57
|
+
/**
|
58
|
+
* Constructs a <code>InstanceUpgradeBody</code> from a plain JavaScript object, optionally creating a new instance.
|
59
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
60
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
61
|
+
* @param {module:model/InstanceUpgradeBody} obj Optional instance to populate.
|
62
|
+
* @return {module:model/InstanceUpgradeBody} The populated <code>InstanceUpgradeBody</code> instance.
|
63
|
+
*/
|
64
|
+
}, {
|
65
|
+
key: "constructFromObject",
|
66
|
+
value: function constructFromObject(data, obj) {
|
67
|
+
if (data) {
|
68
|
+
obj = obj || new InstanceUpgradeBody();
|
69
|
+
if (data.hasOwnProperty('os')) {
|
70
|
+
obj['os'] = _ApiClient["default"].convertToType(data['os'], 'String');
|
71
|
+
}
|
72
|
+
if (data.hasOwnProperty('osbuild')) {
|
73
|
+
obj['osbuild'] = _ApiClient["default"].convertToType(data['osbuild'], 'String');
|
74
|
+
}
|
75
|
+
}
|
76
|
+
return obj;
|
77
|
+
}
|
78
|
+
|
79
|
+
/**
|
80
|
+
* Validates the JSON data with respect to <code>InstanceUpgradeBody</code>.
|
81
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
82
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>InstanceUpgradeBody</code>.
|
83
|
+
*/
|
84
|
+
}, {
|
85
|
+
key: "validateJSON",
|
86
|
+
value: function validateJSON(data) {
|
87
|
+
// check to make sure all required properties are present in the JSON string
|
88
|
+
var _iterator = _createForOfIteratorHelper(InstanceUpgradeBody.RequiredProperties),
|
89
|
+
_step;
|
90
|
+
try {
|
91
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
92
|
+
var property = _step.value;
|
93
|
+
if (!data[property]) {
|
94
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
95
|
+
}
|
96
|
+
}
|
97
|
+
// ensure the json data is a string
|
98
|
+
} catch (err) {
|
99
|
+
_iterator.e(err);
|
100
|
+
} finally {
|
101
|
+
_iterator.f();
|
102
|
+
}
|
103
|
+
if (data['os'] && !(typeof data['os'] === 'string' || data['os'] instanceof String)) {
|
104
|
+
throw new Error("Expected the field `os` to be a primitive type in the JSON string but got " + data['os']);
|
105
|
+
}
|
106
|
+
// ensure the json data is a string
|
107
|
+
if (data['osbuild'] && !(typeof data['osbuild'] === 'string' || data['osbuild'] instanceof String)) {
|
108
|
+
throw new Error("Expected the field `osbuild` to be a primitive type in the JSON string but got " + data['osbuild']);
|
109
|
+
}
|
110
|
+
return true;
|
111
|
+
}
|
112
|
+
}]);
|
113
|
+
return InstanceUpgradeBody;
|
114
|
+
}();
|
115
|
+
InstanceUpgradeBody.RequiredProperties = ["os"];
|
116
|
+
|
117
|
+
/**
|
118
|
+
* iOS version
|
119
|
+
* @member {String} os
|
120
|
+
*/
|
121
|
+
InstanceUpgradeBody.prototype['os'] = undefined;
|
122
|
+
|
123
|
+
/**
|
124
|
+
* (optional) iOS build ID
|
125
|
+
* @member {String} osbuild
|
126
|
+
*/
|
127
|
+
InstanceUpgradeBody.prototype['osbuild'] = undefined;
|
128
|
+
var _default = InstanceUpgradeBody;
|
129
|
+
exports["default"] = _default;
|
@@ -0,0 +1,115 @@
|
|
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 Invitation model module.
|
28
|
+
* @module model/Invitation
|
29
|
+
* @version 0.3.2
|
30
|
+
*/
|
31
|
+
var Invitation = /*#__PURE__*/function () {
|
32
|
+
/**
|
33
|
+
* Constructs a new <code>Invitation</code>.
|
34
|
+
*
|
35
|
+
* @alias module:model/Invitation
|
36
|
+
*/
|
37
|
+
function Invitation() {
|
38
|
+
_classCallCheck(this, Invitation);
|
39
|
+
Invitation.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(Invitation, null, [{
|
48
|
+
key: "initialize",
|
49
|
+
value: function initialize(obj) {}
|
50
|
+
|
51
|
+
/**
|
52
|
+
* Constructs a <code>Invitation</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/Invitation} obj Optional instance to populate.
|
56
|
+
* @return {module:model/Invitation} The populated <code>Invitation</code> instance.
|
57
|
+
*/
|
58
|
+
}, {
|
59
|
+
key: "constructFromObject",
|
60
|
+
value: function constructFromObject(data, obj) {
|
61
|
+
if (data) {
|
62
|
+
obj = obj || new Invitation();
|
63
|
+
if (data.hasOwnProperty('identifier')) {
|
64
|
+
obj['identifier'] = _ApiClient["default"].convertToType(data['identifier'], 'String');
|
65
|
+
}
|
66
|
+
if (data.hasOwnProperty('email')) {
|
67
|
+
obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
|
68
|
+
}
|
69
|
+
if (data.hasOwnProperty('settings')) {
|
70
|
+
obj['settings'] = _ApiClient["default"].convertToType(data['settings'], Object);
|
71
|
+
}
|
72
|
+
}
|
73
|
+
return obj;
|
74
|
+
}
|
75
|
+
|
76
|
+
/**
|
77
|
+
* Validates the JSON data with respect to <code>Invitation</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>Invitation</code>.
|
80
|
+
*/
|
81
|
+
}, {
|
82
|
+
key: "validateJSON",
|
83
|
+
value: function validateJSON(data) {
|
84
|
+
// ensure the json data is a string
|
85
|
+
if (data['identifier'] && !(typeof data['identifier'] === 'string' || data['identifier'] instanceof String)) {
|
86
|
+
throw new Error("Expected the field `identifier` to be a primitive type in the JSON string but got " + data['identifier']);
|
87
|
+
}
|
88
|
+
// ensure the json data is a string
|
89
|
+
if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) {
|
90
|
+
throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']);
|
91
|
+
}
|
92
|
+
return true;
|
93
|
+
}
|
94
|
+
}]);
|
95
|
+
return Invitation;
|
96
|
+
}();
|
97
|
+
/**
|
98
|
+
* Invite ID
|
99
|
+
* @member {String} identifier
|
100
|
+
*/
|
101
|
+
Invitation.prototype['identifier'] = undefined;
|
102
|
+
|
103
|
+
/**
|
104
|
+
* Invited email
|
105
|
+
* @member {String} email
|
106
|
+
*/
|
107
|
+
Invitation.prototype['email'] = undefined;
|
108
|
+
|
109
|
+
/**
|
110
|
+
*
|
111
|
+
* @member {Object} settings
|
112
|
+
*/
|
113
|
+
Invitation.prototype['settings'] = undefined;
|
114
|
+
var _default = Invitation;
|
115
|
+
exports["default"] = _default;
|
@@ -0,0 +1,94 @@
|
|
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 _InviteRevokeParamsIds = _interopRequireDefault(require("./InviteRevokeParamsIds"));
|
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 InviteRevokeParams model module.
|
29
|
+
* @module model/InviteRevokeParams
|
30
|
+
* @version 0.3.2
|
31
|
+
*/
|
32
|
+
var InviteRevokeParams = /*#__PURE__*/function () {
|
33
|
+
/**
|
34
|
+
* Constructs a new <code>InviteRevokeParams</code>.
|
35
|
+
*
|
36
|
+
* @alias module:model/InviteRevokeParams
|
37
|
+
*/
|
38
|
+
function InviteRevokeParams() {
|
39
|
+
_classCallCheck(this, InviteRevokeParams);
|
40
|
+
InviteRevokeParams.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(InviteRevokeParams, null, [{
|
49
|
+
key: "initialize",
|
50
|
+
value: function initialize(obj) {}
|
51
|
+
|
52
|
+
/**
|
53
|
+
* Constructs a <code>InviteRevokeParams</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/InviteRevokeParams} obj Optional instance to populate.
|
57
|
+
* @return {module:model/InviteRevokeParams} The populated <code>InviteRevokeParams</code> instance.
|
58
|
+
*/
|
59
|
+
}, {
|
60
|
+
key: "constructFromObject",
|
61
|
+
value: function constructFromObject(data, obj) {
|
62
|
+
if (data) {
|
63
|
+
obj = obj || new InviteRevokeParams();
|
64
|
+
if (data.hasOwnProperty('ids')) {
|
65
|
+
obj['ids'] = _InviteRevokeParamsIds["default"].constructFromObject(data['ids']);
|
66
|
+
}
|
67
|
+
}
|
68
|
+
return obj;
|
69
|
+
}
|
70
|
+
|
71
|
+
/**
|
72
|
+
* Validates the JSON data with respect to <code>InviteRevokeParams</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>InviteRevokeParams</code>.
|
75
|
+
*/
|
76
|
+
}, {
|
77
|
+
key: "validateJSON",
|
78
|
+
value: function validateJSON(data) {
|
79
|
+
// validate the optional field `ids`
|
80
|
+
if (data['ids']) {
|
81
|
+
// data not null
|
82
|
+
_InviteRevokeParamsIds["default"].validateJSON(data['ids']);
|
83
|
+
}
|
84
|
+
return true;
|
85
|
+
}
|
86
|
+
}]);
|
87
|
+
return InviteRevokeParams;
|
88
|
+
}();
|
89
|
+
/**
|
90
|
+
* @member {module:model/InviteRevokeParamsIds} ids
|
91
|
+
*/
|
92
|
+
InviteRevokeParams.prototype['ids'] = undefined;
|
93
|
+
var _default = InviteRevokeParams;
|
94
|
+
exports["default"] = _default;
|
@@ -0,0 +1,150 @@
|
|
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 _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; } } }; }
|
11
|
+
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); }
|
12
|
+
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; }
|
13
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
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, _toPropertyKey(descriptor.key), descriptor); } }
|
15
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
16
|
+
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; }
|
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
|
+
*/
|
30
|
+
/**
|
31
|
+
* The InviteRevokeParamsIds model module.
|
32
|
+
* @module model/InviteRevokeParamsIds
|
33
|
+
* @version 0.3.2
|
34
|
+
*/
|
35
|
+
var InviteRevokeParamsIds = /*#__PURE__*/function () {
|
36
|
+
/**
|
37
|
+
* Constructs a new <code>InviteRevokeParamsIds</code>.
|
38
|
+
* id or array of ids to revoke
|
39
|
+
* @alias module:model/InviteRevokeParamsIds
|
40
|
+
* @param {(module:model/String|module:model/[String])} instance The actual instance to initialize InviteRevokeParamsIds.
|
41
|
+
*/
|
42
|
+
function InviteRevokeParamsIds() {
|
43
|
+
var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
44
|
+
_classCallCheck(this, InviteRevokeParamsIds);
|
45
|
+
/**
|
46
|
+
* Returns the JSON representation of the actual instance.
|
47
|
+
* @return {string}
|
48
|
+
*/
|
49
|
+
_defineProperty(this, "toJSON", function () {
|
50
|
+
return this.getActualInstance();
|
51
|
+
});
|
52
|
+
if (instance === null) {
|
53
|
+
this.actualInstance = null;
|
54
|
+
return;
|
55
|
+
}
|
56
|
+
var match = 0;
|
57
|
+
var errorMessages = [];
|
58
|
+
try {
|
59
|
+
// validate string
|
60
|
+
if (!(typeof instance === 'string')) {
|
61
|
+
throw new Error("Invalid value. Must be string. Input: " + JSON.stringify(instance));
|
62
|
+
}
|
63
|
+
this.actualInstance = instance;
|
64
|
+
match++;
|
65
|
+
} catch (err) {
|
66
|
+
// json data failed to deserialize into String
|
67
|
+
errorMessages.push("Failed to construct String: " + err);
|
68
|
+
}
|
69
|
+
try {
|
70
|
+
// validate array data type
|
71
|
+
if (!Array.isArray(instance)) {
|
72
|
+
throw new Error("Invalid data type. Expecting array. Input: " + instance);
|
73
|
+
}
|
74
|
+
// validate array of string
|
75
|
+
var _iterator = _createForOfIteratorHelper(instance),
|
76
|
+
_step;
|
77
|
+
try {
|
78
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
79
|
+
var item = _step.value;
|
80
|
+
if (!(typeof item === 'number' && item % 1 === 0)) {
|
81
|
+
throw new Error("Invalid array items. Must be string. Input: " + instance);
|
82
|
+
}
|
83
|
+
}
|
84
|
+
} catch (err) {
|
85
|
+
_iterator.e(err);
|
86
|
+
} finally {
|
87
|
+
_iterator.f();
|
88
|
+
}
|
89
|
+
this.actualInstance = instance;
|
90
|
+
match++;
|
91
|
+
} catch (err) {
|
92
|
+
// json data failed to deserialize into [String]
|
93
|
+
errorMessages.push("Failed to construct [String]: " + err);
|
94
|
+
}
|
95
|
+
if (match > 1) {
|
96
|
+
throw new Error("Multiple matches found constructing `InviteRevokeParamsIds` with oneOf schemas String, [String]. Input: " + JSON.stringify(instance));
|
97
|
+
} else if (match === 0) {
|
98
|
+
this.actualInstance = null; // clear the actual instance in case there are multiple matches
|
99
|
+
throw new Error("No match found constructing `InviteRevokeParamsIds` with oneOf schemas String, [String]. Details: " + errorMessages.join(", "));
|
100
|
+
} else {// only 1 match
|
101
|
+
// the input is valid
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
/**
|
106
|
+
* Constructs a <code>InviteRevokeParamsIds</code> from a plain JavaScript object, optionally creating a new instance.
|
107
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
108
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
109
|
+
* @param {module:model/InviteRevokeParamsIds} obj Optional instance to populate.
|
110
|
+
* @return {module:model/InviteRevokeParamsIds} The populated <code>InviteRevokeParamsIds</code> instance.
|
111
|
+
*/
|
112
|
+
_createClass(InviteRevokeParamsIds, [{
|
113
|
+
key: "getActualInstance",
|
114
|
+
value:
|
115
|
+
/**
|
116
|
+
* Gets the actual instance, which can be <code>String</code>, <code>[String]</code>.
|
117
|
+
* @return {(module:model/String|module:model/[String])} The actual instance.
|
118
|
+
*/
|
119
|
+
function getActualInstance() {
|
120
|
+
return this.actualInstance;
|
121
|
+
}
|
122
|
+
|
123
|
+
/**
|
124
|
+
* Sets the actual instance, which can be <code>String</code>, <code>[String]</code>.
|
125
|
+
* @param {(module:model/String|module:model/[String])} obj The actual instance.
|
126
|
+
*/
|
127
|
+
}, {
|
128
|
+
key: "setActualInstance",
|
129
|
+
value: function setActualInstance(obj) {
|
130
|
+
this.actualInstance = InviteRevokeParamsIds.constructFromObject(obj).getActualInstance();
|
131
|
+
}
|
132
|
+
}], [{
|
133
|
+
key: "constructFromObject",
|
134
|
+
value: function constructFromObject(data, obj) {
|
135
|
+
return new InviteRevokeParamsIds(data);
|
136
|
+
}
|
137
|
+
}]);
|
138
|
+
return InviteRevokeParamsIds;
|
139
|
+
}();
|
140
|
+
/**
|
141
|
+
* Create an instance of InviteRevokeParamsIds from a JSON string.
|
142
|
+
* @param {string} json_string JSON string.
|
143
|
+
* @return {module:model/InviteRevokeParamsIds} An instance of InviteRevokeParamsIds.
|
144
|
+
*/
|
145
|
+
_defineProperty(InviteRevokeParamsIds, "fromJSON", function (json_string) {
|
146
|
+
return InviteRevokeParamsIds.constructFromObject(JSON.parse(json_string));
|
147
|
+
});
|
148
|
+
InviteRevokeParamsIds.OneOf = ["String", "[String]"];
|
149
|
+
var _default = InviteRevokeParamsIds;
|
150
|
+
exports["default"] = _default;
|