@@ -160,12 +160,12 @@ export class ProjectOwner {
160160export class Snippets {
161161 'id' : number ;
162162 'title' : string ;
163- 'fileName ' : string ;
163+ 'file_name ' : string ;
164164 'author' : SnippetsAuthor ;
165165 'updatedAt' : string ;
166166 'createdAt' : string ;
167167 'expiresAt' : string ;
168- 'webUrl ' : string ;
168+ 'web_url ' : string ;
169169}
170170
171171export class SnippetsAuthor {
@@ -269,7 +269,7 @@ export class GroupsApi {
269269 private extendObj < T1 , T2 > ( objA : T1 , objB : T2 ) {
270270 for ( let key in objB ) {
271271 if ( objB . hasOwnProperty ( key ) ) {
272- objA [ key ] = objB [ key ] ;
272+ objA [ < string > key ] = objB [ key ] ;
273273 }
274274 }
275275 return < T1 & T2 > objA ;
@@ -449,7 +449,7 @@ export class MergeRequestsApi {
449449 private extendObj < T1 , T2 > ( objA : T1 , objB : T2 ) {
450450 for ( let key in objB ) {
451451 if ( objB . hasOwnProperty ( key ) ) {
452- objA [ key ] = objB [ key ] ;
452+ objA [ < string > key ] = objB [ key ] ;
453453 }
454454 }
455455 return < T1 & T2 > objA ;
@@ -847,7 +847,7 @@ export class ProjectApi {
847847 private extendObj < T1 , T2 > ( objA : T1 , objB : T2 ) {
848848 for ( let key in objB ) {
849849 if ( objB . hasOwnProperty ( key ) ) {
850- objA [ key ] = objB [ key ] ;
850+ objA [ < string > key ] = objB [ key ] ;
851851 }
852852 }
853853 return < T1 & T2 > objA ;
@@ -1083,7 +1083,7 @@ export class SnippetsApi {
10831083 private extendObj < T1 , T2 > ( objA : T1 , objB : T2 ) {
10841084 for ( let key in objB ) {
10851085 if ( objB . hasOwnProperty ( key ) ) {
1086- objA [ key ] = objB [ key ] ;
1086+ objA [ < string > key ] = objB [ key ] ;
10871087 }
10881088 }
10891089 return < T1 & T2 > objA ;
@@ -1097,7 +1097,7 @@ export class SnippetsApi {
10971097 * @param code The content of a snippet
10981098 * @param visibilityLevel The snippet's visibility
10991099 */
1100- public createSnippet ( id : string , title : string , fileName : string , code : string , visibilityLevel : number ) : Promise < { response : http . ClientResponse ; body : Snippets ; } > {
1100+ public createSnippet ( id : number , title : string , fileName : string , code : string , visibilityLevel : number ) : Promise < { response : http . ClientResponse ; body : Snippets ; } > {
11011101 const localVarPath = this . basePath + '/projects/{id}/snippets'
11021102 . replace ( '{' + 'id' + '}' , String ( id ) ) ;
11031103 let queryParameters : any = { } ;
@@ -1190,7 +1190,7 @@ export class SnippetsApi {
11901190 * @param id The ID of a project
11911191 * @param snippetId The ID of a project's snippet
11921192 */
1193- public deleteSnippet ( id : string , snippetId : string ) : Promise < { response : http . ClientResponse ; body : Snippets ; } > {
1193+ public deleteSnippet ( id : number , snippetId : number ) : Promise < { response : http . ClientResponse ; body : Snippets ; } > {
11941194 const localVarPath = this . basePath + '/projects/{id}/snippets/{snippet_id}'
11951195 . replace ( '{' + 'id' + '}' , String ( id ) )
11961196 . replace ( '{' + 'snippet_id' + '}' , String ( snippetId ) ) ;
@@ -1253,7 +1253,7 @@ export class SnippetsApi {
12531253 * @param id The ID of a project
12541254 * @param snippetId The ID of a project's snippet
12551255 */
1256- public getSnippet ( id : string , snippetId : string ) : Promise < { response : http . ClientResponse ; body : Snippets ; } > {
1256+ public getSnippet ( id : number , snippetId : number ) : Promise < { response : http . ClientResponse ; body : Snippets ; } > {
12571257 const localVarPath = this . basePath + '/projects/{id}/snippets/{snippet_id}'
12581258 . replace ( '{' + 'id' + '}' , String ( id ) )
12591259 . replace ( '{' + 'snippet_id' + '}' , String ( snippetId ) ) ;
@@ -1316,7 +1316,7 @@ export class SnippetsApi {
13161316 * @param id The ID of a project
13171317 * @param snippetId The ID of a project's snippet
13181318 */
1319- public getSnippetContent ( id : string , snippetId : string ) : Promise < { response : http . ClientResponse ; body ?: any ; } > {
1319+ public getSnippetContent ( id : number , snippetId : number ) : Promise < { response : http . ClientResponse ; body ?: any ; } > {
13201320 const localVarPath = this . basePath + '/projects/{id}/snippets/{snippet_id}/raw'
13211321 . replace ( '{' + 'id' + '}' , String ( id ) )
13221322 . replace ( '{' + 'snippet_id' + '}' , String ( snippetId ) ) ;
@@ -1378,7 +1378,7 @@ export class SnippetsApi {
13781378 * Lists all snippets of a project.
13791379 * @param id The ID of a project
13801380 */
1381- public listSnippets ( id : string ) : Promise < { response : http . ClientResponse ; body : Array < Snippets > ; } > {
1381+ public listSnippets ( id : number ) : Promise < { response : http . ClientResponse ; body : Array < Snippets > ; } > {
13821382 const localVarPath = this . basePath + '/projects/{id}/snippets'
13831383 . replace ( '{' + 'id' + '}' , String ( id ) ) ;
13841384 let queryParameters : any = { } ;
@@ -1439,7 +1439,7 @@ export class SnippetsApi {
14391439 * @param code The content of a snippet
14401440 * @param visibilityLevel The snippet's visibility
14411441 */
1442- public updateSnippet ( id : string , snippetId : string , title ?: string , fileName ?: string , code ?: string , visibilityLevel ?: number ) : Promise < { response : http . ClientResponse ; body : Snippets ; } > {
1442+ public updateSnippet ( id : number , snippetId : number , title ?: string , fileName ?: string , code ?: string , visibilityLevel ?: number ) : Promise < { response : http . ClientResponse ; body : Snippets ; } > {
14431443 const localVarPath = this . basePath + '/projects/{id}/snippets/{snippet_id}'
14441444 . replace ( '{' + 'id' + '}' , String ( id ) )
14451445 . replace ( '{' + 'snippet_id' + '}' , String ( snippetId ) ) ;
@@ -1552,7 +1552,7 @@ export class TagsApi {
15521552 private extendObj < T1 , T2 > ( objA : T1 , objB : T2 ) {
15531553 for ( let key in objB ) {
15541554 if ( objB . hasOwnProperty ( key ) ) {
1555- objA [ key ] = objB [ key ] ;
1555+ objA [ < string > key ] = objB [ key ] ;
15561556 }
15571557 }
15581558 return < T1 & T2 > objA ;
0 commit comments