oci-managementagent 2.78.0 → 2.79.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 (124) hide show
  1. package/lib/client.d.ts +105 -23
  2. package/lib/client.js +391 -24
  3. package/lib/client.js.map +1 -1
  4. package/lib/model/architecture-types.d.ts +2 -0
  5. package/lib/model/architecture-types.js +2 -0
  6. package/lib/model/architecture-types.js.map +1 -1
  7. package/lib/model/create-data-source-details.d.ts +33 -0
  8. package/lib/model/create-data-source-details.js +70 -0
  9. package/lib/model/create-data-source-details.js.map +1 -0
  10. package/lib/model/create-prometheus-emitter-data-source-details.d.ts +67 -0
  11. package/lib/model/create-prometheus-emitter-data-source-details.js +68 -0
  12. package/lib/model/create-prometheus-emitter-data-source-details.js.map +1 -0
  13. package/lib/model/data-source-summary-item.d.ts +32 -0
  14. package/lib/model/data-source-summary-item.js +74 -0
  15. package/lib/model/data-source-summary-item.js.map +1 -0
  16. package/lib/model/data-source-summary.d.ts +32 -0
  17. package/lib/model/data-source-summary.js +74 -0
  18. package/lib/model/data-source-summary.js.map +1 -0
  19. package/lib/model/data-source-types.d.ts +33 -0
  20. package/lib/model/{datatypes.js → data-source-types.js} +20 -15
  21. package/lib/model/data-source-types.js.map +1 -0
  22. package/lib/model/data-source.d.ts +50 -0
  23. package/lib/model/data-source.js +74 -0
  24. package/lib/model/data-source.js.map +1 -0
  25. package/lib/model/index.d.ts +30 -4
  26. package/lib/model/index.js +32 -5
  27. package/lib/model/index.js.map +1 -1
  28. package/lib/model/kubernetes-cluster-data-source-summary-item.d.ts +31 -0
  29. package/lib/model/kubernetes-cluster-data-source-summary-item.js +56 -0
  30. package/lib/model/kubernetes-cluster-data-source-summary-item.js.map +1 -0
  31. package/lib/model/kubernetes-cluster-data-source-summary.d.ts +31 -0
  32. package/lib/model/kubernetes-cluster-data-source-summary.js +56 -0
  33. package/lib/model/kubernetes-cluster-data-source-summary.js.map +1 -0
  34. package/lib/model/kubernetes-cluster-data-source.d.ts +35 -0
  35. package/lib/model/kubernetes-cluster-data-source.js +56 -0
  36. package/lib/model/kubernetes-cluster-data-source.js.map +1 -0
  37. package/lib/model/management-agent-summary.d.ts +4 -0
  38. package/lib/model/management-agent-summary.js +10 -0
  39. package/lib/model/management-agent-summary.js.map +1 -1
  40. package/lib/model/management-agent.d.ts +4 -0
  41. package/lib/model/management-agent.js +10 -0
  42. package/lib/model/management-agent.js.map +1 -1
  43. package/lib/model/{datatypes.d.ts → metric-dimension.d.ts} +14 -11
  44. package/lib/model/{edit-modes.js → metric-dimension.js} +11 -17
  45. package/lib/model/metric-dimension.js.map +1 -0
  46. package/lib/model/operation-types.d.ts +3 -0
  47. package/lib/model/operation-types.js +3 -0
  48. package/lib/model/operation-types.js.map +1 -1
  49. package/lib/model/prometheus-emitter-data-source-summary-item.d.ts +27 -0
  50. package/lib/model/prometheus-emitter-data-source-summary-item.js +56 -0
  51. package/lib/model/prometheus-emitter-data-source-summary-item.js.map +1 -0
  52. package/lib/model/prometheus-emitter-data-source-summary.d.ts +27 -0
  53. package/lib/model/prometheus-emitter-data-source-summary.js +56 -0
  54. package/lib/model/prometheus-emitter-data-source-summary.js.map +1 -0
  55. package/lib/model/prometheus-emitter-data-source.d.ts +67 -0
  56. package/lib/model/prometheus-emitter-data-source.js +68 -0
  57. package/lib/model/prometheus-emitter-data-source.js.map +1 -0
  58. package/lib/model/{edit-modes.d.ts → update-data-source-details.d.ts} +8 -9
  59. package/lib/model/update-data-source-details.js +70 -0
  60. package/lib/model/update-data-source-details.js.map +1 -0
  61. package/lib/model/update-prometheus-emitter-data-source-details.d.ts +63 -0
  62. package/lib/model/update-prometheus-emitter-data-source-details.js +68 -0
  63. package/lib/model/update-prometheus-emitter-data-source-details.js.map +1 -0
  64. package/lib/request/create-data-source-request.d.ts +49 -0
  65. package/lib/request/create-data-source-request.js +15 -0
  66. package/lib/request/create-data-source-request.js.map +1 -0
  67. package/lib/request/create-management-agent-install-key-request.d.ts +1 -1
  68. package/lib/request/delete-data-source-request.d.ts +39 -0
  69. package/lib/request/delete-data-source-request.js +15 -0
  70. package/lib/request/delete-data-source-request.js.map +1 -0
  71. package/lib/request/delete-management-agent-install-key-request.d.ts +1 -1
  72. package/lib/request/delete-management-agent-request.d.ts +1 -1
  73. package/lib/request/delete-work-request-request.d.ts +1 -1
  74. package/lib/request/deploy-plugins-request.d.ts +1 -1
  75. package/lib/request/get-auto-upgradable-config-request.d.ts +1 -1
  76. package/lib/request/get-data-source-request.d.ts +39 -0
  77. package/lib/request/get-data-source-request.js +15 -0
  78. package/lib/request/get-data-source-request.js.map +1 -0
  79. package/lib/request/get-management-agent-install-key-content-request.d.ts +1 -1
  80. package/lib/request/get-management-agent-install-key-request.d.ts +1 -1
  81. package/lib/request/get-management-agent-request.d.ts +1 -1
  82. package/lib/request/get-work-request-request.d.ts +1 -1
  83. package/lib/request/index.d.ts +10 -0
  84. package/lib/request/index.js +3 -1
  85. package/lib/request/index.js.map +1 -1
  86. package/lib/request/list-availability-histories-request.d.ts +1 -1
  87. package/lib/request/list-data-sources-request.d.ts +57 -0
  88. package/lib/request/list-data-sources-request.js +29 -0
  89. package/lib/request/list-data-sources-request.js.map +1 -0
  90. package/lib/request/list-management-agent-images-request.d.ts +1 -1
  91. package/lib/request/list-management-agent-install-keys-request.d.ts +1 -1
  92. package/lib/request/list-management-agent-plugins-request.d.ts +1 -1
  93. package/lib/request/list-management-agents-request.d.ts +9 -1
  94. package/lib/request/list-management-agents-request.js.map +1 -1
  95. package/lib/request/list-work-request-errors-request.d.ts +1 -1
  96. package/lib/request/list-work-request-logs-request.d.ts +1 -1
  97. package/lib/request/list-work-requests-request.d.ts +2 -2
  98. package/lib/request/set-auto-upgradable-config-request.d.ts +1 -1
  99. package/lib/request/summarize-management-agent-counts-request.d.ts +1 -1
  100. package/lib/request/summarize-management-agent-plugin-counts-request.d.ts +1 -1
  101. package/lib/request/update-data-source-request.d.ts +53 -0
  102. package/lib/request/update-data-source-request.js +15 -0
  103. package/lib/request/update-data-source-request.js.map +1 -0
  104. package/lib/request/update-management-agent-install-key-request.d.ts +1 -1
  105. package/lib/request/update-management-agent-request.d.ts +1 -1
  106. package/lib/response/create-data-source-response.d.ts +25 -0
  107. package/lib/response/create-data-source-response.js +15 -0
  108. package/lib/response/create-data-source-response.js.map +1 -0
  109. package/lib/response/delete-data-source-response.d.ts +25 -0
  110. package/lib/response/delete-data-source-response.js +15 -0
  111. package/lib/response/delete-data-source-response.js.map +1 -0
  112. package/lib/response/get-data-source-response.d.ts +30 -0
  113. package/lib/response/get-data-source-response.js +15 -0
  114. package/lib/response/get-data-source-response.js.map +1 -0
  115. package/lib/response/index.d.ts +10 -0
  116. package/lib/response/list-data-sources-response.d.ts +32 -0
  117. package/lib/response/list-data-sources-response.js +15 -0
  118. package/lib/response/list-data-sources-response.js.map +1 -0
  119. package/lib/response/update-data-source-response.d.ts +25 -0
  120. package/lib/response/update-data-source-response.js +15 -0
  121. package/lib/response/update-data-source-response.js.map +1 -0
  122. package/package.json +3 -3
  123. package/lib/model/datatypes.js.map +0 -1
  124. package/lib/model/edit-modes.js.map +0 -1
