@blues-inc/notehub-js 6.2.0-beta.2 → 6.2.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +285 -293
- package/dist/ApiClient.js +150 -150
- package/dist/api/AlertApi.js +22 -22
- package/dist/api/AuthorizationApi.js +31 -31
- package/dist/api/BillingAccountApi.js +30 -30
- package/dist/api/DeviceApi.js +354 -354
- package/dist/api/EventApi.js +118 -118
- package/dist/api/ExternalDevicesApi.js +41 -41
- package/dist/api/JobsApi.js +127 -74
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +403 -702
- package/dist/api/RouteApi.js +83 -83
- package/dist/api/UsageApi.js +67 -67
- package/dist/api/WebhookApi.js +51 -51
- package/dist/index.js +0 -35
- package/dist/model/AWSRoleConfig.js +14 -14
- package/dist/model/AddDeviceToFleetsRequest.js +8 -8
- package/dist/model/Alert.js +76 -74
- package/dist/model/AlertDataInner.js +36 -36
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/AwsRoute.js +70 -70
- package/dist/model/AzureRoute.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/BlynkRoute.js +28 -28
- package/dist/model/Body.js +5 -5
- package/dist/model/CancelJobRun200Response.js +6 -6
- package/dist/model/CellularPlan.js +34 -34
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +20 -20
- package/dist/model/CreateJob201Response.js +8 -8
- package/dist/model/CreateMonitor.js +128 -127
- package/dist/model/CreateProductRequest.js +22 -22
- package/dist/model/CreateProjectRequest.js +16 -16
- package/dist/model/CreateUpdateRepository.js +17 -17
- package/dist/model/CurrentFirmware.js +12 -12
- package/dist/model/DFUEnv.js +12 -12
- package/dist/model/DFUState.js +65 -65
- package/dist/model/DataField.js +7 -7
- package/dist/model/DataSetField.js +19 -19
- package/dist/model/DataUsage.js +14 -14
- package/dist/model/DatacakeRoute.js +35 -35
- package/dist/model/DeleteDeviceFromFleetsRequest.js +8 -8
- package/dist/model/DeleteJob200Response.js +6 -6
- package/dist/model/DeleteNotefilesRequest.js +7 -7
- package/dist/model/Device.js +107 -106
- package/dist/model/DeviceDfuHistory.js +20 -19
- package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
- package/dist/model/DeviceDfuHistoryPage.js +13 -12
- package/dist/model/DeviceDfuStateMachine.js +25 -24
- package/dist/model/DeviceDfuStateMachineNode.js +22 -22
- package/dist/model/DeviceDfuStatus.js +20 -20
- package/dist/model/DeviceDfuStatusPage.js +13 -12
- package/dist/model/DeviceSession.js +221 -221
- package/dist/model/DeviceTowerInfo.js +14 -14
- package/dist/model/DeviceUsage.js +32 -32
- package/dist/model/DfuActionRequest.js +7 -7
- package/dist/model/EmailNotification.js +7 -7
- package/dist/model/EnvTreeJsonNode.js +69 -67
- package/dist/model/EnvVar.js +18 -18
- package/dist/model/EnvironmentVariables.js +8 -8
- package/dist/model/Error.js +31 -31
- package/dist/model/Event.js +248 -248
- package/dist/model/Filter.js +16 -16
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +68 -68
- package/dist/model/Fleet.js +38 -38
- package/dist/model/FleetConnectivityAssurance.js +5 -5
- package/dist/model/GetAlerts200Response.js +15 -14
- package/dist/model/GetBillingAccount200Response.js +25 -25
- package/dist/model/GetBillingAccount200ResponsePlan.js +22 -22
- package/dist/model/GetBillingAccountBalanceHistory200Response.js +10 -9
- package/dist/model/GetBillingAccountBalanceHistory200ResponseDataInner.js +17 -17
- package/dist/model/GetBillingAccounts200Response.js +10 -9
- package/dist/model/GetDataUsage200Response.js +13 -12
- package/dist/model/GetDataUsage200ResponseDataInner.js +44 -43
- package/dist/model/GetDbNote200Response.js +13 -13
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
- package/dist/model/GetDeviceFleets200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatestEvents200Response.js +10 -9
- package/dist/model/GetDevicePlans200Response.js +10 -9
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDevicePublicKeys200Response.js +17 -16
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetDeviceSessions200Response.js +17 -16
- package/dist/model/GetDevices200Response.js +17 -16
- package/dist/model/GetEvents200Response.js +21 -20
- package/dist/model/GetEventsByCursor200Response.js +24 -23
- package/dist/model/GetJobRuns200Response.js +12 -11
- package/dist/model/GetJobs200Response.js +12 -11
- package/dist/model/GetNotefile200Response.js +11 -11
- package/dist/model/GetProducts200Response.js +10 -9
- package/dist/model/GetProjectMembers200Response.js +12 -11
- package/dist/model/GetProjects200Response.js +10 -9
- package/dist/model/GetRouteLogsUsage200Response.js +15 -14
- package/dist/model/GetSessionsUsage200Response.js +16 -15
- package/dist/model/GetWebhooks200Response.js +10 -9
- package/dist/model/GoogleRoute.js +33 -33
- package/dist/model/HttpRoute.js +35 -35
- package/dist/model/Job.js +50 -28
- package/dist/model/JobRun.js +57 -57
- package/dist/model/Location.js +40 -40
- package/dist/model/Login200Response.js +7 -7
- package/dist/model/LoginRequest.js +12 -12
- package/dist/model/Monitor.js +102 -101
- package/dist/model/MonitorAlertRoutesInner.js +9 -10
- package/dist/model/MqttRoute.js +68 -68
- package/dist/model/Note.js +31 -31
- package/dist/model/NoteInput.js +9 -9
- package/dist/model/Notefile.js +23 -22
- package/dist/model/NotefileSchema.js +19 -18
- package/dist/model/NotehubRoute.js +103 -103
- package/dist/model/NotehubRouteSummary.js +23 -23
- package/dist/model/OAuth2Error.js +20 -20
- package/dist/model/OAuth2TokenResponse.js +23 -23
- package/dist/model/PersonalAccessToken.js +34 -34
- package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
- package/dist/model/PersonalAccessTokenInfo.js +18 -18
- package/dist/model/PersonalAccessTokenSecret.js +12 -12
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/ProvisionDeviceRequest.js +18 -18
- package/dist/model/ProxyRoute.js +29 -29
- package/dist/model/QubitroRoute.js +33 -33
- package/dist/model/RadRoute.js +31 -31
- package/dist/model/Repository.js +22 -22
- package/dist/model/Role.js +9 -9
- package/dist/model/RouteLog.js +38 -38
- package/dist/model/RouteTransformSettings.js +18 -18
- package/dist/model/RunJob200Response.js +8 -8
- package/dist/model/S3ArchiveRoute.js +79 -79
- package/dist/model/SatelliteDataUsage.js +18 -18
- package/dist/model/SatellitePlan.js +29 -29
- package/dist/model/SchemaProperty.js +38 -36
- package/dist/model/SignalDevice200Response.js +5 -5
- package/dist/model/SimUsage.js +19 -19
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackRoute.js +48 -48
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/SnowflakeRoute.js +45 -45
- package/dist/model/SnowpipeStreamingRoute.js +60 -60
- package/dist/model/ThingworxRoute.js +33 -33
- package/dist/model/TowerLocation.js +54 -54
- package/dist/model/TwilioRoute.js +43 -43
- package/dist/model/UpdateFleetRequest.js +33 -33
- package/dist/model/UploadMetadata.js +64 -64
- package/dist/model/UsageData.js +33 -33
- package/dist/model/UsageEventsData.js +49 -49
- package/dist/model/UsageEventsResponse.js +15 -14
- package/dist/model/UsageRouteLogsData.js +30 -30
- package/dist/model/UsageSessionsData.js +43 -43
- package/dist/model/UserDfuStateMachine.js +20 -20
- package/dist/model/UserDfuStateMachineStatus.js +20 -20
- package/dist/model/UserFirmwareInfo.js +12 -12
- package/dist/model/WebhookSettings.js +15 -15
- package/package.json +3 -3
- package/dist/model/CreateProjectSecretRequest.js +0 -130
- package/dist/model/GetProjectSecretsResponse.js +0 -131
- package/dist/model/ProjectSecret.js +0 -164
- package/dist/model/UpdateHostFirmwareRequest.js +0 -117
- package/dist/model/UpdateProjectSecretRequest.js +0 -115
|
@@ -1,130 +0,0 @@
|
|
|
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(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
-
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, 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 o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
11
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
12
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
15
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
|
-
* Notehub API
|
|
19
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
20
|
-
*
|
|
21
|
-
* The version of the OpenAPI document: 1.2.0
|
|
22
|
-
* Contact: engineering@blues.io
|
|
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 CreateProjectSecretRequest model module.
|
|
31
|
-
* @module model/CreateProjectSecretRequest
|
|
32
|
-
* @version 6.2.0-beta.2
|
|
33
|
-
*/
|
|
34
|
-
var CreateProjectSecretRequest = /*#__PURE__*/function () {
|
|
35
|
-
/**
|
|
36
|
-
* Constructs a new <code>CreateProjectSecretRequest</code>.
|
|
37
|
-
* @alias module:model/CreateProjectSecretRequest
|
|
38
|
-
* @param name {String} The secret name (alphanumeric and underscores only).
|
|
39
|
-
* @param value {String} The secret value (encrypted at rest, never returned after creation).
|
|
40
|
-
*/
|
|
41
|
-
function CreateProjectSecretRequest(name, value) {
|
|
42
|
-
_classCallCheck(this, CreateProjectSecretRequest);
|
|
43
|
-
CreateProjectSecretRequest.initialize(this, name, value);
|
|
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
|
-
return _createClass(CreateProjectSecretRequest, null, [{
|
|
52
|
-
key: "initialize",
|
|
53
|
-
value: function initialize(obj, name, value) {
|
|
54
|
-
obj["name"] = name;
|
|
55
|
-
obj["value"] = value;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Constructs a <code>CreateProjectSecretRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
60
|
-
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
61
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
62
|
-
* @param {module:model/CreateProjectSecretRequest} obj Optional instance to populate.
|
|
63
|
-
* @return {module:model/CreateProjectSecretRequest} The populated <code>CreateProjectSecretRequest</code> instance.
|
|
64
|
-
*/
|
|
65
|
-
}, {
|
|
66
|
-
key: "constructFromObject",
|
|
67
|
-
value: function constructFromObject(data, obj) {
|
|
68
|
-
if (data) {
|
|
69
|
-
obj = obj || new CreateProjectSecretRequest();
|
|
70
|
-
if (data.hasOwnProperty("name")) {
|
|
71
|
-
obj["name"] = _ApiClient["default"].convertToType(data["name"], "String");
|
|
72
|
-
}
|
|
73
|
-
if (data.hasOwnProperty("value")) {
|
|
74
|
-
obj["value"] = _ApiClient["default"].convertToType(data["value"], "String");
|
|
75
|
-
}
|
|
76
|
-
} else if (data === null) {
|
|
77
|
-
return null;
|
|
78
|
-
}
|
|
79
|
-
return obj;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Validates the JSON data with respect to <code>CreateProjectSecretRequest</code>.
|
|
84
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
85
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreateProjectSecretRequest</code>.
|
|
86
|
-
*/
|
|
87
|
-
}, {
|
|
88
|
-
key: "validateJSON",
|
|
89
|
-
value: function validateJSON(data) {
|
|
90
|
-
// check to make sure all required properties are present in the JSON string
|
|
91
|
-
var _iterator = _createForOfIteratorHelper(CreateProjectSecretRequest.RequiredProperties),
|
|
92
|
-
_step;
|
|
93
|
-
try {
|
|
94
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
95
|
-
var property = _step.value;
|
|
96
|
-
if (!data[property]) {
|
|
97
|
-
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
// ensure the json data is a string
|
|
101
|
-
} catch (err) {
|
|
102
|
-
_iterator.e(err);
|
|
103
|
-
} finally {
|
|
104
|
-
_iterator.f();
|
|
105
|
-
}
|
|
106
|
-
if (data["name"] && !(typeof data["name"] === "string" || data["name"] instanceof String)) {
|
|
107
|
-
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data["name"]);
|
|
108
|
-
}
|
|
109
|
-
// ensure the json data is a string
|
|
110
|
-
if (data["value"] && !(typeof data["value"] === "string" || data["value"] instanceof String)) {
|
|
111
|
-
throw new Error("Expected the field `value` to be a primitive type in the JSON string but got " + data["value"]);
|
|
112
|
-
}
|
|
113
|
-
return true;
|
|
114
|
-
}
|
|
115
|
-
}]);
|
|
116
|
-
}();
|
|
117
|
-
CreateProjectSecretRequest.RequiredProperties = ["name", "value"];
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* The secret name (alphanumeric and underscores only).
|
|
121
|
-
* @member {String} name
|
|
122
|
-
*/
|
|
123
|
-
CreateProjectSecretRequest.prototype["name"] = undefined;
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* The secret value (encrypted at rest, never returned after creation).
|
|
127
|
-
* @member {String} value
|
|
128
|
-
*/
|
|
129
|
-
CreateProjectSecretRequest.prototype["value"] = undefined;
|
|
130
|
-
var _default = exports["default"] = CreateProjectSecretRequest;
|
|
@@ -1,131 +0,0 @@
|
|
|
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 _ProjectSecret = _interopRequireDefault(require("./ProjectSecret"));
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
|
-
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, 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 o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
12
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
13
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
14
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
16
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
|
-
* Notehub API
|
|
20
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
21
|
-
*
|
|
22
|
-
* The version of the OpenAPI document: 1.2.0
|
|
23
|
-
* Contact: engineering@blues.io
|
|
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 GetProjectSecretsResponse model module.
|
|
32
|
-
* @module model/GetProjectSecretsResponse
|
|
33
|
-
* @version 6.2.0-beta.2
|
|
34
|
-
*/
|
|
35
|
-
var GetProjectSecretsResponse = /*#__PURE__*/function () {
|
|
36
|
-
/**
|
|
37
|
-
* Constructs a new <code>GetProjectSecretsResponse</code>.
|
|
38
|
-
* @alias module:model/GetProjectSecretsResponse
|
|
39
|
-
* @param secrets {Array.<module:model/ProjectSecret>}
|
|
40
|
-
*/
|
|
41
|
-
function GetProjectSecretsResponse(secrets) {
|
|
42
|
-
_classCallCheck(this, GetProjectSecretsResponse);
|
|
43
|
-
GetProjectSecretsResponse.initialize(this, secrets);
|
|
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
|
-
return _createClass(GetProjectSecretsResponse, null, [{
|
|
52
|
-
key: "initialize",
|
|
53
|
-
value: function initialize(obj, secrets) {
|
|
54
|
-
obj["secrets"] = secrets;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Constructs a <code>GetProjectSecretsResponse</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/GetProjectSecretsResponse} obj Optional instance to populate.
|
|
62
|
-
* @return {module:model/GetProjectSecretsResponse} The populated <code>GetProjectSecretsResponse</code> instance.
|
|
63
|
-
*/
|
|
64
|
-
}, {
|
|
65
|
-
key: "constructFromObject",
|
|
66
|
-
value: function constructFromObject(data, obj) {
|
|
67
|
-
if (data) {
|
|
68
|
-
obj = obj || new GetProjectSecretsResponse();
|
|
69
|
-
if (data.hasOwnProperty("secrets")) {
|
|
70
|
-
obj["secrets"] = _ApiClient["default"].convertToType(data["secrets"], [_ProjectSecret["default"]]);
|
|
71
|
-
}
|
|
72
|
-
} else if (data === null) {
|
|
73
|
-
return null;
|
|
74
|
-
}
|
|
75
|
-
return obj;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Validates the JSON data with respect to <code>GetProjectSecretsResponse</code>.
|
|
80
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
81
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetProjectSecretsResponse</code>.
|
|
82
|
-
*/
|
|
83
|
-
}, {
|
|
84
|
-
key: "validateJSON",
|
|
85
|
-
value: function validateJSON(data) {
|
|
86
|
-
// check to make sure all required properties are present in the JSON string
|
|
87
|
-
var _iterator = _createForOfIteratorHelper(GetProjectSecretsResponse.RequiredProperties),
|
|
88
|
-
_step;
|
|
89
|
-
try {
|
|
90
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
91
|
-
var property = _step.value;
|
|
92
|
-
if (!data[property]) {
|
|
93
|
-
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
} catch (err) {
|
|
97
|
-
_iterator.e(err);
|
|
98
|
-
} finally {
|
|
99
|
-
_iterator.f();
|
|
100
|
-
}
|
|
101
|
-
if (data["secrets"]) {
|
|
102
|
-
// data not null
|
|
103
|
-
// ensure the json data is an array
|
|
104
|
-
if (!Array.isArray(data["secrets"])) {
|
|
105
|
-
throw new Error("Expected the field `secrets` to be an array in the JSON data but got " + data["secrets"]);
|
|
106
|
-
}
|
|
107
|
-
// validate the optional field `secrets` (array)
|
|
108
|
-
var _iterator2 = _createForOfIteratorHelper(data["secrets"]),
|
|
109
|
-
_step2;
|
|
110
|
-
try {
|
|
111
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
112
|
-
var item = _step2.value;
|
|
113
|
-
_ProjectSecret["default"].validateJsonObject(item);
|
|
114
|
-
}
|
|
115
|
-
} catch (err) {
|
|
116
|
-
_iterator2.e(err);
|
|
117
|
-
} finally {
|
|
118
|
-
_iterator2.f();
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
return true;
|
|
122
|
-
}
|
|
123
|
-
}]);
|
|
124
|
-
}();
|
|
125
|
-
GetProjectSecretsResponse.RequiredProperties = ["secrets"];
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* @member {Array.<module:model/ProjectSecret>} secrets
|
|
129
|
-
*/
|
|
130
|
-
GetProjectSecretsResponse.prototype["secrets"] = undefined;
|
|
131
|
-
var _default = exports["default"] = GetProjectSecretsResponse;
|
|
@@ -1,164 +0,0 @@
|
|
|
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(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
-
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, 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 o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
11
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
12
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
15
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
|
-
* Notehub API
|
|
19
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
20
|
-
*
|
|
21
|
-
* The version of the OpenAPI document: 1.2.0
|
|
22
|
-
* Contact: engineering@blues.io
|
|
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 ProjectSecret model module.
|
|
31
|
-
* @module model/ProjectSecret
|
|
32
|
-
* @version 6.2.0-beta.2
|
|
33
|
-
*/
|
|
34
|
-
var ProjectSecret = /*#__PURE__*/function () {
|
|
35
|
-
/**
|
|
36
|
-
* Constructs a new <code>ProjectSecret</code>.
|
|
37
|
-
* Metadata for a project secret. The value is never returned.
|
|
38
|
-
* @alias module:model/ProjectSecret
|
|
39
|
-
* @param created {Date} When the secret was first created.
|
|
40
|
-
* @param createdBy {String} The actor who created the secret.
|
|
41
|
-
* @param name {String} The secret name (alphanumeric and underscores only).
|
|
42
|
-
*/
|
|
43
|
-
function ProjectSecret(created, createdBy, name) {
|
|
44
|
-
_classCallCheck(this, ProjectSecret);
|
|
45
|
-
ProjectSecret.initialize(this, created, createdBy, name);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Initializes the fields of this object.
|
|
50
|
-
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
51
|
-
* Only for internal use.
|
|
52
|
-
*/
|
|
53
|
-
return _createClass(ProjectSecret, null, [{
|
|
54
|
-
key: "initialize",
|
|
55
|
-
value: function initialize(obj, created, createdBy, name) {
|
|
56
|
-
obj["created"] = created;
|
|
57
|
-
obj["created_by"] = createdBy;
|
|
58
|
-
obj["name"] = name;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Constructs a <code>ProjectSecret</code> from a plain JavaScript object, optionally creating a new instance.
|
|
63
|
-
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
64
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
65
|
-
* @param {module:model/ProjectSecret} obj Optional instance to populate.
|
|
66
|
-
* @return {module:model/ProjectSecret} The populated <code>ProjectSecret</code> instance.
|
|
67
|
-
*/
|
|
68
|
-
}, {
|
|
69
|
-
key: "constructFromObject",
|
|
70
|
-
value: function constructFromObject(data, obj) {
|
|
71
|
-
if (data) {
|
|
72
|
-
obj = obj || new ProjectSecret();
|
|
73
|
-
if (data.hasOwnProperty("created")) {
|
|
74
|
-
obj["created"] = _ApiClient["default"].convertToType(data["created"], "Date");
|
|
75
|
-
}
|
|
76
|
-
if (data.hasOwnProperty("created_by")) {
|
|
77
|
-
obj["created_by"] = _ApiClient["default"].convertToType(data["created_by"], "String");
|
|
78
|
-
}
|
|
79
|
-
if (data.hasOwnProperty("modified")) {
|
|
80
|
-
obj["modified"] = _ApiClient["default"].convertToType(data["modified"], "Date");
|
|
81
|
-
}
|
|
82
|
-
if (data.hasOwnProperty("modified_by")) {
|
|
83
|
-
obj["modified_by"] = _ApiClient["default"].convertToType(data["modified_by"], "String");
|
|
84
|
-
}
|
|
85
|
-
if (data.hasOwnProperty("name")) {
|
|
86
|
-
obj["name"] = _ApiClient["default"].convertToType(data["name"], "String");
|
|
87
|
-
}
|
|
88
|
-
} else if (data === null) {
|
|
89
|
-
return null;
|
|
90
|
-
}
|
|
91
|
-
return obj;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Validates the JSON data with respect to <code>ProjectSecret</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>ProjectSecret</code>.
|
|
98
|
-
*/
|
|
99
|
-
}, {
|
|
100
|
-
key: "validateJSON",
|
|
101
|
-
value: function validateJSON(data) {
|
|
102
|
-
// check to make sure all required properties are present in the JSON string
|
|
103
|
-
var _iterator = _createForOfIteratorHelper(ProjectSecret.RequiredProperties),
|
|
104
|
-
_step;
|
|
105
|
-
try {
|
|
106
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
107
|
-
var property = _step.value;
|
|
108
|
-
if (!data[property]) {
|
|
109
|
-
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
// ensure the json data is a string
|
|
113
|
-
} catch (err) {
|
|
114
|
-
_iterator.e(err);
|
|
115
|
-
} finally {
|
|
116
|
-
_iterator.f();
|
|
117
|
-
}
|
|
118
|
-
if (data["created_by"] && !(typeof data["created_by"] === "string" || data["created_by"] instanceof String)) {
|
|
119
|
-
throw new Error("Expected the field `created_by` to be a primitive type in the JSON string but got " + data["created_by"]);
|
|
120
|
-
}
|
|
121
|
-
// ensure the json data is a string
|
|
122
|
-
if (data["modified_by"] && !(typeof data["modified_by"] === "string" || data["modified_by"] instanceof String)) {
|
|
123
|
-
throw new Error("Expected the field `modified_by` to be a primitive type in the JSON string but got " + data["modified_by"]);
|
|
124
|
-
}
|
|
125
|
-
// ensure the json data is a string
|
|
126
|
-
if (data["name"] && !(typeof data["name"] === "string" || data["name"] instanceof String)) {
|
|
127
|
-
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data["name"]);
|
|
128
|
-
}
|
|
129
|
-
return true;
|
|
130
|
-
}
|
|
131
|
-
}]);
|
|
132
|
-
}();
|
|
133
|
-
ProjectSecret.RequiredProperties = ["created", "created_by", "name"];
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* When the secret was first created.
|
|
137
|
-
* @member {Date} created
|
|
138
|
-
*/
|
|
139
|
-
ProjectSecret.prototype["created"] = undefined;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* The actor who created the secret.
|
|
143
|
-
* @member {String} created_by
|
|
144
|
-
*/
|
|
145
|
-
ProjectSecret.prototype["created_by"] = undefined;
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* When the secret was last updated.
|
|
149
|
-
* @member {Date} modified
|
|
150
|
-
*/
|
|
151
|
-
ProjectSecret.prototype["modified"] = undefined;
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* The actor who last updated the secret.
|
|
155
|
-
* @member {String} modified_by
|
|
156
|
-
*/
|
|
157
|
-
ProjectSecret.prototype["modified_by"] = undefined;
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* The secret name (alphanumeric and underscores only).
|
|
161
|
-
* @member {String} name
|
|
162
|
-
*/
|
|
163
|
-
ProjectSecret.prototype["name"] = undefined;
|
|
164
|
-
var _default = exports["default"] = ProjectSecret;
|
|
@@ -1,117 +0,0 @@
|
|
|
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(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
12
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
15
|
-
* Notehub API
|
|
16
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
17
|
-
*
|
|
18
|
-
* The version of the OpenAPI document: 1.2.0
|
|
19
|
-
* Contact: engineering@blues.io
|
|
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 UpdateHostFirmwareRequest model module.
|
|
28
|
-
* @module model/UpdateHostFirmwareRequest
|
|
29
|
-
* @version 6.2.0-beta.2
|
|
30
|
-
*/
|
|
31
|
-
var UpdateHostFirmwareRequest = /*#__PURE__*/function () {
|
|
32
|
-
/**
|
|
33
|
-
* Constructs a new <code>UpdateHostFirmwareRequest</code>.
|
|
34
|
-
* Request body for updating host firmware metadata. All fields are optional; only provided fields will be updated.
|
|
35
|
-
* @alias module:model/UpdateHostFirmwareRequest
|
|
36
|
-
*/
|
|
37
|
-
function UpdateHostFirmwareRequest() {
|
|
38
|
-
_classCallCheck(this, UpdateHostFirmwareRequest);
|
|
39
|
-
UpdateHostFirmwareRequest.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
|
-
return _createClass(UpdateHostFirmwareRequest, null, [{
|
|
48
|
-
key: "initialize",
|
|
49
|
-
value: function initialize(obj) {}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Constructs a <code>UpdateHostFirmwareRequest</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/UpdateHostFirmwareRequest} obj Optional instance to populate.
|
|
56
|
-
* @return {module:model/UpdateHostFirmwareRequest} The populated <code>UpdateHostFirmwareRequest</code> instance.
|
|
57
|
-
*/
|
|
58
|
-
}, {
|
|
59
|
-
key: "constructFromObject",
|
|
60
|
-
value: function constructFromObject(data, obj) {
|
|
61
|
-
if (data) {
|
|
62
|
-
obj = obj || new UpdateHostFirmwareRequest();
|
|
63
|
-
if (data.hasOwnProperty("info")) {
|
|
64
|
-
obj["info"] = _ApiClient["default"].convertToType(data["info"], {
|
|
65
|
-
String: Object
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
if (data.hasOwnProperty("notes")) {
|
|
69
|
-
obj["notes"] = _ApiClient["default"].convertToType(data["notes"], "String");
|
|
70
|
-
}
|
|
71
|
-
if (data.hasOwnProperty("version")) {
|
|
72
|
-
obj["version"] = _ApiClient["default"].convertToType(data["version"], "String");
|
|
73
|
-
}
|
|
74
|
-
} else if (data === null) {
|
|
75
|
-
return null;
|
|
76
|
-
}
|
|
77
|
-
return obj;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Validates the JSON data with respect to <code>UpdateHostFirmwareRequest</code>.
|
|
82
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
83
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>UpdateHostFirmwareRequest</code>.
|
|
84
|
-
*/
|
|
85
|
-
}, {
|
|
86
|
-
key: "validateJSON",
|
|
87
|
-
value: function validateJSON(data) {
|
|
88
|
-
// ensure the json data is a string
|
|
89
|
-
if (data["notes"] && !(typeof data["notes"] === "string" || data["notes"] instanceof String)) {
|
|
90
|
-
throw new Error("Expected the field `notes` to be a primitive type in the JSON string but got " + data["notes"]);
|
|
91
|
-
}
|
|
92
|
-
// ensure the json data is a string
|
|
93
|
-
if (data["version"] && !(typeof data["version"] === "string" || data["version"] instanceof String)) {
|
|
94
|
-
throw new Error("Expected the field `version` to be a primitive type in the JSON string but got " + data["version"]);
|
|
95
|
-
}
|
|
96
|
-
return true;
|
|
97
|
-
}
|
|
98
|
-
}]);
|
|
99
|
-
}();
|
|
100
|
-
/**
|
|
101
|
-
* Arbitrary JSON metadata associated with this firmware entry.
|
|
102
|
-
* @member {Object.<String, Object>} info
|
|
103
|
-
*/
|
|
104
|
-
UpdateHostFirmwareRequest.prototype["info"] = undefined;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Notes describing this firmware version.
|
|
108
|
-
* @member {String} notes
|
|
109
|
-
*/
|
|
110
|
-
UpdateHostFirmwareRequest.prototype["notes"] = undefined;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* The firmware version string.
|
|
114
|
-
* @member {String} version
|
|
115
|
-
*/
|
|
116
|
-
UpdateHostFirmwareRequest.prototype["version"] = undefined;
|
|
117
|
-
var _default = exports["default"] = UpdateHostFirmwareRequest;
|
|
@@ -1,115 +0,0 @@
|
|
|
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(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
-
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, 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 o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
11
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
12
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
15
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
|
-
* Notehub API
|
|
19
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
20
|
-
*
|
|
21
|
-
* The version of the OpenAPI document: 1.2.0
|
|
22
|
-
* Contact: engineering@blues.io
|
|
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 UpdateProjectSecretRequest model module.
|
|
31
|
-
* @module model/UpdateProjectSecretRequest
|
|
32
|
-
* @version 6.2.0-beta.2
|
|
33
|
-
*/
|
|
34
|
-
var UpdateProjectSecretRequest = /*#__PURE__*/function () {
|
|
35
|
-
/**
|
|
36
|
-
* Constructs a new <code>UpdateProjectSecretRequest</code>.
|
|
37
|
-
* @alias module:model/UpdateProjectSecretRequest
|
|
38
|
-
* @param value {String} The new secret value (encrypted at rest, never returned).
|
|
39
|
-
*/
|
|
40
|
-
function UpdateProjectSecretRequest(value) {
|
|
41
|
-
_classCallCheck(this, UpdateProjectSecretRequest);
|
|
42
|
-
UpdateProjectSecretRequest.initialize(this, value);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Initializes the fields of this object.
|
|
47
|
-
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
48
|
-
* Only for internal use.
|
|
49
|
-
*/
|
|
50
|
-
return _createClass(UpdateProjectSecretRequest, null, [{
|
|
51
|
-
key: "initialize",
|
|
52
|
-
value: function initialize(obj, value) {
|
|
53
|
-
obj["value"] = value;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Constructs a <code>UpdateProjectSecretRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
58
|
-
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
59
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
60
|
-
* @param {module:model/UpdateProjectSecretRequest} obj Optional instance to populate.
|
|
61
|
-
* @return {module:model/UpdateProjectSecretRequest} The populated <code>UpdateProjectSecretRequest</code> instance.
|
|
62
|
-
*/
|
|
63
|
-
}, {
|
|
64
|
-
key: "constructFromObject",
|
|
65
|
-
value: function constructFromObject(data, obj) {
|
|
66
|
-
if (data) {
|
|
67
|
-
obj = obj || new UpdateProjectSecretRequest();
|
|
68
|
-
if (data.hasOwnProperty("value")) {
|
|
69
|
-
obj["value"] = _ApiClient["default"].convertToType(data["value"], "String");
|
|
70
|
-
}
|
|
71
|
-
} else if (data === null) {
|
|
72
|
-
return null;
|
|
73
|
-
}
|
|
74
|
-
return obj;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Validates the JSON data with respect to <code>UpdateProjectSecretRequest</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>UpdateProjectSecretRequest</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(UpdateProjectSecretRequest.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
|
-
// ensure the json data is a string
|
|
96
|
-
} catch (err) {
|
|
97
|
-
_iterator.e(err);
|
|
98
|
-
} finally {
|
|
99
|
-
_iterator.f();
|
|
100
|
-
}
|
|
101
|
-
if (data["value"] && !(typeof data["value"] === "string" || data["value"] instanceof String)) {
|
|
102
|
-
throw new Error("Expected the field `value` to be a primitive type in the JSON string but got " + data["value"]);
|
|
103
|
-
}
|
|
104
|
-
return true;
|
|
105
|
-
}
|
|
106
|
-
}]);
|
|
107
|
-
}();
|
|
108
|
-
UpdateProjectSecretRequest.RequiredProperties = ["value"];
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* The new secret value (encrypted at rest, never returned).
|
|
112
|
-
* @member {String} value
|
|
113
|
-
*/
|
|
114
|
-
UpdateProjectSecretRequest.prototype["value"] = undefined;
|
|
115
|
-
var _default = exports["default"] = UpdateProjectSecretRequest;
|