oci-stackmonitoring 2.95.0 → 2.95.2
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 +70 -0
- package/lib/client.js +454 -0
- package/lib/client.js.map +1 -1
- package/lib/model/create-maintenance-window-details.d.ts +42 -0
- package/lib/model/create-maintenance-window-details.js +67 -0
- package/lib/model/create-maintenance-window-details.js.map +1 -0
- package/lib/model/create-maintenance-window-resource-details.d.ts +34 -0
- package/lib/model/create-maintenance-window-resource-details.js +29 -0
- package/lib/model/create-maintenance-window-resource-details.js.map +1 -0
- package/lib/model/index.d.ts +30 -0
- package/lib/model/index.js +34 -3
- package/lib/model/index.js.map +1 -1
- package/lib/model/maintenance-window-collection.d.ts +26 -0
- package/lib/model/maintenance-window-collection.js +61 -0
- package/lib/model/maintenance-window-collection.js.map +1 -0
- package/lib/model/maintenance-window-lifecycle-details.d.ts +30 -0
- package/lib/model/maintenance-window-lifecycle-details.js +41 -0
- package/lib/model/maintenance-window-lifecycle-details.js.map +1 -0
- package/lib/model/maintenance-window-lifecycle-state.d.ts +35 -0
- package/lib/model/maintenance-window-lifecycle-state.js +46 -0
- package/lib/model/maintenance-window-lifecycle-state.js.map +1 -0
- package/lib/model/maintenance-window-operation-status.d.ts +30 -0
- package/lib/model/maintenance-window-operation-status.js +41 -0
- package/lib/model/maintenance-window-operation-status.js.map +1 -0
- package/lib/model/maintenance-window-operation-type.d.ts +31 -0
- package/lib/model/maintenance-window-operation-type.js +42 -0
- package/lib/model/maintenance-window-operation-type.js.map +1 -0
- package/lib/model/maintenance-window-schedule.d.ts +23 -0
- package/lib/model/maintenance-window-schedule.js +72 -0
- package/lib/model/maintenance-window-schedule.js.map +1 -0
- package/lib/model/maintenance-window-sort-by.d.ts +26 -0
- package/lib/model/maintenance-window-sort-by.js +37 -0
- package/lib/model/maintenance-window-sort-by.js.map +1 -0
- package/lib/model/maintenance-window-summary.d.ts +88 -0
- package/lib/model/maintenance-window-summary.js +57 -0
- package/lib/model/maintenance-window-summary.js.map +1 -0
- package/lib/model/maintenance-window.d.ts +71 -0
- package/lib/model/maintenance-window.js +77 -0
- package/lib/model/maintenance-window.js.map +1 -0
- package/lib/model/monitored-resource-details.d.ts +43 -0
- package/lib/model/monitored-resource-details.js +29 -0
- package/lib/model/monitored-resource-details.js.map +1 -0
- package/lib/model/one-time-maintenance-window-schedule.d.ts +35 -0
- package/lib/model/one-time-maintenance-window-schedule.js +54 -0
- package/lib/model/one-time-maintenance-window-schedule.js.map +1 -0
- package/lib/model/operation-type.d.ts +4 -0
- package/lib/model/operation-type.js +4 -0
- package/lib/model/operation-type.js.map +1 -1
- package/lib/model/recurrent-maintenance-window-schedule.d.ts +53 -0
- package/lib/model/recurrent-maintenance-window-schedule.js +54 -0
- package/lib/model/recurrent-maintenance-window-schedule.js.map +1 -0
- package/lib/model/update-maintenance-window-details.d.ts +33 -0
- package/lib/model/update-maintenance-window-details.js +67 -0
- package/lib/model/update-maintenance-window-details.js.map +1 -0
- package/lib/request/create-maintenance-window-request.d.ts +39 -0
- package/lib/request/create-maintenance-window-request.js +15 -0
- package/lib/request/create-maintenance-window-request.js.map +1 -0
- package/lib/request/delete-maintenance-window-request.d.ts +37 -0
- package/lib/request/delete-maintenance-window-request.js +15 -0
- package/lib/request/delete-maintenance-window-request.js.map +1 -0
- package/lib/request/get-maintenance-window-request.d.ts +28 -0
- package/lib/request/get-maintenance-window-request.js +15 -0
- package/lib/request/get-maintenance-window-request.js.map +1 -0
- package/lib/request/index.d.ts +14 -0
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-maintenance-windows-request.d.ts +66 -0
- package/lib/request/list-maintenance-windows-request.js +15 -0
- package/lib/request/list-maintenance-windows-request.js.map +1 -0
- package/lib/request/retry-failed-maintenance-window-operation-request.d.ts +37 -0
- package/lib/request/retry-failed-maintenance-window-operation-request.js +15 -0
- package/lib/request/retry-failed-maintenance-window-operation-request.js.map +1 -0
- package/lib/request/stop-maintenance-window-request.d.ts +37 -0
- package/lib/request/stop-maintenance-window-request.js +15 -0
- package/lib/request/stop-maintenance-window-request.js.map +1 -0
- package/lib/request/update-maintenance-window-request.d.ts +42 -0
- package/lib/request/update-maintenance-window-request.js +15 -0
- package/lib/request/update-maintenance-window-request.js.map +1 -0
- package/lib/response/create-maintenance-window-response.d.ts +35 -0
- package/lib/response/create-maintenance-window-response.js +15 -0
- package/lib/response/create-maintenance-window-response.js.map +1 -0
- package/lib/response/delete-maintenance-window-response.d.ts +25 -0
- package/lib/response/delete-maintenance-window-response.js +15 -0
- package/lib/response/delete-maintenance-window-response.js.map +1 -0
- package/lib/response/get-maintenance-window-response.d.ts +30 -0
- package/lib/response/get-maintenance-window-response.js +15 -0
- package/lib/response/get-maintenance-window-response.js.map +1 -0
- package/lib/response/index.d.ts +14 -0
- package/lib/response/list-maintenance-windows-response.d.ts +37 -0
- package/lib/response/list-maintenance-windows-response.js +15 -0
- package/lib/response/list-maintenance-windows-response.js.map +1 -0
- package/lib/response/retry-failed-maintenance-window-operation-response.d.ts +25 -0
- package/lib/response/retry-failed-maintenance-window-operation-response.js +15 -0
- package/lib/response/retry-failed-maintenance-window-operation-response.js.map +1 -0
- package/lib/response/stop-maintenance-window-response.d.ts +25 -0
- package/lib/response/stop-maintenance-window-response.js +15 -0
- package/lib/response/stop-maintenance-window-response.js.map +1 -0
- package/lib/response/update-maintenance-window-response.d.ts +25 -0
- package/lib/response/update-maintenance-window-response.js +15 -0
- package/lib/response/update-maintenance-window-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.d.ts
CHANGED
|
@@ -198,6 +198,17 @@ export declare class StackMonitoringClient {
|
|
|
198
198
|
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/CreateDiscoveryJob.ts.html |here} to see how to use CreateDiscoveryJob API.
|
|
199
199
|
*/
|
|
200
200
|
createDiscoveryJob(createDiscoveryJobRequest: requests.CreateDiscoveryJobRequest): Promise<responses.CreateDiscoveryJobResponse>;
|
|
201
|
+
/**
|
|
202
|
+
* Creates a new Maintenance Window for the given resources. It will create also the
|
|
203
|
+
* Alarms Suppression for each alarm that the resource migth trigger.
|
|
204
|
+
*
|
|
205
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
206
|
+
* @param CreateMaintenanceWindowRequest
|
|
207
|
+
* @return CreateMaintenanceWindowResponse
|
|
208
|
+
* @throws OciError when an error occurs
|
|
209
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/CreateMaintenanceWindow.ts.html |here} to see how to use CreateMaintenanceWindow API.
|
|
210
|
+
*/
|
|
211
|
+
createMaintenanceWindow(createMaintenanceWindowRequest: requests.CreateMaintenanceWindowRequest): Promise<responses.CreateMaintenanceWindowResponse>;
|
|
201
212
|
/**
|
|
202
213
|
* Creates a new metric extension resource for a given compartment
|
|
203
214
|
*
|
|
@@ -274,6 +285,16 @@ export declare class StackMonitoringClient {
|
|
|
274
285
|
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/DeleteDiscoveryJob.ts.html |here} to see how to use DeleteDiscoveryJob API.
|
|
275
286
|
*/
|
|
276
287
|
deleteDiscoveryJob(deleteDiscoveryJobRequest: requests.DeleteDiscoveryJobRequest): Promise<responses.DeleteDiscoveryJobResponse>;
|
|
288
|
+
/**
|
|
289
|
+
* Deletes a maintenance window by identifier
|
|
290
|
+
*
|
|
291
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
292
|
+
* @param DeleteMaintenanceWindowRequest
|
|
293
|
+
* @return DeleteMaintenanceWindowResponse
|
|
294
|
+
* @throws OciError when an error occurs
|
|
295
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/DeleteMaintenanceWindow.ts.html |here} to see how to use DeleteMaintenanceWindow API.
|
|
296
|
+
*/
|
|
297
|
+
deleteMaintenanceWindow(deleteMaintenanceWindowRequest: requests.DeleteMaintenanceWindowRequest): Promise<responses.DeleteMaintenanceWindowResponse>;
|
|
277
298
|
/**
|
|
278
299
|
* Deletes a metric extension by identifier
|
|
279
300
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
@@ -402,6 +423,16 @@ export declare class StackMonitoringClient {
|
|
|
402
423
|
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/GetDiscoveryJob.ts.html |here} to see how to use GetDiscoveryJob API.
|
|
403
424
|
*/
|
|
404
425
|
getDiscoveryJob(getDiscoveryJobRequest: requests.GetDiscoveryJobRequest): Promise<responses.GetDiscoveryJobResponse>;
|
|
426
|
+
/**
|
|
427
|
+
* Get maintenance window for the given identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
|
428
|
+
*
|
|
429
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
430
|
+
* @param GetMaintenanceWindowRequest
|
|
431
|
+
* @return GetMaintenanceWindowResponse
|
|
432
|
+
* @throws OciError when an error occurs
|
|
433
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/GetMaintenanceWindow.ts.html |here} to see how to use GetMaintenanceWindow API.
|
|
434
|
+
*/
|
|
435
|
+
getMaintenanceWindow(getMaintenanceWindowRequest: requests.GetMaintenanceWindowRequest): Promise<responses.GetMaintenanceWindowResponse>;
|
|
405
436
|
/**
|
|
406
437
|
* Gets a Metric Extension by identifier
|
|
407
438
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -496,6 +527,15 @@ export declare class StackMonitoringClient {
|
|
|
496
527
|
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/ListDiscoveryJobs.ts.html |here} to see how to use ListDiscoveryJobs API.
|
|
497
528
|
*/
|
|
498
529
|
listDiscoveryJobs(listDiscoveryJobsRequest: requests.ListDiscoveryJobsRequest): Promise<responses.ListDiscoveryJobsResponse>;
|
|
530
|
+
/**
|
|
531
|
+
* Returns a list of maintenance windows.
|
|
532
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
533
|
+
* @param ListMaintenanceWindowsRequest
|
|
534
|
+
* @return ListMaintenanceWindowsResponse
|
|
535
|
+
* @throws OciError when an error occurs
|
|
536
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/ListMaintenanceWindows.ts.html |here} to see how to use ListMaintenanceWindows API.
|
|
537
|
+
*/
|
|
538
|
+
listMaintenanceWindows(listMaintenanceWindowsRequest: requests.ListMaintenanceWindowsRequest): Promise<responses.ListMaintenanceWindowsResponse>;
|
|
499
539
|
/**
|
|
500
540
|
* Returns a list of metric extensions
|
|
501
541
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -611,6 +651,16 @@ export declare class StackMonitoringClient {
|
|
|
611
651
|
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/RequestMonitoredResourcesSummarizedCount.ts.html |here} to see how to use RequestMonitoredResourcesSummarizedCount API.
|
|
612
652
|
*/
|
|
613
653
|
requestMonitoredResourcesSummarizedCount(requestMonitoredResourcesSummarizedCountRequest: requests.RequestMonitoredResourcesSummarizedCountRequest): Promise<responses.RequestMonitoredResourcesSummarizedCountResponse>;
|
|
654
|
+
/**
|
|
655
|
+
* Retry the last failed operation. The operation failed will be the most recent one. It won't apply for previous failed operations.
|
|
656
|
+
*
|
|
657
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
658
|
+
* @param RetryFailedMaintenanceWindowOperationRequest
|
|
659
|
+
* @return RetryFailedMaintenanceWindowOperationResponse
|
|
660
|
+
* @throws OciError when an error occurs
|
|
661
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/RetryFailedMaintenanceWindowOperation.ts.html |here} to see how to use RetryFailedMaintenanceWindowOperation API.
|
|
662
|
+
*/
|
|
663
|
+
retryFailedMaintenanceWindowOperation(retryFailedMaintenanceWindowOperationRequest: requests.RetryFailedMaintenanceWindowOperationRequest): Promise<responses.RetryFailedMaintenanceWindowOperationResponse>;
|
|
614
664
|
/**
|
|
615
665
|
* List all associated resources recursively up-to a specified level,
|
|
616
666
|
* for the monitored resources of type specified.
|
|
@@ -652,6 +702,16 @@ export declare class StackMonitoringClient {
|
|
|
652
702
|
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/SearchMonitoredResources.ts.html |here} to see how to use SearchMonitoredResources API.
|
|
653
703
|
*/
|
|
654
704
|
searchMonitoredResources(searchMonitoredResourcesRequest: requests.SearchMonitoredResourcesRequest): Promise<responses.SearchMonitoredResourcesResponse>;
|
|
705
|
+
/**
|
|
706
|
+
* Stop a maintenance window before the end time is reached.
|
|
707
|
+
*
|
|
708
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
709
|
+
* @param StopMaintenanceWindowRequest
|
|
710
|
+
* @return StopMaintenanceWindowResponse
|
|
711
|
+
* @throws OciError when an error occurs
|
|
712
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/StopMaintenanceWindow.ts.html |here} to see how to use StopMaintenanceWindow API.
|
|
713
|
+
*/
|
|
714
|
+
stopMaintenanceWindow(stopMaintenanceWindowRequest: requests.StopMaintenanceWindowRequest): Promise<responses.StopMaintenanceWindowResponse>;
|
|
655
715
|
/**
|
|
656
716
|
* Performs test of Metric Extension on a specific resource Id
|
|
657
717
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
@@ -692,6 +752,16 @@ export declare class StackMonitoringClient {
|
|
|
692
752
|
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/UpdateConfig.ts.html |here} to see how to use UpdateConfig API.
|
|
693
753
|
*/
|
|
694
754
|
updateConfig(updateConfigRequest: requests.UpdateConfigRequest): Promise<responses.UpdateConfigResponse>;
|
|
755
|
+
/**
|
|
756
|
+
* Update maintenance window by the given identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
|
757
|
+
*
|
|
758
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
759
|
+
* @param UpdateMaintenanceWindowRequest
|
|
760
|
+
* @return UpdateMaintenanceWindowResponse
|
|
761
|
+
* @throws OciError when an error occurs
|
|
762
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/UpdateMaintenanceWindow.ts.html |here} to see how to use UpdateMaintenanceWindow API.
|
|
763
|
+
*/
|
|
764
|
+
updateMaintenanceWindow(updateMaintenanceWindowRequest: requests.UpdateMaintenanceWindowRequest): Promise<responses.UpdateMaintenanceWindowResponse>;
|
|
695
765
|
/**
|
|
696
766
|
* Updates the Metric Extension
|
|
697
767
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
package/lib/client.js
CHANGED
|
@@ -772,6 +772,76 @@ class StackMonitoringClient {
|
|
|
772
772
|
}
|
|
773
773
|
});
|
|
774
774
|
}
|
|
775
|
+
/**
|
|
776
|
+
* Creates a new Maintenance Window for the given resources. It will create also the
|
|
777
|
+
* Alarms Suppression for each alarm that the resource migth trigger.
|
|
778
|
+
*
|
|
779
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
780
|
+
* @param CreateMaintenanceWindowRequest
|
|
781
|
+
* @return CreateMaintenanceWindowResponse
|
|
782
|
+
* @throws OciError when an error occurs
|
|
783
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/CreateMaintenanceWindow.ts.html |here} to see how to use CreateMaintenanceWindow API.
|
|
784
|
+
*/
|
|
785
|
+
createMaintenanceWindow(createMaintenanceWindowRequest) {
|
|
786
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
787
|
+
if (this.logger)
|
|
788
|
+
this.logger.debug("Calling operation StackMonitoringClient#createMaintenanceWindow.");
|
|
789
|
+
const operationName = "createMaintenanceWindow";
|
|
790
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MaintenanceWindow/CreateMaintenanceWindow";
|
|
791
|
+
const pathParams = {};
|
|
792
|
+
const queryParams = {};
|
|
793
|
+
let headerParams = {
|
|
794
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
795
|
+
"opc-retry-token": createMaintenanceWindowRequest.opcRetryToken,
|
|
796
|
+
"opc-request-id": createMaintenanceWindowRequest.opcRequestId
|
|
797
|
+
};
|
|
798
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
799
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createMaintenanceWindowRequest.retryConfiguration, specRetryConfiguration);
|
|
800
|
+
if (this.logger)
|
|
801
|
+
retrier.logger = this.logger;
|
|
802
|
+
const request = yield oci_common_1.composeRequest({
|
|
803
|
+
baseEndpoint: this._endpoint,
|
|
804
|
+
defaultHeaders: this._defaultHeaders,
|
|
805
|
+
path: "/maintenanceWindows",
|
|
806
|
+
method: "POST",
|
|
807
|
+
bodyContent: common.ObjectSerializer.serialize(createMaintenanceWindowRequest.createMaintenanceWindowDetails, "CreateMaintenanceWindowDetails", model.CreateMaintenanceWindowDetails.getJsonObj),
|
|
808
|
+
pathParams: pathParams,
|
|
809
|
+
headerParams: headerParams,
|
|
810
|
+
queryParams: queryParams
|
|
811
|
+
});
|
|
812
|
+
try {
|
|
813
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
814
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
815
|
+
responseObject: {},
|
|
816
|
+
body: yield response.json(),
|
|
817
|
+
bodyKey: "maintenanceWindow",
|
|
818
|
+
bodyModel: model.MaintenanceWindow,
|
|
819
|
+
type: "model.MaintenanceWindow",
|
|
820
|
+
responseHeaders: [
|
|
821
|
+
{
|
|
822
|
+
value: response.headers.get("opc-work-request-id"),
|
|
823
|
+
key: "opcWorkRequestId",
|
|
824
|
+
dataType: "string"
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
value: response.headers.get("opc-request-id"),
|
|
828
|
+
key: "opcRequestId",
|
|
829
|
+
dataType: "string"
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
value: response.headers.get("etag"),
|
|
833
|
+
key: "etag",
|
|
834
|
+
dataType: "string"
|
|
835
|
+
}
|
|
836
|
+
]
|
|
837
|
+
});
|
|
838
|
+
return sdkResponse;
|
|
839
|
+
}
|
|
840
|
+
catch (err) {
|
|
841
|
+
throw err;
|
|
842
|
+
}
|
|
843
|
+
});
|
|
844
|
+
}
|
|
775
845
|
/**
|
|
776
846
|
* Creates a new metric extension resource for a given compartment
|
|
777
847
|
*
|
|
@@ -1292,6 +1362,67 @@ class StackMonitoringClient {
|
|
|
1292
1362
|
}
|
|
1293
1363
|
});
|
|
1294
1364
|
}
|
|
1365
|
+
/**
|
|
1366
|
+
* Deletes a maintenance window by identifier
|
|
1367
|
+
*
|
|
1368
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1369
|
+
* @param DeleteMaintenanceWindowRequest
|
|
1370
|
+
* @return DeleteMaintenanceWindowResponse
|
|
1371
|
+
* @throws OciError when an error occurs
|
|
1372
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/DeleteMaintenanceWindow.ts.html |here} to see how to use DeleteMaintenanceWindow API.
|
|
1373
|
+
*/
|
|
1374
|
+
deleteMaintenanceWindow(deleteMaintenanceWindowRequest) {
|
|
1375
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1376
|
+
if (this.logger)
|
|
1377
|
+
this.logger.debug("Calling operation StackMonitoringClient#deleteMaintenanceWindow.");
|
|
1378
|
+
const operationName = "deleteMaintenanceWindow";
|
|
1379
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MaintenanceWindow/DeleteMaintenanceWindow";
|
|
1380
|
+
const pathParams = {
|
|
1381
|
+
"{maintenanceWindowId}": deleteMaintenanceWindowRequest.maintenanceWindowId
|
|
1382
|
+
};
|
|
1383
|
+
const queryParams = {};
|
|
1384
|
+
let headerParams = {
|
|
1385
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1386
|
+
"if-match": deleteMaintenanceWindowRequest.ifMatch,
|
|
1387
|
+
"opc-request-id": deleteMaintenanceWindowRequest.opcRequestId
|
|
1388
|
+
};
|
|
1389
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1390
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteMaintenanceWindowRequest.retryConfiguration, specRetryConfiguration);
|
|
1391
|
+
if (this.logger)
|
|
1392
|
+
retrier.logger = this.logger;
|
|
1393
|
+
const request = yield oci_common_1.composeRequest({
|
|
1394
|
+
baseEndpoint: this._endpoint,
|
|
1395
|
+
defaultHeaders: this._defaultHeaders,
|
|
1396
|
+
path: "/maintenanceWindows/{maintenanceWindowId}",
|
|
1397
|
+
method: "DELETE",
|
|
1398
|
+
pathParams: pathParams,
|
|
1399
|
+
headerParams: headerParams,
|
|
1400
|
+
queryParams: queryParams
|
|
1401
|
+
});
|
|
1402
|
+
try {
|
|
1403
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1404
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1405
|
+
responseObject: {},
|
|
1406
|
+
responseHeaders: [
|
|
1407
|
+
{
|
|
1408
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1409
|
+
key: "opcWorkRequestId",
|
|
1410
|
+
dataType: "string"
|
|
1411
|
+
},
|
|
1412
|
+
{
|
|
1413
|
+
value: response.headers.get("opc-request-id"),
|
|
1414
|
+
key: "opcRequestId",
|
|
1415
|
+
dataType: "string"
|
|
1416
|
+
}
|
|
1417
|
+
]
|
|
1418
|
+
});
|
|
1419
|
+
return sdkResponse;
|
|
1420
|
+
}
|
|
1421
|
+
catch (err) {
|
|
1422
|
+
throw err;
|
|
1423
|
+
}
|
|
1424
|
+
});
|
|
1425
|
+
}
|
|
1295
1426
|
/**
|
|
1296
1427
|
* Deletes a metric extension by identifier
|
|
1297
1428
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
@@ -2094,6 +2225,70 @@ class StackMonitoringClient {
|
|
|
2094
2225
|
}
|
|
2095
2226
|
});
|
|
2096
2227
|
}
|
|
2228
|
+
/**
|
|
2229
|
+
* Get maintenance window for the given identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
|
2230
|
+
*
|
|
2231
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2232
|
+
* @param GetMaintenanceWindowRequest
|
|
2233
|
+
* @return GetMaintenanceWindowResponse
|
|
2234
|
+
* @throws OciError when an error occurs
|
|
2235
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/GetMaintenanceWindow.ts.html |here} to see how to use GetMaintenanceWindow API.
|
|
2236
|
+
*/
|
|
2237
|
+
getMaintenanceWindow(getMaintenanceWindowRequest) {
|
|
2238
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2239
|
+
if (this.logger)
|
|
2240
|
+
this.logger.debug("Calling operation StackMonitoringClient#getMaintenanceWindow.");
|
|
2241
|
+
const operationName = "getMaintenanceWindow";
|
|
2242
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MaintenanceWindow/GetMaintenanceWindow";
|
|
2243
|
+
const pathParams = {
|
|
2244
|
+
"{maintenanceWindowId}": getMaintenanceWindowRequest.maintenanceWindowId
|
|
2245
|
+
};
|
|
2246
|
+
const queryParams = {};
|
|
2247
|
+
let headerParams = {
|
|
2248
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2249
|
+
"opc-request-id": getMaintenanceWindowRequest.opcRequestId
|
|
2250
|
+
};
|
|
2251
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2252
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getMaintenanceWindowRequest.retryConfiguration, specRetryConfiguration);
|
|
2253
|
+
if (this.logger)
|
|
2254
|
+
retrier.logger = this.logger;
|
|
2255
|
+
const request = yield oci_common_1.composeRequest({
|
|
2256
|
+
baseEndpoint: this._endpoint,
|
|
2257
|
+
defaultHeaders: this._defaultHeaders,
|
|
2258
|
+
path: "/maintenanceWindows/{maintenanceWindowId}",
|
|
2259
|
+
method: "GET",
|
|
2260
|
+
pathParams: pathParams,
|
|
2261
|
+
headerParams: headerParams,
|
|
2262
|
+
queryParams: queryParams
|
|
2263
|
+
});
|
|
2264
|
+
try {
|
|
2265
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2266
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2267
|
+
responseObject: {},
|
|
2268
|
+
body: yield response.json(),
|
|
2269
|
+
bodyKey: "maintenanceWindow",
|
|
2270
|
+
bodyModel: model.MaintenanceWindow,
|
|
2271
|
+
type: "model.MaintenanceWindow",
|
|
2272
|
+
responseHeaders: [
|
|
2273
|
+
{
|
|
2274
|
+
value: response.headers.get("etag"),
|
|
2275
|
+
key: "etag",
|
|
2276
|
+
dataType: "string"
|
|
2277
|
+
},
|
|
2278
|
+
{
|
|
2279
|
+
value: response.headers.get("opc-request-id"),
|
|
2280
|
+
key: "opcRequestId",
|
|
2281
|
+
dataType: "string"
|
|
2282
|
+
}
|
|
2283
|
+
]
|
|
2284
|
+
});
|
|
2285
|
+
return sdkResponse;
|
|
2286
|
+
}
|
|
2287
|
+
catch (err) {
|
|
2288
|
+
throw err;
|
|
2289
|
+
}
|
|
2290
|
+
});
|
|
2291
|
+
}
|
|
2097
2292
|
/**
|
|
2098
2293
|
* Gets a Metric Extension by identifier
|
|
2099
2294
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -2761,6 +2956,81 @@ class StackMonitoringClient {
|
|
|
2761
2956
|
}
|
|
2762
2957
|
});
|
|
2763
2958
|
}
|
|
2959
|
+
/**
|
|
2960
|
+
* Returns a list of maintenance windows.
|
|
2961
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2962
|
+
* @param ListMaintenanceWindowsRequest
|
|
2963
|
+
* @return ListMaintenanceWindowsResponse
|
|
2964
|
+
* @throws OciError when an error occurs
|
|
2965
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/ListMaintenanceWindows.ts.html |here} to see how to use ListMaintenanceWindows API.
|
|
2966
|
+
*/
|
|
2967
|
+
listMaintenanceWindows(listMaintenanceWindowsRequest) {
|
|
2968
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2969
|
+
if (this.logger)
|
|
2970
|
+
this.logger.debug("Calling operation StackMonitoringClient#listMaintenanceWindows.");
|
|
2971
|
+
const operationName = "listMaintenanceWindows";
|
|
2972
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MaintenanceWindow/ListMaintenanceWindows";
|
|
2973
|
+
const pathParams = {};
|
|
2974
|
+
const queryParams = {
|
|
2975
|
+
"compartmentId": listMaintenanceWindowsRequest.compartmentId,
|
|
2976
|
+
"name": listMaintenanceWindowsRequest.name,
|
|
2977
|
+
"lifecycleDetails": listMaintenanceWindowsRequest.lifecycleDetails,
|
|
2978
|
+
"status": listMaintenanceWindowsRequest.status,
|
|
2979
|
+
"sortBy": listMaintenanceWindowsRequest.sortBy,
|
|
2980
|
+
"sortOrder": listMaintenanceWindowsRequest.sortOrder,
|
|
2981
|
+
"limit": listMaintenanceWindowsRequest.limit,
|
|
2982
|
+
"page": listMaintenanceWindowsRequest.page
|
|
2983
|
+
};
|
|
2984
|
+
let headerParams = {
|
|
2985
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2986
|
+
"opc-request-id": listMaintenanceWindowsRequest.opcRequestId
|
|
2987
|
+
};
|
|
2988
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2989
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMaintenanceWindowsRequest.retryConfiguration, specRetryConfiguration);
|
|
2990
|
+
if (this.logger)
|
|
2991
|
+
retrier.logger = this.logger;
|
|
2992
|
+
const request = yield oci_common_1.composeRequest({
|
|
2993
|
+
baseEndpoint: this._endpoint,
|
|
2994
|
+
defaultHeaders: this._defaultHeaders,
|
|
2995
|
+
path: "/maintenanceWindows",
|
|
2996
|
+
method: "GET",
|
|
2997
|
+
pathParams: pathParams,
|
|
2998
|
+
headerParams: headerParams,
|
|
2999
|
+
queryParams: queryParams
|
|
3000
|
+
});
|
|
3001
|
+
try {
|
|
3002
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3003
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3004
|
+
responseObject: {},
|
|
3005
|
+
body: yield response.json(),
|
|
3006
|
+
bodyKey: "maintenanceWindowCollection",
|
|
3007
|
+
bodyModel: model.MaintenanceWindowCollection,
|
|
3008
|
+
type: "model.MaintenanceWindowCollection",
|
|
3009
|
+
responseHeaders: [
|
|
3010
|
+
{
|
|
3011
|
+
value: response.headers.get("opc-request-id"),
|
|
3012
|
+
key: "opcRequestId",
|
|
3013
|
+
dataType: "string"
|
|
3014
|
+
},
|
|
3015
|
+
{
|
|
3016
|
+
value: response.headers.get("opc-next-page"),
|
|
3017
|
+
key: "opcNextPage",
|
|
3018
|
+
dataType: "string"
|
|
3019
|
+
},
|
|
3020
|
+
{
|
|
3021
|
+
value: response.headers.get("opc-total-items"),
|
|
3022
|
+
key: "opcTotalItems",
|
|
3023
|
+
dataType: "number"
|
|
3024
|
+
}
|
|
3025
|
+
]
|
|
3026
|
+
});
|
|
3027
|
+
return sdkResponse;
|
|
3028
|
+
}
|
|
3029
|
+
catch (err) {
|
|
3030
|
+
throw err;
|
|
3031
|
+
}
|
|
3032
|
+
});
|
|
3033
|
+
}
|
|
2764
3034
|
/**
|
|
2765
3035
|
* Returns a list of metric extensions
|
|
2766
3036
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -3551,6 +3821,67 @@ class StackMonitoringClient {
|
|
|
3551
3821
|
}
|
|
3552
3822
|
});
|
|
3553
3823
|
}
|
|
3824
|
+
/**
|
|
3825
|
+
* Retry the last failed operation. The operation failed will be the most recent one. It won't apply for previous failed operations.
|
|
3826
|
+
*
|
|
3827
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
3828
|
+
* @param RetryFailedMaintenanceWindowOperationRequest
|
|
3829
|
+
* @return RetryFailedMaintenanceWindowOperationResponse
|
|
3830
|
+
* @throws OciError when an error occurs
|
|
3831
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/RetryFailedMaintenanceWindowOperation.ts.html |here} to see how to use RetryFailedMaintenanceWindowOperation API.
|
|
3832
|
+
*/
|
|
3833
|
+
retryFailedMaintenanceWindowOperation(retryFailedMaintenanceWindowOperationRequest) {
|
|
3834
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3835
|
+
if (this.logger)
|
|
3836
|
+
this.logger.debug("Calling operation StackMonitoringClient#retryFailedMaintenanceWindowOperation.");
|
|
3837
|
+
const operationName = "retryFailedMaintenanceWindowOperation";
|
|
3838
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MaintenanceWindow/RetryFailedMaintenanceWindowOperation";
|
|
3839
|
+
const pathParams = {
|
|
3840
|
+
"{maintenanceWindowId}": retryFailedMaintenanceWindowOperationRequest.maintenanceWindowId
|
|
3841
|
+
};
|
|
3842
|
+
const queryParams = {};
|
|
3843
|
+
let headerParams = {
|
|
3844
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3845
|
+
"if-match": retryFailedMaintenanceWindowOperationRequest.ifMatch,
|
|
3846
|
+
"opc-request-id": retryFailedMaintenanceWindowOperationRequest.opcRequestId
|
|
3847
|
+
};
|
|
3848
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
3849
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, retryFailedMaintenanceWindowOperationRequest.retryConfiguration, specRetryConfiguration);
|
|
3850
|
+
if (this.logger)
|
|
3851
|
+
retrier.logger = this.logger;
|
|
3852
|
+
const request = yield oci_common_1.composeRequest({
|
|
3853
|
+
baseEndpoint: this._endpoint,
|
|
3854
|
+
defaultHeaders: this._defaultHeaders,
|
|
3855
|
+
path: "/maintenanceWindows/{maintenanceWindowId}/actions/retryFailedOperation",
|
|
3856
|
+
method: "POST",
|
|
3857
|
+
pathParams: pathParams,
|
|
3858
|
+
headerParams: headerParams,
|
|
3859
|
+
queryParams: queryParams
|
|
3860
|
+
});
|
|
3861
|
+
try {
|
|
3862
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3863
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3864
|
+
responseObject: {},
|
|
3865
|
+
responseHeaders: [
|
|
3866
|
+
{
|
|
3867
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3868
|
+
key: "opcWorkRequestId",
|
|
3869
|
+
dataType: "string"
|
|
3870
|
+
},
|
|
3871
|
+
{
|
|
3872
|
+
value: response.headers.get("opc-request-id"),
|
|
3873
|
+
key: "opcRequestId",
|
|
3874
|
+
dataType: "string"
|
|
3875
|
+
}
|
|
3876
|
+
]
|
|
3877
|
+
});
|
|
3878
|
+
return sdkResponse;
|
|
3879
|
+
}
|
|
3880
|
+
catch (err) {
|
|
3881
|
+
throw err;
|
|
3882
|
+
}
|
|
3883
|
+
});
|
|
3884
|
+
}
|
|
3554
3885
|
/**
|
|
3555
3886
|
* List all associated resources recursively up-to a specified level,
|
|
3556
3887
|
* for the monitored resources of type specified.
|
|
@@ -3852,6 +4183,67 @@ class StackMonitoringClient {
|
|
|
3852
4183
|
}
|
|
3853
4184
|
});
|
|
3854
4185
|
}
|
|
4186
|
+
/**
|
|
4187
|
+
* Stop a maintenance window before the end time is reached.
|
|
4188
|
+
*
|
|
4189
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
4190
|
+
* @param StopMaintenanceWindowRequest
|
|
4191
|
+
* @return StopMaintenanceWindowResponse
|
|
4192
|
+
* @throws OciError when an error occurs
|
|
4193
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/StopMaintenanceWindow.ts.html |here} to see how to use StopMaintenanceWindow API.
|
|
4194
|
+
*/
|
|
4195
|
+
stopMaintenanceWindow(stopMaintenanceWindowRequest) {
|
|
4196
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4197
|
+
if (this.logger)
|
|
4198
|
+
this.logger.debug("Calling operation StackMonitoringClient#stopMaintenanceWindow.");
|
|
4199
|
+
const operationName = "stopMaintenanceWindow";
|
|
4200
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MaintenanceWindow/StopMaintenanceWindow";
|
|
4201
|
+
const pathParams = {
|
|
4202
|
+
"{maintenanceWindowId}": stopMaintenanceWindowRequest.maintenanceWindowId
|
|
4203
|
+
};
|
|
4204
|
+
const queryParams = {};
|
|
4205
|
+
let headerParams = {
|
|
4206
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4207
|
+
"if-match": stopMaintenanceWindowRequest.ifMatch,
|
|
4208
|
+
"opc-request-id": stopMaintenanceWindowRequest.opcRequestId
|
|
4209
|
+
};
|
|
4210
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
4211
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, stopMaintenanceWindowRequest.retryConfiguration, specRetryConfiguration);
|
|
4212
|
+
if (this.logger)
|
|
4213
|
+
retrier.logger = this.logger;
|
|
4214
|
+
const request = yield oci_common_1.composeRequest({
|
|
4215
|
+
baseEndpoint: this._endpoint,
|
|
4216
|
+
defaultHeaders: this._defaultHeaders,
|
|
4217
|
+
path: "/maintenanceWindows/{maintenanceWindowId}/actions/stop",
|
|
4218
|
+
method: "POST",
|
|
4219
|
+
pathParams: pathParams,
|
|
4220
|
+
headerParams: headerParams,
|
|
4221
|
+
queryParams: queryParams
|
|
4222
|
+
});
|
|
4223
|
+
try {
|
|
4224
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4225
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
4226
|
+
responseObject: {},
|
|
4227
|
+
responseHeaders: [
|
|
4228
|
+
{
|
|
4229
|
+
value: response.headers.get("opc-work-request-id"),
|
|
4230
|
+
key: "opcWorkRequestId",
|
|
4231
|
+
dataType: "string"
|
|
4232
|
+
},
|
|
4233
|
+
{
|
|
4234
|
+
value: response.headers.get("opc-request-id"),
|
|
4235
|
+
key: "opcRequestId",
|
|
4236
|
+
dataType: "string"
|
|
4237
|
+
}
|
|
4238
|
+
]
|
|
4239
|
+
});
|
|
4240
|
+
return sdkResponse;
|
|
4241
|
+
}
|
|
4242
|
+
catch (err) {
|
|
4243
|
+
throw err;
|
|
4244
|
+
}
|
|
4245
|
+
});
|
|
4246
|
+
}
|
|
3855
4247
|
/**
|
|
3856
4248
|
* Performs test of Metric Extension on a specific resource Id
|
|
3857
4249
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
@@ -4124,6 +4516,68 @@ class StackMonitoringClient {
|
|
|
4124
4516
|
}
|
|
4125
4517
|
});
|
|
4126
4518
|
}
|
|
4519
|
+
/**
|
|
4520
|
+
* Update maintenance window by the given identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
|
4521
|
+
*
|
|
4522
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
4523
|
+
* @param UpdateMaintenanceWindowRequest
|
|
4524
|
+
* @return UpdateMaintenanceWindowResponse
|
|
4525
|
+
* @throws OciError when an error occurs
|
|
4526
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/stackmonitoring/UpdateMaintenanceWindow.ts.html |here} to see how to use UpdateMaintenanceWindow API.
|
|
4527
|
+
*/
|
|
4528
|
+
updateMaintenanceWindow(updateMaintenanceWindowRequest) {
|
|
4529
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4530
|
+
if (this.logger)
|
|
4531
|
+
this.logger.debug("Calling operation StackMonitoringClient#updateMaintenanceWindow.");
|
|
4532
|
+
const operationName = "updateMaintenanceWindow";
|
|
4533
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MaintenanceWindow/UpdateMaintenanceWindow";
|
|
4534
|
+
const pathParams = {
|
|
4535
|
+
"{maintenanceWindowId}": updateMaintenanceWindowRequest.maintenanceWindowId
|
|
4536
|
+
};
|
|
4537
|
+
const queryParams = {};
|
|
4538
|
+
let headerParams = {
|
|
4539
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4540
|
+
"if-match": updateMaintenanceWindowRequest.ifMatch,
|
|
4541
|
+
"opc-request-id": updateMaintenanceWindowRequest.opcRequestId
|
|
4542
|
+
};
|
|
4543
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
4544
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateMaintenanceWindowRequest.retryConfiguration, specRetryConfiguration);
|
|
4545
|
+
if (this.logger)
|
|
4546
|
+
retrier.logger = this.logger;
|
|
4547
|
+
const request = yield oci_common_1.composeRequest({
|
|
4548
|
+
baseEndpoint: this._endpoint,
|
|
4549
|
+
defaultHeaders: this._defaultHeaders,
|
|
4550
|
+
path: "/maintenanceWindows/{maintenanceWindowId}",
|
|
4551
|
+
method: "PUT",
|
|
4552
|
+
bodyContent: common.ObjectSerializer.serialize(updateMaintenanceWindowRequest.updateMaintenanceWindowDetails, "UpdateMaintenanceWindowDetails", model.UpdateMaintenanceWindowDetails.getJsonObj),
|
|
4553
|
+
pathParams: pathParams,
|
|
4554
|
+
headerParams: headerParams,
|
|
4555
|
+
queryParams: queryParams
|
|
4556
|
+
});
|
|
4557
|
+
try {
|
|
4558
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4559
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
4560
|
+
responseObject: {},
|
|
4561
|
+
responseHeaders: [
|
|
4562
|
+
{
|
|
4563
|
+
value: response.headers.get("opc-work-request-id"),
|
|
4564
|
+
key: "opcWorkRequestId",
|
|
4565
|
+
dataType: "string"
|
|
4566
|
+
},
|
|
4567
|
+
{
|
|
4568
|
+
value: response.headers.get("opc-request-id"),
|
|
4569
|
+
key: "opcRequestId",
|
|
4570
|
+
dataType: "string"
|
|
4571
|
+
}
|
|
4572
|
+
]
|
|
4573
|
+
});
|
|
4574
|
+
return sdkResponse;
|
|
4575
|
+
}
|
|
4576
|
+
catch (err) {
|
|
4577
|
+
throw err;
|
|
4578
|
+
}
|
|
4579
|
+
});
|
|
4580
|
+
}
|
|
4127
4581
|
/**
|
|
4128
4582
|
* Updates the Metric Extension
|
|
4129
4583
|
* This operation does not retry by default if the user has not defined a retry configuration.
|