Skip to content

Commit

Permalink
Excavator: Upgrade API Version (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
svc-excavator-bot authored Oct 2, 2024
1 parent 087ac4d commit 431176f
Show file tree
Hide file tree
Showing 36 changed files with 1,332 additions and 20 deletions.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,10 @@ Namespace | Resource | Operation | HTTP request |
**Datasets** | Transaction | [**commit**](docs/v2/Datasets/Transaction.md#commit) | **POST** /v2/datasets/{datasetRid}/transactions/{transactionRid}/commit |
**Datasets** | Transaction | [**create**](docs/v2/Datasets/Transaction.md#create) | **POST** /v2/datasets/{datasetRid}/transactions |
**Datasets** | Transaction | [**get**](docs/v2/Datasets/Transaction.md#get) | **GET** /v2/datasets/{datasetRid}/transactions/{transactionRid} |
**Filesystem** | Folder | [**children**](docs/v2/Filesystem/Folder.md#children) | **GET** /v2/filesystem/folders/{folderRid}/children |
**Filesystem** | Folder | [**children_page**](docs/v2/Filesystem/Folder.md#children_page) | **GET** /v2/filesystem/folders/{folderRid}/children |
**Filesystem** | Folder | [**create**](docs/v2/Filesystem/Folder.md#create) | **POST** /v2/filesystem/folders |
**Filesystem** | Folder | [**get**](docs/v2/Filesystem/Folder.md#get) | **GET** /v2/filesystem/folders/{folderRid} |
**OntologiesV2** | Action | [**apply**](docs/v2/OntologiesV2/Action.md#apply) | **POST** /v2/ontologies/{ontology}/actions/{action}/apply |
**OntologiesV2** | Action | [**apply_batch**](docs/v2/OntologiesV2/Action.md#apply_batch) | **POST** /v2/ontologies/{ontology}/actions/{action}/applyBatch |
**OntologiesV2** | ActionTypeV2 | [**get**](docs/v2/OntologiesV2/ActionTypeV2.md#get) | **GET** /v2/ontologies/{ontology}/actionTypes/{actionType} |
Expand Down Expand Up @@ -509,6 +513,10 @@ Namespace | Resource | Operation | HTTP request |
- [UserDict](docs/v2/models/UserDict.md)
- [UserSearchFilterDict](docs/v2/models/UserSearchFilterDict.md)
- [UserUsername](docs/v2/models/UserUsername.md)
- [ConnectionRid](docs/v2/models/ConnectionRid.md)
- [FileImport](docs/v2/models/FileImport.md)
- [FileImportDict](docs/v2/models/FileImportDict.md)
- [FileImportDisplayName](docs/v2/models/FileImportDisplayName.md)
- [FileImportRid](docs/v2/models/FileImportRid.md)
- [AttachmentType](docs/v2/models/AttachmentType.md)
- [AttachmentTypeDict](docs/v2/models/AttachmentTypeDict.md)
Expand Down Expand Up @@ -602,7 +610,12 @@ Namespace | Resource | Operation | HTTP request |
- [TransactionRid](docs/v2/models/TransactionRid.md)
- [TransactionStatus](docs/v2/models/TransactionStatus.md)
- [TransactionType](docs/v2/models/TransactionType.md)
- [Folder](docs/v2/models/Folder.md)
- [FolderDict](docs/v2/models/FolderDict.md)
- [FolderRid](docs/v2/models/FolderRid.md)
- [FolderType](docs/v2/models/FolderType.md)
- [ListChildrenOfFolderResponse](docs/v2/models/ListChildrenOfFolderResponse.md)
- [ListChildrenOfFolderResponseDict](docs/v2/models/ListChildrenOfFolderResponseDict.md)
- [ProjectRid](docs/v2/models/ProjectRid.md)
- [Resource](docs/v2/models/Resource.md)
- [ResourceDict](docs/v2/models/ResourceDict.md)
Expand All @@ -611,7 +624,7 @@ Namespace | Resource | Operation | HTTP request |
- [ResourceRid](docs/v2/models/ResourceRid.md)
- [ResourceType](docs/v2/models/ResourceType.md)
- [SpaceRid](docs/v2/models/SpaceRid.md)
- [TrashedStatus](docs/v2/models/TrashedStatus.md)
- [TrashStatus](docs/v2/models/TrashStatus.md)
- [DataValue](docs/v2/models/DataValue.md)
- [ExecuteQueryResponse](docs/v2/models/ExecuteQueryResponse.md)
- [ExecuteQueryResponseDict](docs/v2/models/ExecuteQueryResponseDict.md)
Expand Down
54 changes: 54 additions & 0 deletions docs/v2/Connectivity/FileImport.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,60 @@
Method | HTTP request |
------------- | ------------- |

Get the FileImport with the specified rid.

### Parameters

Name | Type | Description | Notes |
------------- | ------------- | ------------- | ------------- |
**file_import_rid** | FileImportRid | fileImportRid | |
**preview** | Optional[PreviewMode] | preview | [optional] |

### Return type
**FileImport**

### Example

```python
from foundry.v2 import FoundryClient
import foundry
from pprint import pprint

foundry_client = FoundryClient(
auth=foundry.UserTokenAuth(...), hostname="example.palantirfoundry.com"
)

# FileImportRid | fileImportRid
file_import_rid = None
# Optional[PreviewMode] | preview
preview = None


try:
api_response = foundry_client.connectivity.FileImport.get(
file_import_rid,
preview=preview,
)
print("The get response:\n")
pprint(api_response)
except foundry.PalantirRPCException as e:
print("HTTP error when calling FileImport.get: %s\n" % e)

```



### Authorization

See [README](../../../README.md#authorization)

### HTTP response details
| Status Code | Type | Description | Content Type |
|-------------|-------------|-------------|------------------|
**200** | FileImport | | application/json |

[[Back to top]](#) [[Back to API list]](../../../README.md#apis-v2-link) [[Back to Model list]](../../../README.md#models-v2-link) [[Back to README]](../../../README.md)

Triggers the FileImport, which runs asynchronously as a [Foundry Build](/docs/foundry/data-integration/builds/).
The returned BuildRid can be used to check the status via the Orchestration API.

Expand Down
252 changes: 252 additions & 0 deletions docs/v2/Filesystem/Folder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,252 @@
# Folder

Method | HTTP request |
------------- | ------------- |
[**children**](#children) | **GET** /v2/filesystem/folders/{folderRid}/children |
[**children_page**](#children_page) | **GET** /v2/filesystem/folders/{folderRid}/children |
[**create**](#create) | **POST** /v2/filesystem/folders |
[**get**](#get) | **GET** /v2/filesystem/folders/{folderRid} |

# **children**
List all child Resources of the Folder.

This is a paged endpoint. The page size will be limited to 2,000 results per page. If no page size is
provided, this page size will also be used as the default.


### Parameters

Name | Type | Description | Notes |
------------- | ------------- | ------------- | ------------- |
**folder_rid** | FolderRid | folderRid | |
**page_size** | Optional[PageSize] | pageSize | [optional] |
**preview** | Optional[PreviewMode] | preview | [optional] |

### Return type
**ResourceIterator[Resource]**

### Example

```python
from foundry.v2 import FoundryClient
import foundry
from pprint import pprint

foundry_client = FoundryClient(
auth=foundry.UserTokenAuth(...), hostname="example.palantirfoundry.com"
)

# FolderRid | folderRid
folder_rid = "ri.compass.main.folder.01a79a9d-e293-48db-a585-9ffe221536e8"
# Optional[PageSize] | pageSize
page_size = None
# Optional[PreviewMode] | preview
preview = None


try:
for folder in foundry_client.filesystem.Folder.children(
folder_rid,
page_size=page_size,
preview=preview,
):
pprint(folder)
except foundry.PalantirRPCException as e:
print("HTTP error when calling Folder.children: %s\n" % e)

```



### Authorization

See [README](../../../README.md#authorization)

### HTTP response details
| Status Code | Type | Description | Content Type |
|-------------|-------------|-------------|------------------|
**200** | ListChildrenOfFolderResponse | | application/json |

[[Back to top]](#) [[Back to API list]](../../../README.md#apis-v2-link) [[Back to Model list]](../../../README.md#models-v2-link) [[Back to README]](../../../README.md)

# **children_page**
List all child Resources of the Folder.

This is a paged endpoint. The page size will be limited to 2,000 results per page. If no page size is
provided, this page size will also be used as the default.


### Parameters

Name | Type | Description | Notes |
------------- | ------------- | ------------- | ------------- |
**folder_rid** | FolderRid | folderRid | |
**page_size** | Optional[PageSize] | pageSize | [optional] |
**page_token** | Optional[PageToken] | pageToken | [optional] |
**preview** | Optional[PreviewMode] | preview | [optional] |

### Return type
**ListChildrenOfFolderResponse**

### Example

```python
from foundry.v2 import FoundryClient
import foundry
from pprint import pprint

foundry_client = FoundryClient(
auth=foundry.UserTokenAuth(...), hostname="example.palantirfoundry.com"
)

# FolderRid | folderRid
folder_rid = "ri.compass.main.folder.01a79a9d-e293-48db-a585-9ffe221536e8"
# Optional[PageSize] | pageSize
page_size = None
# Optional[PageToken] | pageToken
page_token = None
# Optional[PreviewMode] | preview
preview = None


try:
api_response = foundry_client.filesystem.Folder.children_page(
folder_rid,
page_size=page_size,
page_token=page_token,
preview=preview,
)
print("The children_page response:\n")
pprint(api_response)
except foundry.PalantirRPCException as e:
print("HTTP error when calling Folder.children_page: %s\n" % e)

```



### Authorization

See [README](../../../README.md#authorization)

### HTTP response details
| Status Code | Type | Description | Content Type |
|-------------|-------------|-------------|------------------|
**200** | ListChildrenOfFolderResponse | | application/json |

[[Back to top]](#) [[Back to API list]](../../../README.md#apis-v2-link) [[Back to Model list]](../../../README.md#models-v2-link) [[Back to README]](../../../README.md)

# **create**
Creates a new Folder.

### Parameters

Name | Type | Description | Notes |
------------- | ------------- | ------------- | ------------- |
**display_name** | ResourceDisplayName | | |
**parent_folder_rid** | FolderRid | The parent folder Resource Identifier (RID). For Projects, this will be the Space RID and for Spaces, this value will be the root folder (`ri.compass.main.folder.0`). | |
**preview** | Optional[PreviewMode] | preview | [optional] |

### Return type
**Folder**

### Example

```python
from foundry.v2 import FoundryClient
import foundry
from pprint import pprint

foundry_client = FoundryClient(
auth=foundry.UserTokenAuth(...), hostname="example.palantirfoundry.com"
)

# ResourceDisplayName |
display_name = "My Folder"
# FolderRid | The parent folder Resource Identifier (RID). For Projects, this will be the Space RID and for Spaces, this value will be the root folder (`ri.compass.main.folder.0`).
parent_folder_rid = "ri.compass.main.folder.4cae7c13-b59f-48f6-9ef2-dbde603e4e33"
# Optional[PreviewMode] | preview
preview = None


try:
api_response = foundry_client.filesystem.Folder.create(
display_name=display_name,
parent_folder_rid=parent_folder_rid,
preview=preview,
)
print("The create response:\n")
pprint(api_response)
except foundry.PalantirRPCException as e:
print("HTTP error when calling Folder.create: %s\n" % e)

```



### Authorization

See [README](../../../README.md#authorization)

### HTTP response details
| Status Code | Type | Description | Content Type |
|-------------|-------------|-------------|------------------|
**200** | Folder | The created Folder | application/json |

[[Back to top]](#) [[Back to API list]](../../../README.md#apis-v2-link) [[Back to Model list]](../../../README.md#models-v2-link) [[Back to README]](../../../README.md)

# **get**
Get the Folder with the specified rid.

### Parameters

Name | Type | Description | Notes |
------------- | ------------- | ------------- | ------------- |
**folder_rid** | FolderRid | folderRid | |
**preview** | Optional[PreviewMode] | preview | [optional] |

### Return type
**Folder**

### Example

```python
from foundry.v2 import FoundryClient
import foundry
from pprint import pprint

foundry_client = FoundryClient(
auth=foundry.UserTokenAuth(...), hostname="example.palantirfoundry.com"
)

# FolderRid | folderRid
folder_rid = "ri.compass.main.folder.01a79a9d-e293-48db-a585-9ffe221536e8"
# Optional[PreviewMode] | preview
preview = None


try:
api_response = foundry_client.filesystem.Folder.get(
folder_rid,
preview=preview,
)
print("The get response:\n")
pprint(api_response)
except foundry.PalantirRPCException as e:
print("HTTP error when calling Folder.get: %s\n" % e)

```



### Authorization

See [README](../../../README.md#authorization)

### HTTP response details
| Status Code | Type | Description | Content Type |
|-------------|-------------|-------------|------------------|
**200** | Folder | | application/json |

[[Back to top]](#) [[Back to API list]](../../../README.md#apis-v2-link) [[Back to Model list]](../../../README.md#models-v2-link) [[Back to README]](../../../README.md)

12 changes: 12 additions & 0 deletions docs/v2/connectivity/models/ConnectionRid.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# ConnectionRid

The Resource Identifier (RID) of a Connection (formerly known as a source).


## Type
```python
RID
```


[[Back to Model list]](../../../../README.md#models-v2-link) [[Back to API list]](../../../../README.md#apis-v2-link) [[Back to README]](../../../../README.md)
15 changes: 15 additions & 0 deletions docs/v2/connectivity/models/FileImport.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# FileImport

FileImport

## Properties
| Name | Type | Required | Description |
| ------------ | ------------- | ------------- | ------------- |
**rid** | FileImportRid | Yes | |
**connection_rid** | ConnectionRid | Yes | The RID of the Connection (formerly known as a source) that the File Import uses to import data. |
**dataset_rid** | DatasetRid | Yes | The RID of the output dataset. |
**branch_name** | Optional[BranchName] | No | The branch name in the output dataset that will contain the imported data. Defaults to `master` for most enrollments. |
**display_name** | FileImportDisplayName | Yes | |


[[Back to Model list]](../../../../README.md#models-v2-link) [[Back to API list]](../../../../README.md#apis-v2-link) [[Back to README]](../../../../README.md)
Loading

0 comments on commit 431176f

Please sign in to comment.