package/lib/client.js CHANGED
@@ -193,6 +193,69 @@ class ManagementAgentClient {
193
193
  this._circuitBreaker.shutdown();
194
194
  }
195
195
  }
196
+ /**
197
+ * Datasource creation request to given Management Agent.
198
+ *
199
+ * This operation does not retry by default if the user has not defined a retry configuration.
200
+ * @param CreateDataSourceRequest
201
+ * @return CreateDataSourceResponse
202
+ * @throws OciError when an error occurs
203
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/managementagent/CreateDataSource.ts.html |here} to see how to use CreateDataSource API.
204
+ */
205
+ createDataSource(createDataSourceRequest) {
206
+ return __awaiter(this, void 0, void 0, function* () {
207
+ if (this.logger)
208
+ this.logger.debug("Calling operation ManagementAgentClient#createDataSource.");
209
+ const operationName = "createDataSource";
210
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgent/CreateDataSource";
211
+ const pathParams = {
212
+ "{managementAgentId}": createDataSourceRequest.managementAgentId
213
+ };
214
+ const queryParams = {};
215
+ let headerParams = {
216
+ "Content-Type": common.Constants.APPLICATION_JSON,
217
+ "opc-retry-token": createDataSourceRequest.opcRetryToken,
218
+ "opc-request-id": createDataSourceRequest.opcRequestId,
219
+ "if-match": createDataSourceRequest.ifMatch
220
+ };
221
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
222
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createDataSourceRequest.retryConfiguration, specRetryConfiguration);
223
+ if (this.logger)
224
+ retrier.logger = this.logger;
225
+ const request = yield oci_common_2.composeRequest({
226
+ baseEndpoint: this._endpoint,
227
+ defaultHeaders: this._defaultHeaders,
228
+ path: "/managementAgents/{managementAgentId}/dataSources",
229
+ method: "POST",
230
+ bodyContent: common.ObjectSerializer.serialize(createDataSourceRequest.createDataSourceDetails, "CreateDataSourceDetails", model.CreateDataSourceDetails.getJsonObj),
231
+ pathParams: pathParams,
232
+ headerParams: headerParams,
233
+ queryParams: queryParams
234
+ });
235
+ try {
236
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
237
+ const sdkResponse = oci_common_2.composeResponse({
238
+ responseObject: {},
239
+ responseHeaders: [
240
+ {
241
+ value: response.headers.get("opc-work-request-id"),
242
+ key: "opcWorkRequestId",
243
+ dataType: "string"
244
+ },
245
+ {
246
+ value: response.headers.get("opc-request-id"),
247
+ key: "opcRequestId",
248
+ dataType: "string"
249
+ }
250
+ ]
251
+ });
252
+ return sdkResponse;
253
+ }
254
+ catch (err) {
255
+ throw err;
256
+ }
257
+ });
258
+ }
196
259
  /**
197
260
  * User creates a new install key as part of this API.
198
261
  *
@@ -200,7 +263,7 @@ class ManagementAgentClient {
200
263
  * @param CreateManagementAgentInstallKeyRequest
201
264
  * @return CreateManagementAgentInstallKeyResponse
202
265
  * @throws OciError when an error occurs
203
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/managementagent/CreateManagementAgentInstallKey.ts.html |here} to see how to use CreateManagementAgentInstallKey API.
266
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/managementagent/CreateManagementAgentInstallKey.ts.html |here} to see how to use CreateManagementAgentInstallKey API.
204
267
  */
