Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PP9-14466: sdk regeneration #557

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -1533,6 +1533,7 @@ public static PictureparkBusinessException FromJson(string data)
[JsonInheritanceAttribute("BusinessRuleScheduleFilterMissingException", typeof(BusinessRuleScheduleFilterMissingException))]
[JsonInheritanceAttribute("BusinessRuleScheduleRulesMissingException", typeof(BusinessRuleScheduleRulesMissingException))]
[JsonInheritanceAttribute("BusinessRuleStringContainsConditionValuesToMatchMissingException", typeof(BusinessRuleStringContainsConditionValuesToMatchMissingException))]
[JsonInheritanceAttribute("BusinessRuleDateMathTransformationTimeSpanInvalidException", typeof(BusinessRuleDateMathTransformationTimeSpanInvalidException))]
[JsonInheritanceAttribute("NamedCacheConfigurationException", typeof(NamedCacheConfigurationException))]
[JsonInheritanceAttribute("NamedCacheNameMissingException", typeof(NamedCacheNameMissingException))]
[JsonInheritanceAttribute("NamedCacheNameDuplicationException", typeof(NamedCacheNameDuplicationException))]
Expand Down Expand Up @@ -8583,6 +8584,25 @@ public static BusinessRuleStringContainsConditionValuesToMatchMissingException F

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.23.0 (Newtonsoft.Json v11.0.0.0)")]
[Newtonsoft.Json.JsonObjectAttribute]
public partial class BusinessRuleDateMathTransformationTimeSpanInvalidException : PictureparkValidationException
{
[Newtonsoft.Json.JsonProperty("timeSpan", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string TimeSpan { get; set; }

public string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this);
}

public static BusinessRuleDateMathTransformationTimeSpanInvalidException FromJson(string data)
{
return Newtonsoft.Json.JsonConvert.DeserializeObject<BusinessRuleDateMathTransformationTimeSpanInvalidException>(data);
}

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.23.0 (Newtonsoft.Json v11.0.0.0)")]
[Newtonsoft.Json.JsonObjectAttribute]
public partial class NamedCacheConfigurationException : PictureparkValidationException
Expand Down
49 changes: 49 additions & 0 deletions src/Picturepark.SDK.V1.Contract/Contracts.Generated.cs
Expand Up @@ -3481,6 +3481,7 @@ public static PictureparkBusinessException FromJson(string data)
[JsonInheritanceAttribute("BusinessRuleScheduleFilterMissingException", typeof(BusinessRuleScheduleFilterMissingException))]
[JsonInheritanceAttribute("BusinessRuleScheduleRulesMissingException", typeof(BusinessRuleScheduleRulesMissingException))]
[JsonInheritanceAttribute("BusinessRuleStringContainsConditionValuesToMatchMissingException", typeof(BusinessRuleStringContainsConditionValuesToMatchMissingException))]
[JsonInheritanceAttribute("BusinessRuleDateMathTransformationTimeSpanInvalidException", typeof(BusinessRuleDateMathTransformationTimeSpanInvalidException))]
[JsonInheritanceAttribute("NamedCacheConfigurationException", typeof(NamedCacheConfigurationException))]
[JsonInheritanceAttribute("NamedCacheNameMissingException", typeof(NamedCacheNameMissingException))]
[JsonInheritanceAttribute("NamedCacheNameDuplicationException", typeof(NamedCacheNameDuplicationException))]
Expand Down Expand Up @@ -10531,6 +10532,25 @@ public static BusinessRuleStringContainsConditionValuesToMatchMissingException F

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.23.0 (Newtonsoft.Json v11.0.0.0)")]
[Newtonsoft.Json.JsonObjectAttribute]
public partial class BusinessRuleDateMathTransformationTimeSpanInvalidException : PictureparkValidationException
{
[Newtonsoft.Json.JsonProperty("timeSpan", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string TimeSpan { get; set; }

public string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this);
}

public static BusinessRuleDateMathTransformationTimeSpanInvalidException FromJson(string data)
{
return Newtonsoft.Json.JsonConvert.DeserializeObject<BusinessRuleDateMathTransformationTimeSpanInvalidException>(data);
}

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.23.0 (Newtonsoft.Json v11.0.0.0)")]
[Newtonsoft.Json.JsonObjectAttribute]
public partial class NamedCacheConfigurationException : PictureparkValidationException
Expand Down Expand Up @@ -13330,6 +13350,14 @@ public static ContentRelationItemsChangedCondition FromJson(string data)
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.23.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class LayersChangedCondition : BusinessRuleCondition
{
/// <summary>Optional list of layer schema ids that must be added during the current content update operation in order for the condition to match.</summary>
[Newtonsoft.Json.JsonProperty("addedLayerIds", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<string> AddedLayerIds { get; set; }

/// <summary>Optional list of layer schema ids that must be removed during the current content update operation in order for the condition to match.</summary>
[Newtonsoft.Json.JsonProperty("removedLayerIds", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<string> RemovedLayerIds { get; set; }

public string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this);
Expand Down Expand Up @@ -13444,6 +13472,7 @@ public static BusinessRuleTransformationGroup FromJson(string data)
[JsonInheritanceAttribute("NGramTransformation", typeof(NGramTransformation))]
[JsonInheritanceAttribute("ProjectionTransformation", typeof(ProjectionTransformation))]
[JsonInheritanceAttribute("SplitTransformation", typeof(SplitTransformation))]
[JsonInheritanceAttribute("DateMathTransformation", typeof(DateMathTransformation))]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.23.0 (Newtonsoft.Json v11.0.0.0)")]
public abstract partial class BusinessRuleTransformation
{
Expand Down Expand Up @@ -13621,6 +13650,26 @@ public static SplitTransformation FromJson(string data)

}

/// <summary>Add / remove a time span to a date time</summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.23.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class DateMathTransformation : BusinessRuleTransformation
{
/// <summary>String representation of a time span.</summary>
[Newtonsoft.Json.JsonProperty("timeSpan", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string TimeSpan { get; set; }

public string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this);
}

public static DateMathTransformation FromJson(string data)
{
return Newtonsoft.Json.JsonConvert.DeserializeObject<DateMathTransformation>(data);
}

}

/// <summary>Action to be performed by a business rule</summary>
[Newtonsoft.Json.JsonConverter(typeof(JsonInheritanceConverter), "kind")]
[JsonInheritanceAttribute("AssignLayerAction", typeof(AssignLayerAction))]
Expand Down
17 changes: 17 additions & 0 deletions swagger/CloudManagerSwagger.json
Expand Up @@ -15672,6 +15672,23 @@
}
]
},
"BusinessRuleDateMathTransformationTimeSpanInvalidException": {
"allOf": [
{
"$ref": "#/components/schemas/PictureparkValidationException"
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"timeSpan": {
"type": "string",
"nullable": true
}
}
}
]
},
"NamedCacheConfigurationException": {
"allOf": [
{
Expand Down
59 changes: 57 additions & 2 deletions swagger/PictureparkSwagger.json
Expand Up @@ -33095,6 +33095,23 @@
}
]
},
"BusinessRuleDateMathTransformationTimeSpanInvalidException": {
"allOf": [
{
"$ref": "#/components/schemas/PictureparkValidationException"
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"timeSpan": {
"type": "string",
"nullable": true
}
}
}
]
},
"NamedCacheConfigurationException": {
"allOf": [
{
Expand Down Expand Up @@ -35922,7 +35939,25 @@
{
"type": "object",
"description": "Matches whenever the assigned layers of a content changed.",
"additionalProperties": false
"additionalProperties": false,
"properties": {
"addedLayerIds": {
"type": "array",
"description": "Optional list of layer schema ids that must be added during the current content update operation in order for the condition to match.",
"nullable": true,
"items": {
"type": "string"
}
},
"removedLayerIds": {
"type": "array",
"description": "Optional list of layer schema ids that must be removed during the current content update operation in order for the condition to match.",
"nullable": true,
"items": {
"type": "string"
}
}
}
}
]
},
Expand Down Expand Up @@ -36031,7 +36066,8 @@
"LookupCacheTransformation": "#/components/schemas/LookupCacheTransformation",
"NGramTransformation": "#/components/schemas/NGramTransformation",
"ProjectionTransformation": "#/components/schemas/ProjectionTransformation",
"SplitTransformation": "#/components/schemas/SplitTransformation"
"SplitTransformation": "#/components/schemas/SplitTransformation",
"DateMathTransformation": "#/components/schemas/DateMathTransformation"
}
},
"description": "Business rule transformation",
Expand Down Expand Up @@ -36205,6 +36241,25 @@
}
]
},
"DateMathTransformation": {
"allOf": [
{
"$ref": "#/components/schemas/BusinessRuleTransformation"
},
{
"type": "object",
"description": "Add / remove a time span to a date time",
"additionalProperties": false,
"properties": {
"timeSpan": {
"type": "string",
"description": "String representation of a time span.",
"nullable": true
}
}
}
]
},
"BusinessRuleAction": {
"type": "object",
"discriminator": {
Expand Down