oci-jms 2.19.0 → 2.20.0

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 (150) hide show
  1. package/lib/client.d.ts +85 -19
  2. package/lib/client.js +464 -19
  3. package/lib/client.js.map +1 -1
  4. package/lib/model/action-type.d.ts +1 -0
  5. package/lib/model/action-type.js +1 -0
  6. package/lib/model/action-type.js.map +1 -1
  7. package/lib/model/blocklist-collection.d.ts +26 -0
  8. package/lib/model/blocklist-collection.js +61 -0
  9. package/lib/model/blocklist-collection.js.map +1 -0
  10. package/lib/model/blocklist-entry.d.ts +30 -0
  11. package/lib/model/blocklist-entry.js +29 -0
  12. package/lib/model/blocklist-entry.js.map +1 -0
  13. package/lib/model/blocklist-sort-by.d.ts +22 -0
  14. package/lib/model/blocklist-sort-by.js +33 -0
  15. package/lib/model/blocklist-sort-by.js.map +1 -0
  16. package/lib/model/blocklist-target.d.ts +35 -0
  17. package/lib/model/blocklist-target.js +29 -0
  18. package/lib/model/blocklist-target.js.map +1 -0
  19. package/lib/model/blocklist.d.ts +35 -0
  20. package/lib/model/blocklist.js +53 -0
  21. package/lib/model/blocklist.js.map +1 -0
  22. package/lib/model/create-blocklist-details.d.ts +31 -0
  23. package/lib/model/create-blocklist-details.js +53 -0
  24. package/lib/model/create-blocklist-details.js.map +1 -0
  25. package/lib/model/create-fleet-details.d.ts +3 -0
  26. package/lib/model/create-fleet-details.js +32 -2
  27. package/lib/model/create-fleet-details.js.map +1 -1
  28. package/lib/model/custom-log.d.ts +30 -0
  29. package/lib/model/custom-log.js +29 -0
  30. package/lib/model/custom-log.js.map +1 -0
  31. package/lib/model/existing-installation-site-id.d.ts +30 -0
  32. package/lib/model/existing-installation-site-id.js +29 -0
  33. package/lib/model/existing-installation-site-id.js.map +1 -0
  34. package/lib/model/fleet-summary.d.ts +2 -0
  35. package/lib/model/fleet-summary.js +32 -2
  36. package/lib/model/fleet-summary.js.map +1 -1
  37. package/lib/model/fleet.d.ts +2 -0
  38. package/lib/model/fleet.js +32 -2
  39. package/lib/model/fleet.js.map +1 -1
  40. package/lib/model/index.d.ts +36 -0
  41. package/lib/model/index.js +38 -1
  42. package/lib/model/index.js.map +1 -1
  43. package/lib/model/installation-site-collection.d.ts +26 -0
  44. package/lib/model/installation-site-collection.js +61 -0
  45. package/lib/model/installation-site-collection.js.map +1 -0
  46. package/lib/model/installation-site-sort-by.d.ts +29 -0
  47. package/lib/model/installation-site-sort-by.js +40 -0
  48. package/lib/model/installation-site-sort-by.js.map +1 -0
  49. package/lib/model/installation-site-summary.d.ts +63 -0
  50. package/lib/model/installation-site-summary.js +69 -0
  51. package/lib/model/installation-site-summary.js.map +1 -0
  52. package/lib/model/installation-site.d.ts +67 -0
  53. package/lib/model/installation-site.js +69 -0
  54. package/lib/model/installation-site.js.map +1 -0
  55. package/lib/model/java-runtime-id.d.ts +37 -0
  56. package/lib/model/java-runtime-id.js +29 -0
  57. package/lib/model/java-runtime-id.js.map +1 -0
  58. package/lib/model/jre-usage.d.ts +4 -0
  59. package/lib/model/jre-usage.js.map +1 -1
  60. package/lib/model/lifecycle-state.d.ts +1 -0
  61. package/lib/model/lifecycle-state.js +1 -0
  62. package/lib/model/lifecycle-state.js.map +1 -1
  63. package/lib/model/operation-type.d.ts +2 -0
  64. package/lib/model/operation-type.js +2 -0
  65. package/lib/model/operation-type.js.map +1 -1
  66. package/lib/model/principal.d.ts +29 -0
  67. package/lib/model/principal.js +29 -0
  68. package/lib/model/principal.js.map +1 -0
  69. package/lib/model/remove-fleet-installation-sites-details.d.ts +26 -0
  70. package/lib/model/remove-fleet-installation-sites-details.js +61 -0
  71. package/lib/model/remove-fleet-installation-sites-details.js.map +1 -0
  72. package/lib/model/update-fleet-details.d.ts +3 -0
  73. package/lib/model/update-fleet-details.js +32 -2
  74. package/lib/model/update-fleet-details.js.map +1 -1
  75. package/lib/model/work-item-collection.d.ts +26 -0
  76. package/lib/model/work-item-collection.js +61 -0
  77. package/lib/model/work-item-collection.js.map +1 -0
  78. package/lib/model/work-item-status.d.ts +33 -0
  79. package/lib/model/work-item-status.js +44 -0
  80. package/lib/model/work-item-status.js.map +1 -0
  81. package/lib/model/work-item-summary.d.ts +44 -0
  82. package/lib/model/work-item-summary.js +57 -0
  83. package/lib/model/work-item-summary.js.map +1 -0
  84. package/lib/model/work-request.d.ts +14 -0
  85. package/lib/model/work-request.js +5 -1
  86. package/lib/model/work-request.js.map +1 -1
  87. package/lib/request/cancel-work-request-request.d.ts +35 -0
  88. package/lib/request/cancel-work-request-request.js +15 -0
  89. package/lib/request/cancel-work-request-request.js.map +1 -0
  90. package/lib/request/change-fleet-compartment-request.d.ts +1 -1
  91. package/lib/request/create-blocklist-request.d.ts +40 -0
  92. package/lib/request/create-blocklist-request.js +15 -0
  93. package/lib/request/create-blocklist-request.js.map +1 -0
  94. package/lib/request/create-fleet-request.d.ts +1 -1
  95. package/lib/request/delete-blocklist-request.d.ts +39 -0
  96. package/lib/request/delete-blocklist-request.js +15 -0
  97. package/lib/request/delete-blocklist-request.js.map +1 -0
  98. package/lib/request/delete-fleet-request.d.ts +1 -1
  99. package/lib/request/get-fleet-agent-configuration-request.d.ts +1 -1
  100. package/lib/request/get-fleet-request.d.ts +1 -1
  101. package/lib/request/get-work-request-request.d.ts +1 -1
  102. package/lib/request/index.d.ts +14 -0
  103. package/lib/request/list-blocklists-request.d.ts +54 -0
  104. package/lib/request/list-blocklists-request.js +15 -0
  105. package/lib/request/list-blocklists-request.js.map +1 -0
  106. package/lib/request/list-fleets-request.d.ts +1 -1
  107. package/lib/request/list-installation-sites-request.d.ts +79 -0
  108. package/lib/request/list-installation-sites-request.js +15 -0
  109. package/lib/request/list-installation-sites-request.js.map +1 -0
  110. package/lib/request/list-jre-usage-request.d.ts +1 -1
  111. package/lib/request/list-work-items-request.d.ts +34 -0
  112. package/lib/request/list-work-items-request.js +15 -0
  113. package/lib/request/list-work-items-request.js.map +1 -0
  114. package/lib/request/list-work-request-errors-request.d.ts +1 -1
  115. package/lib/request/list-work-request-logs-request.d.ts +1 -1
  116. package/lib/request/list-work-requests-request.d.ts +5 -1
  117. package/lib/request/remove-fleet-installation-sites-request.d.ts +49 -0
  118. package/lib/request/remove-fleet-installation-sites-request.js +15 -0
  119. package/lib/request/remove-fleet-installation-sites-request.js.map +1 -0
  120. package/lib/request/summarize-application-usage-request.d.ts +1 -1
  121. package/lib/request/summarize-installation-usage-request.d.ts +1 -1
  122. package/lib/request/summarize-jre-usage-request.d.ts +1 -1
  123. package/lib/request/summarize-managed-instance-usage-request.d.ts +1 -1
  124. package/lib/request/summarize-resource-inventory-request.d.ts +1 -1
  125. package/lib/request/update-fleet-agent-configuration-request.d.ts +1 -1
  126. package/lib/request/update-fleet-request.d.ts +1 -1
  127. package/lib/response/cancel-work-request-response.d.ts +20 -0
  128. package/lib/response/cancel-work-request-response.js +15 -0
  129. package/lib/response/cancel-work-request-response.js.map +1 -0
  130. package/lib/response/create-blocklist-response.d.ts +30 -0
  131. package/lib/response/create-blocklist-response.js +15 -0
  132. package/lib/response/create-blocklist-response.js.map +1 -0
  133. package/lib/response/delete-blocklist-response.d.ts +20 -0
  134. package/lib/response/delete-blocklist-response.js +15 -0
  135. package/lib/response/delete-blocklist-response.js.map +1 -0
  136. package/lib/response/get-work-request-response.d.ts +5 -0
  137. package/lib/response/index.d.ts +14 -0
  138. package/lib/response/list-blocklists-response.d.ts +32 -0
  139. package/lib/response/list-blocklists-response.js +15 -0
  140. package/lib/response/list-blocklists-response.js.map +1 -0
  141. package/lib/response/list-installation-sites-response.d.ts +32 -0
  142. package/lib/response/list-installation-sites-response.js +15 -0
  143. package/lib/response/list-installation-sites-response.js.map +1 -0
  144. package/lib/response/list-work-items-response.d.ts +32 -0
  145. package/lib/response/list-work-items-response.js +15 -0
  146. package/lib/response/list-work-items-response.js.map +1 -0
  147. package/lib/response/remove-fleet-installation-sites-response.d.ts +26 -0
  148. package/lib/response/remove-fleet-installation-sites-response.js +15 -0
  149. package/lib/response/remove-fleet-installation-sites-response.js.map +1 -0
  150. package/package.json +3 -3
