Skip to content

Commit 51e7bef

Browse files
committed
add lifecycle state to update compartment
1 parent 2b97242 commit 51e7bef

File tree

105 files changed

+528
-6
lines changed

Some content is hidden

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

105 files changed

+528
-6
lines changed

oci/ai_anomaly_detection_data_asset_resource.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -888,5 +888,10 @@ func (s *AiAnomalyDetectionDataAssetResourceCrud) updateCompartment(compartment
888888
if err != nil {
889889
return err
890890
}
891+
892+
if waitErr := waitForUpdatedState(s.D, s); waitErr != nil {
893+
return waitErr
894+
}
895+
891896
return nil
892897
}

oci/ai_anomaly_detection_model_resource.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,5 +836,10 @@ func (s *AiAnomalyDetectionModelResourceCrud) updateCompartment(compartment inte
836836
if err != nil {
837837
return err
838838
}
839+
840+
if waitErr := waitForUpdatedState(s.D, s); waitErr != nil {
841+
return waitErr
842+
}
843+
839844
return nil
840845
}

oci/ai_anomaly_detection_project_resource.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,5 +499,10 @@ func (s *AiAnomalyDetectionProjectResourceCrud) updateCompartment(compartment in
499499
if err != nil {
500500
return err
501501
}
502+
503+
if waitErr := waitForUpdatedState(s.D, s); waitErr != nil {
504+
return waitErr
505+
}
506+
502507
return nil
503508
}

oci/apigateway_certificate_resource.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,5 +535,10 @@ func (s *ApigatewayCertificateResourceCrud) updateCompartment(compartment interf
535535
if err != nil {
536536
return err
537537
}
538+
539+
if waitErr := waitForUpdatedState(s.D, s); waitErr != nil {
540+
return waitErr
541+
}
542+
538543
return nil
539544
}

oci/artifacts_container_repository_resource.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,5 +442,10 @@ func (s *ArtifactsContainerRepositoryResourceCrud) updateCompartment(compartment
442442
if err != nil {
443443
return err
444444
}
445+
446+
if waitErr := waitForUpdatedState(s.D, s); waitErr != nil {
447+
return waitErr
448+
}
449+
445450
return nil
446451
}

oci/artifacts_repository_resource.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,5 +409,10 @@ func (s *ArtifactsRepositoryResourceCrud) updateCompartment(compartment interfac
409409
if err != nil {
410410
return err
411411
}
412+
413+
if waitErr := waitForUpdatedState(s.D, s); waitErr != nil {
414+
return waitErr
415+
}
416+
412417
return nil
413418
}

oci/autoscaling_auto_scaling_configuration_resource.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,5 +1166,10 @@ func (s *AutoScalingAutoScalingConfigurationResourceCrud) updateCompartment(comp
11661166
if err != nil {
11671167
return err
11681168
}
1169+
1170+
if waitErr := waitForUpdatedState(s.D, s); waitErr != nil {
1171+
return waitErr
1172+
}
1173+
11691174
return nil
11701175
}

oci/bastion_bastion_resource.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,5 +587,10 @@ func (s *BastionBastionResourceCrud) updateCompartment(compartment interface{})
587587
if err != nil {
588588
return err
589589
}
590+
591+
if waitErr := waitForUpdatedState(s.D, s); waitErr != nil {
592+
return waitErr
593+
}
594+
590595
return nil
591596
}

oci/cloud_guard_detector_recipe_resource.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,11 @@ func (s *CloudGuardDetectorRecipeResourceCrud) updateCompartment(compartment int
10451045
if err != nil {
10461046
return err
10471047
}
1048+
1049+
if waitErr := waitForUpdatedState(s.D, s); waitErr != nil {
1050+
return waitErr
1051+
}
1052+
10481053
return nil
10491054
}
10501055

oci/cloud_guard_managed_list_resource.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,5 +460,10 @@ func (s *CloudGuardManagedListResourceCrud) updateCompartment(compartment interf
460460
if err != nil {
461461
return err
462462
}
463+
464+
if waitErr := waitForUpdatedState(s.D, s); waitErr != nil {
465+
return waitErr
466+
}
467+
463468
return nil
464469
}

0 commit comments

Comments
 (0)