oci-streaming 2.131.1 → 2.132.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 (85) hide show
  1. package/lib/client.d.ts +39 -0
  2. package/lib/client.js +341 -0
  3. package/lib/client.js.map +1 -1
  4. package/lib/model/action-type.d.ts +32 -0
  5. package/lib/model/action-type.js +43 -0
  6. package/lib/model/action-type.js.map +1 -0
  7. package/lib/model/index.d.ts +22 -0
  8. package/lib/model/index.js +23 -1
  9. package/lib/model/index.js.map +1 -1
  10. package/lib/model/operation-status.d.ts +34 -0
  11. package/lib/model/operation-status.js +45 -0
  12. package/lib/model/operation-status.js.map +1 -0
  13. package/lib/model/operation-type.d.ts +35 -0
  14. package/lib/model/operation-type.js +46 -0
  15. package/lib/model/operation-type.js.map +1 -0
  16. package/lib/model/update-stream-pool-details.d.ts +6 -0
  17. package/lib/model/update-stream-pool-details.js.map +1 -1
  18. package/lib/model/work-request-error-collection.d.ts +26 -0
  19. package/lib/model/work-request-error-collection.js +61 -0
  20. package/lib/model/work-request-error-collection.js.map +1 -0
  21. package/lib/model/work-request-error.d.ts +35 -0
  22. package/lib/model/work-request-error.js +29 -0
  23. package/lib/model/work-request-error.js.map +1 -0
  24. package/lib/model/work-request-log-entry-collection.d.ts +26 -0
  25. package/lib/model/work-request-log-entry-collection.js +61 -0
  26. package/lib/model/work-request-log-entry-collection.js.map +1 -0
  27. package/lib/model/work-request-log-entry.d.ts +29 -0
  28. package/lib/model/work-request-log-entry.js +29 -0
  29. package/lib/model/work-request-log-entry.js.map +1 -0
  30. package/lib/model/work-request-resource.d.ts +42 -0
  31. package/lib/model/work-request-resource.js +29 -0
  32. package/lib/model/work-request-resource.js.map +1 -0
  33. package/lib/model/work-request-summary-collection.d.ts +26 -0
  34. package/lib/model/work-request-summary-collection.js +61 -0
  35. package/lib/model/work-request-summary-collection.js.map +1 -0
  36. package/lib/model/work-request-summary.d.ts +69 -0
  37. package/lib/model/work-request-summary.js +61 -0
  38. package/lib/model/work-request-summary.js.map +1 -0
  39. package/lib/model/work-request.d.ts +69 -0
  40. package/lib/model/work-request.js +61 -0
  41. package/lib/model/work-request.js.map +1 -0
  42. package/lib/request/get-work-request-request.d.ts +28 -0
  43. package/lib/request/get-work-request-request.js +15 -0
  44. package/lib/request/get-work-request-request.js.map +1 -0
  45. package/lib/request/index.d.ts +8 -0
  46. package/lib/request/index.js +7 -1
  47. package/lib/request/index.js.map +1 -1
  48. package/lib/request/list-work-request-errors-request.d.ts +55 -0
  49. package/lib/request/list-work-request-errors-request.js +28 -0
  50. package/lib/request/list-work-request-errors-request.js.map +1 -0
  51. package/lib/request/list-work-request-logs-request.d.ts +55 -0
  52. package/lib/request/list-work-request-logs-request.js +28 -0
  53. package/lib/request/list-work-request-logs-request.js.map +1 -0
  54. package/lib/request/list-work-requests-request.d.ts +63 -0
  55. package/lib/request/list-work-requests-request.js +28 -0
  56. package/lib/request/list-work-requests-request.js.map +1 -0
  57. package/lib/response/change-connect-harness-compartment-response.d.ts +6 -0
  58. package/lib/response/change-stream-compartment-response.d.ts +6 -0
  59. package/lib/response/change-stream-pool-compartment-response.d.ts +6 -0
  60. package/lib/response/create-connect-harness-response.d.ts +6 -0
  61. package/lib/response/create-stream-pool-response.d.ts +6 -0
  62. package/lib/response/create-stream-response.d.ts +6 -0
  63. package/lib/response/delete-connect-harness-response.d.ts +6 -0
  64. package/lib/response/delete-stream-pool-response.d.ts +6 -0
  65. package/lib/response/delete-stream-response.d.ts +6 -0
  66. package/lib/response/get-work-request-response.d.ts +25 -0
  67. package/lib/response/get-work-request-response.js +15 -0
  68. package/lib/response/get-work-request-response.js.map +1 -0
  69. package/lib/response/index.d.ts +8 -0
  70. package/lib/response/list-work-request-errors-response.d.ts +33 -0
  71. package/lib/response/list-work-request-errors-response.js +15 -0
  72. package/lib/response/list-work-request-errors-response.js.map +1 -0
  73. package/lib/response/list-work-request-logs-response.d.ts +33 -0
  74. package/lib/response/list-work-request-logs-response.js +15 -0
  75. package/lib/response/list-work-request-logs-response.js.map +1 -0
  76. package/lib/response/list-work-requests-response.d.ts +33 -0
  77. package/lib/response/list-work-requests-response.js +15 -0
  78. package/lib/response/list-work-requests-response.js.map +1 -0
  79. package/lib/response/update-connect-harness-response.d.ts +6 -0
  80. package/lib/response/update-stream-pool-response.d.ts +6 -0
  81. package/lib/response/update-stream-response.d.ts +6 -0
  82. package/lib/streamadmin-waiter.d.ts +7 -0
  83. package/lib/streamadmin-waiter.js +11 -0
  84. package/lib/streamadmin-waiter.js.map +1 -1
  85. package/package.json +3 -3
