@@ -19,7 +19,7 @@ namespace Contentful.Core
19
19
public class ContentfulManagementClient : ContentfulClientBase , IContentfulManagementClient
20
20
{
21
21
private readonly string _baseUrl = "https://api.contentful.com/spaces/" ;
22
-
22
+
23
23
/// <summary>
24
24
/// Initializes a new instance of the <see cref="ContentfulManagementClient"/> class.
25
25
/// The main class for interaction with the contentful deliver and preview APIs.
@@ -43,7 +43,7 @@ public ContentfulManagementClient(HttpClient httpClient, IOptions<ContentfulOpti
43
43
/// </summary>
44
44
/// <param name="httpClient">The HttpClient of your application.</param>
45
45
/// <param name="options">The <see cref="ContentfulOptions"/> used for this client.</param>
46
- public ContentfulManagementClient ( HttpClient httpClient , ContentfulOptions options ) :
46
+ public ContentfulManagementClient ( HttpClient httpClient , ContentfulOptions options ) :
47
47
this ( httpClient , new OptionsWrapper < ContentfulOptions > ( options ) )
48
48
{
49
49
@@ -57,7 +57,7 @@ public ContentfulManagementClient(HttpClient httpClient, ContentfulOptions optio
57
57
/// <param name="spaceId">The id of the space to fetch content from.</param>
58
58
/// If this is set to true the preview API key needs to be used for <paramref name="deliveryApiKey"/>
59
59
/// </param>
60
- public ContentfulManagementClient ( HttpClient httpClient , string managementApiKey , string spaceId ) :
60
+ public ContentfulManagementClient ( HttpClient httpClient , string managementApiKey , string spaceId ) :
61
61
this ( httpClient , new OptionsWrapper < ContentfulOptions > ( new ContentfulOptions ( )
62
62
{
63
63
ManagementApiKey = managementApiKey ,
@@ -210,7 +210,7 @@ public ContentfulManagementClient(HttpClient httpClient, string managementApiKey
210
210
/// <exception cref="ArgumentException">Thrown if the id of the content type is not set.</exception>
211
211
public async Task < ContentType > CreateOrUpdateContentTypeAsync ( ContentType contentType , string spaceId = null , int ? version = null , CancellationToken cancellationToken = default ( CancellationToken ) )
212
212
{
213
- if ( contentType . SystemProperties ? . Id == null )
213
+ if ( contentType . SystemProperties ? . Id == null )
214
214
{
215
215
throw new ArgumentException ( "The id of the content type must be set." , nameof ( contentType ) ) ;
216
216
}
@@ -391,7 +391,7 @@ public ContentfulManagementClient(HttpClient httpClient, string managementApiKey
391
391
392
392
AddVersionHeader ( version ) ;
393
393
394
- var res = await PutAsync ( $ "{ _baseUrl } { spaceId ?? _options . SpaceId } /content_types/{ contentTypeId } /editor_interface",
394
+ var res = await PutAsync ( $ "{ _baseUrl } { spaceId ?? _options . SpaceId } /content_types/{ contentTypeId } /editor_interface",
395
395
ConvertObjectToJsonStringContent ( new { controls = editorInterface . Controls } ) , cancellationToken ) . ConfigureAwait ( false ) ;
396
396
397
397
RemoveVersionHeader ( ) ;
@@ -1557,7 +1557,7 @@ public ContentfulManagementClient(HttpClient httpClient, string managementApiKey
1557
1557
/// <exception cref="ContentfulException">There was an error when communicating with the Contentful API.</exception>
1558
1558
public async Task < ApiKey > CreateApiKeyAsync ( string name , string description , string spaceId = null , CancellationToken cancellationToken = default ( CancellationToken ) )
1559
1559
{
1560
- if ( string . IsNullOrEmpty ( name ) )
1560
+ if ( string . IsNullOrEmpty ( name ) )
1561
1561
{
1562
1562
throw new ArgumentException ( "The name of the api key must be set." , nameof ( name ) ) ;
1563
1563
}
0 commit comments