-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add move operation to type, snippet and taxonomy PATCH
- Loading branch information
1 parent
518da9c
commit 03d4e03
Showing
7 changed files
with
134 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
Kontent.Ai.Management/Models/TaxonomyGroups/Patch/TaxonomyGroupMovePatchModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using Kontent.Ai.Management.Models.Shared; | ||
using Newtonsoft.Json; | ||
|
||
namespace Kontent.Ai.Management.Models.TaxonomyGroups.Patch; | ||
|
||
/// <summary> | ||
/// Represents the move operation. | ||
/// More info: https://kontent.ai/learn/reference/management-api-v2#operation/modify-a-taxonomy-group | ||
/// </summary> | ||
public class TaxonomyGroupMovePatchModel : TaxonomyGroupOperationBaseModel | ||
{ | ||
/// <summary> | ||
/// Represents the move operation. | ||
/// </summary> | ||
public override string Op => "move"; | ||
|
||
/// <summary> | ||
/// Gets or sets reference of the existing taxonomy term before which you want to move the specified taxonomy term. | ||
/// Note: The before, after and under properties are mutually exclusive. | ||
/// </summary> | ||
[JsonProperty("before")] | ||
public Reference Before { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets reference of the existing taxonomy term after which you want to move the specified taxonomy term. | ||
/// Note: The before, after and under properties are mutually exclusive. | ||
/// </summary> | ||
[JsonProperty("after")] | ||
public Reference After { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets reference of the existing taxonomy term under which you want to move the specified taxonomy term. | ||
/// Note: The before, after and under properties are mutually exclusive. | ||
/// </summary> | ||
[JsonProperty("under")] | ||
public Reference Under { get; set; } | ||
} |
30 changes: 30 additions & 0 deletions
30
Kontent.Ai.Management/Models/TypeSnippets/Patch/ContentTypeSnippetPatchMoveModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using Kontent.Ai.Management.Models.Shared; | ||
using Newtonsoft.Json; | ||
|
||
namespace Kontent.Ai.Management.Models.TypeSnippets.Patch; | ||
|
||
/// <summary> | ||
/// Represents the move operation. | ||
/// More info: https://kontent.ai/learn/reference/management-api-v2#operation/modify-a-content-type-snippet | ||
/// </summary> | ||
public class ContentTypeSnippetPatchMoveModel : ContentTypeSnippetOperationBaseModel | ||
{ | ||
/// <summary> | ||
/// Represents the move operation. | ||
/// </summary> | ||
public override string Op => "move"; | ||
|
||
/// <summary> | ||
/// Gets or sets reference of the existing object before which you want to move the specified object. | ||
/// Note: The before and after properties are mutually exclusive. | ||
/// </summary> | ||
[JsonProperty("before")] | ||
public Reference Before { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets reference of the existing object after which you want to move the specified object. | ||
/// Note: The before and after properties are mutually exclusive. | ||
/// </summary> | ||
[JsonProperty("after")] | ||
public Reference After { get; set; } | ||
} |
30 changes: 30 additions & 0 deletions
30
Kontent.Ai.Management/Models/Types/Patch/ContentTypeMovePatchModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using Kontent.Ai.Management.Models.Shared; | ||
using Newtonsoft.Json; | ||
|
||
namespace Kontent.Ai.Management.Models.Types.Patch; | ||
|
||
/// <summary> | ||
/// Represents the move operation. | ||
/// More info: https://kontent.ai/learn/reference/management-api-v2#operation/modify-a-content-type | ||
/// </summary> | ||
public class ContentTypeMovePatchModel : ContentTypeOperationBaseModel | ||
{ | ||
/// <summary> | ||
/// Represents the move operation. | ||
/// </summary> | ||
public override string Op => "move"; | ||
|
||
/// <summary> | ||
/// Gets or sets reference of the existing object before which you want to move the specified object. | ||
/// Note: The before and after properties are mutually exclusive. | ||
/// </summary> | ||
[JsonProperty("before")] | ||
public Reference Before { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets reference of the existing object after which you want to move the specified object. | ||
/// Note: The before and after properties are mutually exclusive. | ||
/// </summary> | ||
[JsonProperty("after")] | ||
public Reference After { get; set; } | ||
} |