Class: RusticiSoftwareCloudV2::ApplicationManagementApi
- Inherits:
-
Object
- Object
- RusticiSoftwareCloudV2::ApplicationManagementApi
- Extended by:
- Gem::Deprecate
- Defined in:
- lib/rustici_software_cloud_v2/api/application_management_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#create_application(application_request, opts = {}) ⇒ ApplicationSchema
Use the Application Management App to create a new Application Creates an application.
-
#create_application_with_http_info(application_request, opts = {}) ⇒ Array<(ApplicationSchema, Fixnum, Hash)>
Use the Application Management App to create a new Application Creates an application.
-
#create_credential(child_app_id, credential_request, opts = {}) ⇒ CredentialSchema
Use the Application Manager App to create a new secret key for an Application Creates a new credential (aka secret key) for use with the child application.
-
#create_credential_with_http_info(child_app_id, credential_request, opts = {}) ⇒ Array<(CredentialSchema, Fixnum, Hash)>
Use the Application Manager App to create a new secret key for an Application Creates a new credential (aka secret key) for use with the child application.
-
#create_token(token_request, opts = {}) ⇒ StringResultSchema
Obtain an OAuth token for scoped access to an Application Creates, signs and returns an OAuth2 token based on the provided permissions, if the credentials used to request the token have the permissions being requested.
-
#create_token_with_http_info(token_request, opts = {}) ⇒ Array<(StringResultSchema, Fixnum, Hash)>
Obtain an OAuth token for scoped access to an Application Creates, signs and returns an OAuth2 token based on the provided permissions, if the credentials used to request the token have the permissions being requested.
-
#delete_application(child_app_id, opts = {}) ⇒ nil
Use the Application Management App to delete an Application Deletes the specified application.
-
#delete_application_configuration_setting(setting_id, opts = {}) ⇒ nil
Delete a configuration setting explicitly set for an Application Clears the specified setting from the application.
-
#delete_application_configuration_setting_with_http_info(setting_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a configuration setting explicitly set for an Application Clears the specified setting from the application.
-
#delete_application_with_http_info(child_app_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Use the Application Management App to delete an Application Deletes the specified application.
-
#delete_credential(child_app_id, credential_id, opts = {}) ⇒ nil
Use the Application Management App to delete a secret key from an Application Deletes a credential belonging to the child application.
-
#delete_credential_with_http_info(child_app_id, credential_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Use the Application Management App to delete a secret key from an Application Deletes a credential belonging to the child application.
-
#get_application_configuration(opts = {}) ⇒ SettingListSchema
Get effective configuration settings for an Application Returns the effective configuration settings for the application.
-
#get_application_configuration_with_http_info(opts = {}) ⇒ Array<(SettingListSchema, Fixnum, Hash)>
Get effective configuration settings for an Application Returns the effective configuration settings for the application.
-
#get_application_info(child_app_id, opts = {}) ⇒ ApplicationInfoSchema
Use the Application Management App to get detailed information about an Application Returns detailed information about the application.
-
#get_application_info_with_http_info(child_app_id, opts = {}) ⇒ Array<(ApplicationInfoSchema, Fixnum, Hash)>
Use the Application Management App to get detailed information about an Application Returns detailed information about the application.
-
#get_application_list(opts = {}) ⇒ ApplicationListSchema
(Deprecated) Use the Application Management App to get basic data about all Applications in a Realm Returns a list of all applications which are in this Realm.
-
#get_application_list_with_http_info(opts = {}) ⇒ Array<(ApplicationListSchema, Fixnum, Hash)>
(Deprecated) Use the Application Management App to get basic data about all Applications in a Realm Returns a list of all applications which are in this Realm.
-
#get_applications(opts = {}) ⇒ ApplicationInfoListSchema
Use the Application Management App to get a detailed list of Applications Returns a list of applications.
-
#get_applications_with_http_info(opts = {}) ⇒ Array<(ApplicationInfoListSchema, Fixnum, Hash)>
Use the Application Management App to get a detailed list of Applications Returns a list of applications.
-
#get_credentials(child_app_id, opts = {}) ⇒ CredentialListSchema
Use the Application Manager App to get a list of secret keys for an Application Returns a list of all the credentials (aka secret keys) belonging to the child application.
-
#get_credentials_with_http_info(child_app_id, opts = {}) ⇒ Array<(CredentialListSchema, Fixnum, Hash)>
Use the Application Manager App to get a list of secret keys for an Application Returns a list of all the credentials (aka secret keys) belonging to the child application.
-
#initialize(api_client = ApiClient.default) ⇒ ApplicationManagementApi
constructor
A new instance of ApplicationManagementApi.
-
#set_application_configuration(configuration_settings, opts = {}) ⇒ nil
Update configuration settings for an Application Updates configuration settings at the application level.
-
#set_application_configuration_with_http_info(configuration_settings, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update configuration settings for an Application Updates configuration settings at the application level.
-
#update_application(child_app_id, application_properties, opts = {}) ⇒ nil
Use the Application Management App to update information about an Application Updates information about the application, such as the name and enabling/ disabling deletion operations for the application.
-
#update_application_with_http_info(child_app_id, application_properties, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Use the Application Management App to update information about an Application Updates information about the application, such as the name and enabling/ disabling deletion operations for the application.
-
#update_credential(child_app_id, credential_id, credential_update, opts = {}) ⇒ nil
Use the Application Manager App to update an existing secret key for an Application Updates the name or status associated with the credential.
-
#update_credential_with_http_info(child_app_id, credential_id, credential_update, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Use the Application Manager App to update an existing secret key for an Application Updates the name or status associated with the credential.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ ApplicationManagementApi
Returns a new instance of ApplicationManagementApi.
18 19 20 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 18 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
16 17 18 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 16 def api_client @api_client end |
Instance Method Details
#create_application(application_request, opts = {}) ⇒ ApplicationSchema
Use the Application Management App to create a new Application Creates an application. Applications are how resources are grouped together in SCORM Cloud. Any courses, registrations, etc. will only be accessible via the credentials for the application they belong to. >Note: >Application IDs are unique in that we do not allow the user to supply a custom value for this field. The ID of the newly created application will be specified in the response from this method. >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.
29 30 31 32 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 29 def create_application(application_request, opts = {}) data, _status_code, _headers = create_application_with_http_info(application_request, opts) data end |
#create_application_with_http_info(application_request, opts = {}) ⇒ Array<(ApplicationSchema, Fixnum, Hash)>
Use the Application Management App to create a new Application Creates an application. Applications are how resources are grouped together in SCORM Cloud. Any courses, registrations, etc. will only be accessible via the credentials for the application they belong to. >Note: >Application IDs are unique in that we do not allow the user to supply a custom value for this field. The ID of the newly created application will be specified in the response from this method. >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.
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 39 def create_application_with_http_info(application_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ApplicationManagementApi.create_application ...' end # verify the required parameter 'application_request' is set if application_request.nil? fail ArgumentError, "Missing the required parameter 'application_request' when calling ApplicationManagementApi.create_application" end # resource path local_var_path = '/appManagement/applications' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(application_request) auth_names = ['APP_MANAGEMENT', 'OAUTH'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ApplicationSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: ApplicationManagementApi#create_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_credential(child_app_id, credential_request, opts = {}) ⇒ CredentialSchema
Use the Application Manager App to create a new secret key for an Application Creates a new credential (aka secret key) for use with the child application. The credential will be used alongside the ‘childAppId` for basic auth requests. >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.
85 86 87 88 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 85 def create_credential(child_app_id, credential_request, opts = {}) data, _status_code, _headers = create_credential_with_http_info(child_app_id, credential_request, opts) data end |
#create_credential_with_http_info(child_app_id, credential_request, opts = {}) ⇒ Array<(CredentialSchema, Fixnum, Hash)>
Use the Application Manager App to create a new secret key for an Application Creates a new credential (aka secret key) for use with the child application. The credential will be used alongside the `childAppId` for basic auth requests. >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.
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 96 def create_credential_with_http_info(child_app_id, credential_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ApplicationManagementApi.create_credential ...' end # verify the required parameter 'child_app_id' is set if child_app_id.nil? fail ArgumentError, "Missing the required parameter 'child_app_id' when calling ApplicationManagementApi.create_credential" end # verify the required parameter 'credential_request' is set if credential_request.nil? fail ArgumentError, "Missing the required parameter 'credential_request' when calling ApplicationManagementApi.create_credential" end # resource path local_var_path = '/appManagement/{childAppId}/credentials'.sub('{' + 'childAppId' + '}', child_app_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(credential_request) auth_names = ['APP_MANAGEMENT', 'OAUTH'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'CredentialSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: ApplicationManagementApi#create_credential\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_token(token_request, opts = {}) ⇒ StringResultSchema
Obtain an OAuth token for scoped access to an Application Creates, signs and returns an OAuth2 token based on the provided permissions, if the credentials used to request the token have the permissions being requested. >Note: >The token is not stored and therefore can not be modified or deleted. The requested permissions are encoded in the token which is then signed.
145 146 147 148 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 145 def create_token(token_request, opts = {}) data, _status_code, _headers = create_token_with_http_info(token_request, opts) data end |
#create_token_with_http_info(token_request, opts = {}) ⇒ Array<(StringResultSchema, Fixnum, Hash)>
Obtain an OAuth token for scoped access to an Application Creates, signs and returns an OAuth2 token based on the provided permissions, if the credentials used to request the token have the permissions being requested. >Note: >The token is not stored and therefore can not be modified or deleted. The requested permissions are encoded in the token which is then signed.
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 155 def create_token_with_http_info(token_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ApplicationManagementApi.create_token ...' end # verify the required parameter 'token_request' is set if token_request.nil? fail ArgumentError, "Missing the required parameter 'token_request' when calling ApplicationManagementApi.create_token" end # resource path local_var_path = '/appManagement/token' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(token_request) auth_names = ['APP_NORMAL'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'StringResultSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: ApplicationManagementApi#create_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_application(child_app_id, opts = {}) ⇒ nil
Use the Application Management App to delete an Application Deletes the specified application. All content within an application must be removed in order to allow deletion. >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.
200 201 202 203 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 200 def delete_application(child_app_id, opts = {}) delete_application_with_http_info(child_app_id, opts) nil end |
#delete_application_configuration_setting(setting_id, opts = {}) ⇒ nil
Delete a configuration setting explicitly set for an Application Clears the specified setting from the application. This causes the setting to inherit a value from a higher level (e.g. system default if deleting from application, application level if deleting from learning standard). If the configuration setting was not set at the application level it will continue to persist and will require deletion from the level it was set.
256 257 258 259 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 256 def delete_application_configuration_setting(setting_id, opts = {}) delete_application_configuration_setting_with_http_info(setting_id, opts) nil end |
#delete_application_configuration_setting_with_http_info(setting_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a configuration setting explicitly set for an Application Clears the specified setting from the application. This causes the setting to inherit a value from a higher level (e.g. system default if deleting from application, application level if deleting from learning standard). If the configuration setting was not set at the application level it will continue to persist and will require deletion from the level it was set.
268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 268 def delete_application_configuration_setting_with_http_info(setting_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ApplicationManagementApi.delete_application_configuration_setting ...' end # verify the required parameter 'setting_id' is set if setting_id.nil? fail ArgumentError, "Missing the required parameter 'setting_id' when calling ApplicationManagementApi.delete_application_configuration_setting" end # resource path local_var_path = '/appManagement/configuration/{settingId}'.sub('{' + 'settingId' + '}', setting_id.to_s) # query parameters query_params = {} query_params[:'learningStandard'] = opts[:'learning_standard'] if !opts[:'learning_standard'].nil? query_params[:'singleSco'] = opts[:'single_sco'] if !opts[:'single_sco'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ApplicationManagementApi#delete_application_configuration_setting\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_application_with_http_info(child_app_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Use the Application Management App to delete an Application Deletes the specified application. All content within an application must be removed in order to allow deletion. >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.
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 210 def delete_application_with_http_info(child_app_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ApplicationManagementApi.delete_application ...' end # verify the required parameter 'child_app_id' is set if child_app_id.nil? fail ArgumentError, "Missing the required parameter 'child_app_id' when calling ApplicationManagementApi.delete_application" end # resource path local_var_path = '/appManagement/applications/{childAppId}'.sub('{' + 'childAppId' + '}', child_app_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_MANAGEMENT', 'OAUTH'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ApplicationManagementApi#delete_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_credential(child_app_id, credential_id, opts = {}) ⇒ nil
Use the Application Management App to delete a secret key from an Application Deletes a credential belonging to the child application. >Caution: >If the last secret key for an application is deleted it will not be able to use the SCORM Cloud API until another key is granted to it via ‘CreateCredential`. It may also disable some website privileges. >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.
315 316 317 318 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 315 def delete_credential(child_app_id, credential_id, opts = {}) delete_credential_with_http_info(child_app_id, credential_id, opts) nil end |
#delete_credential_with_http_info(child_app_id, credential_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Use the Application Management App to delete a secret key from an Application Deletes a credential belonging to the child application. >Caution: >If the last secret key for an application is deleted it will not be able to use the SCORM Cloud API until another key is granted to it via `CreateCredential`. It may also disable some website privileges. >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.
326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 326 def delete_credential_with_http_info(child_app_id, credential_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ApplicationManagementApi.delete_credential ...' end # verify the required parameter 'child_app_id' is set if child_app_id.nil? fail ArgumentError, "Missing the required parameter 'child_app_id' when calling ApplicationManagementApi.delete_credential" end # verify the required parameter 'credential_id' is set if credential_id.nil? fail ArgumentError, "Missing the required parameter 'credential_id' when calling ApplicationManagementApi.delete_credential" end # resource path local_var_path = '/appManagement/{childAppId}/credentials/{credentialId}'.sub('{' + 'childAppId' + '}', child_app_id.to_s).sub('{' + 'credentialId' + '}', credential_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_MANAGEMENT', 'OAUTH'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ApplicationManagementApi#delete_credential\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_application_configuration(opts = {}) ⇒ SettingListSchema
Get effective configuration settings for an Application Returns the effective configuration settings for the application. Configuration settings at the application level will apply to all items within that application (courses, registrations, etc.). If there is a configuration setting present at a more specific level (course, registration, etc.), that setting will override the one set at the application level. >Note: >This resource lists configuration for two groupings of content: >- ALL content in an application. This is achieved by leaving ‘learningStandard` and `singleSco` as `null`. Anything set at the learningStandard/singleSco level will take precedence over these settings. >- Content falling into a learningStandard/singleSco category. This allows setting more specific defaults for a particular learningStandard/singleSco combination. _Note: both `learningStandard` and `singleSco` must be provided, as this level is considered to be identified by those items joined._
376 377 378 379 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 376 def get_application_configuration(opts = {}) data, _status_code, _headers = get_application_configuration_with_http_info(opts) data end |
#get_application_configuration_with_http_info(opts = {}) ⇒ Array<(SettingListSchema, Fixnum, Hash)>
Get effective configuration settings for an Application Returns the effective configuration settings for the application. Configuration settings at the application level will apply to all items within that application (courses, registrations, etc.). If there is a configuration setting present at a more specific level (course, registration, etc.), that setting will override the one set at the application level. >Note: >This resource lists configuration for two groupings of content: >- ALL content in an application. This is achieved by leaving `learningStandard` and `singleSco` as `null`. Anything set at the learningStandard/singleSco level will take precedence over these settings. >- Content falling into a learningStandard/singleSco category. This allows setting more specific defaults for a particular learningStandard/singleSco combination. _Note: both `learningStandard` and `singleSco` must be provided, as this level is considered to be identified by those items joined._
388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 388 def get_application_configuration_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ApplicationManagementApi.get_application_configuration ...' end # resource path local_var_path = '/appManagement/configuration' # query parameters query_params = {} query_params[:'learningStandard'] = opts[:'learning_standard'] if !opts[:'learning_standard'].nil? query_params[:'singleSco'] = opts[:'single_sco'] if !opts[:'single_sco'].nil? query_params[:'includeMetadata'] = opts[:'include_metadata'] if !opts[:'include_metadata'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'SettingListSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: ApplicationManagementApi#get_application_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_application_info(child_app_id, opts = {}) ⇒ ApplicationInfoSchema
Use the Application Management App to get detailed information about an Application Returns detailed information about the application. This includes name, create date, and delete permissions. >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.
434 435 436 437 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 434 def get_application_info(child_app_id, opts = {}) data, _status_code, _headers = get_application_info_with_http_info(child_app_id, opts) data end |
#get_application_info_with_http_info(child_app_id, opts = {}) ⇒ Array<(ApplicationInfoSchema, Fixnum, Hash)>
Use the Application Management App to get detailed information about an Application Returns detailed information about the application. This includes name, create date, and delete permissions. >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.
446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 446 def get_application_info_with_http_info(child_app_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ApplicationManagementApi.get_application_info ...' end # verify the required parameter 'child_app_id' is set if child_app_id.nil? fail ArgumentError, "Missing the required parameter 'child_app_id' when calling ApplicationManagementApi.get_application_info" end # resource path local_var_path = '/appManagement/applications/{childAppId}'.sub('{' + 'childAppId' + '}', child_app_id.to_s) # query parameters query_params = {} query_params[:'includeCourseCount'] = opts[:'include_course_count'] if !opts[:'include_course_count'].nil? query_params[:'includeRegistrationCount'] = opts[:'include_registration_count'] if !opts[:'include_registration_count'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_MANAGEMENT', 'OAUTH'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ApplicationInfoSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: ApplicationManagementApi#get_application_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_application_list(opts = {}) ⇒ ApplicationListSchema
(Deprecated) Use the Application Management App to get basic data about all Applications in a Realm 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.
492 493 494 495 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 492 def get_application_list(opts = {}) data, _status_code, _headers = get_application_list_with_http_info(opts) data end |
#get_application_list_with_http_info(opts = {}) ⇒ Array<(ApplicationListSchema, Fixnum, Hash)>
(Deprecated) Use the Application Management App to get basic data about all Applications in a Realm 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.
502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 502 def get_application_list_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ApplicationManagementApi.get_application_list ...' end # resource path local_var_path = '/appManagement/applications' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_MANAGEMENT', 'OAUTH'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ApplicationListSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: ApplicationManagementApi#get_application_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_applications(opts = {}) ⇒ ApplicationInfoListSchema
Use the Application Management App to get a detailed list of Applications 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.
553 554 555 556 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 553 def get_applications(opts = {}) data, _status_code, _headers = get_applications_with_http_info(opts) data end |
#get_applications_with_http_info(opts = {}) ⇒ Array<(ApplicationInfoListSchema, Fixnum, Hash)>
Use the Application Management App to get a detailed list of Applications 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.
572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 572 def get_applications_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ApplicationManagementApi.get_applications ...' end # resource path local_var_path = '/appManagement/applicationList' # query parameters query_params = {} query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil? query_params[:'until'] = opts[:'_until'] if !opts[:'_until'].nil? query_params[:'datetimeFilter'] = opts[:'datetime_filter'] if !opts[:'datetime_filter'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'filterBy'] = opts[:'filter_by'] if !opts[:'filter_by'].nil? query_params[:'orderBy'] = opts[:'order_by'] if !opts[:'order_by'].nil? query_params[:'more'] = opts[:'more'] if !opts[:'more'].nil? query_params[:'includeCourseCount'] = opts[:'include_course_count'] if !opts[:'include_course_count'].nil? query_params[:'includeRegistrationCount'] = opts[:'include_registration_count'] if !opts[:'include_registration_count'].nil? query_params[:'includeTotalCount'] = opts[:'include_total_count'] if !opts[:'include_total_count'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_MANAGEMENT', 'OAUTH'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ApplicationInfoListSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: ApplicationManagementApi#get_applications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_credentials(child_app_id, opts = {}) ⇒ CredentialListSchema
Use the Application Manager App to get a list of secret keys for an Application Returns a list of all the credentials (aka secret keys) belonging to the child application. >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.
623 624 625 626 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 623 def get_credentials(child_app_id, opts = {}) data, _status_code, _headers = get_credentials_with_http_info(child_app_id, opts) data end |
#get_credentials_with_http_info(child_app_id, opts = {}) ⇒ Array<(CredentialListSchema, Fixnum, Hash)>
Use the Application Manager App to get a list of secret keys for an Application Returns a list of all the credentials (aka secret keys) belonging to the child application. >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.
633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 633 def get_credentials_with_http_info(child_app_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ApplicationManagementApi.get_credentials ...' end # verify the required parameter 'child_app_id' is set if child_app_id.nil? fail ArgumentError, "Missing the required parameter 'child_app_id' when calling ApplicationManagementApi.get_credentials" end # resource path local_var_path = '/appManagement/{childAppId}/credentials'.sub('{' + 'childAppId' + '}', child_app_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_MANAGEMENT', 'OAUTH'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'CredentialListSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: ApplicationManagementApi#get_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#set_application_configuration(configuration_settings, opts = {}) ⇒ nil
Update configuration settings for an Application Updates configuration settings at the application level. This will explicitly set a value at the applicaiton level. These settings will affect all items within the application which do not have their own explicit configuration set. This can effectively be used to set application level defaults.
680 681 682 683 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 680 def set_application_configuration(configuration_settings, opts = {}) set_application_configuration_with_http_info(configuration_settings, opts) nil end |
#set_application_configuration_with_http_info(configuration_settings, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update configuration settings for an Application Updates configuration settings at the application level. This will explicitly set a value at the applicaiton level. These settings will affect all items within the application which do not have their own explicit configuration set. This can effectively be used to set application level defaults.
692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 692 def set_application_configuration_with_http_info(configuration_settings, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ApplicationManagementApi.set_application_configuration ...' end # verify the required parameter 'configuration_settings' is set if configuration_settings.nil? fail ArgumentError, "Missing the required parameter 'configuration_settings' when calling ApplicationManagementApi.set_application_configuration" end # resource path local_var_path = '/appManagement/configuration' # query parameters query_params = {} query_params[:'learningStandard'] = opts[:'learning_standard'] if !opts[:'learning_standard'].nil? query_params[:'singleSco'] = opts[:'single_sco'] if !opts[:'single_sco'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(configuration_settings) auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ApplicationManagementApi#set_application_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_application(child_app_id, application_properties, opts = {}) ⇒ nil
Use the Application Management App to update information about an Application Updates information about the application, such as the name and enabling/ disabling deletion operations for the application. >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.
739 740 741 742 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 739 def update_application(child_app_id, application_properties, opts = {}) update_application_with_http_info(child_app_id, application_properties, opts) nil end |
#update_application_with_http_info(child_app_id, application_properties, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Use the Application Management App to update information about an Application Updates information about the application, such as the name and enabling/ disabling deletion operations for the application. >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.
750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 750 def update_application_with_http_info(child_app_id, application_properties, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ApplicationManagementApi.update_application ...' end # verify the required parameter 'child_app_id' is set if child_app_id.nil? fail ArgumentError, "Missing the required parameter 'child_app_id' when calling ApplicationManagementApi.update_application" end # verify the required parameter 'application_properties' is set if application_properties.nil? fail ArgumentError, "Missing the required parameter 'application_properties' when calling ApplicationManagementApi.update_application" end # resource path local_var_path = '/appManagement/applications/{childAppId}'.sub('{' + 'childAppId' + '}', child_app_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(application_properties) auth_names = ['APP_MANAGEMENT', 'OAUTH'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ApplicationManagementApi#update_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_credential(child_app_id, credential_id, credential_update, opts = {}) ⇒ nil
Use the Application Manager App to update an existing secret key for an Application Updates the name or status associated with the credential. Disabling a credential will cause it to no longer be valid for authorization through the API. >Caution: >If the last (or only) key for an application is disabled it may affect some website privileges. >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.
800 801 802 803 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 800 def update_credential(child_app_id, credential_id, credential_update, opts = {}) update_credential_with_http_info(child_app_id, credential_id, credential_update, opts) nil end |
#update_credential_with_http_info(child_app_id, credential_id, credential_update, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Use the Application Manager App to update an existing secret key for an Application Updates the name or status associated with the credential. Disabling a credential will cause it to no longer be valid for authorization through the API. >Caution: >If the last (or only) key for an application is disabled it may affect some website privileges. >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.
812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 |
# File 'lib/rustici_software_cloud_v2/api/application_management_api.rb', line 812 def update_credential_with_http_info(child_app_id, credential_id, credential_update, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ApplicationManagementApi.update_credential ...' end # verify the required parameter 'child_app_id' is set if child_app_id.nil? fail ArgumentError, "Missing the required parameter 'child_app_id' when calling ApplicationManagementApi.update_credential" end # verify the required parameter 'credential_id' is set if credential_id.nil? fail ArgumentError, "Missing the required parameter 'credential_id' when calling ApplicationManagementApi.update_credential" end # verify the required parameter 'credential_update' is set if credential_update.nil? fail ArgumentError, "Missing the required parameter 'credential_update' when calling ApplicationManagementApi.update_credential" end # resource path local_var_path = '/appManagement/{childAppId}/credentials/{credentialId}'.sub('{' + 'childAppId' + '}', child_app_id.to_s).sub('{' + 'credentialId' + '}', credential_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(credential_update) auth_names = ['APP_MANAGEMENT', 'OAUTH'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ApplicationManagementApi#update_credential\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |