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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ sdk:

test:
@echo === Testing the SDK ===
@python -m pytest test
@python -m pytest tests

format:
@echo
@echo === Formatting the Generator ===
@isort foundry test --profile black --multi-line NOQA -sl --project foundry
@python -m black foundry test
@isort foundry tests --profile black --multi-line NOQA -sl --project foundry
@python -m black foundry tests

lint:
@echo === Linting the SDK ===
Expand Down
1,729 changes: 457 additions & 1,272 deletions README.md

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions changelog/@unreleased/pr-21.v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
type: feature
feature:
description: |
- Move data models from `foundry/<VERSION>/models` to their respective namespace. For example, the V2 dataset models are located in `foundry/v2/datasets/models`.
- The request body is now passed in as method parameters. For example, rather than creating a branch like this `client.datasets.Dataset.Branch.create(dataset_rid, create_branch_request={"name": "develop"})` you would do this `client.datasets.Dataset.Branch.create(dataset_rid, name="develop")`.
- Renamed `FoundryV1Client` and `FoundryV2Client` back to `FoundryClient`
- Removed unused models
links:
- https://github.com/palantir/foundry-platform-python/pull/21
115 changes: 102 additions & 13 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
]
],
"namespaces": {
"Core": true,
"Datasets": true,
"Geo": true,
"Ontologies": [
"listOntologies",
"getOntology",
Expand All @@ -65,29 +67,63 @@
"searchObjects",
"aggregateObjects"
]
}
},
"skipTests": [
"createDataset",
"getActionType",
"listActionTypes",
"pageActionTypes",
"getObjectType",
"getOutgoingLinkType",
"listObjectTypes",
"listOutgoingLinkTypes",
"pageObjectTypes",
"pageOutgoingLinkTypes",
"aggregateObjects",
"getObject",
"getLinkedObject",
"listObjects",
"listLinkedObjects",
"pageObjects",
"pageLinkedObjects",
"deployWebsite",
"getQueryType",
"listQueryTypes",
"pageQueryTypes",
"getAttachmentV2",
"getTransaction",
"createTransaction",
"commitTransaction",
"getFileMetadata",
"listBranches",
"abortTransaction"
]
},
"v2": {
"additionalRelationships": [
[
"Ontologies",
"Ontology",
"ActionType"
"OntologiesV2",
"OntologyV2",
"ActionTypeV2"
],
[
"Ontologies",
"Ontology",
"ObjectType"
"OntologiesV2",
"OntologyV2",
"ObjectTypeV2"
],
[
"Ontologies",
"Ontology",
"OntologiesV2",
"OntologyV2",
"QueryType"
]
],
"namespaces": {
"Datasets": true,
"Admin": true,
"Core": true,
"Datasets": true,
"Geo": true,
"Ontologies": [],
"Filesystem": [],
"OntologiesV2": [
"getOntologyV2",
"getOntologyFullMetadata",
Expand Down Expand Up @@ -124,8 +160,7 @@
"loadObjectSetV2",
"aggregateObjectSetV2",
"uploadAttachmentV2",
"getAttachmentContentV2",
"getAttachmentV2"
"getAttachmentContentV2"
],
"Orchestration": true,
"ThirdPartyApplications": true
Expand All @@ -140,7 +175,61 @@
"OntologyObjectV2": "OntologyObject",
"LinkedObjectV2": "LinkedObject",
"AttachmentPropertyV2": "AttachmentProperty"
}
},
"skipTests": [
"getObjectSetV2",
"getBuild",
"getWebsite",
"deployWebsite",
"undeployWebsite",
"getActionType",
"listActionTypes",
"pageActionTypes",
"getObjectType",
"getOutgoingLinkType",
"listObjectTypes",
"listOutgoingLinkTypes",
"pageObjectTypes",
"pageOutgoingLinkTypes",
"aggregateObjects",
"getObject",
"getLinkedObject",
"listObjects",
"listLinkedObjects",
"pageObjects",
"pageLinkedObjects",
"getGroupsBatch",
"searchGroups",
"getUsersBatch",
"searchUsers",
"getActionTypeV2",
"listActionTypesV2",
"pageActionTypesV2",
"getAttachmentV2",
"listPropertyAttachments",
"getAttachmentPropertyByRidV2",
"getLinkedObjectV2",
"listLinkedObjectsV2",
"pageLinkedObjectsV2",
"getObjectTypeV2",
"getOutgoingLinkTypeV2",
"listObjectTypesV2",
"listOutgoingLinkTypesV2",
"pageObjectTypesV2",
"pageOutgoingLinkTypesV2",
"getInterfaceType",
"listInterfaceTypes",
"pageInterfaceTypes",
"getObjectV2",
"listObjectsV2",
"pageObjectsV2",
"getQueryTypeV2",
"listQueryTypesV2",
"pageQueryTypesV2",
"applyActionV2",
"aggregateObjectsForInterface",
"aggregateObjectsV2"
]
}
}
}
Loading