Skip to content

Commit

Permalink
Bump to version 2.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoudy91 committed Mar 7, 2024
1 parent c73c9d7 commit 44cc819
Show file tree
Hide file tree
Showing 93 changed files with 639 additions and 187 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# CHANGELOG

## Unreleased

## v2.14.0
* Adds support for cross-space references

## v2.13.1
Expand Down
2 changes: 1 addition & 1 deletion contentful_management/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__ = "[email protected]"
2 changes: 1 addition & 1 deletion docs/.buildinfo
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions docs/_modules/contentful_management/api_key.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contentful_management.api_key &#8212; Contentful Management 2.11.0 documentation</title>
<title>contentful_management.api_key &#8212; Contentful Management 2.14.0 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '2.11.0',
VERSION: '2.14.0',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
Expand Down
4 changes: 2 additions & 2 deletions docs/_modules/contentful_management/api_keys_proxy.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contentful_management.api_keys_proxy &#8212; Contentful Management 2.11.0 documentation</title>
<title>contentful_management.api_keys_proxy &#8212; Contentful Management 2.14.0 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '2.11.0',
VERSION: '2.14.0',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
Expand Down
4 changes: 2 additions & 2 deletions docs/_modules/contentful_management/array.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contentful_management.array &#8212; Contentful Management 2.11.0 documentation</title>
<title>contentful_management.array &#8212; Contentful Management 2.14.0 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '2.11.0',
VERSION: '2.14.0',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
Expand Down
8 changes: 4 additions & 4 deletions docs/_modules/contentful_management/asset.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contentful_management.asset &#8212; Contentful Management 2.11.0 documentation</title>
<title>contentful_management.asset &#8212; Contentful Management 2.14.0 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '2.11.0',
VERSION: '2.14.0',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
Expand Down Expand Up @@ -41,7 +41,7 @@
<div class="body" role="main">

<h1>Source code for contentful_management.asset</h1><div class="highlight"><pre>
<span></span><span class="kn">from</span> <span class="nn">.resource</span> <span class="kn">import</span> <span class="n">FieldsResource</span><span class="p">,</span> <span class="n">PublishResource</span><span class="p">,</span> <span class="n">ArchiveResource</span><span class="p">,</span> <span class="n">EnvironmentAwareResource</span>
<span></span><span class="kn">from</span> <span class="nn">.resource</span> <span class="kn">import</span> <span class="n">FieldsResource</span><span class="p">,</span> <span class="n">PublishResource</span><span class="p">,</span> <span class="n">ArchiveResource</span><span class="p">,</span> <span class="n">EnvironmentAwareResource</span><span class="p">,</span> <span class="n">MetadataResource</span>


<span class="sd">&quot;&quot;&quot;</span>
Expand All @@ -57,7 +57,7 @@ <h1>Source code for contentful_management.asset</h1><div class="highlight"><pre>
<span class="sd">&quot;&quot;&quot;</span>