205
268
  createManagementAgentInstallKey(createManagementAgentInstallKeyRequest) {
206
269
  return __awaiter(this, void 0, void 0, function* () {
@@ -257,13 +320,75 @@ class ManagementAgentClient {
257
320
  }
258
321
  });
259
322
  }
323
+ /**
324
+ * Datasource delete request to given Management Agent.
325
+ *
326
+ * This operation does not retry by default if the user has not defined a retry configuration.
327
+ * @param DeleteDataSourceRequest
328
+ * @return DeleteDataSourceResponse
329
+ * @throws OciError when an error occurs
330
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/managementagent/DeleteDataSource.ts.html |here} to see how to use DeleteDataSource API.
331
+ */
332
+ deleteDataSource(deleteDataSourceRequest) {
333
+ return __awaiter(this, void 0, void 0, function* () {
334
+ if (this.logger)
335
+ this.logger.debug("Calling operation ManagementAgentClient#deleteDataSource.");
336
+ const operationName = "deleteDataSource";
337
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgent/DeleteDataSource";
338
+ const pathParams = {
339
+ "{managementAgentId}": deleteDataSourceRequest.managementAgentId,
340
+ "{dataSourceKey}": deleteDataSourceRequest.dataSourceKey
341
+ };
342
+ const queryParams = {};
343
+ let headerParams = {
344
+ "Content-Type": common.Constants.APPLICATION_JSON,
345
+ "if-match": deleteDataSourceRequest.ifMatch,
346
+ "opc-request-id": deleteDataSourceRequest.opcRequestId
347
+ };
348
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
349
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteDataSourceRequest.retryConfiguration, specRetryConfiguration);
350
+ if (this.logger)
351
+ retrier.logger = this.logger;
352
+ const request = yield oci_common_2.composeRequest({
353
+ baseEndpoint: this._endpoint,
354
+ defaultHeaders: this._defaultHeaders,
355
+ path: "/managementAgents/{managementAgentId}/dataSources/{dataSourceKey}",
356
+ method: "DELETE",
357
+ pathParams: pathParams,
358
+ headerParams: headerParams,
359
+ queryParams: queryParams
360
+ });
361
+ try {
362
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
363
+ const sdkResponse = oci_common_2.composeResponse({
364
+ responseObject: {},
365
+ responseHeaders: [
366
+ {
367
+ value: response.headers.get("opc-request-id"),
368
+ key: "opcRequestId",
369
+ dataType: "string"
370
+ },
371
+ {
372
+ value: response.headers.get("opc-work-request-id"),
373
+ key: "opcWorkRequestId",
374
+ dataType: "string"
375
+ }
376
+ ]
377
+ });
378
+ return sdkResponse;
379
+ }
380
+ catch (err) {
381
+ throw err;
382
+ }
383
+ });
384
+ }
260
385
  /**
261
386
  * Deletes a Management Agent resource by identifier
262
387
  * This operation does not retry by default if the user has not defined a retry configuration.
263
388
  * @param DeleteManagementAgentRequest
264
389
  * @return DeleteManagementAgentResponse
265
390
  * @throws OciError when an error occurs
266
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/managementagent/DeleteManagementAgent.ts.html |here} to see how to use DeleteManagementAgent API.
391
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/managementagent/DeleteManagementAgent.ts.html |here} to see how to use DeleteManagementAgent API.
267
392
  */
