@nutanix-scratch/objects-js-client 4.0.1 → 4.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/README.md +31 -18
  2. package/dist/Ntnx-Objects-js-client-prod.js +1 -1
  3. package/dist/Ntnx-Objects-js-client.js +289 -283
  4. package/dist/es/ApiClient.d.ts +35 -7
  5. package/dist/es/ApiClient.js +862 -684
  6. package/dist/es/Paginable.d.ts +1 -1
  7. package/dist/es/Paginable.js +144 -183
  8. package/dist/es/apis/objectstores-endpoints.d.ts +5 -69
  9. package/dist/es/apis/objectstores-endpoints.js +406 -479
  10. package/dist/es/apis/stats-endpoints.d.ts +3 -25
  11. package/dist/es/apis/stats-endpoints.js +75 -107
  12. package/dist/es/index.js +120 -120
  13. package/dist/es/models/common/v1/config/FQDN.d.ts +2 -7
  14. package/dist/es/models/common/v1/config/FQDN.js +141 -180
  15. package/dist/es/models/common/v1/config/Flag.d.ts +2 -8
  16. package/dist/es/models/common/v1/config/Flag.js +170 -211
  17. package/dist/es/models/common/v1/config/IPAddress.d.ts +2 -20
  18. package/dist/es/models/common/v1/config/IPAddress.js +170 -217
  19. package/dist/es/models/common/v1/config/IPv4Address.d.ts +2 -8
  20. package/dist/es/models/common/v1/config/IPv4Address.js +174 -215
  21. package/dist/es/models/common/v1/config/IPv6Address.d.ts +2 -8
  22. package/dist/es/models/common/v1/config/IPv6Address.js +174 -215
  23. package/dist/es/models/common/v1/config/KVPair.d.ts +2 -8
  24. package/dist/es/models/common/v1/config/KVPair.js +225 -270
  25. package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
  26. package/dist/es/models/common/v1/config/MapOfStringWrapper.js +139 -178
  27. package/dist/es/models/common/v1/config/Message.d.ts +2 -10
  28. package/dist/es/models/common/v1/config/Message.js +213 -258
  29. package/dist/es/models/common/v1/config/MessageSeverity.js +7 -9
  30. package/dist/es/models/common/v1/config/Metadata.d.ts +2 -11
  31. package/dist/es/models/common/v1/config/Metadata.js +261 -308
  32. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +5 -10
  33. package/dist/es/models/common/v1/config/TenantAwareModel.js +138 -178
  34. package/dist/es/models/common/v1/response/ApiLink.d.ts +2 -8
  35. package/dist/es/models/common/v1/response/ApiLink.js +165 -206
  36. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
  37. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +281 -344
  38. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
  39. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +155 -203
  40. package/dist/es/models/common/v1/stats/DownSamplingOperator.js +7 -9
  41. package/dist/es/models/common/v1/stats/TimeIntValuePair.d.ts +2 -8
  42. package/dist/es/models/common/v1/stats/TimeIntValuePair.js +165 -206
  43. package/dist/es/models/objects/v4/config/Certificate.d.ts +1 -58
  44. package/dist/es/models/objects/v4/config/Certificate.js +319 -381
  45. package/dist/es/models/objects/v4/config/CertificateProjection.d.ts +1 -1
  46. package/dist/es/models/objects/v4/config/CertificateProjection.js +73 -102
  47. package/dist/es/models/objects/v4/config/CreateCertificateApiResponse.d.ts +2 -45
  48. package/dist/es/models/objects/v4/config/CreateCertificateApiResponse.js +185 -240
  49. package/dist/es/models/objects/v4/config/CreateObjectstoreApiResponse.d.ts +2 -43
  50. package/dist/es/models/objects/v4/config/CreateObjectstoreApiResponse.js +185 -240
  51. package/dist/es/models/objects/v4/config/DeleteObjectstoreApiResponse.d.ts +2 -43
  52. package/dist/es/models/objects/v4/config/DeleteObjectstoreApiResponse.js +185 -240
  53. package/dist/es/models/objects/v4/config/GetCaApiResponse.d.ts +2 -43
  54. package/dist/es/models/objects/v4/config/GetCaApiResponse.js +185 -240
  55. package/dist/es/models/objects/v4/config/GetCertificateApiResponse.d.ts +2 -43
  56. package/dist/es/models/objects/v4/config/GetCertificateApiResponse.js +185 -240
  57. package/dist/es/models/objects/v4/config/GetObjectstoreApiResponse.d.ts +2 -45
  58. package/dist/es/models/objects/v4/config/GetObjectstoreApiResponse.js +185 -240
  59. package/dist/es/models/objects/v4/config/ListCertificatesApiResponse.d.ts +2 -43
  60. package/dist/es/models/objects/v4/config/ListCertificatesApiResponse.js +211 -266
  61. package/dist/es/models/objects/v4/config/ListObjectstoresApiResponse.d.ts +2 -43
  62. package/dist/es/models/objects/v4/config/ListObjectstoresApiResponse.js +211 -266
  63. package/dist/es/models/objects/v4/config/ObjectStore.d.ts +1 -96
  64. package/dist/es/models/objects/v4/config/ObjectStore.js +628 -711
  65. package/dist/es/models/objects/v4/config/ObjectStoreProjection.d.ts +1 -152
  66. package/dist/es/models/objects/v4/config/ObjectStoreProjection.js +221 -238
  67. package/dist/es/models/objects/v4/config/State.js +7 -9
  68. package/dist/es/models/objects/v4/config/UpdateObjectstoreApiResponse.d.ts +2 -43
  69. package/dist/es/models/objects/v4/config/UpdateObjectstoreApiResponse.js +185 -240
  70. package/dist/es/models/objects/v4/error/AppMessage.d.ts +5 -15
  71. package/dist/es/models/objects/v4/error/AppMessage.js +264 -313
  72. package/dist/es/models/objects/v4/error/ErrorResponse.d.ts +2 -7
  73. package/dist/es/models/objects/v4/error/ErrorResponse.js +174 -217
  74. package/dist/es/models/objects/v4/error/SchemaValidationError.d.ts +2 -18
  75. package/dist/es/models/objects/v4/error/SchemaValidationError.js +248 -299
  76. package/dist/es/models/objects/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
  77. package/dist/es/models/objects/v4/error/SchemaValidationErrorMessage.js +190 -233
  78. package/dist/es/models/objects/v4/stats/GetObjectstoreStatsApiResponse.d.ts +2 -43
  79. package/dist/es/models/objects/v4/stats/GetObjectstoreStatsApiResponse.js +185 -240
  80. package/dist/es/models/objects/v4/stats/ObjectstoreStats.d.ts +1 -169
  81. package/dist/es/models/objects/v4/stats/ObjectstoreStats.js +957 -1129
  82. package/dist/es/models/objects/v4/stats/TimeFloatValuePair.d.ts +2 -8
  83. package/dist/es/models/objects/v4/stats/TimeFloatValuePair.js +165 -206
  84. package/dist/es/models/prism/v4/config/TaskReference.d.ts +5 -10
  85. package/dist/es/models/prism/v4/config/TaskReference.js +143 -182
  86. package/dist/es/models/validation/ValidationError.js +26 -42
  87. package/dist/es/models/validation/ValidationScopes.js +3 -3
  88. package/dist/es/utils/ValidationUtils.js +39 -69
  89. package/dist/lib/ApiClient.d.ts +35 -7
  90. package/dist/lib/ApiClient.js +862 -684
  91. package/dist/lib/Paginable.d.ts +1 -1
  92. package/dist/lib/Paginable.js +144 -183
  93. package/dist/lib/apis/objectstores-endpoints.d.ts +5 -69
  94. package/dist/lib/apis/objectstores-endpoints.js +406 -479
  95. package/dist/lib/apis/stats-endpoints.d.ts +3 -25
  96. package/dist/lib/apis/stats-endpoints.js +75 -107
  97. package/dist/lib/index.js +120 -120
  98. package/dist/lib/models/common/v1/config/FQDN.d.ts +2 -7
  99. package/dist/lib/models/common/v1/config/FQDN.js +141 -180
  100. package/dist/lib/models/common/v1/config/Flag.d.ts +2 -8
  101. package/dist/lib/models/common/v1/config/Flag.js +170 -211
  102. package/dist/lib/models/common/v1/config/IPAddress.d.ts +2 -20
  103. package/dist/lib/models/common/v1/config/IPAddress.js +170 -217
  104. package/dist/lib/models/common/v1/config/IPv4Address.d.ts +2 -8
  105. package/dist/lib/models/common/v1/config/IPv4Address.js +174 -215
  106. package/dist/lib/models/common/v1/config/IPv6Address.d.ts +2 -8
  107. package/dist/lib/models/common/v1/config/IPv6Address.js +174 -215
  108. package/dist/lib/models/common/v1/config/KVPair.d.ts +2 -8
  109. package/dist/lib/models/common/v1/config/KVPair.js +225 -270
  110. package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
  111. package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +139 -178
  112. package/dist/lib/models/common/v1/config/Message.d.ts +2 -10
  113. package/dist/lib/models/common/v1/config/Message.js +213 -258
  114. package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -9
  115. package/dist/lib/models/common/v1/config/Metadata.d.ts +2 -11
  116. package/dist/lib/models/common/v1/config/Metadata.js +261 -308
  117. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +5 -10
  118. package/dist/lib/models/common/v1/config/TenantAwareModel.js +138 -178
  119. package/dist/lib/models/common/v1/response/ApiLink.d.ts +2 -8
  120. package/dist/lib/models/common/v1/response/ApiLink.js +165 -206
  121. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
  122. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +281 -344
  123. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
  124. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +155 -203
  125. package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +7 -9
  126. package/dist/lib/models/common/v1/stats/TimeIntValuePair.d.ts +2 -8
  127. package/dist/lib/models/common/v1/stats/TimeIntValuePair.js +165 -206
  128. package/dist/lib/models/objects/v4/config/Certificate.d.ts +1 -58
  129. package/dist/lib/models/objects/v4/config/Certificate.js +319 -381
  130. package/dist/lib/models/objects/v4/config/CertificateProjection.d.ts +1 -1
  131. package/dist/lib/models/objects/v4/config/CertificateProjection.js +73 -102
  132. package/dist/lib/models/objects/v4/config/CreateCertificateApiResponse.d.ts +2 -45
  133. package/dist/lib/models/objects/v4/config/CreateCertificateApiResponse.js +185 -240
  134. package/dist/lib/models/objects/v4/config/CreateObjectstoreApiResponse.d.ts +2 -43
  135. package/dist/lib/models/objects/v4/config/CreateObjectstoreApiResponse.js +185 -240
  136. package/dist/lib/models/objects/v4/config/DeleteObjectstoreApiResponse.d.ts +2 -43
  137. package/dist/lib/models/objects/v4/config/DeleteObjectstoreApiResponse.js +185 -240
  138. package/dist/lib/models/objects/v4/config/GetCaApiResponse.d.ts +2 -43
  139. package/dist/lib/models/objects/v4/config/GetCaApiResponse.js +185 -240
  140. package/dist/lib/models/objects/v4/config/GetCertificateApiResponse.d.ts +2 -43
  141. package/dist/lib/models/objects/v4/config/GetCertificateApiResponse.js +185 -240
  142. package/dist/lib/models/objects/v4/config/GetObjectstoreApiResponse.d.ts +2 -45
  143. package/dist/lib/models/objects/v4/config/GetObjectstoreApiResponse.js +185 -240
  144. package/dist/lib/models/objects/v4/config/ListCertificatesApiResponse.d.ts +2 -43
  145. package/dist/lib/models/objects/v4/config/ListCertificatesApiResponse.js +211 -266
  146. package/dist/lib/models/objects/v4/config/ListObjectstoresApiResponse.d.ts +2 -43
  147. package/dist/lib/models/objects/v4/config/ListObjectstoresApiResponse.js +211 -266
  148. package/dist/lib/models/objects/v4/config/ObjectStore.d.ts +1 -96
  149. package/dist/lib/models/objects/v4/config/ObjectStore.js +628 -711
  150. package/dist/lib/models/objects/v4/config/ObjectStoreProjection.d.ts +1 -152
  151. package/dist/lib/models/objects/v4/config/ObjectStoreProjection.js +221 -238
  152. package/dist/lib/models/objects/v4/config/State.js +7 -9
  153. package/dist/lib/models/objects/v4/config/UpdateObjectstoreApiResponse.d.ts +2 -43
  154. package/dist/lib/models/objects/v4/config/UpdateObjectstoreApiResponse.js +185 -240
  155. package/dist/lib/models/objects/v4/error/AppMessage.d.ts +5 -15
  156. package/dist/lib/models/objects/v4/error/AppMessage.js +264 -313
  157. package/dist/lib/models/objects/v4/error/ErrorResponse.d.ts +2 -7
  158. package/dist/lib/models/objects/v4/error/ErrorResponse.js +174 -217
  159. package/dist/lib/models/objects/v4/error/SchemaValidationError.d.ts +2 -18
  160. package/dist/lib/models/objects/v4/error/SchemaValidationError.js +248 -299
  161. package/dist/lib/models/objects/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
  162. package/dist/lib/models/objects/v4/error/SchemaValidationErrorMessage.js +190 -233
  163. package/dist/lib/models/objects/v4/stats/GetObjectstoreStatsApiResponse.d.ts +2 -43
  164. package/dist/lib/models/objects/v4/stats/GetObjectstoreStatsApiResponse.js +185 -240
  165. package/dist/lib/models/objects/v4/stats/ObjectstoreStats.d.ts +1 -169
  166. package/dist/lib/models/objects/v4/stats/ObjectstoreStats.js +957 -1129
  167. package/dist/lib/models/objects/v4/stats/TimeFloatValuePair.d.ts +2 -8
  168. package/dist/lib/models/objects/v4/stats/TimeFloatValuePair.js +165 -206
  169. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +5 -10
  170. package/dist/lib/models/prism/v4/config/TaskReference.js +143 -182
  171. package/dist/lib/models/validation/ValidationError.js +26 -42
  172. package/dist/lib/models/validation/ValidationScopes.js +3 -3
  173. package/dist/lib/utils/ValidationUtils.js +39 -69
  174. package/package.json +2 -2
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = void 0;
6
+ exports.default = void 0;
7
7
  var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
8
8
  var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
9
9
  var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
