X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=models-tosca%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fpolicy%2Fmodels%2Ftosca%2Fauthorative%2Fconcepts%2FToscaConstraint.java;h=f00c243c3e2751e9c6b04eb8a2f030f4234a6c2f;hb=80311ac0dedb0868d3837029c6e4b5fcb984efb2;hp=582b73cc652eefed6ae52af6fcaf91aee60fae20;hpb=a50a7d8414e03af2520ed5e4714af2d28016d238;p=policy%2Fmodels.git diff --git a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaConstraint.java b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaConstraint.java index 582b73cc6..f00c243c3 100644 --- a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaConstraint.java +++ b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaConstraint.java @@ -3,7 +3,7 @@ * ONAP Policy Model * ================================================================================ * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. - * Modifications Copyright (C) 2019 Nordix Foundation. + * Modifications Copyright (C) 2019-2021 Nordix Foundation. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,7 +24,6 @@ package org.onap.policy.models.tosca.authorative.concepts; import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModelProperty; import java.util.List; import lombok.Data; @@ -35,27 +34,23 @@ import lombok.Data; */ @Data public class ToscaConstraint { - - @ApiModelProperty(name = "valid_values") @SerializedName("valid_values") private List validValues; private String equal; - @ApiModelProperty(name = "greater_than") @SerializedName("greater_than") private String greaterThan; - @ApiModelProperty(name = "greater_or_equal") @SerializedName("greater_or_equal") private String greaterOrEqual; - @ApiModelProperty(name = "less_than") @SerializedName("less_than") private String lessThan; - @ApiModelProperty(name = "less_or_equal") @SerializedName("less_or_equal") private String lessOrEqual; + @SerializedName("in_range") + private List rangeValues; }