@@ -13,8 +13,8 @@ import (
1313 "github.com/hashicorp/terraform-plugin-sdk/helper/resource"
1414 "github.com/hashicorp/terraform-plugin-sdk/helper/schema"
1515
16- oci_ai_anomaly_detection "github.com/oracle/oci-go-sdk/v48 /aianomalydetection"
17- oci_common "github.com/oracle/oci-go-sdk/v48 /common"
16+ oci_ai_anomaly_detection "github.com/oracle/oci-go-sdk/v49 /aianomalydetection"
17+ oci_common "github.com/oracle/oci-go-sdk/v49 /common"
1818)
1919
2020func init () {
@@ -206,23 +206,23 @@ func (s *AiAnomalyDetectionAiPrivateEndpointResourceCrud) Create() error {
206206 }
207207
208208 if freeformTags , ok := s .D .GetOkExists ("freeform_tags" ); ok {
209- request .FreeformTags = objectMapToStringMap (freeformTags .(map [string ]interface {}))
209+ request .FreeformTags = ObjectMapToStringMap (freeformTags .(map [string ]interface {}))
210210 }
211211
212212 if subnetId , ok := s .D .GetOkExists ("subnet_id" ); ok {
213213 tmp := subnetId .(string )
214214 request .SubnetId = & tmp
215215 }
216216
217- request .RequestMetadata .RetryPolicy = getRetryPolicy (s .DisableNotFoundRetries , "ai_anomaly_detection" )
217+ request .RequestMetadata .RetryPolicy = GetRetryPolicy (s .DisableNotFoundRetries , "ai_anomaly_detection" )
218218
219219 response , err := s .Client .CreateAiPrivateEndpoint (context .Background (), request )
220220 if err != nil {
221221 return err
222222 }
223223
224224 workId := response .OpcWorkRequestId
225- return s .getAiPrivateEndpointFromWorkRequest (workId , getRetryPolicy (s .DisableNotFoundRetries , "ai_anomaly_detection" ), oci_ai_anomaly_detection .ActionTypeCreated , s .D .Timeout (schema .TimeoutCreate ))
225+ return s .getAiPrivateEndpointFromWorkRequest (workId , GetRetryPolicy (s .DisableNotFoundRetries , "ai_anomaly_detection" ), oci_ai_anomaly_detection .ActionTypeCreated , s .D .Timeout (schema .TimeoutCreate ))
226226}
227227
228228func (s * AiAnomalyDetectionAiPrivateEndpointResourceCrud ) getAiPrivateEndpointFromWorkRequest (workId * string , retryPolicy * oci_common.RetryPolicy ,
@@ -277,7 +277,7 @@ func aiPrivateEndpointWorkRequestShouldRetryFunc(timeout time.Duration) func(res
277277
278278func aiPrivateEndpointWaitForWorkRequest (wId * string , entityType string , action oci_ai_anomaly_detection.ActionTypeEnum ,
279279 timeout time.Duration , disableFoundRetries bool , client * oci_ai_anomaly_detection.AnomalyDetectionClient ) (* string , error ) {
280- retryPolicy := getRetryPolicy (disableFoundRetries , "ai_anomaly_detection" )
280+ retryPolicy := GetRetryPolicy (disableFoundRetries , "ai_anomaly_detection" )
281281 retryPolicy .ShouldRetryOperation = aiPrivateEndpointWorkRequestShouldRetryFunc (timeout )
282282
283283 response := oci_ai_anomaly_detection.GetWorkRequestResponse {}
@@ -358,7 +358,7 @@ func (s *AiAnomalyDetectionAiPrivateEndpointResourceCrud) Get() error {
358358 tmp := s .D .Id ()
359359 request .AiPrivateEndpointId = & tmp
360360
361- request .RequestMetadata .RetryPolicy = getRetryPolicy (s .DisableNotFoundRetries , "ai_anomaly_detection" )
361+ request .RequestMetadata .RetryPolicy = GetRetryPolicy (s .DisableNotFoundRetries , "ai_anomaly_detection" )
362362
363363 response , err := s .Client .GetAiPrivateEndpoint (context .Background (), request )
364364 if err != nil {
@@ -411,18 +411,18 @@ func (s *AiAnomalyDetectionAiPrivateEndpointResourceCrud) Update() error {
411411 }
412412
413413 if freeformTags , ok := s .D .GetOkExists ("freeform_tags" ); ok {
414- request .FreeformTags = objectMapToStringMap (freeformTags .(map [string ]interface {}))
414+ request .FreeformTags = ObjectMapToStringMap (freeformTags .(map [string ]interface {}))
415415 }
416416
417- request .RequestMetadata .RetryPolicy = getRetryPolicy (s .DisableNotFoundRetries , "ai_anomaly_detection" )
417+ request .RequestMetadata .RetryPolicy = GetRetryPolicy (s .DisableNotFoundRetries , "ai_anomaly_detection" )
418418
419419 response , err := s .Client .UpdateAiPrivateEndpoint (context .Background (), request )
420420 if err != nil {
421421 return err
422422 }
423423
424424 workId := response .OpcWorkRequestId
425- return s .getAiPrivateEndpointFromWorkRequest (workId , getRetryPolicy (s .DisableNotFoundRetries , "ai_anomaly_detection" ), oci_ai_anomaly_detection .ActionTypeUpdated , s .D .Timeout (schema .TimeoutUpdate ))
425+ return s .getAiPrivateEndpointFromWorkRequest (workId , GetRetryPolicy (s .DisableNotFoundRetries , "ai_anomaly_detection" ), oci_ai_anomaly_detection .ActionTypeUpdated , s .D .Timeout (schema .TimeoutUpdate ))
426426}
427427
428428func (s * AiAnomalyDetectionAiPrivateEndpointResourceCrud ) Delete () error {
@@ -431,7 +431,7 @@ func (s *AiAnomalyDetectionAiPrivateEndpointResourceCrud) Delete() error {
431431 tmp := s .D .Id ()
432432 request .AiPrivateEndpointId = & tmp
433433
434- request .RequestMetadata .RetryPolicy = getRetryPolicy (s .DisableNotFoundRetries , "ai_anomaly_detection" )
434+ request .RequestMetadata .RetryPolicy = GetRetryPolicy (s .DisableNotFoundRetries , "ai_anomaly_detection" )
435435
436436 response , err := s .Client .DeleteAiPrivateEndpoint (context .Background (), request )
437437 if err != nil {
@@ -546,13 +546,13 @@ func (s *AiAnomalyDetectionAiPrivateEndpointResourceCrud) updateCompartment(comp
546546 compartmentTmp := compartment .(string )
547547 changeCompartmentRequest .CompartmentId = & compartmentTmp
548548
549- changeCompartmentRequest .RequestMetadata .RetryPolicy = getRetryPolicy (s .DisableNotFoundRetries , "ai_anomaly_detection" )
549+ changeCompartmentRequest .RequestMetadata .RetryPolicy = GetRetryPolicy (s .DisableNotFoundRetries , "ai_anomaly_detection" )
550550
551551 response , err := s .Client .ChangeAiPrivateEndpointCompartment (context .Background (), changeCompartmentRequest )
552552 if err != nil {
553553 return err
554554 }
555555
556556 workId := response .OpcWorkRequestId
557- return s .getAiPrivateEndpointFromWorkRequest (workId , getRetryPolicy (s .DisableNotFoundRetries , "ai_anomaly_detection" ), oci_ai_anomaly_detection .ActionTypeUpdated , s .D .Timeout (schema .TimeoutUpdate ))
557+ return s .getAiPrivateEndpointFromWorkRequest (workId , GetRetryPolicy (s .DisableNotFoundRetries , "ai_anomaly_detection" ), oci_ai_anomaly_detection .ActionTypeUpdated , s .D .Timeout (schema .TimeoutUpdate ))
558558}
0 commit comments