@@ -63,7 +63,7 @@ export class ApiClient {
6363 ) ;
6464 }
6565
66- private getAccessToken = async ( ) => {
66+ private getAccessToken = async ( ) : Promise < string | undefined > => {
6767 if ( ! this . hasCredentials ( ) ) {
6868 return undefined ;
6969 }
@@ -145,7 +145,7 @@ export class ApiClient {
145145 // the username and password (for example, encodes `_` to %5F, which is wrong).
146146 return {
147147 client : { client_id : clientId } ,
148- clientAuth : ( _as , client , _body , headers ) => {
148+ clientAuth : ( _as , client , _body , headers ) : void => {
149149 const credentials = Buffer . from ( `${ clientId } :${ clientSecret } ` ) . toString ( "base64" ) ;
150150 headers . set ( "Authorization" , `Basic ${ credentials } ` ) ;
151151 } ,
@@ -305,6 +305,7 @@ export class ApiClient {
305305 }
306306
307307 // DO NOT EDIT. This is auto-generated code.
308+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
308309 async listClustersForAllProjects ( options ?: FetchOptions < operations [ "listClustersForAllProjects" ] > ) {
309310 const { data, error, response } = await this . client . GET ( "/api/atlas/v2/clusters" , options ) ;
310311 if ( error ) {
@@ -313,6 +314,7 @@ export class ApiClient {
313314 return data ;
314315 }
315316
317+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
316318 async listProjects ( options ?: FetchOptions < operations [ "listProjects" ] > ) {
317319 const { data, error, response } = await this . client . GET ( "/api/atlas/v2/groups" , options ) ;
318320 if ( error ) {
@@ -321,6 +323,7 @@ export class ApiClient {
321323 return data ;
322324 }
323325
326+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
324327 async createProject ( options : FetchOptions < operations [ "createProject" ] > ) {
325328 const { data, error, response } = await this . client . POST ( "/api/atlas/v2/groups" , options ) ;
326329 if ( error ) {
@@ -329,13 +332,15 @@ export class ApiClient {
329332 return data ;
330333 }
331334
335+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
332336 async deleteProject ( options : FetchOptions < operations [ "deleteProject" ] > ) {
333337 const { error, response } = await this . client . DELETE ( "/api/atlas/v2/groups/{groupId}" , options ) ;
334338 if ( error ) {
335339 throw ApiClientError . fromError ( response , error ) ;
336340 }
337341 }
338342
343+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
339344 async getProject ( options : FetchOptions < operations [ "getProject" ] > ) {
340345 const { data, error, response } = await this . client . GET ( "/api/atlas/v2/groups/{groupId}" , options ) ;
341346 if ( error ) {
@@ -344,6 +349,7 @@ export class ApiClient {
344349 return data ;
345350 }
346351
352+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
347353 async listProjectIpAccessLists ( options : FetchOptions < operations [ "listProjectIpAccessLists" ] > ) {
348354 const { data, error, response } = await this . client . GET ( "/api/atlas/v2/groups/{groupId}/accessList" , options ) ;
349355 if ( error ) {
@@ -352,6 +358,7 @@ export class ApiClient {
352358 return data ;
353359 }
354360
361+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
355362 async createProjectIpAccessList ( options : FetchOptions < operations [ "createProjectIpAccessList" ] > ) {
356363 const { data, error, response } = await this . client . POST ( "/api/atlas/v2/groups/{groupId}/accessList" , options ) ;
357364 if ( error ) {
@@ -360,6 +367,7 @@ export class ApiClient {
360367 return data ;
361368 }
362369
370+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
363371 async deleteProjectIpAccessList ( options : FetchOptions < operations [ "deleteProjectIpAccessList" ] > ) {
364372 const { error, response } = await this . client . DELETE (
365373 "/api/atlas/v2/groups/{groupId}/accessList/{entryValue}" ,
@@ -370,6 +378,7 @@ export class ApiClient {
370378 }
371379 }
372380
381+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
373382 async listAlerts ( options : FetchOptions < operations [ "listAlerts" ] > ) {
374383 const { data, error, response } = await this . client . GET ( "/api/atlas/v2/groups/{groupId}/alerts" , options ) ;
375384 if ( error ) {
@@ -378,6 +387,7 @@ export class ApiClient {
378387 return data ;
379388 }
380389
390+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
381391 async listClusters ( options : FetchOptions < operations [ "listClusters" ] > ) {
382392 const { data, error, response } = await this . client . GET ( "/api/atlas/v2/groups/{groupId}/clusters" , options ) ;
383393 if ( error ) {
@@ -386,6 +396,7 @@ export class ApiClient {
386396 return data ;
387397 }
388398
399+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
389400 async createCluster ( options : FetchOptions < operations [ "createCluster" ] > ) {
390401 const { data, error, response } = await this . client . POST ( "/api/atlas/v2/groups/{groupId}/clusters" , options ) ;
391402 if ( error ) {
@@ -394,6 +405,7 @@ export class ApiClient {
394405 return data ;
395406 }
396407
408+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
397409 async deleteCluster ( options : FetchOptions < operations [ "deleteCluster" ] > ) {
398410 const { error, response } = await this . client . DELETE (
399411 "/api/atlas/v2/groups/{groupId}/clusters/{clusterName}" ,
@@ -404,18 +416,19 @@ export class ApiClient {
404416 }
405417 }
406418
419+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
407420 async getCluster ( options : FetchOptions < operations [ "getCluster" ] > ) {
408421 const { data, error, response } = await this . client . GET (
409422 "/api/atlas/v2/groups/{groupId}/clusters/{clusterName}" ,
410423 options
411424 ) ;
412-
413425 if ( error ) {
414426 throw ApiClientError . fromError ( response , error ) ;
415427 }
416428 return data ;
417429 }
418430
431+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
419432 async listDatabaseUsers ( options : FetchOptions < operations [ "listDatabaseUsers" ] > ) {
420433 const { data, error, response } = await this . client . GET (
421434 "/api/atlas/v2/groups/{groupId}/databaseUsers" ,
@@ -427,6 +440,7 @@ export class ApiClient {
427440 return data ;
428441 }
429442
443+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
430444 async createDatabaseUser ( options : FetchOptions < operations [ "createDatabaseUser" ] > ) {
431445 const { data, error, response } = await this . client . POST (
432446 "/api/atlas/v2/groups/{groupId}/databaseUsers" ,
@@ -438,6 +452,7 @@ export class ApiClient {
438452 return data ;
439453 }
440454
455+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
441456 async deleteDatabaseUser ( options : FetchOptions < operations [ "deleteDatabaseUser" ] > ) {
442457 const { error, response } = await this . client . DELETE (
443458 "/api/atlas/v2/groups/{groupId}/databaseUsers/{databaseName}/{username}" ,
@@ -448,6 +463,7 @@ export class ApiClient {
448463 }
449464 }
450465
466+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
451467 async listFlexClusters ( options : FetchOptions < operations [ "listFlexClusters" ] > ) {
452468 const { data, error, response } = await this . client . GET ( "/api/atlas/v2/groups/{groupId}/flexClusters" , options ) ;
453469 if ( error ) {
@@ -456,6 +472,7 @@ export class ApiClient {
456472 return data ;
457473 }
458474
475+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
459476 async createFlexCluster ( options : FetchOptions < operations [ "createFlexCluster" ] > ) {
460477 const { data, error, response } = await this . client . POST (
461478 "/api/atlas/v2/groups/{groupId}/flexClusters" ,
@@ -467,6 +484,7 @@ export class ApiClient {
467484 return data ;
468485 }
469486
487+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
470488 async deleteFlexCluster ( options : FetchOptions < operations [ "deleteFlexCluster" ] > ) {
471489 const { error, response } = await this . client . DELETE (
472490 "/api/atlas/v2/groups/{groupId}/flexClusters/{name}" ,
@@ -477,6 +495,7 @@ export class ApiClient {
477495 }
478496 }
479497
498+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
480499 async getFlexCluster ( options : FetchOptions < operations [ "getFlexCluster" ] > ) {
481500 const { data, error, response } = await this . client . GET (
482501 "/api/atlas/v2/groups/{groupId}/flexClusters/{name}" ,
@@ -488,6 +507,7 @@ export class ApiClient {
488507 return data ;
489508 }
490509
510+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
491511 async listOrganizations ( options ?: FetchOptions < operations [ "listOrganizations" ] > ) {
492512 const { data, error, response } = await this . client . GET ( "/api/atlas/v2/orgs" , options ) ;
493513 if ( error ) {
@@ -496,6 +516,7 @@ export class ApiClient {
496516 return data ;
497517 }
498518
519+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
499520 async listOrganizationProjects ( options : FetchOptions < operations [ "listOrganizationProjects" ] > ) {
500521 const { data, error, response } = await this . client . GET ( "/api/atlas/v2/orgs/{orgId}/groups" , options ) ;
501522 if ( error ) {
0 commit comments