CodeLibraryService.generateCodeLibrary Method

Generates a code library.
 

Parameters

generateOptions

Type: Object

 An object containing options required to generate the Code Library.
 name                [type: String]                      - The name of the generated code library.
 parentId            [type: String]                      - The ID of the parent folder to generate the code library within.
 contentType         [type: dundas.entities.ContentType] - The code library content type.
 content             [type: String]                      - The code library content.
 referenceIds        [type: Array, elementType: String]  - The IDs of the referenced code libraries.
 

Return Value


Type: jQuery.Promise
Value: dundas.entities.CodeLibrary
A promise object that is resolved when the call is complete. If successful, the created dundas.entities.CodeLibrary is returned.