File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -107,10 +107,12 @@ def list_log_groups(self, **kwargs):
107107 AquaUIApp ().list_log_groups (compartment_id = compartment_id , ** kwargs )
108108 )
109109
110- def is_capacity_reservations_enabled (self , ** kwargs ):
110+ def is_capacity_reservations_enabled (self ):
111+ """Checks if the tenant is whitelisted for BYOR (Bring your own reservation) feature."""
111112 return self .finish ({"status" : str (IS_BYOR_ENABLED ).strip ().lower () == "true" })
112113
113114 def list_capacity_reservations (self , ** kwargs ):
115+ """Lists users compute reservations in a specified compartment."""
114116 compartment_id = self .get_argument ("compartment_id" , default = COMPARTMENT_OCID )
115117 return self .finish (
116118 AquaUIApp ().list_capacity_reservations (
Original file line number Diff line number Diff line change @@ -91,12 +91,20 @@ def list_logs(self, **kwargs) -> str:
9191 return sanitize_response (oci_client = self .logging_client , response = res )
9292
9393 @telemetry (entry_point = "plugin=ui&action=list_capacity_reservations" , name = "aqua" )
94- def list_capacity_reservations (self , ** kwargs ):
94+ def list_capacity_reservations (self , ** kwargs ) -> list :
95+ """
96+ Lists users compute reservations in a specified compartment
97+
98+ Returns
99+ -------
100+ json representation of `oci.core.models.ComputeCapacityReservationSummary`.
101+
102+ """
95103 compartment_id = kwargs .pop ("compartment_id" , COMPARTMENT_OCID )
96104 logger .info (f"Loading Capacity reservations from compartment: { compartment_id } " )
97105 compute_client = oc .OCIClientFactory (** default_signer ()).compute
98106 reservations = compute_client .list_compute_capacity_reservations (
99- compartment_id = compartment_id
107+ compartment_id = compartment_id , ** kwargs
100108 )
101109 return reservations .data
102110
You can’t perform that action at this time.
0 commit comments