Class: RusticiSoftwareCloudV2::DispatchApi
- Inherits:
-
Object
- Object
- RusticiSoftwareCloudV2::DispatchApi
- Defined in:
- lib/rustici_software_cloud_v2/api/dispatch_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#create_destinations(destinations_list, opts = {}) ⇒ nil
Create a group of Destinations Creates a group of destinations.
-
#create_destinations_with_http_info(destinations_list, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Create a group of Destinations Creates a group of destinations.
-
#create_dispatches(dispatch_list, opts = {}) ⇒ nil
Create a group of Dispatches Creates a group of dispatches.
-
#create_dispatches_with_http_info(dispatch_list, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Create a group of Dispatches Creates a group of dispatches.
-
#delete_destination(destination_id, opts = {}) ⇒ nil
Delete a Destination Deletes the specified destination.
-
#delete_destination_dispatches(destination_id, opts = {}) ⇒ nil
Delete a Destination’s Dispatches Deletes all the dispatches from the destination.
-
#delete_destination_dispatches_with_http_info(destination_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a Destination's Dispatches Deletes all the dispatches from the destination.
-
#delete_destination_tags(destination_id, tags, opts = {}) ⇒ nil
Delete tags from a Destination Deletes the specified tags from the destination.
-
#delete_destination_tags_with_http_info(destination_id, tags, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete tags from a Destination Deletes the specified tags from the destination.
-
#delete_destination_with_http_info(destination_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a Destination Deletes the specified destination.
-
#delete_dispatch(dispatch_id, opts = {}) ⇒ nil
Delete a Dispatch Deletes the specified dispatch.
-
#delete_dispatch_postback_info(dispatch_id, opts = {}) ⇒ nil
Delete postback information from a Dispatch Clears the postback settings from the dispatch.
-
#delete_dispatch_postback_info_with_http_info(dispatch_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete postback information from a Dispatch Clears the postback settings from the dispatch.
-
#delete_dispatch_tags(dispatch_id, tags, opts = {}) ⇒ nil
Delete tags from a Dispatch Deletes the specified tags from the dispatch.
-
#delete_dispatch_tags_with_http_info(dispatch_id, tags, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete tags from a Dispatch Deletes the specified tags from the dispatch.
-
#delete_dispatch_with_http_info(dispatch_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a Dispatch Deletes the specified dispatch.
-
#delete_dispatches(opts = {}) ⇒ nil
Delete a group of Dispatches Deletes the specified group of dispatches.
-
#delete_dispatches_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a group of Dispatches Deletes the specified group of dispatches.
-
#enable_registration_instancing(destination_id, enabled, opts = {}) ⇒ nil
Update registration instancing status for a Destination’s Dispatches Updates the restration instancing status for all dispatches distributed to the destination.
-
#enable_registration_instancing_with_http_info(destination_id, enabled, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update registration instancing status for a Destination's Dispatches Updates the restration instancing status for all dispatches distributed to the destination.
-
#get_destination(destination_id, opts = {}) ⇒ DestinationSchema
Get detailed information about a Destination Returns detailed information about the destination.
-
#get_destination_dispatch_registration_count(destination_id, opts = {}) ⇒ IntegerResultSchema
Get registration count for a Destination’s Dispatches Returns the registration count for all dispatches distributed to the destination.
-
#get_destination_dispatch_registration_count_with_http_info(destination_id, opts = {}) ⇒ Array<(IntegerResultSchema, Fixnum, Hash)>
Get registration count for a Destination's Dispatches Returns the registration count for all dispatches distributed to the destination.
-
#get_destination_dispatch_zip(destination_id, opts = {}) ⇒ File
Download a zip file for a Destination’s Dispatches Downloads a zip file containing all of the dispatch packages for the destination.
-
#get_destination_dispatch_zip_with_http_info(destination_id, opts = {}) ⇒ Array<(File, Fixnum, Hash)>
Download a zip file for a Destination's Dispatches Downloads a zip file containing all of the dispatch packages for the destination.
-
#get_destination_dispatches(destination_id, opts = {}) ⇒ DispatchListSchema
Get a list of a Destination’s Dispatches Returns a list of dispatches belonging to the destination.
-
#get_destination_dispatches_with_http_info(destination_id, opts = {}) ⇒ Array<(DispatchListSchema, Fixnum, Hash)>
Get a list of a Destination's Dispatches Returns a list of dispatches belonging to the destination.
-
#get_destination_hash_user_info(destination_id, opts = {}) ⇒ EnabledSchema
Get user PII hashing status for a Destination Returns whether or not user PII hashing is enabled for the destination.
-
#get_destination_hash_user_info_with_http_info(destination_id, opts = {}) ⇒ Array<(EnabledSchema, Fixnum, Hash)>
Get user PII hashing status for a Destination Returns whether or not user PII hashing is enabled for the destination.
-
#get_destination_tags(destination_id, opts = {}) ⇒ TagListSchema
Get tags for a Destination Returns the tags for the destination.
-
#get_destination_tags_with_http_info(destination_id, opts = {}) ⇒ Array<(TagListSchema, Fixnum, Hash)>
Get tags for a Destination Returns the tags for the destination.
-
#get_destination_with_http_info(destination_id, opts = {}) ⇒ Array<(DestinationSchema, Fixnum, Hash)>
Get detailed information about a Destination Returns detailed information about the destination.
-
#get_destinations(opts = {}) ⇒ DestinationListSchema
Get a list of Destinations Returns a list of destinations.
-
#get_destinations_with_http_info(opts = {}) ⇒ Array<(DestinationListSchema, Fixnum, Hash)>
Get a list of Destinations Returns a list of destinations.
-
#get_dispatch(dispatch_id, opts = {}) ⇒ DispatchSchema
Get detailed information about a Dispatch Returns detailed information about the dispatch.
-
#get_dispatch_enabled(dispatch_id, opts = {}) ⇒ EnabledSchema
Get enabled status of a Dispatch Returns the enabled status for the dispatch.
-
#get_dispatch_enabled_with_http_info(dispatch_id, opts = {}) ⇒ Array<(EnabledSchema, Fixnum, Hash)>
Get enabled status of a Dispatch Returns the enabled status for the dispatch.
-
#get_dispatch_hash_user_info(dispatch_id, opts = {}) ⇒ EnabledSchema
Get user PII hashing status for a Dispatch Returns whether or not user PII hashing is enabled for the dispatch.
-
#get_dispatch_hash_user_info_with_http_info(dispatch_id, opts = {}) ⇒ Array<(EnabledSchema, Fixnum, Hash)>
Get user PII hashing status for a Dispatch Returns whether or not user PII hashing is enabled for the dispatch.
-
#get_dispatch_registration_count(dispatch_id, opts = {}) ⇒ DispatchRegistrationCountSchema
Get registration count for a Dispatch Returns the registration count for the dispatch, as well as the date and time of the last count reset, if any.
-
#get_dispatch_registration_count_with_http_info(dispatch_id, opts = {}) ⇒ Array<(DispatchRegistrationCountSchema, Fixnum, Hash)>
Get registration count for a Dispatch Returns the registration count for the dispatch, as well as the date and time of the last count reset, if any.
-
#get_dispatch_tags(dispatch_id, opts = {}) ⇒ TagListSchema
Get tags for a Dispatch Returns the tags for the dispatch.
-
#get_dispatch_tags_with_http_info(dispatch_id, opts = {}) ⇒ Array<(TagListSchema, Fixnum, Hash)>
Get tags for a Dispatch Returns the tags for the dispatch.
-
#get_dispatch_with_http_info(dispatch_id, opts = {}) ⇒ Array<(DispatchSchema, Fixnum, Hash)>
Get detailed information about a Dispatch Returns detailed information about the dispatch.
-
#get_dispatch_zip(dispatch_id, opts = {}) ⇒ File
Download a zip package for a Dispatch Downloads a zip package for the dispatch.
-
#get_dispatch_zip_with_http_info(dispatch_id, opts = {}) ⇒ Array<(File, Fixnum, Hash)>
Download a zip package for a Dispatch Downloads a zip package for the dispatch.
-
#get_dispatches(opts = {}) ⇒ DispatchListSchema
Get a list of Dispatches Returns a list of dispatches.
-
#get_dispatches_with_http_info(opts = {}) ⇒ Array<(DispatchListSchema, Fixnum, Hash)>
Get a list of Dispatches Returns a list of dispatches.
-
#get_lti_dispatch(dispatch_id, opts = {}) ⇒ DispatchLtiInfoSchema
Get the information necessary to launch this dispatch using the IMS LTI 1.1 specification.
-
#get_lti_dispatch_with_http_info(dispatch_id, opts = {}) ⇒ Array<(DispatchLtiInfoSchema, Fixnum, Hash)>
Get the information necessary to launch this dispatch using the IMS LTI 1.1 specification.
-
#initialize(api_client = ApiClient.default) ⇒ DispatchApi
constructor
A new instance of DispatchApi.
-
#put_destination_tags(destination_id, tags, opts = {}) ⇒ nil
Add tags to a Destination Applies the provided tags to the destination.
-
#put_destination_tags_batch(batch, opts = {}) ⇒ nil
Add a group of tags to a group of Destinations Applies all of the provided tags on all of the provided destinations.
-
#put_destination_tags_batch_with_http_info(batch, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Add a group of tags to a group of Destinations Applies all of the provided tags on all of the provided destinations.
-
#put_destination_tags_with_http_info(destination_id, tags, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Add tags to a Destination Applies the provided tags to the destination.
-
#put_dispatch_tags(dispatch_id, tags, opts = {}) ⇒ nil
Add tags to a Dispatch Applies the provided tags to the dispatch.
-
#put_dispatch_tags_batch(batch, opts = {}) ⇒ nil
Add a group of tags to a group of Dispatches Applies all of the provided tags on all of the provided dispatches.
-
#put_dispatch_tags_batch_with_http_info(batch, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Add a group of tags to a group of Dispatches Applies all of the provided tags on all of the provided dispatches.
-
#put_dispatch_tags_with_http_info(dispatch_id, tags, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Add tags to a Dispatch Applies the provided tags to the dispatch.
-
#reset_destination_dispatch_registration_count(destination_id, opts = {}) ⇒ nil
Reset registration counts for a Destination’s Dispatches Clears the registration count for all dispatches distributed to the destination.
-
#reset_destination_dispatch_registration_count_with_http_info(destination_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Reset registration counts for a Destination's Dispatches Clears the registration count for all dispatches distributed to the destination.
-
#reset_dispatch_registration_count(dispatch_id, opts = {}) ⇒ nil
Reset registration count for a Dispatch Clears the registration count for the dispatch.
-
#reset_dispatch_registration_count_with_http_info(dispatch_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Reset registration count for a Dispatch Clears the registration count for the dispatch.
-
#set_destination(destination_id, destination, opts = {}) ⇒ nil
Create or update a Destination Creates or updates information about the destination.
-
#set_destination_dispatch_enabled(destination_id, enabled, opts = {}) ⇒ nil
Update enabled status for a Destination’s Dispatches Updates the enabled status for all dispatches distributed to the destination.
-
#set_destination_dispatch_enabled_with_http_info(destination_id, enabled, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update enabled status for a Destination's Dispatches Updates the enabled status for all dispatches distributed to the destination.
-
#set_destination_with_http_info(destination_id, destination, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Create or update a Destination Creates or updates information about the destination.
-
#set_dispatch_enabled(dispatch_id, enabled, opts = {}) ⇒ nil
Update enabled status for a Dispatch Updates the enabled status for the dispatch.
-
#set_dispatch_enabled_with_http_info(dispatch_id, enabled, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update enabled status for a Dispatch Updates the enabled status for the dispatch.
-
#update_destination_hash_user_info(destination_id, enabled, opts = {}) ⇒ nil
Update user PII hashing status for a Destination Updates user PII hashing status for the destination.
-
#update_destination_hash_user_info_with_http_info(destination_id, enabled, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update user PII hashing status for a Destination Updates user PII hashing status for the destination.
-
#update_dispatch(dispatch_id, dispatch_properties, opts = {}) ⇒ nil
Update information about a Dispatch Updates information about the dispatch, such as the expiration date and registration cap.
-
#update_dispatch_hash_user_info(dispatch_id, enabled, opts = {}) ⇒ nil
Update user PII hashing status for a Dispatch Updates user PII hashing status for the dispatch.
-
#update_dispatch_hash_user_info_with_http_info(dispatch_id, enabled, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update user PII hashing status for a Dispatch Updates user PII hashing status for the dispatch.
-
#update_dispatch_with_http_info(dispatch_id, dispatch_properties, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update information about a Dispatch Updates information about the dispatch, such as the expiration date and registration cap.
-
#update_dispatches(dispatch_properties, opts = {}) ⇒ nil
Update a group of Dispatches Updates information about a group of dispatches, such as registration cap, expiration date, and postback information.
-
#update_dispatches_with_http_info(dispatch_properties, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update a group of Dispatches Updates information about a group of dispatches, such as registration cap, expiration date, and postback information.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ DispatchApi
Returns a new instance of DispatchApi.
19 20 21 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#create_destinations(destinations_list, opts = {}) ⇒ nil
Create a group of Destinations Creates a group of destinations. A destination is a label used to identify an entity outside of SCORM Cloud, such as an LMS. Used in conjunction with dispatches to provide access control mechanisms for the courses distributed to the destination.
27 28 29 30 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 27 def create_destinations(destinations_list, opts = {}) create_destinations_with_http_info(destinations_list, opts) nil end |
#create_destinations_with_http_info(destinations_list, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Create a group of Destinations Creates a group of destinations. A destination is a label used to identify an entity outside of SCORM Cloud, such as an LMS. Used in conjunction with dispatches to provide access control mechanisms for the courses distributed to the destination.
37 38 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 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 37 def create_destinations_with_http_info(destinations_list, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.create_destinations ...' end # verify the required parameter 'destinations_list' is set if destinations_list.nil? fail ArgumentError, "Missing the required parameter 'destinations_list' when calling DispatchApi.create_destinations" end # resource path local_var_path = '/dispatch/destinations' # 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(destinations_list) 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: DispatchApi#create_destinations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_dispatches(dispatch_list, opts = {}) ⇒ nil
Create a group of Dispatches Creates a group of dispatches. Dispatches are the connection between a course and a destination. A dispatch zip package is a distributable course stub which, upon launch in a third-party LMS, will reference and launch the underlying course in SCORM Cloud. As an extension, dispatches allow for limiting access control even after the zip file has been given to the destination. >Caution: >Only one dispatch can exist for a given course-destination combination. If calling this method with the same course and destination supplied, the old one will be loaded for modification. An exception to this is if a dispatchId is passed in the body, the request will fail with a 400 response warning that the dispatch already exists. This is to prevent confusion over which dispatchId is to be used in future requests.
80 81 82 83 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 80 def create_dispatches(dispatch_list, opts = {}) create_dispatches_with_http_info(dispatch_list, opts) nil end |
#create_dispatches_with_http_info(dispatch_list, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Create a group of Dispatches Creates a group of dispatches. Dispatches are the connection between a course and a destination. A dispatch zip package is a distributable course stub which, upon launch in a third-party LMS, will reference and launch the underlying course in SCORM Cloud. As an extension, dispatches allow for limiting access control even after the zip file has been given to the destination. >Caution: >Only one dispatch can exist for a given course-destination combination. If calling this method with the same course and destination supplied, the old one will be loaded for modification. An exception to this is if a dispatchId is passed in the body, the request will fail with a 400 response warning that the dispatch already exists. This is to prevent confusion over which dispatchId is to be used in future requests.
90 91 92 93 94 95 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 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 90 def create_dispatches_with_http_info(dispatch_list, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.create_dispatches ...' end # verify the required parameter 'dispatch_list' is set if dispatch_list.nil? fail ArgumentError, "Missing the required parameter 'dispatch_list' when calling DispatchApi.create_dispatches" end # resource path local_var_path = '/dispatch/dispatches' # 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(dispatch_list) 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: DispatchApi#create_dispatches\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_destination(destination_id, opts = {}) ⇒ nil
Delete a Destination Deletes the specified destination. >Caution: >This will also delete all dispatches belonging to the destination.
133 134 135 136 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 133 def delete_destination(destination_id, opts = {}) delete_destination_with_http_info(destination_id, opts) nil end |
#delete_destination_dispatches(destination_id, opts = {}) ⇒ nil
Delete a Destination’s Dispatches Deletes all the dispatches from the destination. >Caution: >This will invalidate any existing dispatch packages, rendering them unlaunchable.
186 187 188 189 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 186 def delete_destination_dispatches(destination_id, opts = {}) delete_destination_dispatches_with_http_info(destination_id, opts) nil end |
#delete_destination_dispatches_with_http_info(destination_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a Destination's Dispatches Deletes all the dispatches from the destination. >Caution: >This will invalidate any existing dispatch packages, rendering them unlaunchable.
196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 196 def delete_destination_dispatches_with_http_info(destination_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.delete_destination_dispatches ...' end # verify the required parameter 'destination_id' is set if destination_id.nil? fail ArgumentError, "Missing the required parameter 'destination_id' when calling DispatchApi.delete_destination_dispatches" end # resource path local_var_path = '/dispatch/destinations/{destinationId}/dispatches'.sub('{' + 'destinationId' + '}', destination_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_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: DispatchApi#delete_destination_dispatches\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_destination_tags(destination_id, tags, opts = {}) ⇒ nil
Delete tags from a Destination Deletes the specified tags from the destination. Deleting tags that do not exist will still result in a success.
240 241 242 243 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 240 def (destination_id, , opts = {}) (destination_id, , opts) nil end |
#delete_destination_tags_with_http_info(destination_id, tags, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete tags from a Destination Deletes the specified tags from the destination. Deleting tags that do not exist will still result in a success.
251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 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 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 251 def (destination_id, , opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.delete_destination_tags ...' end # verify the required parameter 'destination_id' is set if destination_id.nil? fail ArgumentError, "Missing the required parameter 'destination_id' when calling DispatchApi.delete_destination_tags" end # verify the required parameter 'tags' is set if .nil? fail ArgumentError, "Missing the required parameter 'tags' when calling DispatchApi.delete_destination_tags" end # resource path local_var_path = '/dispatch/destinations/{destinationId}/tags'.sub('{' + 'destinationId' + '}', destination_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() 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: DispatchApi#delete_destination_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_destination_with_http_info(destination_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a Destination Deletes the specified destination. >Caution: >This will also delete all dispatches belonging to the destination.
143 144 145 146 147 148 149 150 151 152 153 154 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 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 143 def delete_destination_with_http_info(destination_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.delete_destination ...' end # verify the required parameter 'destination_id' is set if destination_id.nil? fail ArgumentError, "Missing the required parameter 'destination_id' when calling DispatchApi.delete_destination" end # resource path local_var_path = '/dispatch/destinations/{destinationId}'.sub('{' + 'destinationId' + '}', destination_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_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: DispatchApi#delete_destination\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_dispatch(dispatch_id, opts = {}) ⇒ nil
Delete a Dispatch Deletes the specified dispatch. >Caution: >This will invalidate any existing dispatch packages, rendering them unlaunchable.
298 299 300 301 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 298 def delete_dispatch(dispatch_id, opts = {}) delete_dispatch_with_http_info(dispatch_id, opts) nil end |
#delete_dispatch_postback_info(dispatch_id, opts = {}) ⇒ nil
Delete postback information from a Dispatch Clears the postback settings from the dispatch. This causes the postback settings to inherit a value from a higher level (e.g. application). If there is no setting at the application level, this will disable postbacks for the dispatch.
351 352 353 354 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 351 def delete_dispatch_postback_info(dispatch_id, opts = {}) delete_dispatch_postback_info_with_http_info(dispatch_id, opts) nil end |
#delete_dispatch_postback_info_with_http_info(dispatch_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete postback information from a Dispatch Clears the postback settings from the dispatch. This causes the postback settings to inherit a value from a higher level (e.g. application). If there is no setting at the application level, this will disable postbacks for the dispatch.
361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 361 def delete_dispatch_postback_info_with_http_info(dispatch_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.delete_dispatch_postback_info ...' end # verify the required parameter 'dispatch_id' is set if dispatch_id.nil? fail ArgumentError, "Missing the required parameter 'dispatch_id' when calling DispatchApi.delete_dispatch_postback_info" end # resource path local_var_path = '/dispatch/dispatches/{dispatchId}/postback'.sub('{' + 'dispatchId' + '}', dispatch_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_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: DispatchApi#delete_dispatch_postback_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_dispatch_tags(dispatch_id, tags, opts = {}) ⇒ nil
Delete tags from a Dispatch Deletes the specified tags from the dispatch. Deleting tags that do not exist will still result in a success.
405 406 407 408 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 405 def (dispatch_id, , opts = {}) (dispatch_id, , opts) nil end |
#delete_dispatch_tags_with_http_info(dispatch_id, tags, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete tags from a Dispatch Deletes the specified tags from the dispatch. Deleting tags that do not exist will still result in a success.
416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 416 def (dispatch_id, , opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.delete_dispatch_tags ...' end # verify the required parameter 'dispatch_id' is set if dispatch_id.nil? fail ArgumentError, "Missing the required parameter 'dispatch_id' when calling DispatchApi.delete_dispatch_tags" end # verify the required parameter 'tags' is set if .nil? fail ArgumentError, "Missing the required parameter 'tags' when calling DispatchApi.delete_dispatch_tags" end # resource path local_var_path = '/dispatch/dispatches/{dispatchId}/tags'.sub('{' + 'dispatchId' + '}', dispatch_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() 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: DispatchApi#delete_dispatch_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_dispatch_with_http_info(dispatch_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a Dispatch Deletes the specified dispatch. >Caution: >This will invalidate any existing dispatch packages, rendering them unlaunchable.
308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 308 def delete_dispatch_with_http_info(dispatch_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.delete_dispatch ...' end # verify the required parameter 'dispatch_id' is set if dispatch_id.nil? fail ArgumentError, "Missing the required parameter 'dispatch_id' when calling DispatchApi.delete_dispatch" end # resource path local_var_path = '/dispatch/dispatches/{dispatchId}'.sub('{' + 'dispatchId' + '}', dispatch_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_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: DispatchApi#delete_dispatch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_dispatches(opts = {}) ⇒ nil
Delete a group of Dispatches Deletes the specified group of dispatches. Can be filtered using the request parameters to provide a subset of results. >Caution: >This will invalidate any existing dispatch packages, rendering them unlaunchable. >Note: >One of the filter parameters (i.e. ‘courseId`, `since`/`until`, `tags`, or `filter`) needs to be provided. This is to prevent accidental deletion of all dispatches. If you do wish to update all dispatches, try setting the since parameter to a value prior to the creation of any dispatches. >Info: >If using one of our client libraries, refer to its README for additional information on how to work with the `X-Total-Count` header.
469 470 471 472 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 469 def delete_dispatches(opts = {}) delete_dispatches_with_http_info(opts) nil end |
#delete_dispatches_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a group of Dispatches Deletes the specified group of dispatches. Can be filtered using the request parameters to provide a subset of results. >Caution: >This will invalidate any existing dispatch packages, rendering them unlaunchable. >Note: >One of the filter parameters (i.e. `courseId`, `since`/`until`, `tags`, or `filter`) needs to be provided. This is to prevent accidental deletion of all dispatches. If you do wish to update all dispatches, try setting the since parameter to a value prior to the creation of any dispatches. >Info: >If using one of our client libraries, refer to its README for additional information on how to work with the `X-Total-Count` header.
485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 485 def delete_dispatches_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.delete_dispatches ...' end # resource path local_var_path = '/dispatch/dispatches' # query parameters query_params = {} query_params[:'courseId'] = opts[:'course_id'] if !opts[:'course_id'].nil? 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[:'tags'] = @api_client.build_collection_param(opts[:'tags'], :csv) if !opts[:'tags'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'filterBy'] = opts[:'filter_by'] if !opts[:'filter_by'].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: DispatchApi#delete_dispatches\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#enable_registration_instancing(destination_id, enabled, opts = {}) ⇒ nil
Update registration instancing status for a Destination’s Dispatches Updates the restration instancing status for all dispatches distributed to the destination. Registration instancing is the default for dispatches, in order to support versioning of dispatches. A small portion of users may experience duplicate registrations with content dispatched to some LMS platforms. If you happen to be dispatching content to an LMS with this issue, disabling registration instancing here will resolve the problems. However, dispatch versioning will also be disabled.
532 533 534 535 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 532 def enable_registration_instancing(destination_id, enabled, opts = {}) enable_registration_instancing_with_http_info(destination_id, enabled, opts) nil end |
#enable_registration_instancing_with_http_info(destination_id, enabled, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update registration instancing status for a Destination's Dispatches Updates the restration instancing status for all dispatches distributed to the destination. Registration instancing is the default for dispatches, in order to support versioning of dispatches. A small portion of users may experience duplicate registrations with content dispatched to some LMS platforms. If you happen to be dispatching content to an LMS with this issue, disabling registration instancing here will resolve the problems. However, dispatch versioning will also be disabled.
543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 543 def enable_registration_instancing_with_http_info(destination_id, enabled, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.enable_registration_instancing ...' end # verify the required parameter 'destination_id' is set if destination_id.nil? fail ArgumentError, "Missing the required parameter 'destination_id' when calling DispatchApi.enable_registration_instancing" end # verify the required parameter 'enabled' is set if enabled.nil? fail ArgumentError, "Missing the required parameter 'enabled' when calling DispatchApi.enable_registration_instancing" end # resource path local_var_path = '/dispatch/destinations/{destinationId}/dispatches/registrationInstancing'.sub('{' + 'destinationId' + '}', destination_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(enabled) 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: DispatchApi#enable_registration_instancing\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_destination(destination_id, opts = {}) ⇒ DestinationSchema
Get detailed information about a Destination Returns detailed information about the destination. This includes name, tags, and launchAuth information.
590 591 592 593 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 590 def get_destination(destination_id, opts = {}) data, _status_code, _headers = get_destination_with_http_info(destination_id, opts) data end |
#get_destination_dispatch_registration_count(destination_id, opts = {}) ⇒ IntegerResultSchema
Get registration count for a Destination’s Dispatches Returns the registration count for all dispatches distributed to the destination. >Note: >The count here is a convenience counter. Since it has the capability of being reset, it may not match the actual billed registration count for a dispatch.
644 645 646 647 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 644 def get_destination_dispatch_registration_count(destination_id, opts = {}) data, _status_code, _headers = get_destination_dispatch_registration_count_with_http_info(destination_id, opts) data end |
#get_destination_dispatch_registration_count_with_http_info(destination_id, opts = {}) ⇒ Array<(IntegerResultSchema, Fixnum, Hash)>
Get registration count for a Destination's Dispatches Returns the registration count for all dispatches distributed to the destination. >Note: >The count here is a convenience counter. Since it has the capability of being reset, it may not match the actual billed registration count for a dispatch.
654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 654 def get_destination_dispatch_registration_count_with_http_info(destination_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.get_destination_dispatch_registration_count ...' end # verify the required parameter 'destination_id' is set if destination_id.nil? fail ArgumentError, "Missing the required parameter 'destination_id' when calling DispatchApi.get_destination_dispatch_registration_count" end # resource path local_var_path = '/dispatch/destinations/{destinationId}/dispatches/registrationCount'.sub('{' + 'destinationId' + '}', destination_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_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 => 'IntegerResultSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: DispatchApi#get_destination_dispatch_registration_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_destination_dispatch_zip(destination_id, opts = {}) ⇒ File
Download a zip file for a Destination’s Dispatches Downloads a zip file containing all of the dispatch packages for the destination. A dispatch zip package is a distributable course stub which, upon launch in a third-party LMS, will reference and launch the underlying course in SCORM Cloud.
701 702 703 704 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 701 def get_destination_dispatch_zip(destination_id, opts = {}) data, _status_code, _headers = get_destination_dispatch_zip_with_http_info(destination_id, opts) data end |
#get_destination_dispatch_zip_with_http_info(destination_id, opts = {}) ⇒ Array<(File, Fixnum, Hash)>
Download a zip file for a Destination's Dispatches Downloads a zip file containing all of the dispatch packages for the destination. A dispatch zip package is a distributable course stub which, upon launch in a third-party LMS, will reference and launch the underlying course in SCORM Cloud.
714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 714 def get_destination_dispatch_zip_with_http_info(destination_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.get_destination_dispatch_zip ...' end # verify the required parameter 'destination_id' is set if destination_id.nil? fail ArgumentError, "Missing the required parameter 'destination_id' when calling DispatchApi.get_destination_dispatch_zip" end # resource path local_var_path = '/dispatch/destinations/{destinationId}/dispatches/zip'.sub('{' + 'destinationId' + '}', destination_id.to_s) # query parameters query_params = {} query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil? query_params[:'cssUrl'] = opts[:'css_url'] if !opts[:'css_url'].nil? query_params[:'tags'] = @api_client.build_collection_param(opts[:'tags'], :csv) if !opts[:'tags'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/zip']) # 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 => 'File') if @api_client.config.debugging @api_client.config.logger.debug "API called: DispatchApi#get_destination_dispatch_zip\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_destination_dispatches(destination_id, opts = {}) ⇒ DispatchListSchema
Get a list of a Destination’s Dispatches Returns a list of dispatches belonging to the destination. Can be filtered using the request parameters to provide a subset of results. Using the ‘courseId` filter should only ever yield 0 or 1 results, as a dispatch is the intersection of a course and a destination. This can be useful for identifying if a certain course is dispatched to the destination. >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.
770 771 772 773 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 770 def get_destination_dispatches(destination_id, opts = {}) data, _status_code, _headers = get_destination_dispatches_with_http_info(destination_id, opts) data end |
#get_destination_dispatches_with_http_info(destination_id, opts = {}) ⇒ Array<(DispatchListSchema, Fixnum, Hash)>
Get a list of a Destination's Dispatches Returns a list of dispatches belonging to the destination. Can be filtered using the request parameters to provide a subset of results. Using the `courseId` filter should only ever yield 0 or 1 results, as a dispatch is the intersection of a course and a destination. This can be useful for identifying if a certain course is dispatched to the destination. >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.
789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 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 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 789 def get_destination_dispatches_with_http_info(destination_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.get_destination_dispatches ...' end # verify the required parameter 'destination_id' is set if destination_id.nil? fail ArgumentError, "Missing the required parameter 'destination_id' when calling DispatchApi.get_destination_dispatches" end # resource path local_var_path = '/dispatch/destinations/{destinationId}/dispatches'.sub('{' + 'destinationId' + '}', destination_id.to_s) # query parameters query_params = {} query_params[:'courseId'] = opts[:'course_id'] if !opts[:'course_id'].nil? 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[:'tags'] = @api_client.build_collection_param(opts[:'tags'], :csv) if !opts[:'tags'].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? # 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 => 'DispatchListSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: DispatchApi#get_destination_dispatches\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_destination_hash_user_info(destination_id, opts = {}) ⇒ EnabledSchema
Get user PII hashing status for a Destination Returns whether or not user PII hashing is enabled for the destination. Enabling it will cause all user PII to be hashed. Hashing PII will anonymize the learner data from the dispatched course. This will make looking up specific details about a learner difficult.
842 843 844 845 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 842 def get_destination_hash_user_info(destination_id, opts = {}) data, _status_code, _headers = get_destination_hash_user_info_with_http_info(destination_id, opts) data end |
#get_destination_hash_user_info_with_http_info(destination_id, opts = {}) ⇒ Array<(EnabledSchema, Fixnum, Hash)>
Get user PII hashing status for a Destination Returns whether or not user PII hashing is enabled for the destination. Enabling it will cause all user PII to be hashed. Hashing PII will anonymize the learner data from the dispatched course. This will make looking up specific details about a learner difficult.
852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 852 def get_destination_hash_user_info_with_http_info(destination_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.get_destination_hash_user_info ...' end # verify the required parameter 'destination_id' is set if destination_id.nil? fail ArgumentError, "Missing the required parameter 'destination_id' when calling DispatchApi.get_destination_hash_user_info" end # resource path local_var_path = '/dispatch/destinations/{destinationId}/dispatches/hashUserInfo'.sub('{' + 'destinationId' + '}', destination_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_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 => 'EnabledSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: DispatchApi#get_destination_hash_user_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_destination_tags(destination_id, opts = {}) ⇒ TagListSchema
Get tags for a Destination Returns the tags for the destination.
896 897 898 899 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 896 def (destination_id, opts = {}) data, _status_code, _headers = (destination_id, opts) data end |
#get_destination_tags_with_http_info(destination_id, opts = {}) ⇒ Array<(TagListSchema, Fixnum, Hash)>
Get tags for a Destination Returns the tags for the destination.
906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 906 def (destination_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.get_destination_tags ...' end # verify the required parameter 'destination_id' is set if destination_id.nil? fail ArgumentError, "Missing the required parameter 'destination_id' when calling DispatchApi.get_destination_tags" end # resource path local_var_path = '/dispatch/destinations/{destinationId}/tags'.sub('{' + 'destinationId' + '}', destination_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_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 => 'TagListSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: DispatchApi#get_destination_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_destination_with_http_info(destination_id, opts = {}) ⇒ Array<(DestinationSchema, Fixnum, Hash)>
Get detailed information about a Destination Returns detailed information about the destination. This includes name, tags, and launchAuth information.
600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 600 def get_destination_with_http_info(destination_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.get_destination ...' end # verify the required parameter 'destination_id' is set if destination_id.nil? fail ArgumentError, "Missing the required parameter 'destination_id' when calling DispatchApi.get_destination" end # resource path local_var_path = '/dispatch/destinations/{destinationId}'.sub('{' + 'destinationId' + '}', destination_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_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 => 'DestinationSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: DispatchApi#get_destination\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_destinations(opts = {}) ⇒ DestinationListSchema
Get a list of Destinations Returns a list of destinations. 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.
958 959 960 961 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 958 def get_destinations(opts = {}) data, _status_code, _headers = get_destinations_with_http_info(opts) data end |
#get_destinations_with_http_info(opts = {}) ⇒ Array<(DestinationListSchema, Fixnum, Hash)>
Get a list of Destinations Returns a list of destinations. 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.
976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 976 def get_destinations_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.get_destinations ...' end # resource path local_var_path = '/dispatch/destinations' # query parameters query_params = {} query_params[:'courseId'] = opts[:'course_id'] if !opts[:'course_id'].nil? 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[:'tags'] = @api_client.build_collection_param(opts[:'tags'], :csv) if !opts[:'tags'].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? # 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 => 'DestinationListSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: DispatchApi#get_destinations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_dispatch(dispatch_id, opts = {}) ⇒ DispatchSchema
Get detailed information about a Dispatch Returns detailed information about the dispatch. This includes destination and course IDs, as well as registration count.
1025 1026 1027 1028 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1025 def get_dispatch(dispatch_id, opts = {}) data, _status_code, _headers = get_dispatch_with_http_info(dispatch_id, opts) data end |
#get_dispatch_enabled(dispatch_id, opts = {}) ⇒ EnabledSchema
Get enabled status of a Dispatch Returns the enabled status for the dispatch. This is an access control measure allowing you to turn access to a previously distributed dispatch packages on or off.
1079 1080 1081 1082 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1079 def get_dispatch_enabled(dispatch_id, opts = {}) data, _status_code, _headers = get_dispatch_enabled_with_http_info(dispatch_id, opts) data end |
#get_dispatch_enabled_with_http_info(dispatch_id, opts = {}) ⇒ Array<(EnabledSchema, Fixnum, Hash)>
Get enabled status of a Dispatch Returns the enabled status for the dispatch. This is an access control measure allowing you to turn access to a previously distributed dispatch packages on or off.
1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1089 def get_dispatch_enabled_with_http_info(dispatch_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.get_dispatch_enabled ...' end # verify the required parameter 'dispatch_id' is set if dispatch_id.nil? fail ArgumentError, "Missing the required parameter 'dispatch_id' when calling DispatchApi.get_dispatch_enabled" end # resource path local_var_path = '/dispatch/dispatches/{dispatchId}/enabled'.sub('{' + 'dispatchId' + '}', dispatch_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_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 => 'EnabledSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: DispatchApi#get_dispatch_enabled\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_dispatch_hash_user_info(dispatch_id, opts = {}) ⇒ EnabledSchema
Get user PII hashing status for a Dispatch Returns whether or not user PII hashing is enabled for the dispatch. Enabling it will cause all user PII to be hashed. Hashing PII will anonymize the learner data from the dispatched course. This will make looking up specific details about a learner difficult.
1133 1134 1135 1136 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1133 def get_dispatch_hash_user_info(dispatch_id, opts = {}) data, _status_code, _headers = get_dispatch_hash_user_info_with_http_info(dispatch_id, opts) data end |
#get_dispatch_hash_user_info_with_http_info(dispatch_id, opts = {}) ⇒ Array<(EnabledSchema, Fixnum, Hash)>
Get user PII hashing status for a Dispatch Returns whether or not user PII hashing is enabled for the dispatch. Enabling it will cause all user PII to be hashed. Hashing PII will anonymize the learner data from the dispatched course. This will make looking up specific details about a learner difficult.
1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1143 def get_dispatch_hash_user_info_with_http_info(dispatch_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.get_dispatch_hash_user_info ...' end # verify the required parameter 'dispatch_id' is set if dispatch_id.nil? fail ArgumentError, "Missing the required parameter 'dispatch_id' when calling DispatchApi.get_dispatch_hash_user_info" end # resource path local_var_path = '/dispatch/dispatches/{dispatchId}/hashUserInfo'.sub('{' + 'dispatchId' + '}', dispatch_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_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 => 'EnabledSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: DispatchApi#get_dispatch_hash_user_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_dispatch_registration_count(dispatch_id, opts = {}) ⇒ DispatchRegistrationCountSchema
Get registration count for a Dispatch Returns the registration count for the dispatch, as well as the date and time of the last count reset, if any. >Note: >The count here is a convenience counter. Since it has the capability of being reset, it may not match the actual billed registration count for a dispatch.
1187 1188 1189 1190 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1187 def get_dispatch_registration_count(dispatch_id, opts = {}) data, _status_code, _headers = get_dispatch_registration_count_with_http_info(dispatch_id, opts) data end |
#get_dispatch_registration_count_with_http_info(dispatch_id, opts = {}) ⇒ Array<(DispatchRegistrationCountSchema, Fixnum, Hash)>
Get registration count for a Dispatch Returns the registration count for the dispatch, as well as the date and time of the last count reset, if any. >Note: >The count here is a convenience counter. Since it has the capability of being reset, it may not match the actual billed registration count for a dispatch.
1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1197 def get_dispatch_registration_count_with_http_info(dispatch_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.get_dispatch_registration_count ...' end # verify the required parameter 'dispatch_id' is set if dispatch_id.nil? fail ArgumentError, "Missing the required parameter 'dispatch_id' when calling DispatchApi.get_dispatch_registration_count" end # resource path local_var_path = '/dispatch/dispatches/{dispatchId}/registrationCount'.sub('{' + 'dispatchId' + '}', dispatch_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_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 => 'DispatchRegistrationCountSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: DispatchApi#get_dispatch_registration_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_dispatch_tags(dispatch_id, opts = {}) ⇒ TagListSchema
Get tags for a Dispatch Returns the tags for the dispatch.
1241 1242 1243 1244 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1241 def (dispatch_id, opts = {}) data, _status_code, _headers = (dispatch_id, opts) data end |
#get_dispatch_tags_with_http_info(dispatch_id, opts = {}) ⇒ Array<(TagListSchema, Fixnum, Hash)>
Get tags for a Dispatch Returns the tags for the dispatch.
1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1251 def (dispatch_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.get_dispatch_tags ...' end # verify the required parameter 'dispatch_id' is set if dispatch_id.nil? fail ArgumentError, "Missing the required parameter 'dispatch_id' when calling DispatchApi.get_dispatch_tags" end # resource path local_var_path = '/dispatch/dispatches/{dispatchId}/tags'.sub('{' + 'dispatchId' + '}', dispatch_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_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 => 'TagListSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: DispatchApi#get_dispatch_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_dispatch_with_http_info(dispatch_id, opts = {}) ⇒ Array<(DispatchSchema, Fixnum, Hash)>
Get detailed information about a Dispatch Returns detailed information about the dispatch. This includes destination and course IDs, as well as registration count.
1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1035 def get_dispatch_with_http_info(dispatch_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.get_dispatch ...' end # verify the required parameter 'dispatch_id' is set if dispatch_id.nil? fail ArgumentError, "Missing the required parameter 'dispatch_id' when calling DispatchApi.get_dispatch" end # resource path local_var_path = '/dispatch/dispatches/{dispatchId}'.sub('{' + 'dispatchId' + '}', dispatch_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_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 => 'DispatchSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: DispatchApi#get_dispatch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_dispatch_zip(dispatch_id, opts = {}) ⇒ File
Download a zip package for a Dispatch Downloads a zip package for the dispatch. A dispatch zip package is a distributable course stub which, upon launch in a third-party LMS, will reference and launch the underlying course in SCORM Cloud. As an extension, dispatches allow for limiting access control even after the zip file has been given to the destination.
1297 1298 1299 1300 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1297 def get_dispatch_zip(dispatch_id, opts = {}) data, _status_code, _headers = get_dispatch_zip_with_http_info(dispatch_id, opts) data end |
#get_dispatch_zip_with_http_info(dispatch_id, opts = {}) ⇒ Array<(File, Fixnum, Hash)>
Download a zip package for a Dispatch Downloads a zip package for the dispatch. A dispatch zip package is a distributable course stub which, upon launch in a third-party LMS, will reference and launch the underlying course in SCORM Cloud. As an extension, dispatches allow for limiting access control even after the zip file has been given to the destination.
1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1309 def get_dispatch_zip_with_http_info(dispatch_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.get_dispatch_zip ...' end # verify the required parameter 'dispatch_id' is set if dispatch_id.nil? fail ArgumentError, "Missing the required parameter 'dispatch_id' when calling DispatchApi.get_dispatch_zip" end # resource path local_var_path = '/dispatch/dispatches/{dispatchId}/zip'.sub('{' + 'dispatchId' + '}', dispatch_id.to_s) # query parameters query_params = {} query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil? query_params[:'cssUrl'] = opts[:'css_url'] if !opts[:'css_url'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/zip']) # 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 => 'File') if @api_client.config.debugging @api_client.config.logger.debug "API called: DispatchApi#get_dispatch_zip\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_dispatches(opts = {}) ⇒ DispatchListSchema
Get a list of Dispatches Returns a list of dispatches. Can be filtered using the request parameters to provide a subset of results. Using the ‘courseId` filter will allow for viewing which destinations the course has been dispatched to. >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.
1363 1364 1365 1366 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1363 def get_dispatches(opts = {}) data, _status_code, _headers = get_dispatches_with_http_info(opts) data end |
#get_dispatches_with_http_info(opts = {}) ⇒ Array<(DispatchListSchema, Fixnum, Hash)>
Get a list of Dispatches Returns a list of dispatches. Can be filtered using the request parameters to provide a subset of results. Using the `courseId` filter will allow for viewing which destinations the course has been dispatched to. >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.
1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1381 def get_dispatches_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.get_dispatches ...' end # resource path local_var_path = '/dispatch/dispatches' # query parameters query_params = {} query_params[:'courseId'] = opts[:'course_id'] if !opts[:'course_id'].nil? 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[:'tags'] = @api_client.build_collection_param(opts[:'tags'], :csv) if !opts[:'tags'].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? # 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 => 'DispatchListSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: DispatchApi#get_dispatches\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_lti_dispatch(dispatch_id, opts = {}) ⇒ DispatchLtiInfoSchema
Get the information necessary to launch this dispatch using the IMS LTI 1.1 specification.
1429 1430 1431 1432 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1429 def get_lti_dispatch(dispatch_id, opts = {}) data, _status_code, _headers = get_lti_dispatch_with_http_info(dispatch_id, opts) data end |
#get_lti_dispatch_with_http_info(dispatch_id, opts = {}) ⇒ Array<(DispatchLtiInfoSchema, Fixnum, Hash)>
Get the information necessary to launch this dispatch using the IMS LTI 1.1 specification.
1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1438 def get_lti_dispatch_with_http_info(dispatch_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.get_lti_dispatch ...' end # verify the required parameter 'dispatch_id' is set if dispatch_id.nil? fail ArgumentError, "Missing the required parameter 'dispatch_id' when calling DispatchApi.get_lti_dispatch" end # resource path local_var_path = '/dispatch/dispatches/{dispatchId}/lti'.sub('{' + 'dispatchId' + '}', dispatch_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_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 => 'DispatchLtiInfoSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: DispatchApi#get_lti_dispatch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#put_destination_tags(destination_id, tags, opts = {}) ⇒ nil
Add tags to a Destination Applies the provided tags to the destination. Tags are used to easily identify resources. Adding tags can enable more refined searches when making calls to certain endpoints (e.g. GetDestinations).
1483 1484 1485 1486 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1483 def (destination_id, , opts = {}) (destination_id, , opts) nil end |
#put_destination_tags_batch(batch, opts = {}) ⇒ nil
Add a group of tags to a group of Destinations Applies all of the provided tags on all of the provided destinations. Tags are used to easily identify resources. Adding tags can enable more refined searches when making calls to certain endpoints (e.g. GetDestinations).
1541 1542 1543 1544 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1541 def (batch, opts = {}) (batch, opts) nil end |
#put_destination_tags_batch_with_http_info(batch, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Add a group of tags to a group of Destinations Applies all of the provided tags on all of the provided destinations. Tags are used to easily identify resources. Adding tags can enable more refined searches when making calls to certain endpoints (e.g. GetDestinations).
1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1551 def (batch, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.put_destination_tags_batch ...' end # verify the required parameter 'batch' is set if batch.nil? fail ArgumentError, "Missing the required parameter 'batch' when calling DispatchApi.put_destination_tags_batch" end # resource path local_var_path = '/dispatch/destinations/tags' # 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(batch) auth_names = ['APP_NORMAL', '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: DispatchApi#put_destination_tags_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#put_destination_tags_with_http_info(destination_id, tags, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Add tags to a Destination Applies the provided tags to the destination. Tags are used to easily identify resources. Adding tags can enable more refined searches when making calls to certain endpoints (e.g. GetDestinations).
1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1494 def (destination_id, , opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.put_destination_tags ...' end # verify the required parameter 'destination_id' is set if destination_id.nil? fail ArgumentError, "Missing the required parameter 'destination_id' when calling DispatchApi.put_destination_tags" end # verify the required parameter 'tags' is set if .nil? fail ArgumentError, "Missing the required parameter 'tags' when calling DispatchApi.put_destination_tags" end # resource path local_var_path = '/dispatch/destinations/{destinationId}/tags'.sub('{' + 'destinationId' + '}', destination_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() auth_names = ['APP_NORMAL', '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: DispatchApi#put_destination_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#put_dispatch_tags(dispatch_id, tags, opts = {}) ⇒ nil
Add tags to a Dispatch Applies the provided tags to the dispatch. Tags are used to easily identify resources. Adding tags can enable more refined searches when making calls to certain endpoints (e.g. GetDispatches).
1595 1596 1597 1598 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1595 def (dispatch_id, , opts = {}) (dispatch_id, , opts) nil end |
#put_dispatch_tags_batch(batch, opts = {}) ⇒ nil
Add a group of tags to a group of Dispatches Applies all of the provided tags on all of the provided dispatches. Tags are used to easily identify resources. Adding tags can enable more refined searches when making calls to certain endpoints (e.g. GetDispatches).
1653 1654 1655 1656 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1653 def (batch, opts = {}) (batch, opts) nil end |
#put_dispatch_tags_batch_with_http_info(batch, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Add a group of tags to a group of Dispatches Applies all of the provided tags on all of the provided dispatches. Tags are used to easily identify resources. Adding tags can enable more refined searches when making calls to certain endpoints (e.g. GetDispatches).
1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1663 def (batch, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.put_dispatch_tags_batch ...' end # verify the required parameter 'batch' is set if batch.nil? fail ArgumentError, "Missing the required parameter 'batch' when calling DispatchApi.put_dispatch_tags_batch" end # resource path local_var_path = '/dispatch/dispatches/tags' # 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(batch) auth_names = ['APP_NORMAL', '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: DispatchApi#put_dispatch_tags_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#put_dispatch_tags_with_http_info(dispatch_id, tags, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Add tags to a Dispatch Applies the provided tags to the dispatch. Tags are used to easily identify resources. Adding tags can enable more refined searches when making calls to certain endpoints (e.g. GetDispatches).
1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1606 def (dispatch_id, , opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.put_dispatch_tags ...' end # verify the required parameter 'dispatch_id' is set if dispatch_id.nil? fail ArgumentError, "Missing the required parameter 'dispatch_id' when calling DispatchApi.put_dispatch_tags" end # verify the required parameter 'tags' is set if .nil? fail ArgumentError, "Missing the required parameter 'tags' when calling DispatchApi.put_dispatch_tags" end # resource path local_var_path = '/dispatch/dispatches/{dispatchId}/tags'.sub('{' + 'dispatchId' + '}', dispatch_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() auth_names = ['APP_NORMAL', '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: DispatchApi#put_dispatch_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#reset_destination_dispatch_registration_count(destination_id, opts = {}) ⇒ nil
Reset registration counts for a Destination’s Dispatches Clears the registration count for all dispatches distributed to the destination. This resets the registration counter on the dispatch itself, but has no effect on the existing registrations. Can be used in situations where the license for the course material has been renewed.
1706 1707 1708 1709 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1706 def reset_destination_dispatch_registration_count(destination_id, opts = {}) reset_destination_dispatch_registration_count_with_http_info(destination_id, opts) nil end |
#reset_destination_dispatch_registration_count_with_http_info(destination_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Reset registration counts for a Destination's Dispatches Clears the registration count for all dispatches distributed to the destination. This resets the registration counter on the dispatch itself, but has no effect on the existing registrations. Can be used in situations where the license for the course material has been renewed.
1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1716 def reset_destination_dispatch_registration_count_with_http_info(destination_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.reset_destination_dispatch_registration_count ...' end # verify the required parameter 'destination_id' is set if destination_id.nil? fail ArgumentError, "Missing the required parameter 'destination_id' when calling DispatchApi.reset_destination_dispatch_registration_count" end # resource path local_var_path = '/dispatch/destinations/{destinationId}/dispatches/registrationCount'.sub('{' + 'destinationId' + '}', destination_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_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: DispatchApi#reset_destination_dispatch_registration_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#reset_dispatch_registration_count(dispatch_id, opts = {}) ⇒ nil
Reset registration count for a Dispatch Clears the registration count for the dispatch. This resets the registration counter on the dispatch itself, but has no effect on the existing registrations. Can be used in situations where the license for the course material has been renewed.
1759 1760 1761 1762 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1759 def reset_dispatch_registration_count(dispatch_id, opts = {}) reset_dispatch_registration_count_with_http_info(dispatch_id, opts) nil end |
#reset_dispatch_registration_count_with_http_info(dispatch_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Reset registration count for a Dispatch Clears the registration count for the dispatch. This resets the registration counter on the dispatch itself, but has no effect on the existing registrations. Can be used in situations where the license for the course material has been renewed.
1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1769 def reset_dispatch_registration_count_with_http_info(dispatch_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.reset_dispatch_registration_count ...' end # verify the required parameter 'dispatch_id' is set if dispatch_id.nil? fail ArgumentError, "Missing the required parameter 'dispatch_id' when calling DispatchApi.reset_dispatch_registration_count" end # resource path local_var_path = '/dispatch/dispatches/{dispatchId}/registrationCount'.sub('{' + 'dispatchId' + '}', dispatch_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_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: DispatchApi#reset_dispatch_registration_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#set_destination(destination_id, destination, opts = {}) ⇒ nil
Create or update a Destination Creates or updates information about the destination. -If the destination is being created, a name should be provided in the DestinationSchema. If one is not present in the request an error will be thrown. -If the destination is instead being updated, only non-null values that are provided will be updated. You may also optionally supply the e-mail address of the user to be associated with this destination. This e-mail address should correspond to a SCORM Cloud user account.
1813 1814 1815 1816 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1813 def set_destination(destination_id, destination, opts = {}) set_destination_with_http_info(destination_id, destination, opts) nil end |
#set_destination_dispatch_enabled(destination_id, enabled, opts = {}) ⇒ nil
Update enabled status for a Destination’s Dispatches Updates the enabled status for all dispatches distributed to the destination. This is an access control measure allowing you to turn access to a previously distributed dispatch packages on or off.
1872 1873 1874 1875 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1872 def set_destination_dispatch_enabled(destination_id, enabled, opts = {}) set_destination_dispatch_enabled_with_http_info(destination_id, enabled, opts) nil end |
#set_destination_dispatch_enabled_with_http_info(destination_id, enabled, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update enabled status for a Destination's Dispatches Updates the enabled status for all dispatches distributed to the destination. This is an access control measure allowing you to turn access to a previously distributed dispatch packages on or off.
1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1883 def set_destination_dispatch_enabled_with_http_info(destination_id, enabled, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.set_destination_dispatch_enabled ...' end # verify the required parameter 'destination_id' is set if destination_id.nil? fail ArgumentError, "Missing the required parameter 'destination_id' when calling DispatchApi.set_destination_dispatch_enabled" end # verify the required parameter 'enabled' is set if enabled.nil? fail ArgumentError, "Missing the required parameter 'enabled' when calling DispatchApi.set_destination_dispatch_enabled" end # resource path local_var_path = '/dispatch/destinations/{destinationId}/dispatches/enabled'.sub('{' + 'destinationId' + '}', destination_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(enabled) 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: DispatchApi#set_destination_dispatch_enabled\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#set_destination_with_http_info(destination_id, destination, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Create or update a Destination Creates or updates information about the destination. -If the destination is being created, a name should be provided in the DestinationSchema. If one is not present in the request an error will be thrown. -If the destination is instead being updated, only non-null values that are provided will be updated. You may also optionally supply the e-mail address of the user to be associated with this destination. This e-mail address should correspond to a SCORM Cloud user account.
1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1824 def set_destination_with_http_info(destination_id, destination, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.set_destination ...' end # verify the required parameter 'destination_id' is set if destination_id.nil? fail ArgumentError, "Missing the required parameter 'destination_id' when calling DispatchApi.set_destination" end # verify the required parameter 'destination' is set if destination.nil? fail ArgumentError, "Missing the required parameter 'destination' when calling DispatchApi.set_destination" end # resource path local_var_path = '/dispatch/destinations/{destinationId}'.sub('{' + 'destinationId' + '}', destination_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(destination) auth_names = ['APP_NORMAL', '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: DispatchApi#set_destination\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#set_dispatch_enabled(dispatch_id, enabled, opts = {}) ⇒ nil
Update enabled status for a Dispatch Updates the enabled status for the dispatch. This is an access control measure allowing you to turn access to a previously distributed dispatch packages on or off.
1931 1932 1933 1934 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1931 def set_dispatch_enabled(dispatch_id, enabled, opts = {}) set_dispatch_enabled_with_http_info(dispatch_id, enabled, opts) nil end |
#set_dispatch_enabled_with_http_info(dispatch_id, enabled, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update enabled status for a Dispatch Updates the enabled status for the dispatch. This is an access control measure allowing you to turn access to a previously distributed dispatch packages on or off.
1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1942 def set_dispatch_enabled_with_http_info(dispatch_id, enabled, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.set_dispatch_enabled ...' end # verify the required parameter 'dispatch_id' is set if dispatch_id.nil? fail ArgumentError, "Missing the required parameter 'dispatch_id' when calling DispatchApi.set_dispatch_enabled" end # verify the required parameter 'enabled' is set if enabled.nil? fail ArgumentError, "Missing the required parameter 'enabled' when calling DispatchApi.set_dispatch_enabled" end # resource path local_var_path = '/dispatch/dispatches/{dispatchId}/enabled'.sub('{' + 'dispatchId' + '}', dispatch_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(enabled) auth_names = ['APP_NORMAL', '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: DispatchApi#set_dispatch_enabled\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_destination_hash_user_info(destination_id, enabled, opts = {}) ⇒ nil
Update user PII hashing status for a Destination Updates user PII hashing status for the destination. Enabling it will cause all user PII to be hashed. Hashing PII will anonymize the learner data from the dispatched course. This will make looking up specific details about a learner difficult.
1990 1991 1992 1993 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 1990 def update_destination_hash_user_info(destination_id, enabled, opts = {}) update_destination_hash_user_info_with_http_info(destination_id, enabled, opts) nil end |
#update_destination_hash_user_info_with_http_info(destination_id, enabled, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update user PII hashing status for a Destination Updates user PII hashing status for the destination. Enabling it will cause all user PII to be hashed. Hashing PII will anonymize the learner data from the dispatched course. This will make looking up specific details about a learner difficult.
2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 2001 def update_destination_hash_user_info_with_http_info(destination_id, enabled, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.update_destination_hash_user_info ...' end # verify the required parameter 'destination_id' is set if destination_id.nil? fail ArgumentError, "Missing the required parameter 'destination_id' when calling DispatchApi.update_destination_hash_user_info" end # verify the required parameter 'enabled' is set if enabled.nil? fail ArgumentError, "Missing the required parameter 'enabled' when calling DispatchApi.update_destination_hash_user_info" end # resource path local_var_path = '/dispatch/destinations/{destinationId}/dispatches/hashUserInfo'.sub('{' + 'destinationId' + '}', destination_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(enabled) auth_names = ['APP_NORMAL', '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: DispatchApi#update_destination_hash_user_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_dispatch(dispatch_id, dispatch_properties, opts = {}) ⇒ nil
Update information about a Dispatch Updates information about the dispatch, such as the expiration date and registration cap. Only non-null values that are provided will be updated.
2049 2050 2051 2052 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 2049 def update_dispatch(dispatch_id, dispatch_properties, opts = {}) update_dispatch_with_http_info(dispatch_id, dispatch_properties, opts) nil end |
#update_dispatch_hash_user_info(dispatch_id, enabled, opts = {}) ⇒ nil
Update user PII hashing status for a Dispatch Updates user PII hashing status for the dispatch. Enabling it will cause all user PII to be hashed. Hashing PII will anonymize the learner data from the dispatched course. This will make looking up specific details about a learner difficult.
2108 2109 2110 2111 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 2108 def update_dispatch_hash_user_info(dispatch_id, enabled, opts = {}) update_dispatch_hash_user_info_with_http_info(dispatch_id, enabled, opts) nil end |
#update_dispatch_hash_user_info_with_http_info(dispatch_id, enabled, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update user PII hashing status for a Dispatch Updates user PII hashing status for the dispatch. Enabling it will cause all user PII to be hashed. Hashing PII will anonymize the learner data from the dispatched course. This will make looking up specific details about a learner difficult.
2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 2119 def update_dispatch_hash_user_info_with_http_info(dispatch_id, enabled, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.update_dispatch_hash_user_info ...' end # verify the required parameter 'dispatch_id' is set if dispatch_id.nil? fail ArgumentError, "Missing the required parameter 'dispatch_id' when calling DispatchApi.update_dispatch_hash_user_info" end # verify the required parameter 'enabled' is set if enabled.nil? fail ArgumentError, "Missing the required parameter 'enabled' when calling DispatchApi.update_dispatch_hash_user_info" end # resource path local_var_path = '/dispatch/dispatches/{dispatchId}/hashUserInfo'.sub('{' + 'dispatchId' + '}', dispatch_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(enabled) auth_names = ['APP_NORMAL', '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: DispatchApi#update_dispatch_hash_user_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_dispatch_with_http_info(dispatch_id, dispatch_properties, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update information about a Dispatch Updates information about the dispatch, such as the expiration date and registration cap. Only non-null values that are provided will be updated.
2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 2060 def update_dispatch_with_http_info(dispatch_id, dispatch_properties, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.update_dispatch ...' end # verify the required parameter 'dispatch_id' is set if dispatch_id.nil? fail ArgumentError, "Missing the required parameter 'dispatch_id' when calling DispatchApi.update_dispatch" end # verify the required parameter 'dispatch_properties' is set if dispatch_properties.nil? fail ArgumentError, "Missing the required parameter 'dispatch_properties' when calling DispatchApi.update_dispatch" end # resource path local_var_path = '/dispatch/dispatches/{dispatchId}'.sub('{' + 'dispatchId' + '}', dispatch_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(dispatch_properties) auth_names = ['APP_NORMAL', '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: DispatchApi#update_dispatch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_dispatches(dispatch_properties, opts = {}) ⇒ nil
Update a group of Dispatches Updates information about a group of dispatches, such as registration cap, expiration date, and postback information. Can be filtered using the request parameters to provide a subset of results. >Note: >One of the filter parameters (i.e. ‘courseId`, `since`/`until`, `tags`, or `filter`) needs to be provided. This is to prevent accidental modification of all dispatches. If you do wish to update all dispatches, try setting the since parameter to a value prior to the creation of any dispatches. >Info: >If using one of our client libraries, refer to its README for additional information on how to work with the `X-Total-Count` header.
2173 2174 2175 2176 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 2173 def update_dispatches(dispatch_properties, opts = {}) update_dispatches_with_http_info(dispatch_properties, opts) nil end |
#update_dispatches_with_http_info(dispatch_properties, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update a group of Dispatches Updates information about a group of dispatches, such as registration cap, expiration date, and postback information. Can be filtered using the request parameters to provide a subset of results. >Note: >One of the filter parameters (i.e. `courseId`, `since`/`until`, `tags`, or `filter`) needs to be provided. This is to prevent accidental modification of all dispatches. If you do wish to update all dispatches, try setting the since parameter to a value prior to the creation of any dispatches. >Info: >If using one of our client libraries, refer to its README for additional information on how to work with the `X-Total-Count` header.
2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 |
# File 'lib/rustici_software_cloud_v2/api/dispatch_api.rb', line 2190 def update_dispatches_with_http_info(dispatch_properties, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DispatchApi.update_dispatches ...' end # verify the required parameter 'dispatch_properties' is set if dispatch_properties.nil? fail ArgumentError, "Missing the required parameter 'dispatch_properties' when calling DispatchApi.update_dispatches" end # resource path local_var_path = '/dispatch/dispatches' # query parameters query_params = {} query_params[:'courseId'] = opts[:'course_id'] if !opts[:'course_id'].nil? 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[:'tags'] = @api_client.build_collection_param(opts[:'tags'], :csv) if !opts[:'tags'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'filterBy'] = opts[:'filter_by'] if !opts[:'filter_by'].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(dispatch_properties) auth_names = ['APP_NORMAL', '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: DispatchApi#update_dispatches\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |