Skip to content

Commit 2895d61

Browse files
committed
changing access of methods used across multiple services to publi
1 parent 9d7e0aa commit 2895d61

File tree

1,710 files changed

+22904
-22903
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,710 files changed

+22904
-22903
lines changed

oci/ai_anomaly_detection_ai_private_endpoint_data_source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func (s *AiAnomalyDetectionAiPrivateEndpointDataSourceCrud) Get() error {
4949
request.AiPrivateEndpointId = &tmp
5050
}
5151

52-
request.RequestMetadata.RetryPolicy = getRetryPolicy(false, "ai_anomaly_detection")
52+
request.RequestMetadata.RetryPolicy = GetRetryPolicy(false, "ai_anomaly_detection")
5353

5454
response, err := s.Client.GetAiPrivateEndpoint(context.Background(), request)
5555
if err != nil {

oci/ai_anomaly_detection_ai_private_endpoint_resource.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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

228228
func (s *AiAnomalyDetectionAiPrivateEndpointResourceCrud) getAiPrivateEndpointFromWorkRequest(workId *string, retryPolicy *oci_common.RetryPolicy,
@@ -277,7 +277,7 @@ func aiPrivateEndpointWorkRequestShouldRetryFunc(timeout time.Duration) func(res
277277

278278
func 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

428428
func (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

Comments
 (0)