@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,47 +4,58 @@ 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); }
|
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; }
|
12
13
|
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
|
-
|
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); } }
|
16
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; }
|
17
|
-
|
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
|
+
*/
|
18
29
|
/**
|
19
30
|
* The UserError model module.
|
20
31
|
* @module model/UserError
|
21
|
-
* @version 0.
|
32
|
+
* @version 0.3.2
|
22
33
|
*/
|
23
34
|
var UserError = /*#__PURE__*/function () {
|
24
35
|
/**
|
25
36
|
* Constructs a new <code>UserError</code>.
|
37
|
+
*
|
26
38
|
* @alias module:model/UserError
|
27
39
|
* @param error {String} Error text
|
28
40
|
* @param errorID {module:model/UserError.ErrorIDEnum} Error ID
|
29
41
|
*/
|
30
42
|
function UserError(error, errorID) {
|
31
43
|
_classCallCheck(this, UserError);
|
32
|
-
|
33
44
|
UserError.initialize(this, error, errorID);
|
34
45
|
}
|
46
|
+
|
35
47
|
/**
|
36
48
|
* Initializes the fields of this object.
|
37
49
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
38
50
|
* Only for internal use.
|
39
51
|
*/
|
40
|
-
|
41
|
-
|
42
52
|
_createClass(UserError, null, [{
|
43
53
|
key: "initialize",
|
44
54
|
value: function initialize(obj, error, errorID) {
|
45
55
|
obj['error'] = error;
|
46
56
|
obj['errorID'] = errorID;
|
47
57
|
}
|
58
|
+
|
48
59
|
/**
|
49
60
|
* Constructs a <code>UserError</code> from a plain JavaScript object, optionally creating a new instance.
|
50
61
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
@@ -52,57 +63,89 @@ var UserError = /*#__PURE__*/function () {
|
|
52
63
|
* @param {module:model/UserError} obj Optional instance to populate.
|
53
64
|
* @return {module:model/UserError} The populated <code>UserError</code> instance.
|
54
65
|
*/
|
55
|
-
|
56
66
|
}, {
|
57
67
|
key: "constructFromObject",
|
58
68
|
value: function constructFromObject(data, obj) {
|
59
69
|
if (data) {
|
60
70
|
obj = obj || new UserError();
|
61
|
-
|
62
71
|
if (data.hasOwnProperty('error')) {
|
63
72
|
obj['error'] = _ApiClient["default"].convertToType(data['error'], 'String');
|
64
73
|
}
|
65
|
-
|
66
74
|
if (data.hasOwnProperty('errorID')) {
|
67
75
|
obj['errorID'] = _ApiClient["default"].convertToType(data['errorID'], 'String');
|
68
76
|
}
|
69
|
-
|
70
77
|
if (data.hasOwnProperty('field')) {
|
71
78
|
obj['field'] = _ApiClient["default"].convertToType(data['field'], 'String');
|
72
79
|
}
|
73
80
|
}
|
74
|
-
|
75
81
|
return obj;
|
76
82
|
}
|
77
|
-
}]);
|
78
83
|
|
84
|
+
/**
|
85
|
+
* Validates the JSON data with respect to <code>UserError</code>.
|
86
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
87
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>UserError</code>.
|
88
|
+
*/
|
89
|
+
}, {
|
90
|
+
key: "validateJSON",
|
91
|
+
value: function validateJSON(data) {
|
92
|
+
// check to make sure all required properties are present in the JSON string
|
93
|
+
var _iterator = _createForOfIteratorHelper(UserError.RequiredProperties),
|
94
|
+
_step;
|
95
|
+
try {
|
96
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
97
|
+
var property = _step.value;
|
98
|
+
if (!data[property]) {
|
99
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
100
|
+
}
|
101
|
+
}
|
102
|
+
// ensure the json data is a string
|
103
|
+
} catch (err) {
|
104
|
+
_iterator.e(err);
|
105
|
+
} finally {
|
106
|
+
_iterator.f();
|
107
|
+
}
|
108
|
+
if (data['error'] && !(typeof data['error'] === 'string' || data['error'] instanceof String)) {
|
109
|
+
throw new Error("Expected the field `error` to be a primitive type in the JSON string but got " + data['error']);
|
110
|
+
}
|
111
|
+
// ensure the json data is a string
|
112
|
+
if (data['errorID'] && !(typeof data['errorID'] === 'string' || data['errorID'] instanceof String)) {
|
113
|
+
throw new Error("Expected the field `errorID` to be a primitive type in the JSON string but got " + data['errorID']);
|
114
|
+
}
|
115
|
+
// ensure the json data is a string
|
116
|
+
if (data['field'] && !(typeof data['field'] === 'string' || data['field'] instanceof String)) {
|
117
|
+
throw new Error("Expected the field `field` to be a primitive type in the JSON string but got " + data['field']);
|
118
|
+
}
|
119
|
+
return true;
|
120
|
+
}
|
121
|
+
}]);
|
79
122
|
return UserError;
|
80
123
|
}();
|
124
|
+
UserError.RequiredProperties = ["error", "errorID"];
|
125
|
+
|
81
126
|
/**
|
82
127
|
* Error text
|
83
128
|
* @member {String} error
|
84
129
|
*/
|
85
|
-
|
86
|
-
|
87
130
|
UserError.prototype['error'] = undefined;
|
131
|
+
|
88
132
|
/**
|
89
133
|
* Error ID
|
90
134
|
* @member {module:model/UserError.ErrorIDEnum} errorID
|
91
135
|
*/
|
92
|
-
|
93
136
|
UserError.prototype['errorID'] = undefined;
|
137
|
+
|
94
138
|
/**
|
95
139
|
* Field associated with error
|
96
140
|
* @member {String} field
|
97
141
|
*/
|
98
|
-
|
99
142
|
UserError.prototype['field'] = undefined;
|
143
|
+
|
100
144
|
/**
|
101
145
|
* Allowed values for the <code>errorID</code> property.
|
102
146
|
* @enum {String}
|
103
147
|
* @readonly
|
104
148
|
*/
|
105
|
-
|
106
149
|
UserError['ErrorIDEnum'] = {
|
107
150
|
/**
|
108
151
|
* value: "UserError"
|
@@ -0,0 +1,179 @@
|
|
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 V1CreateHookParameters model module.
|
31
|
+
* @module model/V1CreateHookParameters
|
32
|
+
* @version 0.3.2
|
33
|
+
*/
|
34
|
+
var V1CreateHookParameters = /*#__PURE__*/function () {
|
35
|
+
/**
|
36
|
+
* Constructs a new <code>V1CreateHookParameters</code>.
|
37
|
+
*
|
38
|
+
* @alias module:model/V1CreateHookParameters
|
39
|
+
* @param label {String} Label
|
40
|
+
* @param address {String} Address
|
41
|
+
* @param patch {String} Patch
|
42
|
+
* @param patchType {module:model/V1CreateHookParameters.PatchTypeEnum} Patch Type
|
43
|
+
*/
|
44
|
+
function V1CreateHookParameters(label, address, patch, patchType) {
|
45
|
+
_classCallCheck(this, V1CreateHookParameters);
|
46
|
+
V1CreateHookParameters.initialize(this, label, address, patch, patchType);
|
47
|
+
}
|
48
|
+
|
49
|
+
/**
|
50
|
+
* Initializes the fields of this object.
|
51
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
52
|
+
* Only for internal use.
|
53
|
+
*/
|
54
|
+
_createClass(V1CreateHookParameters, null, [{
|
55
|
+
key: "initialize",
|
56
|
+
value: function initialize(obj, label, address, patch, patchType) {
|
57
|
+
obj['label'] = label;
|
58
|
+
obj['address'] = address;
|
59
|
+
obj['patch'] = patch;
|
60
|
+
obj['patchType'] = patchType;
|
61
|
+
}
|
62
|
+
|
63
|
+
/**
|
64
|
+
* Constructs a <code>V1CreateHookParameters</code> from a plain JavaScript object, optionally creating a new instance.
|
65
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
66
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
67
|
+
* @param {module:model/V1CreateHookParameters} obj Optional instance to populate.
|
68
|
+
* @return {module:model/V1CreateHookParameters} The populated <code>V1CreateHookParameters</code> instance.
|
69
|
+
*/
|
70
|
+
}, {
|
71
|
+
key: "constructFromObject",
|
72
|
+
value: function constructFromObject(data, obj) {
|
73
|
+
if (data) {
|
74
|
+
obj = obj || new V1CreateHookParameters();
|
75
|
+
if (data.hasOwnProperty('label')) {
|
76
|
+
obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
|
77
|
+
}
|
78
|
+
if (data.hasOwnProperty('address')) {
|
79
|
+
obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String');
|
80
|
+
}
|
81
|
+
if (data.hasOwnProperty('patch')) {
|
82
|
+
obj['patch'] = _ApiClient["default"].convertToType(data['patch'], 'String');
|
83
|
+
}
|
84
|
+
if (data.hasOwnProperty('patchType')) {
|
85
|
+
obj['patchType'] = _ApiClient["default"].convertToType(data['patchType'], 'String');
|
86
|
+
}
|
87
|
+
}
|
88
|
+
return obj;
|
89
|
+
}
|
90
|
+
|
91
|
+
/**
|
92
|
+
* Validates the JSON data with respect to <code>V1CreateHookParameters</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>V1CreateHookParameters</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(V1CreateHookParameters.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['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
|
116
|
+
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
|
117
|
+
}
|
118
|
+
// ensure the json data is a string
|
119
|
+
if (data['address'] && !(typeof data['address'] === 'string' || data['address'] instanceof String)) {
|
120
|
+
throw new Error("Expected the field `address` to be a primitive type in the JSON string but got " + data['address']);
|
121
|
+
}
|
122
|
+
// ensure the json data is a string
|
123
|
+
if (data['patch'] && !(typeof data['patch'] === 'string' || data['patch'] instanceof String)) {
|
124
|
+
throw new Error("Expected the field `patch` to be a primitive type in the JSON string but got " + data['patch']);
|
125
|
+
}
|
126
|
+
// ensure the json data is a string
|
127
|
+
if (data['patchType'] && !(typeof data['patchType'] === 'string' || data['patchType'] instanceof String)) {
|
128
|
+
throw new Error("Expected the field `patchType` to be a primitive type in the JSON string but got " + data['patchType']);
|
129
|
+
}
|
130
|
+
return true;
|
131
|
+
}
|
132
|
+
}]);
|
133
|
+
return V1CreateHookParameters;
|
134
|
+
}();
|
135
|
+
V1CreateHookParameters.RequiredProperties = ["label", "address", "patch", "patchType"];
|
136
|
+
|
137
|
+
/**
|
138
|
+
* Label
|
139
|
+
* @member {String} label
|
140
|
+
*/
|
141
|
+
V1CreateHookParameters.prototype['label'] = undefined;
|
142
|
+
|
143
|
+
/**
|
144
|
+
* Address
|
145
|
+
* @member {String} address
|
146
|
+
*/
|
147
|
+
V1CreateHookParameters.prototype['address'] = undefined;
|
148
|
+
|
149
|
+
/**
|
150
|
+
* Patch
|
151
|
+
* @member {String} patch
|
152
|
+
*/
|
153
|
+
V1CreateHookParameters.prototype['patch'] = undefined;
|
154
|
+
|
155
|
+
/**
|
156
|
+
* Patch Type
|
157
|
+
* @member {module:model/V1CreateHookParameters.PatchTypeEnum} patchType
|
158
|
+
*/
|
159
|
+
V1CreateHookParameters.prototype['patchType'] = undefined;
|
160
|
+
|
161
|
+
/**
|
162
|
+
* Allowed values for the <code>patchType</code> property.
|
163
|
+
* @enum {String}
|
164
|
+
* @readonly
|
165
|
+
*/
|
166
|
+
V1CreateHookParameters['PatchTypeEnum'] = {
|
167
|
+
/**
|
168
|
+
* value: "csmfcc"
|
169
|
+
* @const
|
170
|
+
*/
|
171
|
+
"csmfcc": "csmfcc",
|
172
|
+
/**
|
173
|
+
* value: "csmfvm"
|
174
|
+
* @const
|
175
|
+
*/
|
176
|
+
"csmfvm": "csmfvm"
|
177
|
+
};
|
178
|
+
var _default = V1CreateHookParameters;
|
179
|
+
exports["default"] = _default;
|
@@ -0,0 +1,116 @@
|
|
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 V1LoadExtensionParameters model module.
|
31
|
+
* @module model/V1LoadExtensionParameters
|
32
|
+
* @version 0.3.2
|
33
|
+
*/
|
34
|
+
var V1LoadExtensionParameters = /*#__PURE__*/function () {
|
35
|
+
/**
|
36
|
+
* Constructs a new <code>V1LoadExtensionParameters</code>.
|
37
|
+
*
|
38
|
+
* @alias module:model/V1LoadExtensionParameters
|
39
|
+
* @param imageId {String} The uuid of the image to load
|
40
|
+
*/
|
41
|
+
function V1LoadExtensionParameters(imageId) {
|
42
|
+
_classCallCheck(this, V1LoadExtensionParameters);
|
43
|
+
V1LoadExtensionParameters.initialize(this, imageId);
|
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(V1LoadExtensionParameters, null, [{
|
52
|
+
key: "initialize",
|
53
|
+
value: function initialize(obj, imageId) {
|
54
|
+
obj['imageId'] = imageId;
|
55
|
+
}
|
56
|
+
|
57
|
+
/**
|
58
|
+
* Constructs a <code>V1LoadExtensionParameters</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/V1LoadExtensionParameters} obj Optional instance to populate.
|
62
|
+
* @return {module:model/V1LoadExtensionParameters} The populated <code>V1LoadExtensionParameters</code> instance.
|
63
|
+
*/
|
64
|
+
}, {
|
65
|
+
key: "constructFromObject",
|
66
|
+
value: function constructFromObject(data, obj) {
|
67
|
+
if (data) {
|
68
|
+
obj = obj || new V1LoadExtensionParameters();
|
69
|
+
if (data.hasOwnProperty('imageId')) {
|
70
|
+
obj['imageId'] = _ApiClient["default"].convertToType(data['imageId'], 'String');
|
71
|
+
}
|
72
|
+
}
|
73
|
+
return obj;
|
74
|
+
}
|
75
|
+
|
76
|
+
/**
|
77
|
+
* Validates the JSON data with respect to <code>V1LoadExtensionParameters</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>V1LoadExtensionParameters</code>.
|
80
|
+
*/
|
81
|
+
}, {
|
82
|
+
key: "validateJSON",
|
83
|
+
value: function validateJSON(data) {
|
84
|
+
// check to make sure all required properties are present in the JSON string
|
85
|
+
var _iterator = _createForOfIteratorHelper(V1LoadExtensionParameters.RequiredProperties),
|
86
|
+
_step;
|
87
|
+
try {
|
88
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
89
|
+
var property = _step.value;
|
90
|
+
if (!data[property]) {
|
91
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
92
|
+
}
|
93
|
+
}
|
94
|
+
// ensure the json data is a string
|
95
|
+
} catch (err) {
|
96
|
+
_iterator.e(err);
|
97
|
+
} finally {
|
98
|
+
_iterator.f();
|
99
|
+
}
|
100
|
+
if (data['imageId'] && !(typeof data['imageId'] === 'string' || data['imageId'] instanceof String)) {
|
101
|
+
throw new Error("Expected the field `imageId` to be a primitive type in the JSON string but got " + data['imageId']);
|
102
|
+
}
|
103
|
+
return true;
|
104
|
+
}
|
105
|
+
}]);
|
106
|
+
return V1LoadExtensionParameters;
|
107
|
+
}();
|
108
|
+
V1LoadExtensionParameters.RequiredProperties = ["imageId"];
|
109
|
+
|
110
|
+
/**
|
111
|
+
* The uuid of the image to load
|
112
|
+
* @member {String} imageId
|
113
|
+
*/
|
114
|
+
V1LoadExtensionParameters.prototype['imageId'] = undefined;
|
115
|
+
var _default = V1LoadExtensionParameters;
|
116
|
+
exports["default"] = _default;
|
@@ -4,47 +4,57 @@ 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 V1SetStateBody model module.
|
22
32
|
* @module model/V1SetStateBody
|
23
|
-
* @version 0.
|
33
|
+
* @version 0.3.2
|
24
34
|
*/
|
25
35
|
var V1SetStateBody = /*#__PURE__*/function () {
|
26
36
|
/**
|
27
37
|
* Constructs a new <code>V1SetStateBody</code>.
|
38
|
+
*
|
28
39
|
* @alias module:model/V1SetStateBody
|
29
40
|
* @param state {module:model/InstanceState}
|
30
41
|
*/
|
31
42
|
function V1SetStateBody(state) {
|
32
43
|
_classCallCheck(this, V1SetStateBody);
|
33
|
-
|
34
44
|
V1SetStateBody.initialize(this, state);
|
35
45
|
}
|
46
|
+
|
36
47
|
/**
|
37
48
|
* Initializes the fields of this object.
|
38
49
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
39
50
|
* Only for internal use.
|
40
51
|
*/
|
41
|
-
|
42
|
-
|
43
52
|
_createClass(V1SetStateBody, null, [{
|
44
53
|
key: "initialize",
|
45
54
|
value: function initialize(obj, state) {
|
46
55
|
obj['state'] = state;
|
47
56
|
}
|
57
|
+
|
48
58
|
/**
|
49
59
|
* Constructs a <code>V1SetStateBody</code> from a plain JavaScript object, optionally creating a new instance.
|
50
60
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
@@ -52,29 +62,51 @@ var V1SetStateBody = /*#__PURE__*/function () {
|
|
52
62
|
* @param {module:model/V1SetStateBody} obj Optional instance to populate.
|
53
63
|
* @return {module:model/V1SetStateBody} The populated <code>V1SetStateBody</code> instance.
|
54
64
|
*/
|
55
|
-
|
56
65
|
}, {
|
57
66
|
key: "constructFromObject",
|
58
67
|
value: function constructFromObject(data, obj) {
|
59
68
|
if (data) {
|
60
69
|
obj = obj || new V1SetStateBody();
|
61
|
-
|
62
70
|
if (data.hasOwnProperty('state')) {
|
63
71
|
obj['state'] = _InstanceState["default"].constructFromObject(data['state']);
|
64
72
|
}
|
65
73
|
}
|
66
|
-
|
67
74
|
return obj;
|
68
75
|
}
|
69
|
-
}]);
|
70
76
|
|
77
|
+
/**
|
78
|
+
* Validates the JSON data with respect to <code>V1SetStateBody</code>.
|
79
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
80
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>V1SetStateBody</code>.
|
81
|
+
*/
|
82
|
+
}, {
|
83
|
+
key: "validateJSON",
|
84
|
+
value: function validateJSON(data) {
|
85
|
+
// check to make sure all required properties are present in the JSON string
|
86
|
+
var _iterator = _createForOfIteratorHelper(V1SetStateBody.RequiredProperties),
|
87
|
+
_step;
|
88
|
+
try {
|
89
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
90
|
+
var property = _step.value;
|
91
|
+
if (!data[property]) {
|
92
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
93
|
+
}
|
94
|
+
}
|
95
|
+
} catch (err) {
|
96
|
+
_iterator.e(err);
|
97
|
+
} finally {
|
98
|
+
_iterator.f();
|
99
|
+
}
|
100
|
+
return true;
|
101
|
+
}
|
102
|
+
}]);
|
71
103
|
return V1SetStateBody;
|
72
104
|
}();
|
105
|
+
V1SetStateBody.RequiredProperties = ["state"];
|
106
|
+
|
73
107
|
/**
|
74
108
|
* @member {module:model/InstanceState} state
|
75
109
|
*/
|
76
|
-
|
77
|
-
|
78
110
|
V1SetStateBody.prototype['state'] = undefined;
|
79
111
|
var _default = V1SetStateBody;
|
80
112
|
exports["default"] = _default;
|