configuration.ts 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /* tslint:disable */
  2. /* eslint-disable */
  3. /**
  4. * DingTalk
  5. * 集成钉钉开放平台<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. * @param name security name
  26. * @memberof Configuration
  27. */
  28. apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
  29. /**
  30. * parameter for basic security
  31. *
  32. * @type {string}
  33. * @memberof Configuration
  34. */
  35. username?: string;
  36. /**
  37. * parameter for basic security
  38. *
  39. * @type {string}
  40. * @memberof Configuration
  41. */
  42. password?: string;
  43. /**
  44. * parameter for oauth2 security
  45. * @param name security name
  46. * @param scopes oauth2 scope
  47. * @memberof Configuration
  48. */
  49. accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
  50. /**
  51. * override base path
  52. *
  53. * @type {string}
  54. * @memberof Configuration
  55. */
  56. basePath?: string;
  57. /**
  58. * base options for axios calls
  59. *
  60. * @type {any}
  61. * @memberof Configuration
  62. */
  63. baseOptions?: any;
  64. constructor(param: ConfigurationParameters = {}) {
  65. this.apiKey = param.apiKey;
  66. this.username = param.username;
  67. this.password = param.password;
  68. this.accessToken = param.accessToken;
  69. this.basePath = param.basePath;
  70. this.baseOptions = param.baseOptions;
  71. }
  72. }