@gobodo/gobodo-api 0.1.56 → 0.1.59
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 +46 -12
- package/dist/ApiClient.js +20 -21
- package/dist/api/ActionTypesApi.js +19 -20
- package/dist/api/AdCampaignsApi.js +19 -20
- package/dist/api/AdManagementApi.js +19 -20
- package/dist/api/AdminDataManagementApi.js +19 -20
- package/dist/api/AdsApi.js +19 -20
- package/dist/api/AttachmentsApi.js +19 -20
- package/dist/api/AuthenticationApi.js +55 -20
- package/dist/api/CategoriesApi.js +19 -20
- package/dist/api/CommentsApi.js +19 -20
- package/dist/api/ContentManagementApi.js +20 -21
- package/dist/api/ConversationsApi.js +19 -20
- package/dist/api/DataSheetImportsApi.js +19 -20
- package/dist/api/DefaultApi.js +25 -366
- package/dist/api/DocumentsApi.js +20 -21
- package/dist/api/EmailsApi.js +19 -20
- package/dist/api/EntryPartsApi.js +19 -20
- package/dist/api/FacebookApi.js +19 -20
- package/dist/api/FieldsApi.js +19 -20
- package/dist/api/FilesApi.js +19 -20
- package/dist/api/FormsApi.js +19 -20
- package/dist/api/FunctionsApi.js +721 -32
- package/dist/api/GeocodeApi.js +19 -20
- package/dist/api/GoogleApi.js +19 -20
- package/dist/api/GraphActionTypesApi.js +510 -0
- package/dist/api/GraphActionsApi.js +19 -20
- package/dist/api/GraphObjectTypesApi.js +151 -27
- package/dist/api/GraphObjectsApi.js +19 -20
- package/dist/api/GraphRelationshipTypesApi.js +144 -20
- package/dist/api/GraphRelationshipsApi.js +19 -20
- package/dist/api/GraphSchemasApi.js +19 -20
- package/dist/api/GraphTraversalApi.js +19 -20
- package/dist/api/GraphsApi.js +19 -20
- package/dist/api/GroupsApi.js +19 -20
- package/dist/api/IAMApi.js +19 -20
- package/dist/api/ImagesApi.js +19 -20
- package/dist/api/InvitesApi.js +19 -20
- package/dist/api/LikesApi.js +19 -20
- package/dist/api/LinkedINApi.js +19 -20
- package/dist/api/LiveMeetingsApi.js +19 -20
- package/dist/api/MeetingEventsApi.js +19 -20
- package/dist/api/NotificationsApi.js +39 -40
- package/dist/api/PagesApi.js +19 -20
- package/dist/api/PhoneNumbersApi.js +19 -20
- package/dist/api/PostsApi.js +19 -20
- package/dist/api/PrivateMessagesApi.js +19 -20
- package/dist/api/PublicationsApi.js +19 -20
- package/dist/api/ScreensApi.js +19 -20
- package/dist/api/SocialIntegrationApi.js +19 -20
- package/dist/api/StripeAccountsApi.js +19 -20
- package/dist/api/TagsApi.js +19 -20
- package/dist/api/TemplatesApi.js +19 -20
- package/dist/api/ThemeMappingsApi.js +19 -20
- package/dist/api/TopicsApi.js +320 -27
- package/dist/api/TransactionsApi.js +19 -20
- package/dist/api/TwitterApi.js +19 -20
- package/dist/api/UserTagsApi.js +19 -20
- package/dist/api/UsersApi.js +19 -20
- package/dist/api/UtilsApi.js +19 -20
- package/dist/api/VideosApi.js +19 -20
- package/dist/index.js +90 -6
- package/dist/model/APIClient.js +19 -20
- package/dist/model/AccountSessionInput.js +19 -20
- package/dist/model/AccountSessionResponse.js +19 -20
- package/dist/model/ApplicationPaymentAccountResponse.js +19 -20
- package/dist/model/ApplicationPaymentAccountResponseFailureException.js +22 -23
- package/dist/model/ApplicationPaymentAccountResponseFailureExceptionStackTraceInner.js +19 -20
- package/dist/model/Article.js +19 -20
- package/dist/model/AuthResponse.js +19 -20
- package/dist/model/AwsSettings.js +140 -0
- package/dist/model/Balance.js +50 -51
- package/dist/model/BalanceDetails.js +19 -20
- package/dist/model/BalanceResponse.js +19 -20
- package/dist/model/BankAccountInfo.js +19 -20
- package/dist/model/CardInfo.js +19 -20
- package/dist/model/Comment.js +31 -32
- package/dist/model/Coordinates.js +19 -20
- package/dist/model/CreateAccountResponse.js +19 -20
- package/dist/model/CreateFunctionInput.js +22 -23
- package/dist/model/CreateStripeAccountInput.js +19 -20
- package/dist/model/CreateStripeCustomerInput.js +19 -20
- package/dist/model/CreateTopicInput.js +22 -23
- package/dist/model/CreateTopicListenerInput.js +22 -23
- package/dist/model/CustomerResponse.js +19 -20
- package/dist/model/DataObject.js +19 -20
- package/dist/model/DataSheetImport.js +19 -20
- package/dist/model/DataSheetImportPrivacySettings.js +19 -20
- package/dist/model/DataSheetImportSummary.js +22 -23
- package/dist/model/DeviceRegistrationRequest.js +22 -23
- package/dist/model/Document.js +22 -23
- package/dist/model/DocumentPart.js +22 -23
- package/dist/model/DocumentPartType.js +19 -20
- package/dist/model/DocumentType.js +27 -28
- package/dist/model/EmailAddress.js +19 -20
- package/dist/model/FieldMapping.js +19 -20
- package/dist/model/Fields.js +33 -34
- package/dist/model/File.js +19 -20
- package/dist/model/FileAttachmentUploadObject.js +19 -20
- package/dist/model/Filter.js +19 -20
- package/dist/model/FilterManager.js +22 -23
- package/dist/model/Form.js +22 -23
- package/dist/model/FormSection.js +22 -23
- package/dist/model/FormSubmission.js +31 -32
- package/dist/model/FunctionConfigInput.js +81 -23
- package/dist/model/FunctionEnvironmentConfig.js +22 -23
- package/dist/model/FunctionInput.js +190 -0
- package/dist/model/FunctionOutput.js +182 -0
- package/dist/model/Geocode.js +19 -20
- package/dist/model/GeocodePayload.js +19 -20
- package/dist/model/GeolocationInput.js +22 -23
- package/dist/model/GetFunctionConfig.js +364 -0
- package/dist/model/GetFunctionEnvironmentConfig.js +170 -0
- package/dist/model/GetFunctionResponse.js +39 -36
- package/dist/model/GoogleCloudSettings.js +126 -0
- package/dist/model/Graph.js +19 -20
- package/dist/model/GraphAction.js +28 -29
- package/dist/model/GraphDatabaseService.js +19 -20
- package/dist/model/GraphGeocode.js +19 -20
- package/dist/model/GraphIteratorEntryPart.js +22 -23
- package/dist/model/GraphObject.js +19 -20
- package/dist/model/GraphObjectPayload.js +22 -23
- package/dist/model/GraphObjectSchema.js +19 -20
- package/dist/model/GraphObjectType.js +19 -20
- package/dist/model/GraphObjectTypeSchema.js +22 -23
- package/dist/model/GraphOwner.js +19 -20
- package/dist/model/GraphRelationship.js +28 -29
- package/dist/model/GraphRelationshipPayload.js +19 -20
- package/dist/model/GraphRelationshipType.js +31 -32
- package/dist/model/GraphSchema.js +27 -28
- package/dist/model/GraphTraversalInput.js +19 -20
- package/dist/model/Image.js +27 -28
- package/dist/model/ImageUploadObject.js +27 -28
- package/dist/model/InputPart.js +19 -20
- package/dist/model/InputPartMediaType.js +19 -20
- package/dist/model/KafkaSettings.js +150 -0
- package/dist/model/Link.js +30 -31
- package/dist/model/LiveStreamInfo.js +19 -20
- package/dist/model/MeetingEvent.js +27 -28
- package/dist/model/MeetingEventTimezone.js +19 -20
- package/dist/model/MeetingInfo.js +19 -20
- package/dist/model/Member.js +19 -20
- package/dist/model/MemberGroupCategory.js +19 -20
- package/dist/model/MemberList.js +32 -34
- package/dist/model/MessageGroup.js +19 -20
- package/dist/model/MultipartBody.js +19 -20
- package/dist/model/NotificationInput.js +22 -23
- package/dist/model/NotificationResponse.js +194 -0
- package/dist/model/Objecttype.js +22 -23
- package/dist/model/OutParameter.js +126 -0
- package/dist/model/Page.js +26 -27
- package/dist/model/PageSchema.js +19 -20
- package/dist/model/Pageable.js +19 -20
- package/dist/model/Parameter.js +126 -0
- package/dist/model/Path.js +22 -23
- package/dist/model/PaymentAccountObject.js +19 -20
- package/dist/model/PaymentIntentInput.js +19 -20
- package/dist/model/PaymentIntentResponse.js +19 -20
- package/dist/model/PaymentMethod.js +26 -27
- package/dist/model/PaymentMethodInput.js +19 -20
- package/dist/model/PaymentMethodResponse.js +19 -20
- package/dist/model/PaymentMethodsResponse.js +22 -23
- package/dist/model/Payout.js +19 -20
- package/dist/model/PayoutInput.js +22 -23
- package/dist/model/PayoutResponse.js +19 -20
- package/dist/model/PhoneNumber.js +19 -20
- package/dist/model/Post.js +19 -20
- package/dist/model/PrivateMessage.js +19 -20
- package/dist/model/PrivateMessageConversation.js +32 -33
- package/dist/model/PrivateMessageConversationSchema.js +22 -23
- package/dist/model/Profile.js +19 -20
- package/dist/model/Profiletype.js +22 -23
- package/dist/model/PropertyContainer.js +19 -20
- package/dist/model/PurgeDataDefaultResponseValue.js +19 -20
- package/dist/model/RelationshipMapping.js +22 -23
- package/dist/model/ScreenSchema.js +19 -20
- package/dist/model/SimulcastInfo.js +19 -20
- package/dist/model/SkinField.js +33 -34
- package/dist/model/SocialGroup.js +27 -28
- package/dist/model/SocialGroupType.js +19 -20
- package/dist/model/Sort.js +19 -20
- package/dist/model/SourceTypes.js +19 -20
- package/dist/model/StatusUpdate.js +19 -20
- package/dist/model/StreetAddress.js +19 -20
- package/dist/model/StripeAccount.js +19 -20
- package/dist/model/StripeCustomerAccount.js +19 -20
- package/dist/model/Template.js +27 -28
- package/dist/model/TemplateSchema.js +27 -28
- package/dist/model/ThemeMapping.js +19 -20
- package/dist/model/ThemeMappingPayload.js +19 -20
- package/dist/model/TopicInfoResponse.js +103 -23
- package/dist/model/TopicMessageInput.js +122 -0
- package/dist/model/TopicSubscriptionResponse.js +150 -0
- package/dist/model/Transaction.js +19 -20
- package/dist/model/Transfer.js +19 -20
- package/dist/model/TransferInput.js +22 -23
- package/dist/model/TransferResponse.js +19 -20
- package/dist/model/TransferResponsePaymentMethodDetails.js +19 -20
- package/dist/model/TraversalRelationResponse.js +22 -23
- package/dist/model/User.js +19 -20
- package/dist/model/UserDataPayload.js +19 -20
- package/dist/model/UserDomain.js +19 -20
- package/dist/model/UserInvite.js +19 -20
- package/dist/model/UserInviteInput.js +19 -20
- package/dist/model/UserSchema.js +19 -20
- package/dist/model/UserTag.js +19 -20
- package/dist/model/Userid.js +19 -20
- package/dist/model/Video.js +27 -28
- package/dist/model/VideoLiveUrl.js +30 -31
- package/dist/model/VideoSchema.js +27 -28
- package/dist/model/VideoUploadObject.js +27 -28
- package/dist/model/ZeusPortalCategory.js +19 -20
- package/package.json +3 -1
- package/dist/model/ApplicationPaymentAccountResponseFailureExceptionSuppressedInner.js +0 -135
- package/dist/model/InputPartHeaders.js +0 -88
- package/dist/model/Notification.js +0 -210
- package/dist/model/PurgeDataDefaultResponse.js +0 -144
|
@@ -6,31 +6,31 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _Coordinates = _interopRequireDefault(require("./Coordinates"));
|
|
9
|
-
function _interopRequireDefault(
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
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(
|
|
12
|
-
function _unsupportedIterableToArray(
|
|
13
|
-
function _arrayLikeToArray(
|
|
14
|
-
function _classCallCheck(
|
|
15
|
-
function _defineProperties(
|
|
16
|
-
function _createClass(
|
|
17
|
-
function _toPropertyKey(
|
|
18
|
-
function _toPrimitive(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
+
* gobodo-api
|
|
20
|
+
* REST Interface for Gobodo API
|
|
21
|
+
*
|
|
22
|
+
* The version of the OpenAPI document: 0.1.59
|
|
23
|
+
* Contact: info@gobodo.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
30
|
/**
|
|
31
31
|
* The GeolocationInput model module.
|
|
32
32
|
* @module model/GeolocationInput
|
|
33
|
-
* @version 0.1.
|
|
33
|
+
* @version 0.1.59
|
|
34
34
|
*/
|
|
35
35
|
var GeolocationInput = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -47,7 +47,7 @@ var GeolocationInput = /*#__PURE__*/function () {
|
|
|
47
47
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
48
48
|
* Only for internal use.
|
|
49
49
|
*/
|
|
50
|
-
_createClass(GeolocationInput, null, [{
|
|
50
|
+
return _createClass(GeolocationInput, null, [{
|
|
51
51
|
key: "initialize",
|
|
52
52
|
value: function initialize(obj) {}
|
|
53
53
|
|
|
@@ -112,7 +112,6 @@ var GeolocationInput = /*#__PURE__*/function () {
|
|
|
112
112
|
return true;
|
|
113
113
|
}
|
|
114
114
|
}]);
|
|
115
|
-
return GeolocationInput;
|
|
116
115
|
}();
|
|
117
116
|
/**
|
|
118
117
|
* @member {Number} radius
|
|
@@ -0,0 +1,364 @@
|
|
|
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
|
+
* gobodo-api
|
|
19
|
+
* REST Interface for Gobodo API
|
|
20
|
+
*
|
|
21
|
+
* The version of the OpenAPI document: 0.1.59
|
|
22
|
+
* Contact: info@gobodo.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 GetFunctionConfig model module.
|
|
31
|
+
* @module model/GetFunctionConfig
|
|
32
|
+
* @version 0.1.59
|
|
33
|
+
*/
|
|
34
|
+
var GetFunctionConfig = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>GetFunctionConfig</code>.
|
|
37
|
+
* @alias module:model/GetFunctionConfig
|
|
38
|
+
* @param id {Number}
|
|
39
|
+
* @param key {String}
|
|
40
|
+
* @param asynchronous {Boolean}
|
|
41
|
+
* @param functionType {module:model/GetFunctionConfig.FunctionTypeEnum}
|
|
42
|
+
* @param inputType {module:model/GetFunctionConfig.InputTypeEnum}
|
|
43
|
+
* @param outputType {module:model/GetFunctionConfig.OutputTypeEnum}
|
|
44
|
+
* @param functionUrl {String}
|
|
45
|
+
* @param functionArn {String}
|
|
46
|
+
* @param functionZpml {String}
|
|
47
|
+
* @param className {String}
|
|
48
|
+
*/
|
|
49
|
+
function GetFunctionConfig(id, key, asynchronous, functionType, inputType, outputType, functionUrl, functionArn, functionZpml, className) {
|
|
50
|
+
_classCallCheck(this, GetFunctionConfig);
|
|
51
|
+
GetFunctionConfig.initialize(this, id, key, asynchronous, functionType, inputType, outputType, functionUrl, functionArn, functionZpml, className);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Initializes the fields of this object.
|
|
56
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
57
|
+
* Only for internal use.
|
|
58
|
+
*/
|
|
59
|
+
return _createClass(GetFunctionConfig, null, [{
|
|
60
|
+
key: "initialize",
|
|
61
|
+
value: function initialize(obj, id, key, asynchronous, functionType, inputType, outputType, functionUrl, functionArn, functionZpml, className) {
|
|
62
|
+
obj['id'] = id;
|
|
63
|
+
obj['key'] = key;
|
|
64
|
+
obj['asynchronous'] = asynchronous;
|
|
65
|
+
obj['functionType'] = functionType;
|
|
66
|
+
obj['inputType'] = inputType;
|
|
67
|
+
obj['outputType'] = outputType;
|
|
68
|
+
obj['functionUrl'] = functionUrl;
|
|
69
|
+
obj['functionArn'] = functionArn;
|
|
70
|
+
obj['functionZpml'] = functionZpml;
|
|
71
|
+
obj['className'] = className;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Constructs a <code>GetFunctionConfig</code> from a plain JavaScript object, optionally creating a new instance.
|
|
76
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
77
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
78
|
+
* @param {module:model/GetFunctionConfig} obj Optional instance to populate.
|
|
79
|
+
* @return {module:model/GetFunctionConfig} The populated <code>GetFunctionConfig</code> instance.
|
|
80
|
+
*/
|
|
81
|
+
}, {
|
|
82
|
+
key: "constructFromObject",
|
|
83
|
+
value: function constructFromObject(data, obj) {
|
|
84
|
+
if (data) {
|
|
85
|
+
obj = obj || new GetFunctionConfig();
|
|
86
|
+
if (data.hasOwnProperty('id')) {
|
|
87
|
+
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
|
|
88
|
+
}
|
|
89
|
+
if (data.hasOwnProperty('key')) {
|
|
90
|
+
obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String');
|
|
91
|
+
}
|
|
92
|
+
if (data.hasOwnProperty('asynchronous')) {
|
|
93
|
+
obj['asynchronous'] = _ApiClient["default"].convertToType(data['asynchronous'], 'Boolean');
|
|
94
|
+
}
|
|
95
|
+
if (data.hasOwnProperty('functionType')) {
|
|
96
|
+
obj['functionType'] = _ApiClient["default"].convertToType(data['functionType'], 'String');
|
|
97
|
+
}
|
|
98
|
+
if (data.hasOwnProperty('inputType')) {
|
|
99
|
+
obj['inputType'] = _ApiClient["default"].convertToType(data['inputType'], 'String');
|
|
100
|
+
}
|
|
101
|
+
if (data.hasOwnProperty('outputType')) {
|
|
102
|
+
obj['outputType'] = _ApiClient["default"].convertToType(data['outputType'], 'String');
|
|
103
|
+
}
|
|
104
|
+
if (data.hasOwnProperty('functionUrl')) {
|
|
105
|
+
obj['functionUrl'] = _ApiClient["default"].convertToType(data['functionUrl'], 'String');
|
|
106
|
+
}
|
|
107
|
+
if (data.hasOwnProperty('functionArn')) {
|
|
108
|
+
obj['functionArn'] = _ApiClient["default"].convertToType(data['functionArn'], 'String');
|
|
109
|
+
}
|
|
110
|
+
if (data.hasOwnProperty('functionZpml')) {
|
|
111
|
+
obj['functionZpml'] = _ApiClient["default"].convertToType(data['functionZpml'], 'String');
|
|
112
|
+
}
|
|
113
|
+
if (data.hasOwnProperty('className')) {
|
|
114
|
+
obj['className'] = _ApiClient["default"].convertToType(data['className'], 'String');
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return obj;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Validates the JSON data with respect to <code>GetFunctionConfig</code>.
|
|
122
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
123
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetFunctionConfig</code>.
|
|
124
|
+
*/
|
|
125
|
+
}, {
|
|
126
|
+
key: "validateJSON",
|
|
127
|
+
value: function validateJSON(data) {
|
|
128
|
+
// check to make sure all required properties are present in the JSON string
|
|
129
|
+
var _iterator = _createForOfIteratorHelper(GetFunctionConfig.RequiredProperties),
|
|
130
|
+
_step;
|
|
131
|
+
try {
|
|
132
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
133
|
+
var property = _step.value;
|
|
134
|
+
if (!data[property]) {
|
|
135
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
// ensure the json data is a string
|
|
139
|
+
} catch (err) {
|
|
140
|
+
_iterator.e(err);
|
|
141
|
+
} finally {
|
|
142
|
+
_iterator.f();
|
|
143
|
+
}
|
|
144
|
+
if (data['key'] && !(typeof data['key'] === 'string' || data['key'] instanceof String)) {
|
|
145
|
+
throw new Error("Expected the field `key` to be a primitive type in the JSON string but got " + data['key']);
|
|
146
|
+
}
|
|
147
|
+
// ensure the json data is a string
|
|
148
|
+
if (data['functionType'] && !(typeof data['functionType'] === 'string' || data['functionType'] instanceof String)) {
|
|
149
|
+
throw new Error("Expected the field `functionType` to be a primitive type in the JSON string but got " + data['functionType']);
|
|
150
|
+
}
|
|
151
|
+
// ensure the json data is a string
|
|
152
|
+
if (data['inputType'] && !(typeof data['inputType'] === 'string' || data['inputType'] instanceof String)) {
|
|
153
|
+
throw new Error("Expected the field `inputType` to be a primitive type in the JSON string but got " + data['inputType']);
|
|
154
|
+
}
|
|
155
|
+
// ensure the json data is a string
|
|
156
|
+
if (data['outputType'] && !(typeof data['outputType'] === 'string' || data['outputType'] instanceof String)) {
|
|
157
|
+
throw new Error("Expected the field `outputType` to be a primitive type in the JSON string but got " + data['outputType']);
|
|
158
|
+
}
|
|
159
|
+
// ensure the json data is a string
|
|
160
|
+
if (data['functionUrl'] && !(typeof data['functionUrl'] === 'string' || data['functionUrl'] instanceof String)) {
|
|
161
|
+
throw new Error("Expected the field `functionUrl` to be a primitive type in the JSON string but got " + data['functionUrl']);
|
|
162
|
+
}
|
|
163
|
+
// ensure the json data is a string
|
|
164
|
+
if (data['functionArn'] && !(typeof data['functionArn'] === 'string' || data['functionArn'] instanceof String)) {
|
|
165
|
+
throw new Error("Expected the field `functionArn` to be a primitive type in the JSON string but got " + data['functionArn']);
|
|
166
|
+
}
|
|
167
|
+
// ensure the json data is a string
|
|
168
|
+
if (data['functionZpml'] && !(typeof data['functionZpml'] === 'string' || data['functionZpml'] instanceof String)) {
|
|
169
|
+
throw new Error("Expected the field `functionZpml` to be a primitive type in the JSON string but got " + data['functionZpml']);
|
|
170
|
+
}
|
|
171
|
+
// ensure the json data is a string
|
|
172
|
+
if (data['className'] && !(typeof data['className'] === 'string' || data['className'] instanceof String)) {
|
|
173
|
+
throw new Error("Expected the field `className` to be a primitive type in the JSON string but got " + data['className']);
|
|
174
|
+
}
|
|
175
|
+
return true;
|
|
176
|
+
}
|
|
177
|
+
}]);
|
|
178
|
+
}();
|
|
179
|
+
GetFunctionConfig.RequiredProperties = ["id", "key", "asynchronous", "functionType", "inputType", "outputType", "functionUrl", "functionArn", "functionZpml", "className"];
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* @member {Number} id
|
|
183
|
+
*/
|
|
184
|
+
GetFunctionConfig.prototype['id'] = undefined;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* @member {String} key
|
|
188
|
+
*/
|
|
189
|
+
GetFunctionConfig.prototype['key'] = undefined;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* @member {Boolean} asynchronous
|
|
193
|
+
*/
|
|
194
|
+
GetFunctionConfig.prototype['asynchronous'] = undefined;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* @member {module:model/GetFunctionConfig.FunctionTypeEnum} functionType
|
|
198
|
+
*/
|
|
199
|
+
GetFunctionConfig.prototype['functionType'] = undefined;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* @member {module:model/GetFunctionConfig.InputTypeEnum} inputType
|
|
203
|
+
*/
|
|
204
|
+
GetFunctionConfig.prototype['inputType'] = undefined;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* @member {module:model/GetFunctionConfig.OutputTypeEnum} outputType
|
|
208
|
+
*/
|
|
209
|
+
GetFunctionConfig.prototype['outputType'] = undefined;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* @member {String} functionUrl
|
|
213
|
+
*/
|
|
214
|
+
GetFunctionConfig.prototype['functionUrl'] = undefined;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* @member {String} functionArn
|
|
218
|
+
*/
|
|
219
|
+
GetFunctionConfig.prototype['functionArn'] = undefined;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* @member {String} functionZpml
|
|
223
|
+
*/
|
|
224
|
+
GetFunctionConfig.prototype['functionZpml'] = undefined;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @member {String} className
|
|
228
|
+
*/
|
|
229
|
+
GetFunctionConfig.prototype['className'] = undefined;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Allowed values for the <code>functionType</code> property.
|
|
233
|
+
* @enum {String}
|
|
234
|
+
* @readonly
|
|
235
|
+
*/
|
|
236
|
+
GetFunctionConfig['FunctionTypeEnum'] = {
|
|
237
|
+
/**
|
|
238
|
+
* value: "LOCAL"
|
|
239
|
+
* @const
|
|
240
|
+
*/
|
|
241
|
+
"LOCAL": "LOCAL",
|
|
242
|
+
/**
|
|
243
|
+
* value: "ZPML"
|
|
244
|
+
* @const
|
|
245
|
+
*/
|
|
246
|
+
"ZPML": "ZPML",
|
|
247
|
+
/**
|
|
248
|
+
* value: "REMOTE_ZPML"
|
|
249
|
+
* @const
|
|
250
|
+
*/
|
|
251
|
+
"REMOTE_ZPML": "REMOTE_ZPML",
|
|
252
|
+
/**
|
|
253
|
+
* value: "JAVASCRIPT"
|
|
254
|
+
* @const
|
|
255
|
+
*/
|
|
256
|
+
"JAVASCRIPT": "JAVASCRIPT",
|
|
257
|
+
/**
|
|
258
|
+
* value: "AWS_LAMBDA"
|
|
259
|
+
* @const
|
|
260
|
+
*/
|
|
261
|
+
"AWS_LAMBDA": "AWS_LAMBDA",
|
|
262
|
+
/**
|
|
263
|
+
* value: "GOOGLE_CLOUD_FUNCTION"
|
|
264
|
+
* @const
|
|
265
|
+
*/
|
|
266
|
+
"GOOGLE_CLOUD_FUNCTION": "GOOGLE_CLOUD_FUNCTION",
|
|
267
|
+
/**
|
|
268
|
+
* value: "AZURE_FUNCTION"
|
|
269
|
+
* @const
|
|
270
|
+
*/
|
|
271
|
+
"AZURE_FUNCTION": "AZURE_FUNCTION",
|
|
272
|
+
/**
|
|
273
|
+
* value: "FIREBASE_FUNCTION"
|
|
274
|
+
* @const
|
|
275
|
+
*/
|
|
276
|
+
"FIREBASE_FUNCTION": "FIREBASE_FUNCTION",
|
|
277
|
+
/**
|
|
278
|
+
* value: "PHP"
|
|
279
|
+
* @const
|
|
280
|
+
*/
|
|
281
|
+
"PHP": "PHP",
|
|
282
|
+
/**
|
|
283
|
+
* value: "WEB_SERVICE"
|
|
284
|
+
* @const
|
|
285
|
+
*/
|
|
286
|
+
"WEB_SERVICE": "WEB_SERVICE",
|
|
287
|
+
/**
|
|
288
|
+
* value: "CYPHER_QUERY"
|
|
289
|
+
* @const
|
|
290
|
+
*/
|
|
291
|
+
"CYPHER_QUERY": "CYPHER_QUERY",
|
|
292
|
+
/**
|
|
293
|
+
* value: "TOPIC"
|
|
294
|
+
* @const
|
|
295
|
+
*/
|
|
296
|
+
"TOPIC": "TOPIC",
|
|
297
|
+
/**
|
|
298
|
+
* value: "KAFKA"
|
|
299
|
+
* @const
|
|
300
|
+
*/
|
|
301
|
+
"KAFKA": "KAFKA",
|
|
302
|
+
/**
|
|
303
|
+
* value: "AWS_SNS"
|
|
304
|
+
* @const
|
|
305
|
+
*/
|
|
306
|
+
"AWS_SNS": "AWS_SNS"
|
|
307
|
+
};
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Allowed values for the <code>inputType</code> property.
|
|
311
|
+
* @enum {String}
|
|
312
|
+
* @readonly
|
|
313
|
+
*/
|
|
314
|
+
GetFunctionConfig['InputTypeEnum'] = {
|
|
315
|
+
/**
|
|
316
|
+
* value: "JSON"
|
|
317
|
+
* @const
|
|
318
|
+
*/
|
|
319
|
+
"JSON": "JSON",
|
|
320
|
+
/**
|
|
321
|
+
* value: "STRING"
|
|
322
|
+
* @const
|
|
323
|
+
*/
|
|
324
|
+
"STRING": "STRING",
|
|
325
|
+
/**
|
|
326
|
+
* value: "BINARY"
|
|
327
|
+
* @const
|
|
328
|
+
*/
|
|
329
|
+
"BINARY": "BINARY",
|
|
330
|
+
/**
|
|
331
|
+
* value: "VOID"
|
|
332
|
+
* @const
|
|
333
|
+
*/
|
|
334
|
+
"VOID": "VOID"
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Allowed values for the <code>outputType</code> property.
|
|
339
|
+
* @enum {String}
|
|
340
|
+
* @readonly
|
|
341
|
+
*/
|
|
342
|
+
GetFunctionConfig['OutputTypeEnum'] = {
|
|
343
|
+
/**
|
|
344
|
+
* value: "JSON"
|
|
345
|
+
* @const
|
|
346
|
+
*/
|
|
347
|
+
"JSON": "JSON",
|
|
348
|
+
/**
|
|
349
|
+
* value: "STRING"
|
|
350
|
+
* @const
|
|
351
|
+
*/
|
|
352
|
+
"STRING": "STRING",
|
|
353
|
+
/**
|
|
354
|
+
* value: "BINARY"
|
|
355
|
+
* @const
|
|
356
|
+
*/
|
|
357
|
+
"BINARY": "BINARY",
|
|
358
|
+
/**
|
|
359
|
+
* value: "VOID"
|
|
360
|
+
* @const
|
|
361
|
+
*/
|
|
362
|
+
"VOID": "VOID"
|
|
363
|
+
};
|
|
364
|
+
var _default = exports["default"] = GetFunctionConfig;
|
|
@@ -0,0 +1,170 @@
|
|
|
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 _GetFunctionConfig = _interopRequireDefault(require("./GetFunctionConfig"));
|
|
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
|
+
* gobodo-api
|
|
20
|
+
* REST Interface for Gobodo API
|
|
21
|
+
*
|
|
22
|
+
* The version of the OpenAPI document: 0.1.59
|
|
23
|
+
* Contact: info@gobodo.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 GetFunctionEnvironmentConfig model module.
|
|
32
|
+
* @module model/GetFunctionEnvironmentConfig
|
|
33
|
+
* @version 0.1.59
|
|
34
|
+
*/
|
|
35
|
+
var GetFunctionEnvironmentConfig = /*#__PURE__*/function () {
|
|
36
|
+
/**
|
|
37
|
+
* Constructs a new <code>GetFunctionEnvironmentConfig</code>.
|
|
38
|
+
* @alias module:model/GetFunctionEnvironmentConfig
|
|
39
|
+
* @param environment {module:model/GetFunctionEnvironmentConfig.EnvironmentEnum}
|
|
40
|
+
* @param environmentKey {String}
|
|
41
|
+
* @param functionConfig {module:model/GetFunctionConfig}
|
|
42
|
+
*/
|
|
43
|
+
function GetFunctionEnvironmentConfig(environment, environmentKey, functionConfig) {
|
|
44
|
+
_classCallCheck(this, GetFunctionEnvironmentConfig);
|
|
45
|
+
GetFunctionEnvironmentConfig.initialize(this, environment, environmentKey, functionConfig);
|
|
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(GetFunctionEnvironmentConfig, null, [{
|
|
54
|
+
key: "initialize",
|
|
55
|
+
value: function initialize(obj, environment, environmentKey, functionConfig) {
|
|
56
|
+
obj['environment'] = environment;
|
|
57
|
+
obj['environmentKey'] = environmentKey;
|
|
58
|
+
obj['functionConfig'] = functionConfig;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Constructs a <code>GetFunctionEnvironmentConfig</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/GetFunctionEnvironmentConfig} obj Optional instance to populate.
|
|
66
|
+
* @return {module:model/GetFunctionEnvironmentConfig} The populated <code>GetFunctionEnvironmentConfig</code> instance.
|
|
67
|
+
*/
|
|
68
|
+
}, {
|
|
69
|
+
key: "constructFromObject",
|
|
70
|
+
value: function constructFromObject(data, obj) {
|
|
71
|
+
if (data) {
|
|
72
|
+
obj = obj || new GetFunctionEnvironmentConfig();
|
|
73
|
+
if (data.hasOwnProperty('environment')) {
|
|
74
|
+
obj['environment'] = _ApiClient["default"].convertToType(data['environment'], 'String');
|
|
75
|
+
}
|
|
76
|
+
if (data.hasOwnProperty('environmentKey')) {
|
|
77
|
+
obj['environmentKey'] = _ApiClient["default"].convertToType(data['environmentKey'], 'String');
|
|
78
|
+
}
|
|
79
|
+
if (data.hasOwnProperty('functionConfig')) {
|
|
80
|
+
obj['functionConfig'] = _GetFunctionConfig["default"].constructFromObject(data['functionConfig']);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return obj;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Validates the JSON data with respect to <code>GetFunctionEnvironmentConfig</code>.
|
|
88
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
89
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetFunctionEnvironmentConfig</code>.
|
|
90
|
+
*/
|
|
91
|
+
}, {
|
|
92
|
+
key: "validateJSON",
|
|
93
|
+
value: function validateJSON(data) {
|
|
94
|
+
// check to make sure all required properties are present in the JSON string
|
|
95
|
+
var _iterator = _createForOfIteratorHelper(GetFunctionEnvironmentConfig.RequiredProperties),
|
|
96
|
+
_step;
|
|
97
|
+
try {
|
|
98
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
99
|
+
var property = _step.value;
|
|
100
|
+
if (!data[property]) {
|
|
101
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
// ensure the json data is a string
|
|
105
|
+
} catch (err) {
|
|
106
|
+
_iterator.e(err);
|
|
107
|
+
} finally {
|
|
108
|
+
_iterator.f();
|
|
109
|
+
}
|
|
110
|
+
if (data['environment'] && !(typeof data['environment'] === 'string' || data['environment'] instanceof String)) {
|
|
111
|
+
throw new Error("Expected the field `environment` to be a primitive type in the JSON string but got " + data['environment']);
|
|
112
|
+
}
|
|
113
|
+
// ensure the json data is a string
|
|
114
|
+
if (data['environmentKey'] && !(typeof data['environmentKey'] === 'string' || data['environmentKey'] instanceof String)) {
|
|
115
|
+
throw new Error("Expected the field `environmentKey` to be a primitive type in the JSON string but got " + data['environmentKey']);
|
|
116
|
+
}
|
|
117
|
+
// validate the optional field `functionConfig`
|
|
118
|
+
if (data['functionConfig']) {
|
|
119
|
+
// data not null
|
|
120
|
+
_GetFunctionConfig["default"].validateJSON(data['functionConfig']);
|
|
121
|
+
}
|
|
122
|
+
return true;
|
|
123
|
+
}
|
|
124
|
+
}]);
|
|
125
|
+
}();
|
|
126
|
+
GetFunctionEnvironmentConfig.RequiredProperties = ["environment", "environmentKey", "functionConfig"];
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* @member {module:model/GetFunctionEnvironmentConfig.EnvironmentEnum} environment
|
|
130
|
+
*/
|
|
131
|
+
GetFunctionEnvironmentConfig.prototype['environment'] = undefined;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* @member {String} environmentKey
|
|
135
|
+
*/
|
|
136
|
+
GetFunctionEnvironmentConfig.prototype['environmentKey'] = undefined;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @member {module:model/GetFunctionConfig} functionConfig
|
|
140
|
+
*/
|
|
141
|
+
GetFunctionEnvironmentConfig.prototype['functionConfig'] = undefined;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Allowed values for the <code>environment</code> property.
|
|
145
|
+
* @enum {String}
|
|
146
|
+
* @readonly
|
|
147
|
+
*/
|
|
148
|
+
GetFunctionEnvironmentConfig['EnvironmentEnum'] = {
|
|
149
|
+
/**
|
|
150
|
+
* value: "DEVELOPMENT"
|
|
151
|
+
* @const
|
|
152
|
+
*/
|
|
153
|
+
"DEVELOPMENT": "DEVELOPMENT",
|
|
154
|
+
/**
|
|
155
|
+
* value: "SIT"
|
|
156
|
+
* @const
|
|
157
|
+
*/
|
|
158
|
+
"SIT": "SIT",
|
|
159
|
+
/**
|
|
160
|
+
* value: "CAT"
|
|
161
|
+
* @const
|
|
162
|
+
*/
|
|
163
|
+
"CAT": "CAT",
|
|
164
|
+
/**
|
|
165
|
+
* value: "PRODUCTION"
|
|
166
|
+
* @const
|
|
167
|
+
*/
|
|
168
|
+
"PRODUCTION": "PRODUCTION"
|
|
169
|
+
};
|
|
170
|
+
var _default = exports["default"] = GetFunctionEnvironmentConfig;
|