configuration.ts 2.3 KB

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