|
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/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); |
| 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/CredentialListSchema', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/CredentialRequestSchema', 'rustici-software-cloud-v2/rustici-software-cloud-v2-model/CredentialSchema', '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/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')); |
| 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/CredentialListSchema'), require('../rustici-software-cloud-v2-model/CredentialRequestSchema'), require('../rustici-software-cloud-v2-model/CredentialSchema'), 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.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); |
| 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.CredentialListSchema, root.RusticiSoftwareCloudV2.CredentialRequestSchema, root.RusticiSoftwareCloudV2.CredentialSchema, root.RusticiSoftwareCloudV2.MessageSchema, root.RusticiSoftwareCloudV2.SettingListSchema, root.RusticiSoftwareCloudV2.SettingsPostSchema, root.RusticiSoftwareCloudV2.StringResultSchema, root.RusticiSoftwareCloudV2.TokenRequestSchema, root.RusticiSoftwareCloudV2.UpdateApplicationSchema); |
29 | 29 | }
|
30 |
| -}(this, function(ApiClient, ApplicationInfoListSchema, ApplicationInfoSchema, ApplicationListSchema, ApplicationRequestSchema, ApplicationSchema, CredentialCreatedSchema, CredentialListSchema, CredentialRequestSchema, MessageSchema, SettingListSchema, SettingsPostSchema, StringResultSchema, TokenRequestSchema, UpdateApplicationSchema) { |
| 30 | +}(this, function(ApiClient, ApplicationInfoListSchema, ApplicationInfoSchema, ApplicationListSchema, ApplicationRequestSchema, ApplicationSchema, CredentialListSchema, CredentialRequestSchema, CredentialSchema, MessageSchema, SettingListSchema, SettingsPostSchema, StringResultSchema, TokenRequestSchema, UpdateApplicationSchema) { |
31 | 31 | 'use strict';
|
32 | 32 |
|
33 | 33 | /**
|
|
97 | 97 | * Callback function to receive the result of the createCredential operation.
|
98 | 98 | * @callback module:rustici-software-cloud-v2/rustici-software-cloud-v2-api/ApplicationManagementApi~createCredentialCallback
|
99 | 99 | * @param {String} error Error message, if any.
|
100 |
| - * @param {module:rustici-software-cloud-v2/rustici-software-cloud-v2-model/CredentialCreatedSchema} data The data returned by the service call. |
| 100 | + * @param {module:rustici-software-cloud-v2/rustici-software-cloud-v2-model/CredentialSchema} data The data returned by the service call. |
101 | 101 | * @param {String} response The complete HTTP response.
|
102 | 102 | */
|
103 | 103 |
|
|
107 | 107 | * @param {String} childAppId
|
108 | 108 | * @param {module:rustici-software-cloud-v2/rustici-software-cloud-v2-model/CredentialRequestSchema} credentialRequest
|
109 | 109 | * @param {module:rustici-software-cloud-v2/rustici-software-cloud-v2-api/ApplicationManagementApi~createCredentialCallback} callback The callback function, accepting three arguments: error, data, response
|
110 |
| - * data is of type: {@link module:rustici-software-cloud-v2/rustici-software-cloud-v2-model/CredentialCreatedSchema} |
| 110 | + * data is of type: {@link module:rustici-software-cloud-v2/rustici-software-cloud-v2-model/CredentialSchema} |
111 | 111 | */
|
112 | 112 | this.createCredential = function(childAppId, credentialRequest, callback) {
|
113 | 113 | var postBody = credentialRequest;
|
|
138 | 138 | var authNames = ['APP_MANAGEMENT', 'OAUTH'];
|
139 | 139 | var contentTypes = ['application/json'];
|
140 | 140 | var accepts = ['application/json'];
|
141 |
| - var returnType = CredentialCreatedSchema; |
| 141 | + var returnType = CredentialSchema; |
142 | 142 |
|
143 | 143 | return this.apiClient.callApi(
|
144 | 144 | '/appManagement/{childAppId}/credentials', 'POST',
|
|
503 | 503 |
|
504 | 504 | /**
|
505 | 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. |
| 506 | + * Returns a list of applications. Can be filtered using the request parameters to provide a subset of results. >**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:** >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. >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 | 507 | * @param {Object} opts Optional parameters
|
508 | 508 | * @param {Date} opts.since Filter by ISO 8601 TimeStamp inclusive (defaults to UTC)
|
509 | 509 | * @param {Date} opts.until Filter by ISO 8601 TimeStamp inclusive (defaults to UTC)
|
|
0 commit comments