oci-stackmonitoring 2.70.0 → 2.70.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.
- package/lib/client.d.ts +95 -22
- package/lib/client.js +414 -22
- package/lib/client.js.map +1 -1
- package/lib/model/auto-promote-config-details.d.ts +44 -0
- package/lib/model/auto-promote-config-details.js +61 -0
- package/lib/model/auto-promote-config-details.js.map +1 -0
- package/lib/model/auto-promote-config-summary.d.ts +41 -0
- package/lib/model/auto-promote-config-summary.js +63 -0
- package/lib/model/auto-promote-config-summary.js.map +1 -0
- package/lib/model/change-config-compartment-details.d.ts +27 -0
- package/lib/model/change-config-compartment-details.js +29 -0
- package/lib/model/change-config-compartment-details.js.map +1 -0
- package/lib/model/config-collection.d.ts +26 -0
- package/lib/model/config-collection.js +61 -0
- package/lib/model/config-collection.js.map +1 -0
- package/lib/model/config-summary.d.ts +74 -0
- package/lib/model/config-summary.js +68 -0
- package/lib/model/config-summary.js.map +1 -0
- package/lib/model/config.d.ts +93 -0
- package/lib/model/config.js +82 -0
- package/lib/model/config.js.map +1 -0
- package/lib/model/create-auto-promote-config-details.d.ts +36 -0
- package/lib/model/create-auto-promote-config-details.js +58 -0
- package/lib/model/create-auto-promote-config-details.js.map +1 -0
- package/lib/model/create-config-details.d.ts +48 -0
- package/lib/model/create-config-details.js +68 -0
- package/lib/model/create-config-details.js.map +1 -0
- package/lib/model/index.d.ts +20 -0
- package/lib/model/index.js +22 -2
- package/lib/model/index.js.map +1 -1
- package/lib/model/update-auto-promote-config-details.d.ts +29 -0
- package/lib/model/update-auto-promote-config-details.js +54 -0
- package/lib/model/update-auto-promote-config-details.js.map +1 -0
- package/lib/model/update-config-details.d.ts +44 -0
- package/lib/model/update-config-details.js +68 -0
- package/lib/model/update-config-details.js.map +1 -0
- package/lib/request/associate-monitored-resources-request.d.ts +1 -1
- package/lib/request/change-config-compartment-request.d.ts +51 -0
- package/lib/request/change-config-compartment-request.js +15 -0
- package/lib/request/change-config-compartment-request.js.map +1 -0
- package/lib/request/change-monitored-resource-compartment-request.d.ts +1 -1
- package/lib/request/create-config-request.d.ts +38 -0
- package/lib/request/create-config-request.js +15 -0
- package/lib/request/create-config-request.js.map +1 -0
- package/lib/request/create-discovery-job-request.d.ts +1 -1
- package/lib/request/create-monitored-resource-request.d.ts +1 -1
- package/lib/request/delete-config-request.d.ts +37 -0
- package/lib/request/delete-config-request.js +15 -0
- package/lib/request/delete-config-request.js.map +1 -0
- package/lib/request/delete-discovery-job-request.d.ts +1 -1
- package/lib/request/delete-monitored-resource-request.d.ts +1 -1
- package/lib/request/disable-external-database-request.d.ts +1 -1
- package/lib/request/disassociate-monitored-resources-request.d.ts +1 -1
- package/lib/request/get-config-request.d.ts +28 -0
- package/lib/request/get-config-request.js +15 -0
- package/lib/request/get-config-request.js.map +1 -0
- package/lib/request/get-discovery-job-request.d.ts +1 -1
- package/lib/request/get-monitored-resource-request.d.ts +1 -1
- package/lib/request/get-work-request-request.d.ts +1 -1
- package/lib/request/index.d.ts +12 -0
- package/lib/request/index.js +3 -1
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-configs-request.d.ts +74 -0
- package/lib/request/list-configs-request.js +25 -0
- package/lib/request/list-configs-request.js.map +1 -0
- package/lib/request/list-discovery-job-logs-request.d.ts +1 -1
- package/lib/request/list-discovery-jobs-request.d.ts +1 -1
- package/lib/request/list-work-request-errors-request.d.ts +1 -1
- package/lib/request/list-work-request-logs-request.d.ts +1 -1
- package/lib/request/list-work-requests-request.d.ts +1 -1
- package/lib/request/search-associated-resources-request.d.ts +1 -1
- package/lib/request/search-monitored-resource-associations-request.d.ts +1 -1
- package/lib/request/search-monitored-resource-members-request.d.ts +1 -1
- package/lib/request/search-monitored-resources-request.d.ts +1 -1
- package/lib/request/update-and-propagate-tags-request.d.ts +1 -1
- package/lib/request/update-config-request.d.ts +42 -0
- package/lib/request/update-config-request.js +15 -0
- package/lib/request/update-config-request.js.map +1 -0
- package/lib/request/update-monitored-resource-request.d.ts +1 -1
- package/lib/response/change-config-compartment-response.d.ts +20 -0
- package/lib/response/change-config-compartment-response.js +15 -0
- package/lib/response/change-config-compartment-response.js.map +1 -0
- package/lib/response/create-config-response.d.ts +30 -0
- package/lib/response/create-config-response.js +15 -0
- package/lib/response/create-config-response.js.map +1 -0
- package/lib/response/delete-config-response.d.ts +20 -0
- package/lib/response/delete-config-response.js +15 -0
- package/lib/response/delete-config-response.js.map +1 -0
- package/lib/response/get-config-response.d.ts +30 -0
- package/lib/response/get-config-response.js +15 -0
- package/lib/response/get-config-response.js.map +1 -0
- package/lib/response/index.d.ts +12 -0
- package/lib/response/list-configs-response.d.ts +32 -0
- package/lib/response/list-configs-response.js +15 -0
- package/lib/response/list-configs-response.js.map +1 -0
- package/lib/response/update-config-response.d.ts +30 -0
- package/lib/response/update-config-response.js +15 -0
- package/lib/response/update-config-response.js.map +1 -0
- package/lib/stackmonitoring-waiter.d.ts +8 -0
- package/lib/stackmonitoring-waiter.js +12 -0
- package/lib/stackmonitoring-waiter.js.map +1 -1
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -186,7 +186,7 @@ class StackMonitoringClient {
|
|
|
186
186
|
* @param AssociateMonitoredResourcesRequest
|
|
187
187
|
* @return AssociateMonitoredResourcesResponse
|
|
188
188
|
* @throws OciError when an error occurs
|
|
189
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.
|
|
189
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.1/stackmonitoring/AssociateMonitoredResources.ts.html |here} to see how to use AssociateMonitoredResources API.
|
|
190
190
|
*/
|
|
191
191
|
associateMonitoredResources(associateMonitoredResourcesRequest) {
|
|
192
192
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -244,6 +244,74 @@ class StackMonitoringClient {
|
|
|
244
244
|
}
|
|
245
245
|
});
|
|
246
246
|
}
|
|
247
|
+
/**
|
|
248
|
+
* Moves the configuration item to another compartment.
|
|
249
|
+
* Basically, this will disable any configuration for this configuration type in thie compartment,
|
|
250
|
+
* and will enable it in the new one.
|
|
251
|
+
* <p>
|
|
252
|
+
For example, if for a HOST resource type, the configuration with AUTO_PROMOTE in the configuration type
|
|
253
|
+
* and TRUE as value is moved, automatic discovery will not take place in this compartment any more, but in the new one.
|
|
254
|
+
* <p>
|
|
255
|
+
So this operation will have the same effect as deleting the configuration item in the old compartment and
|
|
256
|
+
* recreating it in another compartment.
|
|
257
|
+
* <p>
|
|
258
|
+
When provided, If-Match is checked against ETag values of the resource.
|
|
259
|
+
*
|
|
260
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
261
|
+
* @param ChangeConfigCompartmentRequest
|
|
262
|
+
* @return ChangeConfigCompartmentResponse
|
|
263
|
+
* @throws OciError when an error occurs
|
|
264
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.1/stackmonitoring/ChangeConfigCompartment.ts.html |here} to see how to use ChangeConfigCompartment API.
|
|
265
|
+
*/
|
|
266
|
+
changeConfigCompartment(changeConfigCompartmentRequest) {
|
|
267
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
268
|
+
if (this.logger)
|
|
269
|
+
this.logger.debug("Calling operation StackMonitoringClient#changeConfigCompartment.");
|
|
270
|
+
const operationName = "changeConfigCompartment";
|
|
271
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/Config/ChangeConfigCompartment";
|
|
272
|
+
const pathParams = {
|
|
273
|
+
"{configId}": changeConfigCompartmentRequest.configId
|
|
274
|
+
};
|
|
275
|
+
const queryParams = {};
|
|
276
|
+
let headerParams = {
|
|
277
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
278
|
+
"if-match": changeConfigCompartmentRequest.ifMatch,
|
|
279
|
+
"opc-request-id": changeConfigCompartmentRequest.opcRequestId,
|
|
280
|
+
"opc-retry-token": changeConfigCompartmentRequest.opcRetryToken
|
|
281
|
+
};
|
|
282
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
283
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeConfigCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
284
|
+
if (this.logger)
|
|
285
|
+
retrier.logger = this.logger;
|
|
286
|
+
const request = yield oci_common_1.composeRequest({
|
|
287
|
+
baseEndpoint: this._endpoint,
|
|
288
|
+
defaultHeaders: this._defaultHeaders,
|
|
289
|
+
path: "/configs/{configId}/actions/changeCompartment",
|
|
290
|
+
method: "POST",
|
|
291
|
+
bodyContent: common.ObjectSerializer.serialize(changeConfigCompartmentRequest.changeConfigCompartmentDetails, "ChangeConfigCompartmentDetails", model.ChangeConfigCompartmentDetails.getJsonObj),
|
|
292
|
+
pathParams: pathParams,
|
|
293
|
+
headerParams: headerParams,
|
|
294
|
+
queryParams: queryParams
|
|
295
|
+
});
|
|
296
|
+
try {
|
|
297
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
298
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
299
|
+
responseObject: {},
|
|
300
|
+
responseHeaders: [
|
|
301
|
+
{
|
|
302
|
+
value: response.headers.get("opc-request-id"),
|
|
303
|
+
key: "opcRequestId",
|
|
304
|
+
dataType: "string"
|
|
305
|
+
}
|
|
306
|
+
]
|
|
307
|
+
});
|
|
308
|
+
return sdkResponse;
|
|
309
|
+
}
|
|
310
|
+
catch (err) {
|
|
311
|
+
throw err;
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
}
|
|
247
315
|
/**
|
|
248
316
|
* Moves a monitored resource from one compartment to another.
|
|
249
317
|
* When provided, If-Match is checked against ETag values of the resource.
|
|
@@ -252,7 +320,7 @@ class StackMonitoringClient {
|
|
|
252
320
|
* @param ChangeMonitoredResourceCompartmentRequest
|
|
253
321
|
* @return ChangeMonitoredResourceCompartmentResponse
|
|
254
322
|
* @throws OciError when an error occurs
|
|
255
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.
|
|
323
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.1/stackmonitoring/ChangeMonitoredResourceCompartment.ts.html |here} to see how to use ChangeMonitoredResourceCompartment API.
|
|
256
324
|
*/
|
|
257
325
|
changeMonitoredResourceCompartment(changeMonitoredResourceCompartmentRequest) {
|
|
258
326
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -308,6 +376,76 @@ class StackMonitoringClient {
|
|
|
308
376
|
}
|
|
309
377
|
});
|
|
310
378
|
}
|
|
379
|
+
/**
|
|
380
|
+
* Creates a configuration item, for example to define
|
|
381
|
+
* whether resources of a specific type should be discovered automatically.
|
|
382
|
+
* <p>
|
|
383
|
+
For example, when a new Management Agent gets registered in a certain compartment,
|
|
384
|
+
* this Management Agent can potentially get promoted to a HOST resource.
|
|
385
|
+
* The configuration item will determine if HOST resources in the selected compartment will be
|
|
386
|
+
* discovered automatically.
|
|
387
|
+
*
|
|
388
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
389
|
+
* @param CreateConfigRequest
|
|
390
|
+
* @return CreateConfigResponse
|
|
391
|
+
* @throws OciError when an error occurs
|
|
392
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.1/stackmonitoring/CreateConfig.ts.html |here} to see how to use CreateConfig API.
|
|
393
|
+
*/
|
|
394
|
+
createConfig(createConfigRequest) {
|
|
395
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
396
|
+
if (this.logger)
|
|
397
|
+
this.logger.debug("Calling operation StackMonitoringClient#createConfig.");
|
|
398
|
+
const operationName = "createConfig";
|
|
399
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/Config/CreateConfig";
|
|
400
|
+
const pathParams = {};
|
|
401
|
+
const queryParams = {};
|
|
402
|
+
let headerParams = {
|
|
403
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
404
|
+
"opc-retry-token": createConfigRequest.opcRetryToken,
|
|
405
|
+
"opc-request-id": createConfigRequest.opcRequestId
|
|
406
|
+
};
|
|
407
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
408
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createConfigRequest.retryConfiguration, specRetryConfiguration);
|
|
409
|
+
if (this.logger)
|
|
410
|
+
retrier.logger = this.logger;
|
|
411
|
+
const request = yield oci_common_1.composeRequest({
|
|
412
|
+
baseEndpoint: this._endpoint,
|
|
413
|
+
defaultHeaders: this._defaultHeaders,
|
|
414
|
+
path: "/configs",
|
|
415
|
+
method: "POST",
|
|
416
|
+
bodyContent: common.ObjectSerializer.serialize(createConfigRequest.createConfigDetails, "CreateConfigDetails", model.CreateConfigDetails.getJsonObj),
|
|
417
|
+
pathParams: pathParams,
|
|
418
|
+
headerParams: headerParams,
|
|
419
|
+
queryParams: queryParams
|
|
420
|
+
});
|
|
421
|
+
try {
|
|
422
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
423
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
424
|
+
responseObject: {},
|
|
425
|
+
body: yield response.json(),
|
|
426
|
+
bodyKey: "config",
|
|
427
|
+
bodyModel: model.Config,
|
|
428
|
+
type: "model.Config",
|
|
429
|
+
responseHeaders: [
|
|
430
|
+
{
|
|
431
|
+
value: response.headers.get("etag"),
|
|
432
|
+
key: "etag",
|
|
433
|
+
dataType: "string"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
value: response.headers.get("opc-request-id"),
|
|
437
|
+
key: "opcRequestId",
|
|
438
|
+
dataType: "string"
|
|
439
|
+
}
|
|
440
|
+
]
|
|
441
|
+
});
|
|
442
|
+
return sdkResponse;
|
|
443
|
+
}
|
|
444
|
+
catch (err) {
|
|
445
|
+
throw err;
|
|
446
|
+
}
|
|
447
|
+
});
|
|
448
|
+
}
|
|
311
449
|
/**
|
|
312
450
|
* API to create discovery Job and submit discovery Details to agent.
|
|
313
451
|
*
|
|
@@ -315,7 +453,7 @@ class StackMonitoringClient {
|
|
|
315
453
|
* @param CreateDiscoveryJobRequest
|
|
316
454
|
* @return CreateDiscoveryJobResponse
|
|
317
455
|
* @throws OciError when an error occurs
|
|
318
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.
|
|
456
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.1/stackmonitoring/CreateDiscoveryJob.ts.html |here} to see how to use CreateDiscoveryJob API.
|
|
319
457
|
*/
|
|
320
458
|
createDiscoveryJob(createDiscoveryJobRequest) {
|
|
321
459
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -381,7 +519,7 @@ class StackMonitoringClient {
|
|
|
381
519
|
* @param CreateMonitoredResourceRequest
|
|
382
520
|
* @return CreateMonitoredResourceResponse
|
|
383
521
|
* @throws OciError when an error occurs
|
|
384
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.
|
|
522
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.1/stackmonitoring/CreateMonitoredResource.ts.html |here} to see how to use CreateMonitoredResource API.
|
|
385
523
|
*/
|
|
386
524
|
createMonitoredResource(createMonitoredResourceRequest) {
|
|
387
525
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -459,13 +597,68 @@ class StackMonitoringClient {
|
|
|
459
597
|
}
|
|
460
598
|
});
|
|
461
599
|
}
|
|
600
|
+
/**
|
|
601
|
+
* Deletes a configuration identified by the id.
|
|
602
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
603
|
+
* @param DeleteConfigRequest
|
|
604
|
+
* @return DeleteConfigResponse
|
|
605
|
+
* @throws OciError when an error occurs
|
|
606
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.1/stackmonitoring/DeleteConfig.ts.html |here} to see how to use DeleteConfig API.
|
|
607
|
+
*/
|
|
608
|
+
deleteConfig(deleteConfigRequest) {
|
|
609
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
610
|
+
if (this.logger)
|
|
611
|
+
this.logger.debug("Calling operation StackMonitoringClient#deleteConfig.");
|
|
612
|
+
const operationName = "deleteConfig";
|
|
613
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/Config/DeleteConfig";
|
|
614
|
+
const pathParams = {
|
|
615
|
+
"{configId}": deleteConfigRequest.configId
|
|
616
|
+
};
|
|
617
|
+
const queryParams = {};
|
|
618
|
+
let headerParams = {
|
|
619
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
620
|
+
"if-match": deleteConfigRequest.ifMatch,
|
|
621
|
+
"opc-request-id": deleteConfigRequest.opcRequestId
|
|
622
|
+
};
|
|
623
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
624
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteConfigRequest.retryConfiguration, specRetryConfiguration);
|
|
625
|
+
if (this.logger)
|
|
626
|
+
retrier.logger = this.logger;
|
|
627
|
+
const request = yield oci_common_1.composeRequest({
|
|
628
|
+
baseEndpoint: this._endpoint,
|
|
629
|
+
defaultHeaders: this._defaultHeaders,
|
|
630
|
+
path: "/configs/{configId}",
|
|
631
|
+
method: "DELETE",
|
|
632
|
+
pathParams: pathParams,
|
|
633
|
+
headerParams: headerParams,
|
|
634
|
+
queryParams: queryParams
|
|
635
|
+
});
|
|
636
|
+
try {
|
|
637
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
638
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
639
|
+
responseObject: {},
|
|
640
|
+
responseHeaders: [
|
|
641
|
+
{
|
|
642
|
+
value: response.headers.get("opc-request-id"),
|
|
643
|
+
key: "opcRequestId",
|
|
644
|
+
dataType: "string"
|
|
645
|
+
}
|
|
646
|
+
]
|
|
647
|
+
});
|
|
648
|
+
return sdkResponse;
|
|
649
|
+
}
|
|
650
|
+
catch (err) {
|
|
651
|
+
throw err;
|
|
652
|
+
}
|
|
653
|
+
});
|
|
654
|
+
}
|
|
462
655
|
/**
|
|
463
656
|
* Deletes a DiscoveryJob by identifier
|
|
464
657
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
465
658
|
* @param DeleteDiscoveryJobRequest
|
|
466
659
|
* @return DeleteDiscoveryJobResponse
|
|
467
660
|
* @throws OciError when an error occurs
|
|
468
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.
|
|
661
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.1/stackmonitoring/DeleteDiscoveryJob.ts.html |here} to see how to use DeleteDiscoveryJob API.
|
|
469
662
|
*/
|
|
470
663
|
deleteDiscoveryJob(deleteDiscoveryJobRequest) {
|
|
471
664
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -524,7 +717,7 @@ class StackMonitoringClient {
|
|
|
524
717
|
* @param DeleteMonitoredResourceRequest
|
|
525
718
|
* @return DeleteMonitoredResourceResponse
|
|
526
719
|
* @throws OciError when an error occurs
|
|
527
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.
|
|
720
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.1/stackmonitoring/DeleteMonitoredResource.ts.html |here} to see how to use DeleteMonitoredResource API.
|
|
528
721
|
*/
|
|
529
722
|
deleteMonitoredResource(deleteMonitoredResourceRequest) {
|
|
530
723
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -588,7 +781,7 @@ class StackMonitoringClient {
|
|
|
588
781
|
* @param DisableExternalDatabaseRequest
|
|
589
782
|
* @return DisableExternalDatabaseResponse
|
|
590
783
|
* @throws OciError when an error occurs
|
|
591
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.
|
|
784
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.1/stackmonitoring/DisableExternalDatabase.ts.html |here} to see how to use DisableExternalDatabase API.
|
|
592
785
|
*/
|
|
593
786
|
disableExternalDatabase(disableExternalDatabaseRequest) {
|
|
594
787
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -649,7 +842,7 @@ class StackMonitoringClient {
|
|
|
649
842
|
* @param DisassociateMonitoredResourcesRequest
|
|
650
843
|
* @return DisassociateMonitoredResourcesResponse
|
|
651
844
|
* @throws OciError when an error occurs
|
|
652
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.
|
|
845
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.1/stackmonitoring/DisassociateMonitoredResources.ts.html |here} to see how to use DisassociateMonitoredResources API.
|
|
653
846
|
*/
|
|
654
847
|
disassociateMonitoredResources(disassociateMonitoredResourcesRequest) {
|
|
655
848
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -698,6 +891,69 @@ class StackMonitoringClient {
|
|
|
698
891
|
}
|
|
699
892
|
});
|
|
700
893
|
}
|
|
894
|
+
/**
|
|
895
|
+
* Gets the details of a configuration.
|
|
896
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
897
|
+
* @param GetConfigRequest
|
|
898
|
+
* @return GetConfigResponse
|
|
899
|
+
* @throws OciError when an error occurs
|
|
900
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.1/stackmonitoring/GetConfig.ts.html |here} to see how to use GetConfig API.
|
|
901
|
+
*/
|
|
902
|
+
getConfig(getConfigRequest) {
|
|
903
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
904
|
+
if (this.logger)
|
|
905
|
+
this.logger.debug("Calling operation StackMonitoringClient#getConfig.");
|
|
906
|
+
const operationName = "getConfig";
|
|
907
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/Config/GetConfig";
|
|
908
|
+
const pathParams = {
|
|
909
|
+
"{configId}": getConfigRequest.configId
|
|
910
|
+
};
|
|
911
|
+
const queryParams = {};
|
|
912
|
+
let headerParams = {
|
|
913
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
914
|
+
"opc-request-id": getConfigRequest.opcRequestId
|
|
915
|
+
};
|
|
916
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
917
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getConfigRequest.retryConfiguration, specRetryConfiguration);
|
|
918
|
+
if (this.logger)
|
|
919
|
+
retrier.logger = this.logger;
|
|
920
|
+
const request = yield oci_common_1.composeRequest({
|
|
921
|
+
baseEndpoint: this._endpoint,
|
|
922
|
+
defaultHeaders: this._defaultHeaders,
|
|
923
|
+
path: "/configs/{configId}",
|
|
924
|
+
method: "GET",
|
|
925
|
+
pathParams: pathParams,
|
|
926
|
+
headerParams: headerParams,
|
|
927
|
+
queryParams: queryParams
|
|
928
|
+
});
|
|
929
|
+
try {
|
|
930
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
931
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
932
|
+
responseObject: {},
|
|
933
|
+
body: yield response.json(),
|
|
934
|
+
bodyKey: "config",
|
|
935
|
+
bodyModel: model.Config,
|
|
936
|
+
type: "model.Config",
|
|
937
|
+
responseHeaders: [
|
|
938
|
+
{
|
|
939
|
+
value: response.headers.get("etag"),
|
|
940
|
+
key: "etag",
|
|
941
|
+
dataType: "string"
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
value: response.headers.get("opc-request-id"),
|
|
945
|
+
key: "opcRequestId",
|
|
946
|
+
dataType: "string"
|
|
947
|
+
}
|
|
948
|
+
]
|
|
949
|
+
});
|
|
950
|
+
return sdkResponse;
|
|
951
|
+
}
|
|
952
|
+
catch (err) {
|
|
953
|
+
throw err;
|
|
954
|
+
}
|
|
955
|
+
});
|
|
956
|
+
}
|
|
701
957
|
/**
|
|
702
958
|
* API to get the details of discovery Job by identifier.
|
|
703
959
|
*
|
|
@@ -705,7 +961,7 @@ class StackMonitoringClient {
|
|
|
705
961
|
* @param GetDiscoveryJobRequest
|
|
706
962
|
* @return GetDiscoveryJobResponse
|
|
707
963
|
* @throws OciError when an error occurs
|
|
708
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.
|
|
964
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.1/stackmonitoring/GetDiscoveryJob.ts.html |here} to see how to use GetDiscoveryJob API.
|
|
709
965
|
*/
|
|
710
966
|
getDiscoveryJob(getDiscoveryJobRequest) {
|
|
711
967
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -769,7 +1025,7 @@ class StackMonitoringClient {
|
|
|
769
1025
|
* @param GetMonitoredResourceRequest
|
|
770
1026
|
* @return GetMonitoredResourceResponse
|
|
771
1027
|
* @throws OciError when an error occurs
|
|
772
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.
|
|
1028
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.1/stackmonitoring/GetMonitoredResource.ts.html |here} to see how to use GetMonitoredResource API.
|
|
773
1029
|
*/
|
|
774
1030
|
getMonitoredResource(getMonitoredResourceRequest) {
|
|
775
1031
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -832,7 +1088,7 @@ class StackMonitoringClient {
|
|
|
832
1088
|
* @param GetWorkRequestRequest
|
|
833
1089
|
* @return GetWorkRequestResponse
|
|
834
1090
|
* @throws OciError when an error occurs
|
|
835
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.
|
|
1091
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.1/stackmonitoring/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
836
1092
|
*/
|
|
837
1093
|
getWorkRequest(getWorkRequestRequest) {
|
|
838
1094
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -889,6 +1145,77 @@ class StackMonitoringClient {
|
|
|
889
1145
|
}
|
|
890
1146
|
});
|
|
891
1147
|
}
|
|
1148
|
+
/**
|
|
1149
|
+
* Get a list of configurations in a compartment.
|
|
1150
|
+
*
|
|
1151
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1152
|
+
* @param ListConfigsRequest
|
|
1153
|
+
* @return ListConfigsResponse
|
|
1154
|
+
* @throws OciError when an error occurs
|
|
1155
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.1/stackmonitoring/ListConfigs.ts.html |here} to see how to use ListConfigs API.
|
|
1156
|
+
*/
|
|
1157
|
+
listConfigs(listConfigsRequest) {
|
|
1158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1159
|
+
if (this.logger)
|
|
1160
|
+
this.logger.debug("Calling operation StackMonitoringClient#listConfigs.");
|
|
1161
|
+
const operationName = "listConfigs";
|
|
1162
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/ConfigCollection/ListConfigs";
|
|
1163
|
+
const pathParams = {};
|
|
1164
|
+
const queryParams = {
|
|
1165
|
+
"compartmentId": listConfigsRequest.compartmentId,
|
|
1166
|
+
"displayName": listConfigsRequest.displayName,
|
|
1167
|
+
"type": listConfigsRequest.type,
|
|
1168
|
+
"limit": listConfigsRequest.limit,
|
|
1169
|
+
"page": listConfigsRequest.page,
|
|
1170
|
+
"lifecycleState": listConfigsRequest.lifecycleState,
|
|
1171
|
+
"sortOrder": listConfigsRequest.sortOrder,
|
|
1172
|
+
"sortBy": listConfigsRequest.sortBy
|
|
1173
|
+
};
|
|
1174
|
+
let headerParams = {
|
|
1175
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1176
|
+
"opc-request-id": listConfigsRequest.opcRequestId
|
|
1177
|
+
};
|
|
1178
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1179
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listConfigsRequest.retryConfiguration, specRetryConfiguration);
|
|
1180
|
+
if (this.logger)
|
|
1181
|
+
retrier.logger = this.logger;
|
|
1182
|
+
const request = yield oci_common_1.composeRequest({
|
|
1183
|
+
baseEndpoint: this._endpoint,
|
|
1184
|
+
defaultHeaders: this._defaultHeaders,
|
|
1185
|
+
path: "/configs",
|
|
1186
|
+
method: "GET",
|
|
1187
|
+
pathParams: pathParams,
|
|
1188
|
+
headerParams: headerParams,
|
|
1189
|
+
queryParams: queryParams
|
|
1190
|
+
});
|
|
1191
|
+
try {
|
|
1192
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1193
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1194
|
+
responseObject: {},
|
|
1195
|
+
body: yield response.json(),
|
|
1196
|
+
bodyKey: "configCollection",
|
|
1197
|
+
bodyModel: model.ConfigCollection,
|
|
1198
|
+
type: "model.ConfigCollection",
|
|
1199
|
+
responseHeaders: [
|
|
1200
|
+
{
|
|
1201
|
+
value: response.headers.get("opc-request-id"),
|
|
1202
|
+
key: "opcRequestId",
|
|
1203
|
+
dataType: "string"
|
|
1204
|
+
},
|
|
1205
|
+
{
|
|
1206
|
+
value: response.headers.get("opc-next-page"),
|
|
1207
|
+
key: "opcNextPage",
|
|
1208
|
+
dataType: "string"
|
|
1209
|
+
}
|
|
1210
|
+
]
|
|
1211
|
+
});
|
|
1212
|
+
return sdkResponse;
|
|
1213
|
+
}
|
|
1214
|
+
catch (err) {
|
|
1215
|
+
throw err;
|
|
1216
|
+
}
|
|
1217
|
+
});
|
|
1218
|
+
}
|
|
892
1219
|
/**
|
|
893
1220
|
* API to get all the logs of a Discovery Job.
|
|
894
1221
|
*
|
|
@@ -896,7 +1223,7 @@ class StackMonitoringClient {
|
|
|
896
1223
|
* @param ListDiscoveryJobLogsRequest
|
|
897
1224
|
* @return ListDiscoveryJobLogsResponse
|
|
898
1225
|
* @throws OciError when an error occurs
|
|
899
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.
|
|
1226
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.1/stackmonitoring/ListDiscoveryJobLogs.ts.html |here} to see how to use ListDiscoveryJobLogs API.
|
|
900
1227
|
*/
|
|
901
1228
|
listDiscoveryJobLogs(listDiscoveryJobLogsRequest) {
|
|
902
1229
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -966,7 +1293,7 @@ class StackMonitoringClient {
|
|
|
966
1293
|
* @param ListDiscoveryJobsRequest
|
|
967
1294
|
* @return ListDiscoveryJobsResponse
|
|
968
1295
|
* @throws OciError when an error occurs
|
|
969
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.
|
|
1296
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.1/stackmonitoring/ListDiscoveryJobs.ts.html |here} to see how to use ListDiscoveryJobs API.
|
|
970
1297
|
*/
|
|
971
1298
|
listDiscoveryJobs(listDiscoveryJobsRequest) {
|
|
972
1299
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1035,7 +1362,7 @@ class StackMonitoringClient {
|
|
|
1035
1362
|
* @param ListWorkRequestErrorsRequest
|
|
1036
1363
|
* @return ListWorkRequestErrorsResponse
|
|
1037
1364
|
* @throws OciError when an error occurs
|
|
1038
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.
|
|
1365
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.1/stackmonitoring/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
1039
1366
|
*/
|
|
1040
1367
|
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
1041
1368
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1104,7 +1431,7 @@ class StackMonitoringClient {
|
|
|
1104
1431
|
* @param ListWorkRequestLogsRequest
|
|
1105
1432
|
* @return ListWorkRequestLogsResponse
|
|
1106
1433
|
* @throws OciError when an error occurs
|
|
1107
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.
|
|
1434
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.1/stackmonitoring/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
1108
1435
|
*/
|
|
1109
1436
|
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
1110
1437
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1173,7 +1500,7 @@ class StackMonitoringClient {
|
|
|
1173
1500
|
* @param ListWorkRequestsRequest
|
|
1174
1501
|
* @return ListWorkRequestsResponse
|
|
1175
1502
|
* @throws OciError when an error occurs
|
|
1176
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.
|
|
1503
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.1/stackmonitoring/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
1177
1504
|
*/
|
|
1178
1505
|
listWorkRequests(listWorkRequestsRequest) {
|
|
1179
1506
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1245,7 +1572,7 @@ class StackMonitoringClient {
|
|
|
1245
1572
|
* @param SearchAssociatedResourcesRequest
|
|
1246
1573
|
* @return SearchAssociatedResourcesResponse
|
|
1247
1574
|
* @throws OciError when an error occurs
|
|
1248
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.
|
|
1575
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.1/stackmonitoring/SearchAssociatedResources.ts.html |here} to see how to use SearchAssociatedResources API.
|
|
1249
1576
|
*/
|
|
1250
1577
|
searchAssociatedResources(searchAssociatedResourcesRequest) {
|
|
1251
1578
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1320,7 +1647,7 @@ class StackMonitoringClient {
|
|
|
1320
1647
|
* @param SearchMonitoredResourceAssociationsRequest
|
|
1321
1648
|
* @return SearchMonitoredResourceAssociationsResponse
|
|
1322
1649
|
* @throws OciError when an error occurs
|
|
1323
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.
|
|
1650
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.1/stackmonitoring/SearchMonitoredResourceAssociations.ts.html |here} to see how to use SearchMonitoredResourceAssociations API.
|
|
1324
1651
|
*/
|
|
1325
1652
|
searchMonitoredResourceAssociations(searchMonitoredResourceAssociationsRequest) {
|
|
1326
1653
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1393,7 +1720,7 @@ class StackMonitoringClient {
|
|
|
1393
1720
|
* @param SearchMonitoredResourceMembersRequest
|
|
1394
1721
|
* @return SearchMonitoredResourceMembersResponse
|
|
1395
1722
|
* @throws OciError when an error occurs
|
|
1396
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.
|
|
1723
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.1/stackmonitoring/SearchMonitoredResourceMembers.ts.html |here} to see how to use SearchMonitoredResourceMembers API.
|
|
1397
1724
|
*/
|
|
1398
1725
|
searchMonitoredResourceMembers(searchMonitoredResourceMembersRequest) {
|
|
1399
1726
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1470,7 +1797,7 @@ class StackMonitoringClient {
|
|
|
1470
1797
|
* @param SearchMonitoredResourcesRequest
|
|
1471
1798
|
* @return SearchMonitoredResourcesResponse
|
|
1472
1799
|
* @throws OciError when an error occurs
|
|
1473
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.
|
|
1800
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.1/stackmonitoring/SearchMonitoredResources.ts.html |here} to see how to use SearchMonitoredResources API.
|
|
1474
1801
|
*/
|
|
1475
1802
|
searchMonitoredResources(searchMonitoredResourcesRequest) {
|
|
1476
1803
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1548,7 +1875,7 @@ class StackMonitoringClient {
|
|
|
1548
1875
|
* @param UpdateAndPropagateTagsRequest
|
|
1549
1876
|
* @return UpdateAndPropagateTagsResponse
|
|
1550
1877
|
* @throws OciError when an error occurs
|
|
1551
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.
|
|
1878
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.1/stackmonitoring/UpdateAndPropagateTags.ts.html |here} to see how to use UpdateAndPropagateTags API.
|
|
1552
1879
|
*/
|
|
1553
1880
|
updateAndPropagateTags(updateAndPropagateTagsRequest) {
|
|
1554
1881
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1604,6 +1931,71 @@ class StackMonitoringClient {
|
|
|
1604
1931
|
}
|
|
1605
1932
|
});
|
|
1606
1933
|
}
|
|
1934
|
+
/**
|
|
1935
|
+
* Updates the configuration identified by the id given.
|
|
1936
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1937
|
+
* @param UpdateConfigRequest
|
|
1938
|
+
* @return UpdateConfigResponse
|
|
1939
|
+
* @throws OciError when an error occurs
|
|
1940
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.1/stackmonitoring/UpdateConfig.ts.html |here} to see how to use UpdateConfig API.
|
|
1941
|
+
*/
|
|
1942
|
+
updateConfig(updateConfigRequest) {
|
|
1943
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1944
|
+
if (this.logger)
|
|
1945
|
+
this.logger.debug("Calling operation StackMonitoringClient#updateConfig.");
|
|
1946
|
+
const operationName = "updateConfig";
|
|
1947
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/Config/UpdateConfig";
|
|
1948
|
+
const pathParams = {
|
|
1949
|
+
"{configId}": updateConfigRequest.configId
|
|
1950
|
+
};
|
|
1951
|
+
const queryParams = {};
|
|
1952
|
+
let headerParams = {
|
|
1953
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1954
|
+
"if-match": updateConfigRequest.ifMatch,
|
|
1955
|
+
"opc-request-id": updateConfigRequest.opcRequestId
|
|
1956
|
+
};
|
|
1957
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1958
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateConfigRequest.retryConfiguration, specRetryConfiguration);
|
|
1959
|
+
if (this.logger)
|
|
1960
|
+
retrier.logger = this.logger;
|
|
1961
|
+
const request = yield oci_common_1.composeRequest({
|
|
1962
|
+
baseEndpoint: this._endpoint,
|
|
1963
|
+
defaultHeaders: this._defaultHeaders,
|
|
1964
|
+
path: "/configs/{configId}",
|
|
1965
|
+
method: "PUT",
|
|
1966
|
+
bodyContent: common.ObjectSerializer.serialize(updateConfigRequest.updateConfigDetails, "UpdateConfigDetails", model.UpdateConfigDetails.getJsonObj),
|
|
1967
|
+
pathParams: pathParams,
|
|
1968
|
+
headerParams: headerParams,
|
|
1969
|
+
queryParams: queryParams
|
|
1970
|
+
});
|
|
1971
|
+
try {
|
|
1972
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1973
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1974
|
+
responseObject: {},
|
|
1975
|
+
body: yield response.json(),
|
|
1976
|
+
bodyKey: "config",
|
|
1977
|
+
bodyModel: model.Config,
|
|
1978
|
+
type: "model.Config",
|
|
1979
|
+
responseHeaders: [
|
|
1980
|
+
{
|
|
1981
|
+
value: response.headers.get("etag"),
|
|
1982
|
+
key: "etag",
|
|
1983
|
+
dataType: "string"
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
value: response.headers.get("opc-request-id"),
|
|
1987
|
+
key: "opcRequestId",
|
|
1988
|
+
dataType: "string"
|
|
1989
|
+
}
|
|
1990
|
+
]
|
|
1991
|
+
});
|
|
1992
|
+
return sdkResponse;
|
|
1993
|
+
}
|
|
1994
|
+
catch (err) {
|
|
1995
|
+
throw err;
|
|
1996
|
+
}
|
|
1997
|
+
});
|
|
1998
|
+
}
|
|
1607
1999
|
/**
|
|
1608
2000
|
* Update monitored resource by the given identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
|
1609
2001
|
* Note that \"properties\" object, if specified, will entirely replace the existing object,
|
|
@@ -1613,7 +2005,7 @@ class StackMonitoringClient {
|
|
|
1613
2005
|
* @param UpdateMonitoredResourceRequest
|
|
1614
2006
|
* @return UpdateMonitoredResourceResponse
|
|
1615
2007
|
* @throws OciError when an error occurs
|
|
1616
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.
|
|
2008
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.70.1/stackmonitoring/UpdateMonitoredResource.ts.html |here} to see how to use UpdateMonitoredResource API.
|
|
1617
2009
|
*/
|
|
1618
2010
|
updateMonitoredResource(updateMonitoredResourceRequest) {
|
|
1619
2011
|
return __awaiter(this, void 0, void 0, function* () {
|