package/lib/client.js CHANGED
@@ -144,6 +144,59 @@ class JavaManagementServiceClient {
144
144
  }
145
145
  throw Error("Waiters do not exist. Please create waiters.");
146
146
  }
147
+ /**
148
+ * Deletes the work request specified by an identifier.
149
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
150
+ * @param CancelWorkRequestRequest
151
+ * @return CancelWorkRequestResponse
152
+ * @throws OciError when an error occurs
153
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/jms/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
154
+ */
155
+ cancelWorkRequest(cancelWorkRequestRequest) {
156
+ return __awaiter(this, void 0, void 0, function* () {
157
+ if (this.logger)
158
+ this.logger.debug("Calling operation JavaManagementServiceClient#cancelWorkRequest.");
159
+ const pathParams = {
160
+ "{workRequestId}": cancelWorkRequestRequest.workRequestId
161
+ };
162
+ const queryParams = {};
163
+ let headerParams = {
164
+ "Content-Type": common.Constants.APPLICATION_JSON,
165
+ "opc-request-id": cancelWorkRequestRequest.opcRequestId,
166
+ "if-match": cancelWorkRequestRequest.ifMatch
167
+ };
168
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
169
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
170
+ if (this.logger)
171
+ retrier.logger = this.logger;
172
+ const request = yield oci_common_1.composeRequest({
173
+ baseEndpoint: this._endpoint,
174
+ defaultHeaders: this._defaultHeaders,
175
+ path: "/workRequests/{workRequestId}",
176
+ method: "DELETE",
177
+ pathParams: pathParams,
178
+ headerParams: headerParams,
179
+ queryParams: queryParams
180
+ });
181
+ try {
182
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
183
+ const sdkResponse = oci_common_1.composeResponse({
184
+ responseObject: {},
185
+ responseHeaders: [
186
+ {
187
+ value: response.headers.get("opc-request-id"),
188
+ key: "opcRequestId",
189
+ dataType: "string"
190
+ }
191
+ ]
192
+ });
193
+ return sdkResponse;
194
+ }
195
+ catch (err) {
196
+ throw err;
197
+ }
198
+ });
199
+ }
147
200
  /**
148
201
  * Move a specified Fleet into the compartment identified in the POST form. When provided, If-Match is checked against ETag values of the resource.
149
202
  *
@@ -151,7 +204,7 @@ class JavaManagementServiceClient {
151
204
  * @param ChangeFleetCompartmentRequest
152
205
  * @return ChangeFleetCompartmentResponse
153
206
  * @throws OciError when an error occurs
154
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.19.0/jms/ChangeFleetCompartment.ts.html |here} to see how to use ChangeFleetCompartment API.
207
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/jms/ChangeFleetCompartment.ts.html |here} to see how to use ChangeFleetCompartment API.
155
208
  */
156
209
  changeFleetCompartment(changeFleetCompartmentRequest) {
157
210
  return __awaiter(this, void 0, void 0, function* () {
@@ -205,6 +258,70 @@ class JavaManagementServiceClient {
205
258
  }
206
259
  });
207
260
  }
261
+ /**
262
+ * Add a new record to the fleet blocklist.
263
+ *
264
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
265
+ * @param CreateBlocklistRequest
266
+ * @return CreateBlocklistResponse
267
+ * @throws OciError when an error occurs
268
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/jms/CreateBlocklist.ts.html |here} to see how to use CreateBlocklist API.
269
+ */
270
+ createBlocklist(createBlocklistRequest) {
271
+ return __awaiter(this, void 0, void 0, function* () {
272
+ if (this.logger)
273
+ this.logger.debug("Calling operation JavaManagementServiceClient#createBlocklist.");
274
+ const pathParams = {
275
+ "{fleetId}": createBlocklistRequest.fleetId
276
+ };
277
+ const queryParams = {};
278
+ let headerParams = {
279
+ "Content-Type": common.Constants.APPLICATION_JSON,
280
+ "opc-retry-token": createBlocklistRequest.opcRetryToken,
281
+ "opc-request-id": createBlocklistRequest.opcRequestId
282
+ };
283
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
284
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createBlocklistRequest.retryConfiguration, specRetryConfiguration);
285
+ if (this.logger)
286
+ retrier.logger = this.logger;
287
+ const request = yield oci_common_1.composeRequest({
288
+ baseEndpoint: this._endpoint,
289
+ defaultHeaders: this._defaultHeaders,
290
+ path: "/fleets/{fleetId}/blocklists",
291
+ method: "POST",
292
+ bodyContent: common.ObjectSerializer.serialize(createBlocklistRequest.createBlocklistDetails, "CreateBlocklistDetails", model.CreateBlocklistDetails.getJsonObj),
293
+ pathParams: pathParams,
294
+ headerParams: headerParams,
295
+ queryParams: queryParams
296
+ });
297
+ try {
298
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
299
+ const sdkResponse = oci_common_1.composeResponse({
300
+ responseObject: {},
301
+ body: yield response.json(),
302
+ bodyKey: "blocklist",
303
+ bodyModel: model.Blocklist,
304
+ type: "model.Blocklist",
305
+ responseHeaders: [
306
+ {
307
+ value: response.headers.get("opc-request-id"),
308
+ key: "opcRequestId",
309
+ dataType: "string"
310
+ },
311
+ {
312
+ value: response.headers.get("etag"),
313
+ key: "etag",
314
+ dataType: "string"
315
+ }
316
+ ]
317
+ });
318
+ return sdkResponse;
319
+ }
320
+ catch (err) {
321
+ throw err;
322
+ }
323
+ });
324
+ }
208
325
  /**
209
326
  * Create a new Fleet using the information provided.
210
327
  *
@@ -212,7 +329,7 @@ class JavaManagementServiceClient {
212
329
  * @param CreateFleetRequest
213
330
  * @return CreateFleetResponse
214
331
  * @throws OciError when an error occurs
215
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.19.0/jms/CreateFleet.ts.html |here} to see how to use CreateFleet API.
332
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/jms/CreateFleet.ts.html |here} to see how to use CreateFleet API.
216
333
  */
