@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,267 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ExternalRepositoriesApi = void 0;
|
|
7
|
+
var _ApiClient = require("../ApiClient");
|
|
8
|
+
var _ListExternalRepositoriesApiResponse = _interopRequireDefault(require("../models/multidomain/v4/config/ListExternalRepositoriesApiResponse"));
|
|
9
|
+
var _CreateExternalRepositoryApiResponse = _interopRequireDefault(require("../models/multidomain/v4/config/CreateExternalRepositoryApiResponse"));
|
|
10
|
+
var _DeleteExternalRepositoryApiResponse = _interopRequireDefault(require("../models/multidomain/v4/config/DeleteExternalRepositoryApiResponse"));
|
|
11
|
+
var _ExternalRepository = _interopRequireDefault(require("../models/multidomain/v4/config/ExternalRepository"));
|
|
12
|
+
var _GetExternalRepositoryApiResponse = _interopRequireDefault(require("../models/multidomain/v4/config/GetExternalRepositoryApiResponse"));
|
|
13
|
+
var _UpdateExternalRepositoryApiResponse = _interopRequireDefault(require("../models/multidomain/v4/config/UpdateExternalRepositoryApiResponse"));
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
/*
|
|
16
|
+
* Nutanix Multidomain Versioned APIs
|
|
17
|
+
*
|
|
18
|
+
* OpenAPI spec version: 4.2.1
|
|
19
|
+
*
|
|
20
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
21
|
+
*
|
|
22
|
+
* Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE
|
|
23
|
+
*
|
|
24
|
+
* Do not edit the class manually.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* ExternalRepositories service.
|
|
30
|
+
* @version 4.2.1
|
|
31
|
+
* @class ExternalRepositoriesApi
|
|
32
|
+
*/
|
|
33
|
+
class ExternalRepositoriesApi {
|
|
34
|
+
#headersToSkip;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Make the default {@link ApiClient} class available for developers to be able to extend it and bring
|
|
38
|
+
* their own fetch methods into the SDK
|
|
39
|
+
*/
|
|
40
|
+
static get ApiClient() {
|
|
41
|
+
return _ApiClient.ApiClient;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Constructs a new ExternalRepositoriesApi.
|
|
46
|
+
* @alias module:api/ExternalRepositoriesApi
|
|
47
|
+
* @class
|
|
48
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
49
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
50
|
+
*/
|
|
51
|
+
constructor(apiClient) {
|
|
52
|
+
this.apiClient = apiClient || _ApiClient.ApiClient.instance;
|
|
53
|
+
this.#headersToSkip = new Set();
|
|
54
|
+
this.#headersToSkip.add('authorization');
|
|
55
|
+
this.#headersToSkip.add('cookie');
|
|
56
|
+
this.#headersToSkip.add('host');
|
|
57
|
+
this.#headersToSkip.add('user-agent');
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Create an External repository.
|
|
62
|
+
* Create an External repository.
|
|
63
|
+
* @param { Required<Pick<ExternalRepository, 'name' | 'location'>> & Partial<ExternalRepository> } body specification
|
|
64
|
+
* @param {Object} args Additional Arguments
|
|
65
|
+
* @return {Promise<CreateExternalRepositoryApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateExternalRepositoryApiResponse } and HTTP response
|
|
66
|
+
*/
|
|
67
|
+
createExternalRepository(body, ...args) {
|
|
68
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
69
|
+
let postBody = null;
|
|
70
|
+
if (body instanceof _ExternalRepository.default && typeof body.toJson === 'function') {
|
|
71
|
+
postBody = body.toJson();
|
|
72
|
+
} else {
|
|
73
|
+
postBody = body;
|
|
74
|
+
}
|
|
75
|
+
// verify the required parameter 'body' is set
|
|
76
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
77
|
+
throw new Error("Invalid body when calling createExternalRepository");
|
|
78
|
+
}
|
|
79
|
+
const pathParams = {};
|
|
80
|
+
const queryParams = {};
|
|
81
|
+
let headersToInclude = {};
|
|
82
|
+
Object.keys(argMap).forEach(header => {
|
|
83
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
84
|
+
headersToInclude[header] = argMap[header];
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
const headerParams = {
|
|
88
|
+
...headersToInclude
|
|
89
|
+
};
|
|
90
|
+
const formParams = {};
|
|
91
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
92
|
+
const authNames = ['basicAuthScheme'];
|
|
93
|
+
const contentTypes = ['application/json'];
|
|
94
|
+
const accepts = ['application/json'];
|
|
95
|
+
const returnType = _CreateExternalRepositoryApiResponse.default;
|
|
96
|
+
return this.apiClient.callApi('/api/multidomain/v4.2/config/external-repositories', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Delete an External repository.
|
|
101
|
+
* Delete an External repository by id.
|
|
102
|
+
* @param { String } extId External Repository identifier.
|
|
103
|
+
* @param {Object} args Additional Arguments
|
|
104
|
+
* @return {Promise<DeleteExternalRepositoryApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteExternalRepositoryApiResponse } and HTTP response
|
|
105
|
+
*/
|
|
106
|
+
deleteExternalRepositoryById(extId, ...args) {
|
|
107
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
108
|
+
const postBody = null;
|
|
109
|
+
// verify the required parameter 'extId' is set
|
|
110
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
111
|
+
throw new Error("Missing the required parameter 'extId' when calling deleteExternalRepositoryById");
|
|
112
|
+
}
|
|
113
|
+
const pathParams = {
|
|
114
|
+
'extId': extId
|
|
115
|
+
};
|
|
116
|
+
const queryParams = {};
|
|
117
|
+
let headersToInclude = {};
|
|
118
|
+
Object.keys(argMap).forEach(header => {
|
|
119
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
120
|
+
headersToInclude[header] = argMap[header];
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
const headerParams = {
|
|
124
|
+
...headersToInclude
|
|
125
|
+
};
|
|
126
|
+
const formParams = {};
|
|
127
|
+
const authNames = ['basicAuthScheme'];
|
|
128
|
+
const contentTypes = [];
|
|
129
|
+
const accepts = ['application/json'];
|
|
130
|
+
const returnType = _DeleteExternalRepositoryApiResponse.default;
|
|
131
|
+
return this.apiClient.callApi('/api/multidomain/v4.2/config/external-repositories/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Get an External repository by id.
|
|
136
|
+
* Get an External repository by id.
|
|
137
|
+
* @param { String } extId External Repository identifier.
|
|
138
|
+
* @param {Object} args Additional Arguments
|
|
139
|
+
* @return {Promise<GetExternalRepositoryApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetExternalRepositoryApiResponse } and HTTP response
|
|
140
|
+
*/
|
|
141
|
+
getExternalRepositoryById(extId, ...args) {
|
|
142
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
143
|
+
const postBody = null;
|
|
144
|
+
// verify the required parameter 'extId' is set
|
|
145
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
146
|
+
throw new Error("Missing the required parameter 'extId' when calling getExternalRepositoryById");
|
|
147
|
+
}
|
|
148
|
+
const pathParams = {
|
|
149
|
+
'extId': extId
|
|
150
|
+
};
|
|
151
|
+
const queryParams = {};
|
|
152
|
+
let headersToInclude = {};
|
|
153
|
+
Object.keys(argMap).forEach(header => {
|
|
154
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
155
|
+
headersToInclude[header] = argMap[header];
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
const headerParams = {
|
|
159
|
+
...headersToInclude
|
|
160
|
+
};
|
|
161
|
+
const formParams = {};
|
|
162
|
+
const authNames = ['basicAuthScheme'];
|
|
163
|
+
const contentTypes = [];
|
|
164
|
+
const accepts = ['application/json'];
|
|
165
|
+
const returnType = _GetExternalRepositoryApiResponse.default;
|
|
166
|
+
return this.apiClient.callApi('/api/multidomain/v4.2/config/external-repositories/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* List External repositories.
|
|
171
|
+
* Get all External repositories.
|
|
172
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
173
|
+
* @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
|
|
174
|
+
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
175
|
+
* @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
|
|
176
|
+
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.
|
|
177
|
+
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.
|
|
178
|
+
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
179
|
+
* @param {Object} args Additional Arguments
|
|
180
|
+
* @return {Promise<ListExternalRepositoriesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListExternalRepositoriesApiResponse } and HTTP response
|
|
181
|
+
*/
|
|
182
|
+
listExternalRepositories(opts, ...args) {
|
|
183
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
184
|
+
opts = opts || {};
|
|
185
|
+
const postBody = null;
|
|
186
|
+
const pathParams = {};
|
|
187
|
+
const queryParams = {
|
|
188
|
+
...(opts.hasOwnProperty('$page') ? {
|
|
189
|
+
'$page': opts['$page']
|
|
190
|
+
} : {}),
|
|
191
|
+
...(opts.hasOwnProperty('$limit') ? {
|
|
192
|
+
'$limit': opts['$limit']
|
|
193
|
+
} : {}),
|
|
194
|
+
...(opts.hasOwnProperty('$filter') ? {
|
|
195
|
+
'$filter': opts['$filter']
|
|
196
|
+
} : {}),
|
|
197
|
+
...(opts.hasOwnProperty('$orderby') ? {
|
|
198
|
+
'$orderby': opts['$orderby']
|
|
199
|
+
} : {}),
|
|
200
|
+
...(opts.hasOwnProperty('$select') ? {
|
|
201
|
+
'$select': opts['$select']
|
|
202
|
+
} : {})
|
|
203
|
+
};
|
|
204
|
+
let headersToInclude = {};
|
|
205
|
+
Object.keys(argMap).forEach(header => {
|
|
206
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
207
|
+
headersToInclude[header] = argMap[header];
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
const headerParams = {
|
|
211
|
+
...headersToInclude
|
|
212
|
+
};
|
|
213
|
+
const formParams = {};
|
|
214
|
+
const authNames = ['basicAuthScheme'];
|
|
215
|
+
const contentTypes = [];
|
|
216
|
+
const accepts = ['application/json'];
|
|
217
|
+
const returnType = _ListExternalRepositoriesApiResponse.default;
|
|
218
|
+
return this.apiClient.callApi('/api/multidomain/v4.2/config/external-repositories', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Update an External repository.
|
|
223
|
+
* Task Id corresponding to the External repository update operation.
|
|
224
|
+
* @param { Required<Pick<ExternalRepository, 'name' | 'location'>> & Partial<ExternalRepository> } body specification
|
|
225
|
+
* @param { String } extId External Repository identifier.
|
|
226
|
+
* @param {Object} args Additional Arguments
|
|
227
|
+
* @return {Promise<UpdateExternalRepositoryApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateExternalRepositoryApiResponse } and HTTP response
|
|
228
|
+
*/
|
|
229
|
+
updateExternalRepositoryById(extId, body, ...args) {
|
|
230
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
231
|
+
let postBody = null;
|
|
232
|
+
if (body instanceof _ExternalRepository.default && typeof body.toJson === 'function') {
|
|
233
|
+
postBody = body.toJson();
|
|
234
|
+
} else {
|
|
235
|
+
postBody = body;
|
|
236
|
+
}
|
|
237
|
+
// verify the required parameter 'extId' is set
|
|
238
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
239
|
+
throw new Error("Missing the required parameter 'extId' when calling updateExternalRepositoryById");
|
|
240
|
+
}
|
|
241
|
+
// verify the required parameter 'body' is set
|
|
242
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
243
|
+
throw new Error("Invalid body when calling updateExternalRepositoryById");
|
|
244
|
+
}
|
|
245
|
+
const pathParams = {
|
|
246
|
+
'extId': extId
|
|
247
|
+
};
|
|
248
|
+
const queryParams = {};
|
|
249
|
+
let headersToInclude = {};
|
|
250
|
+
Object.keys(argMap).forEach(header => {
|
|
251
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
252
|
+
headersToInclude[header] = argMap[header];
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
const headerParams = {
|
|
256
|
+
...headersToInclude
|
|
257
|
+
};
|
|
258
|
+
const formParams = {};
|
|
259
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
260
|
+
const authNames = ['basicAuthScheme'];
|
|
261
|
+
const contentTypes = ['application/json'];
|
|
262
|
+
const accepts = ['application/json'];
|
|
263
|
+
const returnType = _UpdateExternalRepositoryApiResponse.default;
|
|
264
|
+
return this.apiClient.callApi('/api/multidomain/v4.2/config/external-repositories/{extId}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
exports.ExternalRepositoriesApi = ExternalRepositoriesApi;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export { ApiClient };
|
|
3
|
+
export { ExternalRepositoriesApi };
|
|
4
|
+
export { FQDN };
|
|
5
|
+
export { Flag };
|
|
6
|
+
export { IPAddressOrFQDN };
|
|
7
|
+
export { IPv4Address };
|
|
8
|
+
export { IPv6Address };
|
|
9
|
+
export { KVPair };
|
|
10
|
+
export { MapOfStringWrapper };
|
|
11
|
+
export { Message };
|
|
12
|
+
export { MessageSeverity };
|
|
13
|
+
export { TenantAwareModel };
|
|
14
|
+
export { ApiLink };
|
|
15
|
+
export { ApiResponseMetadata };
|
|
16
|
+
export { ExternalizableAbstractModel };
|
|
17
|
+
export { CreateExternalRepositoryApiResponse };
|
|
18
|
+
export { DeleteExternalRepositoryApiResponse };
|
|
19
|
+
export { ExternalRepository };
|
|
20
|
+
export { GetExternalRepositoryApiResponse };
|
|
21
|
+
export { ListExternalRepositoriesApiResponse };
|
|
22
|
+
export { NFSServerAddress };
|
|
23
|
+
export { NfsRepository };
|
|
24
|
+
export { UpdateExternalRepositoryApiResponse };
|
|
25
|
+
export { AppMessage };
|
|
26
|
+
export { ErrorResponse };
|
|
27
|
+
export { SchemaValidationError };
|
|
28
|
+
export { SchemaValidationErrorMessage };
|
|
29
|
+
export { TaskReference };
|
|
30
|
+
}
|
|
31
|
+
export default _default;
|
|
32
|
+
import { ApiClient } from "./ApiClient";
|
|
33
|
+
import { ExternalRepositoriesApi } from "./apis/externalrepositories-endpoints";
|
|
34
|
+
import FQDN from "./models/common/v1/config/FQDN";
|
|
35
|
+
import Flag from "./models/common/v1/config/Flag";
|
|
36
|
+
import IPAddressOrFQDN from "./models/common/v1/config/IPAddressOrFQDN";
|
|
37
|
+
import IPv4Address from "./models/common/v1/config/IPv4Address";
|
|
38
|
+
import IPv6Address from "./models/common/v1/config/IPv6Address";
|
|
39
|
+
import KVPair from "./models/common/v1/config/KVPair";
|
|
40
|
+
import MapOfStringWrapper from "./models/common/v1/config/MapOfStringWrapper";
|
|
41
|
+
import Message from "./models/common/v1/config/Message";
|
|
42
|
+
import MessageSeverity from "./models/common/v1/config/MessageSeverity";
|
|
43
|
+
import TenantAwareModel from "./models/common/v1/config/TenantAwareModel";
|
|
44
|
+
import ApiLink from "./models/common/v1/response/ApiLink";
|
|
45
|
+
import ApiResponseMetadata from "./models/common/v1/response/ApiResponseMetadata";
|
|
46
|
+
import ExternalizableAbstractModel from "./models/common/v1/response/ExternalizableAbstractModel";
|
|
47
|
+
import CreateExternalRepositoryApiResponse from "./models/multidomain/v4/config/CreateExternalRepositoryApiResponse";
|
|
48
|
+
import DeleteExternalRepositoryApiResponse from "./models/multidomain/v4/config/DeleteExternalRepositoryApiResponse";
|
|
49
|
+
import ExternalRepository from "./models/multidomain/v4/config/ExternalRepository";
|
|
50
|
+
import GetExternalRepositoryApiResponse from "./models/multidomain/v4/config/GetExternalRepositoryApiResponse";
|
|
51
|
+
import ListExternalRepositoriesApiResponse from "./models/multidomain/v4/config/ListExternalRepositoriesApiResponse";
|
|
52
|
+
import NFSServerAddress from "./models/multidomain/v4/config/NFSServerAddress";
|
|
53
|
+
import NfsRepository from "./models/multidomain/v4/config/NfsRepository";
|
|
54
|
+
import UpdateExternalRepositoryApiResponse from "./models/multidomain/v4/config/UpdateExternalRepositoryApiResponse";
|
|
55
|
+
import AppMessage from "./models/multidomain/v4/error/AppMessage";
|
|
56
|
+
import ErrorResponse from "./models/multidomain/v4/error/ErrorResponse";
|
|
57
|
+
import SchemaValidationError from "./models/multidomain/v4/error/SchemaValidationError";
|
|
58
|
+
import SchemaValidationErrorMessage from "./models/multidomain/v4/error/SchemaValidationErrorMessage";
|
|
59
|
+
import TaskReference from "./models/prism/v4/config/TaskReference";
|
|
60
|
+
export { ApiClient, ExternalRepositoriesApi, FQDN, Flag, IPAddressOrFQDN, IPv4Address, IPv6Address, KVPair, MapOfStringWrapper, Message, MessageSeverity, TenantAwareModel, ApiLink, ApiResponseMetadata, ExternalizableAbstractModel, CreateExternalRepositoryApiResponse, DeleteExternalRepositoryApiResponse, ExternalRepository, GetExternalRepositoryApiResponse, ListExternalRepositoriesApiResponse, NFSServerAddress, NfsRepository, UpdateExternalRepositoryApiResponse, AppMessage, ErrorResponse, SchemaValidationError, SchemaValidationErrorMessage, TaskReference };
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "ApiClient", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _ApiClient.ApiClient;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "ApiLink", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _ApiLink.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "ApiResponseMetadata", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _ApiResponseMetadata.default;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "AppMessage", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _AppMessage.default;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "CreateExternalRepositoryApiResponse", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _CreateExternalRepositoryApiResponse.default;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "DeleteExternalRepositoryApiResponse", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _DeleteExternalRepositoryApiResponse.default;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "ErrorResponse", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () {
|
|
45
|
+
return _ErrorResponse.default;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "ExternalRepositoriesApi", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () {
|
|
51
|
+
return _externalrepositoriesEndpoints.ExternalRepositoriesApi;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "ExternalRepository", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return _ExternalRepository.default;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "ExternalizableAbstractModel", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return _ExternalizableAbstractModel.default;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "FQDN", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () {
|
|
69
|
+
return _FQDN.default;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "Flag", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () {
|
|
75
|
+
return _Flag.default;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "GetExternalRepositoryApiResponse", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () {
|
|
81
|
+
return _GetExternalRepositoryApiResponse.default;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "IPAddressOrFQDN", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () {
|
|
87
|
+
return _IPAddressOrFQDN.default;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "IPv4Address", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function () {
|
|
93
|
+
return _IPv4Address.default;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "IPv6Address", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () {
|
|
99
|
+
return _IPv6Address.default;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(exports, "KVPair", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function () {
|
|
105
|
+
return _KVPair.default;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, "ListExternalRepositoriesApiResponse", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function () {
|
|
111
|
+
return _ListExternalRepositoriesApiResponse.default;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, "MapOfStringWrapper", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function () {
|
|
117
|
+
return _MapOfStringWrapper.default;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, "Message", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function () {
|
|
123
|
+
return _Message.default;
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
Object.defineProperty(exports, "MessageSeverity", {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: function () {
|
|
129
|
+
return _MessageSeverity.default;
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
Object.defineProperty(exports, "NFSServerAddress", {
|
|
133
|
+
enumerable: true,
|
|
134
|
+
get: function () {
|
|
135
|
+
return _NFSServerAddress.default;
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
Object.defineProperty(exports, "NfsRepository", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function () {
|
|
141
|
+
return _NfsRepository.default;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(exports, "SchemaValidationError", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function () {
|
|
147
|
+
return _SchemaValidationError.default;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
Object.defineProperty(exports, "SchemaValidationErrorMessage", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function () {
|
|
153
|
+
return _SchemaValidationErrorMessage.default;
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
Object.defineProperty(exports, "TaskReference", {
|
|
157
|
+
enumerable: true,
|
|
158
|
+
get: function () {
|
|
159
|
+
return _TaskReference.default;
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
Object.defineProperty(exports, "TenantAwareModel", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function () {
|
|
165
|
+
return _TenantAwareModel.default;
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
Object.defineProperty(exports, "UpdateExternalRepositoryApiResponse", {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
get: function () {
|
|
171
|
+
return _UpdateExternalRepositoryApiResponse.default;
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
exports.default = void 0;
|
|
175
|
+
var _ApiClient = require("./ApiClient");
|
|
176
|
+
var _externalrepositoriesEndpoints = require("./apis/externalrepositories-endpoints");
|
|
177
|
+
var _FQDN = _interopRequireDefault(require("./models/common/v1/config/FQDN"));
|
|
178
|
+
var _Flag = _interopRequireDefault(require("./models/common/v1/config/Flag"));
|
|
179
|
+
var _IPAddressOrFQDN = _interopRequireDefault(require("./models/common/v1/config/IPAddressOrFQDN"));
|
|
180
|
+
var _IPv4Address = _interopRequireDefault(require("./models/common/v1/config/IPv4Address"));
|
|
181
|
+
var _IPv6Address = _interopRequireDefault(require("./models/common/v1/config/IPv6Address"));
|
|
182
|
+
var _KVPair = _interopRequireDefault(require("./models/common/v1/config/KVPair"));
|
|
183
|
+
var _MapOfStringWrapper = _interopRequireDefault(require("./models/common/v1/config/MapOfStringWrapper"));
|
|
184
|
+
var _Message = _interopRequireDefault(require("./models/common/v1/config/Message"));
|
|
185
|
+
var _MessageSeverity = _interopRequireDefault(require("./models/common/v1/config/MessageSeverity"));
|
|
186
|
+
var _TenantAwareModel = _interopRequireDefault(require("./models/common/v1/config/TenantAwareModel"));
|
|
187
|
+
var _ApiLink = _interopRequireDefault(require("./models/common/v1/response/ApiLink"));
|
|
188
|
+
var _ApiResponseMetadata = _interopRequireDefault(require("./models/common/v1/response/ApiResponseMetadata"));
|
|
189
|
+
var _ExternalizableAbstractModel = _interopRequireDefault(require("./models/common/v1/response/ExternalizableAbstractModel"));
|
|
190
|
+
var _CreateExternalRepositoryApiResponse = _interopRequireDefault(require("./models/multidomain/v4/config/CreateExternalRepositoryApiResponse"));
|
|
191
|
+
var _DeleteExternalRepositoryApiResponse = _interopRequireDefault(require("./models/multidomain/v4/config/DeleteExternalRepositoryApiResponse"));
|
|
192
|
+
var _ExternalRepository = _interopRequireDefault(require("./models/multidomain/v4/config/ExternalRepository"));
|
|
193
|
+
var _GetExternalRepositoryApiResponse = _interopRequireDefault(require("./models/multidomain/v4/config/GetExternalRepositoryApiResponse"));
|
|
194
|
+
var _ListExternalRepositoriesApiResponse = _interopRequireDefault(require("./models/multidomain/v4/config/ListExternalRepositoriesApiResponse"));
|
|
195
|
+
var _NFSServerAddress = _interopRequireDefault(require("./models/multidomain/v4/config/NFSServerAddress"));
|
|
196
|
+
var _NfsRepository = _interopRequireDefault(require("./models/multidomain/v4/config/NfsRepository"));
|
|
197
|
+
var _UpdateExternalRepositoryApiResponse = _interopRequireDefault(require("./models/multidomain/v4/config/UpdateExternalRepositoryApiResponse"));
|
|
198
|
+
var _AppMessage = _interopRequireDefault(require("./models/multidomain/v4/error/AppMessage"));
|
|
199
|
+
var _ErrorResponse = _interopRequireDefault(require("./models/multidomain/v4/error/ErrorResponse"));
|
|
200
|
+
var _SchemaValidationError = _interopRequireDefault(require("./models/multidomain/v4/error/SchemaValidationError"));
|
|
201
|
+
var _SchemaValidationErrorMessage = _interopRequireDefault(require("./models/multidomain/v4/error/SchemaValidationErrorMessage"));
|
|
202
|
+
var _TaskReference = _interopRequireDefault(require("./models/prism/v4/config/TaskReference"));
|
|
203
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
204
|
+
// Export base files
|
|
205
|
+
// Export APIs
|
|
206
|
+
// Export models
|
|
207
|
+
var _default = exports.default = {
|
|
208
|
+
ApiClient: _ApiClient.ApiClient,
|
|
209
|
+
ExternalRepositoriesApi: _externalrepositoriesEndpoints.ExternalRepositoriesApi,
|
|
210
|
+
FQDN: _FQDN.default,
|
|
211
|
+
Flag: _Flag.default,
|
|
212
|
+
IPAddressOrFQDN: _IPAddressOrFQDN.default,
|
|
213
|
+
IPv4Address: _IPv4Address.default,
|
|
214
|
+
IPv6Address: _IPv6Address.default,
|
|
215
|
+
KVPair: _KVPair.default,
|
|
216
|
+
MapOfStringWrapper: _MapOfStringWrapper.default,
|
|
217
|
+
Message: _Message.default,
|
|
218
|
+
MessageSeverity: _MessageSeverity.default,
|
|
219
|
+
TenantAwareModel: _TenantAwareModel.default,
|
|
220
|
+
ApiLink: _ApiLink.default,
|
|
221
|
+
ApiResponseMetadata: _ApiResponseMetadata.default,
|
|
222
|
+
ExternalizableAbstractModel: _ExternalizableAbstractModel.default,
|
|
223
|
+
CreateExternalRepositoryApiResponse: _CreateExternalRepositoryApiResponse.default,
|
|
224
|
+
DeleteExternalRepositoryApiResponse: _DeleteExternalRepositoryApiResponse.default,
|
|
225
|
+
ExternalRepository: _ExternalRepository.default,
|
|
226
|
+
GetExternalRepositoryApiResponse: _GetExternalRepositoryApiResponse.default,
|
|
227
|
+
ListExternalRepositoriesApiResponse: _ListExternalRepositoriesApiResponse.default,
|
|
228
|
+
NFSServerAddress: _NFSServerAddress.default,
|
|
229
|
+
NfsRepository: _NfsRepository.default,
|
|
230
|
+
UpdateExternalRepositoryApiResponse: _UpdateExternalRepositoryApiResponse.default,
|
|
231
|
+
AppMessage: _AppMessage.default,
|
|
232
|
+
ErrorResponse: _ErrorResponse.default,
|
|
233
|
+
SchemaValidationError: _SchemaValidationError.default,
|
|
234
|
+
SchemaValidationErrorMessage: _SchemaValidationErrorMessage.default,
|
|
235
|
+
TaskReference: _TaskReference.default
|
|
236
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The FQDN model module.
|
|
3
|
+
* @module Ntnx/FQDN
|
|
4
|
+
* @version 4.2.1
|
|
5
|
+
* @class FQDN
|
|
6
|
+
*/
|
|
7
|
+
export default class FQDN {
|
|
8
|
+
/**
|
|
9
|
+
* Constructs a <code>FQDN</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/FQDN} obj Optional instance to populate.
|
|
13
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
14
|
+
* @return {module:Ntnx/FQDN} The populated <code>FQDN</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 fully qualified domain name of the host.
|
|
30
|
+
* @return {string}
|
|
31
|
+
*/
|
|
32
|
+
getValue(): string;
|
|
33
|
+
/**
|
|
34
|
+
* Sets The fully qualified domain name of the host.
|
|
35
|
+
* @param {string} value The fully qualified domain name of the host.
|
|
36
|
+
*/
|
|
37
|
+
setValue(value: string): void;
|
|
38
|
+
value: string;
|
|
39
|
+
get$Reserved(): any;
|
|
40
|
+
get$ObjectType(): string;
|
|
41
|
+
get$UnknownFields(): any;
|
|
42
|
+
toJson(forMutation: any): any;
|
|
43
|
+
validate(scope: any, properties: any, ...args: any[]): Promise<any>;
|
|
44
|
+
validateProperty(scope: any, property: any): ValidationError;
|
|
45
|
+
#private;
|
|
46
|
+
}
|
|
47
|
+
import ValidationError from "../../../validation/ValidationError";
|