Skip to content

Commit 8cf4e75

Browse files
Excavator: Upgrade API Version (#28)
1 parent db5020f commit 8cf4e75

File tree

4 files changed

+4
-23
lines changed

4 files changed

+4
-23
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Palantir provides two different Python Software Development Kits (SDKs) for inte
2424
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.
2525

2626
### Foundry Platform SDK
27-
The Foundry Platform Software Development Kit (SDK) is generated from the Foundry API's OpenAPI specification
27+
The Foundry Platform Software Development Kit (SDK) is generated from the Foundry API specification
2828
file. The intention of this SDK is to encompass endpoints related to interacting
2929
with the platform itself. Although there are Ontology services included by this SDK, this SDK surfaces endpoints
3030
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).

foundry/_core/confidential_client_auth.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ConfidentialClientAuth(Auth):
4040
4141
:param client_id: OAuth client id to be used by the application.
4242
:param client_secret: OAuth client secret to be used by the application.
43-
:param scopes: The list of scopes to request.
43+
:param scopes: The list of scopes to request. By default, no specific scope is provided and a token will be returned with all scopes.
4444
:param hostname: Hostname for authentication and ontology endpoints.
4545
"""
4646

@@ -49,14 +49,9 @@ def __init__(
4949
client_id: str,
5050
client_secret: str,
5151
hostname: str,
52-
scopes: List[str],
52+
scopes: Optional[List[str]] = None,
5353
should_refresh: bool = False,
5454
) -> None:
55-
if len(scopes) == 0:
56-
raise ValueError(
57-
"You have not provided any scopes. At least one scope must be provided."
58-
)
59-
6055
self._client_id = client_id
6156
self._client_secret = client_secret
6257
self._token: Optional[OAuthToken] = None

foundry/_versions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
# using the autorelease bot
1818
__version__ = "0.0.0"
1919

20-
__openapi_document_version__ = "1.926.0"
20+
__openapi_document_version__ = "1.928.0"

tests/test_foundry_token_oauth_client.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,6 @@
1919
from foundry._errors.not_authenticated import NotAuthenticated
2020

2121

22-
def test_fails_no_escopes():
23-
with pytest.raises(ValueError) as info:
24-
ConfidentialClientAuth(
25-
client_id="123",
26-
client_secret="abc",
27-
hostname="example.com",
28-
scopes=[],
29-
)
30-
31-
assert (
32-
str(info.value) == "You have not provided any scopes. At least one scope must be provided."
33-
)
34-
35-
3622
def test_can_pass_config():
3723
config = ConfidentialClientAuth(
3824
client_id="123",

0 commit comments

Comments
 (0)