@@ -12,38 +12,16 @@ var _TimeFloatValuePair = _interopRequireDefault(require("./TimeFloatValuePair")
12
12
  var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
13
13
  var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
14
14
  var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
15
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
16
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
17
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
18
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
19
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
20
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
21
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
22
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
23
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
24
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
25
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
26
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
27
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
28
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
29
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
30
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
31
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
32
- function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
33
- function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
34
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
35
- function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
36
- function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
37
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
15
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
38
16
  function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
39
17
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
40
18
  * Nutanix Objects Storage Management APIs
41
19
  *
42
- * OpenAPI spec version: 4.0.1
20
+ * OpenAPI spec version: 4.0.3
43
21
  *
44
22
  * NOTE: This class is auto generated by the Open API Dev Platform.
45
23
  *
46
- * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE
24
+ * Open API Dev Platform Codegen version: 17.5.1.10573-RELEASE
47
25
  *
48
26
  * Do not edit the class manually.
49
27
  *
@@ -51,36 +29,33 @@ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("C
51
29
  /**
52
30
  * The ObjectstoreStats model module.
53
31
  * @module Ntnx/ObjectstoreStats
54
- * @version 4.0.1
32
+ * @version 4.0.3
55
33
  * @class ObjectstoreStats
56
34
  * @extends ExternalizableAbstractModel
57
35
  */
58
36
  var _ObjectstoreStats_brand = /*#__PURE__*/new WeakSet();
59
- var ObjectstoreStats = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra) {
37
+ class ObjectstoreStats extends _ExternalizableAbstractModel.default {
60
38
  /**
61
39
  * Constructs a new <code>ObjectstoreStats</code>.
62
40
  * @alias module:Ntnx/ObjectstoreStats
63
41
  * @extends module:Ntnx/ExternalizableAbstractModel
64
42
  */
65
- function ObjectstoreStats() {
66
- var _this;
67
- _classCallCheck(this, ObjectstoreStats);
68
- _this = _callSuper(this, ObjectstoreStats);
43
+ constructor() {
44
+ super();
69
45
  /*
70
46
  * toJson method for a map type which supports map with primitive keys and values of object types
71
47
  * @param {Object} obj
72
48
  * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
73
49
  * Otherwise, just returns the input object.
74
50
  */
75
- _classPrivateMethodInitSpec(_this, _ObjectstoreStats_brand);
76
- _this.$objectType = "objects.v4.stats.ObjectstoreStats";
51
+ _classPrivateMethodInitSpec(this, _ObjectstoreStats_brand);
52
+ this.$objectType = "objects.v4.stats.ObjectstoreStats";
77
53
  /** @type {object<string, any>} */
78
- _this.$reserved = {
54
+ this.$reserved = {
79
55
  '$fv': "v4.r0"
80
56
  };
81
57
  /** @type {object<string, any>} */
82
- _this.$unknownFields = {};
83
- return _this;
58
+ this.$unknownFields = {};
84
59
  }
85
60
 
86
61
  /**
@@ -91,1177 +66,1030 @@ var ObjectstoreStats = exports["default"] = /*#__PURE__*/function (_Externalizab
91
66
  * @param callFromChild {Boolean} Flag to recognise calling instance
92
67
  * @return {module:Ntnx/ObjectstoreStats} The populated <code>ObjectstoreStats</code> instance.
93
68
  */
94
- _inherits(ObjectstoreStats, _ExternalizableAbstra);
95
- return _createClass(ObjectstoreStats, [{
96
- key: "getObjectCount",
97
- value:
98
- /**
99
- * Returns Number of Objects in the Object store. This stat is updated every 10 minutes. It includes the count of the incomplete multipart uploads.
100
- * @return {TimeIntValuePair[]}
101
- */
102
- function getObjectCount() {
103
- return this.objectCount;
69
+ static constructFromObject(data, obj = null, callFromChild = false) {
70
+ let items, item, i, itemArr, discriminator;
71
+ if (data) {
72
+ obj = obj || new ObjectstoreStats();
73
+ _ExternalizableAbstractModel.default.constructFromObject(data, obj, true);
74
+ if (data.hasOwnProperty('objectCount') && data.objectCount !== null && data.objectCount !== undefined) {
75
+ itemArr = [];
76
+ items = data.objectCount;
77
+ for (i = 0; i < items.length; i++) {
78
+ item = _TimeIntValuePair.default.constructFromObject(items[i], undefined);
79
+ itemArr.push(item);
80
+ }
81
+ obj.setObjectCount(itemArr);
82
+ }
83
+ if (data.hasOwnProperty('bucketCount') && data.bucketCount !== null && data.bucketCount !== undefined) {
84
+ itemArr = [];
85
+ items = data.bucketCount;
86
+ for (i = 0; i < items.length; i++) {
87
+ item = _TimeIntValuePair.default.constructFromObject(items[i], undefined);
88
+ itemArr.push(item);
89
+ }
90
+ obj.setBucketCount(itemArr);
91
+ }
92
+ if (data.hasOwnProperty('storageUsageBytes') && data.storageUsageBytes !== null && data.storageUsageBytes !== undefined) {
93
+ itemArr = [];
94
+ items = data.storageUsageBytes;
95
+ for (i = 0; i < items.length; i++) {
96
+ item = _TimeIntValuePair.default.constructFromObject(items[i], undefined);
97
+ itemArr.push(item);
98
+ }
99
+ obj.setStorageUsageBytes(itemArr);
100
+ }
101
+ if (data.hasOwnProperty('inboundBytesPerSecond') && data.inboundBytesPerSecond !== null && data.inboundBytesPerSecond !== undefined) {
102
+ itemArr = [];
103
+ items = data.inboundBytesPerSecond;
104
+ for (i = 0; i < items.length; i++) {
105
+ item = _TimeFloatValuePair.default.constructFromObject(items[i], undefined);
106
+ itemArr.push(item);
107
+ }
108
+ obj.setInboundBytesPerSecond(itemArr);
109
+ }
110
+ if (data.hasOwnProperty('outboundBytesPerSecond') && data.outboundBytesPerSecond !== null && data.outboundBytesPerSecond !== undefined) {
111
+ itemArr = [];
112
+ items = data.outboundBytesPerSecond;
113
+ for (i = 0; i < items.length; i++) {
114
+ item = _TimeFloatValuePair.default.constructFromObject(items[i], undefined);
115
+ itemArr.push(item);
116
+ }
117
+ obj.setOutboundBytesPerSecond(itemArr);
118
+ }
119
+ if (data.hasOwnProperty('getRequestThroughputBytesPerSecond') && data.getRequestThroughputBytesPerSecond !== null && data.getRequestThroughputBytesPerSecond !== undefined) {
120
+ itemArr = [];
121
+ items = data.getRequestThroughputBytesPerSecond;
122
+ for (i = 0; i < items.length; i++) {
123
+ item = _TimeFloatValuePair.default.constructFromObject(items[i], undefined);
124
+ itemArr.push(item);
125
+ }
126
+ obj.setGetRequestThroughputBytesPerSecond(itemArr);
127
+ }
128
+ if (data.hasOwnProperty('putRequestThroughputBytesPerSecond') && data.putRequestThroughputBytesPerSecond !== null && data.putRequestThroughputBytesPerSecond !== undefined) {
129
+ itemArr = [];
130
+ items = data.putRequestThroughputBytesPerSecond;
131
+ for (i = 0; i < items.length; i++) {
132
+ item = _TimeFloatValuePair.default.constructFromObject(items[i], undefined);
133
+ itemArr.push(item);
134
+ }
135
+ obj.setPutRequestThroughputBytesPerSecond(itemArr);
136
+ }
137
+ if (data.hasOwnProperty('postRequestsPerSecond') && data.postRequestsPerSecond !== null && data.postRequestsPerSecond !== undefined) {
138
+ itemArr = [];
139
+ items = data.postRequestsPerSecond;
140
+ for (i = 0; i < items.length; i++) {
141
+ item = _TimeFloatValuePair.default.constructFromObject(items[i], undefined);
142
+ itemArr.push(item);
143
+ }
144
+ obj.setPostRequestsPerSecond(itemArr);
145
+ }
146
+ if (data.hasOwnProperty('headRequestsPerSecond') && data.headRequestsPerSecond !== null && data.headRequestsPerSecond !== undefined) {
147
+ itemArr = [];
148
+ items = data.headRequestsPerSecond;
149
+ for (i = 0; i < items.length; i++) {
150
+ item = _TimeFloatValuePair.default.constructFromObject(items[i], undefined);
151
+ itemArr.push(item);
152
+ }
153
+ obj.setHeadRequestsPerSecond(itemArr);
154
+ }
155
+ if (data.hasOwnProperty('getRequestsPerSecond') && data.getRequestsPerSecond !== null && data.getRequestsPerSecond !== undefined) {
156
+ itemArr = [];
157
+ items = data.getRequestsPerSecond;
158
+ for (i = 0; i < items.length; i++) {
159
+ item = _TimeFloatValuePair.default.constructFromObject(items[i], undefined);
160
+ itemArr.push(item);
161
+ }
162
+ obj.setGetRequestsPerSecond(itemArr);
163
+ }
164
+ if (data.hasOwnProperty('putRequestsPerSecond') && data.putRequestsPerSecond !== null && data.putRequestsPerSecond !== undefined) {
165
+ itemArr = [];
166
+ items = data.putRequestsPerSecond;
167
+ for (i = 0; i < items.length; i++) {
168
+ item = _TimeFloatValuePair.default.constructFromObject(items[i], undefined);
169
+ itemArr.push(item);
170
+ }
171
+ obj.setPutRequestsPerSecond(itemArr);
172
+ }
173
+ if (data.hasOwnProperty('deleteRequestsPerSecond') && data.deleteRequestsPerSecond !== null && data.deleteRequestsPerSecond !== undefined) {
174
+ itemArr = [];
175
+ items = data.deleteRequestsPerSecond;
176
+ for (i = 0; i < items.length; i++) {
177
+ item = _TimeFloatValuePair.default.constructFromObject(items[i], undefined);
178
+ itemArr.push(item);
179
+ }
180
+ obj.setDeleteRequestsPerSecond(itemArr);
181
+ }
182
+ if (data.hasOwnProperty('objectOperationsPerSecond') && data.objectOperationsPerSecond !== null && data.objectOperationsPerSecond !== undefined) {
183
+ itemArr = [];
184
+ items = data.objectOperationsPerSecond;
185
+ for (i = 0; i < items.length; i++) {
186
+ item = _TimeFloatValuePair.default.constructFromObject(items[i], undefined);
187
+ itemArr.push(item);
188
+ }
189
+ obj.setObjectOperationsPerSecond(itemArr);
190
+ }
191
+ if (data.hasOwnProperty('getObjectTtfbMsecs') && data.getObjectTtfbMsecs !== null && data.getObjectTtfbMsecs !== undefined) {
192
+ itemArr = [];
193
+ items = data.getObjectTtfbMsecs;
194
+ for (i = 0; i < items.length; i++) {
195
+ item = _TimeFloatValuePair.default.constructFromObject(items[i], undefined);
196
+ itemArr.push(item);
197
+ }
198
+ obj.setGetObjectTtfbMsecs(itemArr);
199
+ }
200
+ if (data.hasOwnProperty('getBucketOperationsPerSecond') && data.getBucketOperationsPerSecond !== null && data.getBucketOperationsPerSecond !== undefined) {
201
+ itemArr = [];
202
+ items = data.getBucketOperationsPerSecond;
203
+ for (i = 0; i < items.length; i++) {
204
+ item = _TimeFloatValuePair.default.constructFromObject(items[i], undefined);
205
+ itemArr.push(item);
206
+ }
207
+ obj.setGetBucketOperationsPerSecond(itemArr);
208
+ }
209
+ if (data.hasOwnProperty('listMultipartUploadsOperationsPerSecond') && data.listMultipartUploadsOperationsPerSecond !== null && data.listMultipartUploadsOperationsPerSecond !== undefined) {
210
+ itemArr = [];
211
+ items = data.listMultipartUploadsOperationsPerSecond;
212
+ for (i = 0; i < items.length; i++) {
213
+ item = _TimeFloatValuePair.default.constructFromObject(items[i], undefined);
214
+ itemArr.push(item);
215
+ }
216
+ obj.setListMultipartUploadsOperationsPerSecond(itemArr);
217
+ }
218
+ if (data.hasOwnProperty('multipartUploadStartOperationsPerSecond') && data.multipartUploadStartOperationsPerSecond !== null && data.multipartUploadStartOperationsPerSecond !== undefined) {
219
+ itemArr = [];
220
+ items = data.multipartUploadStartOperationsPerSecond;
221
+ for (i = 0; i < items.length; i++) {
222
+ item = _TimeFloatValuePair.default.constructFromObject(items[i], undefined);
223
+ itemArr.push(item);
224
+ }
225
+ obj.setMultipartUploadStartOperationsPerSecond(itemArr);
226
+ }
227
+ if (data.hasOwnProperty('selectObjectContentOperationsPerSecond') && data.selectObjectContentOperationsPerSecond !== null && data.selectObjectContentOperationsPerSecond !== undefined) {
228
+ itemArr = [];
229
+ items = data.selectObjectContentOperationsPerSecond;
230
+ for (i = 0; i < items.length; i++) {
231
+ item = _TimeFloatValuePair.default.constructFromObject(items[i], undefined);
232
+ itemArr.push(item);
233
+ }
234
+ obj.setSelectObjectContentOperationsPerSecond(itemArr);
235
+ }
236
+ if (data.hasOwnProperty('nfsReadRequestsPerSecond') && data.nfsReadRequestsPerSecond !== null && data.nfsReadRequestsPerSecond !== undefined) {
237
+ itemArr = [];
238
+ items = data.nfsReadRequestsPerSecond;
239
+ for (i = 0; i < items.length; i++) {
240
+ item = _TimeFloatValuePair.default.constructFromObject(items[i], undefined);
241
+ itemArr.push(item);
242
+ }
243
+ obj.setNfsReadRequestsPerSecond(itemArr);
244
+ }
245
+ if (data.hasOwnProperty('nfsWriteRequestsPerSecond') && data.nfsWriteRequestsPerSecond !== null && data.nfsWriteRequestsPerSecond !== undefined) {
246
+ itemArr = [];
247
+ items = data.nfsWriteRequestsPerSecond;
248
+ for (i = 0; i < items.length; i++) {
249
+ item = _TimeFloatValuePair.default.constructFromObject(items[i], undefined);
250
+ itemArr.push(item);
251
+ }
252
+ obj.setNfsWriteRequestsPerSecond(itemArr);
253
+ }
254
+ if (data.hasOwnProperty('nfsReadThroughputBytesPerSecond') && data.nfsReadThroughputBytesPerSecond !== null && data.nfsReadThroughputBytesPerSecond !== undefined) {
255
+ itemArr = [];
256
+ items = data.nfsReadThroughputBytesPerSecond;
257
+ for (i = 0; i < items.length; i++) {
258
+ item = _TimeFloatValuePair.default.constructFromObject(items[i], undefined);
259
+ itemArr.push(item);
260
+ }
261
+ obj.setNfsReadThroughputBytesPerSecond(itemArr);
262
+ }
263
+ if (data.hasOwnProperty('nfsWriteThroughputBytesPerSecond') && data.nfsWriteThroughputBytesPerSecond !== null && data.nfsWriteThroughputBytesPerSecond !== undefined) {
264
+ itemArr = [];
265
+ items = data.nfsWriteThroughputBytesPerSecond;
266
+ for (i = 0; i < items.length; i++) {
267
+ item = _TimeFloatValuePair.default.constructFromObject(items[i], undefined);
268
+ itemArr.push(item);
269
+ }
270
+ obj.setNfsWriteThroughputBytesPerSecond(itemArr);
271
+ }
272
+ if (!callFromChild) {
273
+ obj.$unknownFields = {
274
+ ...data.$unknownFields
275
+ };
276
+ for (const property in data) {
277
+ // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
278
+ // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
279
+ // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
280
+ // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
281
+ if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
282
+ obj.$unknownFields[property] = data[property];
283
+ }
284
+ }
285
+ }
104
286
  }
287
+ return obj;
288
+ }
105
289
 
106
- /**
107
- * Sets Number of Objects in the Object store. This stat is updated every 10 minutes. It includes the count of the incomplete multipart uploads.
108
- * @param {TimeIntValuePair[]} objectCount Number of Objects in the Object store. This stat is updated every 10 minutes. It includes the count of the incomplete multipart uploads.
109
- */
110
- }, {
111
- key: "setObjectCount",
112
- value: function setObjectCount(objectCount) {
113
- this.objectCount = objectCount;
114
- }
290
+ /**
291
+ * Converts a given snake_case string to camelCase.
292
+ * @param {string} snakeStr - The input string in snake_case format.
293
+ * @returns {string} - The converted string in camelCase format.
294
+ */
295
+ static snakeToCamel(snakeStr) {
296
+ return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
297
+ }
115
298
 
116
- /**
117
- * Returns Number of Buckets in the Object store. This stat is updated every 10 minutes.
118
- * @return {TimeIntValuePair[]}
119
- */
120
- }, {
121
- key: "getBucketCount",
122
- value: function getBucketCount() {
123
- return this.bucketCount;
124
- }
299
+ /**
300
+ * Returns Number of Objects in the Object store. This stat is updated every 10 minutes. It includes the count of the incomplete multipart uploads.
301
+ * @return {TimeIntValuePair[]}
302
+ */
303
+ getObjectCount() {
304
+ return this.objectCount;
305
+ }
125
306
 
126
- /**
127
- * Sets Number of Buckets in the Object store. This stat is updated every 10 minutes.
128
- * @param {TimeIntValuePair[]} bucketCount Number of Buckets in the Object store. This stat is updated every 10 minutes.
129
- */
130
- }, {
131
- key: "setBucketCount",
132
- value: function setBucketCount(bucketCount) {
133
- this.bucketCount = bucketCount;
134
- }
307
+ /**
308
+ * Sets Number of Objects in the Object store. This stat is updated every 10 minutes. It includes the count of the incomplete multipart uploads.
309
+ * @param {TimeIntValuePair[]} objectCount Number of Objects in the Object store. This stat is updated every 10 minutes. It includes the count of the incomplete multipart uploads.
310
+ */
311
+ setObjectCount(objectCount) {
312
+ this.objectCount = objectCount;
313
+ }
135
314
 
136
- /**
137
- * Returns Total storage in bytes used by the Objects and Buckets. This stat is updated every 10 minutes. It includes the storage used by the incomplete multipart uploads.
138
- * @return {TimeIntValuePair[]}
139
- */
140
- }, {
141
- key: "getStorageUsageBytes",
142
- value: function getStorageUsageBytes() {
143
- return this.storageUsageBytes;
144
- }
315
+ /**
316
+ * Returns Number of Buckets in the Object store. This stat is updated every 10 minutes.
317
+ * @return {TimeIntValuePair[]}
318
+ */
319
+ getBucketCount() {
320
+ return this.bucketCount;
321
+ }
145
322
 
146
- /**
147
- * Sets Total storage in bytes used by the Objects and Buckets. This stat is updated every 10 minutes. It includes the storage used by the incomplete multipart uploads.
148
- * @param {TimeIntValuePair[]} storageUsageBytes Total storage in bytes used by the Objects and Buckets. This stat is updated every 10 minutes. It includes the storage used by the incomplete multipart uploads.
149
- */
150
- }, {
151
- key: "setStorageUsageBytes",
152
- value: function setStorageUsageBytes(storageUsageBytes) {
153
- this.storageUsageBytes = storageUsageBytes;
154
- }
323
+ /**
324
+ * Sets Number of Buckets in the Object store. This stat is updated every 10 minutes.
325
+ * @param {TimeIntValuePair[]} bucketCount Number of Buckets in the Object store. This stat is updated every 10 minutes.
326
+ */
327
+ setBucketCount(bucketCount) {
328
+ this.bucketCount = bucketCount;
329
+ }
155
330
 
156
- /**
157
- * Returns Number of bytes written per second to the Object store from operations on the Objects and Buckets.
158
- * @return {TimeFloatValuePair[]}
159
- */
160
- }, {
161
- key: "getInboundBytesPerSecond",
162
- value: function getInboundBytesPerSecond() {
163
- return this.inboundBytesPerSecond;
164
- }
331
+ /**
332
+ * Returns Total storage in bytes used by the Objects and Buckets. This stat is updated every 10 minutes. It includes the storage used by the incomplete multipart uploads.
333
+ * @return {TimeIntValuePair[]}
334
+ */
335
+ getStorageUsageBytes() {
336
+ return this.storageUsageBytes;
337
+ }
165
338
 
166
- /**
167
- * Sets Number of bytes written per second to the Object store from operations on the Objects and Buckets.
168
- * @param {TimeFloatValuePair[]} inboundBytesPerSecond Number of bytes written per second to the Object store from operations on the Objects and Buckets.
169
- */
170
- }, {
171
- key: "setInboundBytesPerSecond",
172
- value: function setInboundBytesPerSecond(inboundBytesPerSecond) {
173
- this.inboundBytesPerSecond = inboundBytesPerSecond;
174
- }
339
+ /**
340
+ * Sets Total storage in bytes used by the Objects and Buckets. This stat is updated every 10 minutes. It includes the storage used by the incomplete multipart uploads.
341
+ * @param {TimeIntValuePair[]} storageUsageBytes Total storage in bytes used by the Objects and Buckets. This stat is updated every 10 minutes. It includes the storage used by the incomplete multipart uploads.
342
+ */
343
+ setStorageUsageBytes(storageUsageBytes) {
344
+ this.storageUsageBytes = storageUsageBytes;
345
+ }
175
346
 
176
- /**
177
- * Returns Number of bytes read per second from the Object store from operations on the Objects and Buckets.
178
- * @return {TimeFloatValuePair[]}
179
- */
180
- }, {
181
- key: "getOutboundBytesPerSecond",
182
- value: function getOutboundBytesPerSecond() {
183
- return this.outboundBytesPerSecond;
184
- }
347
+ /**
348
+ * Returns Number of bytes written per second to the Object store from operations on the Objects and Buckets.
349
+ * @return {TimeFloatValuePair[]}
350
+ */
351
+ getInboundBytesPerSecond() {
352
+ return this.inboundBytesPerSecond;
353
+ }
185
354
 
186
- /**
187
- * Sets Number of bytes read per second from the Object store from operations on the Objects and Buckets.
188
- * @param {TimeFloatValuePair[]} outboundBytesPerSecond Number of bytes read per second from the Object store from operations on the Objects and Buckets.
189
- */
190
- }, {
191
- key: "setOutboundBytesPerSecond",
192
- value: function setOutboundBytesPerSecond(outboundBytesPerSecond) {
193
- this.outboundBytesPerSecond = outboundBytesPerSecond;
194
- }
355
+ /**
356
+ * Sets Number of bytes written per second to the Object store from operations on the Objects and Buckets.
357
+ * @param {TimeFloatValuePair[]} inboundBytesPerSecond Number of bytes written per second to the Object store from operations on the Objects and Buckets.
358
+ */
359
+ setInboundBytesPerSecond(inboundBytesPerSecond) {
360
+ this.inboundBytesPerSecond = inboundBytesPerSecond;
361
+ }
195
362
 
196
- /**
197
- * Returns Throughput of HTTP GET requests in bytes per second.
198
- * @return {TimeFloatValuePair[]}
199
- */
200
- }, {
201
- key: "getGetRequestThroughputBytesPerSecond",
202
- value: function getGetRequestThroughputBytesPerSecond() {
203
- return this.getRequestThroughputBytesPerSecond;
204
- }
363
+ /**
364
+ * Returns Number of bytes read per second from the Object store from operations on the Objects and Buckets.
365
+ * @return {TimeFloatValuePair[]}
366
+ */
367
+ getOutboundBytesPerSecond() {
368
+ return this.outboundBytesPerSecond;
369
+ }
205
370
 
206
- /**
207
- * Sets Throughput of HTTP GET requests in bytes per second.
208
- * @param {TimeFloatValuePair[]} getRequestThroughputBytesPerSecond Throughput of HTTP GET requests in bytes per second.
209
- */
210
- }, {
211
- key: "setGetRequestThroughputBytesPerSecond",
212
- value: function setGetRequestThroughputBytesPerSecond(getRequestThroughputBytesPerSecond) {
213
- this.getRequestThroughputBytesPerSecond = getRequestThroughputBytesPerSecond;
214
- }
371
+ /**
372
+ * Sets Number of bytes read per second from the Object store from operations on the Objects and Buckets.
373
+ * @param {TimeFloatValuePair[]} outboundBytesPerSecond Number of bytes read per second from the Object store from operations on the Objects and Buckets.
374
+ */
375
+ setOutboundBytesPerSecond(outboundBytesPerSecond) {
376
+ this.outboundBytesPerSecond = outboundBytesPerSecond;
377
+ }
215
378
 
216
- /**
217
- * Returns Throughput of HTTP PUT requests in bytes per second.
218
- * @return {TimeFloatValuePair[]}
219
- */
220
- }, {
221
- key: "getPutRequestThroughputBytesPerSecond",
222
- value: function getPutRequestThroughputBytesPerSecond() {
223
- return this.putRequestThroughputBytesPerSecond;
224
- }
379
+ /**
380
+ * Returns Throughput of HTTP GET requests in bytes per second.
381
+ * @return {TimeFloatValuePair[]}
382
+ */
383
+ getGetRequestThroughputBytesPerSecond() {
384
+ return this.getRequestThroughputBytesPerSecond;
385
+ }
225
386
 
226
- /**
227
- * Sets Throughput of HTTP PUT requests in bytes per second.
228
- * @param {TimeFloatValuePair[]} putRequestThroughputBytesPerSecond Throughput of HTTP PUT requests in bytes per second.
229
- */
230
- }, {
231
- key: "setPutRequestThroughputBytesPerSecond",
232
- value: function setPutRequestThroughputBytesPerSecond(putRequestThroughputBytesPerSecond) {
233
- this.putRequestThroughputBytesPerSecond = putRequestThroughputBytesPerSecond;
234
- }
387
+ /**
388
+ * Sets Throughput of HTTP GET requests in bytes per second.
389
+ * @param {TimeFloatValuePair[]} getRequestThroughputBytesPerSecond Throughput of HTTP GET requests in bytes per second.
390
+ */
391
+ setGetRequestThroughputBytesPerSecond(getRequestThroughputBytesPerSecond) {
392
+ this.getRequestThroughputBytesPerSecond = getRequestThroughputBytesPerSecond;
393
+ }
235
394
 
236
- /**
237
- * Returns Number of HTTP POST requests per second on the Objects and Buckets of the Object store.
238
- * @return {TimeFloatValuePair[]}
239
- */
240
- }, {
241
- key: "getPostRequestsPerSecond",
242
- value: function getPostRequestsPerSecond() {
243
- return this.postRequestsPerSecond;
244
- }
395
+ /**
396
+ * Returns Throughput of HTTP PUT requests in bytes per second.
397
+ * @return {TimeFloatValuePair[]}
398
+ */
399
+ getPutRequestThroughputBytesPerSecond() {
400
+ return this.putRequestThroughputBytesPerSecond;
401
+ }
245
402
 
246
- /**
247
- * Sets Number of HTTP POST requests per second on the Objects and Buckets of the Object store.
248
- * @param {TimeFloatValuePair[]} postRequestsPerSecond Number of HTTP POST requests per second on the Objects and Buckets of the Object store.
249
- */
250
- }, {
251
- key: "setPostRequestsPerSecond",
252
- value: function setPostRequestsPerSecond(postRequestsPerSecond) {
253
- this.postRequestsPerSecond = postRequestsPerSecond;
254
- }
403
+ /**
404
+ * Sets Throughput of HTTP PUT requests in bytes per second.
405
+ * @param {TimeFloatValuePair[]} putRequestThroughputBytesPerSecond Throughput of HTTP PUT requests in bytes per second.
406
+ */
407
+ setPutRequestThroughputBytesPerSecond(putRequestThroughputBytesPerSecond) {
408
+ this.putRequestThroughputBytesPerSecond = putRequestThroughputBytesPerSecond;
409
+ }
255
410
 
256
- /**
257
- * Returns Number of HTTP HEAD requests per second on the Objects and Buckets of the Object store.
258
- * @return {TimeFloatValuePair[]}
259
- */
260
- }, {
261
- key: "getHeadRequestsPerSecond",
262
- value: function getHeadRequestsPerSecond() {
263
- return this.headRequestsPerSecond;
264
- }
411
+ /**
412
+ * Returns Number of HTTP POST requests per second on the Objects and Buckets of the Object store.
413
+ * @return {TimeFloatValuePair[]}
414
+ */
415
+ getPostRequestsPerSecond() {
416
+ return this.postRequestsPerSecond;
417
+ }
265
418
 
266
- /**
267
- * Sets Number of HTTP HEAD requests per second on the Objects and Buckets of the Object store.
268
- * @param {TimeFloatValuePair[]} headRequestsPerSecond Number of HTTP HEAD requests per second on the Objects and Buckets of the Object store.
269
- */
270
- }, {
271
- key: "setHeadRequestsPerSecond",
272
- value: function setHeadRequestsPerSecond(headRequestsPerSecond) {
273
- this.headRequestsPerSecond = headRequestsPerSecond;
274
- }
419
+ /**
420
+ * Sets Number of HTTP POST requests per second on the Objects and Buckets of the Object store.
421
+ * @param {TimeFloatValuePair[]} postRequestsPerSecond Number of HTTP POST requests per second on the Objects and Buckets of the Object store.
422
+ */
423
+ setPostRequestsPerSecond(postRequestsPerSecond) {
424
+ this.postRequestsPerSecond = postRequestsPerSecond;
425
+ }
275
426
 
276
- /**
277
- * Returns Number of HTTP GET requests per second on the Objects and Buckets of the Object store.
278
- * @return {TimeFloatValuePair[]}
279
- */
280
- }, {
281
- key: "getGetRequestsPerSecond",
282
- value: function getGetRequestsPerSecond() {
283
- return this.getRequestsPerSecond;
284
- }
427
+ /**
428
+ * Returns Number of HTTP HEAD requests per second on the Objects and Buckets of the Object store.
429
+ * @return {TimeFloatValuePair[]}
430
+ */
431
+ getHeadRequestsPerSecond() {
432
+ return this.headRequestsPerSecond;
433
+ }
285
434
 
286
- /**
287
- * Sets Number of HTTP GET requests per second on the Objects and Buckets of the Object store.
288
- * @param {TimeFloatValuePair[]} getRequestsPerSecond Number of HTTP GET requests per second on the Objects and Buckets of the Object store.
289
- */
290
- }, {
291
- key: "setGetRequestsPerSecond",
292
- value: function setGetRequestsPerSecond(getRequestsPerSecond) {
293
- this.getRequestsPerSecond = getRequestsPerSecond;
294
- }
435
+ /**
436
+ * Sets Number of HTTP HEAD requests per second on the Objects and Buckets of the Object store.
437
+ * @param {TimeFloatValuePair[]} headRequestsPerSecond Number of HTTP HEAD requests per second on the Objects and Buckets of the Object store.
438
+ */
439
+ setHeadRequestsPerSecond(headRequestsPerSecond) {
440
+ this.headRequestsPerSecond = headRequestsPerSecond;
441
+ }
295
442
 
296
- /**
297
- * Returns Number of HTTP PUT requests per second on the Objects and Buckets of the Object store.
298
- * @return {TimeFloatValuePair[]}
299
- */
300
- }, {
301
- key: "getPutRequestsPerSecond",
302
- value: function getPutRequestsPerSecond() {
303
- return this.putRequestsPerSecond;
304
- }
443
+ /**
444
+ * Returns Number of HTTP GET requests per second on the Objects and Buckets of the Object store.
445
+ * @return {TimeFloatValuePair[]}
446
+ */
447
+ getGetRequestsPerSecond() {
448
+ return this.getRequestsPerSecond;
449
+ }
305
450
 
306
- /**
307
- * Sets Number of HTTP PUT requests per second on the Objects and Buckets of the Object store.
308
- * @param {TimeFloatValuePair[]} putRequestsPerSecond Number of HTTP PUT requests per second on the Objects and Buckets of the Object store.
309
- */
310
- }, {
311
- key: "setPutRequestsPerSecond",
312
- value: function setPutRequestsPerSecond(putRequestsPerSecond) {
313
- this.putRequestsPerSecond = putRequestsPerSecond;
314
- }
451
+ /**
452
+ * Sets Number of HTTP GET requests per second on the Objects and Buckets of the Object store.
453
+ * @param {TimeFloatValuePair[]} getRequestsPerSecond Number of HTTP GET requests per second on the Objects and Buckets of the Object store.
454
+ */
455
+ setGetRequestsPerSecond(getRequestsPerSecond) {
456
+ this.getRequestsPerSecond = getRequestsPerSecond;
457
+ }
315
458
 
316
- /**
317
- * Returns Number of HTTP DELETE requests per second on the Objects and Buckets of the Object store.
318
- * @return {TimeFloatValuePair[]}
319
- */
320
- }, {
321
- key: "getDeleteRequestsPerSecond",
322
- value: function getDeleteRequestsPerSecond() {
323
- return this.deleteRequestsPerSecond;
324
- }
459
+ /**
460
+ * Returns Number of HTTP PUT requests per second on the Objects and Buckets of the Object store.
461
+ * @return {TimeFloatValuePair[]}
462
+ */
463
+ getPutRequestsPerSecond() {
464
+ return this.putRequestsPerSecond;
465
+ }
325
466
 
326
- /**
327
- * Sets Number of HTTP DELETE requests per second on the Objects and Buckets of the Object store.
328
- * @param {TimeFloatValuePair[]} deleteRequestsPerSecond Number of HTTP DELETE requests per second on the Objects and Buckets of the Object store.
329
- */
330
- }, {
331
- key: "setDeleteRequestsPerSecond",
332
- value: function setDeleteRequestsPerSecond(deleteRequestsPerSecond) {
333
- this.deleteRequestsPerSecond = deleteRequestsPerSecond;
334
- }
467
+ /**
468
+ * Sets Number of HTTP PUT requests per second on the Objects and Buckets of the Object store.
469
+ * @param {TimeFloatValuePair[]} putRequestsPerSecond Number of HTTP PUT requests per second on the Objects and Buckets of the Object store.
470
+ */
471
+ setPutRequestsPerSecond(putRequestsPerSecond) {
472
+ this.putRequestsPerSecond = putRequestsPerSecond;
473
+ }
335
474
 
336
- /**
337
- * Returns Number of operations per second on the objects of the Object store.
338
- * @return {TimeFloatValuePair[]}
339
- */
340
- }, {
341
- key: "getObjectOperationsPerSecond",
342
- value: function getObjectOperationsPerSecond() {
343
- return this.objectOperationsPerSecond;
344
- }
475
+ /**
476
+ * Returns Number of HTTP DELETE requests per second on the Objects and Buckets of the Object store.
477
+ * @return {TimeFloatValuePair[]}
478
+ */
479
+ getDeleteRequestsPerSecond() {
480
+ return this.deleteRequestsPerSecond;
481
+ }
345
482
 
346
- /**
347
- * Sets Number of operations per second on the objects of the Object store.
348
- * @param {TimeFloatValuePair[]} objectOperationsPerSecond Number of operations per second on the objects of the Object store.
349
- */
350
- }, {
351
- key: "setObjectOperationsPerSecond",
352
- value: function setObjectOperationsPerSecond(objectOperationsPerSecond) {
353
- this.objectOperationsPerSecond = objectOperationsPerSecond;
354
- }
483
+ /**
484
+ * Sets Number of HTTP DELETE requests per second on the Objects and Buckets of the Object store.
485
+ * @param {TimeFloatValuePair[]} deleteRequestsPerSecond Number of HTTP DELETE requests per second on the Objects and Buckets of the Object store.
486
+ */
487
+ setDeleteRequestsPerSecond(deleteRequestsPerSecond) {
488
+ this.deleteRequestsPerSecond = deleteRequestsPerSecond;
489
+ }
355
490
 
356
- /**
357
- * Returns Time to the first byte in milliseconds for Get Object requests.
358
- * @return {TimeFloatValuePair[]}
359
- */
360
- }, {
361
- key: "getGetObjectTtfbMsecs",
362
- value: function getGetObjectTtfbMsecs() {
363
- return this.getObjectTtfbMsecs;
364
- }
491
+ /**
492
+ * Returns Number of operations per second on the objects of the Object store.
493
+ * @return {TimeFloatValuePair[]}
494
+ */
495
+ getObjectOperationsPerSecond() {
496
+ return this.objectOperationsPerSecond;
497
+ }
365
498
 
366
- /**
367
- * Sets Time to the first byte in milliseconds for Get Object requests.
368
- * @param {TimeFloatValuePair[]} getObjectTtfbMsecs Time to the first byte in milliseconds for Get Object requests.
369
- */
370
- }, {
371
- key: "setGetObjectTtfbMsecs",
372
- value: function setGetObjectTtfbMsecs(getObjectTtfbMsecs) {
373
- this.getObjectTtfbMsecs = getObjectTtfbMsecs;
374
- }
499
+ /**
500
+ * Sets Number of operations per second on the objects of the Object store.
501
+ * @param {TimeFloatValuePair[]} objectOperationsPerSecond Number of operations per second on the objects of the Object store.
502
+ */
503
+ setObjectOperationsPerSecond(objectOperationsPerSecond) {
504
+ this.objectOperationsPerSecond = objectOperationsPerSecond;
505
+ }
375
506
 
376
- /**
377
- * Returns Number of GetBucket operations per second.
378
- * @return {TimeFloatValuePair[]}
379
- */
380
- }, {
381
- key: "getGetBucketOperationsPerSecond",
382
- value: function getGetBucketOperationsPerSecond() {
383
- return this.getBucketOperationsPerSecond;
384
- }
507
+ /**
508
+ * Returns Time to the first byte in milliseconds for Get Object requests.
509
+ * @return {TimeFloatValuePair[]}
510
+ */
511
+ getGetObjectTtfbMsecs() {
512
+ return this.getObjectTtfbMsecs;
513
+ }
385
514
 
386
- /**
387
- * Sets Number of GetBucket operations per second.
388
- * @param {TimeFloatValuePair[]} getBucketOperationsPerSecond Number of GetBucket operations per second.
389
- */
390
- }, {
391
- key: "setGetBucketOperationsPerSecond",
392
- value: function setGetBucketOperationsPerSecond(getBucketOperationsPerSecond) {
393
- this.getBucketOperationsPerSecond = getBucketOperationsPerSecond;
394
- }
515
+ /**
516
+ * Sets Time to the first byte in milliseconds for Get Object requests.
517
+ * @param {TimeFloatValuePair[]} getObjectTtfbMsecs Time to the first byte in milliseconds for Get Object requests.
518
+ */
519
+ setGetObjectTtfbMsecs(getObjectTtfbMsecs) {
520
+ this.getObjectTtfbMsecs = getObjectTtfbMsecs;
521
+ }
395
522
 
396
- /**
397
- * Returns The number of ListMultipartUploads operations per second.
398
- * @return {TimeFloatValuePair[]}
399
- */
400
- }, {
401
- key: "getListMultipartUploadsOperationsPerSecond",
402
- value: function getListMultipartUploadsOperationsPerSecond() {
403
- return this.listMultipartUploadsOperationsPerSecond;
404
- }
523
+ /**
524
+ * Returns Number of GetBucket operations per second.
525
+ * @return {TimeFloatValuePair[]}
526
+ */
527
+ getGetBucketOperationsPerSecond() {
528
+ return this.getBucketOperationsPerSecond;
529
+ }
405
530
 
406
- /**
407
- * Sets The number of ListMultipartUploads operations per second.
408
- * @param {TimeFloatValuePair[]} listMultipartUploadsOperationsPerSecond The number of ListMultipartUploads operations per second.
409
- */
410
- }, {
411
- key: "setListMultipartUploadsOperationsPerSecond",
412
- value: function setListMultipartUploadsOperationsPerSecond(listMultipartUploadsOperationsPerSecond) {
413
- this.listMultipartUploadsOperationsPerSecond = listMultipartUploadsOperationsPerSecond;
414
- }
531
+ /**
532
+ * Sets Number of GetBucket operations per second.
533
+ * @param {TimeFloatValuePair[]} getBucketOperationsPerSecond Number of GetBucket operations per second.
534
+ */
535
+ setGetBucketOperationsPerSecond(getBucketOperationsPerSecond) {
536
+ this.getBucketOperationsPerSecond = getBucketOperationsPerSecond;
537
+ }
415
538
 
416
- /**
417
- * Returns The number of CreateMultipartUpload operations per second.
418
- * @return {TimeFloatValuePair[]}
419
- */
420
- }, {
421
- key: "getMultipartUploadStartOperationsPerSecond",
422
- value: function getMultipartUploadStartOperationsPerSecond() {
423
- return this.multipartUploadStartOperationsPerSecond;
424
- }
539
+ /**
540
+ * Returns The number of ListMultipartUploads operations per second.
541
+ * @return {TimeFloatValuePair[]}
542
+ */
543
+ getListMultipartUploadsOperationsPerSecond() {
544
+ return this.listMultipartUploadsOperationsPerSecond;
545
+ }
425
546
 
426
- /**
427
- * Sets The number of CreateMultipartUpload operations per second.
428
- * @param {TimeFloatValuePair[]} multipartUploadStartOperationsPerSecond The number of CreateMultipartUpload operations per second.
429
- */
430
- }, {
431
- key: "setMultipartUploadStartOperationsPerSecond",
432
- value: function setMultipartUploadStartOperationsPerSecond(multipartUploadStartOperationsPerSecond) {
433
- this.multipartUploadStartOperationsPerSecond = multipartUploadStartOperationsPerSecond;
434
- }
547
+ /**
548
+ * Sets The number of ListMultipartUploads operations per second.
549
+ * @param {TimeFloatValuePair[]} listMultipartUploadsOperationsPerSecond The number of ListMultipartUploads operations per second.
550
+ */
551
+ setListMultipartUploadsOperationsPerSecond(listMultipartUploadsOperationsPerSecond) {
552
+ this.listMultipartUploadsOperationsPerSecond = listMultipartUploadsOperationsPerSecond;
553
+ }
435
554
 
436
- /**
437
- * Returns The number of SelectObjectContent operations per second.
438
- * @return {TimeFloatValuePair[]}
439
- */
440
- }, {
441
- key: "getSelectObjectContentOperationsPerSecond",
442
- value: function getSelectObjectContentOperationsPerSecond() {
443
- return this.selectObjectContentOperationsPerSecond;
444
- }
555
+ /**
556
+ * Returns The number of CreateMultipartUpload operations per second.
557
+ * @return {TimeFloatValuePair[]}
558
+ */
559
+ getMultipartUploadStartOperationsPerSecond() {
560
+ return this.multipartUploadStartOperationsPerSecond;
561
+ }
445
562
 
446
- /**
447
- * Sets The number of SelectObjectContent operations per second.
448
- * @param {TimeFloatValuePair[]} selectObjectContentOperationsPerSecond The number of SelectObjectContent operations per second.
449
- */
450
- }, {
451
- key: "setSelectObjectContentOperationsPerSecond",
452
- value: function setSelectObjectContentOperationsPerSecond(selectObjectContentOperationsPerSecond) {
453
- this.selectObjectContentOperationsPerSecond = selectObjectContentOperationsPerSecond;
454
- }
563
+ /**
564
+ * Sets The number of CreateMultipartUpload operations per second.
565
+ * @param {TimeFloatValuePair[]} multipartUploadStartOperationsPerSecond The number of CreateMultipartUpload operations per second.
566
+ */
567
+ setMultipartUploadStartOperationsPerSecond(multipartUploadStartOperationsPerSecond) {
568
+ this.multipartUploadStartOperationsPerSecond = multipartUploadStartOperationsPerSecond;
569
+ }
455
570
 
456
- /**
457
- * Returns Number of Network File System (NFS) read requests per second on the objects of the Object store.
458
- * @return {TimeFloatValuePair[]}
459
- */
460
- }, {
461
- key: "getNfsReadRequestsPerSecond",
462
- value: function getNfsReadRequestsPerSecond() {
463
- return this.nfsReadRequestsPerSecond;
464
- }
571
+ /**
572
+ * Returns The number of SelectObjectContent operations per second.
573
+ * @return {TimeFloatValuePair[]}
574
+ */
575
+ getSelectObjectContentOperationsPerSecond() {
576
+ return this.selectObjectContentOperationsPerSecond;
577
+ }
465
578
 
466
- /**
467
- * Sets Number of Network File System (NFS) read requests per second on the objects of the Object store.
468
- * @param {TimeFloatValuePair[]} nfsReadRequestsPerSecond Number of Network File System (NFS) read requests per second on the objects of the Object store.
469
- */
470
- }, {
471
- key: "setNfsReadRequestsPerSecond",
472
- value: function setNfsReadRequestsPerSecond(nfsReadRequestsPerSecond) {
473
- this.nfsReadRequestsPerSecond = nfsReadRequestsPerSecond;
474
- }
579
+ /**
580
+ * Sets The number of SelectObjectContent operations per second.
581
+ * @param {TimeFloatValuePair[]} selectObjectContentOperationsPerSecond The number of SelectObjectContent operations per second.
582
+ */
583
+ setSelectObjectContentOperationsPerSecond(selectObjectContentOperationsPerSecond) {
584
+ this.selectObjectContentOperationsPerSecond = selectObjectContentOperationsPerSecond;
585
+ }
475
586
 
476
- /**
477
- * Returns Number of Network File System (NFS) write requests per second on the objects of the Object store.
478
- * @return {TimeFloatValuePair[]}
479
- */
480
- }, {
481
- key: "getNfsWriteRequestsPerSecond",
482
- value: function getNfsWriteRequestsPerSecond() {
483
- return this.nfsWriteRequestsPerSecond;
484
- }
587
+ /**
588
+ * Returns Number of Network File System (NFS) read requests per second on the objects of the Object store.
589
+ * @return {TimeFloatValuePair[]}
590
+ */
591
+ getNfsReadRequestsPerSecond() {
592
+ return this.nfsReadRequestsPerSecond;
593
+ }
485
594
 
486
- /**
487
- * Sets Number of Network File System (NFS) write requests per second on the objects of the Object store.
488
- * @param {TimeFloatValuePair[]} nfsWriteRequestsPerSecond Number of Network File System (NFS) write requests per second on the objects of the Object store.
489
- */
490
- }, {
491
- key: "setNfsWriteRequestsPerSecond",
492
- value: function setNfsWriteRequestsPerSecond(nfsWriteRequestsPerSecond) {
493
- this.nfsWriteRequestsPerSecond = nfsWriteRequestsPerSecond;
494
- }
595
+ /**
596
+ * Sets Number of Network File System (NFS) read requests per second on the objects of the Object store.
597
+ * @param {TimeFloatValuePair[]} nfsReadRequestsPerSecond Number of Network File System (NFS) read requests per second on the objects of the Object store.
598
+ */
599
+ setNfsReadRequestsPerSecond(nfsReadRequestsPerSecond) {
600
+ this.nfsReadRequestsPerSecond = nfsReadRequestsPerSecond;
601
+ }
495
602
 
496
- /**
497
- * Returns Throughput of Network File System (NFS) read operations in bytes per second on the objects of the Object store.
498
- * @return {TimeFloatValuePair[]}
499
- */
500
- }, {
501
- key: "getNfsReadThroughputBytesPerSecond",
502
- value: function getNfsReadThroughputBytesPerSecond() {
503
- return this.nfsReadThroughputBytesPerSecond;
504
- }
603
+ /**
604
+ * Returns Number of Network File System (NFS) write requests per second on the objects of the Object store.
605
+ * @return {TimeFloatValuePair[]}
606
+ */
607
+ getNfsWriteRequestsPerSecond() {
608
+ return this.nfsWriteRequestsPerSecond;
609
+ }
505
610
 
506
- /**
507
- * Sets Throughput of Network File System (NFS) read operations in bytes per second on the objects of the Object store.
508
- * @param {TimeFloatValuePair[]} nfsReadThroughputBytesPerSecond Throughput of Network File System (NFS) read operations in bytes per second on the objects of the Object store.
509
- */
510
- }, {
511
- key: "setNfsReadThroughputBytesPerSecond",
512
- value: function setNfsReadThroughputBytesPerSecond(nfsReadThroughputBytesPerSecond) {
513
- this.nfsReadThroughputBytesPerSecond = nfsReadThroughputBytesPerSecond;
514
- }
611
+ /**
612
+ * Sets Number of Network File System (NFS) write requests per second on the objects of the Object store.
613
+ * @param {TimeFloatValuePair[]} nfsWriteRequestsPerSecond Number of Network File System (NFS) write requests per second on the objects of the Object store.
614
+ */
615
+ setNfsWriteRequestsPerSecond(nfsWriteRequestsPerSecond) {
616
+ this.nfsWriteRequestsPerSecond = nfsWriteRequestsPerSecond;
617
+ }
515
618
 
516
- /**
517
- * Returns Throughput of Network File System (NFS) write operations in bytes per second on the objects of the Object store.
518
- * @return {TimeFloatValuePair[]}
519
- */
520
- }, {
521
- key: "getNfsWriteThroughputBytesPerSecond",
522
- value: function getNfsWriteThroughputBytesPerSecond() {
523
- return this.nfsWriteThroughputBytesPerSecond;
524
- }
619
+ /**
620
+ * Returns Throughput of Network File System (NFS) read operations in bytes per second on the objects of the Object store.
621
+ * @return {TimeFloatValuePair[]}
622
+ */
623
+ getNfsReadThroughputBytesPerSecond() {
624
+ return this.nfsReadThroughputBytesPerSecond;
625
+ }
525
626
 
526
- /**
527
- * Sets Throughput of Network File System (NFS) write operations in bytes per second on the objects of the Object store.
528
- * @param {TimeFloatValuePair[]} nfsWriteThroughputBytesPerSecond Throughput of Network File System (NFS) write operations in bytes per second on the objects of the Object store.
529
- */
530
- }, {
531
- key: "setNfsWriteThroughputBytesPerSecond",
532
- value: function setNfsWriteThroughputBytesPerSecond(nfsWriteThroughputBytesPerSecond) {
533
- this.nfsWriteThroughputBytesPerSecond = nfsWriteThroughputBytesPerSecond;
534
- }
535
- }, {
536
- key: "toJson",
537
- value: function toJson(forMutation) {
538
- if (forMutation === false) {
539
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getObjectCount() !== 'undefined' && this.getObjectCount() !== null ? {
540
- 'objectCount': this.getObjectCount().map(function (item) {
541
- return item.toJson(false);
542
- })
543
- } : {}), typeof this.getBucketCount() !== 'undefined' && this.getBucketCount() !== null ? {
544
- 'bucketCount': this.getBucketCount().map(function (item) {
545
- return item.toJson(false);
546
- })
547
- } : {}), typeof this.getStorageUsageBytes() !== 'undefined' && this.getStorageUsageBytes() !== null ? {
548
- 'storageUsageBytes': this.getStorageUsageBytes().map(function (item) {
549
- return item.toJson(false);
550
- })
551
- } : {}), typeof this.getInboundBytesPerSecond() !== 'undefined' && this.getInboundBytesPerSecond() !== null ? {
552
- 'inboundBytesPerSecond': this.getInboundBytesPerSecond().map(function (item) {
553
- return item.toJson(false);
554
- })
555
- } : {}), typeof this.getOutboundBytesPerSecond() !== 'undefined' && this.getOutboundBytesPerSecond() !== null ? {
556
- 'outboundBytesPerSecond': this.getOutboundBytesPerSecond().map(function (item) {
557
- return item.toJson(false);
558
- })
559
- } : {}), typeof this.getGetRequestThroughputBytesPerSecond() !== 'undefined' && this.getGetRequestThroughputBytesPerSecond() !== null ? {
560
- 'getRequestThroughputBytesPerSecond': this.getGetRequestThroughputBytesPerSecond().map(function (item) {
561
- return item.toJson(false);
562
- })
563
- } : {}), typeof this.getPutRequestThroughputBytesPerSecond() !== 'undefined' && this.getPutRequestThroughputBytesPerSecond() !== null ? {
564
- 'putRequestThroughputBytesPerSecond': this.getPutRequestThroughputBytesPerSecond().map(function (item) {
565
- return item.toJson(false);
566
- })
567
- } : {}), typeof this.getPostRequestsPerSecond() !== 'undefined' && this.getPostRequestsPerSecond() !== null ? {
568
- 'postRequestsPerSecond': this.getPostRequestsPerSecond().map(function (item) {
569
- return item.toJson(false);
570
- })
571
- } : {}), typeof this.getHeadRequestsPerSecond() !== 'undefined' && this.getHeadRequestsPerSecond() !== null ? {
572
- 'headRequestsPerSecond': this.getHeadRequestsPerSecond().map(function (item) {
573
- return item.toJson(false);
574
- })
575
- } : {}), typeof this.getGetRequestsPerSecond() !== 'undefined' && this.getGetRequestsPerSecond() !== null ? {
576
- 'getRequestsPerSecond': this.getGetRequestsPerSecond().map(function (item) {
577
- return item.toJson(false);
578
- })
579
- } : {}), typeof this.getPutRequestsPerSecond() !== 'undefined' && this.getPutRequestsPerSecond() !== null ? {
580
- 'putRequestsPerSecond': this.getPutRequestsPerSecond().map(function (item) {
581
- return item.toJson(false);
582
- })
583
- } : {}), typeof this.getDeleteRequestsPerSecond() !== 'undefined' && this.getDeleteRequestsPerSecond() !== null ? {
584
- 'deleteRequestsPerSecond': this.getDeleteRequestsPerSecond().map(function (item) {
585
- return item.toJson(false);
586
- })
587
- } : {}), typeof this.getObjectOperationsPerSecond() !== 'undefined' && this.getObjectOperationsPerSecond() !== null ? {
588
- 'objectOperationsPerSecond': this.getObjectOperationsPerSecond().map(function (item) {
589
- return item.toJson(false);
590
- })
591
- } : {}), typeof this.getGetObjectTtfbMsecs() !== 'undefined' && this.getGetObjectTtfbMsecs() !== null ? {
592
- 'getObjectTtfbMsecs': this.getGetObjectTtfbMsecs().map(function (item) {
593
- return item.toJson(false);
594
- })
595
- } : {}), typeof this.getGetBucketOperationsPerSecond() !== 'undefined' && this.getGetBucketOperationsPerSecond() !== null ? {
596
- 'getBucketOperationsPerSecond': this.getGetBucketOperationsPerSecond().map(function (item) {
597
- return item.toJson(false);
598
- })
599
- } : {}), typeof this.getListMultipartUploadsOperationsPerSecond() !== 'undefined' && this.getListMultipartUploadsOperationsPerSecond() !== null ? {
600
- 'listMultipartUploadsOperationsPerSecond': this.getListMultipartUploadsOperationsPerSecond().map(function (item) {
601
- return item.toJson(false);
602
- })
603
- } : {}), typeof this.getMultipartUploadStartOperationsPerSecond() !== 'undefined' && this.getMultipartUploadStartOperationsPerSecond() !== null ? {
604
- 'multipartUploadStartOperationsPerSecond': this.getMultipartUploadStartOperationsPerSecond().map(function (item) {
605
- return item.toJson(false);
606
- })
607
- } : {}), typeof this.getSelectObjectContentOperationsPerSecond() !== 'undefined' && this.getSelectObjectContentOperationsPerSecond() !== null ? {
608
- 'selectObjectContentOperationsPerSecond': this.getSelectObjectContentOperationsPerSecond().map(function (item) {
609
- return item.toJson(false);
610
- })
611
- } : {}), typeof this.getNfsReadRequestsPerSecond() !== 'undefined' && this.getNfsReadRequestsPerSecond() !== null ? {
612
- 'nfsReadRequestsPerSecond': this.getNfsReadRequestsPerSecond().map(function (item) {
613
- return item.toJson(false);
614
- })
615
- } : {}), typeof this.getNfsWriteRequestsPerSecond() !== 'undefined' && this.getNfsWriteRequestsPerSecond() !== null ? {
616
- 'nfsWriteRequestsPerSecond': this.getNfsWriteRequestsPerSecond().map(function (item) {
617
- return item.toJson(false);
618
- })
619
- } : {}), typeof this.getNfsReadThroughputBytesPerSecond() !== 'undefined' && this.getNfsReadThroughputBytesPerSecond() !== null ? {
620
- 'nfsReadThroughputBytesPerSecond': this.getNfsReadThroughputBytesPerSecond().map(function (item) {
621
- return item.toJson(false);
622
- })
623
- } : {}), typeof this.getNfsWriteThroughputBytesPerSecond() !== 'undefined' && this.getNfsWriteThroughputBytesPerSecond() !== null ? {
624
- 'nfsWriteThroughputBytesPerSecond': this.getNfsWriteThroughputBytesPerSecond().map(function (item) {
625
- return item.toJson(false);
626
- })
627
- } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
627
+ /**
628
+ * Sets Throughput of Network File System (NFS) read operations in bytes per second on the objects of the Object store.
629
+ * @param {TimeFloatValuePair[]} nfsReadThroughputBytesPerSecond Throughput of Network File System (NFS) read operations in bytes per second on the objects of the Object store.
630
+ */
631
+ setNfsReadThroughputBytesPerSecond(nfsReadThroughputBytesPerSecond) {
632
+ this.nfsReadThroughputBytesPerSecond = nfsReadThroughputBytesPerSecond;
633
+ }
634
+
635
+ /**
636
+ * Returns Throughput of Network File System (NFS) write operations in bytes per second on the objects of the Object store.
637
+ * @return {TimeFloatValuePair[]}
638
+ */
639
+ getNfsWriteThroughputBytesPerSecond() {
640
+ return this.nfsWriteThroughputBytesPerSecond;
641
+ }
642
+
643
+ /**
644
+ * Sets Throughput of Network File System (NFS) write operations in bytes per second on the objects of the Object store.
645
+ * @param {TimeFloatValuePair[]} nfsWriteThroughputBytesPerSecond Throughput of Network File System (NFS) write operations in bytes per second on the objects of the Object store.
646
+ */
647
+ setNfsWriteThroughputBytesPerSecond(nfsWriteThroughputBytesPerSecond) {
648
+ this.nfsWriteThroughputBytesPerSecond = nfsWriteThroughputBytesPerSecond;
649
+ }
650
+ toJson(forMutation) {
651
+ if (forMutation === false) {
652
+ return {
653
+ ...(typeof this.getObjectCount() !== 'undefined' && this.getObjectCount() !== null ? {
654
+ 'objectCount': this.getObjectCount().map(item => item.toJson(false))
655
+ } : {}),
656
+ ...(typeof this.getBucketCount() !== 'undefined' && this.getBucketCount() !== null ? {
657
+ 'bucketCount': this.getBucketCount().map(item => item.toJson(false))
658
+ } : {}),
659
+ ...(typeof this.getStorageUsageBytes() !== 'undefined' && this.getStorageUsageBytes() !== null ? {
660
+ 'storageUsageBytes': this.getStorageUsageBytes().map(item => item.toJson(false))
661
+ } : {}),
662
+ ...(typeof this.getInboundBytesPerSecond() !== 'undefined' && this.getInboundBytesPerSecond() !== null ? {
663
+ 'inboundBytesPerSecond': this.getInboundBytesPerSecond().map(item => item.toJson(false))
664
+ } : {}),
665
+ ...(typeof this.getOutboundBytesPerSecond() !== 'undefined' && this.getOutboundBytesPerSecond() !== null ? {
666
+ 'outboundBytesPerSecond': this.getOutboundBytesPerSecond().map(item => item.toJson(false))
667
+ } : {}),
668
+ ...(typeof this.getGetRequestThroughputBytesPerSecond() !== 'undefined' && this.getGetRequestThroughputBytesPerSecond() !== null ? {
669
+ 'getRequestThroughputBytesPerSecond': this.getGetRequestThroughputBytesPerSecond().map(item => item.toJson(false))
670
+ } : {}),
671
+ ...(typeof this.getPutRequestThroughputBytesPerSecond() !== 'undefined' && this.getPutRequestThroughputBytesPerSecond() !== null ? {
672
+ 'putRequestThroughputBytesPerSecond': this.getPutRequestThroughputBytesPerSecond().map(item => item.toJson(false))
673
+ } : {}),
674
+ ...(typeof this.getPostRequestsPerSecond() !== 'undefined' && this.getPostRequestsPerSecond() !== null ? {
675
+ 'postRequestsPerSecond': this.getPostRequestsPerSecond().map(item => item.toJson(false))
676
+ } : {}),
677
+ ...(typeof this.getHeadRequestsPerSecond() !== 'undefined' && this.getHeadRequestsPerSecond() !== null ? {
678
+ 'headRequestsPerSecond': this.getHeadRequestsPerSecond().map(item => item.toJson(false))
679
+ } : {}),
680
+ ...(typeof this.getGetRequestsPerSecond() !== 'undefined' && this.getGetRequestsPerSecond() !== null ? {
681
+ 'getRequestsPerSecond': this.getGetRequestsPerSecond().map(item => item.toJson(false))
682
+ } : {}),
683
+ ...(typeof this.getPutRequestsPerSecond() !== 'undefined' && this.getPutRequestsPerSecond() !== null ? {
684
+ 'putRequestsPerSecond': this.getPutRequestsPerSecond().map(item => item.toJson(false))
685
+ } : {}),
686
+ ...(typeof this.getDeleteRequestsPerSecond() !== 'undefined' && this.getDeleteRequestsPerSecond() !== null ? {
687
+ 'deleteRequestsPerSecond': this.getDeleteRequestsPerSecond().map(item => item.toJson(false))
688
+ } : {}),
689
+ ...(typeof this.getObjectOperationsPerSecond() !== 'undefined' && this.getObjectOperationsPerSecond() !== null ? {
690
+ 'objectOperationsPerSecond': this.getObjectOperationsPerSecond().map(item => item.toJson(false))
691
+ } : {}),
692
+ ...(typeof this.getGetObjectTtfbMsecs() !== 'undefined' && this.getGetObjectTtfbMsecs() !== null ? {
693
+ 'getObjectTtfbMsecs': this.getGetObjectTtfbMsecs().map(item => item.toJson(false))
694
+ } : {}),
695
+ ...(typeof this.getGetBucketOperationsPerSecond() !== 'undefined' && this.getGetBucketOperationsPerSecond() !== null ? {
696
+ 'getBucketOperationsPerSecond': this.getGetBucketOperationsPerSecond().map(item => item.toJson(false))
697
+ } : {}),
698
+ ...(typeof this.getListMultipartUploadsOperationsPerSecond() !== 'undefined' && this.getListMultipartUploadsOperationsPerSecond() !== null ? {
699
+ 'listMultipartUploadsOperationsPerSecond': this.getListMultipartUploadsOperationsPerSecond().map(item => item.toJson(false))
700
+ } : {}),
701
+ ...(typeof this.getMultipartUploadStartOperationsPerSecond() !== 'undefined' && this.getMultipartUploadStartOperationsPerSecond() !== null ? {
702
+ 'multipartUploadStartOperationsPerSecond': this.getMultipartUploadStartOperationsPerSecond().map(item => item.toJson(false))
703
+ } : {}),
704
+ ...(typeof this.getSelectObjectContentOperationsPerSecond() !== 'undefined' && this.getSelectObjectContentOperationsPerSecond() !== null ? {
705
+ 'selectObjectContentOperationsPerSecond': this.getSelectObjectContentOperationsPerSecond().map(item => item.toJson(false))
706
+ } : {}),
707
+ ...(typeof this.getNfsReadRequestsPerSecond() !== 'undefined' && this.getNfsReadRequestsPerSecond() !== null ? {
708
+ 'nfsReadRequestsPerSecond': this.getNfsReadRequestsPerSecond().map(item => item.toJson(false))
709
+ } : {}),
710
+ ...(typeof this.getNfsWriteRequestsPerSecond() !== 'undefined' && this.getNfsWriteRequestsPerSecond() !== null ? {
711
+ 'nfsWriteRequestsPerSecond': this.getNfsWriteRequestsPerSecond().map(item => item.toJson(false))
712
+ } : {}),
713
+ ...(typeof this.getNfsReadThroughputBytesPerSecond() !== 'undefined' && this.getNfsReadThroughputBytesPerSecond() !== null ? {
714
+ 'nfsReadThroughputBytesPerSecond': this.getNfsReadThroughputBytesPerSecond().map(item => item.toJson(false))
715
+ } : {}),
716
+ ...(typeof this.getNfsWriteThroughputBytesPerSecond() !== 'undefined' && this.getNfsWriteThroughputBytesPerSecond() !== null ? {
717
+ 'nfsWriteThroughputBytesPerSecond': this.getNfsWriteThroughputBytesPerSecond().map(item => item.toJson(false))
718
+ } : {}),
719
+ ...(typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
628
720
  'extId': this.getExtId()
629
- } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
630
- 'links': this.getLinks().map(function (item) {
631
- return item.toJson(false);
632
- })
633
- } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
721
+ } : {}),
722
+ ...(typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
723
+ 'links': this.getLinks().map(item => item.toJson(false))
724
+ } : {}),
725
+ ...(typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
634
726
  'tenantId': this.getTenantId()
635
- } : {}), {}, {
636
- '$reserved': this.get$Reserved(),
637
- '$objectType': this.get$ObjectType(),
638
- '$unknownFields': this.get$UnknownFields()
639
- });
640
- }
641
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getObjectCount() !== 'undefined' && this.getObjectCount() !== null ? {
642
- 'objectCount': this.getObjectCount().map(function (item) {
643
- return item.toJson(false);
644
- })
645
- } : {}), typeof this.getBucketCount() !== 'undefined' && this.getBucketCount() !== null ? {
646
- 'bucketCount': this.getBucketCount().map(function (item) {
647
- return item.toJson(false);
648
- })
649
- } : {}), typeof this.getStorageUsageBytes() !== 'undefined' && this.getStorageUsageBytes() !== null ? {
650
- 'storageUsageBytes': this.getStorageUsageBytes().map(function (item) {
651
- return item.toJson(false);
652
- })
653
- } : {}), typeof this.getInboundBytesPerSecond() !== 'undefined' && this.getInboundBytesPerSecond() !== null ? {
654
- 'inboundBytesPerSecond': this.getInboundBytesPerSecond().map(function (item) {
655
- return item.toJson(false);
656
- })
657
- } : {}), typeof this.getOutboundBytesPerSecond() !== 'undefined' && this.getOutboundBytesPerSecond() !== null ? {
658
- 'outboundBytesPerSecond': this.getOutboundBytesPerSecond().map(function (item) {
659
- return item.toJson(false);
660
- })
661
- } : {}), typeof this.getGetRequestThroughputBytesPerSecond() !== 'undefined' && this.getGetRequestThroughputBytesPerSecond() !== null ? {
662
- 'getRequestThroughputBytesPerSecond': this.getGetRequestThroughputBytesPerSecond().map(function (item) {
663
- return item.toJson(false);
664
- })
665
- } : {}), typeof this.getPutRequestThroughputBytesPerSecond() !== 'undefined' && this.getPutRequestThroughputBytesPerSecond() !== null ? {
666
- 'putRequestThroughputBytesPerSecond': this.getPutRequestThroughputBytesPerSecond().map(function (item) {
667
- return item.toJson(false);
668
- })
669
- } : {}), typeof this.getPostRequestsPerSecond() !== 'undefined' && this.getPostRequestsPerSecond() !== null ? {
670
- 'postRequestsPerSecond': this.getPostRequestsPerSecond().map(function (item) {
671
- return item.toJson(false);
672
- })
673
- } : {}), typeof this.getHeadRequestsPerSecond() !== 'undefined' && this.getHeadRequestsPerSecond() !== null ? {
674
- 'headRequestsPerSecond': this.getHeadRequestsPerSecond().map(function (item) {
675
- return item.toJson(false);
676
- })
677
- } : {}), typeof this.getGetRequestsPerSecond() !== 'undefined' && this.getGetRequestsPerSecond() !== null ? {
678
- 'getRequestsPerSecond': this.getGetRequestsPerSecond().map(function (item) {
679
- return item.toJson(false);
680
- })
681
- } : {}), typeof this.getPutRequestsPerSecond() !== 'undefined' && this.getPutRequestsPerSecond() !== null ? {
682
- 'putRequestsPerSecond': this.getPutRequestsPerSecond().map(function (item) {
683
- return item.toJson(false);
684
- })
685
- } : {}), typeof this.getDeleteRequestsPerSecond() !== 'undefined' && this.getDeleteRequestsPerSecond() !== null ? {
686
- 'deleteRequestsPerSecond': this.getDeleteRequestsPerSecond().map(function (item) {
687
- return item.toJson(false);
688
- })
689
- } : {}), typeof this.getObjectOperationsPerSecond() !== 'undefined' && this.getObjectOperationsPerSecond() !== null ? {
690
- 'objectOperationsPerSecond': this.getObjectOperationsPerSecond().map(function (item) {
691
- return item.toJson(false);
692
- })
693
- } : {}), typeof this.getGetObjectTtfbMsecs() !== 'undefined' && this.getGetObjectTtfbMsecs() !== null ? {
694
- 'getObjectTtfbMsecs': this.getGetObjectTtfbMsecs().map(function (item) {
695
- return item.toJson(false);
696
- })
697
- } : {}), typeof this.getGetBucketOperationsPerSecond() !== 'undefined' && this.getGetBucketOperationsPerSecond() !== null ? {
698
- 'getBucketOperationsPerSecond': this.getGetBucketOperationsPerSecond().map(function (item) {
699
- return item.toJson(false);
700
- })
701
- } : {}), typeof this.getListMultipartUploadsOperationsPerSecond() !== 'undefined' && this.getListMultipartUploadsOperationsPerSecond() !== null ? {
702
- 'listMultipartUploadsOperationsPerSecond': this.getListMultipartUploadsOperationsPerSecond().map(function (item) {
703
- return item.toJson(false);
704
- })
705
- } : {}), typeof this.getMultipartUploadStartOperationsPerSecond() !== 'undefined' && this.getMultipartUploadStartOperationsPerSecond() !== null ? {
706
- 'multipartUploadStartOperationsPerSecond': this.getMultipartUploadStartOperationsPerSecond().map(function (item) {
707
- return item.toJson(false);
708
- })
709
- } : {}), typeof this.getSelectObjectContentOperationsPerSecond() !== 'undefined' && this.getSelectObjectContentOperationsPerSecond() !== null ? {
710
- 'selectObjectContentOperationsPerSecond': this.getSelectObjectContentOperationsPerSecond().map(function (item) {
711
- return item.toJson(false);
712
- })
713
- } : {}), typeof this.getNfsReadRequestsPerSecond() !== 'undefined' && this.getNfsReadRequestsPerSecond() !== null ? {
714
- 'nfsReadRequestsPerSecond': this.getNfsReadRequestsPerSecond().map(function (item) {
715
- return item.toJson(false);
716
- })
717
- } : {}), typeof this.getNfsWriteRequestsPerSecond() !== 'undefined' && this.getNfsWriteRequestsPerSecond() !== null ? {
718
- 'nfsWriteRequestsPerSecond': this.getNfsWriteRequestsPerSecond().map(function (item) {
719
- return item.toJson(false);
720
- })
721
- } : {}), typeof this.getNfsReadThroughputBytesPerSecond() !== 'undefined' && this.getNfsReadThroughputBytesPerSecond() !== null ? {
722
- 'nfsReadThroughputBytesPerSecond': this.getNfsReadThroughputBytesPerSecond().map(function (item) {
723
- return item.toJson(false);
724
- })
725
- } : {}), typeof this.getNfsWriteThroughputBytesPerSecond() !== 'undefined' && this.getNfsWriteThroughputBytesPerSecond() !== null ? {
726
- 'nfsWriteThroughputBytesPerSecond': this.getNfsWriteThroughputBytesPerSecond().map(function (item) {
727
- return item.toJson(false);
728
- })
729
- } : {}), {}, {
727
+ } : {}),
730
728
  '$reserved': this.get$Reserved(),
