Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "c370934", "specHash": "a4bdc72", "version": "4.2.0" }
{ "engineHash": "c370934", "specHash": "f3c7c76", "version": "4.2.0" }
17 changes: 5 additions & 12 deletions box_sdk_gen/managers/metadata_taxonomies.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from enum import Enum

from typing import Optional

from typing import Dict
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
*,
Expand All @@ -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
Expand Down Expand Up @@ -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/',
Expand Down
4 changes: 2 additions & 2 deletions docs/box_sdk_gen/metadata_taxonomies.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down