oci-lustrefilestorage 2.106.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/LICENSE.txt +89 -0
  2. package/NOTICE.txt +1 -0
  3. package/README.md +22 -0
  4. package/THIRD_PARTY_LICENSES.txt +576 -0
  5. package/index.d.ts +22 -0
  6. package/index.js +45 -0
  7. package/index.js.map +1 -0
  8. package/lib/client.d.ts +204 -0
  9. package/lib/client.js +944 -0
  10. package/lib/client.js.map +1 -0
  11. package/lib/lustrefilestorage-waiter.d.ts +36 -0
  12. package/lib/lustrefilestorage-waiter.js +76 -0
  13. package/lib/lustrefilestorage-waiter.js.map +1 -0
  14. package/lib/model/action-type.d.ts +32 -0
  15. package/lib/model/action-type.js +43 -0
  16. package/lib/model/action-type.js.map +1 -0
  17. package/lib/model/change-lustre-file-system-compartment-details.d.ts +26 -0
  18. package/lib/model/change-lustre-file-system-compartment-details.js +29 -0
  19. package/lib/model/change-lustre-file-system-compartment-details.js.map +1 -0
  20. package/lib/model/create-lustre-file-system-details.d.ts +113 -0
  21. package/lib/model/create-lustre-file-system-details.js +64 -0
  22. package/lib/model/create-lustre-file-system-details.js.map +1 -0
  23. package/lib/model/index.d.ts +52 -0
  24. package/lib/model/index.js +75 -0
  25. package/lib/model/index.js.map +1 -0
  26. package/lib/model/lustre-file-system-collection.d.ts +26 -0
  27. package/lib/model/lustre-file-system-collection.js +61 -0
  28. package/lib/model/lustre-file-system-collection.js.map +1 -0
  29. package/lib/model/lustre-file-system-summary.d.ts +188 -0
  30. package/lib/model/lustre-file-system-summary.js +69 -0
  31. package/lib/model/lustre-file-system-summary.js.map +1 -0
  32. package/lib/model/lustre-file-system.d.ts +206 -0
  33. package/lib/model/lustre-file-system.js +90 -0
  34. package/lib/model/lustre-file-system.js.map +1 -0
  35. package/lib/model/maintenance-window.d.ts +47 -0
  36. package/lib/model/maintenance-window.js +44 -0
  37. package/lib/model/maintenance-window.js.map +1 -0
  38. package/lib/model/operation-status.d.ts +34 -0
  39. package/lib/model/operation-status.js +45 -0
  40. package/lib/model/operation-status.js.map +1 -0
  41. package/lib/model/operation-type.d.ts +30 -0
  42. package/lib/model/operation-type.js +41 -0
  43. package/lib/model/operation-type.js.map +1 -0
  44. package/lib/model/root-squash-configuration.d.ts +57 -0
  45. package/lib/model/root-squash-configuration.js +39 -0
  46. package/lib/model/root-squash-configuration.js.map +1 -0
  47. package/lib/model/sort-order.d.ts +30 -0
  48. package/lib/model/sort-order.js +41 -0
  49. package/lib/model/sort-order.js.map +1 -0
  50. package/lib/model/update-lustre-file-system-details.d.ts +76 -0
  51. package/lib/model/update-lustre-file-system-details.js +57 -0
  52. package/lib/model/update-lustre-file-system-details.js.map +1 -0
  53. package/lib/model/work-request-error-collection.d.ts +26 -0
  54. package/lib/model/work-request-error-collection.js +61 -0
  55. package/lib/model/work-request-error-collection.js.map +1 -0
  56. package/lib/model/work-request-error.d.ts +37 -0
  57. package/lib/model/work-request-error.js +29 -0
  58. package/lib/model/work-request-error.js.map +1 -0
  59. package/lib/model/work-request-log-entry-collection.d.ts +26 -0
  60. package/lib/model/work-request-log-entry-collection.js +61 -0
  61. package/lib/model/work-request-log-entry-collection.js.map +1 -0
  62. package/lib/model/work-request-log-entry.d.ts +31 -0
  63. package/lib/model/work-request-log-entry.js +29 -0
  64. package/lib/model/work-request-log-entry.js.map +1 -0
  65. package/lib/model/work-request-resource.d.ts +42 -0
  66. package/lib/model/work-request-resource.js +29 -0
  67. package/lib/model/work-request-resource.js.map +1 -0
  68. package/lib/model/work-request-summary-collection.d.ts +26 -0
  69. package/lib/model/work-request-summary-collection.js +61 -0
  70. package/lib/model/work-request-summary-collection.js.map +1 -0
  71. package/lib/model/work-request-summary.d.ts +73 -0
  72. package/lib/model/work-request-summary.js +61 -0
  73. package/lib/model/work-request-summary.js.map +1 -0
  74. package/lib/model/work-request.d.ts +76 -0
  75. package/lib/model/work-request.js +61 -0
  76. package/lib/model/work-request.js.map +1 -0
  77. package/lib/request/cancel-work-request-request.d.ts +38 -0
  78. package/lib/request/cancel-work-request-request.js +15 -0
  79. package/lib/request/cancel-work-request-request.js.map +1 -0
  80. package/lib/request/change-lustre-file-system-compartment-request.d.ts +43 -0
  81. package/lib/request/change-lustre-file-system-compartment-request.js +15 -0
  82. package/lib/request/change-lustre-file-system-compartment-request.js.map +1 -0
  83. package/lib/request/create-lustre-file-system-request.d.ts +40 -0
  84. package/lib/request/create-lustre-file-system-request.js +15 -0
  85. package/lib/request/create-lustre-file-system-request.js.map +1 -0
  86. package/lib/request/delete-lustre-file-system-request.d.ts +38 -0
  87. package/lib/request/delete-lustre-file-system-request.js +15 -0
  88. package/lib/request/delete-lustre-file-system-request.js.map +1 -0
  89. package/lib/request/get-lustre-file-system-request.d.ts +30 -0
  90. package/lib/request/get-lustre-file-system-request.js +15 -0
  91. package/lib/request/get-lustre-file-system-request.js.map +1 -0
  92. package/lib/request/get-work-request-request.d.ts +30 -0
  93. package/lib/request/get-work-request-request.js +15 -0
  94. package/lib/request/get-work-request-request.js.map +1 -0
  95. package/lib/request/index.d.ts +34 -0
  96. package/lib/request/index.js +43 -0
  97. package/lib/request/index.js.map +1 -0
  98. package/lib/request/list-lustre-file-systems-request.d.ts +82 -0
  99. package/lib/request/list-lustre-file-systems-request.js +24 -0
  100. package/lib/request/list-lustre-file-systems-request.js.map +1 -0
  101. package/lib/request/list-work-request-errors-request.d.ts +59 -0
  102. package/lib/request/list-work-request-errors-request.js +23 -0
  103. package/lib/request/list-work-request-errors-request.js.map +1 -0
  104. package/lib/request/list-work-request-logs-request.d.ts +59 -0
  105. package/lib/request/list-work-request-logs-request.js +23 -0
  106. package/lib/request/list-work-request-logs-request.js.map +1 -0
  107. package/lib/request/list-work-requests-request.d.ts +71 -0
  108. package/lib/request/list-work-requests-request.js +23 -0
  109. package/lib/request/list-work-requests-request.js.map +1 -0
  110. package/lib/request/update-lustre-file-system-request.d.ts +43 -0
  111. package/lib/request/update-lustre-file-system-request.js +15 -0
  112. package/lib/request/update-lustre-file-system-request.js.map +1 -0
  113. package/lib/response/cancel-work-request-response.d.ts +20 -0
  114. package/lib/response/cancel-work-request-response.js +15 -0
  115. package/lib/response/cancel-work-request-response.js.map +1 -0
  116. package/lib/response/change-lustre-file-system-compartment-response.d.ts +26 -0
  117. package/lib/response/change-lustre-file-system-compartment-response.js +15 -0
  118. package/lib/response/change-lustre-file-system-compartment-response.js.map +1 -0
  119. package/lib/response/create-lustre-file-system-response.d.ts +44 -0
  120. package/lib/response/create-lustre-file-system-response.js +15 -0
  121. package/lib/response/create-lustre-file-system-response.js.map +1 -0
  122. package/lib/response/delete-lustre-file-system-response.d.ts +26 -0
  123. package/lib/response/delete-lustre-file-system-response.js +15 -0
  124. package/lib/response/delete-lustre-file-system-response.js.map +1 -0
  125. package/lib/response/get-lustre-file-system-response.d.ts +30 -0
  126. package/lib/response/get-lustre-file-system-response.js +15 -0
  127. package/lib/response/get-lustre-file-system-response.js.map +1 -0
  128. package/lib/response/get-work-request-response.d.ts +34 -0
  129. package/lib/response/get-work-request-response.js +15 -0
  130. package/lib/response/get-work-request-response.js.map +1 -0
  131. package/lib/response/index.d.ts +34 -0
  132. package/lib/response/index.js +15 -0
  133. package/lib/response/index.js.map +1 -0
  134. package/lib/response/list-lustre-file-systems-response.d.ts +31 -0
  135. package/lib/response/list-lustre-file-systems-response.js +15 -0
  136. package/lib/response/list-lustre-file-systems-response.js.map +1 -0
  137. package/lib/response/list-work-request-errors-response.d.ts +31 -0
  138. package/lib/response/list-work-request-errors-response.js +15 -0
  139. package/lib/response/list-work-request-errors-response.js.map +1 -0
  140. package/lib/response/list-work-request-logs-response.d.ts +31 -0
  141. package/lib/response/list-work-request-logs-response.js +15 -0
  142. package/lib/response/list-work-request-logs-response.js.map +1 -0
  143. package/lib/response/list-work-requests-response.d.ts +31 -0
  144. package/lib/response/list-work-requests-response.js +15 -0
  145. package/lib/response/list-work-requests-response.js.map +1 -0
  146. package/lib/response/update-lustre-file-system-response.d.ts +26 -0
  147. package/lib/response/update-lustre-file-system-response.js +15 -0
  148. package/lib/response/update-lustre-file-system-response.js.map +1 -0
  149. package/package.json +29 -0
