@@ -188,6 +188,11 @@ func DatabaseAutonomousDatabaseResource() *schema.Resource {
188188 Computed : true ,
189189 Elem : schema .TypeString ,
190190 },
191+ "in_memory_percentage" : {
192+ Type : schema .TypeInt ,
193+ Optional : true ,
194+ Computed : true ,
195+ },
191196 "is_access_control_enabled" : {
192197 Type : schema .TypeBool ,
193198 Optional : true ,
@@ -624,6 +629,10 @@ func DatabaseAutonomousDatabaseResource() *schema.Resource {
624629 Type : schema .TypeInt ,
625630 Computed : true ,
626631 },
632+ "in_memory_area_in_gbs" : {
633+ Type : schema .TypeInt ,
634+ Computed : true ,
635+ },
627636 "infrastructure_type" : {
628637 Type : schema .TypeString ,
629638 Computed : true ,
@@ -1430,7 +1439,12 @@ func (s *DatabaseAutonomousDatabaseResourceCrud) Update() error {
14301439 request .FreeformTags = tfresource .ObjectMapToStringMap (freeformTags .(map [string ]interface {}))
14311440 }
14321441
1433- if isAccessControlEnabled , ok := s .D .GetOkExists ("is_access_control_enabled" ); ok {
1442+ if inMemoryPercentage , ok := s .D .GetOkExists ("in_memory_percentage" ); ok {
1443+ tmp := inMemoryPercentage .(int )
1444+ request .InMemoryPercentage = & tmp
1445+ }
1446+
1447+ if isAccessControlEnabled , ok := s .D .GetOkExists ("is_access_control_enabled" ); ok && s .D .HasChange ("is_access_control_enabled" ) {
14341448 tmp := isAccessControlEnabled .(bool )
14351449 request .IsAccessControlEnabled = & tmp
14361450 }
@@ -1752,6 +1766,14 @@ func (s *DatabaseAutonomousDatabaseResourceCrud) SetData() error {
17521766
17531767 s .D .Set ("freeform_tags" , s .Res .FreeformTags )
17541768
1769+ if s .Res .InMemoryAreaInGBs != nil {
1770+ s .D .Set ("in_memory_area_in_gbs" , * s .Res .InMemoryAreaInGBs )
1771+ }
1772+
1773+ if s .Res .InMemoryPercentage != nil {
1774+ s .D .Set ("in_memory_percentage" , * s .Res .InMemoryPercentage )
1775+ }
1776+
17551777 s .D .Set ("infrastructure_type" , s .Res .InfrastructureType )
17561778
17571779 if s .Res .IsAccessControlEnabled != nil {
@@ -2413,6 +2435,10 @@ func (s *DatabaseAutonomousDatabaseResourceCrud) populateTopLevelPolymorphicCrea
24132435 if freeformTags , ok := s .D .GetOkExists ("freeform_tags" ); ok {
24142436 details .FreeformTags = tfresource .ObjectMapToStringMap (freeformTags .(map [string ]interface {}))
24152437 }
2438+ if inMemoryPercentage , ok := s .D .GetOkExists ("in_memory_percentage" ); ok {
2439+ tmp := inMemoryPercentage .(int )
2440+ details .InMemoryPercentage = & tmp
2441+ }
24162442 if isAutoScalingEnabled , ok := s .D .GetOkExists ("is_auto_scaling_enabled" ); ok {
24172443 tmp := isAutoScalingEnabled .(bool )
24182444 details .IsAutoScalingEnabled = & tmp
@@ -2652,6 +2678,10 @@ func (s *DatabaseAutonomousDatabaseResourceCrud) populateTopLevelPolymorphicCrea
26522678 if freeformTags , ok := s .D .GetOkExists ("freeform_tags" ); ok {
26532679 details .FreeformTags = tfresource .ObjectMapToStringMap (freeformTags .(map [string ]interface {}))
26542680 }
2681+ if inMemoryPercentage , ok := s .D .GetOkExists ("in_memory_percentage" ); ok {
2682+ tmp := inMemoryPercentage .(int )
2683+ details .InMemoryPercentage = & tmp
2684+ }
26552685 if isAutoScalingEnabled , ok := s .D .GetOkExists ("is_auto_scaling_enabled" ); ok {
26562686 tmp := isAutoScalingEnabled .(bool )
26572687 details .IsAutoScalingEnabled = & tmp
@@ -2880,6 +2910,10 @@ func (s *DatabaseAutonomousDatabaseResourceCrud) populateTopLevelPolymorphicCrea
28802910 if freeformTags , ok := s .D .GetOkExists ("freeform_tags" ); ok {
28812911 details .FreeformTags = tfresource .ObjectMapToStringMap (freeformTags .(map [string ]interface {}))
28822912 }
2913+ if inMemoryPercentage , ok := s .D .GetOkExists ("in_memory_percentage" ); ok {
2914+ tmp := inMemoryPercentage .(int )
2915+ details .InMemoryPercentage = & tmp
2916+ }
28832917 if isAutoScalingEnabled , ok := s .D .GetOkExists ("is_auto_scaling_enabled" ); ok {
28842918 tmp := isAutoScalingEnabled .(bool )
28852919 details .IsAutoScalingEnabled = & tmp
@@ -3101,6 +3135,10 @@ func (s *DatabaseAutonomousDatabaseResourceCrud) populateTopLevelPolymorphicCrea
31013135 if freeformTags , ok := s .D .GetOkExists ("freeform_tags" ); ok {
31023136 details .FreeformTags = tfresource .ObjectMapToStringMap (freeformTags .(map [string ]interface {}))
31033137 }
3138+ if inMemoryPercentage , ok := s .D .GetOkExists ("in_memory_percentage" ); ok {
3139+ tmp := inMemoryPercentage .(int )
3140+ details .InMemoryPercentage = & tmp
3141+ }
31043142 if isAccessControlEnabled , ok := s .D .GetOkExists ("is_access_control_enabled" ); ok {
31053143 tmp := isAccessControlEnabled .(bool )
31063144 details .IsAccessControlEnabled = & tmp
@@ -3309,6 +3347,10 @@ func (s *DatabaseAutonomousDatabaseResourceCrud) populateTopLevelPolymorphicCrea
33093347 if freeformTags , ok := s .D .GetOkExists ("freeform_tags" ); ok {
33103348 details .FreeformTags = tfresource .ObjectMapToStringMap (freeformTags .(map [string ]interface {}))
33113349 }
3350+ if inMemoryPercentage , ok := s .D .GetOkExists ("in_memory_percentage" ); ok {
3351+ tmp := inMemoryPercentage .(int )
3352+ details .InMemoryPercentage = & tmp
3353+ }
33123354 if isAccessControlEnabled , ok := s .D .GetOkExists ("is_access_control_enabled" ); ok {
33133355 tmp := isAccessControlEnabled .(bool )
33143356 details .IsAccessControlEnabled = & tmp
@@ -3528,6 +3570,10 @@ func (s *DatabaseAutonomousDatabaseResourceCrud) populateTopLevelPolymorphicCrea
35283570 if freeformTags , ok := s .D .GetOkExists ("freeform_tags" ); ok {
35293571 details .FreeformTags = tfresource .ObjectMapToStringMap (freeformTags .(map [string ]interface {}))
35303572 }
3573+ if inMemoryPercentage , ok := s .D .GetOkExists ("in_memory_percentage" ); ok {
3574+ tmp := inMemoryPercentage .(int )
3575+ details .InMemoryPercentage = & tmp
3576+ }
35313577 if isAccessControlEnabled , ok := s .D .GetOkExists ("is_access_control_enabled" ); ok {
35323578 tmp := isAccessControlEnabled .(bool )
35333579 details .IsAccessControlEnabled = & tmp
@@ -3751,6 +3797,10 @@ func (s *DatabaseAutonomousDatabaseResourceCrud) populateTopLevelPolymorphicCrea
37513797 if freeformTags , ok := s .D .GetOkExists ("freeform_tags" ); ok {
37523798 details .FreeformTags = tfresource .ObjectMapToStringMap (freeformTags .(map [string ]interface {}))
37533799 }
3800+ if inMemoryPercentage , ok := s .D .GetOkExists ("in_memory_percentage" ); ok {
3801+ tmp := inMemoryPercentage .(int )
3802+ details .InMemoryPercentage = & tmp
3803+ }
37543804 if isAccessControlEnabled , ok := s .D .GetOkExists ("is_access_control_enabled" ); ok {
37553805 tmp := isAccessControlEnabled .(bool )
37563806 details .IsAccessControlEnabled = & tmp
0 commit comments