Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cloudfoundry_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
This module provides a client library for cloudfoundry_client v2/v3.
"""

__version__ = "1.40.1"
__version__ = "1.40.2"
11 changes: 11 additions & 0 deletions cloudfoundry_client/v3/apps.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
from typing import TYPE_CHECKING
import sys

if sys.version_info < (3, 13):
from typing_extensions import deprecated
else:
from warnings import deprecated

from cloudfoundry_client.common_objects import JsonObject, Pagination
from cloudfoundry_client.v3.entities import EntityManager, Entity
Expand All @@ -20,6 +26,11 @@ def remove(self, application_guid: str, asynchronous: bool = True) -> str | None
def get_env(self, application_guid: str) -> JsonObject:
return super()._get("%s%s/%s/env" % (self.target_endpoint, self.entity_uri, application_guid))

@deprecated("use list_routes instead")
def get_routes(self, application_guid: str) -> JsonObject:
return super()._get(
"%s%s/%s/routes" % (self.target_endpoint, self.entity_uri, application_guid))

def list_routes(self, application_guid: str, **kwargs) -> Pagination[Entity]:
uri: str = "%s/%s/routes" % (self.entity_uri, application_guid)
return super()._list(requested_path=uri, **kwargs)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exclude = '''

[tool.poetry]
name = "cloudfoundry_client"
version = "1.40.1"
version = "1.40.2"
description = "A client library for CloudFoundry"
authors = ["Benjamin Einaudi <antechrestos@gmail.com>"]
readme = "README.rst"
Expand Down
Loading