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

Feature/pp9 14468 business rule string contains condition #556

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 @@ -1532,6 +1532,7 @@ public static PictureparkBusinessException FromJson(string data)
[JsonInheritanceAttribute("BusinessRuleScheduleInvalidCronExpressionException", typeof(BusinessRuleScheduleInvalidCronExpressionException))]
[JsonInheritanceAttribute("BusinessRuleScheduleFilterMissingException", typeof(BusinessRuleScheduleFilterMissingException))]
[JsonInheritanceAttribute("BusinessRuleScheduleRulesMissingException", typeof(BusinessRuleScheduleRulesMissingException))]
[JsonInheritanceAttribute("BusinessRuleStringContainsConditionValuesToMatchMissingException", typeof(BusinessRuleStringContainsConditionValuesToMatchMissingException))]
[JsonInheritanceAttribute("NamedCacheConfigurationException", typeof(NamedCacheConfigurationException))]
[JsonInheritanceAttribute("NamedCacheNameMissingException", typeof(NamedCacheNameMissingException))]
[JsonInheritanceAttribute("NamedCacheNameDuplicationException", typeof(NamedCacheNameDuplicationException))]
Expand Down Expand Up @@ -8566,6 +8567,22 @@ public static BusinessRuleScheduleRulesMissingException FromJson(string data)

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.23.0 (Newtonsoft.Json v11.0.0.0)")]
[Newtonsoft.Json.JsonObjectAttribute]
public partial class BusinessRuleStringContainsConditionValuesToMatchMissingException : PictureparkValidationException
{
public string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this);
}

public static BusinessRuleStringContainsConditionValuesToMatchMissingException FromJson(string data)
{
return Newtonsoft.Json.JsonConvert.DeserializeObject<BusinessRuleStringContainsConditionValuesToMatchMissingException>(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
54 changes: 54 additions & 0 deletions src/Picturepark.SDK.V1.Contract/Contracts.Generated.cs
Expand Up @@ -3480,6 +3480,7 @@ public static PictureparkBusinessException FromJson(string data)
[JsonInheritanceAttribute("BusinessRuleScheduleInvalidCronExpressionException", typeof(BusinessRuleScheduleInvalidCronExpressionException))]
[JsonInheritanceAttribute("BusinessRuleScheduleFilterMissingException", typeof(BusinessRuleScheduleFilterMissingException))]
[JsonInheritanceAttribute("BusinessRuleScheduleRulesMissingException", typeof(BusinessRuleScheduleRulesMissingException))]
[JsonInheritanceAttribute("BusinessRuleStringContainsConditionValuesToMatchMissingException", typeof(BusinessRuleStringContainsConditionValuesToMatchMissingException))]
[JsonInheritanceAttribute("NamedCacheConfigurationException", typeof(NamedCacheConfigurationException))]
[JsonInheritanceAttribute("NamedCacheNameMissingException", typeof(NamedCacheNameMissingException))]
[JsonInheritanceAttribute("NamedCacheNameDuplicationException", typeof(NamedCacheNameDuplicationException))]
Expand Down Expand Up @@ -10514,6 +10515,22 @@ public static BusinessRuleScheduleRulesMissingException FromJson(string data)

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.23.0 (Newtonsoft.Json v11.0.0.0)")]
[Newtonsoft.Json.JsonObjectAttribute]
public partial class BusinessRuleStringContainsConditionValuesToMatchMissingException : PictureparkValidationException
{
public string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this);
}

public static BusinessRuleStringContainsConditionValuesToMatchMissingException FromJson(string data)
{
return Newtonsoft.Json.JsonConvert.DeserializeObject<BusinessRuleStringContainsConditionValuesToMatchMissingException>(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 @@ -12807,6 +12824,7 @@ public static BusinessRuleConfigurable FromJson(string data)
[JsonInheritanceAttribute("ContentPermissionSetUnassignedCondition", typeof(ContentPermissionSetUnassignedCondition))]
[JsonInheritanceAttribute("FieldValueChangedCondition", typeof(FieldValueChangedCondition))]
[JsonInheritanceAttribute("MatchRegexCondition", typeof(MatchRegexCondition))]
[JsonInheritanceAttribute("StringContainsCondition", typeof(StringContainsCondition))]
[JsonInheritanceAttribute("TagboxItemAssignedCondition", typeof(TagboxItemAssignedCondition))]
[JsonInheritanceAttribute("TagboxItemUnassignedCondition", typeof(TagboxItemUnassignedCondition))]
[JsonInheritanceAttribute("ContentSchemaCondition", typeof(ContentSchemaCondition))]
Expand Down Expand Up @@ -13023,6 +13041,42 @@ public static MatchRegexCondition FromJson(string data)

}

/// <summary>Matches when a field matching the field path string (JSON Path) changes and matches one of the specified values in ValuesToMatch</summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.23.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class StringContainsCondition : BusinessRuleCondition
{
/// <summary>JSON path to the field.</summary>
[Newtonsoft.Json.JsonProperty("fieldPath", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string FieldPath { get; set; }

/// <summary>A list of string value that will checked if at least one of them is contained in the string value identified by the FieldPath.</summary>
[Newtonsoft.Json.JsonProperty("valuesToMatch", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<string> ValuesToMatch { get; set; }

/// <summary>Optional value to be stored in the variable identified by StoreIn. It can be simple value or a complex object.</summary>
[Newtonsoft.Json.JsonProperty("valueToStore", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public object ValueToStore { get; set; }

/// <summary>Decide if the StringContains condition should be processed case sensitive.</summary>
[Newtonsoft.Json.JsonProperty("caseSensitive", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public bool CaseSensitive { get; set; }

/// <summary>Optional variable name to store the ValueToStore in</summary>
[Newtonsoft.Json.JsonProperty("storeIn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string StoreIn { get; set; }

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

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

}

/// <summary>Matches when a tag in a tagbox matching the field path string (JSON path) is newly assigned.</summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.23.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class TagboxItemAssignedCondition : BusinessRuleCondition
Expand Down
11 changes: 11 additions & 0 deletions swagger/CloudManagerSwagger.json
Expand Up @@ -15661,6 +15661,17 @@
}
]
},
"BusinessRuleStringContainsConditionValuesToMatchMissingException": {
"allOf": [
{
"$ref": "#/components/schemas/PictureparkValidationException"
},
{
"type": "object",
"additionalProperties": false
}
]
},
"NamedCacheConfigurationException": {
"allOf": [
{
Expand Down
52 changes: 52 additions & 0 deletions swagger/PictureparkSwagger.json
Expand Up @@ -33084,6 +33084,17 @@
}
]
},
"BusinessRuleStringContainsConditionValuesToMatchMissingException": {
"allOf": [
{
"$ref": "#/components/schemas/PictureparkValidationException"
},
{
"type": "object",
"additionalProperties": false
}
]
},
"NamedCacheConfigurationException": {
"allOf": [
{
Expand Down Expand Up @@ -35412,6 +35423,7 @@
"ContentPermissionSetUnassignedCondition": "#/components/schemas/ContentPermissionSetUnassignedCondition",
"FieldValueChangedCondition": "#/components/schemas/FieldValueChangedCondition",
"MatchRegexCondition": "#/components/schemas/MatchRegexCondition",
"StringContainsCondition": "#/components/schemas/StringContainsCondition",
"TagboxItemAssignedCondition": "#/components/schemas/TagboxItemAssignedCondition",
"TagboxItemUnassignedCondition": "#/components/schemas/TagboxItemUnassignedCondition",
"ContentSchemaCondition": "#/components/schemas/ContentSchemaCondition",
Expand Down Expand Up @@ -35619,6 +35631,46 @@
}
]
},
"StringContainsCondition": {
"allOf": [
{
"$ref": "#/components/schemas/BusinessRuleCondition"
},
{
"type": "object",
"description": "Matches when a field matching the field path string (JSON Path) changes and matches one of the specified values in ValuesToMatch",
"additionalProperties": false,
"properties": {
"fieldPath": {
"type": "string",
"description": "JSON path to the field.",
"nullable": true
},
"valuesToMatch": {
"type": "array",
"description": "A list of string value that will checked if at least one of them is contained in the string value identified by the FieldPath.",
"nullable": true,
"items": {
"type": "string"
}
},
"valueToStore": {
"description": "Optional value to be stored in the variable identified by StoreIn. It can be simple value or a complex object.",
"nullable": true
},
"caseSensitive": {
"type": "boolean",
"description": "Decide if the StringContains condition should be processed case sensitive."
},
"storeIn": {
"type": "string",
"description": "Optional variable name to store the ValueToStore in",
"nullable": true
}
}
}
]
},
"TagboxItemAssignedCondition": {
"allOf": [
{
Expand Down