package/lib/client.js ADDED
@@ -0,0 +1,944 @@
1
+ "use strict";
2
+ /**
3
+ * File Storage with Lustre API
4
+ * Use the File Storage with Lustre API to manage Lustre file systems and related resources. For more information, see [File Storage with Lustre](https://docs.oracle.com/iaas/Content/lustre/home.htm).
5
+ * OpenAPI spec version: 20250228
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OracleSDKGenerator.
9
+ * Do not edit the class manually.
10
+ *
11
+ * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
12
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
13
+ */
14
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
15
+ if (k2 === undefined) k2 = k;
16
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
17
+ }) : (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ o[k2] = m[k];
20
+ }));
21
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
22
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
23
+ }) : function(o, v) {
24
+ o["default"] = v;
25
+ });
26
+ var __importStar = (this && this.__importStar) || function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
34
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
35
+ return new (P || (P = Promise))(function (resolve, reject) {
36
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
37
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
38
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
39
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
40
+ });
41
+ };
42
+ Object.defineProperty(exports, "__esModule", { value: true });
43
+ exports.LustreFileStorageClient = exports.LustreFileStorageApiKeys = void 0;
44
+ const common = require("oci-common");
45
+ const model = __importStar(require("./model"));
46
+ const lustrefilestorage_waiter_1 = require("./lustrefilestorage-waiter");
47
+ const oci_common_1 = require("oci-common");
48
+ const Breaker = require("opossum");
49
+ // ===============================================
50
+ // This file is autogenerated - Please do not edit
51
+ // ===============================================
52
+ var LustreFileStorageApiKeys;
53
+ (function (LustreFileStorageApiKeys) {
54
+ })(LustreFileStorageApiKeys = exports.LustreFileStorageApiKeys || (exports.LustreFileStorageApiKeys = {}));
55
+ /**
56
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
57
+ */
58
+ class LustreFileStorageClient {
59
+ constructor(params, clientConfiguration) {
60
+ this["_realmSpecificEndpointTemplateEnabled"] = undefined;
61
+ this["_endpoint"] = "";
62
+ this["_defaultHeaders"] = {};
63
+ this._circuitBreaker = null;
64
+ this._httpOptions = undefined;
65
+ this._bodyDuplexMode = undefined;
66
+ this.targetService = "LustreFileStorage";
67
+ this._regionId = "";
68
+ this._lastSetRegionOrRegionId = "";
69
+ const requestSigner = params.authenticationDetailsProvider
70
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
71
+ : null;
72
+ this._authProvider = params.authenticationDetailsProvider;
73
+ if (clientConfiguration) {
74
+ this._clientConfiguration = clientConfiguration;
75
+ this._circuitBreaker = clientConfiguration.circuitBreaker
76
+ ? clientConfiguration.circuitBreaker.circuit
77
+ : null;
78
+ this._httpOptions = clientConfiguration.httpOptions
79
+ ? clientConfiguration.httpOptions
80
+ : undefined;
81
+ this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
82
+ ? clientConfiguration.bodyDuplexMode
83
+ : undefined;
84
+ }
85
+ if (!oci_common_1.developerToolConfiguration.isServiceEnabled("lustrefilestorage")) {
86
+ let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
87
+ throw errmsg.concat("lustrefilestorage");
88
+ }
89
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
90
+ const specCircuitBreakerEnabled = true;
91
+ if (!this._circuitBreaker &&
92
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
93
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
94
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
95
+ }
96
+ this._httpClient =
97
+ params.httpClient ||
98
+ new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
99
+ if (params.authenticationDetailsProvider &&
100
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
101
+ const provider = params.authenticationDetailsProvider;
102
+ if (provider.getRegion()) {
103
+ this.region = provider.getRegion();
104
+ }
105
+ }
106
+ }
107
+ /**
108
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
109
+ */
110
+ get endpoint() {
111
+ return this._endpoint;
112
+ }
113
+ /**
114
+ * Sets the endpoint to call (ex, https://www.example.com).
115
+ * @param endpoint The endpoint of the service.
116
+ */
117
+ set endpoint(endpoint) {
118
+ this._endpoint = endpoint;
119
+ this._endpoint = this._endpoint + "/20250228";
120
+ if (this.logger)
121
+ this.logger.info(`LustreFileStorageClient endpoint set to ${this._endpoint}`);
122
+ }
123
+ get logger() {
124
+ return common.LOG.logger;
125
+ }
126
+ /**
127
+ * Determines whether realm specific endpoint should be used or not.
128
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
129
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
130
+ */
131
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
132
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
133
+ if (this.logger)
134
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
135
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
136
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(LustreFileStorageClient.serviceEndpointTemplate, this._region, LustreFileStorageClient.endpointServiceName);
137
+ }
138
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
139
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(LustreFileStorageClient.serviceEndpointTemplate, this._regionId, LustreFileStorageClient.endpointServiceName);
140
+ }
141
+ }
142
+ /**
143
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
144
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
145
+ * @param region The region of the service.
146
+ */
147
+ set region(region) {
148
+ this._region = region;
149
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(LustreFileStorageClient.serviceEndpointTemplate, region, LustreFileStorageClient.endpointServiceName);
150
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
151
+ }
152
+ /**
153
+ * Sets the regionId to call (ex, 'us-phoenix-1').
154
+ *
155
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
156
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
157
+ * and then call {@link #endpoint(String) endpoint}.
158
+ * @param regionId The public region ID.
159
+ */
160
+ set regionId(regionId) {
161
+ this._regionId = regionId;
162
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(LustreFileStorageClient.serviceEndpointTemplate, regionId, LustreFileStorageClient.endpointServiceName);
163
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
164
+ }
165
+ /**
166
+ * Creates a new LustreFileStorageWaiter for resources for this service.
167
+ *
168
+ * @param config The waiter configuration for termination and delay strategy
169
+ * @return The service waiters.
170
+ */
171
+ createWaiters(config) {
172
+ this._waiters = new lustrefilestorage_waiter_1.LustreFileStorageWaiter(this, config);
173
+ return this._waiters;
174
+ }
175
+ /**
176
+ * Gets the waiters available for resources for this service.
177
+ *
178
+ * @return The service waiters.
179
+ */
180
+ getWaiters() {
181
+ if (this._waiters) {
182
+ return this._waiters;
183
+ }
184
+ throw Error("Waiters do not exist. Please create waiters.");
185
+ }
186
+ /**
187
+ * Shutdown the circuit breaker used by the client when it is no longer needed
188
+ */
189
+ shutdownCircuitBreaker() {
190
+ if (this._circuitBreaker) {
191
+ this._circuitBreaker.shutdown();
192
+ }
193
+ }
194
+ /**
195
+ * Close the provider if possible which in turn shuts down any associated circuit breaker
196
+ */
197
+ closeProvider() {
198
+ if (this._authProvider) {
199
+ if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
200
+ (this._authProvider).closeProvider();
201
+ }
202
+ }
203
+ /**
204
+ * Close the client once it is no longer needed
205
+ */
206
+ close() {
207
+ this.shutdownCircuitBreaker();
208
+ this.closeProvider();
209
+ }
210
+ /**
211
+ * Cancels a work request.
212
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
213
+ * @param CancelWorkRequestRequest
214
+ * @return CancelWorkRequestResponse
215
+ * @throws OciError when an error occurs
216
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
217
+ */
218
+ cancelWorkRequest(cancelWorkRequestRequest) {
219
+ return __awaiter(this, void 0, void 0, function* () {
220
+ if (this.logger)
221
+ this.logger.debug("Calling operation LustreFileStorageClient#cancelWorkRequest.");
222
+ const operationName = "cancelWorkRequest";
223
+ const apiReferenceLink = "";
224
+ const pathParams = {
225
+ "{workRequestId}": cancelWorkRequestRequest.workRequestId
226
+ };
227
+ const queryParams = {};
228
+ let headerParams = {
229
+ "Content-Type": common.Constants.APPLICATION_JSON,
230
+ "if-match": cancelWorkRequestRequest.ifMatch,
231
+ "opc-request-id": cancelWorkRequestRequest.opcRequestId
232
+ };
233
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
234
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
235
+ if (this.logger)
236
+ retrier.logger = this.logger;
237
+ const request = yield oci_common_1.composeRequest({
238
+ baseEndpoint: this._endpoint,
239
+ defaultHeaders: this._defaultHeaders,
240
+ path: "/workRequests/{workRequestId}",
241
+ method: "DELETE",
242
+ pathParams: pathParams,
243
+ headerParams: headerParams,
244
+ queryParams: queryParams
245
+ });
246
+ try {
247
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
248
+ const sdkResponse = oci_common_1.composeResponse({
249
+ responseObject: {},
250
+ responseHeaders: [
251
+ {
252
+ value: response.headers.get("opc-request-id"),
253
+ key: "opcRequestId",
254
+ dataType: "string"
255
+ }
256
+ ]
257
+ });
258
+ return sdkResponse;
259
+ }
260
+ catch (err) {
261
+ throw err;
262
+ }
263
+ });
264
+ }
265
+ /**
266
+ * Moves a Lustre file system into a different compartment within the same tenancy. For information about moving resources between
267
+ * compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
268
+ *
269
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
270
+ * @param ChangeLustreFileSystemCompartmentRequest
271
+ * @return ChangeLustreFileSystemCompartmentResponse
272
+ * @throws OciError when an error occurs
273
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/ChangeLustreFileSystemCompartment.ts.html |here} to see how to use ChangeLustreFileSystemCompartment API.
274
+ */
275
+ changeLustreFileSystemCompartment(changeLustreFileSystemCompartmentRequest) {
276
+ return __awaiter(this, void 0, void 0, function* () {
277
+ if (this.logger)
278
+ this.logger.debug("Calling operation LustreFileStorageClient#changeLustreFileSystemCompartment.");
279
+ const operationName = "changeLustreFileSystemCompartment";
280
+ const apiReferenceLink = "";
281
+ const pathParams = {
282
+ "{lustreFileSystemId}": changeLustreFileSystemCompartmentRequest.lustreFileSystemId
283
+ };
284
+ const queryParams = {};
285
+ let headerParams = {
286
+ "Content-Type": common.Constants.APPLICATION_JSON,
287
+ "if-match": changeLustreFileSystemCompartmentRequest.ifMatch,
288
+ "opc-request-id": changeLustreFileSystemCompartmentRequest.opcRequestId
289
+ };
290
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
291
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeLustreFileSystemCompartmentRequest.retryConfiguration, specRetryConfiguration);
292
+ if (this.logger)
293
+ retrier.logger = this.logger;
294
+ const request = yield oci_common_1.composeRequest({
295
+ baseEndpoint: this._endpoint,
296
+ defaultHeaders: this._defaultHeaders,
297
+ path: "/lustreFileSystems/{lustreFileSystemId}/actions/changeCompartment",
298
+ method: "POST",
299
+ bodyContent: common.ObjectSerializer.serialize(changeLustreFileSystemCompartmentRequest.changeLustreFileSystemCompartmentDetails, "ChangeLustreFileSystemCompartmentDetails", model.ChangeLustreFileSystemCompartmentDetails.getJsonObj),
300
+ pathParams: pathParams,
301
+ headerParams: headerParams,
302
+ queryParams: queryParams
303
+ });
304
+ try {
305
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
306
+ const sdkResponse = oci_common_1.composeResponse({
307
+ responseObject: {},
308
+ responseHeaders: [
309
+ {
310
+ value: response.headers.get("opc-work-request-id"),
311
+ key: "opcWorkRequestId",
312
+ dataType: "string"
313
+ },
314
+ {
315
+ value: response.headers.get("opc-request-id"),
316
+ key: "opcRequestId",
317
+ dataType: "string"
318
+ }
319
+ ]
320
+ });
321
+ return sdkResponse;
322
+ }
323
+ catch (err) {
324
+ throw err;
325
+ }
326
+ });
327
+ }
328
+ /**
329
+ * Creates a Lustre file system.
330
+ *
331
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
332
+ * @param CreateLustreFileSystemRequest
333
+ * @return CreateLustreFileSystemResponse
334
+ * @throws OciError when an error occurs
335
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/CreateLustreFileSystem.ts.html |here} to see how to use CreateLustreFileSystem API.
336
+ */
337
+ createLustreFileSystem(createLustreFileSystemRequest) {
338
+ return __awaiter(this, void 0, void 0, function* () {
339
+ if (this.logger)
340
+ this.logger.debug("Calling operation LustreFileStorageClient#createLustreFileSystem.");
341
+ const operationName = "createLustreFileSystem";
342
+ const apiReferenceLink = "";
343
+ const pathParams = {};
344
+ const queryParams = {};
345
+ let headerParams = {
346
+ "Content-Type": common.Constants.APPLICATION_JSON,
347
+ "opc-retry-token": createLustreFileSystemRequest.opcRetryToken,
348
+ "opc-request-id": createLustreFileSystemRequest.opcRequestId
349
+ };
350
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
351
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createLustreFileSystemRequest.retryConfiguration, specRetryConfiguration);
352
+ if (this.logger)
353
+ retrier.logger = this.logger;
354
+ const request = yield oci_common_1.composeRequest({
355
+ baseEndpoint: this._endpoint,
356
+ defaultHeaders: this._defaultHeaders,
357
+ path: "/lustreFileSystems",
358
+ method: "POST",
359
+ bodyContent: common.ObjectSerializer.serialize(createLustreFileSystemRequest.createLustreFileSystemDetails, "CreateLustreFileSystemDetails", model.CreateLustreFileSystemDetails.getJsonObj),
360
+ pathParams: pathParams,
361
+ headerParams: headerParams,
362
+ queryParams: queryParams
363
+ });
364
+ try {
365
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
366
+ const sdkResponse = oci_common_1.composeResponse({
367
+ responseObject: {},
368
+ body: yield response.json(),
369
+ bodyKey: "lustreFileSystem",
370
+ bodyModel: model.LustreFileSystem,
371
+ type: "model.LustreFileSystem",
372
+ responseHeaders: [
373
+ {
374
+ value: response.headers.get("location"),
375
+ key: "location",
376
+ dataType: "string"
377
+ },
378
+ {
379
+ value: response.headers.get("content-location"),
380
+ key: "contentLocation",
381
+ dataType: "string"
382
+ },
383
+ {
384
+ value: response.headers.get("etag"),
385
+ key: "etag",
386
+ dataType: "string"
387
+ },
388
+ {
389
+ value: response.headers.get("opc-work-request-id"),
390
+ key: "opcWorkRequestId",
391
+ dataType: "string"
392
+ },
393
+ {
394
+ value: response.headers.get("opc-request-id"),
395
+ key: "opcRequestId",
396
+ dataType: "string"
397
+ }
398
+ ]
399
+ });
400
+ return sdkResponse;
401
+ }
402
+ catch (err) {
403
+ throw err;
404
+ }
405
+ });
406
+ }
407
+ /**
408
+ * Deletes a Lustre file system.
409
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
410
+ * @param DeleteLustreFileSystemRequest
411
+ * @return DeleteLustreFileSystemResponse
412
+ * @throws OciError when an error occurs
413
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/DeleteLustreFileSystem.ts.html |here} to see how to use DeleteLustreFileSystem API.
414
+ */
415
+ deleteLustreFileSystem(deleteLustreFileSystemRequest) {
416
+ return __awaiter(this, void 0, void 0, function* () {
417
+ if (this.logger)
418
+ this.logger.debug("Calling operation LustreFileStorageClient#deleteLustreFileSystem.");
419
+ const operationName = "deleteLustreFileSystem";
420
+ const apiReferenceLink = "";
421
+ const pathParams = {
422
+ "{lustreFileSystemId}": deleteLustreFileSystemRequest.lustreFileSystemId
423
+ };
424
+ const queryParams = {};
425
+ let headerParams = {
426
+ "Content-Type": common.Constants.APPLICATION_JSON,
427
+ "if-match": deleteLustreFileSystemRequest.ifMatch,
428
+ "opc-request-id": deleteLustreFileSystemRequest.opcRequestId
429
+ };
430
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
431
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteLustreFileSystemRequest.retryConfiguration, specRetryConfiguration);
432
+ if (this.logger)
433
+ retrier.logger = this.logger;
434
+ const request = yield oci_common_1.composeRequest({
435
+ baseEndpoint: this._endpoint,
436
+ defaultHeaders: this._defaultHeaders,
437
+ path: "/lustreFileSystems/{lustreFileSystemId}",
438
+ method: "DELETE",
439
+ pathParams: pathParams,
440
+ headerParams: headerParams,
441
+ queryParams: queryParams
442
+ });
443
+ try {
444
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
445
+ const sdkResponse = oci_common_1.composeResponse({
446
+ responseObject: {},
447
+ responseHeaders: [
448
+ {
449
+ value: response.headers.get("opc-work-request-id"),
450
+ key: "opcWorkRequestId",
451
+ dataType: "string"
452
+ },
453
+ {
454
+ value: response.headers.get("opc-request-id"),
455
+ key: "opcRequestId",
456
+ dataType: "string"
457
+ }
458
+ ]
459
+ });
460
+ return sdkResponse;
461
+ }
462
+ catch (err) {
463
+ throw err;
464
+ }
465
+ });
466
+ }
467
+ /**
468
+ * Gets information about a Lustre file system.
469
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
470
+ * @param GetLustreFileSystemRequest
471
+ * @return GetLustreFileSystemResponse
472
+ * @throws OciError when an error occurs
473
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/GetLustreFileSystem.ts.html |here} to see how to use GetLustreFileSystem API.
474
+ */
475
+ getLustreFileSystem(getLustreFileSystemRequest) {
476
+ return __awaiter(this, void 0, void 0, function* () {
477
+ if (this.logger)
478
+ this.logger.debug("Calling operation LustreFileStorageClient#getLustreFileSystem.");
479
+ const operationName = "getLustreFileSystem";
480
+ const apiReferenceLink = "";
481
+ const pathParams = {
482
+ "{lustreFileSystemId}": getLustreFileSystemRequest.lustreFileSystemId
483
+ };
484
+ const queryParams = {};
485
+ let headerParams = {
486
+ "Content-Type": common.Constants.APPLICATION_JSON,
487
+ "opc-request-id": getLustreFileSystemRequest.opcRequestId
488
+ };
489
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
490
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getLustreFileSystemRequest.retryConfiguration, specRetryConfiguration);
491
+ if (this.logger)
492
+ retrier.logger = this.logger;
493
+ const request = yield oci_common_1.composeRequest({
494
+ baseEndpoint: this._endpoint,
495
+ defaultHeaders: this._defaultHeaders,
496
+ path: "/lustreFileSystems/{lustreFileSystemId}",
497
+ method: "GET",
498
+ pathParams: pathParams,
499
+ headerParams: headerParams,
500
+ queryParams: queryParams
501
+ });
502
+ try {
503
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
504
+ const sdkResponse = oci_common_1.composeResponse({
505
+ responseObject: {},
506
+ body: yield response.json(),
507
+ bodyKey: "lustreFileSystem",
508
+ bodyModel: model.LustreFileSystem,
509
+ type: "model.LustreFileSystem",
510
+ responseHeaders: [
511
+ {
512
+ value: response.headers.get("etag"),
513
+ key: "etag",
514
+ dataType: "string"
515
+ },
516
+ {
517
+ value: response.headers.get("opc-request-id"),
518
+ key: "opcRequestId",
519
+ dataType: "string"
520
+ }
521
+ ]
522
+ });
523
+ return sdkResponse;
524
+ }
525
+ catch (err) {
526
+ throw err;
527
+ }
528
+ });
529
+ }
530
+ /**
531
+ * Gets the details of a work request.
532
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
533
+ * @param GetWorkRequestRequest
534
+ * @return GetWorkRequestResponse
535
+ * @throws OciError when an error occurs
536
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
537
+ */
538
+ getWorkRequest(getWorkRequestRequest) {
539
+ return __awaiter(this, void 0, void 0, function* () {
540
+ if (this.logger)
541
+ this.logger.debug("Calling operation LustreFileStorageClient#getWorkRequest.");
542
+ const operationName = "getWorkRequest";
543
+ const apiReferenceLink = "";
544
+ const pathParams = {
545
+ "{workRequestId}": getWorkRequestRequest.workRequestId
546
+ };
547
+ const queryParams = {};
548
+ let headerParams = {
549
+ "Content-Type": common.Constants.APPLICATION_JSON,
550
+ "opc-request-id": getWorkRequestRequest.opcRequestId
551
+ };
552
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
553
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
554
+ if (this.logger)
555
+ retrier.logger = this.logger;
556
+ const request = yield oci_common_1.composeRequest({
557
+ baseEndpoint: this._endpoint,
558
+ defaultHeaders: this._defaultHeaders,
559
+ path: "/workRequests/{workRequestId}",
560
+ method: "GET",
561
+ pathParams: pathParams,
562
+ headerParams: headerParams,
563
+ queryParams: queryParams
564
+ });
565
+ try {
566
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
567
+ const sdkResponse = oci_common_1.composeResponse({
568
+ responseObject: {},
569
+ body: yield response.json(),
570
+ bodyKey: "workRequest",
571
+ bodyModel: model.WorkRequest,
572
+ type: "model.WorkRequest",
573
+ responseHeaders: [
574
+ {
575
+ value: response.headers.get("etag"),
576
+ key: "etag",
577
+ dataType: "string"
578
+ },
579
+ {
580
+ value: response.headers.get("opc-request-id"),
581
+ key: "opcRequestId",
582
+ dataType: "string"
583
+ },
584
+ {
585
+ value: response.headers.get("retry-after"),
586
+ key: "retryAfter",
587
+ dataType: "number"
588
+ }
589
+ ]
590
+ });
591
+ return sdkResponse;
592
+ }
593
+ catch (err) {
594
+ throw err;
595
+ }
596
+ });
597
+ }
598
+ /**
599
+ * Gets a list of Lustre file systems.
600
+ *
601
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
602
+ * @param ListLustreFileSystemsRequest
603
+ * @return ListLustreFileSystemsResponse
604
+ * @throws OciError when an error occurs
605
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/ListLustreFileSystems.ts.html |here} to see how to use ListLustreFileSystems API.
606
+ */
607
+ listLustreFileSystems(listLustreFileSystemsRequest) {
608
+ return __awaiter(this, void 0, void 0, function* () {
609
+ if (this.logger)
610
+ this.logger.debug("Calling operation LustreFileStorageClient#listLustreFileSystems.");
611
+ const operationName = "listLustreFileSystems";
612
+ const apiReferenceLink = "";
613
+ const pathParams = {};
614
+ const queryParams = {
615
+ "compartmentId": listLustreFileSystemsRequest.compartmentId,
616
+ "availabilityDomain": listLustreFileSystemsRequest.availabilityDomain,
617
+ "lifecycleState": listLustreFileSystemsRequest.lifecycleState,
618
+ "displayName": listLustreFileSystemsRequest.displayName,
619
+ "id": listLustreFileSystemsRequest.id,
620
+ "limit": listLustreFileSystemsRequest.limit,
621
+ "page": listLustreFileSystemsRequest.page,
622
+ "sortOrder": listLustreFileSystemsRequest.sortOrder,
623
+ "sortBy": listLustreFileSystemsRequest.sortBy
624
+ };
625
+ let headerParams = {
626
+ "Content-Type": common.Constants.APPLICATION_JSON,
627
+ "opc-request-id": listLustreFileSystemsRequest.opcRequestId
628
+ };
629
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
630
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listLustreFileSystemsRequest.retryConfiguration, specRetryConfiguration);
631
+ if (this.logger)
632
+ retrier.logger = this.logger;
633
+ const request = yield oci_common_1.composeRequest({
634
+ baseEndpoint: this._endpoint,
635
+ defaultHeaders: this._defaultHeaders,
636
+ path: "/lustreFileSystems",
637
+ method: "GET",
638
+ pathParams: pathParams,
639
+ headerParams: headerParams,
640
+ queryParams: queryParams
641
+ });
642
+ try {
643
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
644
+ const sdkResponse = oci_common_1.composeResponse({
645
+ responseObject: {},
646
+ body: yield response.json(),
647
+ bodyKey: "lustreFileSystemCollection",
648
+ bodyModel: model.LustreFileSystemCollection,
649
+ type: "model.LustreFileSystemCollection",
650
+ responseHeaders: [
651
+ {
652
+ value: response.headers.get("opc-request-id"),
653
+ key: "opcRequestId",
654
+ dataType: "string"
655
+ },
656
+ {
657
+ value: response.headers.get("opc-next-page"),
658
+ key: "opcNextPage",
659
+ dataType: "string"
660
+ }
661
+ ]
662
+ });
663
+ return sdkResponse;
664
+ }
665
+ catch (err) {
666
+ throw err;
667
+ }
668
+ });
669
+ }
670
+ /**
671
+ * Lists the errors for a work request.
672
+ *
673
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
674
+ * @param ListWorkRequestErrorsRequest
675
+ * @return ListWorkRequestErrorsResponse
676
+ * @throws OciError when an error occurs
677
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
678
+ */
679
+ listWorkRequestErrors(listWorkRequestErrorsRequest) {
680
+ return __awaiter(this, void 0, void 0, function* () {
681
+ if (this.logger)
682
+ this.logger.debug("Calling operation LustreFileStorageClient#listWorkRequestErrors.");
683
+ const operationName = "listWorkRequestErrors";
684
+ const apiReferenceLink = "";
685
+ const pathParams = {
686
+ "{workRequestId}": listWorkRequestErrorsRequest.workRequestId
687
+ };
688
+ const queryParams = {
689
+ "page": listWorkRequestErrorsRequest.page,
690
+ "limit": listWorkRequestErrorsRequest.limit,
691
+ "sortBy": listWorkRequestErrorsRequest.sortBy,
692
+ "sortOrder": listWorkRequestErrorsRequest.sortOrder
693
+ };
694
+ let headerParams = {
695
+ "Content-Type": common.Constants.APPLICATION_JSON,
696
+ "opc-request-id": listWorkRequestErrorsRequest.opcRequestId
697
+ };
698
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
699
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
700
+ if (this.logger)
701
+ retrier.logger = this.logger;
702
+ const request = yield oci_common_1.composeRequest({
703
+ baseEndpoint: this._endpoint,
704
+ defaultHeaders: this._defaultHeaders,
705
+ path: "/workRequests/{workRequestId}/errors",
706
+ method: "GET",
707
+ pathParams: pathParams,
708
+ headerParams: headerParams,
709
+ queryParams: queryParams
710
+ });
711
+ try {
712
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
713
+ const sdkResponse = oci_common_1.composeResponse({
714
+ responseObject: {},
715
+ body: yield response.json(),
716
+ bodyKey: "workRequestErrorCollection",
717
+ bodyModel: model.WorkRequestErrorCollection,
718
+ type: "model.WorkRequestErrorCollection",
719
+ responseHeaders: [
720
+ {
721
+ value: response.headers.get("opc-next-page"),
722
+ key: "opcNextPage",
723
+ dataType: "string"
724
+ },
725
+ {
726
+ value: response.headers.get("opc-request-id"),
727
+ key: "opcRequestId",
728
+ dataType: "string"
729
+ }
730
+ ]
731
+ });
732
+ return sdkResponse;
733
+ }
734
+ catch (err) {
735
+ throw err;
736
+ }
737
+ });
738
+ }
739
+ /**
740
+ * Lists the logs for a work request.
741
+ *
742
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
743
+ * @param ListWorkRequestLogsRequest
744
+ * @return ListWorkRequestLogsResponse
745
+ * @throws OciError when an error occurs
746
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
747
+ */
748
+ listWorkRequestLogs(listWorkRequestLogsRequest) {
749
+ return __awaiter(this, void 0, void 0, function* () {
750
+ if (this.logger)
751
+ this.logger.debug("Calling operation LustreFileStorageClient#listWorkRequestLogs.");
752
+ const operationName = "listWorkRequestLogs";
753
+ const apiReferenceLink = "";
754
+ const pathParams = {
755
+ "{workRequestId}": listWorkRequestLogsRequest.workRequestId
756
+ };
757
+ const queryParams = {
758
+ "page": listWorkRequestLogsRequest.page,
759
+ "limit": listWorkRequestLogsRequest.limit,
760
+ "sortBy": listWorkRequestLogsRequest.sortBy,
761
+ "sortOrder": listWorkRequestLogsRequest.sortOrder
762
+ };
763
+ let headerParams = {
764
+ "Content-Type": common.Constants.APPLICATION_JSON,
765
+ "opc-request-id": listWorkRequestLogsRequest.opcRequestId
766
+ };
767
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
768
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
769
+ if (this.logger)
770
+ retrier.logger = this.logger;
771
+ const request = yield oci_common_1.composeRequest({
772
+ baseEndpoint: this._endpoint,
773
+ defaultHeaders: this._defaultHeaders,
774
+ path: "/workRequests/{workRequestId}/logs",
775
+ method: "GET",
776
+ pathParams: pathParams,
777
+ headerParams: headerParams,
778
+ queryParams: queryParams
779
+ });
780
+ try {
781
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
782
+ const sdkResponse = oci_common_1.composeResponse({
783
+ responseObject: {},
784
+ body: yield response.json(),
785
+ bodyKey: "workRequestLogEntryCollection",
786
+ bodyModel: model.WorkRequestLogEntryCollection,
787
+ type: "model.WorkRequestLogEntryCollection",
788
+ responseHeaders: [
789
+ {
790
+ value: response.headers.get("opc-next-page"),
791
+ key: "opcNextPage",
792
+ dataType: "string"
793
+ },
794
+ {
795
+ value: response.headers.get("opc-request-id"),
796
+ key: "opcRequestId",
797
+ dataType: "string"
798
+ }
799
+ ]
800
+ });
801
+ return sdkResponse;
802
+ }
803
+ catch (err) {
804
+ throw err;
805
+ }
806
+ });
807
+ }
808
+ /**
809
+ * Lists the work requests in a compartment.
810
+ *
811
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
812
+ * @param ListWorkRequestsRequest
813
+ * @return ListWorkRequestsResponse
814
+ * @throws OciError when an error occurs
815
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
816
+ */
817
+ listWorkRequests(listWorkRequestsRequest) {
818
+ return __awaiter(this, void 0, void 0, function* () {
819
+ if (this.logger)
820
+ this.logger.debug("Calling operation LustreFileStorageClient#listWorkRequests.");
821
+ const operationName = "listWorkRequests";
822
+ const apiReferenceLink = "";
823
+ const pathParams = {};
824
+ const queryParams = {
825
+ "compartmentId": listWorkRequestsRequest.compartmentId,
826
+ "workRequestId": listWorkRequestsRequest.workRequestId,
827
+ "status": listWorkRequestsRequest.status,
828
+ "resourceId": listWorkRequestsRequest.resourceId,
829
+ "page": listWorkRequestsRequest.page,
830
+ "limit": listWorkRequestsRequest.limit,
831
+ "sortOrder": listWorkRequestsRequest.sortOrder,
832
+ "sortBy": listWorkRequestsRequest.sortBy
833
+ };
834
+ let headerParams = {
835
+ "Content-Type": common.Constants.APPLICATION_JSON,
836
+ "opc-request-id": listWorkRequestsRequest.opcRequestId
837
+ };
838
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
839
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
840
+ if (this.logger)
841
+ retrier.logger = this.logger;
842
+ const request = yield oci_common_1.composeRequest({
843
+ baseEndpoint: this._endpoint,
844
+ defaultHeaders: this._defaultHeaders,
845
+ path: "/workRequests",
846
+ method: "GET",
847
+ pathParams: pathParams,
848
+ headerParams: headerParams,
849
+ queryParams: queryParams
850
+ });
851
+ try {
852
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
853
+ const sdkResponse = oci_common_1.composeResponse({
854
+ responseObject: {},
855
+ body: yield response.json(),
856
+ bodyKey: "workRequestSummaryCollection",
857
+ bodyModel: model.WorkRequestSummaryCollection,
858
+ type: "model.WorkRequestSummaryCollection",
859
+ responseHeaders: [
860
+ {
861
+ value: response.headers.get("opc-request-id"),
862
+ key: "opcRequestId",
863
+ dataType: "string"
864
+ },
865
+ {
866
+ value: response.headers.get("opc-next-page"),
867
+ key: "opcNextPage",
868
+ dataType: "string"
869
+ }
870
+ ]
871
+ });
872
+ return sdkResponse;
873
+ }
874
+ catch (err) {
875
+ throw err;
876
+ }
877
+ });
878
+ }
879
+ /**
880
+ * Updates a Lustre file system.
881
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
882
+ * @param UpdateLustreFileSystemRequest
883
+ * @return UpdateLustreFileSystemResponse
884
+ * @throws OciError when an error occurs
885
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/lustrefilestorage/UpdateLustreFileSystem.ts.html |here} to see how to use UpdateLustreFileSystem API.
886
+ */
887
+ updateLustreFileSystem(updateLustreFileSystemRequest) {
888
+ return __awaiter(this, void 0, void 0, function* () {
889
+ if (this.logger)
890
+ this.logger.debug("Calling operation LustreFileStorageClient#updateLustreFileSystem.");
891
+ const operationName = "updateLustreFileSystem";
892
+ const apiReferenceLink = "";
893
+ const pathParams = {
894
+ "{lustreFileSystemId}": updateLustreFileSystemRequest.lustreFileSystemId
895
+ };
896
+ const queryParams = {};
897
+ let headerParams = {
898
+ "Content-Type": common.Constants.APPLICATION_JSON,
899
+ "if-match": updateLustreFileSystemRequest.ifMatch,
900
+ "opc-request-id": updateLustreFileSystemRequest.opcRequestId
901
+ };
902
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
903
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateLustreFileSystemRequest.retryConfiguration, specRetryConfiguration);
904
+ if (this.logger)
905
+ retrier.logger = this.logger;
906
+ const request = yield oci_common_1.composeRequest({
907
+ baseEndpoint: this._endpoint,
908
+ defaultHeaders: this._defaultHeaders,
909
+ path: "/lustreFileSystems/{lustreFileSystemId}",
910
+ method: "PUT",
911
+ bodyContent: common.ObjectSerializer.serialize(updateLustreFileSystemRequest.updateLustreFileSystemDetails, "UpdateLustreFileSystemDetails", model.UpdateLustreFileSystemDetails.getJsonObj),
912
+ pathParams: pathParams,
913
+ headerParams: headerParams,
914
+ queryParams: queryParams
915
+ });
916
+ try {
917
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
918
+ const sdkResponse = oci_common_1.composeResponse({
919
+ responseObject: {},
920
+ responseHeaders: [
921
+ {
922
+ value: response.headers.get("opc-work-request-id"),
923
+ key: "opcWorkRequestId",
924
+ dataType: "string"
925
+ },
926
+ {
927
+ value: response.headers.get("opc-request-id"),
928
+ key: "opcRequestId",
929
+ dataType: "string"
930
+ }
931
+ ]
932
+ });
933
+ return sdkResponse;
934
+ }
935
+ catch (err) {
936
+ throw err;
937
+ }
938
+ });
939
+ }
940
+ }
941
+ exports.LustreFileStorageClient = LustreFileStorageClient;
942
+ LustreFileStorageClient.serviceEndpointTemplate = "https://lustre-file-storage.{region}.oci.{secondLevelDomain}";
943
+ LustreFileStorageClient.endpointServiceName = "";
944
+ //# sourceMappingURL=client.js.map