|
16 | 16 | (function(root, factory) {
|
17 | 17 | if (typeof define === 'function' && define.amd) {
|
18 | 18 | // AMD. Register as an anonymous module.
|
19 |
| - define(['rustici-software-cloud-v2/ApiClient', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/ApplicationInfoSchema', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/ApplicationListSchema', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/ApplicationRequestSchema', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/ApplicationSchema', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/CredentialCreatedSchema', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/CredentialListSchema', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/CredentialRequestSchema', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/MessageSchema', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/SettingListSchema', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/SettingsPostSchema', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/StringResultSchema', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/TokenRequestSchema', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/UpdateApplicationSchema'], factory); |
| 19 | + define(['rustici-software-cloud-v2/ApiClient', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/ApplicationInfoListSchema', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/ApplicationInfoSchema', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/ApplicationListSchema', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/ApplicationRequestSchema', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/ApplicationSchema', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/CredentialCreatedSchema', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/CredentialListSchema', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/CredentialRequestSchema', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/MessageSchema', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/SettingListSchema', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/SettingsPostSchema', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/StringResultSchema', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/TokenRequestSchema', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/UpdateApplicationSchema'], factory); |
20 | 20 | } else if (typeof module === 'object' && module.exports) {
|
21 | 21 | // CommonJS-like environments that support module.exports, like Node.
|
22 |
| - module.exports = factory(require('../ApiClient'), require('../rustici-software-cloud-v2-model/ApplicationInfoSchema'), require('../rustici-software-cloud-v2-model/ApplicationListSchema'), require('../rustici-software-cloud-v2-model/ApplicationRequestSchema'), require('../rustici-software-cloud-v2-model/ApplicationSchema'), require('../rustici-software-cloud-v2-model/CredentialCreatedSchema'), require('../rustici-software-cloud-v2-model/CredentialListSchema'), require('../rustici-software-cloud-v2-model/CredentialRequestSchema'), require('../rustici-software-cloud-v2-model/MessageSchema'), require('../rustici-software-cloud-v2-model/SettingListSchema'), require('../rustici-software-cloud-v2-model/SettingsPostSchema'), require('../rustici-software-cloud-v2-model/StringResultSchema'), require('../rustici-software-cloud-v2-model/TokenRequestSchema'), require('../rustici-software-cloud-v2-model/UpdateApplicationSchema')); |
| 22 | + module.exports = factory(require('../ApiClient'), require('../rustici-software-cloud-v2-model/ApplicationInfoListSchema'), require('../rustici-software-cloud-v2-model/ApplicationInfoSchema'), require('../rustici-software-cloud-v2-model/ApplicationListSchema'), require('../rustici-software-cloud-v2-model/ApplicationRequestSchema'), require('../rustici-software-cloud-v2-model/ApplicationSchema'), require('../rustici-software-cloud-v2-model/CredentialCreatedSchema'), require('../rustici-software-cloud-v2-model/CredentialListSchema'), require('../rustici-software-cloud-v2-model/CredentialRequestSchema'), require('../rustici-software-cloud-v2-model/MessageSchema'), require('../rustici-software-cloud-v2-model/SettingListSchema'), require('../rustici-software-cloud-v2-model/SettingsPostSchema'), require('../rustici-software-cloud-v2-model/StringResultSchema'), require('../rustici-software-cloud-v2-model/TokenRequestSchema'), require('../rustici-software-cloud-v2-model/UpdateApplicationSchema')); |
23 | 23 | } else {
|
24 | 24 | // Browser globals (root is window)
|
25 | 25 | if (!root.RusticiSoftwareCloudV2) {
|
26 | 26 | root.RusticiSoftwareCloudV2 = {};
|
27 | 27 | }
|
28 |
| - root.RusticiSoftwareCloudV2.ApplicationManagementApi = factory(root.RusticiSoftwareCloudV2.ApiClient, root.RusticiSoftwareCloudV2.ApplicationInfoSchema, root.RusticiSoftwareCloudV2.ApplicationListSchema, root.RusticiSoftwareCloudV2.ApplicationRequestSchema, root.RusticiSoftwareCloudV2.ApplicationSchema, root.RusticiSoftwareCloudV2.CredentialCreatedSchema, root.RusticiSoftwareCloudV2.CredentialListSchema, root.RusticiSoftwareCloudV2.CredentialRequestSchema, root.RusticiSoftwareCloudV2.MessageSchema, root.RusticiSoftwareCloudV2.SettingListSchema, root.RusticiSoftwareCloudV2.SettingsPostSchema, root.RusticiSoftwareCloudV2.StringResultSchema, root.RusticiSoftwareCloudV2.TokenRequestSchema, root.RusticiSoftwareCloudV2.UpdateApplicationSchema); |
| 28 | + root.RusticiSoftwareCloudV2.ApplicationManagementApi = factory(root.RusticiSoftwareCloudV2.ApiClient, root.RusticiSoftwareCloudV2.ApplicationInfoListSchema, root.RusticiSoftwareCloudV2.ApplicationInfoSchema, root.RusticiSoftwareCloudV2.ApplicationListSchema, root.RusticiSoftwareCloudV2.ApplicationRequestSchema, root.RusticiSoftwareCloudV2.ApplicationSchema, root.RusticiSoftwareCloudV2.CredentialCreatedSchema, root.RusticiSoftwareCloudV2.CredentialListSchema, root.RusticiSoftwareCloudV2.CredentialRequestSchema, root.RusticiSoftwareCloudV2.MessageSchema, root.RusticiSoftwareCloudV2.SettingListSchema, root.RusticiSoftwareCloudV2.SettingsPostSchema, root.RusticiSoftwareCloudV2.StringResultSchema, root.RusticiSoftwareCloudV2.TokenRequestSchema, root.RusticiSoftwareCloudV2.UpdateApplicationSchema); |
29 | 29 | }
|
30 |
| -}(this, function(ApiClient, ApplicationInfoSchema, ApplicationListSchema, ApplicationRequestSchema, ApplicationSchema, CredentialCreatedSchema, CredentialListSchema, CredentialRequestSchema, MessageSchema, SettingListSchema, SettingsPostSchema, StringResultSchema, TokenRequestSchema, UpdateApplicationSchema) { |
| 30 | +}(this, function(ApiClient, ApplicationInfoListSchema, ApplicationInfoSchema, ApplicationListSchema, ApplicationRequestSchema, ApplicationSchema, CredentialCreatedSchema, CredentialListSchema, CredentialRequestSchema, MessageSchema, SettingListSchema, SettingsPostSchema, StringResultSchema, TokenRequestSchema, UpdateApplicationSchema) { |
31 | 31 | 'use strict';
|
32 | 32 |
|
33 | 33 | /**
|
34 | 34 | * ApplicationManagement service.
|
35 | 35 | * @module rustici-software-cloud-v2/rustici-software-cloud-v2-api/ApplicationManagementApi
|
36 |
| - * @version 2.1.0 |
37 | 36 | */
|
38 | 37 |
|
39 | 38 | /**
|
|
461 | 460 | */
|
462 | 461 |
|
463 | 462 | /**
|
464 |
| - * Use the Application Management App to get a list of Applications |
465 |
| - * Returns a list of all applications which are in this Realm. >**Note:** >Each Realm has a special application called the **Application Management Application**. When using this special application's credentials to authenticate with the API, you are able to perform actions on all the other applications within that Realm (and only those actions, this isn't a general purpose credential). You can list, add, update, and delete both applications and credentials with this API resource. |
| 463 | + * (Deprecated) Use the Application Management App to get basic data about all Applications in a Realm |
| 464 | + * Returns a list of all applications which are in this Realm. >**Deprecated:** >It is advised to use GetApplications instead of this endpoint, as this one now exists for backwards compatibility. This endpoint returns very limited data about **all** applications in a Realm and is not paginated. Because of this, this endpoint can run into issues and have very slow performance when attempting to pull data for accounts with many applications. The GetApplications endpoint alleviates this problem by using pagination to return a limited amount of applications at once, while also providing much more detail about every application present in a Realm. >**Note:** >Each Realm has a special application called the **Application Management Application**. When using this special application's credentials to authenticate with the API, you are able to perform actions on all the other applications within that Realm (and only those actions, this isn't a general purpose credential). You can list, add, update, and delete both applications and credentials with this API resource. |
466 | 465 | * @param {module:rustici-software-cloud-v2/rustici-software-cloud-v2-api/ApplicationManagementApi~getApplicationListCallback} callback The callback function, accepting three arguments: error, data, response
|
467 | 466 | * data is of type: {@link module:rustici-software-cloud-v2/rustici-software-cloud-v2-model/ApplicationListSchema}
|
| 467 | + * @deprecated Use GetApplications instead. |
468 | 468 | */
|
469 | 469 | this.getApplicationList = function(callback) {
|
470 | 470 | var postBody = null;
|
|
493 | 493 | );
|
494 | 494 | }
|
495 | 495 |
|
| 496 | + /** |
| 497 | + * Callback function to receive the result of the getApplications operation. |
| 498 | + * @callback module:rustici-software-cloud-v2/rustici-software-cloud-v2-api/ApplicationManagementApi~getApplicationsCallback |
| 499 | + * @param {String} error Error message, if any. |
| 500 | + * @param {module:rustici-software-cloud-v2/rustici-software-cloud-v2-model/ApplicationInfoListSchema} data The data returned by the service call. |
| 501 | + * @param {String} response The complete HTTP response. |
| 502 | + */ |
| 503 | + |
| 504 | + /** |
| 505 | + * Use the Application Management App to get a detailed list of Applications |
| 506 | + * Returns a list of applications. Can be filtered using the request parameters to provide a subset of results. This endpoint caches the course and registration counts of an application for 24 hours if either `includeCourseCount` or `includeRegistrationCount` parameters, respectively, are set to `true`. Since these values are cached for an extended period, any changes made to the number of courses or registrations in an application will not be reflected in the results of this endpoint until the caching period has passed. >**Note:** >This request is paginated and will only provide a limited amount of resources at a time. If there are more results to be collected, a `more` token provided with the response which can be passed to get the next page of results. When passing this token, no other filter parameters can be sent as part of the request. The resources will continue to respect the filters passed in by the original request. >**Note:** >Each Realm has a special application called the **Application Management Application**. When using this special application's credentials to authenticate with the API, you are able to perform actions on all the other applications within that Realm (and only those actions, this isn't a general purpose credential). You can list, add, update, and delete both applications and credentials with this API resource. >**Info:** >If you want to get an up-to-date value of the course or registration count for a single application within the caching period, use the GetApplicationInfo endpoint with `includeCourseCount` and/or `includeRegistrationCount` set to `true`. GetApplicationInfo *always* gathers the most up-to-date values and overwrites them in the cache, resetting the caching period for that application. |
| 507 | + * @param {Object} opts Optional parameters |
| 508 | + * @param {Date} opts.since Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) |
| 509 | + * @param {Date} opts.until Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) |
| 510 | + * @param {module:rustici-software-cloud-v2/rustici-software-cloud-v2-model/String} opts.datetimeFilter Specifies field that `since` and `until` parameters are applied against (default to updated) |
| 511 | + * @param {String} opts.filter Optional string which filters results by a specified field (described by filterBy). |
| 512 | + * @param {module:rustici-software-cloud-v2/rustici-software-cloud-v2-model/String} opts.filterBy Optional enum parameter for specifying the field on which to run the filter. (default to app_id) |
| 513 | + * @param {module:rustici-software-cloud-v2/rustici-software-cloud-v2-model/String} opts.orderBy Optional enum parameter for specifying the field and order by which to sort the results. (default to updated_asc) |
| 514 | + * @param {String} opts.more Pagination token returned as `more` property of multi page list requests |
| 515 | + * @param {Boolean} opts.includeCourseCount Include a count of courses for the application. (default to false) |
| 516 | + * @param {Boolean} opts.includeRegistrationCount Include a count of registrations created for the application during the current billing period. (default to false) |
| 517 | + * @param {Boolean} opts.includeTotalCount Include the total count of results matching the provided filters as a header on the initial request. The header will not be present on subsequent requests resulting from passing the `more` token. (default to false) |
| 518 | + * @param {module:rustici-software-cloud-v2/rustici-software-cloud-v2-api/ApplicationManagementApi~getApplicationsCallback} callback The callback function, accepting three arguments: error, data, response |
| 519 | + * data is of type: {@link module:rustici-software-cloud-v2/rustici-software-cloud-v2-model/ApplicationInfoListSchema} |
| 520 | + */ |
| 521 | + this.getApplications = function(opts, callback) { |
| 522 | + opts = opts || {}; |
| 523 | + var postBody = null; |
| 524 | + |
| 525 | + |
| 526 | + var pathParams = { |
| 527 | + }; |
| 528 | + var queryParams = { |
| 529 | + 'since': opts['since'], |
| 530 | + 'until': opts['until'], |
| 531 | + 'datetimeFilter': opts['datetimeFilter'], |
| 532 | + 'filter': opts['filter'], |
| 533 | + 'filterBy': opts['filterBy'], |
| 534 | + 'orderBy': opts['orderBy'], |
| 535 | + 'more': opts['more'], |
| 536 | + 'includeCourseCount': opts['includeCourseCount'], |
| 537 | + 'includeRegistrationCount': opts['includeRegistrationCount'], |
| 538 | + 'includeTotalCount': opts['includeTotalCount'], |
| 539 | + }; |
| 540 | + var collectionQueryParams = { |
| 541 | + }; |
| 542 | + var headerParams = { |
| 543 | + }; |
| 544 | + var formParams = { |
| 545 | + }; |
| 546 | + |
| 547 | + var authNames = ['APP_MANAGEMENT', 'OAUTH']; |
| 548 | + var contentTypes = ['application/json']; |
| 549 | + var accepts = ['application/json']; |
| 550 | + var returnType = ApplicationInfoListSchema; |
| 551 | + |
| 552 | + return this.apiClient.callApi( |
| 553 | + '/appManagement/applicationList', 'GET', |
| 554 | + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, |
| 555 | + authNames, contentTypes, accepts, returnType, callback |
| 556 | + ); |
| 557 | + } |
| 558 | + |
496 | 559 | /**
|
497 | 560 | * Callback function to receive the result of the getCredentials operation.
|
498 | 561 | * @callback module:rustici-software-cloud-v2/rustici-software-cloud-v2-api/ApplicationManagementApi~getCredentialsCallback
|
|
0 commit comments