model/DiagnosticsSettingsInformation.js

  1. /**
  2. * Docusign eSignature REST API
  3. * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
  4. *
  5. * OpenAPI spec version: v2.1
  6. * Contact: devcenter@docusign.com
  7. *
  8. * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead.
  9. *
  10. */
  11. (function(root, factory) {
  12. if (typeof define === 'function' && define.amd) {
  13. // AMD. Register as an anonymous module.
  14. define(['ApiClient'], factory);
  15. } else if (typeof module === 'object' && module.exports) {
  16. // CommonJS-like environments that support module.exports, like Node.
  17. module.exports = factory(require('../ApiClient'));
  18. } else {
  19. // Browser globals (root is window)
  20. if (!root.Docusign) {
  21. root.Docusign = {};
  22. }
  23. root.Docusign.DiagnosticsSettingsInformation = factory(root.Docusign.ApiClient);
  24. }
  25. }(this, function(ApiClient) {
  26. 'use strict';
  27. /**
  28. * The DiagnosticsSettingsInformation model module.
  29. * @module model/DiagnosticsSettingsInformation
  30. */
  31. /**
  32. * Constructs a new <code>DiagnosticsSettingsInformation</code>.
  33. * @alias module:model/DiagnosticsSettingsInformation
  34. * @class
  35. */
  36. var exports = function() {
  37. var _this = this;
  38. };
  39. /**
  40. * Constructs a <code>DiagnosticsSettingsInformation</code> from a plain JavaScript object, optionally creating a new instance.
  41. * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
  42. * @param {Object} data The plain JavaScript object bearing properties of interest.
  43. * @param {module:model/DiagnosticsSettingsInformation} obj Optional instance to populate.
  44. * @return {module:model/DiagnosticsSettingsInformation} The populated <code>DiagnosticsSettingsInformation</code> instance.
  45. */
  46. exports.constructFromObject = function(data, obj) {
  47. if (data) {
  48. obj = obj || new exports();
  49. if (data.hasOwnProperty('apiRequestLogging')) {
  50. obj['apiRequestLogging'] = ApiClient.convertToType(data['apiRequestLogging'], 'String');
  51. }
  52. if (data.hasOwnProperty('apiRequestLogMaxEntries')) {
  53. obj['apiRequestLogMaxEntries'] = ApiClient.convertToType(data['apiRequestLogMaxEntries'], 'String');
  54. }
  55. if (data.hasOwnProperty('apiRequestLogRemainingEntries')) {
  56. obj['apiRequestLogRemainingEntries'] = ApiClient.convertToType(data['apiRequestLogRemainingEntries'], 'String');
  57. }
  58. }
  59. return obj;
  60. }
  61. /**
  62. * When set to **true**, enables API request logging for the user.
  63. * @member {String} apiRequestLogging
  64. */
  65. exports.prototype['apiRequestLogging'] = undefined;
  66. /**
  67. * Specifies the maximum number of API requests to log.
  68. * @member {String} apiRequestLogMaxEntries
  69. */
  70. exports.prototype['apiRequestLogMaxEntries'] = undefined;
  71. /**
  72. * Indicates the remaining number of API requests that can be logged.
  73. * @member {String} apiRequestLogRemainingEntries
  74. */
  75. exports.prototype['apiRequestLogRemainingEntries'] = undefined;
  76. return exports;
  77. }));