From 44cc819440f936661369a5ffd2948d332cd2b11e Mon Sep 17 00:00:00 2001 From: Mitch Goudy Date: Thu, 7 Mar 2024 10:58:07 -0700 Subject: [PATCH] Bump to version 2.14.0 --- CHANGELOG.md | 2 + contentful_management/__init__.py | 2 +- docs/.buildinfo | 2 +- .../contentful_management/api_key.html | 4 +- .../contentful_management/api_keys_proxy.html | 4 +- .../_modules/contentful_management/array.html | 4 +- .../_modules/contentful_management/asset.html | 8 +- .../contentful_management/assets_proxy.html | 4 +- .../contentful_management/client.html | 21 ++- .../contentful_management/client_proxy.html | 4 +- .../contentful_management/content_type.html | 4 +- .../content_type_editor_interfaces_proxy.html | 4 +- .../content_type_entries_proxy.html | 4 +- .../content_type_field.html | 9 +- .../content_type_field_types.html | 15 +- .../content_type_field_validation.html | 4 +- .../content_type_resource_proxy.html | 4 +- .../content_type_snapshots_proxy.html | 4 +- .../content_types_proxy.html | 4 +- .../editor_interface.html | 4 +- .../editor_interfaces_proxy.html | 4 +- .../contentful_management/entries_proxy.html | 4 +- .../_modules/contentful_management/entry.html | 8 +- .../entry_resource_proxy.html | 4 +- .../entry_snapshots_proxy.html | 4 +- .../contentful_management/environment.html | 4 +- .../environment_assets_proxy.html | 4 +- .../environment_content_types_proxy.html | 4 +- .../environment_entries_proxy.html | 4 +- .../environment_locales_proxy.html | 4 +- .../environment_resource_proxy.html | 4 +- .../environment_ui_extensions_proxy.html | 4 +- .../environments_proxy.html | 4 +- .../contentful_management/errors.html | 4 +- .../contentful_management/locale.html | 4 +- .../contentful_management/locales_proxy.html | 4 +- .../contentful_management/organization.html | 4 +- .../organization_periodic_usage.html | 4 +- .../organization_periodic_usages_proxy.html | 4 +- .../organization_users_proxy.html | 4 +- .../organizations_proxy.html | 4 +- .../personal_access_token.html | 4 +- .../personal_access_tokens_proxy.html | 4 +- .../preview_api_key.html | 4 +- .../preview_api_keys_proxy.html | 4 +- .../contentful_management/resource.html | 48 ++++++- .../resource_builder.html | 8 +- docs/_modules/contentful_management/role.html | 4 +- .../contentful_management/roles_proxy.html | 4 +- .../contentful_management/snapshot.html | 4 +- .../snapshots_proxy.html | 4 +- .../_modules/contentful_management/space.html | 4 +- .../space_api_keys_proxy.html | 4 +- .../space_environments_proxy.html | 4 +- .../space_membership.html | 4 +- .../space_memberships_proxy.html | 4 +- .../space_periodic_usage.html | 4 +- .../space_periodic_usages_proxy.html | 4 +- .../space_preview_api_keys_proxy.html | 4 +- .../space_resource_proxy.html | 4 +- .../space_roles_proxy.html | 4 +- .../space_space_memberships_proxy.html | 4 +- .../space_users_proxy.html | 4 +- .../space_webhooks_proxy.html | 4 +- .../contentful_management/spaces_proxy.html | 4 +- docs/_modules/contentful_management/tag.html | 129 ++++++++++++++++++ .../contentful_management/tags_proxy.html | 111 +++++++++++++++ .../contentful_management/ui_extension.html | 4 +- .../ui_extensions_proxy.html | 4 +- .../contentful_management/upload.html | 4 +- .../contentful_management/uploads_proxy.html | 4 +- docs/_modules/contentful_management/user.html | 4 +- .../contentful_management/users_proxy.html | 4 +- .../_modules/contentful_management/utils.html | 5 +- .../contentful_management/webhook.html | 4 +- .../contentful_management/webhook_call.html | 4 +- .../contentful_management/webhook_health.html | 4 +- .../webhook_resource_proxy.html | 4 +- .../webhook_webhooks_call_proxy.html | 4 +- .../webhook_webhooks_health_proxy.html | 4 +- .../webhooks_call_proxy.html | 4 +- .../webhooks_health_proxy.html | 4 +- .../contentful_management/webhooks_proxy.html | 4 +- docs/_modules/index.html | 6 +- docs/_sources/contentful_management.rst.txt | 16 +++ docs/contentful_management.html | 90 +++++++++++- docs/genindex.html | 32 ++++- docs/index.html | 8 +- docs/modules.html | 6 +- docs/objects.inv | Bin 2983 -> 3045 bytes docs/py-modindex.html | 14 +- docs/search.html | 4 +- docs/searchindex.js | 2 +- 93 files changed, 639 insertions(+), 187 deletions(-) create mode 100644 docs/_modules/contentful_management/tag.html create mode 100644 docs/_modules/contentful_management/tags_proxy.html 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