package/lib/client.d.ts CHANGED
@@ -366,6 +366,15 @@ export declare class StreamAdminClient {
366
366
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/streaming/GetStreamPool.ts.html |here} to see how to use GetStreamPool API.
367
367
  */
368
368
  getStreamPool(getStreamPoolRequest: requests.GetStreamPoolRequest): Promise<responses.GetStreamPoolResponse>;
369
+ /**
370
+ * Gets the details of a work request.
371
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
372
+ * @param GetWorkRequestRequest
373
+ * @return GetWorkRequestResponse
374
+ * @throws OciError when an error occurs
375
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/streaming/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
376
+ */
377
+ getWorkRequest(getWorkRequestRequest: requests.GetWorkRequestRequest): Promise<responses.GetWorkRequestResponse>;
369
378
  /**
370
379
  * Lists the connectharness.
371
380
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
@@ -493,6 +502,36 @@ export declare class StreamAdminClient {
493
502
  * @param request a request which can be sent to the service operation
494
503
  */
495
504
  listStreamsResponseIterator(request: requests.ListStreamsRequest): AsyncIterableIterator<responses.ListStreamsResponse>;
505
+ /**
506
+ * Lists the errors for a work request.
507
+ *
508
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
509
+ * @param ListWorkRequestErrorsRequest
510
+ * @return ListWorkRequestErrorsResponse
511
+ * @throws OciError when an error occurs
512
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/streaming/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
513
+ */
514
+ listWorkRequestErrors(listWorkRequestErrorsRequest: requests.ListWorkRequestErrorsRequest): Promise<responses.ListWorkRequestErrorsResponse>;
515
+ /**
516
+ * Lists the logs for a work request.
517
+ *
518
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
519
+ * @param ListWorkRequestLogsRequest
520
+ * @return ListWorkRequestLogsResponse
521
+ * @throws OciError when an error occurs
522
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/streaming/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
523
+ */
524
+ listWorkRequestLogs(listWorkRequestLogsRequest: requests.ListWorkRequestLogsRequest): Promise<responses.ListWorkRequestLogsResponse>;
525
+ /**
526
+ * Lists the work requests in a compartment.
527
+ *
528
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
529
+ * @param ListWorkRequestsRequest
530
+ * @return ListWorkRequestsResponse
531
+ * @throws OciError when an error occurs
532
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/streaming/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
533
+ */
534
+ listWorkRequests(listWorkRequestsRequest: requests.ListWorkRequestsRequest): Promise<responses.ListWorkRequestsResponse>;
496
535
  /**
497
536
  * Updates the tags applied to the connect harness.
498
537
  *
package/lib/client.js CHANGED
@@ -853,6 +853,11 @@ class StreamAdminClient {
853
853
  value: response.headers.get("opc-request-id"),
854
854
  key: "opcRequestId",
855
855
  dataType: "string"
856
+ },
857
+ {
858
+ value: response.headers.get("opc-work-request-id"),
859
+ key: "opcWorkRequestId",
860
+ dataType: "string"
856
861
  }
857
862
  ]
858
863
  });
@@ -912,6 +917,11 @@ class StreamAdminClient {
912
917
  value: response.headers.get("opc-request-id"),
913
918
  key: "opcRequestId",
914
919
  dataType: "string"
920
+ },
921
+ {
922
+ value: response.headers.get("opc-work-request-id"),
923
+ key: "opcWorkRequestId",
924
+ dataType: "string"
915
925
  }
916
926
  ]
917
927
  });
@@ -968,6 +978,11 @@ class StreamAdminClient {
968
978
  value: response.headers.get("opc-request-id"),
969
979
  key: "opcRequestId",
970
980
  dataType: "string"
981
+ },
982
+ {
983
+ value: response.headers.get("opc-work-request-id"),
984
+ key: "opcWorkRequestId",
985
+ dataType: "string"
971
986
  }
972
987
  ]
973
988
  });
@@ -1029,6 +1044,11 @@ class StreamAdminClient {
1029
1044
  key: "opcRequestId",
1030
1045
  dataType: "string"
1031
1046
  },
1047
+ {
1048
+ value: response.headers.get("opc-work-request-id"),
1049
+ key: "opcWorkRequestId",
1050
+ dataType: "string"
1051
+ },
1032
1052
  {
1033
1053
  value: response.headers.get("etag"),
1034
1054
  key: "etag",
@@ -1096,6 +1116,11 @@ class StreamAdminClient {
1096
1116
  key: "opcRequestId",
1097
1117
  dataType: "string"
1098
1118
  },
1119
+ {
1120
+ value: response.headers.get("opc-work-request-id"),
1121
+ key: "opcWorkRequestId",
1122
+ dataType: "string"
1123
+ },
1099
1124
  {
1100
1125
  value: response.headers.get("etag"),
1101
1126
  key: "etag",
@@ -1162,6 +1187,11 @@ class StreamAdminClient {
1162
1187
  key: "opcRequestId",
1163
1188
  dataType: "string"
1164
1189
  },
1190
+ {
1191
+ value: response.headers.get("opc-work-request-id"),
1192
+ key: "opcWorkRequestId",
1193
+ dataType: "string"
1194
+ },
1165
1195
  {
1166
1196
  value: response.headers.get("etag"),
1167
1197
  key: "etag",
@@ -1226,6 +1256,11 @@ class StreamAdminClient {
1226
1256
  value: response.headers.get("opc-request-id"),
1227
1257
  key: "opcRequestId",
1228
1258
  dataType: "string"
1259
+ },
1260
+ {
1261
+ value: response.headers.get("opc-work-request-id"),
1262
+ key: "opcWorkRequestId",
1263
+ dataType: "string"
1229
1264
  }
1230
1265
  ]
1231
1266
  });
@@ -1286,6 +1321,11 @@ class StreamAdminClient {
1286
1321
  value: response.headers.get("opc-request-id"),
1287
1322
  key: "opcRequestId",
1288
1323
  dataType: "string"
1324
+ },
1325
+ {
1326
+ value: response.headers.get("opc-work-request-id"),
1327
+ key: "opcWorkRequestId",
1328
+ dataType: "string"
1289
1329
  }
1290
1330
  ]
1291
1331
  });
@@ -1343,6 +1383,11 @@ class StreamAdminClient {
1343
1383
  value: response.headers.get("opc-request-id"),
1344
1384
  key: "opcRequestId",
1345
1385
  dataType: "string"
1386
+ },
1387
+ {
1388
+ value: response.headers.get("opc-work-request-id"),
1389
+ key: "opcWorkRequestId",
1390
+ dataType: "string"
1346
1391
  }
1347
1392
  ]
1348
1393
  });
@@ -1542,6 +1587,64 @@ class StreamAdminClient {
1542
1587
  }
1543
1588
  });
1544
1589
  }
1590
+ /**
1591
+ * Gets the details of a work request.
1592
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1593
+ * @param GetWorkRequestRequest
1594
+ * @return GetWorkRequestResponse
1595
+ * @throws OciError when an error occurs
1596
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/streaming/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
1597
+ */
1598
+ getWorkRequest(getWorkRequestRequest) {
1599
+ return __awaiter(this, void 0, void 0, function* () {
1600
+ if (this.logger)
1601
+ this.logger.debug("Calling operation StreamAdminClient#getWorkRequest.");
1602
+ const operationName = "getWorkRequest";
1603
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/streaming/20180418/WorkRequest/GetWorkRequest";
1604
+ const pathParams = {
1605
+ "{workRequestId}": getWorkRequestRequest.workRequestId
1606
+ };
1607
+ const queryParams = {};
1608
+ let headerParams = {
1609
+ "Content-Type": common.Constants.APPLICATION_JSON,
1610
+ "opc-request-id": getWorkRequestRequest.opcRequestId
1611
+ };
1612
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1613
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
1614
+ if (this.logger)
1615
+ retrier.logger = this.logger;
1616
+ const request = yield oci_common_2.composeRequest({
1617
+ baseEndpoint: this._endpoint,
1618
+ defaultHeaders: this._defaultHeaders,
1619
+ path: "/workRequests/{workRequestId}",
1620
+ method: "GET",
1621
+ pathParams: pathParams,
1622
+ headerParams: headerParams,
1623
+ queryParams: queryParams
1624
+ });
1625
+ try {
1626
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1627
+ const sdkResponse = oci_common_2.composeResponse({
1628
+ responseObject: {},
1629
+ body: yield response.json(),
1630
+ bodyKey: "workRequest",
1631
+ bodyModel: model.WorkRequest,
1632
+ type: "model.WorkRequest",
1633
+ responseHeaders: [
1634
+ {
1635
+ value: response.headers.get("opc-request-id"),
1636
+ key: "opcRequestId",
1637
+ dataType: "string"
1638
+ }
1639
+ ]
1640
+ });
1641
+ return sdkResponse;
1642
+ }
1643
+ catch (err) {
1644
+ throw err;
1645
+ }
1646
+ });
1647
+ }
1545
1648
  /**
1546
1649
  * Lists the connectharness.
1547
1650
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
@@ -1892,6 +1995,229 @@ class StreamAdminClient {
1892
1995
  listStreamsResponseIterator(request) {
1893
1996
  return oci_common_1.paginateResponses(request, req => this.listStreams(req));
1894
1997
  }
1998
+ /**
1999
+ * Lists the errors for a work request.
2000
+ *
2001
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2002
+ * @param ListWorkRequestErrorsRequest
2003
+ * @return ListWorkRequestErrorsResponse
2004
+ * @throws OciError when an error occurs
2005
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/streaming/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
2006
+ */
2007
+ listWorkRequestErrors(listWorkRequestErrorsRequest) {
2008
+ return __awaiter(this, void 0, void 0, function* () {
2009
+ if (this.logger)
2010
+ this.logger.debug("Calling operation StreamAdminClient#listWorkRequestErrors.");
2011
+ const operationName = "listWorkRequestErrors";
2012
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/streaming/20180418/WorkRequestErrorCollection/ListWorkRequestErrors";
2013
+ const pathParams = {
2014
+ "{workRequestId}": listWorkRequestErrorsRequest.workRequestId
2015
+ };
2016
+ const queryParams = {
2017
+ "page": listWorkRequestErrorsRequest.page,
2018
+ "limit": listWorkRequestErrorsRequest.limit,
2019
+ "sortOrder": listWorkRequestErrorsRequest.sortOrder,
2020
+ "sortBy": listWorkRequestErrorsRequest.sortBy
2021
+ };
2022
+ let headerParams = {
2023
+ "Content-Type": common.Constants.APPLICATION_JSON,
2024
+ "opc-request-id": listWorkRequestErrorsRequest.opcRequestId
2025
+ };
2026
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2027
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
2028
+ if (this.logger)
2029
+ retrier.logger = this.logger;
2030
+ const request = yield oci_common_2.composeRequest({
2031
+ baseEndpoint: this._endpoint,
2032
+ defaultHeaders: this._defaultHeaders,
2033
+ path: "/workRequests/{workRequestId}/errors",
2034
+ method: "GET",
2035
+ pathParams: pathParams,
2036
+ headerParams: headerParams,
2037
+ queryParams: queryParams
2038
+ });
2039
+ try {
2040
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2041
+ const sdkResponse = oci_common_2.composeResponse({
2042
+ responseObject: {},
2043
+ body: yield response.json(),
2044
+ bodyKey: "workRequestErrorCollection",
2045
+ bodyModel: model.WorkRequestErrorCollection,
2046
+ type: "model.WorkRequestErrorCollection",
2047
+ responseHeaders: [
2048
+ {
2049
+ value: response.headers.get("opc-next-page"),
2050
+ key: "opcNextPage",
2051
+ dataType: "string"
2052
+ },
2053
+ {
2054
+ value: response.headers.get("opc-prev-page"),
2055
+ key: "opcPrevPage",
2056
+ dataType: "string"
2057
+ },
2058
+ {
2059
+ value: response.headers.get("opc-request-id"),
2060
+ key: "opcRequestId",
2061
+ dataType: "string"
2062
+ }
2063
+ ]
2064
+ });
2065
+ return sdkResponse;
2066
+ }
2067
+ catch (err) {
2068
+ throw err;
2069
+ }
2070
+ });
2071
+ }
2072
+ /**
2073
+ * Lists the logs for a work request.
2074
+ *
2075
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2076
+ * @param ListWorkRequestLogsRequest
2077
+ * @return ListWorkRequestLogsResponse
2078
+ * @throws OciError when an error occurs
2079
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/streaming/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
2080
+ */
2081
+ listWorkRequestLogs(listWorkRequestLogsRequest) {
2082
+ return __awaiter(this, void 0, void 0, function* () {
2083
+ if (this.logger)
2084
+ this.logger.debug("Calling operation StreamAdminClient#listWorkRequestLogs.");
2085
+ const operationName = "listWorkRequestLogs";
2086
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/streaming/20180418/WorkRequestLogEntry/ListWorkRequestLogs";
2087
+ const pathParams = {
2088
+ "{workRequestId}": listWorkRequestLogsRequest.workRequestId
2089
+ };
2090
+ const queryParams = {
2091
+ "page": listWorkRequestLogsRequest.page,
2092
+ "limit": listWorkRequestLogsRequest.limit,
2093
+ "sortOrder": listWorkRequestLogsRequest.sortOrder,
2094
+ "sortBy": listWorkRequestLogsRequest.sortBy
2095
+ };
2096
+ let headerParams = {
2097
+ "Content-Type": common.Constants.APPLICATION_JSON,
2098
+ "opc-request-id": listWorkRequestLogsRequest.opcRequestId
2099
+ };
2100
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2101
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
2102
+ if (this.logger)
2103
+ retrier.logger = this.logger;
2104
+ const request = yield oci_common_2.composeRequest({
2105
+ baseEndpoint: this._endpoint,
2106
+ defaultHeaders: this._defaultHeaders,
2107
+ path: "/workRequests/{workRequestId}/logs",
2108
+ method: "GET",
2109
+ pathParams: pathParams,
2110
+ headerParams: headerParams,
2111
+ queryParams: queryParams
2112
+ });
2113
+ try {
2114
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2115
+ const sdkResponse = oci_common_2.composeResponse({
2116
+ responseObject: {},
2117
+ body: yield response.json(),
2118
+ bodyKey: "workRequestLogEntryCollection",
2119
+ bodyModel: model.WorkRequestLogEntryCollection,
2120
+ type: "model.WorkRequestLogEntryCollection",
2121
+ responseHeaders: [
2122
+ {
2123
+ value: response.headers.get("opc-next-page"),
2124
+ key: "opcNextPage",
2125
+ dataType: "string"
2126
+ },
2127
+ {
2128
+ value: response.headers.get("opc-prev-page"),
2129
+ key: "opcPrevPage",
2130
+ dataType: "string"
2131
+ },
2132
+ {
2133
+ value: response.headers.get("opc-request-id"),
2134
+ key: "opcRequestId",
2135
+ dataType: "string"
2136
+ }
2137
+ ]
2138
+ });
2139
+ return sdkResponse;
2140
+ }
2141
+ catch (err) {
2142
+ throw err;
2143
+ }
2144
+ });
2145
+ }
2146
+ /**
2147
+ * Lists the work requests in a compartment.
2148
+ *
2149
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2150
+ * @param ListWorkRequestsRequest
2151
+ * @return ListWorkRequestsResponse
2152
+ * @throws OciError when an error occurs
2153
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/streaming/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
2154
+ */
2155
+ listWorkRequests(listWorkRequestsRequest) {
2156
+ return __awaiter(this, void 0, void 0, function* () {
2157
+ if (this.logger)
2158
+ this.logger.debug("Calling operation StreamAdminClient#listWorkRequests.");
2159
+ const operationName = "listWorkRequests";
2160
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/streaming/20180418/WorkRequestSummaryCollection/ListWorkRequests";
2161
+ const pathParams = {};
2162
+ const queryParams = {
2163
+ "workRequestId": listWorkRequestsRequest.workRequestId,
2164
+ "compartmentId": listWorkRequestsRequest.compartmentId,
2165
+ "page": listWorkRequestsRequest.page,
2166
+ "limit": listWorkRequestsRequest.limit,
2167
+ "sortOrder": listWorkRequestsRequest.sortOrder,
2168
+ "sortBy": listWorkRequestsRequest.sortBy,
2169
+ "resourceId": listWorkRequestsRequest.resourceId
2170
+ };
2171
+ let headerParams = {
2172
+ "Content-Type": common.Constants.APPLICATION_JSON,
2173
+ "opc-request-id": listWorkRequestsRequest.opcRequestId
2174
+ };
2175
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2176
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
2177
+ if (this.logger)
2178
+ retrier.logger = this.logger;
2179
+ const request = yield oci_common_2.composeRequest({
2180
+ baseEndpoint: this._endpoint,
2181
+ defaultHeaders: this._defaultHeaders,
2182
+ path: "/workRequests",
2183
+ method: "GET",
2184
+ pathParams: pathParams,
2185
+ headerParams: headerParams,
2186
+ queryParams: queryParams
2187
+ });
2188
+ try {
2189
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2190
+ const sdkResponse = oci_common_2.composeResponse({
2191
+ responseObject: {},
2192
+ body: yield response.json(),
2193
+ bodyKey: "workRequestSummaryCollection",
2194
+ bodyModel: model.WorkRequestSummaryCollection,
2195
+ type: "model.WorkRequestSummaryCollection",
2196
+ responseHeaders: [
2197
+ {
2198
+ value: response.headers.get("opc-next-page"),
2199
+ key: "opcNextPage",
2200
+ dataType: "string"
2201
+ },
2202
+ {
2203
+ value: response.headers.get("opc-prev-page"),
2204
+ key: "opcPrevPage",
2205
+ dataType: "string"
2206
+ },
2207
+ {
2208
+ value: response.headers.get("opc-request-id"),
2209
+ key: "opcRequestId",
2210
+ dataType: "string"
2211
+ }
2212
+ ]
2213
+ });
2214
+ return sdkResponse;
2215
+ }
2216
+ catch (err) {
2217
+ throw err;
2218
+ }
2219
+ });
2220
+ }
1895
2221
  /**
1896
2222
  * Updates the tags applied to the connect harness.
1897
2223
  *
@@ -1944,6 +2270,11 @@ class StreamAdminClient {
1944
2270
  key: "opcRequestId",
1945
2271
  dataType: "string"
1946
2272
  },
2273
+ {
2274
+ value: response.headers.get("opc-work-request-id"),
2275
+ key: "opcWorkRequestId",
2276
+ dataType: "string"
2277
+ },
1947
2278
  {
1948
2279
  value: response.headers.get("etag"),
1949
2280
  key: "etag",
@@ -2010,6 +2341,11 @@ class StreamAdminClient {
2010
2341
  key: "opcRequestId",
2011
2342
  dataType: "string"
2012
2343
  },
2344
+ {
2345
+ value: response.headers.get("opc-work-request-id"),
2346
+ key: "opcWorkRequestId",
2347
+ dataType: "string"
2348
+ },
2013
2349
  {
2014
2350
  value: response.headers.get("etag"),
2015
2351
  key: "etag",
@@ -2076,6 +2412,11 @@ class StreamAdminClient {
2076
2412
  key: "opcRequestId",
2077
2413
  dataType: "string"
2078
2414
  },
2415
+ {
2416
+ value: response.headers.get("opc-work-request-id"),
2417
+ key: "opcWorkRequestId",
2418
+ dataType: "string"
2419
+ },
2079
2420
  {
2080
2421
  value: response.headers.get("etag"),
2081
2422
  key: "etag",