@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.
Files changed (137) hide show
  1. package/LICENSE.txt +202 -0
  2. package/README.md +224 -0
  3. package/dist/Ntnx-Multidomain-js-client-prod.js +1 -0
  4. package/dist/Ntnx-Multidomain-js-client.js +713 -0
  5. package/dist/es/ApiClient.d.ts +194 -0
  6. package/dist/es/ApiClient.js +1449 -0
  7. package/dist/es/Paginable.d.ts +95 -0
  8. package/dist/es/Paginable.js +248 -0
  9. package/dist/es/apis/externalrepositories-endpoints.d.ts +84 -0
  10. package/dist/es/apis/externalrepositories-endpoints.js +267 -0
  11. package/dist/es/index.d.ts +60 -0
  12. package/dist/es/index.js +236 -0
  13. package/dist/es/models/common/v1/config/FQDN.d.ts +47 -0
  14. package/dist/es/models/common/v1/config/FQDN.js +238 -0
  15. package/dist/es/models/common/v1/config/Flag.d.ts +58 -0
  16. package/dist/es/models/common/v1/config/Flag.js +278 -0
  17. package/dist/es/models/common/v1/config/IPAddressOrFQDN.d.ts +70 -0
  18. package/dist/es/models/common/v1/config/IPAddressOrFQDN.js +313 -0
  19. package/dist/es/models/common/v1/config/IPv4Address.d.ts +70 -0
  20. package/dist/es/models/common/v1/config/IPv4Address.js +288 -0
  21. package/dist/es/models/common/v1/config/IPv6Address.d.ts +70 -0
  22. package/dist/es/models/common/v1/config/IPv6Address.js +288 -0
  23. package/dist/es/models/common/v1/config/KVPair.d.ts +65 -0
  24. package/dist/es/models/common/v1/config/KVPair.js +333 -0
  25. package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +53 -0
  26. package/dist/es/models/common/v1/config/MapOfStringWrapper.js +236 -0
  27. package/dist/es/models/common/v1/config/Message.d.ts +79 -0
  28. package/dist/es/models/common/v1/config/Message.js +341 -0
  29. package/dist/es/models/common/v1/config/MessageSeverity.d.ts +19 -0
  30. package/dist/es/models/common/v1/config/MessageSeverity.js +89 -0
  31. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +47 -0
  32. package/dist/es/models/common/v1/config/TenantAwareModel.js +235 -0
  33. package/dist/es/models/common/v1/response/ApiLink.d.ts +58 -0
  34. package/dist/es/models/common/v1/response/ApiLink.js +271 -0
  35. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +95 -0
  36. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +419 -0
  37. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +34 -0
  38. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +262 -0
  39. package/dist/es/models/multidomain/v4/config/CreateExternalRepositoryApiResponse.d.ts +58 -0
  40. package/dist/es/models/multidomain/v4/config/CreateExternalRepositoryApiResponse.js +288 -0
  41. package/dist/es/models/multidomain/v4/config/DeleteExternalRepositoryApiResponse.d.ts +58 -0
  42. package/dist/es/models/multidomain/v4/config/DeleteExternalRepositoryApiResponse.js +288 -0
  43. package/dist/es/models/multidomain/v4/config/ExternalRepository.d.ts +59 -0
  44. package/dist/es/models/multidomain/v4/config/ExternalRepository.js +328 -0
  45. package/dist/es/models/multidomain/v4/config/GetExternalRepositoryApiResponse.d.ts +58 -0
  46. package/dist/es/models/multidomain/v4/config/GetExternalRepositoryApiResponse.js +288 -0
  47. package/dist/es/models/multidomain/v4/config/ListExternalRepositoriesApiResponse.d.ts +58 -0
  48. package/dist/es/models/multidomain/v4/config/ListExternalRepositoriesApiResponse.js +310 -0
  49. package/dist/es/models/multidomain/v4/config/NFSServerAddress.d.ts +71 -0
  50. package/dist/es/models/multidomain/v4/config/NFSServerAddress.js +279 -0
  51. package/dist/es/models/multidomain/v4/config/NfsRepository.d.ts +73 -0
  52. package/dist/es/models/multidomain/v4/config/NfsRepository.js +299 -0
  53. package/dist/es/models/multidomain/v4/config/UpdateExternalRepositoryApiResponse.d.ts +58 -0
  54. package/dist/es/models/multidomain/v4/config/UpdateExternalRepositoryApiResponse.js +288 -0
  55. package/dist/es/models/multidomain/v4/error/AppMessage.d.ts +107 -0
  56. package/dist/es/models/multidomain/v4/error/AppMessage.js +415 -0
  57. package/dist/es/models/multidomain/v4/error/ErrorResponse.d.ts +47 -0
  58. package/dist/es/models/multidomain/v4/error/ErrorResponse.js +277 -0
  59. package/dist/es/models/multidomain/v4/error/SchemaValidationError.d.ts +92 -0
  60. package/dist/es/models/multidomain/v4/error/SchemaValidationError.js +389 -0
  61. package/dist/es/models/multidomain/v4/error/SchemaValidationErrorMessage.d.ts +69 -0
  62. package/dist/es/models/multidomain/v4/error/SchemaValidationErrorMessage.js +307 -0
  63. package/dist/es/models/prism/v4/config/TaskReference.d.ts +47 -0
  64. package/dist/es/models/prism/v4/config/TaskReference.js +242 -0
  65. package/dist/es/models/validation/ValidationError.d.ts +13 -0
  66. package/dist/es/models/validation/ValidationError.js +44 -0
  67. package/dist/es/models/validation/ValidationScopes.d.ts +9 -0
  68. package/dist/es/models/validation/ValidationScopes.js +38 -0
  69. package/dist/es/utils/ValidationUtils.d.ts +13 -0
  70. package/dist/es/utils/ValidationUtils.js +55 -0
  71. package/dist/lib/ApiClient.d.ts +194 -0
  72. package/dist/lib/ApiClient.js +1449 -0
  73. package/dist/lib/Paginable.d.ts +95 -0
  74. package/dist/lib/Paginable.js +248 -0
  75. package/dist/lib/apis/externalrepositories-endpoints.d.ts +84 -0
  76. package/dist/lib/apis/externalrepositories-endpoints.js +267 -0
  77. package/dist/lib/index.d.ts +60 -0
  78. package/dist/lib/index.js +236 -0
  79. package/dist/lib/models/common/v1/config/FQDN.d.ts +47 -0
  80. package/dist/lib/models/common/v1/config/FQDN.js +238 -0
  81. package/dist/lib/models/common/v1/config/Flag.d.ts +58 -0
  82. package/dist/lib/models/common/v1/config/Flag.js +278 -0
  83. package/dist/lib/models/common/v1/config/IPAddressOrFQDN.d.ts +70 -0
  84. package/dist/lib/models/common/v1/config/IPAddressOrFQDN.js +313 -0
  85. package/dist/lib/models/common/v1/config/IPv4Address.d.ts +70 -0
  86. package/dist/lib/models/common/v1/config/IPv4Address.js +288 -0
  87. package/dist/lib/models/common/v1/config/IPv6Address.d.ts +70 -0
  88. package/dist/lib/models/common/v1/config/IPv6Address.js +288 -0
  89. package/dist/lib/models/common/v1/config/KVPair.d.ts +65 -0
  90. package/dist/lib/models/common/v1/config/KVPair.js +333 -0
  91. package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +53 -0
  92. package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +236 -0
  93. package/dist/lib/models/common/v1/config/Message.d.ts +79 -0
  94. package/dist/lib/models/common/v1/config/Message.js +341 -0
  95. package/dist/lib/models/common/v1/config/MessageSeverity.d.ts +19 -0
  96. package/dist/lib/models/common/v1/config/MessageSeverity.js +89 -0
  97. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +47 -0
  98. package/dist/lib/models/common/v1/config/TenantAwareModel.js +235 -0
  99. package/dist/lib/models/common/v1/response/ApiLink.d.ts +58 -0
  100. package/dist/lib/models/common/v1/response/ApiLink.js +271 -0
  101. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +95 -0
  102. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +419 -0
  103. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +34 -0
  104. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +262 -0
  105. package/dist/lib/models/multidomain/v4/config/CreateExternalRepositoryApiResponse.d.ts +58 -0
  106. package/dist/lib/models/multidomain/v4/config/CreateExternalRepositoryApiResponse.js +288 -0
  107. package/dist/lib/models/multidomain/v4/config/DeleteExternalRepositoryApiResponse.d.ts +58 -0
  108. package/dist/lib/models/multidomain/v4/config/DeleteExternalRepositoryApiResponse.js +288 -0
  109. package/dist/lib/models/multidomain/v4/config/ExternalRepository.d.ts +59 -0
  110. package/dist/lib/models/multidomain/v4/config/ExternalRepository.js +328 -0
  111. package/dist/lib/models/multidomain/v4/config/GetExternalRepositoryApiResponse.d.ts +58 -0
  112. package/dist/lib/models/multidomain/v4/config/GetExternalRepositoryApiResponse.js +288 -0
  113. package/dist/lib/models/multidomain/v4/config/ListExternalRepositoriesApiResponse.d.ts +58 -0
  114. package/dist/lib/models/multidomain/v4/config/ListExternalRepositoriesApiResponse.js +310 -0
  115. package/dist/lib/models/multidomain/v4/config/NFSServerAddress.d.ts +71 -0
  116. package/dist/lib/models/multidomain/v4/config/NFSServerAddress.js +279 -0
  117. package/dist/lib/models/multidomain/v4/config/NfsRepository.d.ts +73 -0
  118. package/dist/lib/models/multidomain/v4/config/NfsRepository.js +299 -0
  119. package/dist/lib/models/multidomain/v4/config/UpdateExternalRepositoryApiResponse.d.ts +58 -0
  120. package/dist/lib/models/multidomain/v4/config/UpdateExternalRepositoryApiResponse.js +288 -0
  121. package/dist/lib/models/multidomain/v4/error/AppMessage.d.ts +107 -0
  122. package/dist/lib/models/multidomain/v4/error/AppMessage.js +415 -0
  123. package/dist/lib/models/multidomain/v4/error/ErrorResponse.d.ts +47 -0
  124. package/dist/lib/models/multidomain/v4/error/ErrorResponse.js +277 -0
  125. package/dist/lib/models/multidomain/v4/error/SchemaValidationError.d.ts +92 -0
  126. package/dist/lib/models/multidomain/v4/error/SchemaValidationError.js +389 -0
  127. package/dist/lib/models/multidomain/v4/error/SchemaValidationErrorMessage.d.ts +69 -0
  128. package/dist/lib/models/multidomain/v4/error/SchemaValidationErrorMessage.js +307 -0
  129. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +47 -0
  130. package/dist/lib/models/prism/v4/config/TaskReference.js +242 -0
  131. package/dist/lib/models/validation/ValidationError.d.ts +13 -0
  132. package/dist/lib/models/validation/ValidationError.js +44 -0
  133. package/dist/lib/models/validation/ValidationScopes.d.ts +9 -0
  134. package/dist/lib/models/validation/ValidationScopes.js +38 -0
  135. package/dist/lib/utils/ValidationUtils.d.ts +13 -0
  136. package/dist/lib/utils/ValidationUtils.js +55 -0
  137. package/package.json +53 -0