731
729
  '$objectType': this.get$ObjectType(),
732
- '$unknownFields': this.get$UnknownFields()
733
- });
730
+ ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
731
+ '$unknownFields': {}
732
+ };
733
+ }
734
+ return {
735
+ ...(typeof this.getObjectCount() !== 'undefined' && this.getObjectCount() !== null ? {
736
+ 'objectCount': this.getObjectCount().map(item => item.toJson(false))
737
+ } : {}),
738
+ ...(typeof this.getBucketCount() !== 'undefined' && this.getBucketCount() !== null ? {
739
+ 'bucketCount': this.getBucketCount().map(item => item.toJson(false))
740
+ } : {}),
741
+ ...(typeof this.getStorageUsageBytes() !== 'undefined' && this.getStorageUsageBytes() !== null ? {
742
+ 'storageUsageBytes': this.getStorageUsageBytes().map(item => item.toJson(false))
743
+ } : {}),
744
+ ...(typeof this.getInboundBytesPerSecond() !== 'undefined' && this.getInboundBytesPerSecond() !== null ? {
745
+ 'inboundBytesPerSecond': this.getInboundBytesPerSecond().map(item => item.toJson(false))
746
+ } : {}),
747
+ ...(typeof this.getOutboundBytesPerSecond() !== 'undefined' && this.getOutboundBytesPerSecond() !== null ? {
748
+ 'outboundBytesPerSecond': this.getOutboundBytesPerSecond().map(item => item.toJson(false))
749
+ } : {}),
750
+ ...(typeof this.getGetRequestThroughputBytesPerSecond() !== 'undefined' && this.getGetRequestThroughputBytesPerSecond() !== null ? {
751
+ 'getRequestThroughputBytesPerSecond': this.getGetRequestThroughputBytesPerSecond().map(item => item.toJson(false))
752
+ } : {}),
753
+ ...(typeof this.getPutRequestThroughputBytesPerSecond() !== 'undefined' && this.getPutRequestThroughputBytesPerSecond() !== null ? {
754
+ 'putRequestThroughputBytesPerSecond': this.getPutRequestThroughputBytesPerSecond().map(item => item.toJson(false))
755
+ } : {}),
756
+ ...(typeof this.getPostRequestsPerSecond() !== 'undefined' && this.getPostRequestsPerSecond() !== null ? {
757
+ 'postRequestsPerSecond': this.getPostRequestsPerSecond().map(item => item.toJson(false))
758
+ } : {}),
759
+ ...(typeof this.getHeadRequestsPerSecond() !== 'undefined' && this.getHeadRequestsPerSecond() !== null ? {
760
+ 'headRequestsPerSecond': this.getHeadRequestsPerSecond().map(item => item.toJson(false))
761
+ } : {}),
762
+ ...(typeof this.getGetRequestsPerSecond() !== 'undefined' && this.getGetRequestsPerSecond() !== null ? {
763
+ 'getRequestsPerSecond': this.getGetRequestsPerSecond().map(item => item.toJson(false))
764
+ } : {}),
765
+ ...(typeof this.getPutRequestsPerSecond() !== 'undefined' && this.getPutRequestsPerSecond() !== null ? {
766
+ 'putRequestsPerSecond': this.getPutRequestsPerSecond().map(item => item.toJson(false))
767
+ } : {}),
768
+ ...(typeof this.getDeleteRequestsPerSecond() !== 'undefined' && this.getDeleteRequestsPerSecond() !== null ? {
769
+ 'deleteRequestsPerSecond': this.getDeleteRequestsPerSecond().map(item => item.toJson(false))
770
+ } : {}),
771
+ ...(typeof this.getObjectOperationsPerSecond() !== 'undefined' && this.getObjectOperationsPerSecond() !== null ? {
772
+ 'objectOperationsPerSecond': this.getObjectOperationsPerSecond().map(item => item.toJson(false))
773
+ } : {}),
774
+ ...(typeof this.getGetObjectTtfbMsecs() !== 'undefined' && this.getGetObjectTtfbMsecs() !== null ? {
775
+ 'getObjectTtfbMsecs': this.getGetObjectTtfbMsecs().map(item => item.toJson(false))
776
+ } : {}),
777
+ ...(typeof this.getGetBucketOperationsPerSecond() !== 'undefined' && this.getGetBucketOperationsPerSecond() !== null ? {
778
+ 'getBucketOperationsPerSecond': this.getGetBucketOperationsPerSecond().map(item => item.toJson(false))
779
+ } : {}),
780
+ ...(typeof this.getListMultipartUploadsOperationsPerSecond() !== 'undefined' && this.getListMultipartUploadsOperationsPerSecond() !== null ? {
781
+ 'listMultipartUploadsOperationsPerSecond': this.getListMultipartUploadsOperationsPerSecond().map(item => item.toJson(false))
782
+ } : {}),
783
+ ...(typeof this.getMultipartUploadStartOperationsPerSecond() !== 'undefined' && this.getMultipartUploadStartOperationsPerSecond() !== null ? {
784
+ 'multipartUploadStartOperationsPerSecond': this.getMultipartUploadStartOperationsPerSecond().map(item => item.toJson(false))
785
+ } : {}),
786
+ ...(typeof this.getSelectObjectContentOperationsPerSecond() !== 'undefined' && this.getSelectObjectContentOperationsPerSecond() !== null ? {
787
+ 'selectObjectContentOperationsPerSecond': this.getSelectObjectContentOperationsPerSecond().map(item => item.toJson(false))
788
+ } : {}),
789
+ ...(typeof this.getNfsReadRequestsPerSecond() !== 'undefined' && this.getNfsReadRequestsPerSecond() !== null ? {
790
+ 'nfsReadRequestsPerSecond': this.getNfsReadRequestsPerSecond().map(item => item.toJson(false))
791
+ } : {}),
792
+ ...(typeof this.getNfsWriteRequestsPerSecond() !== 'undefined' && this.getNfsWriteRequestsPerSecond() !== null ? {
793
+ 'nfsWriteRequestsPerSecond': this.getNfsWriteRequestsPerSecond().map(item => item.toJson(false))
794
+ } : {}),
795
+ ...(typeof this.getNfsReadThroughputBytesPerSecond() !== 'undefined' && this.getNfsReadThroughputBytesPerSecond() !== null ? {
796
+ 'nfsReadThroughputBytesPerSecond': this.getNfsReadThroughputBytesPerSecond().map(item => item.toJson(false))
797
+ } : {}),
798
+ ...(typeof this.getNfsWriteThroughputBytesPerSecond() !== 'undefined' && this.getNfsWriteThroughputBytesPerSecond() !== null ? {
799
+ 'nfsWriteThroughputBytesPerSecond': this.getNfsWriteThroughputBytesPerSecond().map(item => item.toJson(false))
800
+ } : {}),
801
+ '$reserved': this.get$Reserved(),
802
+ '$objectType': this.get$ObjectType(),
803
+ ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
804
+ '$unknownFields': {}
805
+ };
806
+ }
807
+ validate(scope, properties) {
808
+ let propList = [];
809
+ if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
810
+ //cases validate() and validate(scope)
811
+ propList = [];
812
+ } else if (arguments.length === 1) {
813
+ //case validate(properties)
814
+ propList = arguments[0];
815
+ scope = null;
816
+ } else {
817
+ //case validate(scope, properties)
818
+ propList = arguments[1];
734
819
  }
