|
29 | 29 | /** |
30 | 30 | * Connect service. |
31 | 31 | * @module api/ConnectApi |
32 | | - * @version 5.3.0-rc1 |
| 32 | + * @version 5.3.0 |
33 | 33 | */ |
34 | 34 |
|
35 | 35 | /** |
|
115 | 115 | ); |
116 | 116 | }; |
117 | 117 |
|
118 | | - /** |
119 | | - * (Optional)Callback function to receive the result of the createConnectSecret operation. If none specified a Promise will be returned. |
120 | | - * @callback module:api/ConnectApi~createConnectSecretCallback |
121 | | - * @param {String} error Error message, if any. |
122 | | - * @param data This operation does not return a value. |
123 | | - * @param {String} If a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
124 | | - */ |
125 | | - |
126 | | - /** |
127 | | - * Generates a new connect HMAC Secret. |
128 | | - * @param {String} accountId The external account number (int) or account ID Guid. |
129 | | - * @param {module:api/ConnectApi~createConnectSecretCallback} callback The callback function, accepting three arguments: error, data, response |
130 | | - */ |
131 | | - this.createConnectSecret = function(accountId, callback) { |
132 | | - var postBody = null; |
133 | | - |
134 | | - // verify the required parameter 'accountId' is set |
135 | | - if (accountId == undefined || accountId == null) { |
136 | | - throw new Error("Missing the required parameter 'accountId' when calling createConnectSecret"); |
137 | | - } |
138 | | - |
139 | | - if (typeof callback !== 'function' && arguments.length && typeof arguments[arguments.length-1] === 'function'){ |
140 | | - if (typeof optsOrCallback !== 'undefined') { |
141 | | - optsOrCallback = callback; |
142 | | - } |
143 | | - callback = arguments[arguments.length-1]; |
144 | | - } |
145 | | - |
146 | | - var pathParams = { |
147 | | - 'accountId': accountId |
148 | | - }; |
149 | | - var queryParams = { |
150 | | - }; |
151 | | - var headerParams = { |
152 | | - }; |
153 | | - var formParams = { |
154 | | - }; |
155 | | - |
156 | | - var authNames = []; |
157 | | - var contentTypes = []; |
158 | | - var accepts = ['application/json']; |
159 | | - var returnType = null; |
160 | | - |
161 | | - return this.apiClient.callApi( |
162 | | - '/v2.1/accounts/{accountId}/connect/secret', 'POST', |
163 | | - pathParams, queryParams, headerParams, formParams, postBody, |
164 | | - authNames, contentTypes, accepts, returnType, callback |
165 | | - ); |
166 | | - }; |
167 | | - |
168 | 118 | /** |
169 | 119 | * (Optional)Callback function to receive the result of the deleteConfiguration operation. If none specified a Promise will be returned. |
170 | 120 | * @callback module:api/ConnectApi~deleteConfigurationCallback |
|
228 | 178 | ); |
229 | 179 | }; |
230 | 180 |
|
231 | | - /** |
232 | | - * (Optional)Callback function to receive the result of the deleteConnectSecret operation. If none specified a Promise will be returned. |
233 | | - * @callback module:api/ConnectApi~deleteConnectSecretCallback |
234 | | - * @param {String} error Error message, if any. |
235 | | - * @param data This operation does not return a value. |
236 | | - * @param {String} If a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
237 | | - */ |
238 | | - |
239 | | - /** |
240 | | - * Delete the connect HMAC Secret for AccountID |
241 | | - * @param {String} accountId The external account number (int) or account ID Guid. |
242 | | - * @param {String} keyId |
243 | | - * @param {module:api/ConnectApi~deleteConnectSecretCallback} callback The callback function, accepting three arguments: error, data, response |
244 | | - */ |
245 | | - this.deleteConnectSecret = function(accountId, keyId, callback) { |
246 | | - var postBody = null; |
247 | | - |
248 | | - // verify the required parameter 'accountId' is set |
249 | | - if (accountId == undefined || accountId == null) { |
250 | | - throw new Error("Missing the required parameter 'accountId' when calling deleteConnectSecret"); |
251 | | - } |
252 | | - |
253 | | - // verify the required parameter 'keyId' is set |
254 | | - if (keyId == undefined || keyId == null) { |
255 | | - throw new Error("Missing the required parameter 'keyId' when calling deleteConnectSecret"); |
256 | | - } |
257 | | - |
258 | | - if (typeof callback !== 'function' && arguments.length && typeof arguments[arguments.length-1] === 'function'){ |
259 | | - if (typeof optsOrCallback !== 'undefined') { |
260 | | - optsOrCallback = callback; |
261 | | - } |
262 | | - callback = arguments[arguments.length-1]; |
263 | | - } |
264 | | - |
265 | | - var pathParams = { |
266 | | - 'accountId': accountId, |
267 | | - 'keyId': keyId |
268 | | - }; |
269 | | - var queryParams = { |
270 | | - }; |
271 | | - var headerParams = { |
272 | | - }; |
273 | | - var formParams = { |
274 | | - }; |
275 | | - |
276 | | - var authNames = []; |
277 | | - var contentTypes = []; |
278 | | - var accepts = ['application/json']; |
279 | | - var returnType = null; |
280 | | - |
281 | | - return this.apiClient.callApi( |
282 | | - '/v2.1/accounts/{accountId}/connect/secret/{keyId}/delete', 'DELETE', |
283 | | - pathParams, queryParams, headerParams, formParams, postBody, |
284 | | - authNames, contentTypes, accepts, returnType, callback |
285 | | - ); |
286 | | - }; |
287 | | - |
288 | 181 | /** |
289 | 182 | * (Optional)Callback function to receive the result of the deleteEventFailureLog operation. If none specified a Promise will be returned. |
290 | 183 | * @callback module:api/ConnectApi~deleteEventFailureLogCallback |
|
516 | 409 | ); |
517 | 410 | }; |
518 | 411 |
|
519 | | - /** |
520 | | - * (Optional)Callback function to receive the result of the generateConnectSecret operation. If none specified a Promise will be returned. |
521 | | - * @callback module:api/ConnectApi~generateConnectSecretCallback |
522 | | - * @param {String} error Error message, if any. |
523 | | - * @param data This operation does not return a value. |
524 | | - * @param {String} If a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
525 | | - */ |
526 | | - |
527 | | - /** |
528 | | - * Generates a new connect HMAC Secret. |
529 | | - * @param {String} accountId The external account number (int) or account ID Guid. |
530 | | - * @param {module:api/ConnectApi~generateConnectSecretCallback} callback The callback function, accepting three arguments: error, data, response |
531 | | - */ |
532 | | - this.generateConnectSecret = function(accountId, callback) { |
533 | | - var postBody = null; |
534 | | - |
535 | | - // verify the required parameter 'accountId' is set |
536 | | - if (accountId == undefined || accountId == null) { |
537 | | - throw new Error("Missing the required parameter 'accountId' when calling generateConnectSecret"); |
538 | | - } |
539 | | - |
540 | | - if (typeof callback !== 'function' && arguments.length && typeof arguments[arguments.length-1] === 'function'){ |
541 | | - if (typeof optsOrCallback !== 'undefined') { |
542 | | - optsOrCallback = callback; |
543 | | - } |
544 | | - callback = arguments[arguments.length-1]; |
545 | | - } |
546 | | - |
547 | | - var pathParams = { |
548 | | - 'accountId': accountId |
549 | | - }; |
550 | | - var queryParams = { |
551 | | - }; |
552 | | - var headerParams = { |
553 | | - }; |
554 | | - var formParams = { |
555 | | - }; |
556 | | - |
557 | | - var authNames = []; |
558 | | - var contentTypes = []; |
559 | | - var accepts = ['application/json']; |
560 | | - var returnType = null; |
561 | | - |
562 | | - return this.apiClient.callApi( |
563 | | - '/v2.1/accounts/{accountId}/connect/secret', 'GET', |
564 | | - pathParams, queryParams, headerParams, formParams, postBody, |
565 | | - authNames, contentTypes, accepts, returnType, callback |
566 | | - ); |
567 | | - }; |
568 | | - |
569 | 412 | /** |
570 | 413 | * (Optional)Callback function to receive the result of the getConfiguration operation. If none specified a Promise will be returned. |
571 | 414 | * @callback module:api/ConnectApi~getConfigurationCallback |
|
628 | 471 | ); |
629 | 472 | }; |
630 | 473 |
|
631 | | - /** |
632 | | - * (Optional)Callback function to receive the result of the getConnectSecrets operation. If none specified a Promise will be returned. |
633 | | - * @callback module:api/ConnectApi~getConnectSecretsCallback |
634 | | - * @param {String} error Error message, if any. |
635 | | - * @param data This operation does not return a value. |
636 | | - * @param {String} If a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
637 | | - */ |
638 | | - |
639 | | - /** |
640 | | - * Get the connect HMAC Secrets for AccountID |
641 | | - * @param {String} accountId The external account number (int) or account ID Guid. |
642 | | - * @param {module:api/ConnectApi~getConnectSecretsCallback} callback The callback function, accepting three arguments: error, data, response |
643 | | - */ |
644 | | - this.getConnectSecrets = function(accountId, callback) { |
645 | | - var postBody = null; |
646 | | - |
647 | | - // verify the required parameter 'accountId' is set |
648 | | - if (accountId == undefined || accountId == null) { |
649 | | - throw new Error("Missing the required parameter 'accountId' when calling getConnectSecrets"); |
650 | | - } |
651 | | - |
652 | | - if (typeof callback !== 'function' && arguments.length && typeof arguments[arguments.length-1] === 'function'){ |
653 | | - if (typeof optsOrCallback !== 'undefined') { |
654 | | - optsOrCallback = callback; |
655 | | - } |
656 | | - callback = arguments[arguments.length-1]; |
657 | | - } |
658 | | - |
659 | | - var pathParams = { |
660 | | - 'accountId': accountId |
661 | | - }; |
662 | | - var queryParams = { |
663 | | - }; |
664 | | - var headerParams = { |
665 | | - }; |
666 | | - var formParams = { |
667 | | - }; |
668 | | - |
669 | | - var authNames = []; |
670 | | - var contentTypes = []; |
671 | | - var accepts = ['application/json']; |
672 | | - var returnType = null; |
673 | | - |
674 | | - return this.apiClient.callApi( |
675 | | - '/v2.1/accounts/{accountId}/connect/secrets', 'GET', |
676 | | - pathParams, queryParams, headerParams, formParams, postBody, |
677 | | - authNames, contentTypes, accepts, returnType, callback |
678 | | - ); |
679 | | - }; |
680 | | - |
681 | 474 | /** |
682 | 475 | * (Optional)Callback function to receive the result of the getEventLog operation. If none specified a Promise will be returned. |
683 | 476 | * @callback module:api/ConnectApi~getEventLogCallback |
|
0 commit comments