configuration.ts 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /* tslint:disable */
  2. /* eslint-disable */
  3. /**
  4. * Admin.NET 通用权限开发平台
  5. * 让 .NET 开发更简单、更通用、更流行。整合最新技术,模块插件式开发,前后端分离,开箱即用。<br/><u><b><font color='FF0000'> 👮不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!</font></b></u>
  6. *
  7. * OpenAPI spec version: 1.0.0
  8. *
  9. *
  10. * NOTE: This class is auto generated by the swagger code generator program.
  11. * https://github.com/swagger-api/swagger-codegen.git
  12. * Do not edit the class manually.
  13. */
  14. export interface ConfigurationParameters {
  15. apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
  16. username?: string;
  17. password?: string;
  18. accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
  19. basePath?: string;
  20. baseOptions?: any;
  21. }
  22. export class Configuration {
  23. /**
  24. * parameter for apiKey security
  25. *
  26. * @param name security name
  27. * @memberof Configuration
  28. */
  29. apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
  30. /**
  31. * parameter for basic security
  32. *
  33. * @type {string}
  34. * @memberof Configuration
  35. */
  36. username?: string;
  37. /**
  38. * parameter for basic security
  39. *
  40. * @type {string}
  41. * @memberof Configuration
  42. */
  43. password?: string;
  44. /**
  45. * parameter for oauth2 security
  46. *
  47. * @param name security name
  48. * @param scopes oauth2 scope
  49. * @memberof Configuration
  50. */
  51. accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
  52. /**
  53. * override base path
  54. *
  55. * @type {string}
  56. * @memberof Configuration
  57. */
  58. basePath?: string;
  59. /**
  60. * base options for axios calls
  61. *
  62. * @type {any}
  63. * @memberof Configuration
  64. */
  65. baseOptions?: any;
  66. constructor(param: ConfigurationParameters = {}) {
  67. this.apiKey = param.apiKey;
  68. this.username = param.username;
  69. this.password = param.password;
  70. this.accessToken = param.accessToken;
  71. this.basePath = param.basePath;
  72. this.baseOptions = param.baseOptions;
  73. }
  74. }