@nutanix-scratch/objects-js-client 4.0.1-beta.1 → 4.0.2
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.
- package/README.md +33 -20
- package/dist/Ntnx-Objects-js-client-prod.js +1 -1
- package/dist/Ntnx-Objects-js-client.js +331 -259
- package/dist/es/ApiClient.d.ts +35 -7
- package/dist/es/ApiClient.js +862 -684
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +144 -183
- package/dist/es/apis/objectstores-endpoints.d.ts +9 -70
- package/dist/es/apis/objectstores-endpoints.js +407 -477
- package/dist/es/apis/stats-endpoints.d.ts +46 -0
- package/dist/es/apis/stats-endpoints.js +122 -0
- package/dist/es/index.d.ts +13 -1
- package/dist/es/index.js +152 -104
- package/dist/es/models/common/v1/config/FQDN.d.ts +2 -7
- package/dist/es/models/common/v1/config/FQDN.js +141 -180
- package/dist/es/models/common/v1/config/Flag.d.ts +2 -8
- package/dist/es/models/common/v1/config/Flag.js +170 -211
- package/dist/es/models/common/v1/config/IPAddress.d.ts +2 -20
- package/dist/es/models/common/v1/config/IPAddress.js +170 -217
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +2 -8
- package/dist/es/models/common/v1/config/IPv4Address.js +174 -215
- package/dist/es/models/common/v1/config/IPv6Address.d.ts +2 -8
- package/dist/es/models/common/v1/config/IPv6Address.js +174 -215
- package/dist/es/models/common/v1/config/KVPair.d.ts +2 -8
- package/dist/es/models/common/v1/config/KVPair.js +225 -270
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +139 -178
- package/dist/es/models/common/v1/config/Message.d.ts +2 -10
- package/dist/es/models/common/v1/config/Message.js +213 -258
- package/dist/es/models/common/v1/config/MessageSeverity.js +7 -9
- package/dist/es/models/common/v1/config/Metadata.d.ts +2 -11
- package/dist/es/models/common/v1/config/Metadata.js +261 -308
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +5 -10
- package/dist/es/models/common/v1/config/TenantAwareModel.js +138 -178
- package/dist/es/models/common/v1/response/ApiLink.d.ts +2 -8
- package/dist/es/models/common/v1/response/ApiLink.js +165 -206
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +281 -344
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +155 -203
- package/dist/es/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
- package/dist/es/models/common/v1/stats/DownSamplingOperator.js +107 -0
- package/dist/es/models/common/v1/stats/TimeIntValuePair.d.ts +58 -0
- package/dist/es/models/common/v1/stats/TimeIntValuePair.js +272 -0
- package/dist/es/models/objects/v4/config/Certificate.d.ts +24 -34
- package/dist/es/models/objects/v4/config/Certificate.js +342 -310
- package/dist/es/models/objects/v4/config/CertificateProjection.d.ts +1 -1
- package/dist/es/models/objects/v4/config/CertificateProjection.js +75 -103
- package/dist/es/models/objects/v4/config/CreateCertificateApiResponse.d.ts +2 -43
- package/dist/es/models/objects/v4/config/CreateCertificateApiResponse.js +187 -242
- package/dist/es/models/objects/v4/config/CreateObjectstoreApiResponse.d.ts +2 -43
- package/dist/es/models/objects/v4/config/CreateObjectstoreApiResponse.js +187 -242
- package/dist/es/models/objects/v4/config/DeleteObjectstoreApiResponse.d.ts +2 -43
- package/dist/es/models/objects/v4/config/DeleteObjectstoreApiResponse.js +187 -242
- package/dist/es/models/objects/v4/config/GetCaApiResponse.d.ts +2 -45
- package/dist/es/models/objects/v4/config/GetCaApiResponse.js +187 -242
- package/dist/es/models/objects/v4/config/GetCertificateApiResponse.d.ts +2 -43
- package/dist/es/models/objects/v4/config/GetCertificateApiResponse.js +187 -242
- package/dist/es/models/objects/v4/config/GetObjectstoreApiResponse.d.ts +2 -43
- package/dist/es/models/objects/v4/config/GetObjectstoreApiResponse.js +187 -242
- package/dist/es/models/objects/v4/config/ListCertificatesApiResponse.d.ts +2 -43
- package/dist/es/models/objects/v4/config/ListCertificatesApiResponse.js +213 -268
- package/dist/es/models/objects/v4/config/ListObjectstoresApiResponse.d.ts +2 -43
- package/dist/es/models/objects/v4/config/ListObjectstoresApiResponse.js +213 -268
- package/dist/es/models/objects/v4/config/ObjectStore.d.ts +1 -96
- package/dist/es/models/objects/v4/config/ObjectStore.js +629 -712
- package/dist/es/models/objects/v4/config/ObjectStoreProjection.d.ts +1 -129
- package/dist/es/models/objects/v4/config/ObjectStoreProjection.js +222 -239
- package/dist/es/models/objects/v4/config/State.js +7 -9
- package/dist/es/models/objects/v4/config/UpdateObjectstoreApiResponse.d.ts +2 -43
- package/dist/es/models/objects/v4/config/UpdateObjectstoreApiResponse.js +187 -242
- package/dist/es/models/objects/v4/error/AppMessage.d.ts +5 -15
- package/dist/es/models/objects/v4/error/AppMessage.js +265 -314
- package/dist/es/models/objects/v4/error/ErrorResponse.d.ts +2 -7
- package/dist/es/models/objects/v4/error/ErrorResponse.js +177 -219
- package/dist/es/models/objects/v4/error/SchemaValidationError.d.ts +2 -18
- package/dist/es/models/objects/v4/error/SchemaValidationError.js +249 -300
- package/dist/es/models/objects/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
- package/dist/es/models/objects/v4/error/SchemaValidationErrorMessage.js +191 -234
- package/dist/es/models/objects/v4/stats/GetObjectstoreStatsApiResponse.d.ts +58 -0
- package/dist/es/models/objects/v4/stats/GetObjectstoreStatsApiResponse.js +288 -0
- package/dist/es/models/objects/v4/stats/ObjectstoreStats.d.ts +255 -0
- package/dist/es/models/objects/v4/stats/ObjectstoreStats.js +1253 -0
- package/dist/es/models/objects/v4/stats/TimeFloatValuePair.d.ts +58 -0
- package/dist/es/models/objects/v4/stats/TimeFloatValuePair.js +272 -0
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +2 -7
- package/dist/es/models/prism/v4/config/TaskReference.js +142 -181
- package/dist/es/models/validation/ValidationError.js +26 -42
- package/dist/es/models/validation/ValidationScopes.js +3 -3
- package/dist/es/utils/ValidationUtils.js +39 -69
- package/dist/lib/ApiClient.d.ts +35 -7
- package/dist/lib/ApiClient.js +862 -684
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +144 -183
- package/dist/lib/apis/objectstores-endpoints.d.ts +9 -70
- package/dist/lib/apis/objectstores-endpoints.js +407 -477
- package/dist/lib/apis/stats-endpoints.d.ts +46 -0
- package/dist/lib/apis/stats-endpoints.js +122 -0
- package/dist/lib/index.d.ts +13 -1
- package/dist/lib/index.js +152 -104
- package/dist/lib/models/common/v1/config/FQDN.d.ts +2 -7
- package/dist/lib/models/common/v1/config/FQDN.js +141 -180
- package/dist/lib/models/common/v1/config/Flag.d.ts +2 -8
- package/dist/lib/models/common/v1/config/Flag.js +170 -211
- package/dist/lib/models/common/v1/config/IPAddress.d.ts +2 -20
- package/dist/lib/models/common/v1/config/IPAddress.js +170 -217
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +2 -8
- package/dist/lib/models/common/v1/config/IPv4Address.js +174 -215
- package/dist/lib/models/common/v1/config/IPv6Address.d.ts +2 -8
- package/dist/lib/models/common/v1/config/IPv6Address.js +174 -215
- package/dist/lib/models/common/v1/config/KVPair.d.ts +2 -8
- package/dist/lib/models/common/v1/config/KVPair.js +225 -270
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +139 -178
- package/dist/lib/models/common/v1/config/Message.d.ts +2 -10
- package/dist/lib/models/common/v1/config/Message.js +213 -258
- package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -9
- package/dist/lib/models/common/v1/config/Metadata.d.ts +2 -11
- package/dist/lib/models/common/v1/config/Metadata.js +261 -308
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +5 -10
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +138 -178
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +2 -8
- package/dist/lib/models/common/v1/response/ApiLink.js +165 -206
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +281 -344
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +155 -203
- package/dist/lib/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
- package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +107 -0
- package/dist/lib/models/common/v1/stats/TimeIntValuePair.d.ts +58 -0
- package/dist/lib/models/common/v1/stats/TimeIntValuePair.js +272 -0
- package/dist/lib/models/objects/v4/config/Certificate.d.ts +24 -34
- package/dist/lib/models/objects/v4/config/Certificate.js +342 -310
- package/dist/lib/models/objects/v4/config/CertificateProjection.d.ts +1 -1
- package/dist/lib/models/objects/v4/config/CertificateProjection.js +75 -103
- package/dist/lib/models/objects/v4/config/CreateCertificateApiResponse.d.ts +2 -43
- package/dist/lib/models/objects/v4/config/CreateCertificateApiResponse.js +187 -242
- package/dist/lib/models/objects/v4/config/CreateObjectstoreApiResponse.d.ts +2 -43
- package/dist/lib/models/objects/v4/config/CreateObjectstoreApiResponse.js +187 -242
- package/dist/lib/models/objects/v4/config/DeleteObjectstoreApiResponse.d.ts +2 -43
- package/dist/lib/models/objects/v4/config/DeleteObjectstoreApiResponse.js +187 -242
- package/dist/lib/models/objects/v4/config/GetCaApiResponse.d.ts +2 -45
- package/dist/lib/models/objects/v4/config/GetCaApiResponse.js +187 -242
- package/dist/lib/models/objects/v4/config/GetCertificateApiResponse.d.ts +2 -43
- package/dist/lib/models/objects/v4/config/GetCertificateApiResponse.js +187 -242
- package/dist/lib/models/objects/v4/config/GetObjectstoreApiResponse.d.ts +2 -43
- package/dist/lib/models/objects/v4/config/GetObjectstoreApiResponse.js +187 -242
- package/dist/lib/models/objects/v4/config/ListCertificatesApiResponse.d.ts +2 -43
- package/dist/lib/models/objects/v4/config/ListCertificatesApiResponse.js +213 -268
- package/dist/lib/models/objects/v4/config/ListObjectstoresApiResponse.d.ts +2 -43
- package/dist/lib/models/objects/v4/config/ListObjectstoresApiResponse.js +213 -268
- package/dist/lib/models/objects/v4/config/ObjectStore.d.ts +1 -96
- package/dist/lib/models/objects/v4/config/ObjectStore.js +629 -712
- package/dist/lib/models/objects/v4/config/ObjectStoreProjection.d.ts +1 -129
- package/dist/lib/models/objects/v4/config/ObjectStoreProjection.js +222 -239
- package/dist/lib/models/objects/v4/config/State.js +7 -9
- package/dist/lib/models/objects/v4/config/UpdateObjectstoreApiResponse.d.ts +2 -43
- package/dist/lib/models/objects/v4/config/UpdateObjectstoreApiResponse.js +187 -242
- package/dist/lib/models/objects/v4/error/AppMessage.d.ts +5 -15
- package/dist/lib/models/objects/v4/error/AppMessage.js +265 -314
- package/dist/lib/models/objects/v4/error/ErrorResponse.d.ts +2 -7
- package/dist/lib/models/objects/v4/error/ErrorResponse.js +177 -219
- package/dist/lib/models/objects/v4/error/SchemaValidationError.d.ts +2 -18
- package/dist/lib/models/objects/v4/error/SchemaValidationError.js +249 -300
- package/dist/lib/models/objects/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
- package/dist/lib/models/objects/v4/error/SchemaValidationErrorMessage.js +191 -234
- package/dist/lib/models/objects/v4/stats/GetObjectstoreStatsApiResponse.d.ts +58 -0
- package/dist/lib/models/objects/v4/stats/GetObjectstoreStatsApiResponse.js +288 -0
- package/dist/lib/models/objects/v4/stats/ObjectstoreStats.d.ts +255 -0
- package/dist/lib/models/objects/v4/stats/ObjectstoreStats.js +1253 -0
- package/dist/lib/models/objects/v4/stats/TimeFloatValuePair.d.ts +58 -0
- package/dist/lib/models/objects/v4/stats/TimeFloatValuePair.js +272 -0
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +2 -7
- package/dist/lib/models/prism/v4/config/TaskReference.js +142 -181
- package/dist/lib/models/validation/ValidationError.js +26 -42
- package/dist/lib/models/validation/ValidationScopes.js +3 -3
- package/dist/lib/utils/ValidationUtils.js +39 -69
- package/package.json +2 -2
|
@@ -0,0 +1,1253 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
|
|
8
|
+
var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
|
|
9
|
+
var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
|
|
10
|
+
var _TimeIntValuePair = _interopRequireDefault(require("../../../common/v1/stats/TimeIntValuePair"));
|
|
11
|
+
var _TimeFloatValuePair = _interopRequireDefault(require("./TimeFloatValuePair"));
|
|
12
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
13
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
14
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
+
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
17
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
|
|
18
|
+
* Nutanix Objects Storage Management APIs
|
|
19
|
+
*
|
|
20
|
+
* OpenAPI spec version: 4.0.2
|
|
21
|
+
*
|
|
22
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
23
|
+
*
|
|
24
|
+
* Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE
|
|
25
|
+
*
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* The ObjectstoreStats model module.
|
|
31
|
+
* @module Ntnx/ObjectstoreStats
|
|
32
|
+
* @version 4.0.2
|
|
33
|
+
* @class ObjectstoreStats
|
|
34
|
+
* @extends ExternalizableAbstractModel
|
|
35
|
+
*/
|
|
36
|
+
var _ObjectstoreStats_brand = /*#__PURE__*/new WeakSet();
|
|
37
|
+
class ObjectstoreStats extends _ExternalizableAbstractModel.default {
|
|
38
|
+
/**
|
|
39
|
+
* Constructs a new <code>ObjectstoreStats</code>.
|
|
40
|
+
* @alias module:Ntnx/ObjectstoreStats
|
|
41
|
+
* @extends module:Ntnx/ExternalizableAbstractModel
|
|
42
|
+
*/
|
|
43
|
+
constructor() {
|
|
44
|
+
super();
|
|
45
|
+
/*
|
|
46
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
47
|
+
* @param {Object} obj
|
|
48
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
49
|
+
* Otherwise, just returns the input object.
|
|
50
|
+
*/
|
|
51
|
+
_classPrivateMethodInitSpec(this, _ObjectstoreStats_brand);
|
|
52
|
+
this.$objectType = "objects.v4.stats.ObjectstoreStats";
|
|
53
|
+
/** @type {object<string, any>} */
|
|
54
|
+
this.$reserved = {
|
|
55
|
+
'$fv': "v4.r0"
|
|
56
|
+
};
|
|
57
|
+
/** @type {object<string, any>} */
|
|
58
|
+
this.$unknownFields = {};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Constructs a <code>ObjectstoreStats</code> from a plain JavaScript object, optionally creating a new instance.
|
|
63
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
64
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
65
|
+
* @param {module:Ntnx/ObjectstoreStats} obj Optional instance to populate.
|
|
66
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
67
|
+
* @return {module:Ntnx/ObjectstoreStats} The populated <code>ObjectstoreStats</code> instance.
|
|
68
|
+
*/
|
|
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
|
+
}
|
|
286
|
+
}
|
|
287
|
+
return obj;
|
|
288
|
+
}
|
|
289
|
+
|
|
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
|
+
}
|
|
298
|
+
|
|
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
|
+
}
|
|
306
|
+
|
|
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
|
+
}
|
|
314
|
+
|
|
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
|
+
}
|
|
322
|
+
|
|
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
|
+
}
|
|
330
|
+
|
|
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
|
+
}
|
|
338
|
+
|
|
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
|
+
}
|
|
346
|
+
|
|
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
|
+
}
|
|
354
|
+
|
|
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
|
+
}
|
|
362
|
+
|
|
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
|
+
}
|
|
370
|
+
|
|
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
|
+
}
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* Returns Throughput of HTTP GET requests in bytes per second.
|
|
381
|
+
* @return {TimeFloatValuePair[]}
|
|
382
|
+
*/
|
|
383
|
+
getGetRequestThroughputBytesPerSecond() {
|
|
384
|
+
return this.getRequestThroughputBytesPerSecond;
|
|
385
|
+
}
|
|
386
|
+
|
|
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
|
+
}
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* Returns Throughput of HTTP PUT requests in bytes per second.
|
|
397
|
+
* @return {TimeFloatValuePair[]}
|
|
398
|
+
*/
|
|
399
|
+
getPutRequestThroughputBytesPerSecond() {
|
|
400
|
+
return this.putRequestThroughputBytesPerSecond;
|
|
401
|
+
}
|
|
402
|
+
|
|
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
|
+
}
|
|
410
|
+
|
|
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
|
+
}
|
|
418
|
+
|
|
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
|
+
}
|
|
426
|
+
|
|
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
|
+
}
|
|
434
|
+
|
|
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
|
+
}
|
|
442
|
+
|
|
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
|
+
}
|
|
450
|
+
|
|
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
|
+
}
|
|
458
|
+
|
|
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
|
+
}
|
|
466
|
+
|
|
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
|
+
}
|
|
474
|
+
|
|
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
|
+
}
|
|
482
|
+
|
|
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
|
+
}
|
|
490
|
+
|
|
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
|
+
}
|
|
498
|
+
|
|
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
|
+
}
|
|
506
|
+
|
|
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
|
+
}
|
|
514
|
+
|
|
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
|
+
}
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* Returns Number of GetBucket operations per second.
|
|
525
|
+
* @return {TimeFloatValuePair[]}
|
|
526
|
+
*/
|
|
527
|
+
getGetBucketOperationsPerSecond() {
|
|
528
|
+
return this.getBucketOperationsPerSecond;
|
|
529
|
+
}
|
|
530
|
+
|
|
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
|
+
}
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* Returns The number of ListMultipartUploads operations per second.
|
|
541
|
+
* @return {TimeFloatValuePair[]}
|
|
542
|
+
*/
|
|
543
|
+
getListMultipartUploadsOperationsPerSecond() {
|
|
544
|
+
return this.listMultipartUploadsOperationsPerSecond;
|
|
545
|
+
}
|
|
546
|
+
|
|
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
|
+
}
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* Returns The number of CreateMultipartUpload operations per second.
|
|
557
|
+
* @return {TimeFloatValuePair[]}
|
|
558
|
+
*/
|
|
559
|
+
getMultipartUploadStartOperationsPerSecond() {
|
|
560
|
+
return this.multipartUploadStartOperationsPerSecond;
|
|
561
|
+
}
|
|
562
|
+
|
|
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
|
+
}
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Returns The number of SelectObjectContent operations per second.
|
|
573
|
+
* @return {TimeFloatValuePair[]}
|
|
574
|
+
*/
|
|
575
|
+
getSelectObjectContentOperationsPerSecond() {
|
|
576
|
+
return this.selectObjectContentOperationsPerSecond;
|
|
577
|
+
}
|
|
578
|
+
|
|
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
|
+
}
|
|
586
|
+
|
|
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
|
+
}
|
|
594
|
+
|
|
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
|
+
}
|
|
602
|
+
|
|
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
|
+
}
|
|
610
|
+
|
|
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
|
+
}
|
|
618
|
+
|
|
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
|
+
}
|
|
626
|
+
|
|
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 ? {
|
|
720
|
+
'extId': this.getExtId()
|
|
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 ? {
|
|
726
|
+
'tenantId': this.getTenantId()
|
|
727
|
+
} : {}),
|
|
728
|
+
'$reserved': this.get$Reserved(),
|
|
729
|
+
'$objectType': this.get$ObjectType(),
|
|
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];
|
|
819
|
+
}
|
|
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);
|
|
831
|
+
} else {
|
|
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
|
+
}
|
|
847
|
+
}
|
|
848
|
+
if (property === "bucketCount") {
|
|
849
|
+
if (typeof this.bucketCount === 'undefined' || this.bucketCount === null) {
|
|
850
|
+
return new _ValidationError.default("bucketCount", "undefined or null");
|
|
851
|
+
}
|
|
852
|
+
if (!_ValidationUtils.default.validateMaxItems(this.bucketCount, 150)) {
|
|
853
|
+
return new _ValidationError.default("bucketCount", "does not satisfy required maxItems constraint: 150");
|
|
854
|
+
}
|
|
855
|
+
if (!_ValidationUtils.default.validateMinItems(this.bucketCount, 1)) {
|
|
856
|
+
return new _ValidationError.default("bucketCount", "does not satisfy required minItems constraint: 1");
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
if (property === "storageUsageBytes") {
|
|
860
|
+
if (typeof this.storageUsageBytes === 'undefined' || this.storageUsageBytes === null) {
|
|
861
|
+
return new _ValidationError.default("storageUsageBytes", "undefined or null");
|
|
862
|
+
}
|
|
863
|
+
if (!_ValidationUtils.default.validateMaxItems(this.storageUsageBytes, 150)) {
|
|
864
|
+
return new _ValidationError.default("storageUsageBytes", "does not satisfy required maxItems constraint: 150");
|
|
865
|
+
}
|
|
866
|
+
if (!_ValidationUtils.default.validateMinItems(this.storageUsageBytes, 1)) {
|
|
867
|
+
return new _ValidationError.default("storageUsageBytes", "does not satisfy required minItems constraint: 1");
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
if (property === "inboundBytesPerSecond") {
|
|
871
|
+
if (typeof this.inboundBytesPerSecond === 'undefined' || this.inboundBytesPerSecond === null) {
|
|
872
|
+
return new _ValidationError.default("inboundBytesPerSecond", "undefined or null");
|
|
873
|
+
}
|
|
874
|
+
if (!_ValidationUtils.default.validateMaxItems(this.inboundBytesPerSecond, 150)) {
|
|
875
|
+
return new _ValidationError.default("inboundBytesPerSecond", "does not satisfy required maxItems constraint: 150");
|
|
876
|
+
}
|
|
877
|
+
if (!_ValidationUtils.default.validateMinItems(this.inboundBytesPerSecond, 1)) {
|
|
878
|
+
return new _ValidationError.default("inboundBytesPerSecond", "does not satisfy required minItems constraint: 1");
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
if (property === "outboundBytesPerSecond") {
|
|
882
|
+
if (typeof this.outboundBytesPerSecond === 'undefined' || this.outboundBytesPerSecond === null) {
|
|
883
|
+
return new _ValidationError.default("outboundBytesPerSecond", "undefined or null");
|
|
884
|
+
}
|
|
885
|
+
if (!_ValidationUtils.default.validateMaxItems(this.outboundBytesPerSecond, 150)) {
|
|
886
|
+
return new _ValidationError.default("outboundBytesPerSecond", "does not satisfy required maxItems constraint: 150");
|
|
887
|
+
}
|
|
888
|
+
if (!_ValidationUtils.default.validateMinItems(this.outboundBytesPerSecond, 1)) {
|
|
889
|
+
return new _ValidationError.default("outboundBytesPerSecond", "does not satisfy required minItems constraint: 1");
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
if (property === "getRequestThroughputBytesPerSecond") {
|
|
893
|
+
if (typeof this.getRequestThroughputBytesPerSecond === 'undefined' || this.getRequestThroughputBytesPerSecond === null) {
|
|
894
|
+
return new _ValidationError.default("getRequestThroughputBytesPerSecond", "undefined or null");
|
|
895
|
+
}
|
|
896
|
+
if (!_ValidationUtils.default.validateMaxItems(this.getRequestThroughputBytesPerSecond, 150)) {
|
|
897
|
+
return new _ValidationError.default("getRequestThroughputBytesPerSecond", "does not satisfy required maxItems constraint: 150");
|
|
898
|
+
}
|
|
899
|
+
if (!_ValidationUtils.default.validateMinItems(this.getRequestThroughputBytesPerSecond, 1)) {
|
|
900
|
+
return new _ValidationError.default("getRequestThroughputBytesPerSecond", "does not satisfy required minItems constraint: 1");
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
if (property === "putRequestThroughputBytesPerSecond") {
|
|
904
|
+
if (typeof this.putRequestThroughputBytesPerSecond === 'undefined' || this.putRequestThroughputBytesPerSecond === null) {
|
|
905
|
+
return new _ValidationError.default("putRequestThroughputBytesPerSecond", "undefined or null");
|
|
906
|
+
}
|
|
907
|
+
if (!_ValidationUtils.default.validateMaxItems(this.putRequestThroughputBytesPerSecond, 150)) {
|
|
908
|
+
return new _ValidationError.default("putRequestThroughputBytesPerSecond", "does not satisfy required maxItems constraint: 150");
|
|
909
|
+
}
|
|
910
|
+
if (!_ValidationUtils.default.validateMinItems(this.putRequestThroughputBytesPerSecond, 1)) {
|
|
911
|
+
return new _ValidationError.default("putRequestThroughputBytesPerSecond", "does not satisfy required minItems constraint: 1");
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
if (property === "postRequestsPerSecond") {
|
|
915
|
+
if (typeof this.postRequestsPerSecond === 'undefined' || this.postRequestsPerSecond === null) {
|
|
916
|
+
return new _ValidationError.default("postRequestsPerSecond", "undefined or null");
|
|
917
|
+
}
|
|
918
|
+
if (!_ValidationUtils.default.validateMaxItems(this.postRequestsPerSecond, 150)) {
|
|
919
|
+
return new _ValidationError.default("postRequestsPerSecond", "does not satisfy required maxItems constraint: 150");
|
|
920
|
+
}
|
|
921
|
+
if (!_ValidationUtils.default.validateMinItems(this.postRequestsPerSecond, 1)) {
|
|
922
|
+
return new _ValidationError.default("postRequestsPerSecond", "does not satisfy required minItems constraint: 1");
|
|
923
|
+
}
|
|
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");
|
|
934
|
+
}
|
|
935
|
+
}
|
|
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");
|
|
945
|
+
}
|
|
946
|
+
}
|
|
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
|
+
}
|
|
1023
|
+
}
|
|
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
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* Number of Objects in the Object store. This stat is updated every 10 minutes. It includes the count of the incomplete multipart uploads.
|
|
1085
|
+
* @memberof ObjectstoreStats
|
|
1086
|
+
*/
|
|
1087
|
+
exports.default = ObjectstoreStats;
|
|
1088
|
+
function _toJsonMapType(obj, forMutation) {
|
|
1089
|
+
if (obj instanceof Map) {
|
|
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 => {
|
|
1093
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
1094
|
+
}));
|
|
1095
|
+
}
|
|
1096
|
+
return obj;
|
|
1097
|
+
}
|
|
1098
|
+
/*
|
|
1099
|
+
* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
|
|
1100
|
+
* @param {Object} obj Object to serialize
|
|
1101
|
+
* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
|
|
1102
|
+
* @returns {Object|string} Returns serialized date object or original input object
|
|
1103
|
+
*/
|
|
1104
|
+
function _handleDateType(obj, isDateOnly) {
|
|
1105
|
+
if (obj instanceof Date && isDateOnly !== undefined) {
|
|
1106
|
+
return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
|
|
1107
|
+
}
|
|
1108
|
+
return obj;
|
|
1109
|
+
}
|
|
1110
|
+
ObjectstoreStats.prototype.objectCount = undefined;
|
|
1111
|
+
|
|
1112
|
+
/**
|
|
1113
|
+
* Number of Buckets in the Object store. This stat is updated every 10 minutes.
|
|
1114
|
+
* @memberof ObjectstoreStats
|
|
1115
|
+
*/
|
|
1116
|
+
ObjectstoreStats.prototype.bucketCount = undefined;
|
|
1117
|
+
|
|
1118
|
+
/**
|
|
1119
|
+
* 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.
|
|
1120
|
+
* @memberof ObjectstoreStats
|
|
1121
|
+
*/
|
|
1122
|
+
ObjectstoreStats.prototype.storageUsageBytes = undefined;
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* Number of bytes written per second to the Object store from operations on the Objects and Buckets.
|
|
1126
|
+
* @memberof ObjectstoreStats
|
|
1127
|
+
*/
|
|
1128
|
+
ObjectstoreStats.prototype.inboundBytesPerSecond = undefined;
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* Number of bytes read per second from the Object store from operations on the Objects and Buckets.
|
|
1132
|
+
* @memberof ObjectstoreStats
|
|
1133
|
+
*/
|
|
1134
|
+
ObjectstoreStats.prototype.outboundBytesPerSecond = undefined;
|
|
1135
|
+
|
|
1136
|
+
/**
|
|
1137
|
+
* Throughput of HTTP GET requests in bytes per second.
|
|
1138
|
+
* @memberof ObjectstoreStats
|
|
1139
|
+
*/
|
|
1140
|
+
ObjectstoreStats.prototype.getRequestThroughputBytesPerSecond = undefined;
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* Throughput of HTTP PUT requests in bytes per second.
|
|
1144
|
+
* @memberof ObjectstoreStats
|
|
1145
|
+
*/
|
|
1146
|
+
ObjectstoreStats.prototype.putRequestThroughputBytesPerSecond = undefined;
|
|
1147
|
+
|
|
1148
|
+
/**
|
|
1149
|
+
* Number of HTTP POST requests per second on the Objects and Buckets of the Object store.
|
|
1150
|
+
* @memberof ObjectstoreStats
|
|
1151
|
+
*/
|
|
1152
|
+
ObjectstoreStats.prototype.postRequestsPerSecond = undefined;
|
|
1153
|
+
|
|
1154
|
+
/**
|
|
1155
|
+
* Number of HTTP HEAD requests per second on the Objects and Buckets of the Object store.
|
|
1156
|
+
* @memberof ObjectstoreStats
|
|
1157
|
+
*/
|
|
1158
|
+
ObjectstoreStats.prototype.headRequestsPerSecond = undefined;
|
|
1159
|
+
|
|
1160
|
+
/**
|
|
1161
|
+
* Number of HTTP GET requests per second on the Objects and Buckets of the Object store.
|
|
1162
|
+
* @memberof ObjectstoreStats
|
|
1163
|
+
*/
|
|
1164
|
+
ObjectstoreStats.prototype.getRequestsPerSecond = undefined;
|
|
1165
|
+
|
|
1166
|
+
/**
|
|
1167
|
+
* Number of HTTP PUT requests per second on the Objects and Buckets of the Object store.
|
|
1168
|
+
* @memberof ObjectstoreStats
|
|
1169
|
+
*/
|
|
1170
|
+
ObjectstoreStats.prototype.putRequestsPerSecond = undefined;
|
|
1171
|
+
|
|
1172
|
+
/**
|
|
1173
|
+
* Number of HTTP DELETE requests per second on the Objects and Buckets of the Object store.
|
|
1174
|
+
* @memberof ObjectstoreStats
|
|
1175
|
+
*/
|
|
1176
|
+
ObjectstoreStats.prototype.deleteRequestsPerSecond = undefined;
|
|
1177
|
+
|
|
1178
|
+
/**
|
|
1179
|
+
* Number of operations per second on the objects of the Object store.
|
|
1180
|
+
* @memberof ObjectstoreStats
|
|
1181
|
+
*/
|
|
1182
|
+
ObjectstoreStats.prototype.objectOperationsPerSecond = undefined;
|
|
1183
|
+
|
|
1184
|
+
/**
|
|
1185
|
+
* Time to the first byte in milliseconds for Get Object requests.
|
|
1186
|
+
* @memberof ObjectstoreStats
|
|
1187
|
+
*/
|
|
1188
|
+
ObjectstoreStats.prototype.getObjectTtfbMsecs = undefined;
|
|
1189
|
+
|
|
1190
|
+
/**
|
|
1191
|
+
* Number of GetBucket operations per second.
|
|
1192
|
+
* @memberof ObjectstoreStats
|
|
1193
|
+
*/
|
|
1194
|
+
ObjectstoreStats.prototype.getBucketOperationsPerSecond = undefined;
|
|
1195
|
+
|
|
1196
|
+
/**
|
|
1197
|
+
* The number of ListMultipartUploads operations per second.
|
|
1198
|
+
* @memberof ObjectstoreStats
|
|
1199
|
+
*/
|
|
1200
|
+
ObjectstoreStats.prototype.listMultipartUploadsOperationsPerSecond = undefined;
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
* The number of CreateMultipartUpload operations per second.
|
|
1204
|
+
* @memberof ObjectstoreStats
|
|
1205
|
+
*/
|
|
1206
|
+
ObjectstoreStats.prototype.multipartUploadStartOperationsPerSecond = undefined;
|
|
1207
|
+
|
|
1208
|
+
/**
|
|
1209
|
+
* The number of SelectObjectContent operations per second.
|
|
1210
|
+
* @memberof ObjectstoreStats
|
|
1211
|
+
*/
|
|
1212
|
+
ObjectstoreStats.prototype.selectObjectContentOperationsPerSecond = undefined;
|
|
1213
|
+
|
|
1214
|
+
/**
|
|
1215
|
+
* Number of Network File System (NFS) read requests per second on the objects of the Object store.
|
|
1216
|
+
* @memberof ObjectstoreStats
|
|
1217
|
+
*/
|
|
1218
|
+
ObjectstoreStats.prototype.nfsReadRequestsPerSecond = undefined;
|
|
1219
|
+
|
|
1220
|
+
/**
|
|
1221
|
+
* Number of Network File System (NFS) write requests per second on the objects of the Object store.
|
|
1222
|
+
* @memberof ObjectstoreStats
|
|
1223
|
+
*/
|
|
1224
|
+
ObjectstoreStats.prototype.nfsWriteRequestsPerSecond = undefined;
|
|
1225
|
+
|
|
1226
|
+
/**
|
|
1227
|
+
* Throughput of Network File System (NFS) read operations in bytes per second on the objects of the Object store.
|
|
1228
|
+
* @memberof ObjectstoreStats
|
|
1229
|
+
*/
|
|
1230
|
+
ObjectstoreStats.prototype.nfsReadThroughputBytesPerSecond = undefined;
|
|
1231
|
+
|
|
1232
|
+
/**
|
|
1233
|
+
* Throughput of Network File System (NFS) write operations in bytes per second on the objects of the Object store.
|
|
1234
|
+
* @memberof ObjectstoreStats
|
|
1235
|
+
*/
|
|
1236
|
+
ObjectstoreStats.prototype.nfsWriteThroughputBytesPerSecond = undefined;
|
|
1237
|
+
|
|
1238
|
+
/**
|
|
1239
|
+
* A globally unique identifier of an instance that is suitable for external consumption.
|
|
1240
|
+
* @memberof ObjectstoreStats
|
|
1241
|
+
*/
|
|
1242
|
+
_ExternalizableAbstractModel.default.prototype.extId = undefined;
|
|
1243
|
+
/**
|
|
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.
|
|
1245
|
+
* @memberof ObjectstoreStats
|
|
1246
|
+
*/
|
|
1247
|
+
_ExternalizableAbstractModel.default.prototype.links = undefined;
|
|
1248
|
+
/**
|
|
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).
|
|
1250
|
+
* @memberof ObjectstoreStats
|
|
1251
|
+
*/
|
|
1252
|
+
_TenantAwareModel.default.prototype.tenantId = undefined;
|
|
1253
|
+
// Implement OneOfobjects.v4.stats.GetObjectstoreStatsApiResponsedata interface:
|