oci-managementagent 2.78.0 → 2.79.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/lib/client.d.ts +105 -24
  2. package/lib/client.js +401 -123
  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 +68 -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 +72 -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 +72 -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 +72 -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 +68 -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
@@ -119,11 +119,7 @@ class ManagementAgentClient {
119
119
  set endpoint(endpoint) {
120
120
  this._endpoint = endpoint;
121
121
  this._endpoint = this._endpoint + "/20200202";
122
- if (this.logger)
123
- this.logger.info(`ManagementAgentClient endpoint set to ${this._endpoint}`);
124
- }
125
- get logger() {
126
- return common.LOG.logger;
122
+ oci_common_2.logger.info(`ManagementAgentClient endpoint set to ${this._endpoint}`);
127
123
  }
128
124
  /**
129
125
  * Determines whether realm specific endpoint should be used or not.
@@ -132,8 +128,7 @@ class ManagementAgentClient {
132
128
  */
133
129
  set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
134
130
  this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
135
- if (this.logger)
136
- this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
131
+ oci_common_2.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
137
132
  if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
138
133
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ManagementAgentClient.serviceEndpointTemplate, this._region, ManagementAgentClient.endpointServiceName);
139
134
  }
@@ -193,6 +188,66 @@ class ManagementAgentClient {
193
188
  this._circuitBreaker.shutdown();
194
189
  }
195
190
  }
191
+ /**
192
+ * Datasource creation request to given Management Agent.
193
+ *
194
+ * This operation does not retry by default if the user has not defined a retry configuration.
195
+ * @param CreateDataSourceRequest
196
+ * @return CreateDataSourceResponse
197
+ * @throws OciError when an error occurs
198
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/managementagent/CreateDataSource.ts.html |here} to see how to use CreateDataSource API.
199
+ */
200
+ createDataSource(createDataSourceRequest) {
201
+ return __awaiter(this, void 0, void 0, function* () {
202
+ oci_common_2.logger.debug("Calling operation ManagementAgentClient#createDataSource.");
203
+ const operationName = "createDataSource";
204
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgent/CreateDataSource";
205
+ const pathParams = {
206
+ "{managementAgentId}": createDataSourceRequest.managementAgentId
207
+ };
208
+ const queryParams = {};
209
+ let headerParams = {
210
+ "Content-Type": common.Constants.APPLICATION_JSON,
211
+ "opc-retry-token": createDataSourceRequest.opcRetryToken,
212
+ "opc-request-id": createDataSourceRequest.opcRequestId,
213
+ "if-match": createDataSourceRequest.ifMatch
214
+ };
215
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
216
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createDataSourceRequest.retryConfiguration, specRetryConfiguration);
217
+ const request = yield oci_common_2.composeRequest({
218
+ baseEndpoint: this._endpoint,
219
+ defaultHeaders: this._defaultHeaders,
220
+ path: "/managementAgents/{managementAgentId}/dataSources",
221
+ method: "POST",
222
+ bodyContent: common.ObjectSerializer.serialize(createDataSourceRequest.createDataSourceDetails, "CreateDataSourceDetails", model.CreateDataSourceDetails.getJsonObj),
223
+ pathParams: pathParams,
224
+ headerParams: headerParams,
225
+ queryParams: queryParams
226
+ });
227
+ try {
228
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
229
+ const sdkResponse = oci_common_2.composeResponse({
230
+ responseObject: {},
231
+ responseHeaders: [
232
+ {
233
+ value: response.headers.get("opc-work-request-id"),
234
+ key: "opcWorkRequestId",
235
+ dataType: "string"
236
+ },
237
+ {
238
+ value: response.headers.get("opc-request-id"),
239
+ key: "opcRequestId",
240
+ dataType: "string"
241
+ }
242
+ ]
243
+ });
244
+ return sdkResponse;
245
+ }
246
+ catch (err) {
247
+ throw err;
248
+ }
249
+ });
250
+ }
196
251
  /**
197
252
  * User creates a new install key as part of this API.
198
253
  *
@@ -200,12 +255,11 @@ class ManagementAgentClient {
200
255
  * @param CreateManagementAgentInstallKeyRequest
201
256
  * @return CreateManagementAgentInstallKeyResponse
202
257
  * @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.
258
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/managementagent/CreateManagementAgentInstallKey.ts.html |here} to see how to use CreateManagementAgentInstallKey API.
204
259
  */
