* ONAP Policy Model
* ================================================================================
* Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
+ * Modifications Copyright (C) 2019-2020 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
package org.onap.policy.models.tosca.authorative.concepts;
import com.google.gson.annotations.SerializedName;
+import io.swagger.annotations.ApiModelProperty;
import java.util.List;
+import java.util.Map;
import lombok.Data;
/**
*/
@Data
public class ToscaProperty {
+ public enum Status {
+ SUPPORTED, UNSUPPORTED, EXPERIMENTAL, DEPRECATED
+ }
+ private String name;
private String type;
+ @ApiModelProperty(name = "type_version")
+ @SerializedName("type_version")
+ private String typeVersion;
+
private String description;
+ @ApiModelProperty(name = "default")
+ @SerializedName("default")
+ private Object defaultValue;
+
private boolean required = false;
+ private Status status;
+ private List<ToscaConstraint> constraints;
- @SerializedName("default")
- private String defaultValue;
+ @ApiModelProperty(name = "key_schema")
+ @SerializedName("key_schema")
+ private ToscaSchemaDefinition keySchema;
+ @ApiModelProperty(name = "entry_schema")
@SerializedName("entry_schema")
- private ToscaEntrySchema entrySchema;
+ private ToscaSchemaDefinition entrySchema;
- private List<ToscaConstraint> constraints;
+ private Map<String, String> metadata;
}