@@ -3530,6 +3530,70 @@ Oracle recommends that you use the `performFinalBackup` parameter to back up any
3530
3530
}
3531
3531
}
3532
3532
3533
+ /**
3534
+ * Disables Operations Insights for the Autonomous Database resource.
3535
+ *
3536
+ * @param DisableAutonomousDatabaseOperationsInsightsRequest
3537
+ * @return DisableAutonomousDatabaseOperationsInsightsResponse
3538
+ * @throws OciError when an error occurs
3539
+ */
3540
+ public async disableAutonomousDatabaseOperationsInsights (
3541
+ disableAutonomousDatabaseOperationsInsightsRequest : requests . DisableAutonomousDatabaseOperationsInsightsRequest
3542
+ ) : Promise < responses . DisableAutonomousDatabaseOperationsInsightsResponse > {
3543
+ if ( this . logger )
3544
+ this . logger . debug (
3545
+ "Calling operation DatabaseClient#disableAutonomousDatabaseOperationsInsights."
3546
+ ) ;
3547
+ const pathParams = {
3548
+ "{autonomousDatabaseId}" :
3549
+ disableAutonomousDatabaseOperationsInsightsRequest . autonomousDatabaseId
3550
+ } ;
3551
+
3552
+ const queryParams = { } ;
3553
+
3554
+ let headerParams = {
3555
+ "Content-Type" : common . Constants . APPLICATION_JSON ,
3556
+ "opc-request-id" : disableAutonomousDatabaseOperationsInsightsRequest . opcRequestId
3557
+ } ;
3558
+
3559
+ const request = await composeRequest ( {
3560
+ baseEndpoint : this . _endpoint ,
3561
+ defaultHeaders : this . _defaultHeaders ,
3562
+ path : "/autonomousDatabases/{autonomousDatabaseId}/actions/disableOperationsInsights" ,
3563
+ method : "POST" ,
3564
+ pathParams : pathParams ,
3565
+ headerParams : headerParams ,
3566
+ queryParams : queryParams
3567
+ } ) ;
3568
+ const retrier = GenericRetrier . createPreferredRetrier (
3569
+ this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : { } ,
3570
+ disableAutonomousDatabaseOperationsInsightsRequest . retryConfiguration
3571
+ ) ;
3572
+ if ( this . logger ) retrier . logger = this . logger ;
3573
+ try {
3574
+ const response = await retrier . makeServiceCall ( this . _httpClient , request ) ;
3575
+ const sdkResponse = composeResponse ( {
3576
+ responseObject : < responses . DisableAutonomousDatabaseOperationsInsightsResponse > { } ,
3577
+ responseHeaders : [
3578
+ {
3579
+ value : response . headers . get ( "opc-work-request-id" ) ,
3580
+ key : "opcWorkRequestId" ,
3581
+ dataType : "string"
3582
+ } ,
3583
+ {
3584
+ value : response . headers . get ( "opc-request-id" ) ,
3585
+ key : "opcRequestId" ,
3586
+ dataType : "string"
3587
+ }
3588
+ ]
3589
+ } ) ;
3590
+
3591
+ return sdkResponse ;
3592
+ } catch ( err ) {
3593
+ throw err ;
3594
+ }
3595
+ }
3596
+
3533
3597
/**
3534
3598
* Downloads the configuration file for the specified Exadata Cloud@Customer infrastructure.
3535
3599
*
@@ -3688,6 +3752,70 @@ Oracle recommends that you use the `performFinalBackup` parameter to back up any
3688
3752
}
3689
3753
}
3690
3754
3755
+ /**
3756
+ * Enables the specified Autonomous Database with Operations Insights.
3757
+ *
3758
+ * @param EnableAutonomousDatabaseOperationsInsightsRequest
3759
+ * @return EnableAutonomousDatabaseOperationsInsightsResponse
3760
+ * @throws OciError when an error occurs
3761
+ */
3762
+ public async enableAutonomousDatabaseOperationsInsights (
3763
+ enableAutonomousDatabaseOperationsInsightsRequest : requests . EnableAutonomousDatabaseOperationsInsightsRequest
3764
+ ) : Promise < responses . EnableAutonomousDatabaseOperationsInsightsResponse > {
3765
+ if ( this . logger )
3766
+ this . logger . debug (
3767
+ "Calling operation DatabaseClient#enableAutonomousDatabaseOperationsInsights."
3768
+ ) ;
3769
+ const pathParams = {
3770
+ "{autonomousDatabaseId}" :
3771
+ enableAutonomousDatabaseOperationsInsightsRequest . autonomousDatabaseId
3772
+ } ;
3773
+
3774
+ const queryParams = { } ;
3775
+
3776
+ let headerParams = {
3777
+ "Content-Type" : common . Constants . APPLICATION_JSON ,
3778
+ "opc-request-id" : enableAutonomousDatabaseOperationsInsightsRequest . opcRequestId
3779
+ } ;
3780
+
3781
+ const request = await composeRequest ( {
3782
+ baseEndpoint : this . _endpoint ,
3783
+ defaultHeaders : this . _defaultHeaders ,
3784
+ path : "/autonomousDatabases/{autonomousDatabaseId}/actions/enableOperationsInsights" ,
3785
+ method : "POST" ,
3786
+ pathParams : pathParams ,
3787
+ headerParams : headerParams ,
3788
+ queryParams : queryParams
3789
+ } ) ;
3790
+ const retrier = GenericRetrier . createPreferredRetrier (
3791
+ this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : { } ,
3792
+ enableAutonomousDatabaseOperationsInsightsRequest . retryConfiguration
3793
+ ) ;
3794
+ if ( this . logger ) retrier . logger = this . logger ;
3795
+ try {
3796
+ const response = await retrier . makeServiceCall ( this . _httpClient , request ) ;
3797
+ const sdkResponse = composeResponse ( {
3798
+ responseObject : < responses . EnableAutonomousDatabaseOperationsInsightsResponse > { } ,
3799
+ responseHeaders : [
3800
+ {
3801
+ value : response . headers . get ( "opc-work-request-id" ) ,
3802
+ key : "opcWorkRequestId" ,
3803
+ dataType : "string"
3804
+ } ,
3805
+ {
3806
+ value : response . headers . get ( "opc-request-id" ) ,
3807
+ key : "opcRequestId" ,
3808
+ dataType : "string"
3809
+ }
3810
+ ]
3811
+ } ) ;
3812
+
3813
+ return sdkResponse ;
3814
+ } catch ( err ) {
3815
+ throw err ;
3816
+ }
3817
+ }
3818
+
3691
3819
/**
3692
3820
* Initiates a failover the specified Autonomous Database to a standby.
3693
3821
*
0 commit comments