@nutanix-scratch/multidomain-js-client 4.2.1
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/LICENSE.txt +202 -0
- package/README.md +224 -0
- package/dist/Ntnx-Multidomain-js-client-prod.js +1 -0
- package/dist/Ntnx-Multidomain-js-client.js +713 -0
- package/dist/es/ApiClient.d.ts +194 -0
- package/dist/es/ApiClient.js +1449 -0
- package/dist/es/Paginable.d.ts +95 -0
- package/dist/es/Paginable.js +248 -0
- package/dist/es/apis/externalrepositories-endpoints.d.ts +84 -0
- package/dist/es/apis/externalrepositories-endpoints.js +267 -0
- package/dist/es/index.d.ts +60 -0
- package/dist/es/index.js +236 -0
- package/dist/es/models/common/v1/config/FQDN.d.ts +47 -0
- package/dist/es/models/common/v1/config/FQDN.js +238 -0
- package/dist/es/models/common/v1/config/Flag.d.ts +58 -0
- package/dist/es/models/common/v1/config/Flag.js +278 -0
- package/dist/es/models/common/v1/config/IPAddressOrFQDN.d.ts +70 -0
- package/dist/es/models/common/v1/config/IPAddressOrFQDN.js +313 -0
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +70 -0
- package/dist/es/models/common/v1/config/IPv4Address.js +288 -0
- package/dist/es/models/common/v1/config/IPv6Address.d.ts +70 -0
- package/dist/es/models/common/v1/config/IPv6Address.js +288 -0
- package/dist/es/models/common/v1/config/KVPair.d.ts +65 -0
- package/dist/es/models/common/v1/config/KVPair.js +333 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +53 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +236 -0
- package/dist/es/models/common/v1/config/Message.d.ts +79 -0
- package/dist/es/models/common/v1/config/Message.js +341 -0
- package/dist/es/models/common/v1/config/MessageSeverity.d.ts +19 -0
- package/dist/es/models/common/v1/config/MessageSeverity.js +89 -0
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +47 -0
- package/dist/es/models/common/v1/config/TenantAwareModel.js +235 -0
- package/dist/es/models/common/v1/response/ApiLink.d.ts +58 -0
- package/dist/es/models/common/v1/response/ApiLink.js +271 -0
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +95 -0
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +419 -0
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +34 -0
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +262 -0
- package/dist/es/models/multidomain/v4/config/CreateExternalRepositoryApiResponse.d.ts +58 -0
- package/dist/es/models/multidomain/v4/config/CreateExternalRepositoryApiResponse.js +288 -0
- package/dist/es/models/multidomain/v4/config/DeleteExternalRepositoryApiResponse.d.ts +58 -0
- package/dist/es/models/multidomain/v4/config/DeleteExternalRepositoryApiResponse.js +288 -0
- package/dist/es/models/multidomain/v4/config/ExternalRepository.d.ts +59 -0
- package/dist/es/models/multidomain/v4/config/ExternalRepository.js +328 -0
- package/dist/es/models/multidomain/v4/config/GetExternalRepositoryApiResponse.d.ts +58 -0
- package/dist/es/models/multidomain/v4/config/GetExternalRepositoryApiResponse.js +288 -0
- package/dist/es/models/multidomain/v4/config/ListExternalRepositoriesApiResponse.d.ts +58 -0
- package/dist/es/models/multidomain/v4/config/ListExternalRepositoriesApiResponse.js +310 -0
- package/dist/es/models/multidomain/v4/config/NFSServerAddress.d.ts +71 -0
- package/dist/es/models/multidomain/v4/config/NFSServerAddress.js +279 -0
- package/dist/es/models/multidomain/v4/config/NfsRepository.d.ts +73 -0
- package/dist/es/models/multidomain/v4/config/NfsRepository.js +299 -0
- package/dist/es/models/multidomain/v4/config/UpdateExternalRepositoryApiResponse.d.ts +58 -0
- package/dist/es/models/multidomain/v4/config/UpdateExternalRepositoryApiResponse.js +288 -0
- package/dist/es/models/multidomain/v4/error/AppMessage.d.ts +107 -0
- package/dist/es/models/multidomain/v4/error/AppMessage.js +415 -0
- package/dist/es/models/multidomain/v4/error/ErrorResponse.d.ts +47 -0
- package/dist/es/models/multidomain/v4/error/ErrorResponse.js +277 -0
- package/dist/es/models/multidomain/v4/error/SchemaValidationError.d.ts +92 -0
- package/dist/es/models/multidomain/v4/error/SchemaValidationError.js +389 -0
- package/dist/es/models/multidomain/v4/error/SchemaValidationErrorMessage.d.ts +69 -0
- package/dist/es/models/multidomain/v4/error/SchemaValidationErrorMessage.js +307 -0
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +47 -0
- package/dist/es/models/prism/v4/config/TaskReference.js +242 -0
- package/dist/es/models/validation/ValidationError.d.ts +13 -0
- package/dist/es/models/validation/ValidationError.js +44 -0
- package/dist/es/models/validation/ValidationScopes.d.ts +9 -0
- package/dist/es/models/validation/ValidationScopes.js +38 -0
- package/dist/es/utils/ValidationUtils.d.ts +13 -0
- package/dist/es/utils/ValidationUtils.js +55 -0
- package/dist/lib/ApiClient.d.ts +194 -0
- package/dist/lib/ApiClient.js +1449 -0
- package/dist/lib/Paginable.d.ts +95 -0
- package/dist/lib/Paginable.js +248 -0
- package/dist/lib/apis/externalrepositories-endpoints.d.ts +84 -0
- package/dist/lib/apis/externalrepositories-endpoints.js +267 -0
- package/dist/lib/index.d.ts +60 -0
- package/dist/lib/index.js +236 -0
- package/dist/lib/models/common/v1/config/FQDN.d.ts +47 -0
- package/dist/lib/models/common/v1/config/FQDN.js +238 -0
- package/dist/lib/models/common/v1/config/Flag.d.ts +58 -0
- package/dist/lib/models/common/v1/config/Flag.js +278 -0
- package/dist/lib/models/common/v1/config/IPAddressOrFQDN.d.ts +70 -0
- package/dist/lib/models/common/v1/config/IPAddressOrFQDN.js +313 -0
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +70 -0
- package/dist/lib/models/common/v1/config/IPv4Address.js +288 -0
- package/dist/lib/models/common/v1/config/IPv6Address.d.ts +70 -0
- package/dist/lib/models/common/v1/config/IPv6Address.js +288 -0
- package/dist/lib/models/common/v1/config/KVPair.d.ts +65 -0
- package/dist/lib/models/common/v1/config/KVPair.js +333 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +53 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +236 -0
- package/dist/lib/models/common/v1/config/Message.d.ts +79 -0
- package/dist/lib/models/common/v1/config/Message.js +341 -0
- package/dist/lib/models/common/v1/config/MessageSeverity.d.ts +19 -0
- package/dist/lib/models/common/v1/config/MessageSeverity.js +89 -0
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +47 -0
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +235 -0
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +58 -0
- package/dist/lib/models/common/v1/response/ApiLink.js +271 -0
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +95 -0
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +419 -0
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +34 -0
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +262 -0
- package/dist/lib/models/multidomain/v4/config/CreateExternalRepositoryApiResponse.d.ts +58 -0
- package/dist/lib/models/multidomain/v4/config/CreateExternalRepositoryApiResponse.js +288 -0
- package/dist/lib/models/multidomain/v4/config/DeleteExternalRepositoryApiResponse.d.ts +58 -0
- package/dist/lib/models/multidomain/v4/config/DeleteExternalRepositoryApiResponse.js +288 -0
- package/dist/lib/models/multidomain/v4/config/ExternalRepository.d.ts +59 -0
- package/dist/lib/models/multidomain/v4/config/ExternalRepository.js +328 -0
- package/dist/lib/models/multidomain/v4/config/GetExternalRepositoryApiResponse.d.ts +58 -0
- package/dist/lib/models/multidomain/v4/config/GetExternalRepositoryApiResponse.js +288 -0
- package/dist/lib/models/multidomain/v4/config/ListExternalRepositoriesApiResponse.d.ts +58 -0
- package/dist/lib/models/multidomain/v4/config/ListExternalRepositoriesApiResponse.js +310 -0
- package/dist/lib/models/multidomain/v4/config/NFSServerAddress.d.ts +71 -0
- package/dist/lib/models/multidomain/v4/config/NFSServerAddress.js +279 -0
- package/dist/lib/models/multidomain/v4/config/NfsRepository.d.ts +73 -0
- package/dist/lib/models/multidomain/v4/config/NfsRepository.js +299 -0
- package/dist/lib/models/multidomain/v4/config/UpdateExternalRepositoryApiResponse.d.ts +58 -0
- package/dist/lib/models/multidomain/v4/config/UpdateExternalRepositoryApiResponse.js +288 -0
- package/dist/lib/models/multidomain/v4/error/AppMessage.d.ts +107 -0
- package/dist/lib/models/multidomain/v4/error/AppMessage.js +415 -0
- package/dist/lib/models/multidomain/v4/error/ErrorResponse.d.ts +47 -0
- package/dist/lib/models/multidomain/v4/error/ErrorResponse.js +277 -0
- package/dist/lib/models/multidomain/v4/error/SchemaValidationError.d.ts +92 -0
- package/dist/lib/models/multidomain/v4/error/SchemaValidationError.js +389 -0
- package/dist/lib/models/multidomain/v4/error/SchemaValidationErrorMessage.d.ts +69 -0
- package/dist/lib/models/multidomain/v4/error/SchemaValidationErrorMessage.js +307 -0
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +47 -0
- package/dist/lib/models/prism/v4/config/TaskReference.js +242 -0
- package/dist/lib/models/validation/ValidationError.d.ts +13 -0
- package/dist/lib/models/validation/ValidationError.js +44 -0
- package/dist/lib/models/validation/ValidationScopes.d.ts +9 -0
- package/dist/lib/models/validation/ValidationScopes.js +38 -0
- package/dist/lib/utils/ValidationUtils.d.ts +13 -0
- package/dist/lib/utils/ValidationUtils.js +55 -0
- package/package.json +53 -0
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
8
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
9
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
12
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
|
|
13
|
+
* Nutanix Multidomain Versioned APIs
|
|
14
|
+
*
|
|
15
|
+
* OpenAPI spec version: 4.2.1
|
|
16
|
+
*
|
|
17
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
18
|
+
*
|
|
19
|
+
* Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE
|
|
20
|
+
*
|
|
21
|
+
* Do not edit the class manually.
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* The TenantAwareModel model module.
|
|
26
|
+
* @module Ntnx/TenantAwareModel
|
|
27
|
+
* @version 4.2.1
|
|
28
|
+
* @class TenantAwareModel
|
|
29
|
+
*/
|
|
30
|
+
var _TenantAwareModel_brand = /*#__PURE__*/new WeakSet();
|
|
31
|
+
class TenantAwareModel {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new <code>TenantAwareModel</code>.
|
|
34
|
+
* A model base class whose instances are bound to a specific tenant. This model adds a tenantId to the base model class that it extends and is automatically set by the server.
|
|
35
|
+
* @alias module:Ntnx/TenantAwareModel
|
|
36
|
+
*/
|
|
37
|
+
constructor() {
|
|
38
|
+
/*
|
|
39
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
40
|
+
* @param {Object} obj
|
|
41
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
42
|
+
* Otherwise, just returns the input object.
|
|
43
|
+
*/
|
|
44
|
+
_classPrivateMethodInitSpec(this, _TenantAwareModel_brand);
|
|
45
|
+
this.$objectType = "common.v1.config.TenantAwareModel";
|
|
46
|
+
/** @type {object<string, any>} */
|
|
47
|
+
this.$reserved = {
|
|
48
|
+
'$fv': "v1.r0"
|
|
49
|
+
};
|
|
50
|
+
/** @type {object<string, any>} */
|
|
51
|
+
this.$unknownFields = {};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Constructs a <code>TenantAwareModel</code> from a plain JavaScript object, optionally creating a new instance.
|
|
56
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
57
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
58
|
+
* @param {module:Ntnx/TenantAwareModel} obj Optional instance to populate.
|
|
59
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
60
|
+
* @return {module:Ntnx/TenantAwareModel} The populated <code>TenantAwareModel</code> instance.
|
|
61
|
+
*/
|
|
62
|
+
static constructFromObject(data, obj = null, callFromChild = false) {
|
|
63
|
+
let items, item, i, itemArr, discriminator;
|
|
64
|
+
if (data) {
|
|
65
|
+
obj = obj || new TenantAwareModel();
|
|
66
|
+
if (data.hasOwnProperty('tenantId') && data.tenantId !== null && data.tenantId !== undefined) {
|
|
67
|
+
obj.setTenantId(data['tenantId']);
|
|
68
|
+
}
|
|
69
|
+
if (data.hasOwnProperty('$reserved')) {
|
|
70
|
+
obj.$reserved = data['$reserved'];
|
|
71
|
+
}
|
|
72
|
+
if (data.hasOwnProperty('$objectType')) {
|
|
73
|
+
obj.$objectType = data['$objectType'];
|
|
74
|
+
}
|
|
75
|
+
if (data.hasOwnProperty('$unknownFields')) {
|
|
76
|
+
obj.$unknownFields = data['$unknownFields'];
|
|
77
|
+
}
|
|
78
|
+
if (!callFromChild) {
|
|
79
|
+
obj.$unknownFields = {
|
|
80
|
+
...data.$unknownFields
|
|
81
|
+
};
|
|
82
|
+
for (const property in data) {
|
|
83
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
84
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
85
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
86
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
87
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
88
|
+
obj.$unknownFields[property] = data[property];
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return obj;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Converts a given snake_case string to camelCase.
|
|
98
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
99
|
+
* @returns {string} - The converted string in camelCase format.
|
|
100
|
+
*/
|
|
101
|
+
static snakeToCamel(snakeStr) {
|
|
102
|
+
return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Returns 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).
|
|
107
|
+
* @return {string}
|
|
108
|
+
*/
|
|
109
|
+
getTenantId() {
|
|
110
|
+
return this.tenantId;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Sets 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).
|
|
115
|
+
* @param {string} tenantId 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).
|
|
116
|
+
*/
|
|
117
|
+
setTenantId(tenantId) {
|
|
118
|
+
this.tenantId = tenantId;
|
|
119
|
+
}
|
|
120
|
+
get$Reserved() {
|
|
121
|
+
return this.$reserved;
|
|
122
|
+
}
|
|
123
|
+
get$ObjectType() {
|
|
124
|
+
return this.$objectType;
|
|
125
|
+
}
|
|
126
|
+
get$UnknownFields() {
|
|
127
|
+
return this.$unknownFields;
|
|
128
|
+
}
|
|
129
|
+
toJson(forMutation) {
|
|
130
|
+
if (forMutation === false) {
|
|
131
|
+
return {
|
|
132
|
+
...(typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
|
|
133
|
+
'tenantId': this.getTenantId()
|
|
134
|
+
} : {}),
|
|
135
|
+
'$reserved': this.get$Reserved(),
|
|
136
|
+
'$objectType': this.get$ObjectType(),
|
|
137
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
138
|
+
'$unknownFields': {}
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
return {
|
|
142
|
+
'$reserved': this.get$Reserved(),
|
|
143
|
+
'$objectType': this.get$ObjectType(),
|
|
144
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
145
|
+
'$unknownFields': {}
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
validate(scope, properties) {
|
|
149
|
+
let propList = [];
|
|
150
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
|
|
151
|
+
//cases validate() and validate(scope)
|
|
152
|
+
propList = [];
|
|
153
|
+
} else if (arguments.length === 1) {
|
|
154
|
+
//case validate(properties)
|
|
155
|
+
propList = arguments[0];
|
|
156
|
+
scope = null;
|
|
157
|
+
} else {
|
|
158
|
+
//case validate(scope, properties)
|
|
159
|
+
propList = arguments[1];
|
|
160
|
+
}
|
|
161
|
+
let res = [];
|
|
162
|
+
let err = null;
|
|
163
|
+
propList.forEach(property => {
|
|
164
|
+
err = this.validateProperty(property, scope);
|
|
165
|
+
if (err) {
|
|
166
|
+
res.push(err);
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
return new Promise(function (resolve, reject) {
|
|
170
|
+
if (res.length !== 0) {
|
|
171
|
+
reject(err);
|
|
172
|
+
} else {
|
|
173
|
+
resolve();
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
validateProperty(scope, property) {
|
|
178
|
+
if (property === "tenantId") {
|
|
179
|
+
if (typeof this.tenantId === 'undefined' || this.tenantId === null) {
|
|
180
|
+
return new _ValidationError.default("tenantId", "undefined or null");
|
|
181
|
+
}
|
|
182
|
+
if (!_ValidationUtils.default.validatePattern(this.tenantId, /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)) {
|
|
183
|
+
return new _ValidationError.default("tenantId", "does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/");
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
if (property === "$reserved") {
|
|
187
|
+
if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
|
|
188
|
+
return new _ValidationError.default("$reserved", "undefined or null");
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
if (property === "$objectType") {
|
|
192
|
+
if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
|
|
193
|
+
return new _ValidationError.default("$objectType", "undefined or null");
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
if (property === "$unknownFields") {
|
|
197
|
+
if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
|
|
198
|
+
return new _ValidationError.default("$unknownFields", "undefined or null");
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
return new _ValidationError.default(property, "no such property exists");
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* 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).
|
|
207
|
+
* @memberof TenantAwareModel
|
|
208
|
+
*/
|
|
209
|
+
exports.default = TenantAwareModel;
|
|
210
|
+
function _toJsonMapType(obj, forMutation) {
|
|
211
|
+
if (obj instanceof Map) {
|
|
212
|
+
return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
|
|
213
|
+
} else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
|
|
214
|
+
return Object.fromEntries(Array.from(Object.entries(obj), entry => {
|
|
215
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
216
|
+
}));
|
|
217
|
+
}
|
|
218
|
+
return obj;
|
|
219
|
+
}
|
|
220
|
+
/*
|
|
221
|
+
* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
|
|
222
|
+
* @param {Object} obj Object to serialize
|
|
223
|
+
* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
|
|
224
|
+
* @returns {Object|string} Returns serialized date object or original input object
|
|
225
|
+
*/
|
|
226
|
+
function _handleDateType(obj, isDateOnly) {
|
|
227
|
+
if (obj instanceof Date && isDateOnly !== undefined) {
|
|
228
|
+
return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
|
|
229
|
+
}
|
|
230
|
+
return obj;
|
|
231
|
+
}
|
|
232
|
+
TenantAwareModel.prototype.tenantId = undefined;
|
|
233
|
+
TenantAwareModel.prototype.$reserved = undefined;
|
|
234
|
+
TenantAwareModel.prototype.$objectType = undefined;
|
|
235
|
+
TenantAwareModel.prototype.$unknownFields = undefined;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ApiLink model module.
|
|
3
|
+
* @module Ntnx/ApiLink
|
|
4
|
+
* @version 4.2.1
|
|
5
|
+
* @class ApiLink
|
|
6
|
+
*/
|
|
7
|
+
export default class ApiLink {
|
|
8
|
+
/**
|
|
9
|
+
* Constructs a <code>ApiLink</code> from a plain JavaScript object, optionally creating a new instance.
|
|
10
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
11
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
12
|
+
* @param {module:Ntnx/ApiLink} obj Optional instance to populate.
|
|
13
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
14
|
+
* @return {module:Ntnx/ApiLink} The populated <code>ApiLink</code> instance.
|
|
15
|
+
*/
|
|
16
|
+
static constructFromObject(data: any, obj?: any, callFromChild?: boolean): any;
|
|
17
|
+
/**
|
|
18
|
+
* Converts a given snake_case string to camelCase.
|
|
19
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
20
|
+
* @returns {string} - The converted string in camelCase format.
|
|
21
|
+
*/
|
|
22
|
+
static snakeToCamel(snakeStr: string): string;
|
|
23
|
+
$objectType: string;
|
|
24
|
+
/** @type {object<string, any>} */
|
|
25
|
+
$reserved: object;
|
|
26
|
+
/** @type {object<string, any>} */
|
|
27
|
+
$unknownFields: object;
|
|
28
|
+
/**
|
|
29
|
+
* Returns The URL at which the entity described by the link can be accessed.
|
|
30
|
+
* @return {string}
|
|
31
|
+
*/
|
|
32
|
+
getHref(): string;
|
|
33
|
+
/**
|
|
34
|
+
* Sets The URL at which the entity described by the link can be accessed.
|
|
35
|
+
* @param {string} href The URL at which the entity described by the link can be accessed.
|
|
36
|
+
*/
|
|
37
|
+
setHref(href: string): void;
|
|
38
|
+
href: string;
|
|
39
|
+
/**
|
|
40
|
+
* Returns A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of \"self\" identifies the URL for the object.
|
|
41
|
+
* @return {string}
|
|
42
|
+
*/
|
|
43
|
+
getRel(): string;
|
|
44
|
+
/**
|
|
45
|
+
* Sets A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of \"self\" identifies the URL for the object.
|
|
46
|
+
* @param {string} rel A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of \"self\" identifies the URL for the object.
|
|
47
|
+
*/
|
|
48
|
+
setRel(rel: string): void;
|
|
49
|
+
rel: string;
|
|
50
|
+
get$Reserved(): any;
|
|
51
|
+
get$ObjectType(): string;
|
|
52
|
+
get$UnknownFields(): any;
|
|
53
|
+
toJson(forMutation: any): any;
|
|
54
|
+
validate(scope: any, properties: any, ...args: any[]): Promise<any>;
|
|
55
|
+
validateProperty(scope: any, property: any): ValidationError;
|
|
56
|
+
#private;
|
|
57
|
+
}
|
|
58
|
+
import ValidationError from "../../../validation/ValidationError";
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
8
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
9
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
12
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
|
|
13
|
+
* Nutanix Multidomain Versioned APIs
|
|
14
|
+
*
|
|
15
|
+
* OpenAPI spec version: 4.2.1
|
|
16
|
+
*
|
|
17
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
18
|
+
*
|
|
19
|
+
* Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE
|
|
20
|
+
*
|
|
21
|
+
* Do not edit the class manually.
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* The ApiLink model module.
|
|
26
|
+
* @module Ntnx/ApiLink
|
|
27
|
+
* @version 4.2.1
|
|
28
|
+
* @class ApiLink
|
|
29
|
+
*/
|
|
30
|
+
var _ApiLink_brand = /*#__PURE__*/new WeakSet();
|
|
31
|
+
class ApiLink {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new <code>ApiLink</code>.
|
|
34
|
+
* 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.
|
|
35
|
+
* @alias module:Ntnx/ApiLink
|
|
36
|
+
*/
|
|
37
|
+
constructor() {
|
|
38
|
+
/*
|
|
39
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
40
|
+
* @param {Object} obj
|
|
41
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
42
|
+
* Otherwise, just returns the input object.
|
|
43
|
+
*/
|
|
44
|
+
_classPrivateMethodInitSpec(this, _ApiLink_brand);
|
|
45
|
+
this.$objectType = "common.v1.response.ApiLink";
|
|
46
|
+
/** @type {object<string, any>} */
|
|
47
|
+
this.$reserved = {
|
|
48
|
+
'$fv': "v1.r0"
|
|
49
|
+
};
|
|
50
|
+
/** @type {object<string, any>} */
|
|
51
|
+
this.$unknownFields = {};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Constructs a <code>ApiLink</code> from a plain JavaScript object, optionally creating a new instance.
|
|
56
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
57
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
58
|
+
* @param {module:Ntnx/ApiLink} obj Optional instance to populate.
|
|
59
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
60
|
+
* @return {module:Ntnx/ApiLink} The populated <code>ApiLink</code> instance.
|
|
61
|
+
*/
|
|
62
|
+
static constructFromObject(data, obj = null, callFromChild = false) {
|
|
63
|
+
let items, item, i, itemArr, discriminator;
|
|
64
|
+
if (data) {
|
|
65
|
+
obj = obj || new ApiLink();
|
|
66
|
+
if (data.hasOwnProperty('href') && data.href !== null && data.href !== undefined) {
|
|
67
|
+
obj.setHref(data['href']);
|
|
68
|
+
}
|
|
69
|
+
if (data.hasOwnProperty('rel') && data.rel !== null && data.rel !== undefined) {
|
|
70
|
+
obj.setRel(data['rel']);
|
|
71
|
+
}
|
|
72
|
+
if (data.hasOwnProperty('$reserved')) {
|
|
73
|
+
obj.$reserved = data['$reserved'];
|
|
74
|
+
}
|
|
75
|
+
if (data.hasOwnProperty('$objectType')) {
|
|
76
|
+
obj.$objectType = data['$objectType'];
|
|
77
|
+
}
|
|
78
|
+
if (data.hasOwnProperty('$unknownFields')) {
|
|
79
|
+
obj.$unknownFields = data['$unknownFields'];
|
|
80
|
+
}
|
|
81
|
+
if (!callFromChild) {
|
|
82
|
+
obj.$unknownFields = {
|
|
83
|
+
...data.$unknownFields
|
|
84
|
+
};
|
|
85
|
+
for (const property in data) {
|
|
86
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
87
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
88
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
89
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
90
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
91
|
+
obj.$unknownFields[property] = data[property];
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return obj;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Converts a given snake_case string to camelCase.
|
|
101
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
102
|
+
* @returns {string} - The converted string in camelCase format.
|
|
103
|
+
*/
|
|
104
|
+
static snakeToCamel(snakeStr) {
|
|
105
|
+
return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Returns The URL at which the entity described by the link can be accessed.
|
|
110
|
+
* @return {string}
|
|
111
|
+
*/
|
|
112
|
+
getHref() {
|
|
113
|
+
return this.href;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Sets The URL at which the entity described by the link can be accessed.
|
|
118
|
+
* @param {string} href The URL at which the entity described by the link can be accessed.
|
|
119
|
+
*/
|
|
120
|
+
setHref(href) {
|
|
121
|
+
this.href = href;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Returns A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of \"self\" identifies the URL for the object.
|
|
126
|
+
* @return {string}
|
|
127
|
+
*/
|
|
128
|
+
getRel() {
|
|
129
|
+
return this.rel;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Sets A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of \"self\" identifies the URL for the object.
|
|
134
|
+
* @param {string} rel A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of \"self\" identifies the URL for the object.
|
|
135
|
+
*/
|
|
136
|
+
setRel(rel) {
|
|
137
|
+
this.rel = rel;
|
|
138
|
+
}
|
|
139
|
+
get$Reserved() {
|
|
140
|
+
return this.$reserved;
|
|
141
|
+
}
|
|
142
|
+
get$ObjectType() {
|
|
143
|
+
return this.$objectType;
|
|
144
|
+
}
|
|
145
|
+
get$UnknownFields() {
|
|
146
|
+
return this.$unknownFields;
|
|
147
|
+
}
|
|
148
|
+
toJson(forMutation) {
|
|
149
|
+
if (forMutation === false) {
|
|
150
|
+
return {
|
|
151
|
+
...(typeof this.getHref() !== 'undefined' && this.getHref() !== null ? {
|
|
152
|
+
'href': this.getHref()
|
|
153
|
+
} : {}),
|
|
154
|
+
...(typeof this.getRel() !== 'undefined' && this.getRel() !== null ? {
|
|
155
|
+
'rel': this.getRel()
|
|
156
|
+
} : {}),
|
|
157
|
+
'$reserved': this.get$Reserved(),
|
|
158
|
+
'$objectType': this.get$ObjectType(),
|
|
159
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
160
|
+
'$unknownFields': {}
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
return {
|
|
164
|
+
...(typeof this.getHref() !== 'undefined' && this.getHref() !== null ? {
|
|
165
|
+
'href': this.getHref()
|
|
166
|
+
} : {}),
|
|
167
|
+
...(typeof this.getRel() !== 'undefined' && this.getRel() !== null ? {
|
|
168
|
+
'rel': this.getRel()
|
|
169
|
+
} : {}),
|
|
170
|
+
'$reserved': this.get$Reserved(),
|
|
171
|
+
'$objectType': this.get$ObjectType(),
|
|
172
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
173
|
+
'$unknownFields': {}
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
validate(scope, properties) {
|
|
177
|
+
let propList = [];
|
|
178
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
|
|
179
|
+
//cases validate() and validate(scope)
|
|
180
|
+
propList = [];
|
|
181
|
+
} else if (arguments.length === 1) {
|
|
182
|
+
//case validate(properties)
|
|
183
|
+
propList = arguments[0];
|
|
184
|
+
scope = null;
|
|
185
|
+
} else {
|
|
186
|
+
//case validate(scope, properties)
|
|
187
|
+
propList = arguments[1];
|
|
188
|
+
}
|
|
189
|
+
let res = [];
|
|
190
|
+
let err = null;
|
|
191
|
+
propList.forEach(property => {
|
|
192
|
+
err = this.validateProperty(property, scope);
|
|
193
|
+
if (err) {
|
|
194
|
+
res.push(err);
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
return new Promise(function (resolve, reject) {
|
|
198
|
+
if (res.length !== 0) {
|
|
199
|
+
reject(err);
|
|
200
|
+
} else {
|
|
201
|
+
resolve();
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
validateProperty(scope, property) {
|
|
206
|
+
if (property === "href") {
|
|
207
|
+
if (typeof this.href === 'undefined' || this.href === null) {
|
|
208
|
+
return new _ValidationError.default("href", "undefined or null");
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
if (property === "rel") {
|
|
212
|
+
if (typeof this.rel === 'undefined' || this.rel === null) {
|
|
213
|
+
return new _ValidationError.default("rel", "undefined or null");
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
if (property === "$reserved") {
|
|
217
|
+
if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
|
|
218
|
+
return new _ValidationError.default("$reserved", "undefined or null");
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
if (property === "$objectType") {
|
|
222
|
+
if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
|
|
223
|
+
return new _ValidationError.default("$objectType", "undefined or null");
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
if (property === "$unknownFields") {
|
|
227
|
+
if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
|
|
228
|
+
return new _ValidationError.default("$unknownFields", "undefined or null");
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
return new _ValidationError.default(property, "no such property exists");
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* The URL at which the entity described by the link can be accessed.
|
|
237
|
+
* @memberof ApiLink
|
|
238
|
+
*/
|
|
239
|
+
exports.default = ApiLink;
|
|
240
|
+
function _toJsonMapType(obj, forMutation) {
|
|
241
|
+
if (obj instanceof Map) {
|
|
242
|
+
return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
|
|
243
|
+
} else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
|
|
244
|
+
return Object.fromEntries(Array.from(Object.entries(obj), entry => {
|
|
245
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
246
|
+
}));
|
|
247
|
+
}
|
|
248
|
+
return obj;
|
|
249
|
+
}
|
|
250
|
+
/*
|
|
251
|
+
* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
|
|
252
|
+
* @param {Object} obj Object to serialize
|
|
253
|
+
* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
|
|
254
|
+
* @returns {Object|string} Returns serialized date object or original input object
|
|
255
|
+
*/
|
|
256
|
+
function _handleDateType(obj, isDateOnly) {
|
|
257
|
+
if (obj instanceof Date && isDateOnly !== undefined) {
|
|
258
|
+
return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
|
|
259
|
+
}
|
|
260
|
+
return obj;
|
|
261
|
+
}
|
|
262
|
+
ApiLink.prototype.href = undefined;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of \"self\" identifies the URL for the object.
|
|
266
|
+
* @memberof ApiLink
|
|
267
|
+
*/
|
|
268
|
+
ApiLink.prototype.rel = undefined;
|
|
269
|
+
ApiLink.prototype.$reserved = undefined;
|
|
270
|
+
ApiLink.prototype.$objectType = undefined;
|
|
271
|
+
ApiLink.prototype.$unknownFields = undefined;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ApiResponseMetadata model module.
|
|
3
|
+
* @module Ntnx/ApiResponseMetadata
|
|
4
|
+
* @version 4.2.1
|
|
5
|
+
* @class ApiResponseMetadata
|
|
6
|
+
*/
|
|
7
|
+
export default class ApiResponseMetadata {
|
|
8
|
+
/**
|
|
9
|
+
* Constructs a <code>ApiResponseMetadata</code> from a plain JavaScript object, optionally creating a new instance.
|
|
10
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
11
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
12
|
+
* @param {module:Ntnx/ApiResponseMetadata} obj Optional instance to populate.
|
|
13
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
14
|
+
* @return {module:Ntnx/ApiResponseMetadata} The populated <code>ApiResponseMetadata</code> instance.
|
|
15
|
+
*/
|
|
16
|
+
static constructFromObject(data: any, obj?: any, callFromChild?: boolean): any;
|
|
17
|
+
/**
|
|
18
|
+
* Converts a given snake_case string to camelCase.
|
|
19
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
20
|
+
* @returns {string} - The converted string in camelCase format.
|
|
21
|
+
*/
|
|
22
|
+
static snakeToCamel(snakeStr: string): string;
|
|
23
|
+
$objectType: string;
|
|
24
|
+
/** @type {object<string, any>} */
|
|
25
|
+
$reserved: object;
|
|
26
|
+
/** @type {object<string, any>} */
|
|
27
|
+
$unknownFields: object;
|
|
28
|
+
/**
|
|
29
|
+
* Returns An array of flags that may indicate the status of the response. For example, a flag with the name 'isPaginated' and value 'false', indicates that the response is not paginated.
|
|
30
|
+
* @return {Flag[]}
|
|
31
|
+
*/
|
|
32
|
+
getFlags(): Flag[];
|
|
33
|
+
/**
|
|
34
|
+
* Sets An array of flags that may indicate the status of the response. For example, a flag with the name 'isPaginated' and value 'false', indicates that the response is not paginated.
|
|
35
|
+
* @param {Flag[]} flags An array of flags that may indicate the status of the response. For example, a flag with the name 'isPaginated' and value 'false', indicates that the response is not paginated.
|
|
36
|
+
*/
|
|
37
|
+
setFlags(flags: Flag[]): void;
|
|
38
|
+
flags: Flag[];
|
|
39
|
+
/**
|
|
40
|
+
* Returns An array of HATEOAS style links for the response that may also include pagination links for list operations.
|
|
41
|
+
* @return {ApiLink[]}
|
|
42
|
+
*/
|
|
43
|
+
getLinks(): ApiLink[];
|
|
44
|
+
/**
|
|
45
|
+
* Sets An array of HATEOAS style links for the response that may also include pagination links for list operations.
|
|
46
|
+
* @param {ApiLink[]} links An array of HATEOAS style links for the response that may also include pagination links for list operations.
|
|
47
|
+
*/
|
|
48
|
+
setLinks(links: ApiLink[]): void;
|
|
49
|
+
links: ApiLink[];
|
|
50
|
+
/**
|
|
51
|
+
* Returns The total number of entities that are available on the server for this type.
|
|
52
|
+
* @return {Number}
|
|
53
|
+
*/
|
|
54
|
+
getTotalAvailableResults(): number;
|
|
55
|
+
/**
|
|
56
|
+
* Sets The total number of entities that are available on the server for this type.
|
|
57
|
+
* @param {Number} totalAvailableResults The total number of entities that are available on the server for this type.
|
|
58
|
+
*/
|
|
59
|
+
setTotalAvailableResults(totalAvailableResults: number): void;
|
|
60
|
+
totalAvailableResults: number;
|
|
61
|
+
/**
|
|
62
|
+
* Returns Information, Warning or Error messages that might provide additional contextual information related to the operation.
|
|
63
|
+
* @return {Message[]}
|
|
64
|
+
*/
|
|
65
|
+
getMessages(): Message[];
|
|
66
|
+
/**
|
|
67
|
+
* Sets Information, Warning or Error messages that might provide additional contextual information related to the operation.
|
|
68
|
+
* @param {Message[]} messages Information, Warning or Error messages that might provide additional contextual information related to the operation.
|
|
69
|
+
*/
|
|
70
|
+
setMessages(messages: Message[]): void;
|
|
71
|
+
messages: Message[];
|
|
72
|
+
/**
|
|
73
|
+
* Returns An array of entity-specific metadata
|
|
74
|
+
* @return {KVPair[]}
|
|
75
|
+
*/
|
|
76
|
+
getExtraInfo(): KVPair[];
|
|
77
|
+
/**
|
|
78
|
+
* Sets An array of entity-specific metadata
|
|
79
|
+
* @param {KVPair[]} extraInfo An array of entity-specific metadata
|
|
80
|
+
*/
|
|
81
|
+
setExtraInfo(extraInfo: KVPair[]): void;
|
|
82
|
+
extraInfo: KVPair[];
|
|
83
|
+
get$Reserved(): any;
|
|
84
|
+
get$ObjectType(): string;
|
|
85
|
+
get$UnknownFields(): any;
|
|
86
|
+
toJson(forMutation: any): any;
|
|
87
|
+
validate(scope: any, properties: any, ...args: any[]): Promise<any>;
|
|
88
|
+
validateProperty(scope: any, property: any): ValidationError;
|
|
89
|
+
#private;
|
|
90
|
+
}
|
|
91
|
+
import Flag from "../config/Flag";
|
|
92
|
+
import ApiLink from "./ApiLink";
|
|
93
|
+
import Message from "../config/Message";
|
|
94
|
+
import KVPair from "../config/KVPair";
|
|
95
|
+
import ValidationError from "../../../validation/ValidationError";
|