diff --git a/.codegen.json b/.codegen.json index 6ff2c668..13f25980 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "c370934", "specHash": "a4bdc72", "version": "10.2.0" } +{ "engineHash": "a8f83de", "specHash": "f3c7c76", "version": "10.2.0" } diff --git a/.github/workflows/build-and-test-daily.yml b/.github/workflows/build-and-test-daily.yml index ee2d3518..7ed85886 100644 --- a/.github/workflows/build-and-test-daily.yml +++ b/.github/workflows/build-and-test-daily.yml @@ -2,6 +2,10 @@ name: Build and Test daily on: schedule: - cron: '20 2 * * 1-5' + +permissions: + contents: read + jobs: build: runs-on: ubuntu-latest 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/metadata_taxonomies.md b/docs/metadata_taxonomies.md index ec7bf6b6..96380ac0 100644 --- a/docs/metadata_taxonomies.md +++ b/docs/metadata_taxonomies.md @@ -523,8 +523,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`