217
334
  createFleet(createFleetRequest) {
218
335
  return __awaiter(this, void 0, void 0, function* () {
@@ -263,13 +380,67 @@ class JavaManagementServiceClient {
263
380
  }
264
381
  });
265
382
  }
383
+ /**
384
+ * Deletes the blocklist record specified by an identifier.
385
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
386
+ * @param DeleteBlocklistRequest
387
+ * @return DeleteBlocklistResponse
388
+ * @throws OciError when an error occurs
389
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/jms/DeleteBlocklist.ts.html |here} to see how to use DeleteBlocklist API.
390
+ */
391
+ deleteBlocklist(deleteBlocklistRequest) {
392
+ return __awaiter(this, void 0, void 0, function* () {
393
+ if (this.logger)
394
+ this.logger.debug("Calling operation JavaManagementServiceClient#deleteBlocklist.");
395
+ const pathParams = {
396
+ "{fleetId}": deleteBlocklistRequest.fleetId,
397
+ "{blocklistKey}": deleteBlocklistRequest.blocklistKey
398
+ };
399
+ const queryParams = {};
400
+ let headerParams = {
401
+ "Content-Type": common.Constants.APPLICATION_JSON,
402
+ "if-match": deleteBlocklistRequest.ifMatch,
403
+ "opc-request-id": deleteBlocklistRequest.opcRequestId
404
+ };
405
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
406
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteBlocklistRequest.retryConfiguration, specRetryConfiguration);
407
+ if (this.logger)
408
+ retrier.logger = this.logger;
409
+ const request = yield oci_common_1.composeRequest({
410
+ baseEndpoint: this._endpoint,
411
+ defaultHeaders: this._defaultHeaders,
412
+ path: "/fleets/{fleetId}/blocklists/{blocklistKey}",
413
+ method: "DELETE",
414
+ pathParams: pathParams,
415
+ headerParams: headerParams,
416
+ queryParams: queryParams
417
+ });
418
+ try {
419
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
420
+ const sdkResponse = oci_common_1.composeResponse({
421
+ responseObject: {},
422
+ responseHeaders: [
423
+ {
424
+ value: response.headers.get("opc-request-id"),
425
+ key: "opcRequestId",
426
+ dataType: "string"
427
+ }
428
+ ]
429
+ });
430
+ return sdkResponse;
431
+ }
432
+ catch (err) {
433
+ throw err;
434
+ }
435
+ });
436
+ }
266
437
  /**
267
438
  * Deletes the Fleet specified by an identifier.
268
439
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
269
440
  * @param DeleteFleetRequest
270
441
  * @return DeleteFleetResponse
271
442
  * @throws OciError when an error occurs
272
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.19.0/jms/DeleteFleet.ts.html |here} to see how to use DeleteFleet API.
443
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/jms/DeleteFleet.ts.html |here} to see how to use DeleteFleet API.
273
444
  */
