@blues-inc/notehub-js 1.0.4
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 +297 -0
- package/dist/ApiClient.js +699 -0
- package/dist/api/AuthorizationApi.js +74 -0
- package/dist/api/BillingAccountApi.js +68 -0
- package/dist/api/DeviceApi.js +784 -0
- package/dist/api/DevicesApi.js +293 -0
- package/dist/api/EnvironmentVariablesApi.js +567 -0
- package/dist/api/EventApi.js +284 -0
- package/dist/api/FilesApi.js +193 -0
- package/dist/api/FleetApi.js +715 -0
- package/dist/api/NotesApi.js +435 -0
- package/dist/api/ProductApi.js +163 -0
- package/dist/api/ProjectApi.js +716 -0
- package/dist/api/RouteApi.js +266 -0
- package/dist/index.js +566 -0
- package/dist/model/Aws.js +233 -0
- package/dist/model/Azure.js +166 -0
- package/dist/model/BillingAccount.js +130 -0
- package/dist/model/BillingAccountRole.js +42 -0
- package/dist/model/Body.js +78 -0
- package/dist/model/Contact.js +118 -0
- package/dist/model/CreateFleetRequest.js +83 -0
- package/dist/model/CreateProductRequest.js +142 -0
- package/dist/model/CreateProjectRequest.js +119 -0
- package/dist/model/DFUEnv.js +97 -0
- package/dist/model/DFUState.js +276 -0
- package/dist/model/DeleteDeviceFleetsRequest.js +106 -0
- package/dist/model/Device.js +267 -0
- package/dist/model/DeviceSession.js +537 -0
- package/dist/model/DeviceTowerInfo.js +102 -0
- package/dist/model/DeviceUsage.js +150 -0
- package/dist/model/EnvironmentVariables.js +103 -0
- package/dist/model/Error.js +164 -0
- package/dist/model/Event.js +676 -0
- package/dist/model/Fleet.js +129 -0
- package/dist/model/GetBillingAccounts200Response.js +103 -0
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +117 -0
- package/dist/model/GetDeviceHealthLog200Response.js +123 -0
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +125 -0
- package/dist/model/GetDeviceLatest200Response.js +104 -0
- package/dist/model/GetDevicePublicKey200Response.js +119 -0
- package/dist/model/GetDeviceSessions200Response.js +133 -0
- package/dist/model/GetProjectDevicePublicKeys200Response.js +133 -0
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +94 -0
- package/dist/model/GetProjectDevices200Response.js +133 -0
- package/dist/model/GetProjectEvents200Response.js +149 -0
- package/dist/model/GetProjectEventsByCursor200Response.js +149 -0
- package/dist/model/GetProjectFleets200Response.js +123 -0
- package/dist/model/GetProjectMembers200Response.js +123 -0
- package/dist/model/GetProjectProducts200Response.js +103 -0
- package/dist/model/GetProjects200Response.js +103 -0
- package/dist/model/Google.js +142 -0
- package/dist/model/HandleNoteChanges200Response.js +97 -0
- package/dist/model/HandleNoteGet200Response.js +101 -0
- package/dist/model/HandleNoteSignal200Response.js +79 -0
- package/dist/model/HandleNotefileChanges200Response.js +97 -0
- package/dist/model/HandleNotefileChangesPending200Response.js +106 -0
- package/dist/model/HandleNotefileDeleteRequest.js +83 -0
- package/dist/model/Http.js +163 -0
- package/dist/model/HttpFilter.js +128 -0
- package/dist/model/HttpTransform.js +139 -0
- package/dist/model/Location.js +167 -0
- package/dist/model/Login200Response.js +82 -0
- package/dist/model/LoginRequest.js +94 -0
- package/dist/model/Mqtt.js +240 -0
- package/dist/model/Note.js +90 -0
- package/dist/model/Product.js +141 -0
- package/dist/model/Project.js +165 -0
- package/dist/model/ProjectMember.js +131 -0
- package/dist/model/Proxy.js +128 -0
- package/dist/model/PutDeviceFleetsRequest.js +106 -0
- package/dist/model/Radresponder.js +130 -0
- package/dist/model/Role.js +43 -0
- package/dist/model/Route.js +245 -0
- package/dist/model/RouteSchema.js +427 -0
- package/dist/model/Snowflake.js +185 -0
- package/dist/model/SnowflakeTransform.js +97 -0
- package/dist/model/Thingworx.js +154 -0
- package/dist/model/TowerLocation.js +204 -0
- package/dist/model/Twilio.js +181 -0
- package/dist/model/UpdateFleetRequest.js +109 -0
- package/dist/model/UserDbRoute.js +131 -0
- package/package.json +49 -0
|
@@ -0,0 +1,233 @@
|
|
|
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 _HttpFilter = _interopRequireDefault(require("./HttpFilter"));
|
|
9
|
+
var _HttpTransform = _interopRequireDefault(require("./HttpTransform"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
12
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
|
+
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); } }
|
|
14
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
15
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
16
|
+
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); }
|
|
17
|
+
/**
|
|
18
|
+
* The Aws model module.
|
|
19
|
+
* @module model/Aws
|
|
20
|
+
* @version 1.0.4
|
|
21
|
+
*/
|
|
22
|
+
var Aws = /*#__PURE__*/function () {
|
|
23
|
+
/**
|
|
24
|
+
* Constructs a new <code>Aws</code>.
|
|
25
|
+
* Route settings specific to AWS routes.
|
|
26
|
+
* @alias module:model/Aws
|
|
27
|
+
*/
|
|
28
|
+
function Aws() {
|
|
29
|
+
_classCallCheck(this, Aws);
|
|
30
|
+
Aws.initialize(this);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Initializes the fields of this object.
|
|
35
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
36
|
+
* Only for internal use.
|
|
37
|
+
*/
|
|
38
|
+
_createClass(Aws, null, [{
|
|
39
|
+
key: "initialize",
|
|
40
|
+
value: function initialize(obj) {}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Constructs a <code>Aws</code> from a plain JavaScript object, optionally creating a new instance.
|
|
44
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
45
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
46
|
+
* @param {module:model/Aws} obj Optional instance to populate.
|
|
47
|
+
* @return {module:model/Aws} The populated <code>Aws</code> instance.
|
|
48
|
+
*/
|
|
49
|
+
}, {
|
|
50
|
+
key: "constructFromObject",
|
|
51
|
+
value: function constructFromObject(data, obj) {
|
|
52
|
+
if (data) {
|
|
53
|
+
obj = obj || new Aws();
|
|
54
|
+
if (data.hasOwnProperty('fleets')) {
|
|
55
|
+
obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
|
|
56
|
+
}
|
|
57
|
+
if (data.hasOwnProperty('filter')) {
|
|
58
|
+
obj['filter'] = _HttpFilter["default"].constructFromObject(data['filter']);
|
|
59
|
+
}
|
|
60
|
+
if (data.hasOwnProperty('transform')) {
|
|
61
|
+
obj['transform'] = _HttpTransform["default"].constructFromObject(data['transform']);
|
|
62
|
+
}
|
|
63
|
+
if (data.hasOwnProperty('throttle_ms')) {
|
|
64
|
+
obj['throttle_ms'] = _ApiClient["default"].convertToType(data['throttle_ms'], 'Number');
|
|
65
|
+
}
|
|
66
|
+
if (data.hasOwnProperty('url')) {
|
|
67
|
+
obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
|
|
68
|
+
}
|
|
69
|
+
if (data.hasOwnProperty('http_headers')) {
|
|
70
|
+
obj['http_headers'] = _ApiClient["default"].convertToType(data['http_headers'], {
|
|
71
|
+
'String': 'String'
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
if (data.hasOwnProperty('disable_http_headers')) {
|
|
75
|
+
obj['disable_http_headers'] = _ApiClient["default"].convertToType(data['disable_http_headers'], 'Boolean');
|
|
76
|
+
}
|
|
77
|
+
if (data.hasOwnProperty('timeout')) {
|
|
78
|
+
obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number');
|
|
79
|
+
}
|
|
80
|
+
if (data.hasOwnProperty('region')) {
|
|
81
|
+
obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String');
|
|
82
|
+
}
|
|
83
|
+
if (data.hasOwnProperty('access_key_id')) {
|
|
84
|
+
obj['access_key_id'] = _ApiClient["default"].convertToType(data['access_key_id'], 'String');
|
|
85
|
+
}
|
|
86
|
+
if (data.hasOwnProperty('access_key_secret')) {
|
|
87
|
+
obj['access_key_secret'] = _ApiClient["default"].convertToType(data['access_key_secret'], 'String');
|
|
88
|
+
}
|
|
89
|
+
if (data.hasOwnProperty('message_group_id')) {
|
|
90
|
+
obj['message_group_id'] = _ApiClient["default"].convertToType(data['message_group_id'], 'String');
|
|
91
|
+
}
|
|
92
|
+
if (data.hasOwnProperty('message_deduplication_id')) {
|
|
93
|
+
obj['message_deduplication_id'] = _ApiClient["default"].convertToType(data['message_deduplication_id'], 'String');
|
|
94
|
+
}
|
|
95
|
+
if (data.hasOwnProperty('channel')) {
|
|
96
|
+
obj['channel'] = _ApiClient["default"].convertToType(data['channel'], 'String');
|
|
97
|
+
}
|
|
98
|
+
} else if (data === null) {
|
|
99
|
+
return null;
|
|
100
|
+
}
|
|
101
|
+
return obj;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Validates the JSON data with respect to <code>Aws</code>.
|
|
106
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
107
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Aws</code>.
|
|
108
|
+
*/
|
|
109
|
+
}, {
|
|
110
|
+
key: "validateJSON",
|
|
111
|
+
value: function validateJSON(data) {
|
|
112
|
+
// ensure the json data is an array
|
|
113
|
+
if (!Array.isArray(data['fleets'])) {
|
|
114
|
+
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
|
|
115
|
+
}
|
|
116
|
+
// validate the optional field `filter`
|
|
117
|
+
if (data['filter']) {
|
|
118
|
+
// data not null
|
|
119
|
+
_HttpFilter["default"].validateJSON(data['filter']);
|
|
120
|
+
}
|
|
121
|
+
// validate the optional field `transform`
|
|
122
|
+
if (data['transform']) {
|
|
123
|
+
// data not null
|
|
124
|
+
_HttpTransform["default"].validateJSON(data['transform']);
|
|
125
|
+
}
|
|
126
|
+
// ensure the json data is a string
|
|
127
|
+
if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) {
|
|
128
|
+
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']);
|
|
129
|
+
}
|
|
130
|
+
// ensure the json data is a string
|
|
131
|
+
if (data['region'] && !(typeof data['region'] === 'string' || data['region'] instanceof String)) {
|
|
132
|
+
throw new Error("Expected the field `region` to be a primitive type in the JSON string but got " + data['region']);
|
|
133
|
+
}
|
|
134
|
+
// ensure the json data is a string
|
|
135
|
+
if (data['access_key_id'] && !(typeof data['access_key_id'] === 'string' || data['access_key_id'] instanceof String)) {
|
|
136
|
+
throw new Error("Expected the field `access_key_id` to be a primitive type in the JSON string but got " + data['access_key_id']);
|
|
137
|
+
}
|
|
138
|
+
// ensure the json data is a string
|
|
139
|
+
if (data['access_key_secret'] && !(typeof data['access_key_secret'] === 'string' || data['access_key_secret'] instanceof String)) {
|
|
140
|
+
throw new Error("Expected the field `access_key_secret` to be a primitive type in the JSON string but got " + data['access_key_secret']);
|
|
141
|
+
}
|
|
142
|
+
// ensure the json data is a string
|
|
143
|
+
if (data['message_group_id'] && !(typeof data['message_group_id'] === 'string' || data['message_group_id'] instanceof String)) {
|
|
144
|
+
throw new Error("Expected the field `message_group_id` to be a primitive type in the JSON string but got " + data['message_group_id']);
|
|
145
|
+
}
|
|
146
|
+
// ensure the json data is a string
|
|
147
|
+
if (data['message_deduplication_id'] && !(typeof data['message_deduplication_id'] === 'string' || data['message_deduplication_id'] instanceof String)) {
|
|
148
|
+
throw new Error("Expected the field `message_deduplication_id` to be a primitive type in the JSON string but got " + data['message_deduplication_id']);
|
|
149
|
+
}
|
|
150
|
+
// ensure the json data is a string
|
|
151
|
+
if (data['channel'] && !(typeof data['channel'] === 'string' || data['channel'] instanceof String)) {
|
|
152
|
+
throw new Error("Expected the field `channel` to be a primitive type in the JSON string but got " + data['channel']);
|
|
153
|
+
}
|
|
154
|
+
return true;
|
|
155
|
+
}
|
|
156
|
+
}]);
|
|
157
|
+
return Aws;
|
|
158
|
+
}();
|
|
159
|
+
/**
|
|
160
|
+
* list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
|
|
161
|
+
* @member {Array.<String>} fleets
|
|
162
|
+
*/
|
|
163
|
+
Aws.prototype['fleets'] = undefined;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* @member {module:model/HttpFilter} filter
|
|
167
|
+
*/
|
|
168
|
+
Aws.prototype['filter'] = undefined;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* @member {module:model/HttpTransform} transform
|
|
172
|
+
*/
|
|
173
|
+
Aws.prototype['transform'] = undefined;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* @member {Number} throttle_ms
|
|
177
|
+
*/
|
|
178
|
+
Aws.prototype['throttle_ms'] = undefined;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* @member {String} url
|
|
182
|
+
*/
|
|
183
|
+
Aws.prototype['url'] = undefined;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* @member {Object.<String, String>} http_headers
|
|
187
|
+
*/
|
|
188
|
+
Aws.prototype['http_headers'] = undefined;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* @member {Boolean} disable_http_headers
|
|
192
|
+
* @default false
|
|
193
|
+
*/
|
|
194
|
+
Aws.prototype['disable_http_headers'] = false;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Timeout in seconds for each request
|
|
198
|
+
* @member {Number} timeout
|
|
199
|
+
* @default 15
|
|
200
|
+
*/
|
|
201
|
+
Aws.prototype['timeout'] = 15;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* @member {String} region
|
|
205
|
+
*/
|
|
206
|
+
Aws.prototype['region'] = undefined;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @member {String} access_key_id
|
|
210
|
+
*/
|
|
211
|
+
Aws.prototype['access_key_id'] = undefined;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @member {String} access_key_secret
|
|
215
|
+
*/
|
|
216
|
+
Aws.prototype['access_key_secret'] = undefined;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* @member {String} message_group_id
|
|
220
|
+
*/
|
|
221
|
+
Aws.prototype['message_group_id'] = undefined;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* @member {String} message_deduplication_id
|
|
225
|
+
*/
|
|
226
|
+
Aws.prototype['message_deduplication_id'] = undefined;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* @member {String} channel
|
|
230
|
+
*/
|
|
231
|
+
Aws.prototype['channel'] = undefined;
|
|
232
|
+
var _default = Aws;
|
|
233
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,166 @@
|
|
|
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 _HttpFilter = _interopRequireDefault(require("./HttpFilter"));
|
|
9
|
+
var _HttpTransform = _interopRequireDefault(require("./HttpTransform"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
12
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
|
+
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); } }
|
|
14
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
15
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
16
|
+
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); }
|
|
17
|
+
/**
|
|
18
|
+
* The Azure model module.
|
|
19
|
+
* @module model/Azure
|
|
20
|
+
* @version 1.0.4
|
|
21
|
+
*/
|
|
22
|
+
var Azure = /*#__PURE__*/function () {
|
|
23
|
+
/**
|
|
24
|
+
* Constructs a new <code>Azure</code>.
|
|
25
|
+
* Route settings specific to Azure routes. Only used for Azure route types
|
|
26
|
+
* @alias module:model/Azure
|
|
27
|
+
*/
|
|
28
|
+
function Azure() {
|
|
29
|
+
_classCallCheck(this, Azure);
|
|
30
|
+
Azure.initialize(this);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Initializes the fields of this object.
|
|
35
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
36
|
+
* Only for internal use.
|
|
37
|
+
*/
|
|
38
|
+
_createClass(Azure, null, [{
|
|
39
|
+
key: "initialize",
|
|
40
|
+
value: function initialize(obj) {}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Constructs a <code>Azure</code> from a plain JavaScript object, optionally creating a new instance.
|
|
44
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
45
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
46
|
+
* @param {module:model/Azure} obj Optional instance to populate.
|
|
47
|
+
* @return {module:model/Azure} The populated <code>Azure</code> instance.
|
|
48
|
+
*/
|
|
49
|
+
}, {
|
|
50
|
+
key: "constructFromObject",
|
|
51
|
+
value: function constructFromObject(data, obj) {
|
|
52
|
+
if (data) {
|
|
53
|
+
obj = obj || new Azure();
|
|
54
|
+
if (data.hasOwnProperty('fleets')) {
|
|
55
|
+
obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
|
|
56
|
+
}
|
|
57
|
+
if (data.hasOwnProperty('filter')) {
|
|
58
|
+
obj['filter'] = _HttpFilter["default"].constructFromObject(data['filter']);
|
|
59
|
+
}
|
|
60
|
+
if (data.hasOwnProperty('transform')) {
|
|
61
|
+
obj['transform'] = _HttpTransform["default"].constructFromObject(data['transform']);
|
|
62
|
+
}
|
|
63
|
+
if (data.hasOwnProperty('throttle_ms')) {
|
|
64
|
+
obj['throttle_ms'] = _ApiClient["default"].convertToType(data['throttle_ms'], 'Number');
|
|
65
|
+
}
|
|
66
|
+
if (data.hasOwnProperty('url')) {
|
|
67
|
+
obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
|
|
68
|
+
}
|
|
69
|
+
if (data.hasOwnProperty('timeout')) {
|
|
70
|
+
obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number');
|
|
71
|
+
}
|
|
72
|
+
if (data.hasOwnProperty('sas_policy_name')) {
|
|
73
|
+
obj['sas_policy_name'] = _ApiClient["default"].convertToType(data['sas_policy_name'], 'String');
|
|
74
|
+
}
|
|
75
|
+
if (data.hasOwnProperty('sas_policy_key')) {
|
|
76
|
+
obj['sas_policy_key'] = _ApiClient["default"].convertToType(data['sas_policy_key'], 'String');
|
|
77
|
+
}
|
|
78
|
+
} else if (data === null) {
|
|
79
|
+
return null;
|
|
80
|
+
}
|
|
81
|
+
return obj;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Validates the JSON data with respect to <code>Azure</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>Azure</code>.
|
|
88
|
+
*/
|
|
89
|
+
}, {
|
|
90
|
+
key: "validateJSON",
|
|
91
|
+
value: function validateJSON(data) {
|
|
92
|
+
// ensure the json data is an array
|
|
93
|
+
if (!Array.isArray(data['fleets'])) {
|
|
94
|
+
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
|
|
95
|
+
}
|
|
96
|
+
// validate the optional field `filter`
|
|
97
|
+
if (data['filter']) {
|
|
98
|
+
// data not null
|
|
99
|
+
_HttpFilter["default"].validateJSON(data['filter']);
|
|
100
|
+
}
|
|
101
|
+
// validate the optional field `transform`
|
|
102
|
+
if (data['transform']) {
|
|
103
|
+
// data not null
|
|
104
|
+
_HttpTransform["default"].validateJSON(data['transform']);
|
|
105
|
+
}
|
|
106
|
+
// ensure the json data is a string
|
|
107
|
+
if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) {
|
|
108
|
+
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']);
|
|
109
|
+
}
|
|
110
|
+
// ensure the json data is a string
|
|
111
|
+
if (data['sas_policy_name'] && !(typeof data['sas_policy_name'] === 'string' || data['sas_policy_name'] instanceof String)) {
|
|
112
|
+
throw new Error("Expected the field `sas_policy_name` to be a primitive type in the JSON string but got " + data['sas_policy_name']);
|
|
113
|
+
}
|
|
114
|
+
// ensure the json data is a string
|
|
115
|
+
if (data['sas_policy_key'] && !(typeof data['sas_policy_key'] === 'string' || data['sas_policy_key'] instanceof String)) {
|
|
116
|
+
throw new Error("Expected the field `sas_policy_key` to be a primitive type in the JSON string but got " + data['sas_policy_key']);
|
|
117
|
+
}
|
|
118
|
+
return true;
|
|
119
|
+
}
|
|
120
|
+
}]);
|
|
121
|
+
return Azure;
|
|
122
|
+
}();
|
|
123
|
+
/**
|
|
124
|
+
* list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
|
|
125
|
+
* @member {Array.<String>} fleets
|
|
126
|
+
*/
|
|
127
|
+
Azure.prototype['fleets'] = undefined;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* @member {module:model/HttpFilter} filter
|
|
131
|
+
*/
|
|
132
|
+
Azure.prototype['filter'] = undefined;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @member {module:model/HttpTransform} transform
|
|
136
|
+
*/
|
|
137
|
+
Azure.prototype['transform'] = undefined;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @member {Number} throttle_ms
|
|
141
|
+
*/
|
|
142
|
+
Azure.prototype['throttle_ms'] = undefined;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @member {String} url
|
|
146
|
+
*/
|
|
147
|
+
Azure.prototype['url'] = undefined;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Timeout in seconds for each request
|
|
151
|
+
* @member {Number} timeout
|
|
152
|
+
* @default 15
|
|
153
|
+
*/
|
|
154
|
+
Azure.prototype['timeout'] = 15;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @member {String} sas_policy_name
|
|
158
|
+
*/
|
|
159
|
+
Azure.prototype['sas_policy_name'] = undefined;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* @member {String} sas_policy_key
|
|
163
|
+
*/
|
|
164
|
+
Azure.prototype['sas_policy_key'] = undefined;
|
|
165
|
+
var _default = Azure;
|
|
166
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,130 @@
|
|
|
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 _BillingAccountRole = _interopRequireDefault(require("./BillingAccountRole"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
10
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
11
|
+
function _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
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
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); } }
|
|
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; }
|
|
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
|
+
/**
|
|
20
|
+
* The BillingAccount model module.
|
|
21
|
+
* @module model/BillingAccount
|
|
22
|
+
* @version 1.0.4
|
|
23
|
+
*/
|
|
24
|
+
var BillingAccount = /*#__PURE__*/function () {
|
|
25
|
+
/**
|
|
26
|
+
* Constructs a new <code>BillingAccount</code>.
|
|
27
|
+
* @alias module:model/BillingAccount
|
|
28
|
+
* @param uid {String}
|
|
29
|
+
* @param name {String}
|
|
30
|
+
* @param role {module:model/BillingAccountRole}
|
|
31
|
+
*/
|
|
32
|
+
function BillingAccount(uid, name, role) {
|
|
33
|
+
_classCallCheck(this, BillingAccount);
|
|
34
|
+
BillingAccount.initialize(this, uid, name, role);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Initializes the fields of this object.
|
|
39
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
40
|
+
* Only for internal use.
|
|
41
|
+
*/
|
|
42
|
+
_createClass(BillingAccount, null, [{
|
|
43
|
+
key: "initialize",
|
|
44
|
+
value: function initialize(obj, uid, name, role) {
|
|
45
|
+
obj['uid'] = uid;
|
|
46
|
+
obj['name'] = name;
|
|
47
|
+
obj['role'] = role;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Constructs a <code>BillingAccount</code> from a plain JavaScript object, optionally creating a new instance.
|
|
52
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
53
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
54
|
+
* @param {module:model/BillingAccount} obj Optional instance to populate.
|
|
55
|
+
* @return {module:model/BillingAccount} The populated <code>BillingAccount</code> instance.
|
|
56
|
+
*/
|
|
57
|
+
}, {
|
|
58
|
+
key: "constructFromObject",
|
|
59
|
+
value: function constructFromObject(data, obj) {
|
|
60
|
+
if (data) {
|
|
61
|
+
obj = obj || new BillingAccount();
|
|
62
|
+
if (data.hasOwnProperty('uid')) {
|
|
63
|
+
obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'String');
|
|
64
|
+
}
|
|
65
|
+
if (data.hasOwnProperty('name')) {
|
|
66
|
+
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
67
|
+
}
|
|
68
|
+
if (data.hasOwnProperty('role')) {
|
|
69
|
+
obj['role'] = _BillingAccountRole["default"].constructFromObject(data['role']);
|
|
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>BillingAccount</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>BillingAccount</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(BillingAccount.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['uid'] && !(typeof data['uid'] === 'string' || data['uid'] instanceof String)) {
|
|
102
|
+
throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data['uid']);
|
|
103
|
+
}
|
|
104
|
+
// ensure the json data is a string
|
|
105
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
106
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
107
|
+
}
|
|
108
|
+
return true;
|
|
109
|
+
}
|
|
110
|
+
}]);
|
|
111
|
+
return BillingAccount;
|
|
112
|
+
}();
|
|
113
|
+
BillingAccount.RequiredProperties = ["uid", "name", "role"];
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @member {String} uid
|
|
117
|
+
*/
|
|
118
|
+
BillingAccount.prototype['uid'] = undefined;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @member {String} name
|
|
122
|
+
*/
|
|
123
|
+
BillingAccount.prototype['name'] = undefined;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @member {module:model/BillingAccountRole} role
|
|
127
|
+
*/
|
|
128
|
+
BillingAccount.prototype['role'] = undefined;
|
|
129
|
+
var _default = BillingAccount;
|
|
130
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
10
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
12
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
15
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
16
|
+
/**
|
|
17
|
+
* Enum class BillingAccountRole.
|
|
18
|
+
* @enum {}
|
|
19
|
+
* @readonly
|
|
20
|
+
*/
|
|
21
|
+
var BillingAccountRole = /*#__PURE__*/function () {
|
|
22
|
+
function BillingAccountRole() {
|
|
23
|
+
_classCallCheck(this, BillingAccountRole);
|
|
24
|
+
_defineProperty(this, "billing_admin", "billing_admin");
|
|
25
|
+
_defineProperty(this, "billing_manager", "billing_manager");
|
|
26
|
+
_defineProperty(this, "project_creator", "project_creator");
|
|
27
|
+
}
|
|
28
|
+
_createClass(BillingAccountRole, null, [{
|
|
29
|
+
key: "constructFromObject",
|
|
30
|
+
value:
|
|
31
|
+
/**
|
|
32
|
+
* Returns a <code>BillingAccountRole</code> enum value from a Javascript object name.
|
|
33
|
+
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
|
34
|
+
* @return {module:model/BillingAccountRole} The enum <code>BillingAccountRole</code> value.
|
|
35
|
+
*/
|
|
36
|
+
function constructFromObject(object) {
|
|
37
|
+
return object;
|
|
38
|
+
}
|
|
39
|
+
}]);
|
|
40
|
+
return BillingAccountRole;
|
|
41
|
+
}();
|
|
42
|
+
exports["default"] = BillingAccountRole;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
10
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
12
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
14
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
15
|
+
/**
|
|
16
|
+
* The Body model module.
|
|
17
|
+
* @module model/Body
|
|
18
|
+
* @version 1.0.4
|
|
19
|
+
*/
|
|
20
|
+
var Body = /*#__PURE__*/function () {
|
|
21
|
+
/**
|
|
22
|
+
* Constructs a new <code>Body</code>.
|
|
23
|
+
* @alias module:model/Body
|
|
24
|
+
*/
|
|
25
|
+
function Body() {
|
|
26
|
+
_classCallCheck(this, Body);
|
|
27
|
+
Body.initialize(this);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Initializes the fields of this object.
|
|
32
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
33
|
+
* Only for internal use.
|
|
34
|
+
*/
|
|
35
|
+
_createClass(Body, null, [{
|
|
36
|
+
key: "initialize",
|
|
37
|
+
value: function initialize(obj) {}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Constructs a <code>Body</code> from a plain JavaScript object, optionally creating a new instance.
|
|
41
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
42
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
43
|
+
* @param {module:model/Body} obj Optional instance to populate.
|
|
44
|
+
* @return {module:model/Body} The populated <code>Body</code> instance.
|
|
45
|
+
*/
|
|
46
|
+
}, {
|
|
47
|
+
key: "constructFromObject",
|
|
48
|
+
value: function constructFromObject(data, obj) {
|
|
49
|
+
if (data) {
|
|
50
|
+
obj = obj || new Body();
|
|
51
|
+
if (data.hasOwnProperty('body')) {
|
|
52
|
+
obj['body'] = _ApiClient["default"].convertToType(data['body'], Object);
|
|
53
|
+
}
|
|
54
|
+
} else if (data === null) {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
return obj;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Validates the JSON data with respect to <code>Body</code>.
|
|
62
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
63
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Body</code>.
|
|
64
|
+
*/
|
|
65
|
+
}, {
|
|
66
|
+
key: "validateJSON",
|
|
67
|
+
value: function validateJSON(data) {
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
}]);
|
|
71
|
+
return Body;
|
|
72
|
+
}();
|
|
73
|
+
/**
|
|
74
|
+
* @member {Object} body
|
|
75
|
+
*/
|
|
76
|
+
Body.prototype['body'] = undefined;
|
|
77
|
+
var _default = Body;
|
|
78
|
+
exports["default"] = _default;
|