Skip to content

Commit 71dd115

Browse files
Excavator: Upgrade API Version (#270)
1 parent 10ef8fb commit 71dd115

File tree

24 files changed

+133
-50
lines changed

24 files changed

+133
-50
lines changed

.excavator.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22

33
auto-label:
44
names:
5-
versions-props/upgrade-all: [ "merge when ready" ]
6-
circleci/manage-circleci: [ "merge when ready" ]
5+
versions-props/upgrade-all: ["merge when ready"]
6+
circleci/manage-circleci: ["merge when ready"]
77
tags:
8-
donotmerge: [ "do not merge" ]
9-
roomba: [ "merge when ready" ]
10-
automerge: [ "merge when ready" ]
11-
autorelease: [ "autorelease" ]
8+
roomba: ["merge when ready"]
9+
automerge: ["merge when ready"]
10+
autorelease: ["autorelease"]

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,8 @@ Namespace | Resource | Operation | HTTP request |
785785
**Ontologies** | OntologyObjectSet | [**load**](docs/v2/Ontologies/OntologyObjectSet.md#load) | **POST** /v2/ontologies/{ontology}/objectSets/loadObjects |
786786
**Ontologies** | OntologyObjectSet | [**load_multiple_object_types**](docs/v2/Ontologies/OntologyObjectSet.md#load_multiple_object_types) | **POST** /v2/ontologies/{ontology}/objectSets/loadObjectsMultipleObjectTypes |
787787
**Ontologies** | OntologyObjectSet | [**load_objects_or_interfaces**](docs/v2/Ontologies/OntologyObjectSet.md#load_objects_or_interfaces) | **POST** /v2/ontologies/{ontology}/objectSets/loadObjectsOrInterfaces |
788+
**Ontologies** | OntologyValueType | [**get**](docs/v2/Ontologies/OntologyValueType.md#get) | **GET** /v2/ontologies/{ontology}/valueTypes/{valueType} |
789+
**Ontologies** | OntologyValueType | [**list**](docs/v2/Ontologies/OntologyValueType.md#list) | **GET** /v2/ontologies/{ontology}/valueTypes |
788790
**Ontologies** | Query | [**execute**](docs/v2/Ontologies/Query.md#execute) | **POST** /v2/ontologies/{ontology}/queries/{queryApiName}/execute |
789791
**Ontologies** | QueryType | [**get**](docs/v2/Ontologies/QueryType.md#get) | **GET** /v2/ontologies/{ontology}/queryTypes/{queryApiName} |
790792
**Ontologies** | QueryType | [**list**](docs/v2/Ontologies/QueryType.md#list) | **GET** /v2/ontologies/{ontology}/queryTypes |
@@ -1312,6 +1314,8 @@ Namespace | Name | Import |
13121314
**DataHealth** | [MedianDeviation](docs/v2/DataHealth/models/MedianDeviation.md) | `from foundry_sdk.v2.data_health.models import MedianDeviation` |
13131315
**DataHealth** | [MedianDeviationBoundsType](docs/v2/DataHealth/models/MedianDeviationBoundsType.md) | `from foundry_sdk.v2.data_health.models import MedianDeviationBoundsType` |
13141316
**DataHealth** | [MedianDeviationConfig](docs/v2/DataHealth/models/MedianDeviationConfig.md) | `from foundry_sdk.v2.data_health.models import MedianDeviationConfig` |
1317+
**DataHealth** | [PrimaryKeyCheckConfig](docs/v2/DataHealth/models/PrimaryKeyCheckConfig.md) | `from foundry_sdk.v2.data_health.models import PrimaryKeyCheckConfig` |
1318+
**DataHealth** | [PrimaryKeyConfig](docs/v2/DataHealth/models/PrimaryKeyConfig.md) | `from foundry_sdk.v2.data_health.models import PrimaryKeyConfig` |
13151319
**DataHealth** | [SchemaComparisonCheckConfig](docs/v2/DataHealth/models/SchemaComparisonCheckConfig.md) | `from foundry_sdk.v2.data_health.models import SchemaComparisonCheckConfig` |
13161320
**DataHealth** | [SchemaComparisonConfig](docs/v2/DataHealth/models/SchemaComparisonConfig.md) | `from foundry_sdk.v2.data_health.models import SchemaComparisonConfig` |
13171321
**DataHealth** | [SchemaComparisonType](docs/v2/DataHealth/models/SchemaComparisonType.md) | `from foundry_sdk.v2.data_health.models import SchemaComparisonType` |
@@ -1828,6 +1832,7 @@ Namespace | Name | Import |
18281832
**Ontologies** | [RangeConstraint](docs/v2/Ontologies/models/RangeConstraint.md) | `from foundry_sdk.v2.ontologies.models import RangeConstraint` |
18291833
**Ontologies** | [RangesConstraint](docs/v2/Ontologies/models/RangesConstraint.md) | `from foundry_sdk.v2.ontologies.models import RangesConstraint` |
18301834
**Ontologies** | [RegexConstraint](docs/v2/Ontologies/models/RegexConstraint.md) | `from foundry_sdk.v2.ontologies.models import RegexConstraint` |
1835+
**Ontologies** | [RegexQuery](docs/v2/Ontologies/models/RegexQuery.md) | `from foundry_sdk.v2.ontologies.models import RegexQuery` |
18311836
**Ontologies** | [RelativeTime](docs/v2/Ontologies/models/RelativeTime.md) | `from foundry_sdk.v2.ontologies.models import RelativeTime` |
18321837
**Ontologies** | [RelativeTimeRange](docs/v2/Ontologies/models/RelativeTimeRange.md) | `from foundry_sdk.v2.ontologies.models import RelativeTimeRange` |
18331838
**Ontologies** | [RelativeTimeRelation](docs/v2/Ontologies/models/RelativeTimeRelation.md) | `from foundry_sdk.v2.ontologies.models import RelativeTimeRelation` |

docs-snippets-npm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"sls": {
2525
"dependencies": {
2626
"com.palantir.foundry.api:api-gateway": {
27-
"minVersion": "1.1299.0",
27+
"minVersion": "1.1300.0",
2828
"maxVersion": "1.x.x",
2929
"optional": false
3030
}

docs-snippets-npm/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ export const PYTHON_PLATFORM_SNIPPETS: SdkSnippets<typeof PLATFORM_API_DOCS_SPEC
10201020
],
10211021
"v2.anthropicMessages": [
10221022
{
1023-
"template": "from foundry_sdk import FoundryClient\nimport foundry_sdk\nfrom pprint import pprint\n\nclient = FoundryClient(auth=foundry_sdk.UserTokenAuth(...), hostname=\"example.palantirfoundry.com\")\n\n# LanguageModelApiName\nanthropic_model_model_id = None\n# int | The maximum number of tokens to generate before stopping.\nmax_tokens = None\n# List[AnthropicMessage] | Input messages to the model. This can include a single user-role message or multiple messages with alternating user and assistant roles.\nmessages = [{\"role\": \"user\"}]\n# Optional[PreviewMode] | Enables the use of preview functionality.\npreview = None\n# Optional[List[str]] | Custom text sequences that will cause the model to stop generating.\nstop_sequences = None\n# Optional[List[AnthropicSystemMessage]] | A system prompt is a way of providing context and instructions to Claude, such as specifying a particular goal or role. As of now, sending multiple system prompts is not supported.\nsystem = None\n# Optional[float] | Amount of randomness injected into the response. Ranges from 0.0 to 1.0. Note that even with temperature of 0.0, the results will not be fully deterministic. Defaults to 1.0\ntemperature = None\n# Optional[AnthropicThinkingConfig] | Configuration for enabling Claude's extended thinking.\nthinking = None\n# Optional[AnthropicToolChoice] | How the model should use the provided tools.\ntool_choice = None\n# Optional[List[AnthropicTool]] | Definitions of tools that the model may use.\ntools = None\n# Optional[int] | Only sample from the top K options for each subsequent token.\ntop_k = None\n# Optional[float] | Use nucleus sampling. You should either alter temperature or top_p, but not both\ntop_p = None\n\n\ntry:\n api_response = client.language_models.AnthropicModel.messages(\n anthropic_model_model_id,\n max_tokens=max_tokens,\n messages=messages,\n preview=preview,\n stop_sequences=stop_sequences,\n system=system,\n temperature=temperature,\n thinking=thinking,\n tool_choice=tool_choice,\n tools=tools,\n top_k=top_k,\n top_p=top_p,\n )\n print(\"The messages response:\\n\")\n pprint(api_response)\nexcept foundry_sdk.PalantirRPCException as e:\n print(\"HTTP error when calling AnthropicModel.messages: %s\\n\" % e)"
1023+
"template": "from foundry_sdk import FoundryClient\nimport foundry_sdk\nfrom pprint import pprint\n\nclient = FoundryClient(auth=foundry_sdk.UserTokenAuth(...), hostname=\"example.palantirfoundry.com\")\n\n# LanguageModelApiName\nanthropic_model_model_id = None\n# int | The maximum number of tokens to generate before stopping.\nmax_tokens = None\n# List[AnthropicMessage] | Input messages to the model. This can include a single user-role message or multiple messages with alternating user and assistant roles.\nmessages = [{\"role\": \"USER\"}]\n# Optional[PreviewMode] | Enables the use of preview functionality.\npreview = None\n# Optional[List[str]] | Custom text sequences that will cause the model to stop generating.\nstop_sequences = None\n# Optional[List[AnthropicSystemMessage]] | A system prompt is a way of providing context and instructions to Claude, such as specifying a particular goal or role. As of now, sending multiple system prompts is not supported.\nsystem = None\n# Optional[float] | Amount of randomness injected into the response. Ranges from 0.0 to 1.0. Note that even with temperature of 0.0, the results will not be fully deterministic. Defaults to 1.0\ntemperature = None\n# Optional[AnthropicThinkingConfig] | Configuration for enabling Claude's extended thinking.\nthinking = None\n# Optional[AnthropicToolChoice] | How the model should use the provided tools.\ntool_choice = None\n# Optional[List[AnthropicTool]] | Definitions of tools that the model may use.\ntools = None\n# Optional[int] | Only sample from the top K options for each subsequent token.\ntop_k = None\n# Optional[float] | Use nucleus sampling. You should either alter temperature or top_p, but not both\ntop_p = None\n\n\ntry:\n api_response = client.language_models.AnthropicModel.messages(\n anthropic_model_model_id,\n max_tokens=max_tokens,\n messages=messages,\n preview=preview,\n stop_sequences=stop_sequences,\n system=system,\n temperature=temperature,\n thinking=thinking,\n tool_choice=tool_choice,\n tools=tools,\n top_k=top_k,\n top_p=top_p,\n )\n print(\"The messages response:\\n\")\n pprint(api_response)\nexcept foundry_sdk.PalantirRPCException as e:\n print(\"HTTP error when calling AnthropicModel.messages: %s\\n\" % e)"
10241024
}
10251025
],
10261026
"v2.abortMediaTransaction": [
@@ -1475,7 +1475,7 @@ export const PYTHON_PLATFORM_SNIPPETS: SdkSnippets<typeof PLATFORM_API_DOCS_SPEC
14751475
],
14761476
"v2.executeSqlQuery": [
14771477
{
1478-
"template": "from foundry_sdk import FoundryClient\nimport foundry_sdk\nfrom pprint import pprint\n\nclient = FoundryClient(auth=foundry_sdk.UserTokenAuth(...), hostname=\"example.palantirfoundry.com\")\n\n# str | The SQL query to execute. Queries should conform to the [Spark SQL dialect](https://spark.apache.org/docs/latest/sql-ref.html). This supports SELECT queries only. Refer the following [documentation](https://www.palantir.com/docs/foundry/analytics-connectivity/odbc-jdbc-drivers/#use-sql-to-query-foundry-datasets) on the supported syntax for referencing datasets in SQL queries.\nquery = \"SELECT * FROM `/Path/To/Dataset`\"\n# Optional[List[BranchName]] | The list of branch ids to use as fallbacks if the query fails to execute on the primary branch. If a is not explicitly provided in the SQL query, the resource will be queried on the first fallback branch provided that exists. If no fallback branches are provided the default branch is used. This is `master` for most enrollments.\nfallback_branch_ids = [\"master\"]\n# Optional[PreviewMode] | Enables the use of preview functionality.\npreview = None\n\n\ntry:\n api_response = client.sql_queries.SqlQuery.execute(\n query=query, fallback_branch_ids=fallback_branch_ids, preview=preview\n )\n print(\"The execute response:\\n\")\n pprint(api_response)\nexcept foundry_sdk.PalantirRPCException as e:\n print(\"HTTP error when calling SqlQuery.execute: %s\\n\" % e)"
1478+
"template": "from foundry_sdk import FoundryClient\nimport foundry_sdk\nfrom pprint import pprint\n\nclient = FoundryClient(auth=foundry_sdk.UserTokenAuth(...), hostname=\"example.palantirfoundry.com\")\n\n# str | The SQL query to execute. Queries should conform to the [Spark SQL dialect](https://spark.apache.org/docs/latest/sql-ref.html). This supports SELECT queries only. Datasets can be referenced in SQL queries by path or by RID. See the [documentation](https://www.palantir.com/docs/foundry/analytics-connectivity/odbc-jdbc-drivers/#use-sql-to-query-foundry-datasets) for more details.\nquery = \"SELECT * FROM `/Path/To/Dataset`\"\n# Optional[List[BranchName]] | The list of branch ids to use as fallbacks if the query fails to execute on the primary branch. If a is not explicitly provided in the SQL query, the resource will be queried on the first fallback branch provided that exists. If no fallback branches are provided the default branch is used. This is `master` for most enrollments.\nfallback_branch_ids = [\"master\"]\n# Optional[PreviewMode] | Enables the use of preview functionality.\npreview = None\n\n\ntry:\n api_response = client.sql_queries.SqlQuery.execute(\n query=query, fallback_branch_ids=fallback_branch_ids, preview=preview\n )\n print(\"The execute response:\\n\")\n pprint(api_response)\nexcept foundry_sdk.PalantirRPCException as e:\n print(\"HTTP error when calling SqlQuery.execute: %s\\n\" % e)"
14791479
}
14801480
],
14811481
"v2.getResultsSqlQuery": [

docs/v2/Core/models/DatasetFieldSchema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ A field in a Foundry dataset.
77
| Name | Type | Required | Description |
88
| ------------ | ------------- | ------------- | ------------- |
99
**type** | SchemaFieldType | Yes | |
10-
**name** | FieldName | Yes | The name of a column. May be absent in nested schema objects. |
10+
**name** | Optional[FieldName] | No | The name of a column. May be absent in nested schema objects. |
1111
**nullable** | bool | Yes | Indicates whether values of this field may be null. |
1212
**user_defined_type_class** | Optional[str] | No | Canonical classname of the user-defined type for this field. This should be a subclass of Spark's `UserDefinedType`. |
1313
**custom_metadata** | Optional[CustomMetadata] | No | User-supplied custom metadata about the column, such as Foundry web archetypes, descriptions, etc. |

docs/v2/DataHealth/models/CheckConfig.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ TotalColumnCountCheckConfig | totalColumnCount
1717
BuildDurationCheckConfig | buildDuration
1818
SchemaComparisonCheckConfig | schemaComparison
1919
BuildStatusCheckConfig | buildStatus
20+
PrimaryKeyCheckConfig | primaryKey
2021

2122

2223
[[Back to Model list]](../../../../README.md#models-v2-link) [[Back to API list]](../../../../README.md#apis-v2-link) [[Back to README]](../../../../README.md)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# PrimaryKeyCheckConfig
2+
3+
Checks the uniqueness and non-null values of one or more columns (primary key constraint).
4+
5+
## Properties
6+
| Name | Type | Required | Description |
7+
| ------------ | ------------- | ------------- | ------------- |
8+
**subject** | DatasetSubject | Yes | |
9+
**primary_key_config** | PrimaryKeyConfig | Yes | |
10+
**type** | Literal["primaryKey"] | Yes | None |
11+
12+
13+
[[Back to Model list]](../../../../README.md#models-v2-link) [[Back to API list]](../../../../README.md#apis-v2-link) [[Back to README]](../../../../README.md)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# PrimaryKeyConfig
2+
3+
Configuration for primary key validation with severity settings.
4+
5+
## Properties
6+
| Name | Type | Required | Description |
7+
| ------------ | ------------- | ------------- | ------------- |
8+
**column_names** | List[ColumnName] | Yes | |
9+
**severity** | SeverityLevel | Yes | |
10+
11+
12+
[[Back to Model list]](../../../../README.md#models-v2-link) [[Back to API list]](../../../../README.md#apis-v2-link) [[Back to README]](../../../../README.md)

docs/v2/LanguageModels/AnthropicModel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ anthropic_model_model_id = None
4141
# int | The maximum number of tokens to generate before stopping.
4242
max_tokens = None
4343
# List[AnthropicMessage] | Input messages to the model. This can include a single user-role message or multiple messages with alternating user and assistant roles.
44-
messages = [{"role": "user"}]
44+
messages = [{"role": "USER"}]
4545
# Optional[PreviewMode] | Enables the use of preview functionality.
4646
preview = None
4747
# Optional[List[str]] | Custom text sequences that will cause the model to stop generating.

docs/v2/LanguageModels/models/AnthropicMediaType.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ AnthropicMediaType
44

55
| **Value** |
66
| --------- |
7-
| `"image_jpeg"` |
8-
| `"image_png"` |
9-
| `"image_gif"` |
10-
| `"image_webp"` |
7+
| `"IMAGE_JPEG"` |
8+
| `"IMAGE_PNG"` |
9+
| `"IMAGE_GIF"` |
10+
| `"IMAGE_WEBP"` |
1111

1212

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

0 commit comments

Comments
 (0)