Skip to content

Commit

Permalink
Excavator: Upgrade API Version (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
svc-excavator-bot authored Sep 19, 2024
1 parent db5020f commit 8cf4e75
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 23 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Palantir provides two different Python Software Development Kits (SDKs) for inte
The Ontology SDK allows you to access the full power of the Ontology directly from your development environment. You can generate the Ontology SDK using the Developer Console, a portal for creating and managing applications using Palantir APIs. Review the [Ontology SDK documentation](https://www.palantir.com/docs/foundry/ontology-sdk) for more information.

### Foundry Platform SDK
The Foundry Platform Software Development Kit (SDK) is generated from the Foundry API's OpenAPI specification
The Foundry Platform Software Development Kit (SDK) is generated from the Foundry API specification
file. The intention of this SDK is to encompass endpoints related to interacting
with the platform itself. Although there are Ontology services included by this SDK, this SDK surfaces endpoints
for interacting with Ontological resources such as object types, link types, and action types. In contrast, the OSDK allows you to interact with objects, links and Actions (for example, querying your objects, applying an action).
Expand Down
9 changes: 2 additions & 7 deletions foundry/_core/confidential_client_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ConfidentialClientAuth(Auth):
:param client_id: OAuth client id to be used by the application.
:param client_secret: OAuth client secret to be used by the application.
:param scopes: The list of scopes to request.
:param scopes: The list of scopes to request. By default, no specific scope is provided and a token will be returned with all scopes.
:param hostname: Hostname for authentication and ontology endpoints.
"""

Expand All @@ -49,14 +49,9 @@ def __init__(
client_id: str,
client_secret: str,
hostname: str,
scopes: List[str],
scopes: Optional[List[str]] = None,
should_refresh: bool = False,
) -> None:
if len(scopes) == 0:
raise ValueError(
"You have not provided any scopes. At least one scope must be provided."
)

self._client_id = client_id
self._client_secret = client_secret
self._token: Optional[OAuthToken] = None
Expand Down
2 changes: 1 addition & 1 deletion foundry/_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
# using the autorelease bot
__version__ = "0.0.0"

__openapi_document_version__ = "1.926.0"
__openapi_document_version__ = "1.928.0"
14 changes: 0 additions & 14 deletions tests/test_foundry_token_oauth_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,6 @@
from foundry._errors.not_authenticated import NotAuthenticated


def test_fails_no_escopes():
with pytest.raises(ValueError) as info:
ConfidentialClientAuth(
client_id="123",
client_secret="abc",
hostname="example.com",
scopes=[],
)

assert (
str(info.value) == "You have not provided any scopes. At least one scope must be provided."
)


def test_can_pass_config():
config = ConfidentialClientAuth(
client_id="123",
Expand Down

0 comments on commit 8cf4e75

Please sign in to comment.