Skip to content

Commit

Permalink
Excavator: Upgrade API Version (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
svc-excavator-bot authored Sep 24, 2024
1 parent a6eba06 commit 6e62137
Show file tree
Hide file tree
Showing 133 changed files with 4,605 additions and 1 deletion.
55 changes: 55 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,9 @@ Namespace | Resource | Operation | HTTP request |
- [GetGroupsBatchRequestElementDict](docs/v2/models/GetGroupsBatchRequestElementDict.md)
- [GetGroupsBatchResponse](docs/v2/models/GetGroupsBatchResponse.md)
- [GetGroupsBatchResponseDict](docs/v2/models/GetGroupsBatchResponseDict.md)
- [GetMarkingsBatchRequestElementDict](docs/v2/models/GetMarkingsBatchRequestElementDict.md)
- [GetMarkingsBatchResponse](docs/v2/models/GetMarkingsBatchResponse.md)
- [GetMarkingsBatchResponseDict](docs/v2/models/GetMarkingsBatchResponseDict.md)
- [GetUserMarkingsResponse](docs/v2/models/GetUserMarkingsResponse.md)
- [GetUserMarkingsResponseDict](docs/v2/models/GetUserMarkingsResponseDict.md)
- [GetUsersBatchRequestElementDict](docs/v2/models/GetUsersBatchRequestElementDict.md)
Expand Down Expand Up @@ -552,6 +555,7 @@ Namespace | Resource | Operation | HTTP request |
- [PrincipalType](docs/v2/models/PrincipalType.md)
- [Realm](docs/v2/models/Realm.md)
- [ReleaseStatus](docs/v2/models/ReleaseStatus.md)
- [ResourceType](docs/v2/models/ResourceType.md)
- [ShortType](docs/v2/models/ShortType.md)
- [ShortTypeDict](docs/v2/models/ShortTypeDict.md)
- [SizeBytes](docs/v2/models/SizeBytes.md)
Expand Down Expand Up @@ -594,6 +598,49 @@ Namespace | Resource | Operation | HTTP request |
- [TransactionType](docs/v2/models/TransactionType.md)
- [FolderRid](docs/v2/models/FolderRid.md)
- [ProjectRid](docs/v2/models/ProjectRid.md)
- [Resource](docs/v2/models/Resource.md)
- [ResourceDict](docs/v2/models/ResourceDict.md)
- [ResourceDisplayName](docs/v2/models/ResourceDisplayName.md)
- [ResourcePath](docs/v2/models/ResourcePath.md)
- [ResourceRid](docs/v2/models/ResourceRid.md)
- [SpaceRid](docs/v2/models/SpaceRid.md)
- [TrashedStatus](docs/v2/models/TrashedStatus.md)
- [DataValue](docs/v2/models/DataValue.md)
- [ExecuteQueryResponse](docs/v2/models/ExecuteQueryResponse.md)
- [ExecuteQueryResponseDict](docs/v2/models/ExecuteQueryResponseDict.md)
- [FunctionRid](docs/v2/models/FunctionRid.md)
- [FunctionVersion](docs/v2/models/FunctionVersion.md)
- [Parameter](docs/v2/models/Parameter.md)
- [ParameterDict](docs/v2/models/ParameterDict.md)
- [ParameterId](docs/v2/models/ParameterId.md)
- [Query](docs/v2/models/Query.md)
- [QueryAggregationKeyType](docs/v2/models/QueryAggregationKeyType.md)
- [QueryAggregationKeyTypeDict](docs/v2/models/QueryAggregationKeyTypeDict.md)
- [QueryAggregationRangeSubType](docs/v2/models/QueryAggregationRangeSubType.md)
- [QueryAggregationRangeSubTypeDict](docs/v2/models/QueryAggregationRangeSubTypeDict.md)
- [QueryAggregationRangeType](docs/v2/models/QueryAggregationRangeType.md)
- [QueryAggregationRangeTypeDict](docs/v2/models/QueryAggregationRangeTypeDict.md)
- [QueryAggregationValueType](docs/v2/models/QueryAggregationValueType.md)
- [QueryAggregationValueTypeDict](docs/v2/models/QueryAggregationValueTypeDict.md)
- [QueryApiName](docs/v2/models/QueryApiName.md)
- [QueryArrayType](docs/v2/models/QueryArrayType.md)
- [QueryArrayTypeDict](docs/v2/models/QueryArrayTypeDict.md)
- [QueryDataType](docs/v2/models/QueryDataType.md)
- [QueryDataTypeDict](docs/v2/models/QueryDataTypeDict.md)
- [QueryDict](docs/v2/models/QueryDict.md)
- [QuerySetType](docs/v2/models/QuerySetType.md)
- [QuerySetTypeDict](docs/v2/models/QuerySetTypeDict.md)
- [QueryStructField](docs/v2/models/QueryStructField.md)
- [QueryStructFieldDict](docs/v2/models/QueryStructFieldDict.md)
- [QueryStructType](docs/v2/models/QueryStructType.md)
- [QueryStructTypeDict](docs/v2/models/QueryStructTypeDict.md)
- [QueryUnionType](docs/v2/models/QueryUnionType.md)
- [QueryUnionTypeDict](docs/v2/models/QueryUnionTypeDict.md)
- [StructFieldName](docs/v2/models/StructFieldName.md)
- [ThreeDimensionalAggregation](docs/v2/models/ThreeDimensionalAggregation.md)
- [ThreeDimensionalAggregationDict](docs/v2/models/ThreeDimensionalAggregationDict.md)
- [TwoDimensionalAggregation](docs/v2/models/TwoDimensionalAggregation.md)
- [TwoDimensionalAggregationDict](docs/v2/models/TwoDimensionalAggregationDict.md)
- [BBox](docs/v2/models/BBox.md)
- [Coordinate](docs/v2/models/Coordinate.md)
- [GeoPoint](docs/v2/models/GeoPoint.md)
Expand Down Expand Up @@ -988,6 +1035,14 @@ Namespace | Resource | Operation | HTTP request |
- [UserScope](docs/v2/models/UserScope.md)
- [UserScopeDict](docs/v2/models/UserScopeDict.md)
- [ZoneId](docs/v2/models/ZoneId.md)
- [Compressed](docs/v2/models/Compressed.md)
- [Dataset](docs/v2/models/Dataset.md)
- [DatasetDict](docs/v2/models/DatasetDict.md)
- [PartitionsCount](docs/v2/models/PartitionsCount.md)
- [Stream](docs/v2/models/Stream.md)
- [StreamDict](docs/v2/models/StreamDict.md)
- [StreamType](docs/v2/models/StreamType.md)
- [ViewRid](docs/v2/models/ViewRid.md)
- [ListVersionsResponse](docs/v2/models/ListVersionsResponse.md)
- [ListVersionsResponseDict](docs/v2/models/ListVersionsResponseDict.md)
- [Subdomain](docs/v2/models/Subdomain.md)
Expand Down
56 changes: 56 additions & 0 deletions docs/v2/Admin/Marking.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,62 @@ See [README](../../../README.md#authorization)

[[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)

Execute multiple get requests on Marking.

The maximum batch size for this endpoint is 500.

### Parameters

Name | Type | Description | Notes |
------------- | ------------- | ------------- | ------------- |
**body** | Annotated[List[GetMarkingsBatchRequestElementDict], Len(min_length=1, max_length=500)] | Body of the request | |
**preview** | Optional[PreviewMode] | preview | [optional] |

### Return type
**GetMarkingsBatchResponse**

### Example

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

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

# Annotated[List[GetMarkingsBatchRequestElementDict], Len(min_length=1, max_length=500)] | Body of the request
body = {"markingId": "18212f9a-0e63-4b79-96a0-aae04df23336"}
# Optional[PreviewMode] | preview
preview = None


try:
api_response = foundry_client.admin.Marking.get_batch(
body,
preview=preview,
)
print("The get_batch response:\n")
pprint(api_response)
except foundry.PalantirRPCException as e:
print("HTTP error when calling Marking.get_batch: %s\n" % e)

```



### Authorization

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

### HTTP response details
| Status Code | Type | Description | Content Type |
|-------------|-------------|-------------|------------------|
**200** | GetMarkingsBatchResponse | | 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)

Maximum page size 100.

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

Method | HTTP request |
------------- | ------------- |

Get the Resource with the specified rid.

### Parameters

Name | Type | Description | Notes |
------------- | ------------- | ------------- | ------------- |
**resource_rid** | ResourceRid | resourceRid | |
**preview** | Optional[PreviewMode] | preview | [optional] |

### Return type
**Resource**

### Example

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

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

# ResourceRid | resourceRid
resource_rid = "ri.foundry.main.dataset.c26f11c8-cdb3-4f44-9f5d-9816ea1c82da"
# Optional[PreviewMode] | preview
preview = None


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

```



### Authorization

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

### HTTP response details
| Status Code | Type | Description | Content Type |
|-------------|-------------|-------------|------------------|
**200** | Resource | | 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)

176 changes: 176 additions & 0 deletions docs/v2/Functions/Query.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
# Query

Method | HTTP request |
------------- | ------------- |

Executes a Query using the given parameters.

Optional parameters do not need to be supplied.


### Parameters

Name | Type | Description | Notes |
------------- | ------------- | ------------- | ------------- |
**query_api_name** | QueryApiName | queryApiName | |
**parameters** | Dict[ParameterId, Optional[DataValue]] | | |
**preview** | Optional[PreviewMode] | preview | [optional] |

### Return type
**ExecuteQueryResponse**

### Example

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

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

# QueryApiName | queryApiName
query_api_name = None
# Dict[ParameterId, Optional[DataValue]] |
parameters = None
# Optional[PreviewMode] | preview
preview = None


try:
api_response = foundry_client.functions.Query.execute(
query_api_name,
parameters=parameters,
preview=preview,
)
print("The execute response:\n")
pprint(api_response)
except foundry.PalantirRPCException as e:
print("HTTP error when calling Query.execute: %s\n" % e)

```



### Authorization

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

### HTTP response details
| Status Code | Type | Description | Content Type |
|-------------|-------------|-------------|------------------|
**200** | ExecuteQueryResponse | | 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)

Gets a specific query type with the given API name.


### Parameters

Name | Type | Description | Notes |
------------- | ------------- | ------------- | ------------- |
**query_api_name** | QueryApiName | queryApiName | |
**preview** | Optional[PreviewMode] | preview | [optional] |

### Return type
**Query**

### Example

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

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

# QueryApiName | queryApiName
query_api_name = None
# Optional[PreviewMode] | preview
preview = None


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

```



### Authorization

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

### HTTP response details
| Status Code | Type | Description | Content Type |
|-------------|-------------|-------------|------------------|
**200** | Query | | 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)

Gets a specific query type with the given RID.


### Parameters

Name | Type | Description | Notes |
------------- | ------------- | ------------- | ------------- |
**rid** | FunctionRid | | |
**preview** | Optional[PreviewMode] | preview | [optional] |

### Return type
**Query**

### Example

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

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

# FunctionRid |
rid = None
# Optional[PreviewMode] | preview
preview = None


try:
api_response = foundry_client.functions.Query.get_by_rid(
rid=rid,
preview=preview,
)
print("The get_by_rid response:\n")
pprint(api_response)
except foundry.PalantirRPCException as e:
print("HTTP error when calling Query.get_by_rid: %s\n" % e)

```



### Authorization

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

### HTTP response details
| Status Code | Type | Description | Content Type |
|-------------|-------------|-------------|------------------|
**200** | Query | | 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)

Loading

0 comments on commit 6e62137

Please sign in to comment.