@@ -109,7 +109,7 @@ def format_mysql_shapes(items) -> str:
109
109
items = [items ]
110
110
111
111
# return objects in READABLE text output
112
- out = (core .fixed_len ('Shape Name' , 32 , ' ' ) +
112
+ out = (core .fixed_len ('Shape Name' , 32 , ' ' ) +
113
113
core .fixed_len ('CPU Count' , 12 , ' ' , align_right = True ) +
114
114
core .fixed_len ('Memory Size' , 12 , '\n ' , align_right = True ))
115
115
id = 1
@@ -604,9 +604,10 @@ def list_db_systems(**kwargs):
604
604
605
605
# Get the list of shapes, cSpell:ignore ANALYTICSCLUSTER
606
606
all_shapes = mds_client .list_shapes (compartment_id = compartment_id ,
607
- is_supported_for = ['ANALYTICSCLUSTER ' ,'HEATWAVECLUSTER' ]).data
607
+ is_supported_for = ['DBSYSTEM ' ,'HEATWAVECLUSTER' ]).data
608
608
hw_shapes = [s .name for s in all_shapes if "HEATWAVECLUSTER" in s .is_supported_for ]
609
- analytics_shapes = [s .name for s in all_shapes if "ANALYTICSCLUSTER" in s .is_supported_for ]
609
+ # Support for "ANALYTICSCLUSTER" has been removed from the SDK
610
+ analytics_shapes = [] #[s.name for s in all_shapes if "ANALYTICSCLUSTER" in s.is_supported_for]
610
611
611
612
# Initialize the DbSystem client
612
613
db_sys = core .get_oci_db_system_client (config = config )
@@ -826,8 +827,8 @@ def update_db_system(**kwargs):
826
827
db_system_id (str): OCID of the DbSystem.
827
828
ignore_current (bool): Whether to not default to the current bastion.
828
829
new_name (str): The new name
829
- new_description (str): The new description
830
- new_freeform_tags (str): The new freeform_tags formatted as string
830
+ new_description (str): The new description
831
+ new_freeform_tags (str): The new freeform_tags formatted as string
831
832
compartment_id (str): OCID of the parent compartment
832
833
config (dict): An OCI config object or None
833
834
config_profile (str): The name of an OCI config profile
@@ -1760,7 +1761,7 @@ def change_lifecycle_state(**kwargs):
1760
1761
1761
1762
# If the function should wait till the bastion reaches the correct
1762
1763
# lifecycle state
1763
-
1764
+
1764
1765
if await_completion :
1765
1766
if db_system_action :
1766
1767
await_lifecycle_state (
@@ -1877,7 +1878,7 @@ def await_hw_cluster_lifecycle_state(db_system_id, action_state, action_name, co
1877
1878
s = f" { req .percent_complete :.0f} % completed."
1878
1879
except :
1879
1880
pass
1880
-
1881
+
1881
1882
print (f'Waiting for HeatWave Cluster to { action_name } ...{ s } ' )
1882
1883
time .sleep (5 )
1883
1884
cycles += 1
@@ -1989,7 +1990,7 @@ def create_hw_cluster(**kwargs):
1989
1990
1990
1991
if not shape_name and interactive :
1991
1992
shape = get_db_system_shape (
1992
- is_supported_for = "HEATWAVECLUSTER" ,
1993
+ is_supported_for = "HEATWAVECLUSTER" ,
1993
1994
compartment_id = db_system .compartment_id ,
1994
1995
config = config , config_profile = config_profile ,
1995
1996
interactive = True ,
@@ -2013,12 +2014,12 @@ def create_hw_cluster(**kwargs):
2013
2014
2014
2015
if await_completion :
2015
2016
await_hw_cluster_lifecycle_state (db_system_id = db_system .id , action_state = 'ACTIVE' ,
2016
- action_name = "start" , config = config , interactive = interactive ,
2017
+ action_name = "start" , config = config , interactive = interactive ,
2017
2018
work_request_id = work_request_id )
2018
2019
elif interactive :
2019
2020
print (f"The HeatWave Cluster of the MySQL DB System '{ db_system .display_name } ' is being "
2020
2021
"created." )
2021
-
2022
+
2022
2023
except oci .exceptions .ServiceError as e :
2023
2024
if raise_exceptions :
2024
2025
raise
@@ -2125,7 +2126,7 @@ def update_hw_cluster(**kwargs):
2125
2126
2126
2127
if not shape_name and interactive :
2127
2128
shape = get_db_system_shape (
2128
- is_supported_for = "HEATWAVECLUSTER" ,
2129
+ is_supported_for = "HEATWAVECLUSTER" ,
2129
2130
compartment_id = db_system .compartment_id ,
2130
2131
config = config , config_profile = config_profile ,
2131
2132
interactive = True ,
0 commit comments