<div class="viewcode-block" id="Asset"><a class="viewcode-back" href="../../contentful_management.html#contentful_management.asset.Asset">[docs]</a><span class="k">class</span> <span class="nc">Asset</span><span class="p">(</span><span class="n">FieldsResource</span><span class="p">,</span> <span class="n">PublishResource</span><span class="p">,</span> <span class="n">ArchiveResource</span><span class="p">,</span> <span class="n">EnvironmentAwareResource</span><span class="p">):</span>
<div class="viewcode-block" id="Asset"><a class="viewcode-back" href="../../contentful_management.html#contentful_management.asset.Asset">[docs]</a><span class="k">class</span> <span class="nc">Asset</span><span class="p">(</span><span class="n">MetadataResource</span><span class="p">,</span> <span class="n">FieldsResource</span><span class="p">,</span> <span class="n">PublishResource</span><span class="p">,</span> <span class="n">ArchiveResource</span><span class="p">,</span> <span class="n">EnvironmentAwareResource</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> API reference: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/assets</span>
<span class="sd"> &quot;&quot;&quot;</span>
Expand Down
4 changes: 2 additions & 2 deletions docs/_modules/contentful_management/assets_proxy.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contentful_management.assets_proxy &#8212; Contentful Management 2.11.0 documentation</title>
<title>contentful_management.assets_proxy &#8212; Contentful Management 2.14.0 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '2.11.0',
VERSION: '2.14.0',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
Expand Down
21 changes: 19 additions & 2 deletions docs/_modules/contentful_management/client.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contentful_management.client &#8212; Contentful Management 2.11.0 documentation</title>
<title>contentful_management.client &#8212; Contentful Management 2.14.0 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '2.11.0',
VERSION: '2.14.0',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
Expand Down Expand Up @@ -49,6 +49,7 @@ <h1>Source code for contentful_management.client</h1><div class="highlight"><pre
<span class="kn">from</span> <span class="nn">.errors</span> <span class="kn">import</span> <span class="n">get_error</span><span class="p">,</span> <span class="n">RateLimitExceededError</span>
<span class="kn">from</span> <span class="nn">.utils</span> <span class="kn">import</span> <span class="n">ConfigurationException</span><span class="p">,</span> <span class="n">retry_request</span>

<span class="kn">from</span> <span class="nn">.tags_proxy</span> <span class="kn">import</span> <span class="n">TagsProxy</span>
<span class="kn">from</span> <span class="nn">.users_proxy</span> <span class="kn">import</span> <span class="n">UsersProxy</span>
<span class="kn">from</span> <span class="nn">.roles_proxy</span> <span class="kn">import</span> <span class="n">RolesProxy</span>
<span class="kn">from</span> <span class="nn">.assets_proxy</span> <span class="kn">import</span> <span class="n">AssetsProxy</span>
Expand Down Expand Up @@ -589,6 +590,22 @@ <h1>Source code for contentful_management.client</h1><div class="highlight"><pre

<span class="k">return</span> <span class="n">EnvironmentsProxy</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">space_id</span><span class="p">)</span></div>

<div class="viewcode-block" id="Client.tags"><a class="viewcode-back" href="../../contentful_management.html#contentful_management.client.Client.tags">[docs]</a> <span class="k">def</span> <span class="nf">tags</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">space_id</span><span class="p">,</span> <span class="n">environment_id</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Provides access to tag management methods.</span>

<span class="sd"> API reference: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/tags</span>

<span class="sd"> :return: :class:`TagsProxy &lt;contentful_management.tags_proxy.TagsProxy&gt;` object.</span>
<span class="sd"> :rtype: contentful.tags_proxy.TagsProxy</span>

<span class="sd"> Usage:</span>
<span class="sd"> &gt;&gt;&gt; tags_proxy = client.tags(&#39;cfexampleapi&#39;, &#39;master&#39;)</span>
<span class="sd"> &lt;TagsProxy space_id=&quot;cfexampleapi&quot; environment_id=&quot;master&quot;&gt;</span>
<span class="sd"> &quot;&quot;&quot;</span>

<span class="k">return</span> <span class="n">TagsProxy</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">space_id</span><span class="p">,</span> <span class="n">environment_id</span><span class="p">)</span></div>

<span class="k">def</span> <span class="nf">_validate_configuration</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Validates that required parameters are present.</span>
Expand Down
4 changes: 2 additions & 2 deletions docs/_modules/contentful_management/client_proxy.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contentful_management.client_proxy &#8212; Contentful Management 2.11.0 documentation</title>
<title>contentful_management.client_proxy &#8212; Contentful Management 2.14.0 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '2.11.0',
VERSION: '2.14.0',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
Expand Down
4 changes: 2 additions & 2 deletions docs/_modules/contentful_management/content_type.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contentful_management.content_type &#8212; Contentful Management 2.11.0 documentation</title>
<title>contentful_management.content_type &#8212; Contentful Management 2.14.0 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '2.11.0',
VERSION: '2.14.0',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contentful_management.content_type_editor_interfaces_proxy &#8212; Contentful Management 2.11.0 documentation</title>
<title>contentful_management.content_type_editor_interfaces_proxy &#8212; Contentful Management 2.14.0 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '2.11.0',
VERSION: '2.14.0',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contentful_management.content_type_entries_proxy &#8212; Contentful Management 2.11.0 documentation</title>
<title>contentful_management.content_type_entries_proxy &#8212; Contentful Management 2.14.0 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '2.11.0',
VERSION: '2.14.0',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
Expand Down
9 changes: 6 additions & 3 deletions docs/_modules/contentful_management/content_type_field.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contentful_management.content_type_field &#8212; Contentful Management 2.11.0 documentation</title>
<title>contentful_management.content_type_field &#8212; Contentful Management 2.14.0 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '2.11.0',
VERSION: '2.14.0',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
Expand Down Expand Up @@ -74,8 +74,10 @@ <h1>Source code for contentful_management.content_type_field</h1><div class="hig
<span class="bp">self</span><span class="o">.</span><span class="n">omitted</span> <span class="o">=</span> <span class="n">field_data</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;omitted&#39;</span><span class="p">,</span> <span class="kc">False</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">required</span> <span class="o">=</span> <span class="n">field_data</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;required&#39;</span><span class="p">,</span> <span class="kc">False</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">disabled</span> <span class="o">=</span> <span class="n">field_data</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;disabled&#39;</span><span class="p">,</span> <span class="kc">False</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">default_value</span> <span class="o">=</span> <span class="n">field_data</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;defaultValue&#39;</span><span class="p">,</span> <span class="kc">None</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">validations</span> <span class="o">=</span> <span class="p">[</span><span class="n">ContentTypeFieldValidation</span><span class="p">(</span><span class="n">v</span><span class="p">)</span>
<span class="k">for</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">field_data</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;validations&#39;</span><span class="p">,</span> <span class="p">[])]</span>
<span class="bp">self</span><span class="o">.</span><span class="n">allowedResources</span> <span class="o">=</span> <span class="n">field_data</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;allowedResources&#39;</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_coercion</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_get_coercion</span><span class="p">()</span>

<div class="viewcode-block" id="ContentTypeField.to_json"><a class="viewcode-back" href="../../contentful_management.html#contentful_management.content_type_field.ContentTypeField.to_json">[docs]</a> <span class="k">def</span> <span class="nf">to_json</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
Expand All @@ -91,7 +93,8 @@ <h1>Source code for contentful_management.content_type_field</h1><div class="hig
<span class="s1">&#39;omitted&#39;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">omitted</span><span class="p">,</span>
<span class="s1">&#39;required&#39;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">required</span><span class="p">,</span>
<span class="s1">&#39;disabled&#39;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">disabled</span><span class="p">,</span>
<span class="s1">&#39;validations&#39;</span><span class="p">:</span> <span class="p">[</span><span class="n">v</span><span class="o">.</span><span class="n">to_json</span><span class="p">()</span> <span class="k">for</span> <span class="n">v</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">validations</span><span class="p">]</span>
<span class="s1">&#39;validations&#39;</span><span class="p">:</span> <span class="p">[</span><span class="n">v</span><span class="o">.</span><span class="n">to_json</span><span class="p">()</span> <span class="k">for</span> <span class="n">v</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">validations</span><span class="p">],</span>
<span class="s1">&#39;defaultValue&#39;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">default_value</span>
<span class="p">}</span>

<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">type</span> <span class="o">==</span> <span class="s1">&#39;Array&#39;</span><span class="p">:</span>
Expand Down
Loading

0 comments on commit 44cc819

Please sign in to comment.