205
260
  createManagementAgentInstallKey(createManagementAgentInstallKeyRequest) {
206
261
  return __awaiter(this, void 0, void 0, function* () {
207
- if (this.logger)
208
- this.logger.debug("Calling operation ManagementAgentClient#createManagementAgentInstallKey.");
262
+ oci_common_2.logger.debug("Calling operation ManagementAgentClient#createManagementAgentInstallKey.");
209
263
  const operationName = "createManagementAgentInstallKey";
210
264
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgentInstallKey/CreateManagementAgentInstallKey";
211
265
  const pathParams = {};
@@ -217,8 +271,6 @@ class ManagementAgentClient {
217
271
  };
218
272
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
219
273
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createManagementAgentInstallKeyRequest.retryConfiguration, specRetryConfiguration);
220
- if (this.logger)
221
- retrier.logger = this.logger;
222
274
  const request = yield oci_common_2.composeRequest({
223
275
  baseEndpoint: this._endpoint,
224
276
  defaultHeaders: this._defaultHeaders,
@@ -257,18 +309,76 @@ class ManagementAgentClient {
257
309
  }
258
310
  });
259
311
  }
312
+ /**
313
+ * Datasource delete request to given Management Agent.
314
+ *
315
+ * This operation does not retry by default if the user has not defined a retry configuration.
316
+ * @param DeleteDataSourceRequest
317
+ * @return DeleteDataSourceResponse
318
+ * @throws OciError when an error occurs
319
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/managementagent/DeleteDataSource.ts.html |here} to see how to use DeleteDataSource API.
320
+ */
321
+ deleteDataSource(deleteDataSourceRequest) {
322
+ return __awaiter(this, void 0, void 0, function* () {
323
+ oci_common_2.logger.debug("Calling operation ManagementAgentClient#deleteDataSource.");
324
+ const operationName = "deleteDataSource";
325
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgent/DeleteDataSource";
326
+ const pathParams = {
327
+ "{managementAgentId}": deleteDataSourceRequest.managementAgentId,
328
+ "{dataSourceKey}": deleteDataSourceRequest.dataSourceKey
329
+ };
330
+ const queryParams = {};
331
+ let headerParams = {
332
+ "Content-Type": common.Constants.APPLICATION_JSON,
333
+ "if-match": deleteDataSourceRequest.ifMatch,
334
+ "opc-request-id": deleteDataSourceRequest.opcRequestId
335
+ };
336
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
337
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteDataSourceRequest.retryConfiguration, specRetryConfiguration);
338
+ const request = yield oci_common_2.composeRequest({
339
+ baseEndpoint: this._endpoint,
340
+ defaultHeaders: this._defaultHeaders,
341
+ path: "/managementAgents/{managementAgentId}/dataSources/{dataSourceKey}",
342
+ method: "DELETE",
343
+ pathParams: pathParams,
344
+ headerParams: headerParams,
345
+ queryParams: queryParams
346
+ });
347
+ try {
348
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
349
+ const sdkResponse = oci_common_2.composeResponse({
350
+ responseObject: {},
351
+ responseHeaders: [
352
+ {
353
+ value: response.headers.get("opc-request-id"),
354
+ key: "opcRequestId",
355
+ dataType: "string"
356
+ },
357
+ {
358
+ value: response.headers.get("opc-work-request-id"),
359
+ key: "opcWorkRequestId",
360
+ dataType: "string"
361
+ }
362
+ ]
363
+ });
364
+ return sdkResponse;
365
+ }
366
+ catch (err) {
367
+ throw err;
368
+ }
369
+ });
370
+ }
260
371
  /**
261
372
  * Deletes a Management Agent resource by identifier
262
373
  * This operation does not retry by default if the user has not defined a retry configuration.
263
374
  * @param DeleteManagementAgentRequest
264
375
  * @return DeleteManagementAgentResponse
265
376
  * @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.
377
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/managementagent/DeleteManagementAgent.ts.html |here} to see how to use DeleteManagementAgent API.
267
378
  */
