From 2a98db2ddf4edf7f2e3574eb07008bb275a7e876 Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Thu, 18 Dec 2025 03:39:43 -0800 Subject: [PATCH] fix: Fix Metadata Taxonomy GET options path (box/box-openapi#573) --- .codegen.json | 2 +- box_sdk_gen/managers/metadata_taxonomies.py | 17 +++++------------ docs/box_sdk_gen/metadata_taxonomies.md | 4 ++-- 3 files changed, 8 insertions(+), 15 deletions(-) diff --git a/.codegen.json b/.codegen.json index 383058e7..453109b3 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "c370934", "specHash": "a4bdc72", "version": "4.2.0" } +{ "engineHash": "c370934", "specHash": "f3c7c76", "version": "4.2.0" } diff --git a/box_sdk_gen/managers/metadata_taxonomies.py b/box_sdk_gen/managers/metadata_taxonomies.py index 868e2224..5cc8e713 100644 --- a/box_sdk_gen/managers/metadata_taxonomies.py +++ b/box_sdk_gen/managers/metadata_taxonomies.py @@ -1,5 +1,3 @@ -from enum import Enum - from typing import Optional from typing import Dict @@ -49,11 +47,6 @@ from box_sdk_gen.serialization.json import sd_to_json -class GetMetadataTemplateFieldOptionsScope(str, Enum): - GLOBAL = 'global' - ENTERPRISE = 'enterprise' - - class MetadataTaxonomiesManager: def __init__( self, @@ -799,7 +792,7 @@ def delete_metadata_taxonomy_node( def get_metadata_template_field_options( self, - scope: GetMetadataTemplateFieldOptionsScope, + namespace: str, template_key: str, field_key: str, *, @@ -824,9 +817,9 @@ def get_metadata_template_field_options( With a `query` parameter specified, results are sorted in order of relevance. - :param scope: The scope of the metadata template. - Example: "global" - :type scope: GetMetadataTemplateFieldOptionsScope + :param namespace: The namespace of the metadata taxonomy. + Example: "enterprise_123456" + :type namespace: str :param template_key: The name of the metadata template. Example: "properties" :type template_key: str @@ -882,7 +875,7 @@ def get_metadata_template_field_options( [ self.network_session.base_urls.base_url, '/2.0/metadata_templates/', - to_string(scope), + to_string(namespace), '/', to_string(template_key), '/fields/', diff --git a/docs/box_sdk_gen/metadata_taxonomies.md b/docs/box_sdk_gen/metadata_taxonomies.md index 062980df..b26872f7 100644 --- a/docs/box_sdk_gen/metadata_taxonomies.md +++ b/docs/box_sdk_gen/metadata_taxonomies.md @@ -502,8 +502,8 @@ _Currently we don't have an example for calling `get_metadata_template_field_opt ### Arguments -- scope `GetMetadataTemplateFieldOptionsScope` - - The scope of the metadata template. Example: "global" +- namespace `str` + - The namespace of the metadata taxonomy. Example: "enterprise_123456" - template_key `str` - The name of the metadata template. Example: "properties" - field_key `str`