274
445
  deleteFleet(deleteFleetRequest) {
275
446
  return __awaiter(this, void 0, void 0, function* () {
@@ -327,7 +498,7 @@ class JavaManagementServiceClient {
327
498
  * @param GetFleetRequest
328
499
  * @return GetFleetResponse
329
500
  * @throws OciError when an error occurs
330
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.19.0/jms/GetFleet.ts.html |here} to see how to use GetFleet API.
501
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/jms/GetFleet.ts.html |here} to see how to use GetFleet API.
331
502
  */
332
503
  getFleet(getFleetRequest) {
333
504
  return __awaiter(this, void 0, void 0, function* () {
@@ -388,7 +559,7 @@ class JavaManagementServiceClient {
388
559
  * @param GetFleetAgentConfigurationRequest
389
560
  * @return GetFleetAgentConfigurationResponse
390
561
  * @throws OciError when an error occurs
391
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.19.0/jms/GetFleetAgentConfiguration.ts.html |here} to see how to use GetFleetAgentConfiguration API.
562
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/jms/GetFleetAgentConfiguration.ts.html |here} to see how to use GetFleetAgentConfiguration API.
392
563
  */
393
564
  getFleetAgentConfiguration(getFleetAgentConfigurationRequest) {
394
565
  return __awaiter(this, void 0, void 0, function* () {
@@ -449,7 +620,7 @@ class JavaManagementServiceClient {
449
620
  * @param GetWorkRequestRequest
450
621
  * @return GetWorkRequestResponse
451
622
  * @throws OciError when an error occurs
452
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.19.0/jms/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
623
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/jms/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
453
624
  */
454
625
  getWorkRequest(getWorkRequestRequest) {
455
626
  return __awaiter(this, void 0, void 0, function* () {
@@ -494,6 +665,80 @@ class JavaManagementServiceClient {
494
665
  value: response.headers.get("retry-after"),
495
666
  key: "retryAfter",
496
667
  dataType: "number"
668
+ },
669
+ {
670
+ value: response.headers.get("etag"),
671
+ key: "etag",
672
+ dataType: "string"
673
+ }
674
+ ]
675
+ });
676
+ return sdkResponse;
677
+ }
678
+ catch (err) {
679
+ throw err;
680
+ }
681
+ });
682
+ }
683
+ /**
684
+ * Returns a list of blocklist entities contained by a fleet.
685
+ *
686
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
687
+ * @param ListBlocklistsRequest
688
+ * @return ListBlocklistsResponse
689
+ * @throws OciError when an error occurs
690
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/jms/ListBlocklists.ts.html |here} to see how to use ListBlocklists API.
691
+ */
692
+ listBlocklists(listBlocklistsRequest) {
693
+ return __awaiter(this, void 0, void 0, function* () {
694
+ if (this.logger)
695
+ this.logger.debug("Calling operation JavaManagementServiceClient#listBlocklists.");
696
+ const pathParams = {
697
+ "{fleetId}": listBlocklistsRequest.fleetId
698
+ };
699
+ const queryParams = {
700
+ "operation": listBlocklistsRequest.operation,
701
+ "managedInstanceId": listBlocklistsRequest.managedInstanceId,
702
+ "limit": listBlocklistsRequest.limit,
703
+ "page": listBlocklistsRequest.page,
704
+ "sortOrder": listBlocklistsRequest.sortOrder,
705
+ "sortBy": listBlocklistsRequest.sortBy
706
+ };
707
+ let headerParams = {
708
+ "Content-Type": common.Constants.APPLICATION_JSON,
709
+ "opc-request-id": listBlocklistsRequest.opcRequestId
710
+ };
711
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
712
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listBlocklistsRequest.retryConfiguration, specRetryConfiguration);
713
+ if (this.logger)
714
+ retrier.logger = this.logger;
715
+ const request = yield oci_common_1.composeRequest({
716
+ baseEndpoint: this._endpoint,
717
+ defaultHeaders: this._defaultHeaders,
718
+ path: "/fleets/{fleetId}/blocklists",
719
+ method: "GET",
720
+ pathParams: pathParams,
721
+ headerParams: headerParams,
722
+ queryParams: queryParams
723
+ });
724
+ try {
725
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
726
+ const sdkResponse = oci_common_1.composeResponse({
727
+ responseObject: {},
728
+ body: yield response.json(),
729
+ bodyKey: "blocklistCollection",
730
+ bodyModel: model.BlocklistCollection,
731
+ type: "model.BlocklistCollection",
732
+ responseHeaders: [
733
+ {
734
+ value: response.headers.get("opc-request-id"),
735
+ key: "opcRequestId",
736
+ dataType: "string"
737
+ },
738
+ {
739
+ value: response.headers.get("opc-next-page"),
740
+ key: "opcNextPage",
741
+ dataType: "string"
497
742
  }
498
743
  ]
499
744
  });
@@ -512,7 +757,7 @@ class JavaManagementServiceClient {
512
757
  * @param ListFleetsRequest
513
758
  * @return ListFleetsResponse
514
759
  * @throws OciError when an error occurs
515
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.19.0/jms/ListFleets.ts.html |here} to see how to use ListFleets API.
760
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/jms/ListFleets.ts.html |here} to see how to use ListFleets API.
516
761
  */
517
762
  listFleets(listFleetsRequest) {
518
763
  return __awaiter(this, void 0, void 0, function* () {
@@ -574,13 +819,87 @@ class JavaManagementServiceClient {
574
819
  }
575
820
  });
576
821
  }
822
+ /**
823
+ * List Java installation sites in a Fleet filtered by query parameters.
824
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
825
+ * @param ListInstallationSitesRequest
826
+ * @return ListInstallationSitesResponse
827
+ * @throws OciError when an error occurs
828
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/jms/ListInstallationSites.ts.html |here} to see how to use ListInstallationSites API.
829
+ */
830
+ listInstallationSites(listInstallationSitesRequest) {
831
+ return __awaiter(this, void 0, void 0, function* () {
832
+ if (this.logger)
833
+ this.logger.debug("Calling operation JavaManagementServiceClient#listInstallationSites.");
834
+ const pathParams = {
835
+ "{fleetId}": listInstallationSitesRequest.fleetId
836
+ };
837
+ const queryParams = {
838
+ "jreVendor": listInstallationSitesRequest.jreVendor,
839
+ "jreDistribution": listInstallationSitesRequest.jreDistribution,
840
+ "jreVersion": listInstallationSitesRequest.jreVersion,
841
+ "installationPath": listInstallationSitesRequest.installationPath,
842
+ "applicationId": listInstallationSitesRequest.applicationId,
843
+ "managedInstanceId": listInstallationSitesRequest.managedInstanceId,
844
+ "limit": listInstallationSitesRequest.limit,
845
+ "page": listInstallationSitesRequest.page,
846
+ "sortOrder": listInstallationSitesRequest.sortOrder,
847
+ "sortBy": listInstallationSitesRequest.sortBy,
848
+ "osFamily": listInstallationSitesRequest.osFamily,
849
+ "jreSecurityStatus": listInstallationSitesRequest.jreSecurityStatus
850
+ };
851
+ let headerParams = {
852
+ "Content-Type": common.Constants.APPLICATION_JSON,
853
+ "opc-request-id": listInstallationSitesRequest.opcRequestId
854
+ };
855
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
856
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listInstallationSitesRequest.retryConfiguration, specRetryConfiguration);
857
+ if (this.logger)
858
+ retrier.logger = this.logger;
859
+ const request = yield oci_common_1.composeRequest({
860
+ baseEndpoint: this._endpoint,
861
+ defaultHeaders: this._defaultHeaders,
862
+ path: "/fleets/{fleetId}/installationSites",
863
+ method: "GET",
864
+ pathParams: pathParams,
865
+ headerParams: headerParams,
866
+ queryParams: queryParams
867
+ });
868
+ try {
869
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
870
+ const sdkResponse = oci_common_1.composeResponse({
871
+ responseObject: {},
872
+ body: yield response.json(),
873
+ bodyKey: "installationSiteCollection",
874
+ bodyModel: model.InstallationSiteCollection,
875
+ type: "model.InstallationSiteCollection",
876
+ responseHeaders: [
877
+ {
878
+ value: response.headers.get("opc-request-id"),
879
+ key: "opcRequestId",
880
+ dataType: "string"
881
+ },
882
+ {
883
+ value: response.headers.get("opc-next-page"),
884
+ key: "opcNextPage",
885
+ dataType: "string"
886
+ }
887
+ ]
888
+ });
889
+ return sdkResponse;
890
+ }
891
+ catch (err) {
892
+ throw err;
893
+ }
894
+ });
895
+ }
577
896
  /**
578
897
  * List Java Runtime usage in a specified host filtered by query parameters.
579
898
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
580
899
  * @param ListJreUsageRequest
581
900
  * @return ListJreUsageResponse
582
901
  * @throws OciError when an error occurs
583
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.19.0/jms/ListJreUsage.ts.html |here} to see how to use ListJreUsage API.
902
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/jms/ListJreUsage.ts.html |here} to see how to use ListJreUsage API.
584
903
  */
585
904
  listJreUsage(listJreUsageRequest) {
586
905
  return __awaiter(this, void 0, void 0, function* () {
@@ -644,6 +963,71 @@ class JavaManagementServiceClient {
644
963
  }
645
964
  });
646
965
  }
966
+ /**
967
+ * Retrieve a (paginated) list of work items for a specified work request.
968
+ *
969
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
970
+ * @param ListWorkItemsRequest
971
+ * @return ListWorkItemsResponse
972
+ * @throws OciError when an error occurs
973
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/jms/ListWorkItems.ts.html |here} to see how to use ListWorkItems API.
974
+ */
975
+ listWorkItems(listWorkItemsRequest) {
976
+ return __awaiter(this, void 0, void 0, function* () {
977
+ if (this.logger)
978
+ this.logger.debug("Calling operation JavaManagementServiceClient#listWorkItems.");
979
+ const pathParams = {
980
+ "{workRequestId}": listWorkItemsRequest.workRequestId
981
+ };
982
+ const queryParams = {
983
+ "page": listWorkItemsRequest.page,
984
+ "limit": listWorkItemsRequest.limit
985
+ };
986
+ let headerParams = {
987
+ "Content-Type": common.Constants.APPLICATION_JSON,
988
+ "opc-request-id": listWorkItemsRequest.opcRequestId
989
+ };
990
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
991
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkItemsRequest.retryConfiguration, specRetryConfiguration);
992
+ if (this.logger)
993
+ retrier.logger = this.logger;
994
+ const request = yield oci_common_1.composeRequest({
995
+ baseEndpoint: this._endpoint,
996
+ defaultHeaders: this._defaultHeaders,
997
+ path: "/workRequests/{workRequestId}/workItems",
998
+ method: "GET",
999
+ pathParams: pathParams,
1000
+ headerParams: headerParams,
1001
+ queryParams: queryParams
1002
+ });
1003
+ try {
1004
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1005
+ const sdkResponse = oci_common_1.composeResponse({
1006
+ responseObject: {},
1007
+ body: yield response.json(),
1008
+ bodyKey: "workItemCollection",
1009
+ bodyModel: model.WorkItemCollection,
1010
+ type: "model.WorkItemCollection",
1011
+ responseHeaders: [
1012
+ {
1013
+ value: response.headers.get("opc-next-page"),
1014
+ key: "opcNextPage",
1015
+ dataType: "string"
1016
+ },
1017
+ {
1018
+ value: response.headers.get("opc-request-id"),
1019
+ key: "opcRequestId",
1020
+ dataType: "string"
1021
+ }
1022
+ ]
1023
+ });
1024
+ return sdkResponse;
1025
+ }
1026
+ catch (err) {
1027
+ throw err;
1028
+ }
1029
+ });
1030
+ }
647
1031
  /**
648
1032
  * Retrieve a (paginated) list of errors for a specified work request.
649
1033
  *
@@ -651,7 +1035,7 @@ class JavaManagementServiceClient {
651
1035
  * @param ListWorkRequestErrorsRequest
652
1036
  * @return ListWorkRequestErrorsResponse
653
1037
  * @throws OciError when an error occurs
654
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.19.0/jms/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
1038
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/jms/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
655
1039
  */
656
1040
  listWorkRequestErrors(listWorkRequestErrorsRequest) {
657
1041
  return __awaiter(this, void 0, void 0, function* () {
@@ -716,7 +1100,7 @@ class JavaManagementServiceClient {
716
1100
  * @param ListWorkRequestLogsRequest
717
1101
  * @return ListWorkRequestLogsResponse
718
1102
  * @throws OciError when an error occurs
719
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.19.0/jms/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
1103
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/jms/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
720
1104
  */
721
1105
  listWorkRequestLogs(listWorkRequestLogsRequest) {
722
1106
  return __awaiter(this, void 0, void 0, function* () {
@@ -775,13 +1159,13 @@ class JavaManagementServiceClient {
775
1159
  });
776
1160
  }
777
1161
  /**
778
- * List the work requests in a compartment. The query parameter `compartmentId` is required unless the query parameter `id` is specified.
1162
+ * List the work requests in a compartment. The query parameter `compartmentId` is required unless the query parameter `id` or `fleetId` is specified.
779
1163
  *
780
1164
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
781
1165
  * @param ListWorkRequestsRequest
782
1166
  * @return ListWorkRequestsResponse
783
1167
  * @throws OciError when an error occurs
784
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.19.0/jms/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
1168
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/jms/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
785
1169
  */
786
1170
  listWorkRequests(listWorkRequestsRequest) {
787
1171
  return __awaiter(this, void 0, void 0, function* () {
@@ -791,6 +1175,7 @@ class JavaManagementServiceClient {
791
1175
  const queryParams = {
792
1176
  "compartmentId": listWorkRequestsRequest.compartmentId,
793
1177
  "id": listWorkRequestsRequest.id,
1178
+ "fleetId": listWorkRequestsRequest.fleetId,
794
1179
  "page": listWorkRequestsRequest.page,
795
1180
  "limit": listWorkRequestsRequest.limit
796
1181
  };
@@ -839,13 +1224,73 @@ class JavaManagementServiceClient {
839
1224
  }
840
1225
  });
841
1226
  }
1227
+ /**
1228
+ * Remove Java installation sites in a Fleet.
1229
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1230
+ * @param RemoveFleetInstallationSitesRequest
1231
+ * @return RemoveFleetInstallationSitesResponse
1232
+ * @throws OciError when an error occurs
1233
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/jms/RemoveFleetInstallationSites.ts.html |here} to see how to use RemoveFleetInstallationSites API.
1234
+ */
1235
+ removeFleetInstallationSites(removeFleetInstallationSitesRequest) {
1236
+ return __awaiter(this, void 0, void 0, function* () {
1237
+ if (this.logger)
1238
+ this.logger.debug("Calling operation JavaManagementServiceClient#removeFleetInstallationSites.");
1239
+ const pathParams = {
1240
+ "{fleetId}": removeFleetInstallationSitesRequest.fleetId
1241
+ };
1242
+ const queryParams = {};
1243
+ let headerParams = {
1244
+ "Content-Type": common.Constants.APPLICATION_JSON,
1245
+ "if-match": removeFleetInstallationSitesRequest.ifMatch,
1246
+ "opc-retry-token": removeFleetInstallationSitesRequest.opcRetryToken,
1247
+ "opc-request-id": removeFleetInstallationSitesRequest.opcRequestId
1248
+ };
1249
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1250
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, removeFleetInstallationSitesRequest.retryConfiguration, specRetryConfiguration);
1251
+ if (this.logger)
1252
+ retrier.logger = this.logger;
1253
+ const request = yield oci_common_1.composeRequest({
1254
+ baseEndpoint: this._endpoint,
1255
+ defaultHeaders: this._defaultHeaders,
1256
+ path: "/fleets/{fleetId}/actions/removeInstallationSites",
1257
+ method: "POST",
1258
+ bodyContent: common.ObjectSerializer.serialize(removeFleetInstallationSitesRequest.removeFleetInstallationSitesDetails, "RemoveFleetInstallationSitesDetails", model.RemoveFleetInstallationSitesDetails.getJsonObj),
1259
+ pathParams: pathParams,
1260
+ headerParams: headerParams,
1261
+ queryParams: queryParams
1262
+ });
1263
+ try {
1264
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1265
+ const sdkResponse = oci_common_1.composeResponse({
1266
+ responseObject: {},
1267
+ responseHeaders: [
1268
+ {
1269
+ value: response.headers.get("opc-work-request-id"),
1270
+ key: "opcWorkRequestId",
1271
+ dataType: "string"
1272
+ },
1273
+ {
1274
+ value: response.headers.get("opc-request-id"),
1275
+ key: "opcRequestId",
1276
+ dataType: "string"
1277
+ }
1278
+ ]
1279
+ });
1280
+ return sdkResponse;
1281
+ }
1282
+ catch (err) {
1283
+ throw err;
1284
+ }
1285
+ });
1286
+ }
842
1287
  /**
843
1288
  * List application usage in a Fleet filtered by query parameters.
844
1289
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
845
1290
  * @param SummarizeApplicationUsageRequest
846
1291
  * @return SummarizeApplicationUsageResponse
847
1292
  * @throws OciError when an error occurs
848
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.19.0/jms/SummarizeApplicationUsage.ts.html |here} to see how to use SummarizeApplicationUsage API.
1293
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/jms/SummarizeApplicationUsage.ts.html |here} to see how to use SummarizeApplicationUsage API.
849
1294
  */
850
1295
  summarizeApplicationUsage(summarizeApplicationUsageRequest) {
851
1296
  return __awaiter(this, void 0, void 0, function* () {
@@ -923,7 +1368,7 @@ class JavaManagementServiceClient {
923
1368
  * @param SummarizeInstallationUsageRequest
924
1369
  * @return SummarizeInstallationUsageResponse
925
1370
  * @throws OciError when an error occurs
926
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.19.0/jms/SummarizeInstallationUsage.ts.html |here} to see how to use SummarizeInstallationUsage API.
1371
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/jms/SummarizeInstallationUsage.ts.html |here} to see how to use SummarizeInstallationUsage API.
927
1372
  */
928
1373
  summarizeInstallationUsage(summarizeInstallationUsageRequest) {
929
1374
  return __awaiter(this, void 0, void 0, function* () {
@@ -999,7 +1444,7 @@ class JavaManagementServiceClient {
999
1444
  * @param SummarizeJreUsageRequest
1000
1445
  * @return SummarizeJreUsageResponse
1001
1446
  * @throws OciError when an error occurs
1002
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.19.0/jms/SummarizeJreUsage.ts.html |here} to see how to use SummarizeJreUsage API.
1447
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/jms/SummarizeJreUsage.ts.html |here} to see how to use SummarizeJreUsage API.
1003
1448
  */
1004
1449
  summarizeJreUsage(summarizeJreUsageRequest) {
1005
1450
  return __awaiter(this, void 0, void 0, function* () {
@@ -1075,7 +1520,7 @@ class JavaManagementServiceClient {
1075
1520
  * @param SummarizeManagedInstanceUsageRequest
1076
1521
  * @return SummarizeManagedInstanceUsageResponse
1077
1522
  * @throws OciError when an error occurs
1078
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.19.0/jms/SummarizeManagedInstanceUsage.ts.html |here} to see how to use SummarizeManagedInstanceUsage API.
1523
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/jms/SummarizeManagedInstanceUsage.ts.html |here} to see how to use SummarizeManagedInstanceUsage API.
1079
1524
  */
1080
1525
  summarizeManagedInstanceUsage(summarizeManagedInstanceUsageRequest) {
1081
1526
  return __awaiter(this, void 0, void 0, function* () {
@@ -1153,7 +1598,7 @@ class JavaManagementServiceClient {
1153
1598
  * @param SummarizeResourceInventoryRequest
1154
1599
  * @return SummarizeResourceInventoryResponse
1155
1600
  * @throws OciError when an error occurs
1156
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.19.0/jms/SummarizeResourceInventory.ts.html |here} to see how to use SummarizeResourceInventory API.
1601
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/jms/SummarizeResourceInventory.ts.html |here} to see how to use SummarizeResourceInventory API.
1157
1602
  */
1158
1603
  summarizeResourceInventory(summarizeResourceInventoryRequest) {
1159
1604
  return __awaiter(this, void 0, void 0, function* () {
@@ -1211,7 +1656,7 @@ class JavaManagementServiceClient {
1211
1656
  * @param UpdateFleetRequest
1212
1657
  * @return UpdateFleetResponse
1213
1658
  * @throws OciError when an error occurs
1214
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.19.0/jms/UpdateFleet.ts.html |here} to see how to use UpdateFleet API.
1659
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/jms/UpdateFleet.ts.html |here} to see how to use UpdateFleet API.
1215
1660
  */
1216
1661
  updateFleet(updateFleetRequest) {
1217
1662
  return __awaiter(this, void 0, void 0, function* () {
@@ -1270,7 +1715,7 @@ class JavaManagementServiceClient {
1270
1715
  * @param UpdateFleetAgentConfigurationRequest
1271
1716
  * @return UpdateFleetAgentConfigurationResponse
1272
1717
  * @throws OciError when an error occurs
1273
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.19.0/jms/UpdateFleetAgentConfiguration.ts.html |here} to see how to use UpdateFleetAgentConfiguration API.
1718
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.20.0/jms/UpdateFleetAgentConfiguration.ts.html |here} to see how to use UpdateFleetAgentConfiguration API.
1274
1719
  */
1275
1720
  updateFleetAgentConfiguration(updateFleetAgentConfigurationRequest) {
1276
1721
  return __awaiter(this, void 0, void 0, function* () {