268
379
  deleteManagementAgent(deleteManagementAgentRequest) {
269
380
  return __awaiter(this, void 0, void 0, function* () {
270
- if (this.logger)
271
- this.logger.debug("Calling operation ManagementAgentClient#deleteManagementAgent.");
381
+ oci_common_2.logger.debug("Calling operation ManagementAgentClient#deleteManagementAgent.");
272
382
  const operationName = "deleteManagementAgent";
273
383
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgent/DeleteManagementAgent";
274
384
  const pathParams = {
@@ -282,8 +392,6 @@ class ManagementAgentClient {
282
392
  };
283
393
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
284
394
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteManagementAgentRequest.retryConfiguration, specRetryConfiguration);
285
- if (this.logger)
286
- retrier.logger = this.logger;
287
395
  const request = yield oci_common_2.composeRequest({
288
396
  baseEndpoint: this._endpoint,
289
397
  defaultHeaders: this._defaultHeaders,
@@ -318,12 +426,11 @@ class ManagementAgentClient {
318
426
  * @param DeleteManagementAgentInstallKeyRequest
319
427
  * @return DeleteManagementAgentInstallKeyResponse
320
428
  * @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.
429
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/managementagent/DeleteManagementAgentInstallKey.ts.html |here} to see how to use DeleteManagementAgentInstallKey API.
322
430
  */
323
431
  deleteManagementAgentInstallKey(deleteManagementAgentInstallKeyRequest) {
324
432
  return __awaiter(this, void 0, void 0, function* () {
325
- if (this.logger)
326
- this.logger.debug("Calling operation ManagementAgentClient#deleteManagementAgentInstallKey.");
433
+ oci_common_2.logger.debug("Calling operation ManagementAgentClient#deleteManagementAgentInstallKey.");
327
434
  const operationName = "deleteManagementAgentInstallKey";
328
435
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgentInstallKey/DeleteManagementAgentInstallKey";
329
436
  const pathParams = {
@@ -337,8 +444,6 @@ class ManagementAgentClient {
337
444
  };
338
445
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
339
446
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteManagementAgentInstallKeyRequest.retryConfiguration, specRetryConfiguration);
340
- if (this.logger)
341
- retrier.logger = this.logger;
342
447
  const request = yield oci_common_2.composeRequest({
343
448
  baseEndpoint: this._endpoint,
344
449
  defaultHeaders: this._defaultHeaders,
@@ -373,12 +478,11 @@ class ManagementAgentClient {
373
478
  * @param DeleteWorkRequestRequest
374
479
  * @return DeleteWorkRequestResponse
375
480
  * @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.
481
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/managementagent/DeleteWorkRequest.ts.html |here} to see how to use DeleteWorkRequest API.
377
482
  */
378
483
  deleteWorkRequest(deleteWorkRequestRequest) {
379
484
  return __awaiter(this, void 0, void 0, function* () {
380
- if (this.logger)
381
- this.logger.debug("Calling operation ManagementAgentClient#deleteWorkRequest.");
485
+ oci_common_2.logger.debug("Calling operation ManagementAgentClient#deleteWorkRequest.");
382
486
  const operationName = "deleteWorkRequest";
383
487
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/WorkRequest/DeleteWorkRequest";
384
488
  const pathParams = {
@@ -392,8 +496,6 @@ class ManagementAgentClient {
392
496
  };
393
497
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
394
498
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteWorkRequestRequest.retryConfiguration, specRetryConfiguration);
395
- if (this.logger)
396
- retrier.logger = this.logger;
397
499
  const request = yield oci_common_2.composeRequest({
398
500
  baseEndpoint: this._endpoint,
399
501
  defaultHeaders: this._defaultHeaders,
@@ -429,12 +531,11 @@ class ManagementAgentClient {
429
531
  * @param DeployPluginsRequest
430
532
  * @return DeployPluginsResponse
431
533
  * @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.
534
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/managementagent/DeployPlugins.ts.html |here} to see how to use DeployPlugins API.
433
535
  */
434
536
  deployPlugins(deployPluginsRequest) {
435
537
  return __awaiter(this, void 0, void 0, function* () {
436
- if (this.logger)
437
- this.logger.debug("Calling operation ManagementAgentClient#deployPlugins.");
538
+ oci_common_2.logger.debug("Calling operation ManagementAgentClient#deployPlugins.");
438
539
  const operationName = "deployPlugins";
439
540
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgent/DeployPlugins";
440
541
  const pathParams = {};
@@ -446,8 +547,6 @@ class ManagementAgentClient {
446
547
  };
447
548
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
448
549
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deployPluginsRequest.retryConfiguration, specRetryConfiguration);
449
- if (this.logger)
450
- retrier.logger = this.logger;
451
550
  const request = yield oci_common_2.composeRequest({
452
551
  baseEndpoint: this._endpoint,
453
552
  defaultHeaders: this._defaultHeaders,
@@ -490,12 +589,11 @@ class ManagementAgentClient {
490
589
  * @param GetAutoUpgradableConfigRequest
491
590
  * @return GetAutoUpgradableConfigResponse
492
591
  * @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.
592
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/managementagent/GetAutoUpgradableConfig.ts.html |here} to see how to use GetAutoUpgradableConfig API.
494
593
  */
495
594
  getAutoUpgradableConfig(getAutoUpgradableConfigRequest) {
496
595
  return __awaiter(this, void 0, void 0, function* () {
497
- if (this.logger)
498
- this.logger.debug("Calling operation ManagementAgentClient#getAutoUpgradableConfig.");
596
+ oci_common_2.logger.debug("Calling operation ManagementAgentClient#getAutoUpgradableConfig.");
499
597
  const operationName = "getAutoUpgradableConfig";
500
598
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgent/GetAutoUpgradableConfig";
501
599
  const pathParams = {};
@@ -508,8 +606,6 @@ class ManagementAgentClient {
508
606
  };
509
607
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
510
608
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getAutoUpgradableConfigRequest.retryConfiguration, specRetryConfiguration);
511
- if (this.logger)
512
- retrier.logger = this.logger;
513
609
  const request = yield oci_common_2.composeRequest({
514
610
  baseEndpoint: this._endpoint,
515
611
  defaultHeaders: this._defaultHeaders,
@@ -542,18 +638,80 @@ class ManagementAgentClient {
542
638
  }
543
639
  });
544
640
  }
641
+ /**
642
+ * Get Datasource details for given Id and given Management Agent.
643
+ *
644
+ * This operation does not retry by default if the user has not defined a retry configuration.
645
+ * @param GetDataSourceRequest
646
+ * @return GetDataSourceResponse
647
+ * @throws OciError when an error occurs
648
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/managementagent/GetDataSource.ts.html |here} to see how to use GetDataSource API.
649
+ */
650
+ getDataSource(getDataSourceRequest) {
651
+ return __awaiter(this, void 0, void 0, function* () {
652
+ oci_common_2.logger.debug("Calling operation ManagementAgentClient#getDataSource.");
653
+ const operationName = "getDataSource";
654
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgent/GetDataSource";
655
+ const pathParams = {
656
+ "{managementAgentId}": getDataSourceRequest.managementAgentId,
657
+ "{dataSourceKey}": getDataSourceRequest.dataSourceKey
658
+ };
659
+ const queryParams = {};
660
+ let headerParams = {
661
+ "Content-Type": common.Constants.APPLICATION_JSON,
662
+ "opc-retry-token": getDataSourceRequest.opcRetryToken,
663
+ "opc-request-id": getDataSourceRequest.opcRequestId
664
+ };
665
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
666
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDataSourceRequest.retryConfiguration, specRetryConfiguration);
667
+ const request = yield oci_common_2.composeRequest({
668
+ baseEndpoint: this._endpoint,
669
+ defaultHeaders: this._defaultHeaders,
670
+ path: "/managementAgents/{managementAgentId}/dataSources/{dataSourceKey}",
671
+ method: "GET",
672
+ pathParams: pathParams,
673
+ headerParams: headerParams,
674
+ queryParams: queryParams
675
+ });
676
+ try {
677
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
678
+ const sdkResponse = oci_common_2.composeResponse({
679
+ responseObject: {},
680
+ body: yield response.json(),
681
+ bodyKey: "dataSource",
682
+ bodyModel: model.DataSource,
683
+ type: "model.DataSource",
684
+ responseHeaders: [
685
+ {
686
+ value: response.headers.get("opc-request-id"),
687
+ key: "opcRequestId",
688
+ dataType: "string"
689
+ },
690
+ {
691
+ value: response.headers.get("etag"),
692
+ key: "etag",
693
+ dataType: "string"
694
+ }
695
+ ]
696
+ });
697
+ return sdkResponse;
698
+ }
699
+ catch (err) {
700
+ throw err;
701
+ }
702
+ });
703
+ }
545
704
  /**
546
705
  * Gets complete details of the inventory of a given agent id
547
706
  * This operation does not retry by default if the user has not defined a retry configuration.
548
707
  * @param GetManagementAgentRequest
549
708
  * @return GetManagementAgentResponse
550
709
  * @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.
710
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/managementagent/GetManagementAgent.ts.html |here} to see how to use GetManagementAgent API.
552
711
  */
553
712
  getManagementAgent(getManagementAgentRequest) {
554
713
  return __awaiter(this, void 0, void 0, function* () {
555
- if (this.logger)
556
- this.logger.debug("Calling operation ManagementAgentClient#getManagementAgent.");
714
+ oci_common_2.logger.debug("Calling operation ManagementAgentClient#getManagementAgent.");
557
715
  const operationName = "getManagementAgent";
558
716
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgent/GetManagementAgent";
559
717
  const pathParams = {
@@ -566,8 +724,6 @@ class ManagementAgentClient {
566
724
  };
567
725
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
568
726
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getManagementAgentRequest.retryConfiguration, specRetryConfiguration);
569
- if (this.logger)
570
- retrier.logger = this.logger;
571
727
  const request = yield oci_common_2.composeRequest({
572
728
  baseEndpoint: this._endpoint,
573
729
  defaultHeaders: this._defaultHeaders,
@@ -611,12 +767,11 @@ class ManagementAgentClient {
611
767
  * @param GetManagementAgentInstallKeyRequest
612
768
  * @return GetManagementAgentInstallKeyResponse
613
769
  * @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.
770
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/managementagent/GetManagementAgentInstallKey.ts.html |here} to see how to use GetManagementAgentInstallKey API.
615
771
  */
616
772
  getManagementAgentInstallKey(getManagementAgentInstallKeyRequest) {
617
773
  return __awaiter(this, void 0, void 0, function* () {
618
- if (this.logger)
619
- this.logger.debug("Calling operation ManagementAgentClient#getManagementAgentInstallKey.");
774
+ oci_common_2.logger.debug("Calling operation ManagementAgentClient#getManagementAgentInstallKey.");
620
775
  const operationName = "getManagementAgentInstallKey";
621
776
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgentInstallKey/GetManagementAgentInstallKey";
622
777
  const pathParams = {
@@ -629,8 +784,6 @@ class ManagementAgentClient {
629
784
  };
630
785
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
631
786
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getManagementAgentInstallKeyRequest.retryConfiguration, specRetryConfiguration);
632
- if (this.logger)
633
- retrier.logger = this.logger;
634
787
  const request = yield oci_common_2.composeRequest({
635
788
  baseEndpoint: this._endpoint,
636
789
  defaultHeaders: this._defaultHeaders,
@@ -675,12 +828,11 @@ class ManagementAgentClient {
675
828
  * @param GetManagementAgentInstallKeyContentRequest
676
829
  * @return GetManagementAgentInstallKeyContentResponse
677
830
  * @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.
831
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/managementagent/GetManagementAgentInstallKeyContent.ts.html |here} to see how to use GetManagementAgentInstallKeyContent API.
679
832
  */
680
833
  getManagementAgentInstallKeyContent(getManagementAgentInstallKeyContentRequest) {
681
834
  return __awaiter(this, void 0, void 0, function* () {
682
- if (this.logger)
683
- this.logger.debug("Calling operation ManagementAgentClient#getManagementAgentInstallKeyContent.");
835
+ oci_common_2.logger.debug("Calling operation ManagementAgentClient#getManagementAgentInstallKeyContent.");
684
836
  const operationName = "getManagementAgentInstallKeyContent";
685
837
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgentInstallKey/GetManagementAgentInstallKeyContent";
686
838
  const pathParams = {
@@ -695,8 +847,6 @@ class ManagementAgentClient {
695
847
  };
696
848
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
697
849
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getManagementAgentInstallKeyContentRequest.retryConfiguration, specRetryConfiguration);
698
- if (this.logger)
699
- retrier.logger = this.logger;
700
850
  const request = yield oci_common_2.composeRequest({
701
851
  baseEndpoint: this._endpoint,
702
852
  defaultHeaders: this._defaultHeaders,
@@ -744,12 +894,11 @@ class ManagementAgentClient {
744
894
  * @param GetWorkRequestRequest
745
895
  * @return GetWorkRequestResponse
746
896
  * @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.
897
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/managementagent/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
748
898
  */
749
899
  getWorkRequest(getWorkRequestRequest) {
750
900
  return __awaiter(this, void 0, void 0, function* () {
751
- if (this.logger)
752
- this.logger.debug("Calling operation ManagementAgentClient#getWorkRequest.");
901
+ oci_common_2.logger.debug("Calling operation ManagementAgentClient#getWorkRequest.");
753
902
  const operationName = "getWorkRequest";
754
903
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/WorkRequest/GetWorkRequest";
755
904
  const pathParams = {
@@ -762,8 +911,6 @@ class ManagementAgentClient {
762
911
  };
763
912
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
764
913
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
765
- if (this.logger)
766
- retrier.logger = this.logger;
767
914
  const request = yield oci_common_2.composeRequest({
768
915
  baseEndpoint: this._endpoint,
769
916
  defaultHeaders: this._defaultHeaders,
@@ -812,12 +959,11 @@ class ManagementAgentClient {
812
959
  * @param ListAvailabilityHistoriesRequest
813
960
  * @return ListAvailabilityHistoriesResponse
814
961
  * @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.
962
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/managementagent/ListAvailabilityHistories.ts.html |here} to see how to use ListAvailabilityHistories API.
816
963
  */
817
964
  listAvailabilityHistories(listAvailabilityHistoriesRequest) {
818
965
  return __awaiter(this, void 0, void 0, function* () {
819
- if (this.logger)
820
- this.logger.debug("Calling operation ManagementAgentClient#listAvailabilityHistories.");
966
+ oci_common_2.logger.debug("Calling operation ManagementAgentClient#listAvailabilityHistories.");
821
967
  const operationName = "listAvailabilityHistories";
822
968
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgent/ListAvailabilityHistories";
823
969
  const pathParams = {
@@ -837,8 +983,6 @@ class ManagementAgentClient {
837
983
  };
838
984
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
839
985
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listAvailabilityHistoriesRequest.retryConfiguration, specRetryConfiguration);
840
- if (this.logger)
841
- retrier.logger = this.logger;
842
986
  const request = yield oci_common_2.composeRequest({
843
987
  baseEndpoint: this._endpoint,
844
988
  defaultHeaders: this._defaultHeaders,
@@ -916,6 +1060,113 @@ class ManagementAgentClient {
916
1060
  listAvailabilityHistoriesResponseIterator(request) {
917
1061
  return oci_common_1.paginateResponses(request, req => this.listAvailabilityHistories(req));
918
1062
  }
1063
+ /**
1064
+ * A list of Management Agent Data Sources for the given Management Agent Id.
1065
+ *
1066
+ * This operation does not retry by default if the user has not defined a retry configuration.
1067
+ * @param ListDataSourcesRequest
1068
+ * @return ListDataSourcesResponse
1069
+ * @throws OciError when an error occurs
1070
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/managementagent/ListDataSources.ts.html |here} to see how to use ListDataSources API.
1071
+ */
1072
+ listDataSources(listDataSourcesRequest) {
1073
+ return __awaiter(this, void 0, void 0, function* () {
1074
+ oci_common_2.logger.debug("Calling operation ManagementAgentClient#listDataSources.");
1075
+ const operationName = "listDataSources";
1076
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgent/ListDataSources";
1077
+ const pathParams = {
1078
+ "{managementAgentId}": listDataSourcesRequest.managementAgentId
1079
+ };
1080
+ const queryParams = {
1081
+ "page": listDataSourcesRequest.page,
1082
+ "limit": listDataSourcesRequest.limit,
1083
+ "sortOrder": listDataSourcesRequest.sortOrder,
1084
+ "sortBy": listDataSourcesRequest.sortBy,
1085
+ "name": listDataSourcesRequest.name
1086
+ };
1087
+ let headerParams = {
1088
+ "Content-Type": common.Constants.APPLICATION_JSON,
1089
+ "opc-request-id": listDataSourcesRequest.opcRequestId
1090
+ };
1091
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1092
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDataSourcesRequest.retryConfiguration, specRetryConfiguration);
1093
+ const request = yield oci_common_2.composeRequest({
1094
+ baseEndpoint: this._endpoint,
1095
+ defaultHeaders: this._defaultHeaders,
1096
+ path: "/managementAgents/{managementAgentId}/dataSources",
1097
+ method: "GET",
1098
+ pathParams: pathParams,
1099
+ headerParams: headerParams,
1100
+ queryParams: queryParams
1101
+ });
1102
+ try {
1103
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1104
+ const sdkResponse = oci_common_2.composeResponse({
1105
+ responseObject: {},
1106
+ body: yield response.json(),
1107
+ bodyKey: "items",
1108
+ bodyModel: model.DataSourceSummary,
1109
+ type: "Array<model.DataSourceSummary>",
1110
+ responseHeaders: [
1111
+ {
1112
+ value: response.headers.get("opc-next-page"),
1113
+ key: "opcNextPage",
1114
+ dataType: "string"
1115
+ },
1116
+ {
1117
+ value: response.headers.get("opc-request-id"),
1118
+ key: "opcRequestId",
1119
+ dataType: "string"
1120
+ }
1121
+ ]
1122
+ });
1123
+ return sdkResponse;
1124
+ }
1125
+ catch (err) {
1126
+ throw err;
1127
+ }
1128
+ });
1129
+ }
1130
+ /**
1131
+ * NOTE: This function is deprecated in favor of listDataSourcesRecordIterator function.
1132
+ * Creates a new async iterator which will iterate over the models.DataSourceSummary objects
1133
+ * contained in responses from the listDataSources operation. This iterator will fetch more data from the
1134
+ * server as needed.
1135
+ *
1136
+ * @param request a request which can be sent to the service operation
1137
+ */
1138
+ listAllDataSources(request) {
1139
+ return oci_common_1.paginateRecords(request, req => this.listDataSources(req));
1140
+ }
1141
+ /**
1142
+ * NOTE: This function is deprecated in favor of listDataSourcesResponseIterator function.
1143
+ * Creates a new async iterator which will iterate over the responses received from the listDataSources operation. This iterator
1144
+ * will fetch more data from the server as needed.
1145
+ *
1146
+ * @param request a request which can be sent to the service operation
1147
+ */
1148
+ listAllDataSourcesResponses(request) {
1149
+ return oci_common_1.paginateResponses(request, req => this.listDataSources(req));
1150
+ }
1151
+ /**
1152
+ * Creates a new async iterator which will iterate over the models.DataSourceSummary objects
1153
+ * contained in responses from the listDataSources operation. This iterator will fetch more data from the
1154
+ * server as needed.
1155
+ *
1156
+ * @param request a request which can be sent to the service operation
1157
+ */
1158
+ listDataSourcesRecordIterator(request) {
1159
+ return oci_common_1.paginateRecords(request, req => this.listDataSources(req));
1160
+ }
1161
+ /**
1162
+ * Creates a new async iterator which will iterate over the responses received from the listDataSources operation. This iterator
1163
+ * will fetch more data from the server as needed.
1164
+ *
1165
+ * @param request a request which can be sent to the service operation
1166
+ */
1167
+ listDataSourcesResponseIterator(request) {
1168
+ return oci_common_1.paginateResponses(request, req => this.listDataSources(req));
1169
+ }
919
1170
  /**
920
1171
  * Get supported agent image information
921
1172
  *
@@ -923,12 +1174,11 @@ class ManagementAgentClient {
923
1174
  * @param ListManagementAgentImagesRequest
924
1175
  * @return ListManagementAgentImagesResponse
925
1176
  * @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.
1177
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/managementagent/ListManagementAgentImages.ts.html |here} to see how to use ListManagementAgentImages API.
927
1178
  */
928
1179
  listManagementAgentImages(listManagementAgentImagesRequest) {
929
1180
  return __awaiter(this, void 0, void 0, function* () {
930
- if (this.logger)
931
- this.logger.debug("Calling operation ManagementAgentClient#listManagementAgentImages.");
1181
+ oci_common_2.logger.debug("Calling operation ManagementAgentClient#listManagementAgentImages.");
932
1182
  const operationName = "listManagementAgentImages";
933
1183
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgentImage/ListManagementAgentImages";
934
1184
  const pathParams = {};
@@ -949,8 +1199,6 @@ class ManagementAgentClient {
949
1199
  };
950
1200
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
951
1201
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listManagementAgentImagesRequest.retryConfiguration, specRetryConfiguration);
952
- if (this.logger)
953
- retrier.logger = this.logger;
954
1202
  const request = yield oci_common_2.composeRequest({
955
1203
  baseEndpoint: this._endpoint,
956
1204
  defaultHeaders: this._defaultHeaders,
@@ -1035,12 +1283,11 @@ class ManagementAgentClient {
1035
1283
  * @param ListManagementAgentInstallKeysRequest
1036
1284
  * @return ListManagementAgentInstallKeysResponse
1037
1285
  * @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.
1286
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/managementagent/ListManagementAgentInstallKeys.ts.html |here} to see how to use ListManagementAgentInstallKeys API.
1039
1287
  */
1040
1288
  listManagementAgentInstallKeys(listManagementAgentInstallKeysRequest) {
1041
1289
  return __awaiter(this, void 0, void 0, function* () {
1042
- if (this.logger)
1043
- this.logger.debug("Calling operation ManagementAgentClient#listManagementAgentInstallKeys.");
1290
+ oci_common_2.logger.debug("Calling operation ManagementAgentClient#listManagementAgentInstallKeys.");
1044
1291
  const operationName = "listManagementAgentInstallKeys";
1045
1292
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgentInstallKey/ListManagementAgentInstallKeys";
1046
1293
  const pathParams = {};
@@ -1060,8 +1307,6 @@ class ManagementAgentClient {
1060
1307
  };
1061
1308
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1062
1309
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listManagementAgentInstallKeysRequest.retryConfiguration, specRetryConfiguration);
1063
- if (this.logger)
1064
- retrier.logger = this.logger;
1065
1310
  const request = yield oci_common_2.composeRequest({
1066
1311
  baseEndpoint: this._endpoint,
1067
1312
  defaultHeaders: this._defaultHeaders,
@@ -1146,12 +1391,11 @@ class ManagementAgentClient {
1146
1391
  * @param ListManagementAgentPluginsRequest
1147
1392
  * @return ListManagementAgentPluginsResponse
1148
1393
  * @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.
1394
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/managementagent/ListManagementAgentPlugins.ts.html |here} to see how to use ListManagementAgentPlugins API.
1150
1395
  */
1151
1396
  listManagementAgentPlugins(listManagementAgentPluginsRequest) {
1152
1397
  return __awaiter(this, void 0, void 0, function* () {
1153
- if (this.logger)
1154
- this.logger.debug("Calling operation ManagementAgentClient#listManagementAgentPlugins.");
1398
+ oci_common_2.logger.debug("Calling operation ManagementAgentClient#listManagementAgentPlugins.");
1155
1399
  const operationName = "listManagementAgentPlugins";
1156
1400
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgentPlugin/ListManagementAgentPlugins";
1157
1401
  const pathParams = {};
@@ -1172,8 +1416,6 @@ class ManagementAgentClient {
1172
1416
  };
1173
1417
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1174
1418
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listManagementAgentPluginsRequest.retryConfiguration, specRetryConfiguration);
1175
- if (this.logger)
1176
- retrier.logger = this.logger;
1177
1419
  const request = yield oci_common_2.composeRequest({
1178
1420
  baseEndpoint: this._endpoint,
1179
1421
  defaultHeaders: this._defaultHeaders,
@@ -1260,12 +1502,11 @@ class ManagementAgentClient {
1260
1502
  * @param ListManagementAgentsRequest
1261
1503
  * @return ListManagementAgentsResponse
1262
1504
  * @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.
1505
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/managementagent/ListManagementAgents.ts.html |here} to see how to use ListManagementAgents API.
1264
1506
  */
1265
1507
  listManagementAgents(listManagementAgentsRequest) {
1266
1508
  return __awaiter(this, void 0, void 0, function* () {
1267
- if (this.logger)
1268
- this.logger.debug("Calling operation ManagementAgentClient#listManagementAgents.");
1509
+ oci_common_2.logger.debug("Calling operation ManagementAgentClient#listManagementAgents.");
1269
1510
  const operationName = "listManagementAgents";
1270
1511
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgent/ListManagementAgents";
1271
1512
  const pathParams = {};
@@ -1286,7 +1527,9 @@ class ManagementAgentClient {
1286
1527
  "sortOrder": listManagementAgentsRequest.sortOrder,
1287
1528
  "sortBy": listManagementAgentsRequest.sortBy,
1288
1529
  "compartmentIdInSubtree": listManagementAgentsRequest.compartmentIdInSubtree,
1289
- "accessLevel": listManagementAgentsRequest.accessLevel
1530
+ "accessLevel": listManagementAgentsRequest.accessLevel,
1531
+ "dataSourceType": listManagementAgentsRequest.dataSourceType,
1532
+ "dataSourceName": listManagementAgentsRequest.dataSourceName
1290
1533
  };
1291
1534
  let headerParams = {
1292
1535
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -1294,8 +1537,6 @@ class ManagementAgentClient {
1294
1537
  };
1295
1538
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1296
1539
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listManagementAgentsRequest.retryConfiguration, specRetryConfiguration);
1297
- if (this.logger)
1298
- retrier.logger = this.logger;
1299
1540
  const request = yield oci_common_2.composeRequest({
1300
1541
  baseEndpoint: this._endpoint,
1301
1542
  defaultHeaders: this._defaultHeaders,
@@ -1380,12 +1621,11 @@ class ManagementAgentClient {
1380
1621
  * @param ListWorkRequestErrorsRequest
1381
1622
  * @return ListWorkRequestErrorsResponse
1382
1623
  * @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.
1624
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/managementagent/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
1384
1625
  */
1385
1626
  listWorkRequestErrors(listWorkRequestErrorsRequest) {
1386
1627
  return __awaiter(this, void 0, void 0, function* () {
1387
- if (this.logger)
1388
- this.logger.debug("Calling operation ManagementAgentClient#listWorkRequestErrors.");
1628
+ oci_common_2.logger.debug("Calling operation ManagementAgentClient#listWorkRequestErrors.");
1389
1629
  const operationName = "listWorkRequestErrors";
1390
1630
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/WorkRequestError/ListWorkRequestErrors";
1391
1631
  const pathParams = {
@@ -1403,8 +1643,6 @@ class ManagementAgentClient {
1403
1643
  };
1404
1644
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1405
1645
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
1406
- if (this.logger)
1407
- retrier.logger = this.logger;
1408
1646
  const request = yield oci_common_2.composeRequest({
1409
1647
  baseEndpoint: this._endpoint,
1410
1648
  defaultHeaders: this._defaultHeaders,
@@ -1489,12 +1727,11 @@ class ManagementAgentClient {
1489
1727
  * @param ListWorkRequestLogsRequest
1490
1728
  * @return ListWorkRequestLogsResponse
1491
1729
  * @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.
1730
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/managementagent/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
1493
1731
  */
1494
1732
  listWorkRequestLogs(listWorkRequestLogsRequest) {
1495
1733
  return __awaiter(this, void 0, void 0, function* () {
1496
- if (this.logger)
1497
- this.logger.debug("Calling operation ManagementAgentClient#listWorkRequestLogs.");
1734
+ oci_common_2.logger.debug("Calling operation ManagementAgentClient#listWorkRequestLogs.");
1498
1735
  const operationName = "listWorkRequestLogs";
1499
1736
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/WorkRequestLogEntry/ListWorkRequestLogs";
1500
1737
  const pathParams = {
@@ -1512,8 +1749,6 @@ class ManagementAgentClient {
1512
1749
  };
1513
1750
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1514
1751
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
1515
- if (this.logger)
1516
- retrier.logger = this.logger;
1517
1752
  const request = yield oci_common_2.composeRequest({
1518
1753
  baseEndpoint: this._endpoint,
1519
1754
  defaultHeaders: this._defaultHeaders,
@@ -1598,12 +1833,11 @@ class ManagementAgentClient {
1598
1833
  * @param ListWorkRequestsRequest
1599
1834
  * @return ListWorkRequestsResponse
1600
1835
  * @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.
1836
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/managementagent/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
1602
1837
  */
1603
1838
  listWorkRequests(listWorkRequestsRequest) {
1604
1839
  return __awaiter(this, void 0, void 0, function* () {
1605
- if (this.logger)
1606
- this.logger.debug("Calling operation ManagementAgentClient#listWorkRequests.");
1840
+ oci_common_2.logger.debug("Calling operation ManagementAgentClient#listWorkRequests.");
1607
1841
  const operationName = "listWorkRequests";
1608
1842
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/WorkRequest/ListWorkRequests";
1609
1843
  const pathParams = {};
@@ -1624,8 +1858,6 @@ class ManagementAgentClient {
1624
1858
  };
1625
1859
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1626
1860
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
1627
- if (this.logger)
1628
- retrier.logger = this.logger;
1629
1861
  const request = yield oci_common_2.composeRequest({
1630
1862
  baseEndpoint: this._endpoint,
1631
1863
  defaultHeaders: this._defaultHeaders,
@@ -1711,12 +1943,11 @@ class ManagementAgentClient {
1711
1943
  * @param SetAutoUpgradableConfigRequest
1712
1944
  * @return SetAutoUpgradableConfigResponse
1713
1945
  * @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.
1946
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/managementagent/SetAutoUpgradableConfig.ts.html |here} to see how to use SetAutoUpgradableConfig API.
1715
1947
  */
1716
1948
  setAutoUpgradableConfig(setAutoUpgradableConfigRequest) {
1717
1949
  return __awaiter(this, void 0, void 0, function* () {
1718
- if (this.logger)
1719
- this.logger.debug("Calling operation ManagementAgentClient#setAutoUpgradableConfig.");
1950
+ oci_common_2.logger.debug("Calling operation ManagementAgentClient#setAutoUpgradableConfig.");
1720
1951
  const operationName = "setAutoUpgradableConfig";
1721
1952
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgent/SetAutoUpgradableConfig";
1722
1953
  const pathParams = {};
@@ -1728,8 +1959,6 @@ class ManagementAgentClient {
1728
1959
  };
1729
1960
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1730
1961
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, setAutoUpgradableConfigRequest.retryConfiguration, specRetryConfiguration);
1731
- if (this.logger)
1732
- retrier.logger = this.logger;
1733
1962
  const request = yield oci_common_2.composeRequest({
1734
1963
  baseEndpoint: this._endpoint,
1735
1964
  defaultHeaders: this._defaultHeaders,
@@ -1771,12 +2000,11 @@ class ManagementAgentClient {
1771
2000
  * @param SummarizeManagementAgentCountsRequest
1772
2001
  * @return SummarizeManagementAgentCountsResponse
1773
2002
  * @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.
2003
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/managementagent/SummarizeManagementAgentCounts.ts.html |here} to see how to use SummarizeManagementAgentCounts API.
1775
2004
  */
1776
2005
  summarizeManagementAgentCounts(summarizeManagementAgentCountsRequest) {
1777
2006
  return __awaiter(this, void 0, void 0, function* () {
1778
- if (this.logger)
1779
- this.logger.debug("Calling operation ManagementAgentClient#summarizeManagementAgentCounts.");
2007
+ oci_common_2.logger.debug("Calling operation ManagementAgentClient#summarizeManagementAgentCounts.");
1780
2008
  const operationName = "summarizeManagementAgentCounts";
1781
2009
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgent/SummarizeManagementAgentCounts";
1782
2010
  const pathParams = {};
@@ -1794,8 +2022,6 @@ class ManagementAgentClient {
1794
2022
  };
1795
2023
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1796
2024
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, summarizeManagementAgentCountsRequest.retryConfiguration, specRetryConfiguration);
1797
- if (this.logger)
1798
- retrier.logger = this.logger;
1799
2025
  const request = yield oci_common_2.composeRequest({
1800
2026
  baseEndpoint: this._endpoint,
1801
2027
  defaultHeaders: this._defaultHeaders,
@@ -1841,12 +2067,11 @@ class ManagementAgentClient {
1841
2067
  * @param SummarizeManagementAgentPluginCountsRequest
1842
2068
  * @return SummarizeManagementAgentPluginCountsResponse
1843
2069
  * @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.
2070
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/managementagent/SummarizeManagementAgentPluginCounts.ts.html |here} to see how to use SummarizeManagementAgentPluginCounts API.
1845
2071
  */
1846
2072
  summarizeManagementAgentPluginCounts(summarizeManagementAgentPluginCountsRequest) {
1847
2073
  return __awaiter(this, void 0, void 0, function* () {
1848
- if (this.logger)
1849
- this.logger.debug("Calling operation ManagementAgentClient#summarizeManagementAgentPluginCounts.");
2074
+ oci_common_2.logger.debug("Calling operation ManagementAgentClient#summarizeManagementAgentPluginCounts.");
1850
2075
  const operationName = "summarizeManagementAgentPluginCounts";
1851
2076
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgent/SummarizeManagementAgentPluginCounts";
1852
2077
  const pathParams = {};
@@ -1862,8 +2087,6 @@ class ManagementAgentClient {
1862
2087
  };
1863
2088
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1864
2089
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, summarizeManagementAgentPluginCountsRequest.retryConfiguration, specRetryConfiguration);
1865
- if (this.logger)
1866
- retrier.logger = this.logger;
1867
2090
  const request = yield oci_common_2.composeRequest({
1868
2091
  baseEndpoint: this._endpoint,
1869
2092
  defaultHeaders: this._defaultHeaders,
@@ -1901,6 +2124,67 @@ class ManagementAgentClient {
1901
2124
  }
1902
2125
  });
1903
2126
  }
2127
+ /**
2128
+ * Datasource update request to given Management Agent.
2129
+ *
2130
+ * This operation does not retry by default if the user has not defined a retry configuration.
2131
+ * @param UpdateDataSourceRequest
2132
+ * @return UpdateDataSourceResponse
2133
+ * @throws OciError when an error occurs
2134
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/managementagent/UpdateDataSource.ts.html |here} to see how to use UpdateDataSource API.
2135
+ */
2136
+ updateDataSource(updateDataSourceRequest) {
2137
+ return __awaiter(this, void 0, void 0, function* () {
2138
+ oci_common_2.logger.debug("Calling operation ManagementAgentClient#updateDataSource.");
2139
+ const operationName = "updateDataSource";
2140
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgent/UpdateDataSource";
2141
+ const pathParams = {
2142
+ "{managementAgentId}": updateDataSourceRequest.managementAgentId,
2143
+ "{dataSourceKey}": updateDataSourceRequest.dataSourceKey
2144
+ };
2145
+ const queryParams = {};
2146
+ let headerParams = {
2147
+ "Content-Type": common.Constants.APPLICATION_JSON,
2148
+ "opc-retry-token": updateDataSourceRequest.opcRetryToken,
2149
+ "opc-request-id": updateDataSourceRequest.opcRequestId,
2150
+ "if-match": updateDataSourceRequest.ifMatch
2151
+ };
2152
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
2153
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateDataSourceRequest.retryConfiguration, specRetryConfiguration);
2154
+ const request = yield oci_common_2.composeRequest({
2155
+ baseEndpoint: this._endpoint,
2156
+ defaultHeaders: this._defaultHeaders,
2157
+ path: "/managementAgents/{managementAgentId}/dataSources/{dataSourceKey}",
2158
+ method: "PUT",
2159
+ bodyContent: common.ObjectSerializer.serialize(updateDataSourceRequest.updateDataSourceDetails, "UpdateDataSourceDetails", model.UpdateDataSourceDetails.getJsonObj),
2160
+ pathParams: pathParams,
2161
+ headerParams: headerParams,
2162
+ queryParams: queryParams
2163
+ });
2164
+ try {
2165
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2166
+ const sdkResponse = oci_common_2.composeResponse({
2167
+ responseObject: {},
2168
+ responseHeaders: [
2169
+ {
2170
+ value: response.headers.get("opc-work-request-id"),
2171
+ key: "opcWorkRequestId",
2172
+ dataType: "string"
2173
+ },
2174
+ {
2175
+ value: response.headers.get("opc-request-id"),
2176
+ key: "opcRequestId",
2177
+ dataType: "string"
2178
+ }
2179
+ ]
2180
+ });
2181
+ return sdkResponse;
2182
+ }
2183
+ catch (err) {
2184
+ throw err;
2185
+ }
2186
+ });
2187
+ }
1904
2188
  /**
1905
2189
  * API to update the console managed properties of the Management Agent.
1906
2190
  *
@@ -1908,12 +2192,11 @@ class ManagementAgentClient {
1908
2192
  * @param UpdateManagementAgentRequest
1909
2193
  * @return UpdateManagementAgentResponse
1910
2194
  * @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.
2195
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/managementagent/UpdateManagementAgent.ts.html |here} to see how to use UpdateManagementAgent API.
1912
2196
  */
1913
2197
  updateManagementAgent(updateManagementAgentRequest) {
1914
2198
  return __awaiter(this, void 0, void 0, function* () {
1915
- if (this.logger)
1916
- this.logger.debug("Calling operation ManagementAgentClient#updateManagementAgent.");
2199
+ oci_common_2.logger.debug("Calling operation ManagementAgentClient#updateManagementAgent.");
1917
2200
  const operationName = "updateManagementAgent";
1918
2201
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgent/UpdateManagementAgent";
1919
2202
  const pathParams = {
@@ -1928,8 +2211,6 @@ class ManagementAgentClient {
1928
2211
  };
1929
2212
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1930
2213
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateManagementAgentRequest.retryConfiguration, specRetryConfiguration);
1931
- if (this.logger)
1932
- retrier.logger = this.logger;
1933
2214
  const request = yield oci_common_2.composeRequest({
1934
2215
  baseEndpoint: this._endpoint,
1935
2216
  defaultHeaders: this._defaultHeaders,
@@ -1975,12 +2256,11 @@ class ManagementAgentClient {
1975
2256
  * @param UpdateManagementAgentInstallKeyRequest
1976
2257
  * @return UpdateManagementAgentInstallKeyResponse
1977
2258
  * @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.
2259
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/managementagent/UpdateManagementAgentInstallKey.ts.html |here} to see how to use UpdateManagementAgentInstallKey API.
1979
2260
  */
1980
2261
  updateManagementAgentInstallKey(updateManagementAgentInstallKeyRequest) {
1981
2262
  return __awaiter(this, void 0, void 0, function* () {
1982
- if (this.logger)
1983
- this.logger.debug("Calling operation ManagementAgentClient#updateManagementAgentInstallKey.");
2263
+ oci_common_2.logger.debug("Calling operation ManagementAgentClient#updateManagementAgentInstallKey.");
1984
2264
  const operationName = "updateManagementAgentInstallKey";
1985
2265
  const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgentInstallKey/UpdateManagementAgentInstallKey";
1986
2266
  const pathParams = {
@@ -1995,8 +2275,6 @@ class ManagementAgentClient {
1995
2275
  };
1996
2276
  const specRetryConfiguration = common.NoRetryConfigurationDetails;
1997
2277
  const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateManagementAgentInstallKeyRequest.retryConfiguration, specRetryConfiguration);
1998
- if (this.logger)
1999
- retrier.logger = this.logger;
2000
2278
  const request = yield oci_common_2.composeRequest({
2001
2279
  baseEndpoint: this._endpoint,
2002
2280
  defaultHeaders: this._defaultHeaders,