@@ -0,0 +1,95 @@
1
+ /**
2
+ * A model that represents a paginable response from a list endpoint.
3
+ * @module Paginable
4
+ * @version 4.2.1
5
+ */
6
+ export default class Paginable {
7
+ /**
8
+ * Constructs a <code>Paginable</code> from a plain Javascript object, optionally creating a new instance.
9
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
10
+ * @param {Object} metadata The plain Javascript object bearing properties of interest.
11
+ * @param {module:Paginable} obj Optional instance to populate.
12
+ * @return {module:Paginable} The populated <code>Paginable</code> instance.
13
+ */
14
+ static constructFromObject(metadata: any, obj: any): any;
15
+ /**
16
+ * Get the first page of the set, if any
17
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, resolves with another Paginable
18
+ * or rejects with error message if any issue (link not available, ...)
19
+ */
20
+ getFirstPage(): Promise<any>;
21
+ /**
22
+ * Get the previous page of the set, if any
23
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, resolves with another Paginable
24
+ * or rejects with error message if any issue (link not available, ...)
25
+ */
26
+ getPrevPage(): Promise<any>;
27
+ /**
28
+ * Get the next page of the set, if any
29
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, resolves with another Paginable
30
+ * or rejects with error message if any issue (link not available, ...)
31
+ */
32
+ getNextPage(): Promise<any>;
33
+ /**
34
+ * Get the last page of the set, if any
35
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, resolves with another Paginable
36
+ * or rejects with error message if any issue (link not available, ...)
37
+ */
38
+ getLastPage(): Promise<any>;
39
+ /**
40
+ * Get the current page number
41
+ * @return {Number} the current page number, starts at 0
42
+ */
43
+ currentPage(): number;
44
+ /**
45
+ * Get the total number of pages
46
+ * @return {Number} the total number of pages available
47
+ */
48
+ countPages(): number;
49
+ /**
50
+ * Check if current page is first page
51
+ * @return {Boolean} True if current page is 0, false otherwise
52
+ */
53
+ isFirstPage(): boolean;
54
+ /**
55
+ * Check if current page is last page
56
+ * @return {Boolean} True if current page is countPages()-1, false otherwise
57
+ */
58
+ isLastPage(): boolean;
59
+ populatePaginationMetadata(apiClient: any, page: any, resultsPerPage: any): void;
60
+ apiClient: ApiClient;
61
+ page: number;
62
+ resultsPerPage: number;
63
+ _getLink(path: any): Promise<any>;
64
+ /**
65
+ * The link to first page, if any
66
+ * @type {String}
67
+ * @memberOf Paginable
68
+ */
69
+ linkFirst: string;
70
+ /**
71
+ * The link to previous page, if any
72
+ * @type {String}
73
+ * @memberOf Paginable
74
+ */
75
+ linkPrev: string;
76
+ /**
77
+ * The link to next page, if any
78
+ * @type {String}
79
+ * @memberOf Paginable
80
+ */
81
+ linkNext: string;
82
+ /**
83
+ * The link to last page, if any
84
+ * @type {String}
85
+ * @memberOf Paginable
86
+ */
87
+ linkLast: string;
88
+ /**
89
+ * Number of total results available
90
+ * @type {Number}
91
+ * @memberOf Paginable
92
+ */
93
+ resultsTotal: number;
94
+ }
95
+ import { ApiClient } from "./ApiClient";
@@ -0,0 +1,248 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _ApiClient = require("./ApiClient");
8
+ /*
9
+ * Nutanix Multidomain Versioned APIs
10
+ *
11
+ * OpenAPI spec version: 4.2.1
12
+ *
13
+ * NOTE: This class is auto generated by the Open API Dev Platform.
14
+ *
15
+ * Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE
16
+ *
17
+ * Do not edit the class manually.
18
+ *
19
+ */
20
+
21
+ /**
22
+ * A model that represents a paginable response from a list endpoint.
23
+ * @module Paginable
24
+ * @version 4.2.1
25
+ */
26
+ class Paginable {
27
+ /**
28
+ * Constructs a new <code>Paginable</code>.
29
+ * @alias module:Paginable
30
+ * @class
31
+ */
32
+ constructor() {}
33
+
34
+ /**
35
+ * Constructs a <code>Paginable</code> from a plain Javascript object, optionally creating a new instance.
36
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
37
+ * @param {Object} metadata The plain Javascript object bearing properties of interest.
38
+ * @param {module:Paginable} obj Optional instance to populate.
39
+ * @return {module:Paginable} The populated <code>Paginable</code> instance.
40
+ */
41
+ static constructFromObject(metadata, obj) {
42
+ if (metadata) {
43
+ obj = obj || new Paginable();
44
+ if (metadata.hasOwnProperty('links') && metadata['links'] !== null && metadata['links'] !== undefined) {
45
+ for (const link of metadata['links']) {
46
+ if (link.hasOwnProperty('rel') && link.hasOwnProperty('href')) {
47
+ switch (link['rel']) {
48
+ case 'first':
49
+ obj.linkFirst = link['href'];
50
+ break;
51
+ case 'prev':
52
+ obj.linkPrev = link['href'];
53
+ break;
54
+ case 'next':
55
+ obj.linkNext = link['href'];
56
+ break;
57
+ case 'last':
58
+ obj.linkLast = link['href'];
59
+ break;
60
+ default:
61
+ break;
62
+ }
63
+ }
64
+ }
65
+ }
66
+ if (metadata.hasOwnProperty('totalAvailableResults')) {
67
+ obj.resultsTotal = metadata['totalAvailableResults'];
68
+ }
69
+ }
70
+ return obj;
71
+ }
72
+
73
+ /**
74
+ * Get the first page of the set, if any
75
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, resolves with another Paginable
76
+ * or rejects with error message if any issue (link not available, ...)
77
+ */
78
+ getFirstPage() {
79
+ if (this.isFirstPage()) {
80
+ return Promise.reject('Cannot navigate to first page : already on first page');
81
+ }
82
+ if (this.linkFirst === null) {
83
+ return Promise.reject('No link to first page provided in previous API response');
84
+ }
85
+ return this._getLink(this.linkFirst);
86
+ }
87
+
88
+ /**
89
+ * Get the previous page of the set, if any
90
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, resolves with another Paginable
91
+ * or rejects with error message if any issue (link not available, ...)
92
+ */
93
+ getPrevPage() {
94
+ if (this.isFirstPage()) {
95
+ return Promise.reject('Cannot navigate to previous page : already on first page');
96
+ }
97
+ if (this.linkPrev === null) {
98
+ return Promise.reject('No link to previous page provided in previous API response');
99
+ }
100
+ return this._getLink(this.linkPrev);
101
+ }
102
+
103
+ /**
104
+ * Get the next page of the set, if any
105
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, resolves with another Paginable
106
+ * or rejects with error message if any issue (link not available, ...)
107
+ */
108
+ getNextPage() {
109
+ if (this.isLastPage()) {
110
+ return Promise.reject('Cannot navigate to next page : already on last page');
111
+ }
112
+ if (this.linkNext === null) {
113
+ return Promise.reject('No link to next page provided in previous API response');
114
+ }
115
+ return this._getLink(this.linkNext);
116
+ }
117
+
118
+ /**
119
+ * Get the last page of the set, if any
120
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, resolves with another Paginable
121
+ * or rejects with error message if any issue (link not available, ...)
122
+ */
123
+ getLastPage() {
124
+ if (this.isLastPage()) {
125
+ return Promise.reject('Cannot navigate to last page : already on last page');
126
+ }
127
+ if (this.linkLast === null) {
128
+ return Promise.reject('No link to last page provided in previous API response');
129
+ }
130
+ return this._getLink(this.linkLast);
131
+ }
132
+
133
+ /**
134
+ * Get the current page number
135
+ * @return {Number} the current page number, starts at 0
136
+ */
137
+ currentPage() {
138
+ if (this.page === null) {
139
+ return 0;
140
+ }
141
+ return this.page;
142
+ }
143
+
144
+ /**
145
+ * Get the total number of pages
146
+ * @return {Number} the total number of pages available
147
+ */
148
+ countPages() {
149
+ if (this.resultsPerPage === null || this.resultsTotal === null || this.resultsPerPage === 0) {
150
+ return 1;
151
+ }
152
+ return Math.ceil(this.resultsTotal / this.resultsPerPage);
153
+ }
154
+
155
+ /**
156
+ * Check if current page is first page
157
+ * @return {Boolean} True if current page is 0, false otherwise
158
+ */
159
+ isFirstPage() {
160
+ return this.currentPage() === 0;
161
+ }
162
+
163
+ /**
164
+ * Check if current page is last page
165
+ * @return {Boolean} True if current page is countPages()-1, false otherwise
166
+ */
167
+ isLastPage() {
168
+ return this.currentPage() === this.countPages() - 1;
169
+ }
170
+ populatePaginationMetadata(apiClient, page, resultsPerPage) {
171
+ this.apiClient = apiClient;
172
+ this.page = page;
173
+ this.resultsPerPage = resultsPerPage;
174
+ }
175
+ _getLink(path) {
176
+ // If no ApiClient defined, instantiate default one
177
+ if (this.apiClient === null) {
178
+ this.apiClient = _ApiClient.ApiClient.instance;
179
+ }
180
+ const postBody = {};
181
+ const pathParams = {};
182
+ const queryParams = {};
183
+ const headerParams = {};
184
+ const formParams = {};
185
+ const authNames = [];
186
+ const contentTypes = [];
187
+ const accepts = ['application/json'];
188
+ const returnType = this.constructor;
189
+ return this.apiClient.callApi(path, 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
190
+ }
191
+ }
192
+
193
+ /**
194
+ * The link to first page, if any
195
+ * @type {String}
196
+ * @memberOf Paginable
197
+ */
198
+ exports.default = Paginable;
199
+ Paginable.prototype.linkFirst = null;
200
+
201
+ /**
202
+ * The link to previous page, if any
203
+ * @type {String}
204
+ * @memberOf Paginable
205
+ */
206
+ Paginable.prototype.linkPrev = null;
207
+
208
+ /**
209
+ * The link to next page, if any
210
+ * @type {String}
211
+ * @memberOf Paginable
212
+ */
213
+ Paginable.prototype.linkNext = null;
214
+
215
+ /**
216
+ * The link to last page, if any
217
+ * @type {String}
218
+ * @memberOf Paginable
219
+ */
220
+ Paginable.prototype.linkLast = null;
221
+
222
+ /**
223
+ * The ApiClient instance to use for further query
224
+ * @type {ApiClient}
225
+ * @memberOf Paginable
226
+ */
227
+ Paginable.prototype.apiClient = null;
228
+
229
+ /**
230
+ * Current page number
231
+ * @type {Number}
232
+ * @memberOf Paginable
233
+ */
234
+ Paginable.prototype.page = null;
235
+
236
+ /**
237
+ * Number of results per page
238
+ * @type {Number}
239
+ * @memberOf Paginable
240
+ */
241
+ Paginable.prototype.resultsPerPage = null;
242
+
243
+ /**
244
+ * Number of total results available
245
+ * @type {Number}
246
+ * @memberOf Paginable
247
+ */
248
+ Paginable.prototype.resultsTotal = null;
@@ -0,0 +1,84 @@
1
+ /**
2
+ * ExternalRepositories service.
3
+ * @version 4.2.1
4
+ * @class ExternalRepositoriesApi
5
+ */
6
+ export class ExternalRepositoriesApi {
7
+ /**
8
+ * Make the default {@link ApiClient} class available for developers to be able to extend it and bring
9
+ * their own fetch methods into the SDK
10
+ */
11
+ static get ApiClient(): typeof ApiClient;
12
+ /**
13
+ * Constructs a new ExternalRepositoriesApi.
14
+ * @alias module:api/ExternalRepositoriesApi
15
+ * @class
16
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
17
+ * default to {@link module:ApiClient#instance} if unspecified.
18
+ */
19
+ constructor(apiClient?: any);
20
+ apiClient: any;
21
+ /**
22
+ * Create an External repository.
23
+ * Create an External repository.
24
+ * @param { Required<Pick<ExternalRepository, 'name' | 'location'>> & Partial<ExternalRepository> } body specification
25
+ * @param {Object} args Additional Arguments
26
+ * @return {Promise<CreateExternalRepositoryApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateExternalRepositoryApiResponse } and HTTP response
27
+ */
28
+ createExternalRepository(body: Required<Pick<ExternalRepository, 'name' | 'location'>> & Partial<ExternalRepository>, ...args: any): Promise<CreateExternalRepositoryApiResponse>;
29
+ /**
30
+ * Delete an External repository.
31
+ * Delete an External repository by id.
32
+ * @param { String } extId External Repository identifier.
33
+ * @param {Object} args Additional Arguments
34
+ * @return {Promise<DeleteExternalRepositoryApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteExternalRepositoryApiResponse } and HTTP response
35
+ */
36
+ deleteExternalRepositoryById(extId: string, ...args: any): Promise<DeleteExternalRepositoryApiResponse>;
37
+ /**
38
+ * Get an External repository by id.
39
+ * Get an External repository by id.
40
+ * @param { String } extId External Repository identifier.
41
+ * @param {Object} args Additional Arguments
42
+ * @return {Promise<GetExternalRepositoryApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetExternalRepositoryApiResponse } and HTTP response
43
+ */
44
+ getExternalRepositoryById(extId: string, ...args: any): Promise<GetExternalRepositoryApiResponse>;
45
+ /**
46
+ * List External repositories.
47
+ * Get all External repositories.
48
+ * @param {Object} opts Optional parameters defined for the operation
49
+ * @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.
50
+
51
+ * @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.
52
+
53
+ * @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>
54
+ * 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'.
55
+ * @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.
56
+ * @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.
57
+ * @param {Object} args Additional Arguments
58
+ * @return {Promise<ListExternalRepositoriesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListExternalRepositoriesApiResponse } and HTTP response
59
+ */
60
+ listExternalRepositories(opts: {
61
+ $page: number;
62
+ $limit: number;
63
+ $filter: string;
64
+ $orderby: string;
65
+ $select: string;
66
+ }, ...args: any): Promise<ListExternalRepositoriesApiResponse>;
67
+ /**
68
+ * Update an External repository.
69
+ * Task Id corresponding to the External repository update operation.
70
+ * @param { Required<Pick<ExternalRepository, 'name' | 'location'>> & Partial<ExternalRepository> } body specification
71
+ * @param { String } extId External Repository identifier.
72
+ * @param {Object} args Additional Arguments
73
+ * @return {Promise<UpdateExternalRepositoryApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateExternalRepositoryApiResponse } and HTTP response
74
+ */
75
+ updateExternalRepositoryById(extId: string, body: Required<Pick<ExternalRepository, 'name' | 'location'>> & Partial<ExternalRepository>, ...args: any): Promise<UpdateExternalRepositoryApiResponse>;
76
+ #private;
77
+ }
78
+ import ExternalRepository from "../models/multidomain/v4/config/ExternalRepository";
79
+ import CreateExternalRepositoryApiResponse from "../models/multidomain/v4/config/CreateExternalRepositoryApiResponse";
80
+ import DeleteExternalRepositoryApiResponse from "../models/multidomain/v4/config/DeleteExternalRepositoryApiResponse";
81
+ import GetExternalRepositoryApiResponse from "../models/multidomain/v4/config/GetExternalRepositoryApiResponse";
82
+ import ListExternalRepositoriesApiResponse from "../models/multidomain/v4/config/ListExternalRepositoriesApiResponse";
83
+ import UpdateExternalRepositoryApiResponse from "../models/multidomain/v4/config/UpdateExternalRepositoryApiResponse";
84
+ import { ApiClient } from "../ApiClient";