Skip to content

Commit d4f0915

Browse files
committed
fix(destination): mark deprecated methods with deprecated=True in record_metrics
1 parent c77e090 commit d4f0915

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎src/sap_cloud_sdk/destination/client.py‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,11 @@ def list_subaccount_destinations(
197197
f"failed to list subaccount destinations: {e}"
198198
)
199199

200-
@record_metrics(Module.DESTINATION, Operation.DESTINATION_GET_INSTANCE_DESTINATION)
200+
@record_metrics(
201+
Module.DESTINATION,
202+
Operation.DESTINATION_GET_INSTANCE_DESTINATION,
203+
deprecated=True,
204+
)
201205
def get_instance_destination(
202206
self, name: str, proxy_enabled: Optional[bool] = None
203207
) -> Optional[Destination | TransparentProxyDestination]:
@@ -236,7 +240,9 @@ def get_instance_destination(
236240
raise DestinationOperationError(f"failed to get destination '{name}': {e}")
237241

238242
@record_metrics(
239-
Module.DESTINATION, Operation.DESTINATION_GET_SUBACCOUNT_DESTINATION
243+
Module.DESTINATION,
244+
Operation.DESTINATION_GET_SUBACCOUNT_DESTINATION,
245+
deprecated=True,
240246
)
241247
def get_subaccount_destination(
242248
self,

0 commit comments

Comments
 (0)