From 4b06d4f3dea0dd83e9732d49a9664aefa4f78962 Mon Sep 17 00:00:00 2001 From: svc-excavator-bot Date: Fri, 26 Jun 2026 22:06:52 +0000 Subject: [PATCH] Excavator: Upgrade API Version --- README.md | 6 ++ docs-snippets-npm/package.json | 2 +- docs-snippets-npm/src/index.ts | 6 +- docs/v2/Ontologies/CipherTextProperty.md | 5 +- .../Ontologies/TimeSeriesValueBankProperty.md | 8 +++ foundry_sdk/_version.py | 2 +- foundry_sdk/v1/ontologies/errors.py | 62 +++++++++++++++++++ foundry_sdk/v2/cli.py | 27 ++++++++ .../v2/ontologies/cipher_text_property.py | 15 ++++- foundry_sdk/v2/ontologies/errors.py | 62 +++++++++++++++++++ .../time_series_value_bank_property.py | 17 +++++ 11 files changed, 204 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 033943a90..ea1ccf0d3 100644 --- a/README.md +++ b/README.md @@ -3922,9 +3922,12 @@ Namespace | Name | Import | **Ontologies** | MarketplaceSdkObjectMappingNotFound | `from foundry_sdk.v2.ontologies.errors import MarketplaceSdkObjectMappingNotFound` | **Ontologies** | MarketplaceSdkPropertyMappingNotFound | `from foundry_sdk.v2.ontologies.errors import MarketplaceSdkPropertyMappingNotFound` | **Ontologies** | MarketplaceSdkQueryMappingNotFound | `from foundry_sdk.v2.ontologies.errors import MarketplaceSdkQueryMappingNotFound` | +**Ontologies** | MediaUploadDestinationNotConfigured | `from foundry_sdk.v2.ontologies.errors import MediaUploadDestinationNotConfigured` | +**Ontologies** | MediaUploadPropertyNotBackedByMediaSetView | `from foundry_sdk.v2.ontologies.errors import MediaUploadPropertyNotBackedByMediaSetView` | **Ontologies** | MissingParameter | `from foundry_sdk.v2.ontologies.errors import MissingParameter` | **Ontologies** | MissingValueTypeReference | `from foundry_sdk.v2.ontologies.errors import MissingValueTypeReference` | **Ontologies** | MultipleGroupByOnFieldNotSupported | `from foundry_sdk.v2.ontologies.errors import MultipleGroupByOnFieldNotSupported` | +**Ontologies** | MultipleMediaUploadDestinations | `from foundry_sdk.v2.ontologies.errors import MultipleMediaUploadDestinations` | **Ontologies** | MultiplePropertyValuesNotSupported | `from foundry_sdk.v2.ontologies.errors import MultiplePropertyValuesNotSupported` | **Ontologies** | NotCipherFormatted | `from foundry_sdk.v2.ontologies.errors import NotCipherFormatted` | **Ontologies** | ObjectAlreadyExists | `from foundry_sdk.v2.ontologies.errors import ObjectAlreadyExists` | @@ -4250,9 +4253,12 @@ Namespace | Name | Import | **Ontologies** | MarketplaceSdkObjectMappingNotFound | `from foundry_sdk.v1.ontologies.errors import MarketplaceSdkObjectMappingNotFound` | **Ontologies** | MarketplaceSdkPropertyMappingNotFound | `from foundry_sdk.v1.ontologies.errors import MarketplaceSdkPropertyMappingNotFound` | **Ontologies** | MarketplaceSdkQueryMappingNotFound | `from foundry_sdk.v1.ontologies.errors import MarketplaceSdkQueryMappingNotFound` | +**Ontologies** | MediaUploadDestinationNotConfigured | `from foundry_sdk.v1.ontologies.errors import MediaUploadDestinationNotConfigured` | +**Ontologies** | MediaUploadPropertyNotBackedByMediaSetView | `from foundry_sdk.v1.ontologies.errors import MediaUploadPropertyNotBackedByMediaSetView` | **Ontologies** | MissingParameter | `from foundry_sdk.v1.ontologies.errors import MissingParameter` | **Ontologies** | MissingValueTypeReference | `from foundry_sdk.v1.ontologies.errors import MissingValueTypeReference` | **Ontologies** | MultipleGroupByOnFieldNotSupported | `from foundry_sdk.v1.ontologies.errors import MultipleGroupByOnFieldNotSupported` | +**Ontologies** | MultipleMediaUploadDestinations | `from foundry_sdk.v1.ontologies.errors import MultipleMediaUploadDestinations` | **Ontologies** | MultiplePropertyValuesNotSupported | `from foundry_sdk.v1.ontologies.errors import MultiplePropertyValuesNotSupported` | **Ontologies** | NotCipherFormatted | `from foundry_sdk.v1.ontologies.errors import NotCipherFormatted` | **Ontologies** | ObjectAlreadyExists | `from foundry_sdk.v1.ontologies.errors import ObjectAlreadyExists` | diff --git a/docs-snippets-npm/package.json b/docs-snippets-npm/package.json index 3db29e720..2c615c1c2 100644 --- a/docs-snippets-npm/package.json +++ b/docs-snippets-npm/package.json @@ -24,7 +24,7 @@ "sls": { "dependencies": { "com.palantir.foundry.api:api-gateway": { - "minVersion": "1.1665.0", + "minVersion": "1.1679.0", "maxVersion": "1.x.x", "optional": false } diff --git a/docs-snippets-npm/src/index.ts b/docs-snippets-npm/src/index.ts index c03466f6d..da8b1967a 100644 --- a/docs-snippets-npm/src/index.ts +++ b/docs-snippets-npm/src/index.ts @@ -1535,7 +1535,7 @@ export const PYTHON_PLATFORM_SNIPPETS: SdkSnippets ontologies_models.DecryptionResult: @@ -76,6 +78,8 @@ def decrypt( :type primary_key: PropertyValueEscapedString :param property: The API name of the CipherText property. To find the API name for your CipherText property, check the **Ontology Manager** or use the **Get object type** endpoint. :type property: PropertyApiName + :param branch: The Foundry branch to read from. If not specified, the default branch will be used. + :type branch: Optional[FoundryBranch] :param request_timeout: timeout setting for this request in seconds. :type request_timeout: Optional[int] :return: Returns the result object. @@ -86,7 +90,9 @@ def decrypt( core.RequestInfo( method="GET", resource_path="/v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/ciphertexts/{property}/decrypt", - query_params={}, + query_params={ + "branch": branch, + }, path_params={ "ontology": ontology, "objectType": object_type, @@ -158,6 +164,7 @@ def decrypt( primary_key: ontologies_models.PropertyValueEscapedString, property: ontologies_models.PropertyApiName, *, + branch: typing.Optional[core_models.FoundryBranch] = None, request_timeout: typing.Optional[core.Timeout] = None, _sdk_internal: core.SdkInternal = {}, ) -> typing.Awaitable[ontologies_models.DecryptionResult]: @@ -172,6 +179,8 @@ def decrypt( :type primary_key: PropertyValueEscapedString :param property: The API name of the CipherText property. To find the API name for your CipherText property, check the **Ontology Manager** or use the **Get object type** endpoint. :type property: PropertyApiName + :param branch: The Foundry branch to read from. If not specified, the default branch will be used. + :type branch: Optional[FoundryBranch] :param request_timeout: timeout setting for this request in seconds. :type request_timeout: Optional[int] :return: Returns the result object. @@ -182,7 +191,9 @@ def decrypt( core.RequestInfo( method="GET", resource_path="/v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/ciphertexts/{property}/decrypt", - query_params={}, + query_params={ + "branch": branch, + }, path_params={ "ontology": ontology, "objectType": object_type, diff --git a/foundry_sdk/v2/ontologies/errors.py b/foundry_sdk/v2/ontologies/errors.py index 09c8f6bdb..29925da25 100644 --- a/foundry_sdk/v2/ontologies/errors.py +++ b/foundry_sdk/v2/ontologies/errors.py @@ -1496,6 +1496,45 @@ class MarketplaceSdkQueryMappingNotFound(errors.NotFoundError): error_instance_id: str +class MediaUploadDestinationNotConfiguredParameters(typing_extensions.TypedDict): + """ + The media reference property is backed by multiple media set views, and none of them are marked as the upload + destination for this property. Set an upload destination on exactly one of the backing media set views for + this property in Ontology Manager. + """ + + __pydantic_config__ = {"extra": "allow"} # type: ignore + + objectType: ontologies_models.ObjectTypeApiName + property: ontologies_models.PropertyApiName + + +@dataclass +class MediaUploadDestinationNotConfigured(errors.BadRequestError): + name: typing.Literal["MediaUploadDestinationNotConfigured"] + parameters: MediaUploadDestinationNotConfiguredParameters + error_instance_id: str + + +class MediaUploadPropertyNotBackedByMediaSetViewParameters(typing_extensions.TypedDict): + """ + The property is not backed by any media set view datasource and cannot accept media uploads. Add a media set + view datasource that includes this property in Ontology Manager. + """ + + __pydantic_config__ = {"extra": "allow"} # type: ignore + + objectType: ontologies_models.ObjectTypeApiName + property: ontologies_models.PropertyApiName + + +@dataclass +class MediaUploadPropertyNotBackedByMediaSetView(errors.BadRequestError): + name: typing.Literal["MediaUploadPropertyNotBackedByMediaSetView"] + parameters: MediaUploadPropertyNotBackedByMediaSetViewParameters + error_instance_id: str + + class MissingParameterParameters(typing_extensions.TypedDict): """ Required parameters are missing. Please look at the `parameters` field to see which required parameters are @@ -1545,6 +1584,26 @@ class MultipleGroupByOnFieldNotSupported(errors.BadRequestError): error_instance_id: str +class MultipleMediaUploadDestinationsParameters(typing_extensions.TypedDict): + """ + The media reference property has multiple media set views marked as upload destinations. At most one media + source per property should be configured as the upload destination. This typically indicates an inconsistent + object type configuration; review the backing media sources for this property in Ontology Manager. + """ + + __pydantic_config__ = {"extra": "allow"} # type: ignore + + objectType: ontologies_models.ObjectTypeApiName + property: ontologies_models.PropertyApiName + + +@dataclass +class MultipleMediaUploadDestinations(errors.BadRequestError): + name: typing.Literal["MultipleMediaUploadDestinations"] + parameters: MultipleMediaUploadDestinationsParameters + error_instance_id: str + + class MultiplePropertyValuesNotSupportedParameters(typing_extensions.TypedDict): """ One of the requested property filters does not support multiple values. Please include only a single value for @@ -2596,9 +2655,12 @@ class ViewObjectPermissionDenied(errors.PermissionDeniedError): "MarketplaceSdkObjectMappingNotFound", "MarketplaceSdkPropertyMappingNotFound", "MarketplaceSdkQueryMappingNotFound", + "MediaUploadDestinationNotConfigured", + "MediaUploadPropertyNotBackedByMediaSetView", "MissingParameter", "MissingValueTypeReference", "MultipleGroupByOnFieldNotSupported", + "MultipleMediaUploadDestinations", "MultiplePropertyValuesNotSupported", "NotCipherFormatted", "ObjectAlreadyExists", diff --git a/foundry_sdk/v2/ontologies/time_series_value_bank_property.py b/foundry_sdk/v2/ontologies/time_series_value_bank_property.py index 35fb21228..f96e27dba 100644 --- a/foundry_sdk/v2/ontologies/time_series_value_bank_property.py +++ b/foundry_sdk/v2/ontologies/time_series_value_bank_property.py @@ -20,6 +20,7 @@ from foundry_sdk import _core as core from foundry_sdk import _errors as errors +from foundry_sdk.v2.core import models as core_models from foundry_sdk.v2.ontologies import models as ontologies_models @@ -62,6 +63,7 @@ def get_latest_value( primary_key: ontologies_models.PropertyValueEscapedString, property_name: ontologies_models.PropertyApiName, *, + branch: typing.Optional[core_models.FoundryBranch] = None, sdk_package_rid: typing.Optional[ontologies_models.SdkPackageRid] = None, sdk_version: typing.Optional[ontologies_models.SdkVersion] = None, request_timeout: typing.Optional[core.Timeout] = None, @@ -78,6 +80,8 @@ def get_latest_value( :type primary_key: PropertyValueEscapedString :param property_name: The API name of the timeseries property. To find the API name for your property value bank property, check the **Ontology Manager** or use the **Get object type** endpoint. :type property_name: PropertyApiName + :param branch: The Foundry branch to read from. If not specified, the default branch will be used. + :type branch: Optional[FoundryBranch] :param sdk_package_rid: The package rid of the generated SDK. :type sdk_package_rid: Optional[SdkPackageRid] :param sdk_version: The version of the generated SDK. @@ -93,6 +97,7 @@ def get_latest_value( method="GET", resource_path="/v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{propertyName}/latestValue", query_params={ + "branch": branch, "sdkPackageRid": sdk_package_rid, "sdkVersion": sdk_version, }, @@ -123,6 +128,7 @@ def stream_values( primary_key: ontologies_models.PropertyValueEscapedString, property: ontologies_models.PropertyApiName, *, + branch: typing.Optional[core_models.FoundryBranch] = None, range: typing.Optional[ontologies_models.TimeRange] = None, sdk_package_rid: typing.Optional[ontologies_models.SdkPackageRid] = None, sdk_version: typing.Optional[ontologies_models.SdkVersion] = None, @@ -140,6 +146,8 @@ def stream_values( :type primary_key: PropertyValueEscapedString :param property: The API name of the time series backed property. To find the API name, check the **Ontology Manager** or use the **Get object type** endpoint. :type property: PropertyApiName + :param branch: The Foundry branch to read from. If not specified, the default branch will be used. + :type branch: Optional[FoundryBranch] :param range: :type range: Optional[TimeRange] :param sdk_package_rid: The package rid of the generated SDK. @@ -157,6 +165,7 @@ def stream_values( method="POST", resource_path="/v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{property}/streamValues", query_params={ + "branch": branch, "sdkPackageRid": sdk_package_rid, "sdkVersion": sdk_version, }, @@ -240,6 +249,7 @@ def get_latest_value( primary_key: ontologies_models.PropertyValueEscapedString, property_name: ontologies_models.PropertyApiName, *, + branch: typing.Optional[core_models.FoundryBranch] = None, sdk_package_rid: typing.Optional[ontologies_models.SdkPackageRid] = None, sdk_version: typing.Optional[ontologies_models.SdkVersion] = None, request_timeout: typing.Optional[core.Timeout] = None, @@ -256,6 +266,8 @@ def get_latest_value( :type primary_key: PropertyValueEscapedString :param property_name: The API name of the timeseries property. To find the API name for your property value bank property, check the **Ontology Manager** or use the **Get object type** endpoint. :type property_name: PropertyApiName + :param branch: The Foundry branch to read from. If not specified, the default branch will be used. + :type branch: Optional[FoundryBranch] :param sdk_package_rid: The package rid of the generated SDK. :type sdk_package_rid: Optional[SdkPackageRid] :param sdk_version: The version of the generated SDK. @@ -271,6 +283,7 @@ def get_latest_value( method="GET", resource_path="/v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{propertyName}/latestValue", query_params={ + "branch": branch, "sdkPackageRid": sdk_package_rid, "sdkVersion": sdk_version, }, @@ -301,6 +314,7 @@ def stream_values( primary_key: ontologies_models.PropertyValueEscapedString, property: ontologies_models.PropertyApiName, *, + branch: typing.Optional[core_models.FoundryBranch] = None, range: typing.Optional[ontologies_models.TimeRange] = None, sdk_package_rid: typing.Optional[ontologies_models.SdkPackageRid] = None, sdk_version: typing.Optional[ontologies_models.SdkVersion] = None, @@ -318,6 +332,8 @@ def stream_values( :type primary_key: PropertyValueEscapedString :param property: The API name of the time series backed property. To find the API name, check the **Ontology Manager** or use the **Get object type** endpoint. :type property: PropertyApiName + :param branch: The Foundry branch to read from. If not specified, the default branch will be used. + :type branch: Optional[FoundryBranch] :param range: :type range: Optional[TimeRange] :param sdk_package_rid: The package rid of the generated SDK. @@ -335,6 +351,7 @@ def stream_values( method="POST", resource_path="/v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{property}/streamValues", query_params={ + "branch": branch, "sdkPackageRid": sdk_package_rid, "sdkVersion": sdk_version, },