diff --git a/CHANGELOG.md b/CHANGELOG.md index bd44f44..3ceac17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # CHANGELOG ## Unreleased + +## v2.14.0 * Adds support for cross-space references ## v2.13.1 diff --git a/contentful_management/__init__.py b/contentful_management/__init__.py index c22fdbf..1c464a3 100644 --- a/contentful_management/__init__.py +++ b/contentful_management/__init__.py @@ -15,6 +15,6 @@ from .content_type_field import ContentTypeField # noqa: F401 -__version__ = "2.13.1" +__version__ = "2.14.0" __author__ = "Contentful GmbH (David Litvak Bruno)" __email__ = "david.litvak@contentful.com" diff --git a/docs/.buildinfo b/docs/.buildinfo index e72771f..7a3e113 100644 --- a/docs/.buildinfo +++ b/docs/.buildinfo @@ -1,4 +1,4 @@ # Sphinx build info version 1 # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. -config: e91cbd87003e5d1b4a93065625f668d6 +config: 1107bc6177021fbcbb06652383d2d75f tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/docs/_modules/contentful_management/api_key.html b/docs/_modules/contentful_management/api_key.html index 1b6d262..5c9b45f 100644 --- a/docs/_modules/contentful_management/api_key.html +++ b/docs/_modules/contentful_management/api_key.html @@ -5,13 +5,13 @@ - contentful_management.api_key — Contentful Management 2.11.0 documentation + contentful_management.api_key — Contentful Management 2.14.0 documentation + + + + + + + + + + + + + + + +
+
+
+ + +
+ +

Source code for contentful_management.tag

+from .resource import Resource
+
+"""
+contentful_management.tag
+~~~~~~~~~~~~~~~~~~~~~~~~~
+
+This module implements the Tag class.
+
+API reference: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/tags
+
+:copyright: (c) 2023 by Contentful GmbH.
+:license: MIT, see LICENSE for more details.
+"""
+
+
+
[docs]class Tag(Resource): + """ + API reference: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/tags + """ + + def __init__(self, item, **kwargs): + super(Tag, self).__init__(item, **kwargs) + self.name = item.get('name', '') + +
[docs] def delete(self): + """ + Deletes this tag. + """ + return self._client._delete( + self.__class__.base_url( + space_id=self.space.id, + resource_id=self.sys['id'], + environment_id=self._environment_id, + ), + headers=self._update_headers() + )
+ + def __repr__(self): + return "<Tag id='{0}' name='{1}'>".format( + self.sys.get('id', ''), + self.name + )
+
+ +
+ +
+
+ +
+
+ + + + + Fork me on GitHub + + + + + + \ No newline at end of file diff --git a/docs/_modules/contentful_management/tags_proxy.html b/docs/_modules/contentful_management/tags_proxy.html new file mode 100644 index 0000000..f85c356 --- /dev/null +++ b/docs/_modules/contentful_management/tags_proxy.html @@ -0,0 +1,111 @@ + + + + + + + contentful_management.tags_proxy — Contentful Management 2.14.0 documentation + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +

Source code for contentful_management.tags_proxy

+from .client_proxy import ClientProxy
+from .tag import Tag
+
+"""
+contentful_management.tags_proxy
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+This module implements the TagsProxy class.
+
+API reference: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/tags
+
+:copyright: (c) 2023 by Contentful GmbH.
+:license: MIT, see LICENSE for more details.
+"""
+
+
+
[docs]class TagsProxy(ClientProxy): + """ + API reference: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/tags + """ + + @property + def _resource_class(self): + return Tag
+
+ +
+ +
+
+ +
+
+ + + + + Fork me on GitHub + + + + + + \ No newline at end of file diff --git a/docs/_modules/contentful_management/ui_extension.html b/docs/_modules/contentful_management/ui_extension.html index d658099..d864095 100644 --- a/docs/_modules/contentful_management/ui_extension.html +++ b/docs/_modules/contentful_management/ui_extension.html @@ -5,13 +5,13 @@ - contentful_management.ui_extension — Contentful Management 2.11.0 documentation + contentful_management.ui_extension — Contentful Management 2.14.0 documentation