735
- }, {
736
- key: "validate",
737
- value: function validate(scope, properties) {
738
- var _this2 = this;
739
- var propList = [];
740
- if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
741
- //cases validate() and validate(scope)
742
- propList = [];
743
- } else if (arguments.length === 1) {
744
- //case validate(properties)
745
- propList = arguments[0];
746
- scope = null;
820
+ let res = [];
821
+ let err = null;
822
+ propList.forEach(property => {
823
+ err = this.validateProperty(property, scope);
824
+ if (err) {
825
+ res.push(err);
826
+ }
827
+ });
828
+ return new Promise(function (resolve, reject) {
829
+ if (res.length !== 0) {
830
+ reject(err);
747
831
  } else {
748
- //case validate(scope, properties)
749
- propList = arguments[1];
750
- }
751
- var res = [];
752
- var err = null;
753
- propList.forEach(function (property) {
754
- err = _this2.validateProperty(property, scope);
755
- if (err) {
756
- res.push(err);
757
- }
758
- });
759
- return new Promise(function (resolve, reject) {
760
- if (res.length !== 0) {
761
- reject(err);
762
- } else {
763
- resolve();
764
- }
765
- });
832
+ resolve();
833
+ }
834
+ });
835
+ }
836
+ validateProperty(scope, property) {
837
+ if (property === "objectCount") {
838
+ if (typeof this.objectCount === 'undefined' || this.objectCount === null) {
839
+ return new _ValidationError.default("objectCount", "undefined or null");
840
+ }
841
+ if (!_ValidationUtils.default.validateMaxItems(this.objectCount, 150)) {
842
+ return new _ValidationError.default("objectCount", "does not satisfy required maxItems constraint: 150");
843
+ }
844
+ if (!_ValidationUtils.default.validateMinItems(this.objectCount, 1)) {
845
+ return new _ValidationError.default("objectCount", "does not satisfy required minItems constraint: 1");
846
+ }
766
847
  }
767
- }, {
768
- key: "validateProperty",
769
- value: function validateProperty(scope, property) {
770
- if (property === "objectCount") {
771
- if (typeof this.objectCount === 'undefined' || this.objectCount === null) {
772
- return new _ValidationError["default"]("objectCount", "undefined or null");
773
- }
774
- if (!_ValidationUtils["default"].validateMaxItems(this.objectCount, 150)) {
775
- return new _ValidationError["default"]("objectCount", "does not satisfy required maxItems constraint: 150");
776
- }
777
- if (!_ValidationUtils["default"].validateMinItems(this.objectCount, 1)) {
778
- return new _ValidationError["default"]("objectCount", "does not satisfy required minItems constraint: 1");
779
- }
848
+ if (property === "bucketCount") {
849
+ if (typeof this.bucketCount === 'undefined' || this.bucketCount === null) {
850
+ return new _ValidationError.default("bucketCount", "undefined or null");
780
851
  }
781
- if (property === "bucketCount") {
782
- if (typeof this.bucketCount === 'undefined' || this.bucketCount === null) {
783
- return new _ValidationError["default"]("bucketCount", "undefined or null");
784
- }
785
- if (!_ValidationUtils["default"].validateMaxItems(this.bucketCount, 150)) {
786
- return new _ValidationError["default"]("bucketCount", "does not satisfy required maxItems constraint: 150");
787
- }
788
- if (!_ValidationUtils["default"].validateMinItems(this.bucketCount, 1)) {
789
- return new _ValidationError["default"]("bucketCount", "does not satisfy required minItems constraint: 1");
790
- }
852
+ if (!_ValidationUtils.default.validateMaxItems(this.bucketCount, 150)) {
853
+ return new _ValidationError.default("bucketCount", "does not satisfy required maxItems constraint: 150");
791
854
  }
792
- if (property === "storageUsageBytes") {
793
- if (typeof this.storageUsageBytes === 'undefined' || this.storageUsageBytes === null) {
794
- return new _ValidationError["default"]("storageUsageBytes", "undefined or null");
795
- }
796
- if (!_ValidationUtils["default"].validateMaxItems(this.storageUsageBytes, 150)) {
797
- return new _ValidationError["default"]("storageUsageBytes", "does not satisfy required maxItems constraint: 150");
798
- }
799
- if (!_ValidationUtils["default"].validateMinItems(this.storageUsageBytes, 1)) {
800
- return new _ValidationError["default"]("storageUsageBytes", "does not satisfy required minItems constraint: 1");
801
- }
855
+ if (!_ValidationUtils.default.validateMinItems(this.bucketCount, 1)) {
856
+ return new _ValidationError.default("bucketCount", "does not satisfy required minItems constraint: 1");
802
857
  }
803
- if (property === "inboundBytesPerSecond") {
804
- if (typeof this.inboundBytesPerSecond === 'undefined' || this.inboundBytesPerSecond === null) {
805
- return new _ValidationError["default"]("inboundBytesPerSecond", "undefined or null");
806
- }
807
- if (!_ValidationUtils["default"].validateMaxItems(this.inboundBytesPerSecond, 150)) {
808
- return new _ValidationError["default"]("inboundBytesPerSecond", "does not satisfy required maxItems constraint: 150");
809
- }
810
- if (!_ValidationUtils["default"].validateMinItems(this.inboundBytesPerSecond, 1)) {
811
- return new _ValidationError["default"]("inboundBytesPerSecond", "does not satisfy required minItems constraint: 1");
812
- }
858
+ }
859
+ if (property === "storageUsageBytes") {
860
+ if (typeof this.storageUsageBytes === 'undefined' || this.storageUsageBytes === null) {
861
+ return new _ValidationError.default("storageUsageBytes", "undefined or null");
813
862
  }
814
- if (property === "outboundBytesPerSecond") {
815
- if (typeof this.outboundBytesPerSecond === 'undefined' || this.outboundBytesPerSecond === null) {
816
- return new _ValidationError["default"]("outboundBytesPerSecond", "undefined or null");
817
- }
818
- if (!_ValidationUtils["default"].validateMaxItems(this.outboundBytesPerSecond, 150)) {
819
- return new _ValidationError["default"]("outboundBytesPerSecond", "does not satisfy required maxItems constraint: 150");
820
- }
821
- if (!_ValidationUtils["default"].validateMinItems(this.outboundBytesPerSecond, 1)) {
822
- return new _ValidationError["default"]("outboundBytesPerSecond", "does not satisfy required minItems constraint: 1");
823
- }
863
+ if (!_ValidationUtils.default.validateMaxItems(this.storageUsageBytes, 150)) {
864
+ return new _ValidationError.default("storageUsageBytes", "does not satisfy required maxItems constraint: 150");
824
865
  }
825
- if (property === "getRequestThroughputBytesPerSecond") {
826
- if (typeof this.getRequestThroughputBytesPerSecond === 'undefined' || this.getRequestThroughputBytesPerSecond === null) {
827
- return new _ValidationError["default"]("getRequestThroughputBytesPerSecond", "undefined or null");
828
- }
829
- if (!_ValidationUtils["default"].validateMaxItems(this.getRequestThroughputBytesPerSecond, 150)) {
830
- return new _ValidationError["default"]("getRequestThroughputBytesPerSecond", "does not satisfy required maxItems constraint: 150");
831
- }
832
- if (!_ValidationUtils["default"].validateMinItems(this.getRequestThroughputBytesPerSecond, 1)) {
833
- return new _ValidationError["default"]("getRequestThroughputBytesPerSecond", "does not satisfy required minItems constraint: 1");
834
- }
866
+ if (!_ValidationUtils.default.validateMinItems(this.storageUsageBytes, 1)) {
867
+ return new _ValidationError.default("storageUsageBytes", "does not satisfy required minItems constraint: 1");
835
868
  }
836
- if (property === "putRequestThroughputBytesPerSecond") {
837
- if (typeof this.putRequestThroughputBytesPerSecond === 'undefined' || this.putRequestThroughputBytesPerSecond === null) {
838
- return new _ValidationError["default"]("putRequestThroughputBytesPerSecond", "undefined or null");
839
- }
840
- if (!_ValidationUtils["default"].validateMaxItems(this.putRequestThroughputBytesPerSecond, 150)) {
841
- return new _ValidationError["default"]("putRequestThroughputBytesPerSecond", "does not satisfy required maxItems constraint: 150");
842
- }
843
- if (!_ValidationUtils["default"].validateMinItems(this.putRequestThroughputBytesPerSecond, 1)) {
844
- return new _ValidationError["default"]("putRequestThroughputBytesPerSecond", "does not satisfy required minItems constraint: 1");
845
- }
869
+ }
870
+ if (property === "inboundBytesPerSecond") {
871
+ if (typeof this.inboundBytesPerSecond === 'undefined' || this.inboundBytesPerSecond === null) {
872
+ return new _ValidationError.default("inboundBytesPerSecond", "undefined or null");
846
873
  }
847
- if (property === "postRequestsPerSecond") {
848
- if (typeof this.postRequestsPerSecond === 'undefined' || this.postRequestsPerSecond === null) {
849
- return new _ValidationError["default"]("postRequestsPerSecond", "undefined or null");
850
- }
851
- if (!_ValidationUtils["default"].validateMaxItems(this.postRequestsPerSecond, 150)) {
852
- return new _ValidationError["default"]("postRequestsPerSecond", "does not satisfy required maxItems constraint: 150");
853
- }
854
- if (!_ValidationUtils["default"].validateMinItems(this.postRequestsPerSecond, 1)) {
855
- return new _ValidationError["default"]("postRequestsPerSecond", "does not satisfy required minItems constraint: 1");
856
- }
874
+ if (!_ValidationUtils.default.validateMaxItems(this.inboundBytesPerSecond, 150)) {
875
+ return new _ValidationError.default("inboundBytesPerSecond", "does not satisfy required maxItems constraint: 150");
857
876
  }
858
- if (property === "headRequestsPerSecond") {
859
- if (typeof this.headRequestsPerSecond === 'undefined' || this.headRequestsPerSecond === null) {
860
- return new _ValidationError["default"]("headRequestsPerSecond", "undefined or null");
861
- }
862
- if (!_ValidationUtils["default"].validateMaxItems(this.headRequestsPerSecond, 150)) {
863
- return new _ValidationError["default"]("headRequestsPerSecond", "does not satisfy required maxItems constraint: 150");
864
- }
865
- if (!_ValidationUtils["default"].validateMinItems(this.headRequestsPerSecond, 1)) {
866
- return new _ValidationError["default"]("headRequestsPerSecond", "does not satisfy required minItems constraint: 1");
867
- }
877
+ if (!_ValidationUtils.default.validateMinItems(this.inboundBytesPerSecond, 1)) {
878
+ return new _ValidationError.default("inboundBytesPerSecond", "does not satisfy required minItems constraint: 1");
868
879
  }
869
- if (property === "getRequestsPerSecond") {
870
- if (typeof this.getRequestsPerSecond === 'undefined' || this.getRequestsPerSecond === null) {
871
- return new _ValidationError["default"]("getRequestsPerSecond", "undefined or null");
872
- }
873
- if (!_ValidationUtils["default"].validateMaxItems(this.getRequestsPerSecond, 150)) {
874
- return new _ValidationError["default"]("getRequestsPerSecond", "does not satisfy required maxItems constraint: 150");
875
- }
876
- if (!_ValidationUtils["default"].validateMinItems(this.getRequestsPerSecond, 1)) {
877
- return new _ValidationError["default"]("getRequestsPerSecond", "does not satisfy required minItems constraint: 1");
878
- }
880
+ }
881
+ if (property === "outboundBytesPerSecond") {
882
+ if (typeof this.outboundBytesPerSecond === 'undefined' || this.outboundBytesPerSecond === null) {
883
+ return new _ValidationError.default("outboundBytesPerSecond", "undefined or null");
879
884
  }
880
- if (property === "putRequestsPerSecond") {
881
- if (typeof this.putRequestsPerSecond === 'undefined' || this.putRequestsPerSecond === null) {
882
- return new _ValidationError["default"]("putRequestsPerSecond", "undefined or null");
883
- }
884
- if (!_ValidationUtils["default"].validateMaxItems(this.putRequestsPerSecond, 150)) {
885
- return new _ValidationError["default"]("putRequestsPerSecond", "does not satisfy required maxItems constraint: 150");
886
- }
887
- if (!_ValidationUtils["default"].validateMinItems(this.putRequestsPerSecond, 1)) {
888
- return new _ValidationError["default"]("putRequestsPerSecond", "does not satisfy required minItems constraint: 1");
889
- }
885
+ if (!_ValidationUtils.default.validateMaxItems(this.outboundBytesPerSecond, 150)) {
886
+ return new _ValidationError.default("outboundBytesPerSecond", "does not satisfy required maxItems constraint: 150");
890
887
  }
891
- if (property === "deleteRequestsPerSecond") {
892
- if (typeof this.deleteRequestsPerSecond === 'undefined' || this.deleteRequestsPerSecond === null) {
893
- return new _ValidationError["default"]("deleteRequestsPerSecond", "undefined or null");
894
- }
895
- if (!_ValidationUtils["default"].validateMaxItems(this.deleteRequestsPerSecond, 150)) {
896
- return new _ValidationError["default"]("deleteRequestsPerSecond", "does not satisfy required maxItems constraint: 150");
897
- }
898
- if (!_ValidationUtils["default"].validateMinItems(this.deleteRequestsPerSecond, 1)) {
899
- return new _ValidationError["default"]("deleteRequestsPerSecond", "does not satisfy required minItems constraint: 1");
900
- }
888
+ if (!_ValidationUtils.default.validateMinItems(this.outboundBytesPerSecond, 1)) {
889
+ return new _ValidationError.default("outboundBytesPerSecond", "does not satisfy required minItems constraint: 1");
901
890
  }
902
- if (property === "objectOperationsPerSecond") {
903
- if (typeof this.objectOperationsPerSecond === 'undefined' || this.objectOperationsPerSecond === null) {
904
- return new _ValidationError["default"]("objectOperationsPerSecond", "undefined or null");
905
- }
906
- if (!_ValidationUtils["default"].validateMaxItems(this.objectOperationsPerSecond, 150)) {
907
- return new _ValidationError["default"]("objectOperationsPerSecond", "does not satisfy required maxItems constraint: 150");
908
- }
909
- if (!_ValidationUtils["default"].validateMinItems(this.objectOperationsPerSecond, 1)) {
910
- return new _ValidationError["default"]("objectOperationsPerSecond", "does not satisfy required minItems constraint: 1");
911
- }
891
+ }
892
+ if (property === "getRequestThroughputBytesPerSecond") {
893
+ if (typeof this.getRequestThroughputBytesPerSecond === 'undefined' || this.getRequestThroughputBytesPerSecond === null) {
894
+ return new _ValidationError.default("getRequestThroughputBytesPerSecond", "undefined or null");
912
895
  }
913
- if (property === "getObjectTtfbMsecs") {
914
- if (typeof this.getObjectTtfbMsecs === 'undefined' || this.getObjectTtfbMsecs === null) {
915
- return new _ValidationError["default"]("getObjectTtfbMsecs", "undefined or null");
916
- }
917
- if (!_ValidationUtils["default"].validateMaxItems(this.getObjectTtfbMsecs, 150)) {
918
- return new _ValidationError["default"]("getObjectTtfbMsecs", "does not satisfy required maxItems constraint: 150");
919
- }
920
- if (!_ValidationUtils["default"].validateMinItems(this.getObjectTtfbMsecs, 1)) {
921
- return new _ValidationError["default"]("getObjectTtfbMsecs", "does not satisfy required minItems constraint: 1");
922
- }
896
+ if (!_ValidationUtils.default.validateMaxItems(this.getRequestThroughputBytesPerSecond, 150)) {
897
+ return new _ValidationError.default("getRequestThroughputBytesPerSecond", "does not satisfy required maxItems constraint: 150");
923
898
  }
924
- if (property === "getBucketOperationsPerSecond") {
925
- if (typeof this.getBucketOperationsPerSecond === 'undefined' || this.getBucketOperationsPerSecond === null) {
926
- return new _ValidationError["default"]("getBucketOperationsPerSecond", "undefined or null");
927
- }
928
- if (!_ValidationUtils["default"].validateMaxItems(this.getBucketOperationsPerSecond, 150)) {
929
- return new _ValidationError["default"]("getBucketOperationsPerSecond", "does not satisfy required maxItems constraint: 150");
930
- }
931
- if (!_ValidationUtils["default"].validateMinItems(this.getBucketOperationsPerSecond, 1)) {
932
- return new _ValidationError["default"]("getBucketOperationsPerSecond", "does not satisfy required minItems constraint: 1");
933
- }
899
+ if (!_ValidationUtils.default.validateMinItems(this.getRequestThroughputBytesPerSecond, 1)) {
900
+ return new _ValidationError.default("getRequestThroughputBytesPerSecond", "does not satisfy required minItems constraint: 1");
934
901
  }
935
- if (property === "listMultipartUploadsOperationsPerSecond") {
936
- if (typeof this.listMultipartUploadsOperationsPerSecond === 'undefined' || this.listMultipartUploadsOperationsPerSecond === null) {
937
- return new _ValidationError["default"]("listMultipartUploadsOperationsPerSecond", "undefined or null");
938
- }
939
- if (!_ValidationUtils["default"].validateMaxItems(this.listMultipartUploadsOperationsPerSecond, 150)) {
940
- return new _ValidationError["default"]("listMultipartUploadsOperationsPerSecond", "does not satisfy required maxItems constraint: 150");
941
- }
942
- if (!_ValidationUtils["default"].validateMinItems(this.listMultipartUploadsOperationsPerSecond, 1)) {
943
- return new _ValidationError["default"]("listMultipartUploadsOperationsPerSecond", "does not satisfy required minItems constraint: 1");
944
- }
902
+ }
903
+ if (property === "putRequestThroughputBytesPerSecond") {
904
+ if (typeof this.putRequestThroughputBytesPerSecond === 'undefined' || this.putRequestThroughputBytesPerSecond === null) {
905
+ return new _ValidationError.default("putRequestThroughputBytesPerSecond", "undefined or null");
945
906
  }
946
- if (property === "multipartUploadStartOperationsPerSecond") {
947
- if (typeof this.multipartUploadStartOperationsPerSecond === 'undefined' || this.multipartUploadStartOperationsPerSecond === null) {
948
- return new _ValidationError["default"]("multipartUploadStartOperationsPerSecond", "undefined or null");
949
- }
950
- if (!_ValidationUtils["default"].validateMaxItems(this.multipartUploadStartOperationsPerSecond, 150)) {
951
- return new _ValidationError["default"]("multipartUploadStartOperationsPerSecond", "does not satisfy required maxItems constraint: 150");
952
- }
953
- if (!_ValidationUtils["default"].validateMinItems(this.multipartUploadStartOperationsPerSecond, 1)) {
954
- return new _ValidationError["default"]("multipartUploadStartOperationsPerSecond", "does not satisfy required minItems constraint: 1");
955
- }
907
+ if (!_ValidationUtils.default.validateMaxItems(this.putRequestThroughputBytesPerSecond, 150)) {
908
+ return new _ValidationError.default("putRequestThroughputBytesPerSecond", "does not satisfy required maxItems constraint: 150");
956
909
  }
957
- if (property === "selectObjectContentOperationsPerSecond") {
958
- if (typeof this.selectObjectContentOperationsPerSecond === 'undefined' || this.selectObjectContentOperationsPerSecond === null) {
959
- return new _ValidationError["default"]("selectObjectContentOperationsPerSecond", "undefined or null");
960
- }
961
- if (!_ValidationUtils["default"].validateMaxItems(this.selectObjectContentOperationsPerSecond, 150)) {
962
- return new _ValidationError["default"]("selectObjectContentOperationsPerSecond", "does not satisfy required maxItems constraint: 150");
963
- }
964
- if (!_ValidationUtils["default"].validateMinItems(this.selectObjectContentOperationsPerSecond, 1)) {
965
- return new _ValidationError["default"]("selectObjectContentOperationsPerSecond", "does not satisfy required minItems constraint: 1");
966
- }
910
+ if (!_ValidationUtils.default.validateMinItems(this.putRequestThroughputBytesPerSecond, 1)) {
911
+ return new _ValidationError.default("putRequestThroughputBytesPerSecond", "does not satisfy required minItems constraint: 1");
967
912
  }
968
- if (property === "nfsReadRequestsPerSecond") {
969
- if (typeof this.nfsReadRequestsPerSecond === 'undefined' || this.nfsReadRequestsPerSecond === null) {
970
- return new _ValidationError["default"]("nfsReadRequestsPerSecond", "undefined or null");
971
- }
972
- if (!_ValidationUtils["default"].validateMaxItems(this.nfsReadRequestsPerSecond, 150)) {
973
- return new _ValidationError["default"]("nfsReadRequestsPerSecond", "does not satisfy required maxItems constraint: 150");
974
- }
975
- if (!_ValidationUtils["default"].validateMinItems(this.nfsReadRequestsPerSecond, 1)) {
976
- return new _ValidationError["default"]("nfsReadRequestsPerSecond", "does not satisfy required minItems constraint: 1");
977
- }
913
+ }
914
+ if (property === "postRequestsPerSecond") {
915
+ if (typeof this.postRequestsPerSecond === 'undefined' || this.postRequestsPerSecond === null) {
916
+ return new _ValidationError.default("postRequestsPerSecond", "undefined or null");
978
917
  }
979
- if (property === "nfsWriteRequestsPerSecond") {
980
- if (typeof this.nfsWriteRequestsPerSecond === 'undefined' || this.nfsWriteRequestsPerSecond === null) {
981
- return new _ValidationError["default"]("nfsWriteRequestsPerSecond", "undefined or null");
982
- }
983
- if (!_ValidationUtils["default"].validateMaxItems(this.nfsWriteRequestsPerSecond, 150)) {
984
- return new _ValidationError["default"]("nfsWriteRequestsPerSecond", "does not satisfy required maxItems constraint: 150");
985
- }
986
- if (!_ValidationUtils["default"].validateMinItems(this.nfsWriteRequestsPerSecond, 1)) {
987
- return new _ValidationError["default"]("nfsWriteRequestsPerSecond", "does not satisfy required minItems constraint: 1");
988
- }
918
+ if (!_ValidationUtils.default.validateMaxItems(this.postRequestsPerSecond, 150)) {
919
+ return new _ValidationError.default("postRequestsPerSecond", "does not satisfy required maxItems constraint: 150");
989
920
  }
990
- if (property === "nfsReadThroughputBytesPerSecond") {
991
- if (typeof this.nfsReadThroughputBytesPerSecond === 'undefined' || this.nfsReadThroughputBytesPerSecond === null) {
992
- return new _ValidationError["default"]("nfsReadThroughputBytesPerSecond", "undefined or null");
993
- }
994
- if (!_ValidationUtils["default"].validateMaxItems(this.nfsReadThroughputBytesPerSecond, 150)) {
995
- return new _ValidationError["default"]("nfsReadThroughputBytesPerSecond", "does not satisfy required maxItems constraint: 150");
996
- }
997
- if (!_ValidationUtils["default"].validateMinItems(this.nfsReadThroughputBytesPerSecond, 1)) {
998
- return new _ValidationError["default"]("nfsReadThroughputBytesPerSecond", "does not satisfy required minItems constraint: 1");
999
- }
921
+ if (!_ValidationUtils.default.validateMinItems(this.postRequestsPerSecond, 1)) {
922
+ return new _ValidationError.default("postRequestsPerSecond", "does not satisfy required minItems constraint: 1");
1000
923
  }
1001
- if (property === "nfsWriteThroughputBytesPerSecond") {
1002
- if (typeof this.nfsWriteThroughputBytesPerSecond === 'undefined' || this.nfsWriteThroughputBytesPerSecond === null) {
1003
- return new _ValidationError["default"]("nfsWriteThroughputBytesPerSecond", "undefined or null");
1004
- }
1005
- if (!_ValidationUtils["default"].validateMaxItems(this.nfsWriteThroughputBytesPerSecond, 150)) {
1006
- return new _ValidationError["default"]("nfsWriteThroughputBytesPerSecond", "does not satisfy required maxItems constraint: 150");
1007
- }
1008
- if (!_ValidationUtils["default"].validateMinItems(this.nfsWriteThroughputBytesPerSecond, 1)) {
1009
- return new _ValidationError["default"]("nfsWriteThroughputBytesPerSecond", "does not satisfy required minItems constraint: 1");
1010
- }
924
+ }
925
+ if (property === "headRequestsPerSecond") {
926
+ if (typeof this.headRequestsPerSecond === 'undefined' || this.headRequestsPerSecond === null) {
927
+ return new _ValidationError.default("headRequestsPerSecond", "undefined or null");
928
+ }
929
+ if (!_ValidationUtils.default.validateMaxItems(this.headRequestsPerSecond, 150)) {
930
+ return new _ValidationError.default("headRequestsPerSecond", "does not satisfy required maxItems constraint: 150");
931
+ }
932
+ if (!_ValidationUtils.default.validateMinItems(this.headRequestsPerSecond, 1)) {
933
+ return new _ValidationError.default("headRequestsPerSecond", "does not satisfy required minItems constraint: 1");
1011
934
  }
1012
- return new _ValidationError["default"](property, "no such property exists");
1013
935
  }
1014
- }], [{
1015
- key: "constructFromObject",
1016
- value: function constructFromObject(data) {
1017
- var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
1018
- var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
1019
- var items, item, i, itemArr, discriminator;
1020
- if (data) {
1021
- obj = obj || new ObjectstoreStats();
1022
- _ExternalizableAbstractModel["default"].constructFromObject(data, obj, true);
1023
- if (data.hasOwnProperty('objectCount') && data.objectCount !== null && data.objectCount !== undefined) {
1024
- itemArr = [];
1025
- items = data.objectCount;
1026
- for (i = 0; i < items.length; i++) {
1027
- item = _TimeIntValuePair["default"].constructFromObject(items[i], undefined);
1028
- itemArr.push(item);
1029
- }
1030
- obj.setObjectCount(itemArr);
1031
- }
1032
- if (data.hasOwnProperty('bucketCount') && data.bucketCount !== null && data.bucketCount !== undefined) {
1033
- itemArr = [];
1034
- items = data.bucketCount;
1035
- for (i = 0; i < items.length; i++) {
1036
- item = _TimeIntValuePair["default"].constructFromObject(items[i], undefined);
1037
- itemArr.push(item);
1038
- }
1039
- obj.setBucketCount(itemArr);
1040
- }
1041
- if (data.hasOwnProperty('storageUsageBytes') && data.storageUsageBytes !== null && data.storageUsageBytes !== undefined) {
1042
- itemArr = [];
1043
- items = data.storageUsageBytes;
1044
- for (i = 0; i < items.length; i++) {
1045
- item = _TimeIntValuePair["default"].constructFromObject(items[i], undefined);
1046
- itemArr.push(item);
1047
- }
1048
- obj.setStorageUsageBytes(itemArr);
1049
- }
1050
- if (data.hasOwnProperty('inboundBytesPerSecond') && data.inboundBytesPerSecond !== null && data.inboundBytesPerSecond !== undefined) {
1051
- itemArr = [];
1052
- items = data.inboundBytesPerSecond;
1053
- for (i = 0; i < items.length; i++) {
1054
- item = _TimeFloatValuePair["default"].constructFromObject(items[i], undefined);
1055
- itemArr.push(item);
1056
- }
1057
- obj.setInboundBytesPerSecond(itemArr);
1058
- }
1059
- if (data.hasOwnProperty('outboundBytesPerSecond') && data.outboundBytesPerSecond !== null && data.outboundBytesPerSecond !== undefined) {
1060
- itemArr = [];
1061
- items = data.outboundBytesPerSecond;
1062
- for (i = 0; i < items.length; i++) {
1063
- item = _TimeFloatValuePair["default"].constructFromObject(items[i], undefined);
1064
- itemArr.push(item);
1065
- }
1066
- obj.setOutboundBytesPerSecond(itemArr);
1067
- }
1068
- if (data.hasOwnProperty('getRequestThroughputBytesPerSecond') && data.getRequestThroughputBytesPerSecond !== null && data.getRequestThroughputBytesPerSecond !== undefined) {
1069
- itemArr = [];
1070
- items = data.getRequestThroughputBytesPerSecond;
1071
- for (i = 0; i < items.length; i++) {
1072
- item = _TimeFloatValuePair["default"].constructFromObject(items[i], undefined);
1073
- itemArr.push(item);
1074
- }
1075
- obj.setGetRequestThroughputBytesPerSecond(itemArr);
1076
- }
1077
- if (data.hasOwnProperty('putRequestThroughputBytesPerSecond') && data.putRequestThroughputBytesPerSecond !== null && data.putRequestThroughputBytesPerSecond !== undefined) {
1078
- itemArr = [];
1079
- items = data.putRequestThroughputBytesPerSecond;
1080
- for (i = 0; i < items.length; i++) {
1081
- item = _TimeFloatValuePair["default"].constructFromObject(items[i], undefined);
1082
- itemArr.push(item);
1083
- }
1084
- obj.setPutRequestThroughputBytesPerSecond(itemArr);
1085
- }
1086
- if (data.hasOwnProperty('postRequestsPerSecond') && data.postRequestsPerSecond !== null && data.postRequestsPerSecond !== undefined) {
1087
- itemArr = [];
1088
- items = data.postRequestsPerSecond;
1089
- for (i = 0; i < items.length; i++) {
1090
- item = _TimeFloatValuePair["default"].constructFromObject(items[i], undefined);
1091
- itemArr.push(item);
1092
- }
1093
- obj.setPostRequestsPerSecond(itemArr);
1094
- }
1095
- if (data.hasOwnProperty('headRequestsPerSecond') && data.headRequestsPerSecond !== null && data.headRequestsPerSecond !== undefined) {
1096
- itemArr = [];
1097
- items = data.headRequestsPerSecond;
1098
- for (i = 0; i < items.length; i++) {
1099
- item = _TimeFloatValuePair["default"].constructFromObject(items[i], undefined);
1100
- itemArr.push(item);
1101
- }
1102
- obj.setHeadRequestsPerSecond(itemArr);
1103
- }
1104
- if (data.hasOwnProperty('getRequestsPerSecond') && data.getRequestsPerSecond !== null && data.getRequestsPerSecond !== undefined) {
1105
- itemArr = [];
1106
- items = data.getRequestsPerSecond;
1107
- for (i = 0; i < items.length; i++) {
1108
- item = _TimeFloatValuePair["default"].constructFromObject(items[i], undefined);
1109
- itemArr.push(item);
1110
- }
1111
- obj.setGetRequestsPerSecond(itemArr);
1112
- }
1113
- if (data.hasOwnProperty('putRequestsPerSecond') && data.putRequestsPerSecond !== null && data.putRequestsPerSecond !== undefined) {
1114
- itemArr = [];
1115
- items = data.putRequestsPerSecond;
1116
- for (i = 0; i < items.length; i++) {
1117
- item = _TimeFloatValuePair["default"].constructFromObject(items[i], undefined);
1118
- itemArr.push(item);
1119
- }
1120
- obj.setPutRequestsPerSecond(itemArr);
1121
- }
1122
- if (data.hasOwnProperty('deleteRequestsPerSecond') && data.deleteRequestsPerSecond !== null && data.deleteRequestsPerSecond !== undefined) {
1123
- itemArr = [];
1124
- items = data.deleteRequestsPerSecond;
1125
- for (i = 0; i < items.length; i++) {
1126
- item = _TimeFloatValuePair["default"].constructFromObject(items[i], undefined);
1127
- itemArr.push(item);
1128
- }
1129
- obj.setDeleteRequestsPerSecond(itemArr);
1130
- }
1131
- if (data.hasOwnProperty('objectOperationsPerSecond') && data.objectOperationsPerSecond !== null && data.objectOperationsPerSecond !== undefined) {
1132
- itemArr = [];
1133
- items = data.objectOperationsPerSecond;
1134
- for (i = 0; i < items.length; i++) {
1135
- item = _TimeFloatValuePair["default"].constructFromObject(items[i], undefined);
1136
- itemArr.push(item);
1137
- }
1138
- obj.setObjectOperationsPerSecond(itemArr);
1139
- }
1140
- if (data.hasOwnProperty('getObjectTtfbMsecs') && data.getObjectTtfbMsecs !== null && data.getObjectTtfbMsecs !== undefined) {
1141
- itemArr = [];
1142
- items = data.getObjectTtfbMsecs;
1143
- for (i = 0; i < items.length; i++) {
1144
- item = _TimeFloatValuePair["default"].constructFromObject(items[i], undefined);
1145
- itemArr.push(item);
1146
- }
1147
- obj.setGetObjectTtfbMsecs(itemArr);
1148
- }
1149
- if (data.hasOwnProperty('getBucketOperationsPerSecond') && data.getBucketOperationsPerSecond !== null && data.getBucketOperationsPerSecond !== undefined) {
1150
- itemArr = [];
1151
- items = data.getBucketOperationsPerSecond;
1152
- for (i = 0; i < items.length; i++) {
1153
- item = _TimeFloatValuePair["default"].constructFromObject(items[i], undefined);
1154
- itemArr.push(item);
1155
- }
1156
- obj.setGetBucketOperationsPerSecond(itemArr);
1157
- }
1158
- if (data.hasOwnProperty('listMultipartUploadsOperationsPerSecond') && data.listMultipartUploadsOperationsPerSecond !== null && data.listMultipartUploadsOperationsPerSecond !== undefined) {
1159
- itemArr = [];
1160
- items = data.listMultipartUploadsOperationsPerSecond;
1161
- for (i = 0; i < items.length; i++) {
1162
- item = _TimeFloatValuePair["default"].constructFromObject(items[i], undefined);
1163
- itemArr.push(item);
1164
- }
1165
- obj.setListMultipartUploadsOperationsPerSecond(itemArr);
1166
- }
1167
- if (data.hasOwnProperty('multipartUploadStartOperationsPerSecond') && data.multipartUploadStartOperationsPerSecond !== null && data.multipartUploadStartOperationsPerSecond !== undefined) {
1168
- itemArr = [];
1169
- items = data.multipartUploadStartOperationsPerSecond;
1170
- for (i = 0; i < items.length; i++) {
1171
- item = _TimeFloatValuePair["default"].constructFromObject(items[i], undefined);
1172
- itemArr.push(item);
1173
- }
1174
- obj.setMultipartUploadStartOperationsPerSecond(itemArr);
1175
- }
1176
- if (data.hasOwnProperty('selectObjectContentOperationsPerSecond') && data.selectObjectContentOperationsPerSecond !== null && data.selectObjectContentOperationsPerSecond !== undefined) {
1177
- itemArr = [];
1178
- items = data.selectObjectContentOperationsPerSecond;
1179
- for (i = 0; i < items.length; i++) {
1180
- item = _TimeFloatValuePair["default"].constructFromObject(items[i], undefined);
1181
- itemArr.push(item);
1182
- }
1183
- obj.setSelectObjectContentOperationsPerSecond(itemArr);
1184
- }
1185
- if (data.hasOwnProperty('nfsReadRequestsPerSecond') && data.nfsReadRequestsPerSecond !== null && data.nfsReadRequestsPerSecond !== undefined) {
1186
- itemArr = [];
1187
- items = data.nfsReadRequestsPerSecond;
1188
- for (i = 0; i < items.length; i++) {
1189
- item = _TimeFloatValuePair["default"].constructFromObject(items[i], undefined);
1190
- itemArr.push(item);
1191
- }
1192
- obj.setNfsReadRequestsPerSecond(itemArr);
1193
- }
1194
- if (data.hasOwnProperty('nfsWriteRequestsPerSecond') && data.nfsWriteRequestsPerSecond !== null && data.nfsWriteRequestsPerSecond !== undefined) {
1195
- itemArr = [];
1196
- items = data.nfsWriteRequestsPerSecond;
1197
- for (i = 0; i < items.length; i++) {
1198
- item = _TimeFloatValuePair["default"].constructFromObject(items[i], undefined);
1199
- itemArr.push(item);
1200
- }
1201
- obj.setNfsWriteRequestsPerSecond(itemArr);
1202
- }
1203
- if (data.hasOwnProperty('nfsReadThroughputBytesPerSecond') && data.nfsReadThroughputBytesPerSecond !== null && data.nfsReadThroughputBytesPerSecond !== undefined) {
1204
- itemArr = [];
1205
- items = data.nfsReadThroughputBytesPerSecond;
1206
- for (i = 0; i < items.length; i++) {
1207
- item = _TimeFloatValuePair["default"].constructFromObject(items[i], undefined);
1208
- itemArr.push(item);
1209
- }
1210
- obj.setNfsReadThroughputBytesPerSecond(itemArr);
1211
- }
1212
- if (data.hasOwnProperty('nfsWriteThroughputBytesPerSecond') && data.nfsWriteThroughputBytesPerSecond !== null && data.nfsWriteThroughputBytesPerSecond !== undefined) {
1213
- itemArr = [];
1214
- items = data.nfsWriteThroughputBytesPerSecond;
1215
- for (i = 0; i < items.length; i++) {
1216
- item = _TimeFloatValuePair["default"].constructFromObject(items[i], undefined);
1217
- itemArr.push(item);
1218
- }
1219
- obj.setNfsWriteThroughputBytesPerSecond(itemArr);
1220
- }
1221
- if (!callFromChild) {
1222
- obj.$unknownFields = _objectSpread({}, data.$unknownFields);
1223
- for (var property in data) {
1224
- // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
1225
- // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
1226
- // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
1227
- // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
1228
- if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
1229
- obj.$unknownFields[property] = data[property];
1230
- }
1231
- }
1232
- }
936
+ if (property === "getRequestsPerSecond") {
937
+ if (typeof this.getRequestsPerSecond === 'undefined' || this.getRequestsPerSecond === null) {
938
+ return new _ValidationError.default("getRequestsPerSecond", "undefined or null");
939
+ }
940
+ if (!_ValidationUtils.default.validateMaxItems(this.getRequestsPerSecond, 150)) {
941
+ return new _ValidationError.default("getRequestsPerSecond", "does not satisfy required maxItems constraint: 150");
942
+ }
943
+ if (!_ValidationUtils.default.validateMinItems(this.getRequestsPerSecond, 1)) {
944
+ return new _ValidationError.default("getRequestsPerSecond", "does not satisfy required minItems constraint: 1");
1233
945
  }
1234
- return obj;
1235
946
  }
1236
-
1237
- /**
1238
- * Converts a given snake_case string to camelCase.
1239
- * @param {string} snakeStr - The input string in snake_case format.
1240
- * @returns {string} - The converted string in camelCase format.
1241
- */
1242
- }, {
1243
- key: "snakeToCamel",
1244
- value: function snakeToCamel(snakeStr) {
1245
- return snakeStr.replace(/(_\w)/g, function (match) {
1246
- return match[1].toUpperCase();
1247
- });
947
+ if (property === "putRequestsPerSecond") {
948
+ if (typeof this.putRequestsPerSecond === 'undefined' || this.putRequestsPerSecond === null) {
949
+ return new _ValidationError.default("putRequestsPerSecond", "undefined or null");
950
+ }
951
+ if (!_ValidationUtils.default.validateMaxItems(this.putRequestsPerSecond, 150)) {
952
+ return new _ValidationError.default("putRequestsPerSecond", "does not satisfy required maxItems constraint: 150");
953
+ }
954
+ if (!_ValidationUtils.default.validateMinItems(this.putRequestsPerSecond, 1)) {
955
+ return new _ValidationError.default("putRequestsPerSecond", "does not satisfy required minItems constraint: 1");
956
+ }
957
+ }
958
+ if (property === "deleteRequestsPerSecond") {
959
+ if (typeof this.deleteRequestsPerSecond === 'undefined' || this.deleteRequestsPerSecond === null) {
960
+ return new _ValidationError.default("deleteRequestsPerSecond", "undefined or null");
961
+ }
962
+ if (!_ValidationUtils.default.validateMaxItems(this.deleteRequestsPerSecond, 150)) {
963
+ return new _ValidationError.default("deleteRequestsPerSecond", "does not satisfy required maxItems constraint: 150");
964
+ }
965
+ if (!_ValidationUtils.default.validateMinItems(this.deleteRequestsPerSecond, 1)) {
966
+ return new _ValidationError.default("deleteRequestsPerSecond", "does not satisfy required minItems constraint: 1");
967
+ }
968
+ }
969
+ if (property === "objectOperationsPerSecond") {
970
+ if (typeof this.objectOperationsPerSecond === 'undefined' || this.objectOperationsPerSecond === null) {
971
+ return new _ValidationError.default("objectOperationsPerSecond", "undefined or null");
972
+ }
973
+ if (!_ValidationUtils.default.validateMaxItems(this.objectOperationsPerSecond, 150)) {
974
+ return new _ValidationError.default("objectOperationsPerSecond", "does not satisfy required maxItems constraint: 150");
975
+ }
976
+ if (!_ValidationUtils.default.validateMinItems(this.objectOperationsPerSecond, 1)) {
977
+ return new _ValidationError.default("objectOperationsPerSecond", "does not satisfy required minItems constraint: 1");
978
+ }
979
+ }
980
+ if (property === "getObjectTtfbMsecs") {
981
+ if (typeof this.getObjectTtfbMsecs === 'undefined' || this.getObjectTtfbMsecs === null) {
982
+ return new _ValidationError.default("getObjectTtfbMsecs", "undefined or null");
983
+ }
984
+ if (!_ValidationUtils.default.validateMaxItems(this.getObjectTtfbMsecs, 150)) {
985
+ return new _ValidationError.default("getObjectTtfbMsecs", "does not satisfy required maxItems constraint: 150");
986
+ }
987
+ if (!_ValidationUtils.default.validateMinItems(this.getObjectTtfbMsecs, 1)) {
988
+ return new _ValidationError.default("getObjectTtfbMsecs", "does not satisfy required minItems constraint: 1");
989
+ }
990
+ }
991
+ if (property === "getBucketOperationsPerSecond") {
992
+ if (typeof this.getBucketOperationsPerSecond === 'undefined' || this.getBucketOperationsPerSecond === null) {
993
+ return new _ValidationError.default("getBucketOperationsPerSecond", "undefined or null");
994
+ }
995
+ if (!_ValidationUtils.default.validateMaxItems(this.getBucketOperationsPerSecond, 150)) {
996
+ return new _ValidationError.default("getBucketOperationsPerSecond", "does not satisfy required maxItems constraint: 150");
997
+ }
998
+ if (!_ValidationUtils.default.validateMinItems(this.getBucketOperationsPerSecond, 1)) {
999
+ return new _ValidationError.default("getBucketOperationsPerSecond", "does not satisfy required minItems constraint: 1");
1000
+ }
1001
+ }
1002
+ if (property === "listMultipartUploadsOperationsPerSecond") {
1003
+ if (typeof this.listMultipartUploadsOperationsPerSecond === 'undefined' || this.listMultipartUploadsOperationsPerSecond === null) {
1004
+ return new _ValidationError.default("listMultipartUploadsOperationsPerSecond", "undefined or null");
1005
+ }
1006
+ if (!_ValidationUtils.default.validateMaxItems(this.listMultipartUploadsOperationsPerSecond, 150)) {
1007
+ return new _ValidationError.default("listMultipartUploadsOperationsPerSecond", "does not satisfy required maxItems constraint: 150");
1008
+ }
1009
+ if (!_ValidationUtils.default.validateMinItems(this.listMultipartUploadsOperationsPerSecond, 1)) {
1010
+ return new _ValidationError.default("listMultipartUploadsOperationsPerSecond", "does not satisfy required minItems constraint: 1");
1011
+ }
1012
+ }
1013
+ if (property === "multipartUploadStartOperationsPerSecond") {
1014
+ if (typeof this.multipartUploadStartOperationsPerSecond === 'undefined' || this.multipartUploadStartOperationsPerSecond === null) {
1015
+ return new _ValidationError.default("multipartUploadStartOperationsPerSecond", "undefined or null");
1016
+ }
1017
+ if (!_ValidationUtils.default.validateMaxItems(this.multipartUploadStartOperationsPerSecond, 150)) {
1018
+ return new _ValidationError.default("multipartUploadStartOperationsPerSecond", "does not satisfy required maxItems constraint: 150");
1019
+ }
1020
+ if (!_ValidationUtils.default.validateMinItems(this.multipartUploadStartOperationsPerSecond, 1)) {
1021
+ return new _ValidationError.default("multipartUploadStartOperationsPerSecond", "does not satisfy required minItems constraint: 1");
1022
+ }
1248
1023
  }
1249
- }]);
1250
- }(_ExternalizableAbstractModel["default"]);
1024
+ if (property === "selectObjectContentOperationsPerSecond") {
1025
+ if (typeof this.selectObjectContentOperationsPerSecond === 'undefined' || this.selectObjectContentOperationsPerSecond === null) {
1026
+ return new _ValidationError.default("selectObjectContentOperationsPerSecond", "undefined or null");
1027
+ }
1028
+ if (!_ValidationUtils.default.validateMaxItems(this.selectObjectContentOperationsPerSecond, 150)) {
1029
+ return new _ValidationError.default("selectObjectContentOperationsPerSecond", "does not satisfy required maxItems constraint: 150");
1030
+ }
1031
+ if (!_ValidationUtils.default.validateMinItems(this.selectObjectContentOperationsPerSecond, 1)) {
1032
+ return new _ValidationError.default("selectObjectContentOperationsPerSecond", "does not satisfy required minItems constraint: 1");
1033
+ }
1034
+ }
1035
+ if (property === "nfsReadRequestsPerSecond") {
1036
+ if (typeof this.nfsReadRequestsPerSecond === 'undefined' || this.nfsReadRequestsPerSecond === null) {
1037
+ return new _ValidationError.default("nfsReadRequestsPerSecond", "undefined or null");
1038
+ }
1039
+ if (!_ValidationUtils.default.validateMaxItems(this.nfsReadRequestsPerSecond, 150)) {
1040
+ return new _ValidationError.default("nfsReadRequestsPerSecond", "does not satisfy required maxItems constraint: 150");
1041
+ }
1042
+ if (!_ValidationUtils.default.validateMinItems(this.nfsReadRequestsPerSecond, 1)) {
1043
+ return new _ValidationError.default("nfsReadRequestsPerSecond", "does not satisfy required minItems constraint: 1");
1044
+ }
1045
+ }
1046
+ if (property === "nfsWriteRequestsPerSecond") {
1047
+ if (typeof this.nfsWriteRequestsPerSecond === 'undefined' || this.nfsWriteRequestsPerSecond === null) {
1048
+ return new _ValidationError.default("nfsWriteRequestsPerSecond", "undefined or null");
1049
+ }
1050
+ if (!_ValidationUtils.default.validateMaxItems(this.nfsWriteRequestsPerSecond, 150)) {
1051
+ return new _ValidationError.default("nfsWriteRequestsPerSecond", "does not satisfy required maxItems constraint: 150");
1052
+ }
1053
+ if (!_ValidationUtils.default.validateMinItems(this.nfsWriteRequestsPerSecond, 1)) {
1054
+ return new _ValidationError.default("nfsWriteRequestsPerSecond", "does not satisfy required minItems constraint: 1");
1055
+ }
1056
+ }
1057
+ if (property === "nfsReadThroughputBytesPerSecond") {
1058
+ if (typeof this.nfsReadThroughputBytesPerSecond === 'undefined' || this.nfsReadThroughputBytesPerSecond === null) {
1059
+ return new _ValidationError.default("nfsReadThroughputBytesPerSecond", "undefined or null");
1060
+ }
1061
+ if (!_ValidationUtils.default.validateMaxItems(this.nfsReadThroughputBytesPerSecond, 150)) {
1062
+ return new _ValidationError.default("nfsReadThroughputBytesPerSecond", "does not satisfy required maxItems constraint: 150");
1063
+ }
1064
+ if (!_ValidationUtils.default.validateMinItems(this.nfsReadThroughputBytesPerSecond, 1)) {
1065
+ return new _ValidationError.default("nfsReadThroughputBytesPerSecond", "does not satisfy required minItems constraint: 1");
1066
+ }
1067
+ }
1068
+ if (property === "nfsWriteThroughputBytesPerSecond") {
1069
+ if (typeof this.nfsWriteThroughputBytesPerSecond === 'undefined' || this.nfsWriteThroughputBytesPerSecond === null) {
1070
+ return new _ValidationError.default("nfsWriteThroughputBytesPerSecond", "undefined or null");
1071
+ }
1072
+ if (!_ValidationUtils.default.validateMaxItems(this.nfsWriteThroughputBytesPerSecond, 150)) {
1073
+ return new _ValidationError.default("nfsWriteThroughputBytesPerSecond", "does not satisfy required maxItems constraint: 150");
1074
+ }
1075
+ if (!_ValidationUtils.default.validateMinItems(this.nfsWriteThroughputBytesPerSecond, 1)) {
1076
+ return new _ValidationError.default("nfsWriteThroughputBytesPerSecond", "does not satisfy required minItems constraint: 1");
1077
+ }
1078
+ }
1079
+ return new _ValidationError.default(property, "no such property exists");
1080
+ }
1081
+ }
1082
+
1251
1083
  /**
1252
1084
  * Number of Objects in the Object store. This stat is updated every 10 minutes. It includes the count of the incomplete multipart uploads.
1253
1085
  * @memberof ObjectstoreStats
1254
1086
  */
1087
+ exports.default = ObjectstoreStats;
1255
1088
  function _toJsonMapType(obj, forMutation) {
1256
1089
  if (obj instanceof Map) {
1257
- return Object.fromEntries(Array.from(obj, function (_ref) {
1258
- var _ref2 = _slicedToArray(_ref, 2),
1259
- k = _ref2[0],
1260
- v = _ref2[1];
1261
- return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
1262
- }));
1263
- } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
1264
- return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
1090
+ return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
1091
+ } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
1092
+ return Object.fromEntries(Array.from(Object.entries(obj), entry => {
1265
1093
  return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
1266
1094
  }));
1267
1095
  }
@@ -1411,15 +1239,15 @@ ObjectstoreStats.prototype.nfsWriteThroughputBytesPerSecond = undefined;
1411
1239
  * A globally unique identifier of an instance that is suitable for external consumption.
1412
1240
  * @memberof ObjectstoreStats
1413
1241
  */
1414
- _ExternalizableAbstractModel["default"].prototype.extId = undefined;
1242
+ _ExternalizableAbstractModel.default.prototype.extId = undefined;
1415
1243
  /**
1416
1244
  * A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
1417
1245
  * @memberof ObjectstoreStats
1418
1246
  */
1419
- _ExternalizableAbstractModel["default"].prototype.links = undefined;
1247
+ _ExternalizableAbstractModel.default.prototype.links = undefined;
1420
1248
  /**
1421
- * A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
1249
+ * A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this ID to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
1422
1250
  * @memberof ObjectstoreStats
1423
1251
  */
1424
- _TenantAwareModel["default"].prototype.tenantId = undefined;
1252
+ _TenantAwareModel.default.prototype.tenantId = undefined;
1425
1253
  // Implement OneOfobjects.v4.stats.GetObjectstoreStatsApiResponsedata interface: