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-15879: sdk regeneration #586

Merged
merged 1 commit into from Apr 27, 2022
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
25 changes: 25 additions & 0 deletions src/Picturepark.SDK.V1.Contract/Contracts.Generated.cs
Expand Up @@ -13157,6 +13157,7 @@ public static BusinessRuleConfigurable FromJson(string data)
[JsonInheritanceAttribute("ContentPermissionSetAssignedCondition", typeof(ContentPermissionSetAssignedCondition))]
[JsonInheritanceAttribute("ContentPermissionSetUnassignedCondition", typeof(ContentPermissionSetUnassignedCondition))]
[JsonInheritanceAttribute("FieldValueChangedCondition", typeof(FieldValueChangedCondition))]
[JsonInheritanceAttribute("FieldValueCondition", typeof(FieldValueCondition))]
[JsonInheritanceAttribute("MatchRegexCondition", typeof(MatchRegexCondition))]
[JsonInheritanceAttribute("StringContainsCondition", typeof(StringContainsCondition))]
[JsonInheritanceAttribute("UserInUserRolesCondition", typeof(UserInUserRolesCondition))]
Expand Down Expand Up @@ -13356,6 +13357,30 @@ public static FieldValueChangedCondition FromJson(string data)

}

/// <summary>Matches when a field matching the field path string (JSON path) has the expected value.</summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.23.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class FieldValueCondition : 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>Expected value for the field to have to satisfy the condition</summary>
[Newtonsoft.Json.JsonProperty("expectedValue", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public object ExpectedValue { get; set; }

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

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

}

/// <summary>Matches when a field matching the field path string (JSON Path) changes and matches the given regular expression.</summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.1.23.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class MatchRegexCondition : BusinessRuleCondition
Expand Down
24 changes: 24 additions & 0 deletions swagger/PictureparkSwagger.json
Expand Up @@ -36714,6 +36714,7 @@
"ContentPermissionSetAssignedCondition": "#/components/schemas/ContentPermissionSetAssignedCondition",
"ContentPermissionSetUnassignedCondition": "#/components/schemas/ContentPermissionSetUnassignedCondition",
"FieldValueChangedCondition": "#/components/schemas/FieldValueChangedCondition",
"FieldValueCondition": "#/components/schemas/FieldValueCondition",
"MatchRegexCondition": "#/components/schemas/MatchRegexCondition",
"StringContainsCondition": "#/components/schemas/StringContainsCondition",
"UserInUserRolesCondition": "#/components/schemas/UserInUserRolesCondition",
Expand Down Expand Up @@ -36913,6 +36914,29 @@
}
]
},
"FieldValueCondition": {
"allOf": [
{
"$ref": "#/components/schemas/BusinessRuleCondition"
},
{
"type": "object",
"description": "Matches when a field matching the field path string (JSON path) has the expected value.",
"additionalProperties": false,
"properties": {
"fieldPath": {
"type": "string",
"description": "JSON path to the field",
"nullable": true
},
"expectedValue": {
"description": "Expected value for the field to have to satisfy the condition",
"nullable": true
}
}
}
]
},
"MatchRegexCondition": {
"allOf": [
{
Expand Down