268
393
  deleteManagementAgent(deleteManagementAgentRequest) {
269
394
  return __awaiter(this, void 0, void 0, function* () {
@@ -318,7 +443,7 @@ class ManagementAgentClient {
318
443
  * @param DeleteManagementAgentInstallKeyRequest
319
444
  * @return DeleteManagementAgentInstallKeyResponse
320
445
  * @throws OciError when an error occurs
321
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/managementagent/DeleteManagementAgentInstallKey.ts.html |here} to see how to use DeleteManagementAgentInstallKey API.
446
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/managementagent/DeleteManagementAgentInstallKey.ts.html |here} to see how to use DeleteManagementAgentInstallKey API.
322
447
  */
323
448
  deleteManagementAgentInstallKey(deleteManagementAgentInstallKeyRequest) {
324
449
  return __awaiter(this, void 0, void 0, function* () {
@@ -373,7 +498,7 @@ class ManagementAgentClient {
373
498
  * @param DeleteWorkRequestRequest
374
499
  * @return DeleteWorkRequestResponse
375
500
  * @throws OciError when an error occurs
376
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/managementagent/DeleteWorkRequest.ts.html |here} to see how to use DeleteWorkRequest API.
501
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/managementagent/DeleteWorkRequest.ts.html |here} to see how to use DeleteWorkRequest API.
377
502
  */
378
503
  deleteWorkRequest(deleteWorkRequestRequest) {
379
504
  return __awaiter(this, void 0, void 0, function* () {
@@ -429,7 +554,7 @@ class ManagementAgentClient {
429
554
  * @param DeployPluginsRequest
430
555
  * @return DeployPluginsResponse
431
556
  * @throws OciError when an error occurs
432
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/managementagent/DeployPlugins.ts.html |here} to see how to use DeployPlugins API.
557
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/managementagent/DeployPlugins.ts.html |here} to see how to use DeployPlugins API.
433
558
  */
434
559
  deployPlugins(deployPluginsRequest) {
435
560
  return __awaiter(this, void 0, void 0, function* () {
@@ -490,7 +615,7 @@ class ManagementAgentClient {
490
615
  * @param GetAutoUpgradableConfigRequest
491
616
  * @return GetAutoUpgradableConfigResponse
492
617
  * @throws OciError when an error occurs
493
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/managementagent/GetAutoUpgradableConfig.ts.html |here} to see how to use GetAutoUpgradableConfig API.
618
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/managementagent/GetAutoUpgradableConfig.ts.html |here} to see how to use GetAutoUpgradableConfig API.
494
619
  */
495
620
  getAutoUpgradableConfig(getAutoUpgradableConfigRequest) {
496
621
  return __awaiter(this, void 0, void 0, function* () {
@@ -542,13 +667,79 @@ class ManagementAgentClient {
542
667
  }
543
668
  });
544
669
  }
670
+ /**
671
+ * Get Datasource details for given Id and given Management Agent.
672
+ *
673
+ * This operation does not retry by default if the user has not defined a retry configuration.
674
+ * @param GetDataSourceRequest
675
+ * @return GetDataSourceResponse
676
+ * @throws OciError when an error occurs
677
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/managementagent/GetDataSource.ts.html |here} to see how to use GetDataSource API.
678
+ */
679
+ getDataSource(getDataSourceRequest) {
680
+ return __awaiter(this, void 0, void 0, function* () {
681
+ if (this.logger)
682
+ this.logger.debug("Calling operation ManagementAgentClient#getDataSource.");
683
+ const operationName = "getDataSource";
684
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgent/GetDataSource";
685
+ const pathParams = {
686
+ "{managementAgentId}": getDataSourceRequest.managementAgentId,
687
+ "{dataSourceKey}": getDataSourceRequest.dataSourceKey
688
+ };
689
+ const queryParams = {};
690
+ let headerParams = {
691
+ "Content-Type": common.Constants.APPLICATION_JSON,
692
+ "opc-retry-token": getDataSourceRequest.opcRetryToken,
693
+ "opc-request-id": getDataSourceRequest.opcRequestId
694
+ };
695
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
696
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDataSourceRequest.retryConfiguration, specRetryConfiguration);
697
+ if (this.logger)
698
+ retrier.logger = this.logger;
699
+ const request = yield oci_common_2.composeRequest({
700
+ baseEndpoint: this._endpoint,
701
+ defaultHeaders: this._defaultHeaders,
702
+ path: "/managementAgents/{managementAgentId}/dataSources/{dataSourceKey}",
703
+ method: "GET",
704
+ pathParams: pathParams,
705
+ headerParams: headerParams,
706
+ queryParams: queryParams
707
+ });
708
+ try {
709
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
710
+ const sdkResponse = oci_common_2.composeResponse({
711
+ responseObject: {},
712
+ body: yield response.json(),
713
+ bodyKey: "dataSource",
714
+ bodyModel: model.DataSource,
715
+ type: "model.DataSource",
716
+ responseHeaders: [
717
+ {
718
+ value: response.headers.get("opc-request-id"),
719
+ key: "opcRequestId",
720
+ dataType: "string"
721
+ },
722
+ {
723
+ value: response.headers.get("etag"),
724
+ key: "etag",
725
+ dataType: "string"
726
+ }
727
+ ]
728
+ });
729
+ return sdkResponse;
730
+ }
731
+ catch (err) {
732
+ throw err;
733
+ }
734
+ });
735
+ }
545
736
  /**
546
737
  * Gets complete details of the inventory of a given agent id
547
738
  * This operation does not retry by default if the user has not defined a retry configuration.
548
739
  * @param GetManagementAgentRequest
549
740
  * @return GetManagementAgentResponse
550
741
  * @throws OciError when an error occurs
551
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/managementagent/GetManagementAgent.ts.html |here} to see how to use GetManagementAgent API.
742
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/managementagent/GetManagementAgent.ts.html |here} to see how to use GetManagementAgent API.
552
743
  */
553
744
  getManagementAgent(getManagementAgentRequest) {
554
745
  return __awaiter(this, void 0, void 0, function* () {
@@ -611,7 +802,7 @@ class ManagementAgentClient {
611
802
  * @param GetManagementAgentInstallKeyRequest
612
803
  * @return GetManagementAgentInstallKeyResponse
613
804
  * @throws OciError when an error occurs
614
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/managementagent/GetManagementAgentInstallKey.ts.html |here} to see how to use GetManagementAgentInstallKey API.
805
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/managementagent/GetManagementAgentInstallKey.ts.html |here} to see how to use GetManagementAgentInstallKey API.
615
806
  */
616
807
  getManagementAgentInstallKey(getManagementAgentInstallKeyRequest) {
617
808
  return __awaiter(this, void 0, void 0, function* () {
@@ -675,7 +866,7 @@ class ManagementAgentClient {
675
866
  * @param GetManagementAgentInstallKeyContentRequest
676
867
  * @return GetManagementAgentInstallKeyContentResponse
677
868
  * @throws OciError when an error occurs
678
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/managementagent/GetManagementAgentInstallKeyContent.ts.html |here} to see how to use GetManagementAgentInstallKeyContent API.
869
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/managementagent/GetManagementAgentInstallKeyContent.ts.html |here} to see how to use GetManagementAgentInstallKeyContent API.
679
870
  */
680
871
  getManagementAgentInstallKeyContent(getManagementAgentInstallKeyContentRequest) {
681
872
  return __awaiter(this, void 0, void 0, function* () {
@@ -744,7 +935,7 @@ class ManagementAgentClient {
744
935
  * @param GetWorkRequestRequest
745
936
  * @return GetWorkRequestResponse
746
937
  * @throws OciError when an error occurs
747
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/managementagent/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
938
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/managementagent/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
748
939
  */
749
940
  getWorkRequest(getWorkRequestRequest) {
750
941
  return __awaiter(this, void 0, void 0, function* () {
@@ -812,7 +1003,7 @@ class ManagementAgentClient {
812
1003
  * @param ListAvailabilityHistoriesRequest
813
1004
  * @return ListAvailabilityHistoriesResponse
814
1005
  * @throws OciError when an error occurs
815
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/managementagent/ListAvailabilityHistories.ts.html |here} to see how to use ListAvailabilityHistories API.
1006
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/managementagent/ListAvailabilityHistories.ts.html |here} to see how to use ListAvailabilityHistories API.
816
1007
  */
817
1008
  listAvailabilityHistories(listAvailabilityHistoriesRequest) {
818
1009
  return __awaiter(this, void 0, void 0, function* () {
@@ -916,6 +1107,116 @@ class ManagementAgentClient {
916
1107
  listAvailabilityHistoriesResponseIterator(request) {
917
1108
  return oci_common_1.paginateResponses(request, req => this.listAvailabilityHistories(req));
918
1109
  }
1110
+ /**
1111
+ * A list of Management Agent Data Sources for the given Management Agent Id.
1112
+ *
1113
+ * This operation does not retry by default if the user has not defined a retry configuration.
1114
+ * @param ListDataSourcesRequest
1115
+ * @return ListDataSourcesResponse
1116
+ * @throws OciError when an error occurs
1117
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/managementagent/ListDataSources.ts.html |here} to see how to use ListDataSources API.
1118
+ */
1119
+ listDataSources(listDataSourcesRequest) {
1120
+ return __awaiter(this, void 0, void 0, function* () {
1121
+ if (this.logger)
1122
+ this.logger.debug("Calling operation ManagementAgentClient#listDataSources.");
1123
+ const operationName = "listDataSources";
1124
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgent/ListDataSources";
1125
+ const pathParams = {
1126
+ "{managementAgentId}": listDataSourcesRequest.managementAgentId
1127
+ };
1128
+ const queryParams = {
1129
+ "page": listDataSourcesRequest.page,
1130
+ "limit": listDataSourcesRequest.limit,
1131
+ "sortOrder": listDataSourcesRequest.sortOrder,
1132
+ "sortBy": listDataSourcesRequest.sortBy,
1133
+ "name": listDataSourcesRequest.name
1134
+ };
1135
+ let headerParams = {
1136
+ "Content-Type": common.Constants.APPLICATION_JSON,
1137
+ "opc-request-id": listDataSourcesRequest.opcRequestId
1138
+ };
1139
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1140
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDataSourcesRequest.retryConfiguration, specRetryConfiguration);
1141
+ if (this.logger)
1142
+ retrier.logger = this.logger;
1143
+ const request = yield oci_common_2.composeRequest({
1144
+ baseEndpoint: this._endpoint,
1145
+ defaultHeaders: this._defaultHeaders,
1146
+ path: "/managementAgents/{managementAgentId}/dataSources",
1147
+ method: "GET",
1148
+ pathParams: pathParams,
1149
+ headerParams: headerParams,
1150
+ queryParams: queryParams
1151
+ });
1152
+ try {
1153
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1154
+ const sdkResponse = oci_common_2.composeResponse({
1155
+ responseObject: {},
1156
+ body: yield response.json(),
1157
+ bodyKey: "items",
1158
+ bodyModel: model.DataSourceSummary,
1159
+ type: "Array<model.DataSourceSummary>",
1160
+ responseHeaders: [
1161
+ {
1162
+ value: response.headers.get("opc-next-page"),
1163
+ key: "opcNextPage",
1164
+ dataType: "string"
1165
+ },
1166
+ {
1167
+ value: response.headers.get("opc-request-id"),
1168
+ key: "opcRequestId",
1169
+ dataType: "string"
1170
+ }
1171
+ ]
1172
+ });
1173
+ return sdkResponse;
1174
+ }
1175
+ catch (err) {
1176
+ throw err;
1177
+ }
1178
+ });
1179
+ }
1180
+ /**
1181
+ * NOTE: This function is deprecated in favor of listDataSourcesRecordIterator function.
1182
+ * Creates a new async iterator which will iterate over the models.DataSourceSummary objects
1183
+ * contained in responses from the listDataSources operation. This iterator will fetch more data from the
1184
+ * server as needed.
1185
+ *
1186
+ * @param request a request which can be sent to the service operation
1187
+ */
1188
+ listAllDataSources(request) {
1189
+ return oci_common_1.paginateRecords(request, req => this.listDataSources(req));
1190
+ }
1191
+ /**
1192
+ * NOTE: This function is deprecated in favor of listDataSourcesResponseIterator function.
1193
+ * Creates a new async iterator which will iterate over the responses received from the listDataSources operation. This iterator
1194
+ * will fetch more data from the server as needed.
1195
+ *
1196
+ * @param request a request which can be sent to the service operation
1197
+ */
1198
+ listAllDataSourcesResponses(request) {
1199
+ return oci_common_1.paginateResponses(request, req => this.listDataSources(req));
1200
+ }
1201
+ /**
1202
+ * Creates a new async iterator which will iterate over the models.DataSourceSummary objects
1203
+ * contained in responses from the listDataSources operation. This iterator will fetch more data from the
1204
+ * server as needed.
1205
+ *
1206
+ * @param request a request which can be sent to the service operation
1207
+ */
1208
+ listDataSourcesRecordIterator(request) {
1209
+ return oci_common_1.paginateRecords(request, req => this.listDataSources(req));
1210
+ }
1211
+ /**
1212
+ * Creates a new async iterator which will iterate over the responses received from the listDataSources operation. This iterator
1213
+ * will fetch more data from the server as needed.
1214
+ *
1215
+ * @param request a request which can be sent to the service operation
1216
+ */
1217
+ listDataSourcesResponseIterator(request) {
1218
+ return oci_common_1.paginateResponses(request, req => this.listDataSources(req));
1219
+ }
919
1220
  /**
920
1221
  * Get supported agent image information
921
1222
  *
@@ -923,7 +1224,7 @@ class ManagementAgentClient {
923
1224
  * @param ListManagementAgentImagesRequest
924
1225
  * @return ListManagementAgentImagesResponse
925
1226
  * @throws OciError when an error occurs
926
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/managementagent/ListManagementAgentImages.ts.html |here} to see how to use ListManagementAgentImages API.
1227
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/managementagent/ListManagementAgentImages.ts.html |here} to see how to use ListManagementAgentImages API.
927
1228
  */
928
1229
  listManagementAgentImages(listManagementAgentImagesRequest) {
929
1230
  return __awaiter(this, void 0, void 0, function* () {
@@ -1035,7 +1336,7 @@ class ManagementAgentClient {
1035
1336
  * @param ListManagementAgentInstallKeysRequest
1036
1337
  * @return ListManagementAgentInstallKeysResponse
1037
1338
  * @throws OciError when an error occurs
1038
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/managementagent/ListManagementAgentInstallKeys.ts.html |here} to see how to use ListManagementAgentInstallKeys API.
1339
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/managementagent/ListManagementAgentInstallKeys.ts.html |here} to see how to use ListManagementAgentInstallKeys API.
1039
1340
  */
1040
1341
  listManagementAgentInstallKeys(listManagementAgentInstallKeysRequest) {
1041
1342
  return __awaiter(this, void 0, void 0, function* () {
@@ -1146,7 +1447,7 @@ class ManagementAgentClient {
1146
1447
  * @param ListManagementAgentPluginsRequest
1147
1448
  * @return ListManagementAgentPluginsResponse
1148
1449
  * @throws OciError when an error occurs
1149
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/managementagent/ListManagementAgentPlugins.ts.html |here} to see how to use ListManagementAgentPlugins API.
1450
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/managementagent/ListManagementAgentPlugins.ts.html |here} to see how to use ListManagementAgentPlugins API.
1150
1451
  */
1151
1452
  listManagementAgentPlugins(listManagementAgentPluginsRequest) {
1152
1453
  return __awaiter(this, void 0, void 0, function* () {
@@ -1260,7 +1561,7 @@ class ManagementAgentClient {
1260
1561
  * @param ListManagementAgentsRequest
1261
1562
  * @return ListManagementAgentsResponse
1262
1563
  * @throws OciError when an error occurs
1263
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/managementagent/ListManagementAgents.ts.html |here} to see how to use ListManagementAgents API.
1564
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/managementagent/ListManagementAgents.ts.html |here} to see how to use ListManagementAgents API.
1264
1565
  */
1265
1566
  listManagementAgents(listManagementAgentsRequest) {
1266
1567
  return __awaiter(this, void 0, void 0, function* () {
@@ -1286,7 +1587,9 @@ class ManagementAgentClient {
1286
1587
  "sortOrder": listManagementAgentsRequest.sortOrder,
1287
1588
  "sortBy": listManagementAgentsRequest.sortBy,
1288
1589
  "compartmentIdInSubtree": listManagementAgentsRequest.compartmentIdInSubtree,
1289
- "accessLevel": listManagementAgentsRequest.accessLevel
1590
+ "accessLevel": listManagementAgentsRequest.accessLevel,
1591
+ "dataSourceType": listManagementAgentsRequest.dataSourceType,
1592
+ "dataSourceName": listManagementAgentsRequest.dataSourceName
1290
1593
  };
1291
1594
  let headerParams = {
1292
1595
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -1380,7 +1683,7 @@ class ManagementAgentClient {
1380
1683
  * @param ListWorkRequestErrorsRequest
1381
1684
  * @return ListWorkRequestErrorsResponse
1382
1685
  * @throws OciError when an error occurs
1383
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/managementagent/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
1686
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/managementagent/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
1384
1687
  */
1385
1688
  listWorkRequestErrors(listWorkRequestErrorsRequest) {
1386
1689
  return __awaiter(this, void 0, void 0, function* () {
@@ -1489,7 +1792,7 @@ class ManagementAgentClient {
1489
1792
  * @param ListWorkRequestLogsRequest
1490
1793
  * @return ListWorkRequestLogsResponse
1491
1794
  * @throws OciError when an error occurs
1492
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/managementagent/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
1795
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/managementagent/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
1493
1796
  */
1494
1797
  listWorkRequestLogs(listWorkRequestLogsRequest) {
1495
1798
  return __awaiter(this, void 0, void 0, function* () {
@@ -1598,7 +1901,7 @@ class ManagementAgentClient {
1598
1901
  * @param ListWorkRequestsRequest
1599
1902
  * @return ListWorkRequestsResponse
1600
1903
  * @throws OciError when an error occurs
1601
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/managementagent/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
1904
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/managementagent/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
1602
1905
  */
1603
1906
  listWorkRequests(listWorkRequestsRequest) {
1604
1907
  return __awaiter(this, void 0, void 0, function* () {
@@ -1711,7 +2014,7 @@ class ManagementAgentClient {
1711
2014
  * @param SetAutoUpgradableConfigRequest
1712
2015
  * @return SetAutoUpgradableConfigResponse
1713
2016
  * @throws OciError when an error occurs
1714
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/managementagent/SetAutoUpgradableConfig.ts.html |here} to see how to use SetAutoUpgradableConfig API.
2017
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/managementagent/SetAutoUpgradableConfig.ts.html |here} to see how to use SetAutoUpgradableConfig API.
1715
2018
  */
1716
2019
  setAutoUpgradableConfig(setAutoUpgradableConfigRequest) {
1717
2020
  return __awaiter(this, void 0, void 0, function* () {
@@ -1771,7 +2074,7 @@ class ManagementAgentClient {
1771
2074
  * @param SummarizeManagementAgentCountsRequest
1772
2075
  * @return SummarizeManagementAgentCountsResponse
1773
2076
  * @throws OciError when an error occurs
1774
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/managementagent/SummarizeManagementAgentCounts.ts.html |here} to see how to use SummarizeManagementAgentCounts API.
2077
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/managementagent/SummarizeManagementAgentCounts.ts.html |here} to see how to use SummarizeManagementAgentCounts API.
1775
2078
  */
1776
2079
  summarizeManagementAgentCounts(summarizeManagementAgentCountsRequest) {
1777
2080
  return __awaiter(this, void 0, void 0, function* () {
@@ -1841,7 +2144,7 @@ class ManagementAgentClient {
1841
2144
  * @param SummarizeManagementAgentPluginCountsRequest
1842
2145
  * @return SummarizeManagementAgentPluginCountsResponse
1843
2146
  * @throws OciError when an error occurs
1844
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/managementagent/SummarizeManagementAgentPluginCounts.ts.html |here} to see how to use SummarizeManagementAgentPluginCounts API.
2147
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/managementagent/SummarizeManagementAgentPluginCounts.ts.html |here} to see how to use SummarizeManagementAgentPluginCounts API.
1845
2148
  */
1846
2149
  summarizeManagementAgentPluginCounts(summarizeManagementAgentPluginCountsRequest) {
1847
2150
  return __awaiter(this, void 0, void 0, function* () {
@@ -1901,6 +2204,70 @@ class ManagementAgentClient {
1901
2204
  }
1902
2205
  });
1903
2206
  }
2207
+ /**
2208
+ * Datasource update request to given Management Agent.
2209
+ *
2210
+ * This operation does not retry by default if the user has not defined a retry configuration.
2211
+ * @param UpdateDataSourceRequest
2212
+ * @return UpdateDataSourceResponse
2213
+ * @throws OciError when an error occurs
2214
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/managementagent/UpdateDataSource.ts.html |here} to see how to use UpdateDataSource API.
2215
+ */
2216
+ updateDataSource(updateDataSourceRequest) {
2217
+ return __awaiter(this, void 0, void 0, function* () {
2218
+ if (this.logger)
2219
+ this.logger.debug("Calling operation ManagementAgentClient#updateDataSource.");
2220
+ const operationName = "updateDataSource";
2221
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgent/UpdateDataSource";
2222
+ const pathParams = {
2223
+ "{managementAgentId}": updateDataSourceRequest.managementAgentId,
2224
+ "{dataSourceKey}": updateDataSourceRequest.dataSourceKey
2225
+ };
2226
+ const queryParams = {};
2227
+ let headerParams = {
2228
+ "Content-Type": common.Constants.APPLICATION_JSON,
2229
+ "opc-retry-token": updateDataSourceRequest.opcRetryToken,
2230
+ "opc-request-id": updateDataSourceRequest.opcRequestId,
2231
+ "if-match": updateDataSourceRequest.ifMatch
2232
+ };
2233
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2234
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateDataSourceRequest.retryConfiguration, specRetryConfiguration);
2235
+ if (this.logger)
2236
+ retrier.logger = this.logger;
2237
+ const request = yield oci_common_2.composeRequest({
2238
+ baseEndpoint: this._endpoint,
2239
+ defaultHeaders: this._defaultHeaders,
2240
+ path: "/managementAgents/{managementAgentId}/dataSources/{dataSourceKey}",
2241
+ method: "PUT",
2242
+ bodyContent: common.ObjectSerializer.serialize(updateDataSourceRequest.updateDataSourceDetails, "UpdateDataSourceDetails", model.UpdateDataSourceDetails.getJsonObj),
2243
+ pathParams: pathParams,
2244
+ headerParams: headerParams,
2245
+ queryParams: queryParams
2246
+ });
2247
+ try {
2248
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2249
+ const sdkResponse = oci_common_2.composeResponse({
2250
+ responseObject: {},
2251
+ responseHeaders: [
2252
+ {
2253
+ value: response.headers.get("opc-work-request-id"),
2254
+ key: "opcWorkRequestId",
2255
+ dataType: "string"
2256
+ },
2257
+ {
2258
+ value: response.headers.get("opc-request-id"),
2259
+ key: "opcRequestId",
2260
+ dataType: "string"
2261
+ }
2262
+ ]
2263
+ });
2264
+ return sdkResponse;
2265
+ }
2266
+ catch (err) {
2267
+ throw err;
2268
+ }
2269
+ });
2270
+ }
1904
2271
  /**
1905
2272
  * API to update the console managed properties of the Management Agent.
1906
2273
  *
@@ -1908,7 +2275,7 @@ class ManagementAgentClient {
1908
2275
  * @param UpdateManagementAgentRequest
1909
2276
  * @return UpdateManagementAgentResponse
1910
2277
  * @throws OciError when an error occurs
1911
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/managementagent/UpdateManagementAgent.ts.html |here} to see how to use UpdateManagementAgent API.
2278
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/managementagent/UpdateManagementAgent.ts.html |here} to see how to use UpdateManagementAgent API.
1912
2279
  */
1913
2280
  updateManagementAgent(updateManagementAgentRequest) {
1914
2281
  return __awaiter(this, void 0, void 0, function* () {
@@ -1975,7 +2342,7 @@ class ManagementAgentClient {
1975
2342
  * @param UpdateManagementAgentInstallKeyRequest
1976
2343
  * @return UpdateManagementAgentInstallKeyResponse
1977
2344
  * @throws OciError when an error occurs
1978
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.78.0/managementagent/UpdateManagementAgentInstallKey.ts.html |here} to see how to use UpdateManagementAgentInstallKey API.
2345
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/managementagent/UpdateManagementAgentInstallKey.ts.html |here} to see how to use UpdateManagementAgentInstallKey API.
1979
2346
  */
1980
2347
  updateManagementAgentInstallKey(updateManagementAgentInstallKeyRequest) {
1981
2348
  return __awaiter(this, void 0, void 0, function* () {