diff options
Diffstat (limited to 'ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model')
31 files changed, 6069 insertions, 0 deletions
diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiContrailRouteAllottedResources.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiContrailRouteAllottedResources.java new file mode 100644 index 0000000..86e1f0b --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiContrailRouteAllottedResources.java @@ -0,0 +1,95 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiContrailrouteallottedresourcesContrailRouteAllottedResource; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiContrailRouteAllottedResources + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-26T13:29:23.962-04:00") +@JsonRootName("contrail-route-allotted-resources") +public class GenericResourceApiContrailRouteAllottedResources { + @JsonProperty("contrail-route-allotted-resource") + @Valid + private List<GenericResourceApiContrailrouteallottedresourcesContrailRouteAllottedResource> contrailRouteAllottedResource = null; + + public GenericResourceApiContrailRouteAllottedResources contrailRouteAllottedResource(List<GenericResourceApiContrailrouteallottedresourcesContrailRouteAllottedResource> contrailRouteAllottedResource) { + this.contrailRouteAllottedResource = contrailRouteAllottedResource; + return this; + } + + public GenericResourceApiContrailRouteAllottedResources addContrailRouteAllottedResourceItem(GenericResourceApiContrailrouteallottedresourcesContrailRouteAllottedResource contrailRouteAllottedResourceItem) { + if (this.contrailRouteAllottedResource == null) { + this.contrailRouteAllottedResource = new ArrayList<>(); + } + this.contrailRouteAllottedResource.add(contrailRouteAllottedResourceItem); + return this; + } + + /** + * Get contrailRouteAllottedResource + * @return contrailRouteAllottedResource + **/ + @ApiModelProperty(value = "") + + @Valid + + public List<GenericResourceApiContrailrouteallottedresourcesContrailRouteAllottedResource> getContrailRouteAllottedResource() { + return contrailRouteAllottedResource; + } + + public void setContrailRouteAllottedResource(List<GenericResourceApiContrailrouteallottedresourcesContrailRouteAllottedResource> contrailRouteAllottedResource) { + this.contrailRouteAllottedResource = contrailRouteAllottedResource; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiContrailRouteAllottedResources genericResourceApiContrailRouteAllottedResources = (GenericResourceApiContrailRouteAllottedResources) o; + return Objects.equals(this.contrailRouteAllottedResource, genericResourceApiContrailRouteAllottedResources.contrailRouteAllottedResource); + } + + @Override + public int hashCode() { + return Objects.hash(contrailRouteAllottedResource); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiContrailRouteAllottedResources {\n"); + + sb.append(" contrailRouteAllottedResource: ").append(toIndentedString(contrailRouteAllottedResource)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiContrailrouteallottedresourcesContrailRouteAllottedResource.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiContrailrouteallottedresourcesContrailRouteAllottedResource.java new file mode 100644 index 0000000..83975d6 --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiContrailrouteallottedresourcesContrailRouteAllottedResource.java @@ -0,0 +1,137 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiAllottedResourceStatus; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiAllottedresourcestatusAllottedResourceStatus; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiContrailrouteallottedresourcesContrailrouteallottedresourceAllottedResourceData; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiContrailrouteallottedresourcesContrailRouteAllottedResource + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-13T13:26:44.236-04:00") +@JsonRootName("contrail-route-allotted-resource") +public class GenericResourceApiContrailrouteallottedresourcesContrailRouteAllottedResource { + @JsonProperty("allotted-resource-status") + private GenericResourceApiAllottedresourcestatusAllottedResourceStatus allottedResourceStatus = null; + + @JsonProperty("allotted-resource-id") + private String allottedResourceId = null; + + @JsonProperty("allotted-resource-data") + private GenericResourceApiContrailrouteallottedresourcesContrailrouteallottedresourceAllottedResourceData allottedResourceData = null; + + public GenericResourceApiContrailrouteallottedresourcesContrailRouteAllottedResource allottedResourceStatus(GenericResourceApiAllottedresourcestatusAllottedResourceStatus allottedResourceStatus) { + this.allottedResourceStatus = allottedResourceStatus; + return this; + } + + /** + * Get allottedResourceStatus + * @return allottedResourceStatus + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiAllottedresourcestatusAllottedResourceStatus getAllottedResourceStatus() { + return allottedResourceStatus; + } + + public void setAllottedResourceStatus(GenericResourceApiAllottedresourcestatusAllottedResourceStatus allottedResourceStatus) { + this.allottedResourceStatus = allottedResourceStatus; + } + + public GenericResourceApiContrailrouteallottedresourcesContrailRouteAllottedResource allottedResourceId(String allottedResourceId) { + this.allottedResourceId = allottedResourceId; + return this; + } + + /** + * Get allottedResourceId + * @return allottedResourceId + **/ + @ApiModelProperty(value = "") + + + public String getAllottedResourceId() { + return allottedResourceId; + } + + public void setAllottedResourceId(String allottedResourceId) { + this.allottedResourceId = allottedResourceId; + } + + public GenericResourceApiContrailrouteallottedresourcesContrailRouteAllottedResource allottedResourceData(GenericResourceApiContrailrouteallottedresourcesContrailrouteallottedresourceAllottedResourceData allottedResourceData) { + this.allottedResourceData = allottedResourceData; + return this; + } + + /** + * Get allottedResourceData + * @return allottedResourceData + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiContrailrouteallottedresourcesContrailrouteallottedresourceAllottedResourceData getAllottedResourceData() { + return allottedResourceData; + } + + public void setAllottedResourceData(GenericResourceApiContrailrouteallottedresourcesContrailrouteallottedresourceAllottedResourceData allottedResourceData) { + this.allottedResourceData = allottedResourceData; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiContrailrouteallottedresourcesContrailRouteAllottedResource genericResourceApiContrailrouteallottedresourcesContrailRouteAllottedResource = (GenericResourceApiContrailrouteallottedresourcesContrailRouteAllottedResource) o; + return Objects.equals(this.allottedResourceStatus, genericResourceApiContrailrouteallottedresourcesContrailRouteAllottedResource.allottedResourceStatus) && + Objects.equals(this.allottedResourceId, genericResourceApiContrailrouteallottedresourcesContrailRouteAllottedResource.allottedResourceId) && + Objects.equals(this.allottedResourceData, genericResourceApiContrailrouteallottedresourcesContrailRouteAllottedResource.allottedResourceData); + } + + @Override + public int hashCode() { + return Objects.hash(allottedResourceStatus, allottedResourceId, allottedResourceData); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiContrailrouteallottedresourcesContrailRouteAllottedResource {\n"); + + sb.append(" allottedResourceStatus: ").append(toIndentedString(allottedResourceStatus)).append("\n"); + sb.append(" allottedResourceId: ").append(toIndentedString(allottedResourceId)).append("\n"); + sb.append(" allottedResourceData: ").append(toIndentedString(allottedResourceData)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiContrailroutetopologyContrailRouteTopology.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiContrailroutetopologyContrailRouteTopology.java new file mode 100644 index 0000000..cefc4a5 --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiContrailroutetopologyContrailRouteTopology.java @@ -0,0 +1,168 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiAllottedResourceIdentifiers; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiAllottedresourceidentifiersAllottedResourceIdentifiers; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiContrailRouteAssignments; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiContrailrouteassignmentsContrailRouteAssignments; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiOnapModelInformation; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiOnapmodelinformationOnapModelInformation; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiParam; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiContrailroutetopologyContrailRouteTopology + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-13T13:26:44.236-04:00") +@JsonRootName("contrail-route-topology") +public class GenericResourceApiContrailroutetopologyContrailRouteTopology { + @JsonProperty("allotted-resource-identifiers") + private GenericResourceApiAllottedresourceidentifiersAllottedResourceIdentifiers allottedResourceIdentifiers = null; + + @JsonProperty("contrail-route-assignments") + private GenericResourceApiContrailrouteassignmentsContrailRouteAssignments contrailRouteAssignments = null; + + @JsonProperty("onap-model-information") + private GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation = null; + + @JsonProperty("contrail-route-parameters") + private GenericResourceApiParam contrailRouteParameters = null; + + public GenericResourceApiContrailroutetopologyContrailRouteTopology allottedResourceIdentifiers(GenericResourceApiAllottedresourceidentifiersAllottedResourceIdentifiers allottedResourceIdentifiers) { + this.allottedResourceIdentifiers = allottedResourceIdentifiers; + return this; + } + + /** + * Get allottedResourceIdentifiers + * @return allottedResourceIdentifiers + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiAllottedresourceidentifiersAllottedResourceIdentifiers getAllottedResourceIdentifiers() { + return allottedResourceIdentifiers; + } + + public void setAllottedResourceIdentifiers(GenericResourceApiAllottedresourceidentifiersAllottedResourceIdentifiers allottedResourceIdentifiers) { + this.allottedResourceIdentifiers = allottedResourceIdentifiers; + } + + public GenericResourceApiContrailroutetopologyContrailRouteTopology contrailRouteAssignments(GenericResourceApiContrailrouteassignmentsContrailRouteAssignments contrailRouteAssignments) { + this.contrailRouteAssignments = contrailRouteAssignments; + return this; + } + + /** + * Get contrailRouteAssignments + * @return contrailRouteAssignments + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiContrailrouteassignmentsContrailRouteAssignments getContrailRouteAssignments() { + return contrailRouteAssignments; + } + + public void setContrailRouteAssignments(GenericResourceApiContrailrouteassignmentsContrailRouteAssignments contrailRouteAssignments) { + this.contrailRouteAssignments = contrailRouteAssignments; + } + + public GenericResourceApiContrailroutetopologyContrailRouteTopology onapModelInformation(GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation) { + this.onapModelInformation = onapModelInformation; + return this; + } + + /** + * Get onapModelInformation + * @return onapModelInformation + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiOnapmodelinformationOnapModelInformation getOnapModelInformation() { + return onapModelInformation; + } + + public void setOnapModelInformation(GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation) { + this.onapModelInformation = onapModelInformation; + } + + public GenericResourceApiContrailroutetopologyContrailRouteTopology contrailRouteParameters(GenericResourceApiParam contrailRouteParameters) { + this.contrailRouteParameters = contrailRouteParameters; + return this; + } + + /** + * Get contrailRouteParameters + * @return contrailRouteParameters + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiParam getContrailRouteParameters() { + return contrailRouteParameters; + } + + public void setContrailRouteParameters(GenericResourceApiParam contrailRouteParameters) { + this.contrailRouteParameters = contrailRouteParameters; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiContrailroutetopologyContrailRouteTopology genericResourceApiContrailroutetopologyContrailRouteTopology = (GenericResourceApiContrailroutetopologyContrailRouteTopology) o; + return Objects.equals(this.allottedResourceIdentifiers, genericResourceApiContrailroutetopologyContrailRouteTopology.allottedResourceIdentifiers) && + Objects.equals(this.contrailRouteAssignments, genericResourceApiContrailroutetopologyContrailRouteTopology.contrailRouteAssignments) && + Objects.equals(this.onapModelInformation, genericResourceApiContrailroutetopologyContrailRouteTopology.onapModelInformation) && + Objects.equals(this.contrailRouteParameters, genericResourceApiContrailroutetopologyContrailRouteTopology.contrailRouteParameters); + } + + @Override + public int hashCode() { + return Objects.hash(allottedResourceIdentifiers, contrailRouteAssignments, onapModelInformation, contrailRouteParameters); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiContrailroutetopologyContrailRouteTopology {\n"); + + sb.append(" allottedResourceIdentifiers: ").append(toIndentedString(allottedResourceIdentifiers)).append("\n"); + sb.append(" contrailRouteAssignments: ").append(toIndentedString(contrailRouteAssignments)).append("\n"); + sb.append(" onapModelInformation: ").append(toIndentedString(onapModelInformation)).append("\n"); + sb.append(" contrailRouteParameters: ").append(toIndentedString(contrailRouteParameters)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiNetworkinstancegroupNetworkInstanceGroup.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiNetworkinstancegroupNetworkInstanceGroup.java new file mode 100644 index 0000000..d042bba --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiNetworkinstancegroupNetworkInstanceGroup.java @@ -0,0 +1,369 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiAggregateRoutes; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiAggregateroutesAggregateRoutes; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiNetworkinstancegroupNetworkinstancegroupAggregateRoutePolicy; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiNetworkinstancegroupNetworkinstancegroupNetworks; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiNetworkinstancegroupNetworkinstancegroupSubnetAssignmentPolicy; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiNetworkinstancegroupNetworkinstancegroupVpnBindingPolicy; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiOnapModelInformation; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiOnapmodelinformationOnapModelInformation; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiSubnets; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiSubnetsSubnets; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiNetworkinstancegroupNetworkInstanceGroup + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-23T12:02:01.518-04:00") +@JsonRootName("network-instance-group") +public class GenericResourceApiNetworkinstancegroupNetworkInstanceGroup { + @JsonProperty("aggregate-routes") + @Valid + private List<GenericResourceApiAggregateroutesAggregateRoutes> aggregateRoutes = null; + + @JsonProperty("onap-model-information") + private GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation = null; + + @JsonProperty("subnets") + @Valid + private List<GenericResourceApiSubnetsSubnets> subnets = null; + + @JsonProperty("subnet-assignment-policy") + private GenericResourceApiNetworkinstancegroupNetworkinstancegroupSubnetAssignmentPolicy subnetAssignmentPolicy = null; + + @JsonProperty("service-instance-id") + private String serviceInstanceId = null; + + @JsonProperty("vpn-binding-policy") + private GenericResourceApiNetworkinstancegroupNetworkinstancegroupVpnBindingPolicy vpnBindingPolicy = null; + + @JsonProperty("network-instance-group-id") + private String networkInstanceGroupId = null; + + @JsonProperty("network-instance-group-function") + private String networkInstanceGroupFunction = null; + + @JsonProperty("networks") + private GenericResourceApiNetworkinstancegroupNetworkinstancegroupNetworks networks = null; + + @JsonProperty("aggregate-route-policy") + private GenericResourceApiNetworkinstancegroupNetworkinstancegroupAggregateRoutePolicy aggregateRoutePolicy = null; + + @JsonProperty("subnet-key-value") + private String subnetKeyValue = null; + + public GenericResourceApiNetworkinstancegroupNetworkInstanceGroup aggregateRoutes(List<GenericResourceApiAggregateroutesAggregateRoutes> aggregateRoutes) { + this.aggregateRoutes = aggregateRoutes; + return this; + } + + public GenericResourceApiNetworkinstancegroupNetworkInstanceGroup addAggregateRoutesItem(GenericResourceApiAggregateroutesAggregateRoutes aggregateRoutesItem) { + if (this.aggregateRoutes == null) { + this.aggregateRoutes = new ArrayList<>(); + } + this.aggregateRoutes.add(aggregateRoutesItem); + return this; + } + + /** + * Get aggregateRoutes + * @return aggregateRoutes + **/ + @ApiModelProperty(value = "") + + @Valid + + public List<GenericResourceApiAggregateroutesAggregateRoutes> getAggregateRoutes() { + return aggregateRoutes; + } + + public void setAggregateRoutes(List<GenericResourceApiAggregateroutesAggregateRoutes> aggregateRoutes) { + this.aggregateRoutes = aggregateRoutes; + } + + public GenericResourceApiNetworkinstancegroupNetworkInstanceGroup onapModelInformation(GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation) { + this.onapModelInformation = onapModelInformation; + return this; + } + + /** + * Get onapModelInformation + * @return onapModelInformation + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiOnapmodelinformationOnapModelInformation getOnapModelInformation() { + return onapModelInformation; + } + + public void setOnapModelInformation(GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation) { + this.onapModelInformation = onapModelInformation; + } + + public GenericResourceApiNetworkinstancegroupNetworkInstanceGroup subnets(List<GenericResourceApiSubnetsSubnets> subnets) { + this.subnets = subnets; + return this; + } + + public GenericResourceApiNetworkinstancegroupNetworkInstanceGroup addSubnetsItem(GenericResourceApiSubnetsSubnets subnetsItem) { + if (this.subnets == null) { + this.subnets = new ArrayList<>(); + } + this.subnets.add(subnetsItem); + return this; + } + + /** + * Get subnets + * @return subnets + **/ + @ApiModelProperty(value = "") + + @Valid + + public List<GenericResourceApiSubnetsSubnets> getSubnets() { + return subnets; + } + + public void setSubnets(List<GenericResourceApiSubnetsSubnets> subnets) { + this.subnets = subnets; + } + + public GenericResourceApiNetworkinstancegroupNetworkInstanceGroup subnetAssignmentPolicy(GenericResourceApiNetworkinstancegroupNetworkinstancegroupSubnetAssignmentPolicy subnetAssignmentPolicy) { + this.subnetAssignmentPolicy = subnetAssignmentPolicy; + return this; + } + + /** + * Get subnetAssignmentPolicy + * @return subnetAssignmentPolicy + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiNetworkinstancegroupNetworkinstancegroupSubnetAssignmentPolicy getSubnetAssignmentPolicy() { + return subnetAssignmentPolicy; + } + + public void setSubnetAssignmentPolicy(GenericResourceApiNetworkinstancegroupNetworkinstancegroupSubnetAssignmentPolicy subnetAssignmentPolicy) { + this.subnetAssignmentPolicy = subnetAssignmentPolicy; + } + + public GenericResourceApiNetworkinstancegroupNetworkInstanceGroup serviceInstanceId(String serviceInstanceId) { + this.serviceInstanceId = serviceInstanceId; + return this; + } + + /** + * Get serviceInstanceId + * @return serviceInstanceId + **/ + @ApiModelProperty(value = "") + + + public String getServiceInstanceId() { + return serviceInstanceId; + } + + public void setServiceInstanceId(String serviceInstanceId) { + this.serviceInstanceId = serviceInstanceId; + } + + public GenericResourceApiNetworkinstancegroupNetworkInstanceGroup vpnBindingPolicy(GenericResourceApiNetworkinstancegroupNetworkinstancegroupVpnBindingPolicy vpnBindingPolicy) { + this.vpnBindingPolicy = vpnBindingPolicy; + return this; + } + + /** + * Get vpnBindingPolicy + * @return vpnBindingPolicy + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiNetworkinstancegroupNetworkinstancegroupVpnBindingPolicy getVpnBindingPolicy() { + return vpnBindingPolicy; + } + + public void setVpnBindingPolicy(GenericResourceApiNetworkinstancegroupNetworkinstancegroupVpnBindingPolicy vpnBindingPolicy) { + this.vpnBindingPolicy = vpnBindingPolicy; + } + + public GenericResourceApiNetworkinstancegroupNetworkInstanceGroup networkInstanceGroupId(String networkInstanceGroupId) { + this.networkInstanceGroupId = networkInstanceGroupId; + return this; + } + + /** + * Also a Key in Network Instance Group in A&AI + * @return networkInstanceGroupId + **/ + @ApiModelProperty(value = "Also a Key in Network Instance Group in A&AI") + + + public String getNetworkInstanceGroupId() { + return networkInstanceGroupId; + } + + public void setNetworkInstanceGroupId(String networkInstanceGroupId) { + this.networkInstanceGroupId = networkInstanceGroupId; + } + + public GenericResourceApiNetworkinstancegroupNetworkInstanceGroup networkInstanceGroupFunction(String networkInstanceGroupFunction) { + this.networkInstanceGroupFunction = networkInstanceGroupFunction; + return this; + } + + /** + * Get networkInstanceGroupFunction + * @return networkInstanceGroupFunction + **/ + @ApiModelProperty(value = "") + + + public String getNetworkInstanceGroupFunction() { + return networkInstanceGroupFunction; + } + + public void setNetworkInstanceGroupFunction(String networkInstanceGroupFunction) { + this.networkInstanceGroupFunction = networkInstanceGroupFunction; + } + + public GenericResourceApiNetworkinstancegroupNetworkInstanceGroup networks(GenericResourceApiNetworkinstancegroupNetworkinstancegroupNetworks networks) { + this.networks = networks; + return this; + } + + /** + * Get networks + * @return networks + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiNetworkinstancegroupNetworkinstancegroupNetworks getNetworks() { + return networks; + } + + public void setNetworks(GenericResourceApiNetworkinstancegroupNetworkinstancegroupNetworks networks) { + this.networks = networks; + } + + public GenericResourceApiNetworkinstancegroupNetworkInstanceGroup aggregateRoutePolicy(GenericResourceApiNetworkinstancegroupNetworkinstancegroupAggregateRoutePolicy aggregateRoutePolicy) { + this.aggregateRoutePolicy = aggregateRoutePolicy; + return this; + } + + /** + * Get aggregateRoutePolicy + * @return aggregateRoutePolicy + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiNetworkinstancegroupNetworkinstancegroupAggregateRoutePolicy getAggregateRoutePolicy() { + return aggregateRoutePolicy; + } + + public void setAggregateRoutePolicy(GenericResourceApiNetworkinstancegroupNetworkinstancegroupAggregateRoutePolicy aggregateRoutePolicy) { + this.aggregateRoutePolicy = aggregateRoutePolicy; + } + + public GenericResourceApiNetworkinstancegroupNetworkInstanceGroup subnetKeyValue(String subnetKeyValue) { + this.subnetKeyValue = subnetKeyValue; + return this; + } + + /** + * key-value provided to IPAM when creating shared subnet + * @return subnetKeyValue + **/ + @ApiModelProperty(value = "key-value provided to IPAM when creating shared subnet") + + + public String getSubnetKeyValue() { + return subnetKeyValue; + } + + public void setSubnetKeyValue(String subnetKeyValue) { + this.subnetKeyValue = subnetKeyValue; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiNetworkinstancegroupNetworkInstanceGroup genericResourceApiNetworkinstancegroupNetworkInstanceGroup = (GenericResourceApiNetworkinstancegroupNetworkInstanceGroup) o; + return Objects.equals(this.aggregateRoutes, genericResourceApiNetworkinstancegroupNetworkInstanceGroup.aggregateRoutes) && + Objects.equals(this.onapModelInformation, genericResourceApiNetworkinstancegroupNetworkInstanceGroup.onapModelInformation) && + Objects.equals(this.subnets, genericResourceApiNetworkinstancegroupNetworkInstanceGroup.subnets) && + Objects.equals(this.subnetAssignmentPolicy, genericResourceApiNetworkinstancegroupNetworkInstanceGroup.subnetAssignmentPolicy) && + Objects.equals(this.serviceInstanceId, genericResourceApiNetworkinstancegroupNetworkInstanceGroup.serviceInstanceId) && + Objects.equals(this.vpnBindingPolicy, genericResourceApiNetworkinstancegroupNetworkInstanceGroup.vpnBindingPolicy) && + Objects.equals(this.networkInstanceGroupId, genericResourceApiNetworkinstancegroupNetworkInstanceGroup.networkInstanceGroupId) && + Objects.equals(this.networkInstanceGroupFunction, genericResourceApiNetworkinstancegroupNetworkInstanceGroup.networkInstanceGroupFunction) && + Objects.equals(this.networks, genericResourceApiNetworkinstancegroupNetworkInstanceGroup.networks) && + Objects.equals(this.aggregateRoutePolicy, genericResourceApiNetworkinstancegroupNetworkInstanceGroup.aggregateRoutePolicy) && + Objects.equals(this.subnetKeyValue, genericResourceApiNetworkinstancegroupNetworkInstanceGroup.subnetKeyValue); + } + + @Override + public int hashCode() { + return Objects.hash(aggregateRoutes, onapModelInformation, subnets, subnetAssignmentPolicy, serviceInstanceId, vpnBindingPolicy, networkInstanceGroupId, networkInstanceGroupFunction, networks, aggregateRoutePolicy, subnetKeyValue); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiNetworkinstancegroupNetworkInstanceGroup {\n"); + + sb.append(" aggregateRoutes: ").append(toIndentedString(aggregateRoutes)).append("\n"); + sb.append(" onapModelInformation: ").append(toIndentedString(onapModelInformation)).append("\n"); + sb.append(" subnets: ").append(toIndentedString(subnets)).append("\n"); + sb.append(" subnetAssignmentPolicy: ").append(toIndentedString(subnetAssignmentPolicy)).append("\n"); + sb.append(" serviceInstanceId: ").append(toIndentedString(serviceInstanceId)).append("\n"); + sb.append(" vpnBindingPolicy: ").append(toIndentedString(vpnBindingPolicy)).append("\n"); + sb.append(" networkInstanceGroupId: ").append(toIndentedString(networkInstanceGroupId)).append("\n"); + sb.append(" networkInstanceGroupFunction: ").append(toIndentedString(networkInstanceGroupFunction)).append("\n"); + sb.append(" networks: ").append(toIndentedString(networks)).append("\n"); + sb.append(" aggregateRoutePolicy: ").append(toIndentedString(aggregateRoutePolicy)).append("\n"); + sb.append(" subnetKeyValue: ").append(toIndentedString(subnetKeyValue)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiNetworkinstancegroupNetworkinstancegroupNetworksNetwork.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiNetworkinstancegroupNetworkinstancegroupNetworksNetwork.java new file mode 100644 index 0000000..06ac646 --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiNetworkinstancegroupNetworkinstancegroupNetworksNetwork.java @@ -0,0 +1,223 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiNetworkinstancegroupNetworkinstancegroupNetworksNetworkCustomerBondingRequests; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVpnBindings; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVpnbindingsVpnBindings; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiNetworkinstancegroupNetworkinstancegroupNetworksNetwork + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-23T12:02:01.518-04:00") +@JsonRootName("network") +public class GenericResourceApiNetworkinstancegroupNetworkinstancegroupNetworksNetwork { + @JsonProperty("vpn-bindings") + @Valid + private List<GenericResourceApiVpnbindingsVpnBindings> vpnBindings = null; + + @JsonProperty("network-status") + private String networkStatus = null; + + @JsonProperty("neutron-network-id") + private String neutronNetworkId = null; + + @JsonProperty("network-id") + private String networkId = null; + + @JsonProperty("customer-bonding-requests") + private GenericResourceApiNetworkinstancegroupNetworkinstancegroupNetworksNetworkCustomerBondingRequests customerBondingRequests = null; + + @JsonProperty("vlan-tag-id") + private Long vlanTagId = null; + + public GenericResourceApiNetworkinstancegroupNetworkinstancegroupNetworksNetwork vpnBindings(List<GenericResourceApiVpnbindingsVpnBindings> vpnBindings) { + this.vpnBindings = vpnBindings; + return this; + } + + public GenericResourceApiNetworkinstancegroupNetworkinstancegroupNetworksNetwork addVpnBindingsItem(GenericResourceApiVpnbindingsVpnBindings vpnBindingsItem) { + if (this.vpnBindings == null) { + this.vpnBindings = new ArrayList<>(); + } + this.vpnBindings.add(vpnBindingsItem); + return this; + } + + /** + * Get vpnBindings + * @return vpnBindings + **/ + @ApiModelProperty(value = "") + + @Valid + + public List<GenericResourceApiVpnbindingsVpnBindings> getVpnBindings() { + return vpnBindings; + } + + public void setVpnBindings(List<GenericResourceApiVpnbindingsVpnBindings> vpnBindings) { + this.vpnBindings = vpnBindings; + } + + public GenericResourceApiNetworkinstancegroupNetworkinstancegroupNetworksNetwork networkStatus(String networkStatus) { + this.networkStatus = networkStatus; + return this; + } + + /** + * assigned, unassigned + * @return networkStatus + **/ + @ApiModelProperty(value = "assigned, unassigned") + + + public String getNetworkStatus() { + return networkStatus; + } + + public void setNetworkStatus(String networkStatus) { + this.networkStatus = networkStatus; + } + + public GenericResourceApiNetworkinstancegroupNetworkinstancegroupNetworksNetwork neutronNetworkId(String neutronNetworkId) { + this.neutronNetworkId = neutronNetworkId; + return this; + } + + /** + * Neutron-network-id assigned by PO/RO + * @return neutronNetworkId + **/ + @ApiModelProperty(value = "Neutron-network-id assigned by PO/RO") + + + public String getNeutronNetworkId() { + return neutronNetworkId; + } + + public void setNeutronNetworkId(String neutronNetworkId) { + this.neutronNetworkId = neutronNetworkId; + } + + public GenericResourceApiNetworkinstancegroupNetworkinstancegroupNetworksNetwork networkId(String networkId) { + this.networkId = networkId; + return this; + } + + /** + * Index into network-topology-identifier structure + * @return networkId + **/ + @ApiModelProperty(value = "Index into network-topology-identifier structure") + + + public String getNetworkId() { + return networkId; + } + + public void setNetworkId(String networkId) { + this.networkId = networkId; + } + + public GenericResourceApiNetworkinstancegroupNetworkinstancegroupNetworksNetwork customerBondingRequests(GenericResourceApiNetworkinstancegroupNetworkinstancegroupNetworksNetworkCustomerBondingRequests customerBondingRequests) { + this.customerBondingRequests = customerBondingRequests; + return this; + } + + /** + * Get customerBondingRequests + * @return customerBondingRequests + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiNetworkinstancegroupNetworkinstancegroupNetworksNetworkCustomerBondingRequests getCustomerBondingRequests() { + return customerBondingRequests; + } + + public void setCustomerBondingRequests(GenericResourceApiNetworkinstancegroupNetworkinstancegroupNetworksNetworkCustomerBondingRequests customerBondingRequests) { + this.customerBondingRequests = customerBondingRequests; + } + + public GenericResourceApiNetworkinstancegroupNetworkinstancegroupNetworksNetwork vlanTagId(Long vlanTagId) { + this.vlanTagId = vlanTagId; + return this; + } + + /** + * Get vlanTagId + * @return vlanTagId + **/ + @ApiModelProperty(value = "") + + + public Long getVlanTagId() { + return vlanTagId; + } + + public void setVlanTagId(Long vlanTagId) { + this.vlanTagId = vlanTagId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiNetworkinstancegroupNetworkinstancegroupNetworksNetwork genericResourceApiNetworkinstancegroupNetworkinstancegroupNetworksNetwork = (GenericResourceApiNetworkinstancegroupNetworkinstancegroupNetworksNetwork) o; + return Objects.equals(this.vpnBindings, genericResourceApiNetworkinstancegroupNetworkinstancegroupNetworksNetwork.vpnBindings) && + Objects.equals(this.networkStatus, genericResourceApiNetworkinstancegroupNetworkinstancegroupNetworksNetwork.networkStatus) && + Objects.equals(this.neutronNetworkId, genericResourceApiNetworkinstancegroupNetworkinstancegroupNetworksNetwork.neutronNetworkId) && + Objects.equals(this.networkId, genericResourceApiNetworkinstancegroupNetworkinstancegroupNetworksNetwork.networkId) && + Objects.equals(this.customerBondingRequests, genericResourceApiNetworkinstancegroupNetworkinstancegroupNetworksNetwork.customerBondingRequests) && + Objects.equals(this.vlanTagId, genericResourceApiNetworkinstancegroupNetworkinstancegroupNetworksNetwork.vlanTagId); + } + + @Override + public int hashCode() { + return Objects.hash(vpnBindings, networkStatus, neutronNetworkId, networkId, customerBondingRequests, vlanTagId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiNetworkinstancegroupNetworkinstancegroupNetworksNetwork {\n"); + + sb.append(" vpnBindings: ").append(toIndentedString(vpnBindings)).append("\n"); + sb.append(" networkStatus: ").append(toIndentedString(networkStatus)).append("\n"); + sb.append(" neutronNetworkId: ").append(toIndentedString(neutronNetworkId)).append("\n"); + sb.append(" networkId: ").append(toIndentedString(networkId)).append("\n"); + sb.append(" customerBondingRequests: ").append(toIndentedString(customerBondingRequests)).append("\n"); + sb.append(" vlanTagId: ").append(toIndentedString(vlanTagId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure.java new file mode 100644 index 0000000..1a80485 --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure.java @@ -0,0 +1,334 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiRelatedNetwork; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-23T12:02:01.518-04:00") +@JsonRootName("network-topology-identifier-structure") +public class GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure { + @JsonProperty("related-networks") + private GenericResourceApiRelatedNetwork relatedNetworks = null; + + @JsonProperty("network-role") + private String networkRole = null; + + @JsonProperty("is-trunked") + private Boolean isTrunked = null; + + @JsonProperty("network-technology") + private String networkTechnology = null; + + @JsonProperty("network-id") + private String networkId = null; + + @JsonProperty("eipam-v4-address-plan") + private String eipamV4AddressPlan = null; + + @JsonProperty("network-instance-group-id") + private String networkInstanceGroupId = null; + + @JsonProperty("network-name") + private String networkName = null; + + @JsonProperty("segmentation-id") + private String segmentationId = null; + + @JsonProperty("eipam-v6-address-plan") + private String eipamV6AddressPlan = null; + + @JsonProperty("network-type") + private String networkType = null; + + public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure relatedNetworks(GenericResourceApiRelatedNetwork relatedNetworks) { + this.relatedNetworks = relatedNetworks; + return this; + } + + /** + * Get relatedNetworks + * @return relatedNetworks + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiRelatedNetwork getRelatedNetworks() { + return relatedNetworks; + } + + public void setRelatedNetworks(GenericResourceApiRelatedNetwork relatedNetworks) { + this.relatedNetworks = relatedNetworks; + } + + public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure networkRole(String networkRole) { + this.networkRole = networkRole; + return this; + } + + /** + * Get networkRole + * @return networkRole + **/ + @ApiModelProperty(value = "") + + + public String getNetworkRole() { + return networkRole; + } + + public void setNetworkRole(String networkRole) { + this.networkRole = networkRole; + } + + public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure isTrunked(Boolean isTrunked) { + this.isTrunked = isTrunked; + return this; + } + + /** + * Get isTrunked + * @return isTrunked + **/ + @ApiModelProperty(value = "") + + + public Boolean isIsTrunked() { + return isTrunked; + } + + public void setIsTrunked(Boolean isTrunked) { + this.isTrunked = isTrunked; + } + + public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure networkTechnology(String networkTechnology) { + this.networkTechnology = networkTechnology; + return this; + } + + /** + * Get networkTechnology + * @return networkTechnology + **/ + @ApiModelProperty(value = "") + + + public String getNetworkTechnology() { + return networkTechnology; + } + + public void setNetworkTechnology(String networkTechnology) { + this.networkTechnology = networkTechnology; + } + + public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure networkId(String networkId) { + this.networkId = networkId; + return this; + } + + /** + * Get networkId + * @return networkId + **/ + @ApiModelProperty(value = "") + + + public String getNetworkId() { + return networkId; + } + + public void setNetworkId(String networkId) { + this.networkId = networkId; + } + + public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure eipamV4AddressPlan(String eipamV4AddressPlan) { + this.eipamV4AddressPlan = eipamV4AddressPlan; + return this; + } + + /** + * Get eipamV4AddressPlan + * @return eipamV4AddressPlan + **/ + @ApiModelProperty(value = "") + + + public String getEipamV4AddressPlan() { + return eipamV4AddressPlan; + } + + public void setEipamV4AddressPlan(String eipamV4AddressPlan) { + this.eipamV4AddressPlan = eipamV4AddressPlan; + } + + public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure networkInstanceGroupId(String networkInstanceGroupId) { + this.networkInstanceGroupId = networkInstanceGroupId; + return this; + } + + /** + * When network is part of network instance-Group-data & instance Group in A&AI + * @return networkInstanceGroupId + **/ + @ApiModelProperty(value = "When network is part of network instance-Group-data & instance Group in A&AI") + + + public String getNetworkInstanceGroupId() { + return networkInstanceGroupId; + } + + public void setNetworkInstanceGroupId(String networkInstanceGroupId) { + this.networkInstanceGroupId = networkInstanceGroupId; + } + + public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure networkName(String networkName) { + this.networkName = networkName; + return this; + } + + /** + * Get networkName + * @return networkName + **/ + @ApiModelProperty(value = "") + + + public String getNetworkName() { + return networkName; + } + + public void setNetworkName(String networkName) { + this.networkName = networkName; + } + + public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure segmentationId(String segmentationId) { + this.segmentationId = segmentationId; + return this; + } + + /** + * Get segmentationId + * @return segmentationId + **/ + @ApiModelProperty(value = "") + + + public String getSegmentationId() { + return segmentationId; + } + + public void setSegmentationId(String segmentationId) { + this.segmentationId = segmentationId; + } + + public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure eipamV6AddressPlan(String eipamV6AddressPlan) { + this.eipamV6AddressPlan = eipamV6AddressPlan; + return this; + } + + /** + * Get eipamV6AddressPlan + * @return eipamV6AddressPlan + **/ + @ApiModelProperty(value = "") + + + public String getEipamV6AddressPlan() { + return eipamV6AddressPlan; + } + + public void setEipamV6AddressPlan(String eipamV6AddressPlan) { + this.eipamV6AddressPlan = eipamV6AddressPlan; + } + + public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure networkType(String networkType) { + this.networkType = networkType; + return this; + } + + /** + * Get networkType + * @return networkType + **/ + @ApiModelProperty(value = "") + + + public String getNetworkType() { + return networkType; + } + + public void setNetworkType(String networkType) { + this.networkType = networkType; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure genericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure = (GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure) o; + return Objects.equals(this.relatedNetworks, genericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure.relatedNetworks) && + Objects.equals(this.networkRole, genericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure.networkRole) && + Objects.equals(this.isTrunked, genericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure.isTrunked) && + Objects.equals(this.networkTechnology, genericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure.networkTechnology) && + Objects.equals(this.networkId, genericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure.networkId) && + Objects.equals(this.eipamV4AddressPlan, genericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure.eipamV4AddressPlan) && + Objects.equals(this.networkInstanceGroupId, genericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure.networkInstanceGroupId) && + Objects.equals(this.networkName, genericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure.networkName) && + Objects.equals(this.segmentationId, genericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure.segmentationId) && + Objects.equals(this.eipamV6AddressPlan, genericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure.eipamV6AddressPlan) && + Objects.equals(this.networkType, genericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure.networkType); + } + + @Override + public int hashCode() { + return Objects.hash(relatedNetworks, networkRole, isTrunked, networkTechnology, networkId, eipamV4AddressPlan, networkInstanceGroupId, networkName, segmentationId, eipamV6AddressPlan, networkType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure {\n"); + + sb.append(" relatedNetworks: ").append(toIndentedString(relatedNetworks)).append("\n"); + sb.append(" networkRole: ").append(toIndentedString(networkRole)).append("\n"); + sb.append(" isTrunked: ").append(toIndentedString(isTrunked)).append("\n"); + sb.append(" networkTechnology: ").append(toIndentedString(networkTechnology)).append("\n"); + sb.append(" networkId: ").append(toIndentedString(networkId)).append("\n"); + sb.append(" eipamV4AddressPlan: ").append(toIndentedString(eipamV4AddressPlan)).append("\n"); + sb.append(" networkInstanceGroupId: ").append(toIndentedString(networkInstanceGroupId)).append("\n"); + sb.append(" networkName: ").append(toIndentedString(networkName)).append("\n"); + sb.append(" segmentationId: ").append(toIndentedString(segmentationId)).append("\n"); + sb.append(" eipamV6AddressPlan: ").append(toIndentedString(eipamV6AddressPlan)).append("\n"); + sb.append(" networkType: ").append(toIndentedString(networkType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiOnapmodelinformationOnapModelInformation.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiOnapmodelinformationOnapModelInformation.java new file mode 100644 index 0000000..d6efbc6 --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiOnapmodelinformationOnapModelInformation.java @@ -0,0 +1,182 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiOnapmodelinformationOnapModelInformation + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-26T09:20:20.871-04:00") +@JsonRootName("onap-model-information") +public class GenericResourceApiOnapmodelinformationOnapModelInformation { + @JsonProperty("model-name") + private String modelName = null; + + @JsonProperty("model-version") + private String modelVersion = null; + + @JsonProperty("model-customization-uuid") + private String modelCustomizationUuid = null; + + @JsonProperty("model-uuid") + private String modelUuid = null; + + @JsonProperty("model-invariant-uuid") + private String modelInvariantUuid = null; + + public GenericResourceApiOnapmodelinformationOnapModelInformation modelName(String modelName) { + this.modelName = modelName; + return this; + } + + /** + * Get modelName + * @return modelName + **/ + @ApiModelProperty(value = "") + + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public GenericResourceApiOnapmodelinformationOnapModelInformation modelVersion(String modelVersion) { + this.modelVersion = modelVersion; + return this; + } + + /** + * Get modelVersion + * @return modelVersion + **/ + @ApiModelProperty(value = "") + + + public String getModelVersion() { + return modelVersion; + } + + public void setModelVersion(String modelVersion) { + this.modelVersion = modelVersion; + } + + public GenericResourceApiOnapmodelinformationOnapModelInformation modelCustomizationUuid(String modelCustomizationUuid) { + this.modelCustomizationUuid = modelCustomizationUuid; + return this; + } + + /** + * customized resource for use within a given service.Would not be present at the service level but would be present for the resource level + * @return modelCustomizationUuid + **/ + @ApiModelProperty(value = "customized resource for use within a given service.Would not be present at the service level but would be present for the resource level") + + + public String getModelCustomizationUuid() { + return modelCustomizationUuid; + } + + public void setModelCustomizationUuid(String modelCustomizationUuid) { + this.modelCustomizationUuid = modelCustomizationUuid; + } + + public GenericResourceApiOnapmodelinformationOnapModelInformation modelUuid(String modelUuid) { + this.modelUuid = modelUuid; + return this; + } + + /** + * identifies the uuid for this service or resource, which is version specific + * @return modelUuid + **/ + @ApiModelProperty(value = "identifies the uuid for this service or resource, which is version specific") + + + public String getModelUuid() { + return modelUuid; + } + + public void setModelUuid(String modelUuid) { + this.modelUuid = modelUuid; + } + + public GenericResourceApiOnapmodelinformationOnapModelInformation modelInvariantUuid(String modelInvariantUuid) { + this.modelInvariantUuid = modelInvariantUuid; + return this; + } + + /** + * identifies the invariant uuid for this service or resource + * @return modelInvariantUuid + **/ + @ApiModelProperty(value = "identifies the invariant uuid for this service or resource") + + + public String getModelInvariantUuid() { + return modelInvariantUuid; + } + + public void setModelInvariantUuid(String modelInvariantUuid) { + this.modelInvariantUuid = modelInvariantUuid; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiOnapmodelinformationOnapModelInformation genericResourceApiOnapmodelinformationOnapModelInformation = (GenericResourceApiOnapmodelinformationOnapModelInformation) o; + return Objects.equals(this.modelName, genericResourceApiOnapmodelinformationOnapModelInformation.modelName) && + Objects.equals(this.modelVersion, genericResourceApiOnapmodelinformationOnapModelInformation.modelVersion) && + Objects.equals(this.modelCustomizationUuid, genericResourceApiOnapmodelinformationOnapModelInformation.modelCustomizationUuid) && + Objects.equals(this.modelUuid, genericResourceApiOnapmodelinformationOnapModelInformation.modelUuid) && + Objects.equals(this.modelInvariantUuid, genericResourceApiOnapmodelinformationOnapModelInformation.modelInvariantUuid); + } + + @Override + public int hashCode() { + return Objects.hash(modelName, modelVersion, modelCustomizationUuid, modelUuid, modelInvariantUuid); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiOnapmodelinformationOnapModelInformation {\n"); + + sb.append(" modelName: ").append(toIndentedString(modelName)).append("\n"); + sb.append(" modelVersion: ").append(toIndentedString(modelVersion)).append("\n"); + sb.append(" modelCustomizationUuid: ").append(toIndentedString(modelCustomizationUuid)).append("\n"); + sb.append(" modelUuid: ").append(toIndentedString(modelUuid)).append("\n"); + sb.append(" modelInvariantUuid: ").append(toIndentedString(modelInvariantUuid)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiOperStatusData.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiOperStatusData.java new file mode 100644 index 0000000..e07c4db --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiOperStatusData.java @@ -0,0 +1,237 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; + +import javax.validation.Valid; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; + +import org.springframework.validation.annotation.Validated; + +import io.swagger.annotations.ApiModelProperty; + +/** + * GenericResourceApiOperStatusData + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-23T12:02:01.518-04:00") +@JsonRootName("oper-status") +public class GenericResourceApiOperStatusData { + @JsonProperty("last-action") + private GenericResourceApiLastActionEnumeration lastAction = null; + + @JsonProperty("modify-timestamp") + private String modifyTimestamp = null; + + @JsonProperty("last-order-status") + private GenericResourceApiLastOrderStatusEnumeration lastOrderStatus = null; + + @JsonProperty("create-timestamp") + private String createTimestamp = null; + + @JsonProperty("order-status") + private GenericResourceApiOrderStatusEnumeration orderStatus = null; + + @JsonProperty("last-rpc-action") + private GenericResourceApiLastRpcActionEnumeration lastRpcAction = null; + + @JsonProperty("last-svc-request-id") + private String lastSvcRequestId = null; + + public GenericResourceApiOperStatusData lastAction(GenericResourceApiLastActionEnumeration lastAction) { + this.lastAction = lastAction; + return this; + } + + /** + * should be list of possible request-actions + * @return lastAction + **/ + @ApiModelProperty(value = "should be list of possible request-actions") + + @Valid + + public GenericResourceApiLastActionEnumeration getLastAction() { + return lastAction; + } + + public void setLastAction(GenericResourceApiLastActionEnumeration lastAction) { + this.lastAction = lastAction; + } + + public GenericResourceApiOperStatusData modifyTimestamp(String modifyTimestamp) { + this.modifyTimestamp = modifyTimestamp; + return this; + } + + /** + * Get modifyTimestamp + * @return modifyTimestamp + **/ + @ApiModelProperty(value = "") + + + public String getModifyTimestamp() { + return modifyTimestamp; + } + + public void setModifyTimestamp(String modifyTimestamp) { + this.modifyTimestamp = modifyTimestamp; + } + + public GenericResourceApiOperStatusData lastOrderStatus(GenericResourceApiLastOrderStatusEnumeration lastOrderStatus) { + this.lastOrderStatus = lastOrderStatus; + return this; + } + + /** + * Get lastOrderStatus + * @return lastOrderStatus + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiLastOrderStatusEnumeration getLastOrderStatus() { + return lastOrderStatus; + } + + public void setLastOrderStatus(GenericResourceApiLastOrderStatusEnumeration lastOrderStatus) { + this.lastOrderStatus = lastOrderStatus; + } + + public GenericResourceApiOperStatusData createTimestamp(String createTimestamp) { + this.createTimestamp = createTimestamp; + return this; + } + + /** + * Not currently populated in service data. + * @return createTimestamp + **/ + @ApiModelProperty(value = "Not currently populated in service data.") + + + public String getCreateTimestamp() { + return createTimestamp; + } + + public void setCreateTimestamp(String createTimestamp) { + this.createTimestamp = createTimestamp; + } + + public GenericResourceApiOperStatusData orderStatus(GenericResourceApiOrderStatusEnumeration orderStatus) { + this.orderStatus = orderStatus; + return this; + } + + /** + * TBD - do we need Request failed statuses? RequestFailed | InProgressTimeout + * @return orderStatus + **/ + @ApiModelProperty(value = "TBD - do we need Request failed statuses? RequestFailed | InProgressTimeout") + + @Valid + + public GenericResourceApiOrderStatusEnumeration getOrderStatus() { + return orderStatus; + } + + public void setOrderStatus(GenericResourceApiOrderStatusEnumeration orderStatus) { + this.orderStatus = orderStatus; + } + + public GenericResourceApiOperStatusData lastRpcAction(GenericResourceApiLastRpcActionEnumeration lastRpcAction) { + this.lastRpcAction = lastRpcAction; + return this; + } + + /** + * Get lastRpcAction + * @return lastRpcAction + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiLastRpcActionEnumeration getLastRpcAction() { + return lastRpcAction; + } + + public void setLastRpcAction(GenericResourceApiLastRpcActionEnumeration lastRpcAction) { + this.lastRpcAction = lastRpcAction; + } + + public GenericResourceApiOperStatusData lastSvcRequestId(String lastSvcRequestId) { + this.lastSvcRequestId = lastSvcRequestId; + return this; + } + + /** + * Not currently populated in service data. + * @return lastSvcRequestId + **/ + @ApiModelProperty(value = "Not currently populated in service data.") + + + public String getLastSvcRequestId() { + return lastSvcRequestId; + } + + public void setLastSvcRequestId(String lastSvcRequestId) { + this.lastSvcRequestId = lastSvcRequestId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiOperStatusData genericResourceApiOperStatusData = (GenericResourceApiOperStatusData) o; + return Objects.equals(this.lastAction, genericResourceApiOperStatusData.lastAction) && + Objects.equals(this.modifyTimestamp, genericResourceApiOperStatusData.modifyTimestamp) && + Objects.equals(this.lastOrderStatus, genericResourceApiOperStatusData.lastOrderStatus) && + Objects.equals(this.createTimestamp, genericResourceApiOperStatusData.createTimestamp) && + Objects.equals(this.orderStatus, genericResourceApiOperStatusData.orderStatus) && + Objects.equals(this.lastRpcAction, genericResourceApiOperStatusData.lastRpcAction) && + Objects.equals(this.lastSvcRequestId, genericResourceApiOperStatusData.lastSvcRequestId); + } + + @Override + public int hashCode() { + return Objects.hash(lastAction, modifyTimestamp, lastOrderStatus, createTimestamp, orderStatus, lastRpcAction, lastSvcRequestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiOperStatusData {\n"); + + sb.append(" lastAction: ").append(toIndentedString(lastAction)).append("\n"); + sb.append(" modifyTimestamp: ").append(toIndentedString(modifyTimestamp)).append("\n"); + sb.append(" lastOrderStatus: ").append(toIndentedString(lastOrderStatus)).append("\n"); + sb.append(" createTimestamp: ").append(toIndentedString(createTimestamp)).append("\n"); + sb.append(" orderStatus: ").append(toIndentedString(orderStatus)).append("\n"); + sb.append(" lastRpcAction: ").append(toIndentedString(lastRpcAction)).append("\n"); + sb.append(" lastSvcRequestId: ").append(toIndentedString(lastSvcRequestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiPortMirrorConfigurations.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiPortMirrorConfigurations.java new file mode 100644 index 0000000..86b6dc1 --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiPortMirrorConfigurations.java @@ -0,0 +1,95 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiPortmirrorconfigurationsPortMirrorConfiguration; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiPortMirrorConfigurations + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-26T14:28:03.605-04:00") +@JsonRootName("port-mirror-configurations") +public class GenericResourceApiPortMirrorConfigurations { + @JsonProperty("port-mirror-configuration") + @Valid + private List<GenericResourceApiPortmirrorconfigurationsPortMirrorConfiguration> portMirrorConfiguration = null; + + public GenericResourceApiPortMirrorConfigurations portMirrorConfiguration(List<GenericResourceApiPortmirrorconfigurationsPortMirrorConfiguration> portMirrorConfiguration) { + this.portMirrorConfiguration = portMirrorConfiguration; + return this; + } + + public GenericResourceApiPortMirrorConfigurations addPortMirrorConfigurationItem(GenericResourceApiPortmirrorconfigurationsPortMirrorConfiguration portMirrorConfigurationItem) { + if (this.portMirrorConfiguration == null) { + this.portMirrorConfiguration = new ArrayList<>(); + } + this.portMirrorConfiguration.add(portMirrorConfigurationItem); + return this; + } + + /** + * Get portMirrorConfiguration + * @return portMirrorConfiguration + **/ + @ApiModelProperty(value = "") + + @Valid + + public List<GenericResourceApiPortmirrorconfigurationsPortMirrorConfiguration> getPortMirrorConfiguration() { + return portMirrorConfiguration; + } + + public void setPortMirrorConfiguration(List<GenericResourceApiPortmirrorconfigurationsPortMirrorConfiguration> portMirrorConfiguration) { + this.portMirrorConfiguration = portMirrorConfiguration; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiPortMirrorConfigurations genericResourceApiPortMirrorConfigurations = (GenericResourceApiPortMirrorConfigurations) o; + return Objects.equals(this.portMirrorConfiguration, genericResourceApiPortMirrorConfigurations.portMirrorConfiguration); + } + + @Override + public int hashCode() { + return Objects.hash(portMirrorConfiguration); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiPortMirrorConfigurations {\n"); + + sb.append(" portMirrorConfiguration: ").append(toIndentedString(portMirrorConfiguration)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiPortmirrorconfigurationsPortMirrorConfiguration.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiPortmirrorconfigurationsPortMirrorConfiguration.java new file mode 100644 index 0000000..ee7ab77 --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiPortmirrorconfigurationsPortMirrorConfiguration.java @@ -0,0 +1,137 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiConfigurationStatus; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiConfigurationstatusConfigurationStatus; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiPortmirrorconfigurationsPortmirrorconfigurationConfigurationData; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiPortmirrorconfigurationsPortMirrorConfiguration + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-13T13:26:44.236-04:00") +@JsonRootName("port-mirror-configuration") +public class GenericResourceApiPortmirrorconfigurationsPortMirrorConfiguration { + @JsonProperty("configuration-status") + private GenericResourceApiConfigurationstatusConfigurationStatus configurationStatus = null; + + @JsonProperty("configuration-id") + private String configurationId = null; + + @JsonProperty("configuration-data") + private GenericResourceApiPortmirrorconfigurationsPortmirrorconfigurationConfigurationData configurationData = null; + + public GenericResourceApiPortmirrorconfigurationsPortMirrorConfiguration configurationStatus(GenericResourceApiConfigurationstatusConfigurationStatus configurationStatus) { + this.configurationStatus = configurationStatus; + return this; + } + + /** + * Get configurationStatus + * @return configurationStatus + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiConfigurationstatusConfigurationStatus getConfigurationStatus() { + return configurationStatus; + } + + public void setConfigurationStatus(GenericResourceApiConfigurationstatusConfigurationStatus configurationStatus) { + this.configurationStatus = configurationStatus; + } + + public GenericResourceApiPortmirrorconfigurationsPortMirrorConfiguration configurationId(String configurationId) { + this.configurationId = configurationId; + return this; + } + + /** + * Get configurationId + * @return configurationId + **/ + @ApiModelProperty(value = "") + + + public String getConfigurationId() { + return configurationId; + } + + public void setConfigurationId(String configurationId) { + this.configurationId = configurationId; + } + + public GenericResourceApiPortmirrorconfigurationsPortMirrorConfiguration configurationData(GenericResourceApiPortmirrorconfigurationsPortmirrorconfigurationConfigurationData configurationData) { + this.configurationData = configurationData; + return this; + } + + /** + * Get configurationData + * @return configurationData + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiPortmirrorconfigurationsPortmirrorconfigurationConfigurationData getConfigurationData() { + return configurationData; + } + + public void setConfigurationData(GenericResourceApiPortmirrorconfigurationsPortmirrorconfigurationConfigurationData configurationData) { + this.configurationData = configurationData; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiPortmirrorconfigurationsPortMirrorConfiguration genericResourceApiPortmirrorconfigurationsPortMirrorConfiguration = (GenericResourceApiPortmirrorconfigurationsPortMirrorConfiguration) o; + return Objects.equals(this.configurationStatus, genericResourceApiPortmirrorconfigurationsPortMirrorConfiguration.configurationStatus) && + Objects.equals(this.configurationId, genericResourceApiPortmirrorconfigurationsPortMirrorConfiguration.configurationId) && + Objects.equals(this.configurationData, genericResourceApiPortmirrorconfigurationsPortMirrorConfiguration.configurationData); + } + + @Override + public int hashCode() { + return Objects.hash(configurationStatus, configurationId, configurationData); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiPortmirrorconfigurationsPortMirrorConfiguration {\n"); + + sb.append(" configurationStatus: ").append(toIndentedString(configurationStatus)).append("\n"); + sb.append(" configurationId: ").append(toIndentedString(configurationId)).append("\n"); + sb.append(" configurationData: ").append(toIndentedString(configurationData)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiPortmirrorconfigurationtopologyPortMirrorConfigurationTopology.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiPortmirrorconfigurationtopologyPortMirrorConfigurationTopology.java new file mode 100644 index 0000000..a855906 --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiPortmirrorconfigurationtopologyPortMirrorConfigurationTopology.java @@ -0,0 +1,168 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiConfigurationIdentifiers; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiConfigurationidentifiersConfigurationIdentifiers; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiOnapModelInformation; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiOnapmodelinformationOnapModelInformation; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiParam; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiPortMirrorConfigurationAssignments; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiPortmirrorconfigurationassignmentsPortMirrorConfigurationAssignments; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiPortmirrorconfigurationtopologyPortMirrorConfigurationTopology + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-13T13:26:44.236-04:00") +@JsonRootName("port-mirror-configuration-topology") +public class GenericResourceApiPortmirrorconfigurationtopologyPortMirrorConfigurationTopology { + @JsonProperty("configuration-identifiers") + private GenericResourceApiConfigurationidentifiersConfigurationIdentifiers configurationIdentifiers = null; + + @JsonProperty("onap-model-information") + private GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation = null; + + @JsonProperty("port-mirror-configuration-assignments") + private GenericResourceApiPortmirrorconfigurationassignmentsPortMirrorConfigurationAssignments portMirrorConfigurationAssignments = null; + + @JsonProperty("port-mirror-configuration-parameters") + private GenericResourceApiParam portMirrorConfigurationParameters = null; + + public GenericResourceApiPortmirrorconfigurationtopologyPortMirrorConfigurationTopology configurationIdentifiers(GenericResourceApiConfigurationidentifiersConfigurationIdentifiers configurationIdentifiers) { + this.configurationIdentifiers = configurationIdentifiers; + return this; + } + + /** + * Get configurationIdentifiers + * @return configurationIdentifiers + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiConfigurationidentifiersConfigurationIdentifiers getConfigurationIdentifiers() { + return configurationIdentifiers; + } + + public void setConfigurationIdentifiers(GenericResourceApiConfigurationidentifiersConfigurationIdentifiers configurationIdentifiers) { + this.configurationIdentifiers = configurationIdentifiers; + } + + public GenericResourceApiPortmirrorconfigurationtopologyPortMirrorConfigurationTopology onapModelInformation(GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation) { + this.onapModelInformation = onapModelInformation; + return this; + } + + /** + * Get onapModelInformation + * @return onapModelInformation + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiOnapmodelinformationOnapModelInformation getOnapModelInformation() { + return onapModelInformation; + } + + public void setOnapModelInformation(GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation) { + this.onapModelInformation = onapModelInformation; + } + + public GenericResourceApiPortmirrorconfigurationtopologyPortMirrorConfigurationTopology portMirrorConfigurationAssignments(GenericResourceApiPortmirrorconfigurationassignmentsPortMirrorConfigurationAssignments portMirrorConfigurationAssignments) { + this.portMirrorConfigurationAssignments = portMirrorConfigurationAssignments; + return this; + } + + /** + * Get portMirrorConfigurationAssignments + * @return portMirrorConfigurationAssignments + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiPortmirrorconfigurationassignmentsPortMirrorConfigurationAssignments getPortMirrorConfigurationAssignments() { + return portMirrorConfigurationAssignments; + } + + public void setPortMirrorConfigurationAssignments(GenericResourceApiPortmirrorconfigurationassignmentsPortMirrorConfigurationAssignments portMirrorConfigurationAssignments) { + this.portMirrorConfigurationAssignments = portMirrorConfigurationAssignments; + } + + public GenericResourceApiPortmirrorconfigurationtopologyPortMirrorConfigurationTopology portMirrorConfigurationParameters(GenericResourceApiParam portMirrorConfigurationParameters) { + this.portMirrorConfigurationParameters = portMirrorConfigurationParameters; + return this; + } + + /** + * Get portMirrorConfigurationParameters + * @return portMirrorConfigurationParameters + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiParam getPortMirrorConfigurationParameters() { + return portMirrorConfigurationParameters; + } + + public void setPortMirrorConfigurationParameters(GenericResourceApiParam portMirrorConfigurationParameters) { + this.portMirrorConfigurationParameters = portMirrorConfigurationParameters; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiPortmirrorconfigurationtopologyPortMirrorConfigurationTopology genericResourceApiPortmirrorconfigurationtopologyPortMirrorConfigurationTopology = (GenericResourceApiPortmirrorconfigurationtopologyPortMirrorConfigurationTopology) o; + return Objects.equals(this.configurationIdentifiers, genericResourceApiPortmirrorconfigurationtopologyPortMirrorConfigurationTopology.configurationIdentifiers) && + Objects.equals(this.onapModelInformation, genericResourceApiPortmirrorconfigurationtopologyPortMirrorConfigurationTopology.onapModelInformation) && + Objects.equals(this.portMirrorConfigurationAssignments, genericResourceApiPortmirrorconfigurationtopologyPortMirrorConfigurationTopology.portMirrorConfigurationAssignments) && + Objects.equals(this.portMirrorConfigurationParameters, genericResourceApiPortmirrorconfigurationtopologyPortMirrorConfigurationTopology.portMirrorConfigurationParameters); + } + + @Override + public int hashCode() { + return Objects.hash(configurationIdentifiers, onapModelInformation, portMirrorConfigurationAssignments, portMirrorConfigurationParameters); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiPortmirrorconfigurationtopologyPortMirrorConfigurationTopology {\n"); + + sb.append(" configurationIdentifiers: ").append(toIndentedString(configurationIdentifiers)).append("\n"); + sb.append(" onapModelInformation: ").append(toIndentedString(onapModelInformation)).append("\n"); + sb.append(" portMirrorConfigurationAssignments: ").append(toIndentedString(portMirrorConfigurationAssignments)).append("\n"); + sb.append(" portMirrorConfigurationParameters: ").append(toIndentedString(portMirrorConfigurationParameters)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiPreloadModelInformation.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiPreloadModelInformation.java new file mode 100644 index 0000000..c9b443b --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiPreloadModelInformation.java @@ -0,0 +1,95 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiPreloadmodelinformationPreloadList; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiPreloadModelInformation + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-13T13:26:44.236-04:00") +@JsonRootName("preload-information") +public class GenericResourceApiPreloadModelInformation { + @JsonProperty("preload-list") + @Valid + private List<GenericResourceApiPreloadmodelinformationPreloadList> preloadList = null; + + public GenericResourceApiPreloadModelInformation preloadList(List<GenericResourceApiPreloadmodelinformationPreloadList> preloadList) { + this.preloadList = preloadList; + return this; + } + + public GenericResourceApiPreloadModelInformation addPreloadListItem(GenericResourceApiPreloadmodelinformationPreloadList preloadListItem) { + if (this.preloadList == null) { + this.preloadList = new ArrayList<>(); + } + this.preloadList.add(preloadListItem); + return this; + } + + /** + * Get preloadList + * @return preloadList + **/ + @ApiModelProperty(value = "") + + @Valid + + public List<GenericResourceApiPreloadmodelinformationPreloadList> getPreloadList() { + return preloadList; + } + + public void setPreloadList(List<GenericResourceApiPreloadmodelinformationPreloadList> preloadList) { + this.preloadList = preloadList; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiPreloadModelInformation genericResourceApiPreloadModelInformation = (GenericResourceApiPreloadModelInformation) o; + return Objects.equals(this.preloadList, genericResourceApiPreloadModelInformation.preloadList); + } + + @Override + public int hashCode() { + return Objects.hash(preloadList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiPreloadModelInformation {\n"); + + sb.append(" preloadList: ").append(toIndentedString(preloadList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiPreloaddataPreloadData.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiPreloaddataPreloadData.java new file mode 100644 index 0000000..a6a4c9d --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiPreloaddataPreloadData.java @@ -0,0 +1,141 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiPreloadNetworkTopologyInformation; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiPreloadOperStatus; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiPreloadVfModuleTopologyInformation; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiPreloadoperstatusPreloadOperStatus; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiPreloadvfmoduletopologyinformationPreloadVfModuleTopologyInformation; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiPreloaddataPreloadData + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-13T13:26:44.236-04:00") +@JsonRootName("preload-data") +public class GenericResourceApiPreloaddataPreloadData { + @JsonProperty("preload-network-topology-information") + private GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation preloadNetworkTopologyInformation = null; + + @JsonProperty("preload-oper-status") + private GenericResourceApiPreloadoperstatusPreloadOperStatus preloadOperStatus = null; + + @JsonProperty("preload-vf-module-topology-information") + private GenericResourceApiPreloadvfmoduletopologyinformationPreloadVfModuleTopologyInformation preloadVfModuleTopologyInformation = null; + + public GenericResourceApiPreloaddataPreloadData preloadNetworkTopologyInformation(GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation preloadNetworkTopologyInformation) { + this.preloadNetworkTopologyInformation = preloadNetworkTopologyInformation; + return this; + } + + /** + * Get preloadNetworkTopologyInformation + * @return preloadNetworkTopologyInformation + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation getPreloadNetworkTopologyInformation() { + return preloadNetworkTopologyInformation; + } + + public void setPreloadNetworkTopologyInformation(GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation preloadNetworkTopologyInformation) { + this.preloadNetworkTopologyInformation = preloadNetworkTopologyInformation; + } + + public GenericResourceApiPreloaddataPreloadData preloadOperStatus(GenericResourceApiPreloadoperstatusPreloadOperStatus preloadOperStatus) { + this.preloadOperStatus = preloadOperStatus; + return this; + } + + /** + * Get preloadOperStatus + * @return preloadOperStatus + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiPreloadoperstatusPreloadOperStatus getPreloadOperStatus() { + return preloadOperStatus; + } + + public void setPreloadOperStatus(GenericResourceApiPreloadoperstatusPreloadOperStatus preloadOperStatus) { + this.preloadOperStatus = preloadOperStatus; + } + + public GenericResourceApiPreloaddataPreloadData preloadVfModuleTopologyInformation(GenericResourceApiPreloadvfmoduletopologyinformationPreloadVfModuleTopologyInformation preloadVfModuleTopologyInformation) { + this.preloadVfModuleTopologyInformation = preloadVfModuleTopologyInformation; + return this; + } + + /** + * Get preloadVfModuleTopologyInformation + * @return preloadVfModuleTopologyInformation + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiPreloadvfmoduletopologyinformationPreloadVfModuleTopologyInformation getPreloadVfModuleTopologyInformation() { + return preloadVfModuleTopologyInformation; + } + + public void setPreloadVfModuleTopologyInformation(GenericResourceApiPreloadvfmoduletopologyinformationPreloadVfModuleTopologyInformation preloadVfModuleTopologyInformation) { + this.preloadVfModuleTopologyInformation = preloadVfModuleTopologyInformation; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiPreloaddataPreloadData genericResourceApiPreloaddataPreloadData = (GenericResourceApiPreloaddataPreloadData) o; + return Objects.equals(this.preloadNetworkTopologyInformation, genericResourceApiPreloaddataPreloadData.preloadNetworkTopologyInformation) && + Objects.equals(this.preloadOperStatus, genericResourceApiPreloaddataPreloadData.preloadOperStatus) && + Objects.equals(this.preloadVfModuleTopologyInformation, genericResourceApiPreloaddataPreloadData.preloadVfModuleTopologyInformation); + } + + @Override + public int hashCode() { + return Objects.hash(preloadNetworkTopologyInformation, preloadOperStatus, preloadVfModuleTopologyInformation); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiPreloaddataPreloadData {\n"); + + sb.append(" preloadNetworkTopologyInformation: ").append(toIndentedString(preloadNetworkTopologyInformation)).append("\n"); + sb.append(" preloadOperStatus: ").append(toIndentedString(preloadOperStatus)).append("\n"); + sb.append(" preloadVfModuleTopologyInformation: ").append(toIndentedString(preloadVfModuleTopologyInformation)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiPreloadmodelinformationPreloadList.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiPreloadmodelinformationPreloadList.java new file mode 100644 index 0000000..7774395 --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiPreloadmodelinformationPreloadList.java @@ -0,0 +1,135 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiPreloadData; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiPreloaddataPreloadData; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiPreloadmodelinformationPreloadList + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-13T13:26:44.236-04:00") +@JsonRootName("preload-list") +public class GenericResourceApiPreloadmodelinformationPreloadList { + @JsonProperty("preload-data") + private GenericResourceApiPreloaddataPreloadData preloadData = null; + + @JsonProperty("preload-type") + private String preloadType = null; + + @JsonProperty("preload-id") + private String preloadId = null; + + public GenericResourceApiPreloadmodelinformationPreloadList preloadData(GenericResourceApiPreloaddataPreloadData preloadData) { + this.preloadData = preloadData; + return this; + } + + /** + * Get preloadData + * @return preloadData + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiPreloaddataPreloadData getPreloadData() { + return preloadData; + } + + public void setPreloadData(GenericResourceApiPreloaddataPreloadData preloadData) { + this.preloadData = preloadData; + } + + public GenericResourceApiPreloadmodelinformationPreloadList preloadType(String preloadType) { + this.preloadType = preloadType; + return this; + } + + /** + * network or vf-module + * @return preloadType + **/ + @ApiModelProperty(value = "network or vf-module") + + + public String getPreloadType() { + return preloadType; + } + + public void setPreloadType(String preloadType) { + this.preloadType = preloadType; + } + + public GenericResourceApiPreloadmodelinformationPreloadList preloadId(String preloadId) { + this.preloadId = preloadId; + return this; + } + + /** + * vf-module-name or network name + * @return preloadId + **/ + @ApiModelProperty(value = "vf-module-name or network name") + + + public String getPreloadId() { + return preloadId; + } + + public void setPreloadId(String preloadId) { + this.preloadId = preloadId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiPreloadmodelinformationPreloadList genericResourceApiPreloadmodelinformationPreloadList = (GenericResourceApiPreloadmodelinformationPreloadList) o; + return Objects.equals(this.preloadData, genericResourceApiPreloadmodelinformationPreloadList.preloadData) && + Objects.equals(this.preloadType, genericResourceApiPreloadmodelinformationPreloadList.preloadType) && + Objects.equals(this.preloadId, genericResourceApiPreloadmodelinformationPreloadList.preloadId); + } + + @Override + public int hashCode() { + return Objects.hash(preloadData, preloadType, preloadId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiPreloadmodelinformationPreloadList {\n"); + + sb.append(" preloadData: ").append(toIndentedString(preloadData)).append("\n"); + sb.append(" preloadType: ").append(toIndentedString(preloadType)).append("\n"); + sb.append(" preloadId: ").append(toIndentedString(preloadId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation.java new file mode 100644 index 0000000..de07732 --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation.java @@ -0,0 +1,373 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiHostRoutes; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiHostroutesHostRoutes; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiNetworkPolicy; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiNetworkTopologyIdentifierStructure; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiNetworkpolicyNetworkPolicy; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiProviderNetworkInformation; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiRouteTableReference; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiRoutetablereferenceRouteTableReference; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiSubnets; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiSubnetsSubnets; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVpnBindings; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVpnbindingsVpnBindings; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-13T13:26:44.236-04:00") +@JsonRootName("preload-network-topology-information") +public class GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation { + @JsonProperty("host-routes") + @Valid + private List<GenericResourceApiHostroutesHostRoutes> hostRoutes = null; + + @JsonProperty("network-policy") + @Valid + private List<GenericResourceApiNetworkpolicyNetworkPolicy> networkPolicy = null; + + @JsonProperty("network-topology-identifier-structure") + private GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure networkTopologyIdentifierStructure = null; + + @JsonProperty("physical-network-name") + private String physicalNetworkName = null; + + @JsonProperty("is-external-network") + private Boolean isExternalNetwork = null; + + @JsonProperty("is-shared-network") + private Boolean isSharedNetwork = null; + + @JsonProperty("is-provider-network") + private Boolean isProviderNetwork = null; + + @JsonProperty("route-table-reference") + @Valid + private List<GenericResourceApiRoutetablereferenceRouteTableReference> routeTableReference = null; + + @JsonProperty("subnets") + @Valid + private List<GenericResourceApiSubnetsSubnets> subnets = null; + + @JsonProperty("vpn-bindings") + @Valid + private List<GenericResourceApiVpnbindingsVpnBindings> vpnBindings = null; + + public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation hostRoutes(List<GenericResourceApiHostroutesHostRoutes> hostRoutes) { + this.hostRoutes = hostRoutes; + return this; + } + + public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation addHostRoutesItem(GenericResourceApiHostroutesHostRoutes hostRoutesItem) { + if (this.hostRoutes == null) { + this.hostRoutes = new ArrayList<>(); + } + this.hostRoutes.add(hostRoutesItem); + return this; + } + + /** + * Get hostRoutes + * @return hostRoutes + **/ + @ApiModelProperty(value = "") + + @Valid + + public List<GenericResourceApiHostroutesHostRoutes> getHostRoutes() { + return hostRoutes; + } + + public void setHostRoutes(List<GenericResourceApiHostroutesHostRoutes> hostRoutes) { + this.hostRoutes = hostRoutes; + } + + public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation networkPolicy(List<GenericResourceApiNetworkpolicyNetworkPolicy> networkPolicy) { + this.networkPolicy = networkPolicy; + return this; + } + + public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation addNetworkPolicyItem(GenericResourceApiNetworkpolicyNetworkPolicy networkPolicyItem) { + if (this.networkPolicy == null) { + this.networkPolicy = new ArrayList<>(); + } + this.networkPolicy.add(networkPolicyItem); + return this; + } + + /** + * Get networkPolicy + * @return networkPolicy + **/ + @ApiModelProperty(value = "") + + @Valid + + public List<GenericResourceApiNetworkpolicyNetworkPolicy> getNetworkPolicy() { + return networkPolicy; + } + + public void setNetworkPolicy(List<GenericResourceApiNetworkpolicyNetworkPolicy> networkPolicy) { + this.networkPolicy = networkPolicy; + } + + public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation networkTopologyIdentifierStructure(GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure networkTopologyIdentifierStructure) { + this.networkTopologyIdentifierStructure = networkTopologyIdentifierStructure; + return this; + } + + /** + * Get networkTopologyIdentifierStructure + * @return networkTopologyIdentifierStructure + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure getNetworkTopologyIdentifierStructure() { + return networkTopologyIdentifierStructure; + } + + public void setNetworkTopologyIdentifierStructure(GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure networkTopologyIdentifierStructure) { + this.networkTopologyIdentifierStructure = networkTopologyIdentifierStructure; + } + + public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation physicalNetworkName(String physicalNetworkName) { + this.physicalNetworkName = physicalNetworkName; + return this; + } + + /** + * Get physicalNetworkName + * @return physicalNetworkName + **/ + @ApiModelProperty(value = "") + + + public String getPhysicalNetworkName() { + return physicalNetworkName; + } + + public void setPhysicalNetworkName(String physicalNetworkName) { + this.physicalNetworkName = physicalNetworkName; + } + + public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation isExternalNetwork(Boolean isExternalNetwork) { + this.isExternalNetwork = isExternalNetwork; + return this; + } + + /** + * Get isExternalNetwork + * @return isExternalNetwork + **/ + @ApiModelProperty(value = "") + + + public Boolean isIsExternalNetwork() { + return isExternalNetwork; + } + + public void setIsExternalNetwork(Boolean isExternalNetwork) { + this.isExternalNetwork = isExternalNetwork; + } + + public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation isSharedNetwork(Boolean isSharedNetwork) { + this.isSharedNetwork = isSharedNetwork; + return this; + } + + /** + * Get isSharedNetwork + * @return isSharedNetwork + **/ + @ApiModelProperty(value = "") + + + public Boolean isIsSharedNetwork() { + return isSharedNetwork; + } + + public void setIsSharedNetwork(Boolean isSharedNetwork) { + this.isSharedNetwork = isSharedNetwork; + } + + public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation isProviderNetwork(Boolean isProviderNetwork) { + this.isProviderNetwork = isProviderNetwork; + return this; + } + + /** + * Get isProviderNetwork + * @return isProviderNetwork + **/ + @ApiModelProperty(value = "") + + + public Boolean isIsProviderNetwork() { + return isProviderNetwork; + } + + public void setIsProviderNetwork(Boolean isProviderNetwork) { + this.isProviderNetwork = isProviderNetwork; + } + + public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation routeTableReference(List<GenericResourceApiRoutetablereferenceRouteTableReference> routeTableReference) { + this.routeTableReference = routeTableReference; + return this; + } + + public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation addRouteTableReferenceItem(GenericResourceApiRoutetablereferenceRouteTableReference routeTableReferenceItem) { + if (this.routeTableReference == null) { + this.routeTableReference = new ArrayList<>(); + } + this.routeTableReference.add(routeTableReferenceItem); + return this; + } + + /** + * Get routeTableReference + * @return routeTableReference + **/ + @ApiModelProperty(value = "") + + @Valid + + public List<GenericResourceApiRoutetablereferenceRouteTableReference> getRouteTableReference() { + return routeTableReference; + } + + public void setRouteTableReference(List<GenericResourceApiRoutetablereferenceRouteTableReference> routeTableReference) { + this.routeTableReference = routeTableReference; + } + + public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation subnets(List<GenericResourceApiSubnetsSubnets> subnets) { + this.subnets = subnets; + return this; + } + + public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation addSubnetsItem(GenericResourceApiSubnetsSubnets subnetsItem) { + if (this.subnets == null) { + this.subnets = new ArrayList<>(); + } + this.subnets.add(subnetsItem); + return this; + } + + /** + * Get subnets + * @return subnets + **/ + @ApiModelProperty(value = "") + + @Valid + + public List<GenericResourceApiSubnetsSubnets> getSubnets() { + return subnets; + } + + public void setSubnets(List<GenericResourceApiSubnetsSubnets> subnets) { + this.subnets = subnets; + } + + public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation vpnBindings(List<GenericResourceApiVpnbindingsVpnBindings> vpnBindings) { + this.vpnBindings = vpnBindings; + return this; + } + + public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation addVpnBindingsItem(GenericResourceApiVpnbindingsVpnBindings vpnBindingsItem) { + if (this.vpnBindings == null) { + this.vpnBindings = new ArrayList<>(); + } + this.vpnBindings.add(vpnBindingsItem); + return this; + } + + /** + * Get vpnBindings + * @return vpnBindings + **/ + @ApiModelProperty(value = "") + + @Valid + + public List<GenericResourceApiVpnbindingsVpnBindings> getVpnBindings() { + return vpnBindings; + } + + public void setVpnBindings(List<GenericResourceApiVpnbindingsVpnBindings> vpnBindings) { + this.vpnBindings = vpnBindings; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation genericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation = (GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation) o; + return Objects.equals(this.hostRoutes, genericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation.hostRoutes) && + Objects.equals(this.networkPolicy, genericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation.networkPolicy) && + Objects.equals(this.networkTopologyIdentifierStructure, genericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation.networkTopologyIdentifierStructure) && + Objects.equals(this.physicalNetworkName, genericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation.physicalNetworkName) && + Objects.equals(this.isExternalNetwork, genericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation.isExternalNetwork) && + Objects.equals(this.isSharedNetwork, genericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation.isSharedNetwork) && + Objects.equals(this.isProviderNetwork, genericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation.isProviderNetwork) && + Objects.equals(this.routeTableReference, genericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation.routeTableReference) && + Objects.equals(this.subnets, genericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation.subnets) && + Objects.equals(this.vpnBindings, genericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation.vpnBindings); + } + + @Override + public int hashCode() { + return Objects.hash(hostRoutes, networkPolicy, networkTopologyIdentifierStructure, physicalNetworkName, isExternalNetwork, isSharedNetwork, isProviderNetwork, routeTableReference, subnets, vpnBindings); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation {\n"); + + sb.append(" hostRoutes: ").append(toIndentedString(hostRoutes)).append("\n"); + sb.append(" networkPolicy: ").append(toIndentedString(networkPolicy)).append("\n"); + sb.append(" networkTopologyIdentifierStructure: ").append(toIndentedString(networkTopologyIdentifierStructure)).append("\n"); + sb.append(" physicalNetworkName: ").append(toIndentedString(physicalNetworkName)).append("\n"); + sb.append(" isExternalNetwork: ").append(toIndentedString(isExternalNetwork)).append("\n"); + sb.append(" isSharedNetwork: ").append(toIndentedString(isSharedNetwork)).append("\n"); + sb.append(" isProviderNetwork: ").append(toIndentedString(isProviderNetwork)).append("\n"); + sb.append(" routeTableReference: ").append(toIndentedString(routeTableReference)).append("\n"); + sb.append(" subnets: ").append(toIndentedString(subnets)).append("\n"); + sb.append(" vpnBindings: ").append(toIndentedString(vpnBindings)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServiceModelInfrastructure.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServiceModelInfrastructure.java new file mode 100644 index 0000000..2f3250e --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServiceModelInfrastructure.java @@ -0,0 +1,95 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServicemodelinfrastructureService; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiServiceModelInfrastructure + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-12T18:08:46.019-04:00") +@JsonRootName("services") +public class GenericResourceApiServiceModelInfrastructure { + @JsonProperty("service") + @Valid + private List<GenericResourceApiServicemodelinfrastructureService> service = null; + + public GenericResourceApiServiceModelInfrastructure service(List<GenericResourceApiServicemodelinfrastructureService> service) { + this.service = service; + return this; + } + + public GenericResourceApiServiceModelInfrastructure addServiceItem(GenericResourceApiServicemodelinfrastructureService serviceItem) { + if (this.service == null) { + this.service = new ArrayList<>(); + } + this.service.add(serviceItem); + return this; + } + + /** + * Get service + * @return service + **/ + @ApiModelProperty(value = "") + + @Valid + + public List<GenericResourceApiServicemodelinfrastructureService> getService() { + return service; + } + + public void setService(List<GenericResourceApiServicemodelinfrastructureService> service) { + this.service = service; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiServiceModelInfrastructure genericResourceApiServiceModelInfrastructure = (GenericResourceApiServiceModelInfrastructure) o; + return Objects.equals(this.service, genericResourceApiServiceModelInfrastructure.service); + } + + @Override + public int hashCode() { + return Objects.hash(service); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiServiceModelInfrastructure {\n"); + + sb.append(" service: ").append(toIndentedString(service)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicedataServiceData.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicedataServiceData.java new file mode 100644 index 0000000..b70d6df --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicedataServiceData.java @@ -0,0 +1,465 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiNetworkInstanceGroup; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiOperStatusData; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiRequestinformationRequestInformation; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiSdncrequestheaderSdncRequestHeader; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServiceLevelOperStatus; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServiceOperationInformation; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServiceTopology; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServicedataServicedataConsumedAllottedResources; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServicedataServicedataForwardingPaths; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServicedataServicedataNetworks; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServicedataServicedataPnfs; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServicedataServicedataProvidedAllottedResources; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServicedataServicedataProvidedConfigurations; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServicedataServicedataVnfs; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServiceinformationServiceInformation; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServicerequestinputServiceRequestInput; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServicetopologyServiceTopology; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVnfcInstanceGroup; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiServicedataServiceData + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-13T13:26:44.236-04:00") +@JsonRootName("service-data") +public class GenericResourceApiServicedataServiceData { + @JsonProperty("service-level-oper-status") + private GenericResourceApiOperStatusData serviceLevelOperStatus = null; + + @JsonProperty("request-information") + private GenericResourceApiRequestinformationRequestInformation requestInformation = null; + + @JsonProperty("sdnc-request-header") + private GenericResourceApiSdncrequestheaderSdncRequestHeader sdncRequestHeader = null; + + @JsonProperty("service-information") + private GenericResourceApiServiceinformationServiceInformation serviceInformation = null; + + @JsonProperty("service-request-input") + private GenericResourceApiServicerequestinputServiceRequestInput serviceRequestInput = null; + + @JsonProperty("service-topology") + private GenericResourceApiServicetopologyServiceTopology serviceTopology = null; + + @JsonProperty("vnfc-instance-groups") + private GenericResourceApiVnfcInstanceGroup vnfcInstanceGroups = null; + + @JsonProperty("provided-configurations") + private GenericResourceApiServicedataServicedataProvidedConfigurations providedConfigurations = null; + + @JsonProperty("provided-allotted-resources") + private GenericResourceApiServicedataServicedataProvidedAllottedResources providedAllottedResources = null; + + @JsonProperty("vnfs") + private GenericResourceApiServicedataServicedataVnfs vnfs = null; + + @JsonProperty("forwarding-paths") + private GenericResourceApiServicedataServicedataForwardingPaths forwardingPaths = null; + + @JsonProperty("network-instance-groups") + private GenericResourceApiNetworkInstanceGroup networkInstanceGroups = null; + + @JsonProperty("networks") + private GenericResourceApiServicedataServicedataNetworks networks = null; + + @JsonProperty("consumed-allotted-resources") + private GenericResourceApiServicedataServicedataConsumedAllottedResources consumedAllottedResources = null; + + @JsonProperty("pnfs") + private GenericResourceApiServicedataServicedataPnfs pnfs = null; + + public GenericResourceApiServicedataServiceData serviceLevelOperStatus(GenericResourceApiOperStatusData serviceLevelOperStatus) { + this.serviceLevelOperStatus = serviceLevelOperStatus; + return this; + } + + /** + * Get serviceLevelOperStatus + * @return serviceLevelOperStatus + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiOperStatusData getServiceLevelOperStatus() { + return serviceLevelOperStatus; + } + + public void setServiceLevelOperStatus(GenericResourceApiOperStatusData serviceLevelOperStatus) { + this.serviceLevelOperStatus = serviceLevelOperStatus; + } + + public GenericResourceApiServicedataServiceData requestInformation(GenericResourceApiRequestinformationRequestInformation requestInformation) { + this.requestInformation = requestInformation; + return this; + } + + /** + * Get requestInformation + * @return requestInformation + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiRequestinformationRequestInformation getRequestInformation() { + return requestInformation; + } + + public void setRequestInformation(GenericResourceApiRequestinformationRequestInformation requestInformation) { + this.requestInformation = requestInformation; + } + + public GenericResourceApiServicedataServiceData sdncRequestHeader(GenericResourceApiSdncrequestheaderSdncRequestHeader sdncRequestHeader) { + this.sdncRequestHeader = sdncRequestHeader; + return this; + } + + /** + * Get sdncRequestHeader + * @return sdncRequestHeader + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiSdncrequestheaderSdncRequestHeader getSdncRequestHeader() { + return sdncRequestHeader; + } + + public void setSdncRequestHeader(GenericResourceApiSdncrequestheaderSdncRequestHeader sdncRequestHeader) { + this.sdncRequestHeader = sdncRequestHeader; + } + + public GenericResourceApiServicedataServiceData serviceInformation(GenericResourceApiServiceinformationServiceInformation serviceInformation) { + this.serviceInformation = serviceInformation; + return this; + } + + /** + * Get serviceInformation + * @return serviceInformation + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiServiceinformationServiceInformation getServiceInformation() { + return serviceInformation; + } + + public void setServiceInformation(GenericResourceApiServiceinformationServiceInformation serviceInformation) { + this.serviceInformation = serviceInformation; + } + + public GenericResourceApiServicedataServiceData serviceRequestInput(GenericResourceApiServicerequestinputServiceRequestInput serviceRequestInput) { + this.serviceRequestInput = serviceRequestInput; + return this; + } + + /** + * Get serviceRequestInput + * @return serviceRequestInput + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiServicerequestinputServiceRequestInput getServiceRequestInput() { + return serviceRequestInput; + } + + public void setServiceRequestInput(GenericResourceApiServicerequestinputServiceRequestInput serviceRequestInput) { + this.serviceRequestInput = serviceRequestInput; + } + + public GenericResourceApiServicedataServiceData serviceTopology(GenericResourceApiServicetopologyServiceTopology serviceTopology) { + this.serviceTopology = serviceTopology; + return this; + } + + /** + * Get serviceTopology + * @return serviceTopology + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiServicetopologyServiceTopology getServiceTopology() { + return serviceTopology; + } + + public void setServiceTopology(GenericResourceApiServicetopologyServiceTopology serviceTopology) { + this.serviceTopology = serviceTopology; + } + + public GenericResourceApiServicedataServiceData vnfcInstanceGroups(GenericResourceApiVnfcInstanceGroup vnfcInstanceGroups) { + this.vnfcInstanceGroups = vnfcInstanceGroups; + return this; + } + + /** + * Get vnfcInstanceGroups + * @return vnfcInstanceGroups + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiVnfcInstanceGroup getVnfcInstanceGroups() { + return vnfcInstanceGroups; + } + + public void setVnfcInstanceGroups(GenericResourceApiVnfcInstanceGroup vnfcInstanceGroups) { + this.vnfcInstanceGroups = vnfcInstanceGroups; + } + + public GenericResourceApiServicedataServiceData providedConfigurations(GenericResourceApiServicedataServicedataProvidedConfigurations providedConfigurations) { + this.providedConfigurations = providedConfigurations; + return this; + } + + /** + * Get providedConfigurations + * @return providedConfigurations + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiServicedataServicedataProvidedConfigurations getProvidedConfigurations() { + return providedConfigurations; + } + + public void setProvidedConfigurations(GenericResourceApiServicedataServicedataProvidedConfigurations providedConfigurations) { + this.providedConfigurations = providedConfigurations; + } + + public GenericResourceApiServicedataServiceData providedAllottedResources(GenericResourceApiServicedataServicedataProvidedAllottedResources providedAllottedResources) { + this.providedAllottedResources = providedAllottedResources; + return this; + } + + /** + * Get providedAllottedResources + * @return providedAllottedResources + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiServicedataServicedataProvidedAllottedResources getProvidedAllottedResources() { + return providedAllottedResources; + } + + public void setProvidedAllottedResources(GenericResourceApiServicedataServicedataProvidedAllottedResources providedAllottedResources) { + this.providedAllottedResources = providedAllottedResources; + } + + public GenericResourceApiServicedataServiceData vnfs(GenericResourceApiServicedataServicedataVnfs vnfs) { + this.vnfs = vnfs; + return this; + } + + /** + * Get vnfs + * @return vnfs + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiServicedataServicedataVnfs getVnfs() { + return vnfs; + } + + public void setVnfs(GenericResourceApiServicedataServicedataVnfs vnfs) { + this.vnfs = vnfs; + } + + public GenericResourceApiServicedataServiceData forwardingPaths(GenericResourceApiServicedataServicedataForwardingPaths forwardingPaths) { + this.forwardingPaths = forwardingPaths; + return this; + } + + /** + * Get forwardingPaths + * @return forwardingPaths + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiServicedataServicedataForwardingPaths getForwardingPaths() { + return forwardingPaths; + } + + public void setForwardingPaths(GenericResourceApiServicedataServicedataForwardingPaths forwardingPaths) { + this.forwardingPaths = forwardingPaths; + } + + public GenericResourceApiServicedataServiceData networkInstanceGroups(GenericResourceApiNetworkInstanceGroup networkInstanceGroups) { + this.networkInstanceGroups = networkInstanceGroups; + return this; + } + + /** + * Get networkInstanceGroups + * @return networkInstanceGroups + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiNetworkInstanceGroup getNetworkInstanceGroups() { + return networkInstanceGroups; + } + + public void setNetworkInstanceGroups(GenericResourceApiNetworkInstanceGroup networkInstanceGroups) { + this.networkInstanceGroups = networkInstanceGroups; + } + + public GenericResourceApiServicedataServiceData networks(GenericResourceApiServicedataServicedataNetworks networks) { + this.networks = networks; + return this; + } + + /** + * Get networks + * @return networks + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiServicedataServicedataNetworks getNetworks() { + return networks; + } + + public void setNetworks(GenericResourceApiServicedataServicedataNetworks networks) { + this.networks = networks; + } + + public GenericResourceApiServicedataServiceData consumedAllottedResources(GenericResourceApiServicedataServicedataConsumedAllottedResources consumedAllottedResources) { + this.consumedAllottedResources = consumedAllottedResources; + return this; + } + + /** + * Get consumedAllottedResources + * @return consumedAllottedResources + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiServicedataServicedataConsumedAllottedResources getConsumedAllottedResources() { + return consumedAllottedResources; + } + + public void setConsumedAllottedResources(GenericResourceApiServicedataServicedataConsumedAllottedResources consumedAllottedResources) { + this.consumedAllottedResources = consumedAllottedResources; + } + + public GenericResourceApiServicedataServiceData pnfs(GenericResourceApiServicedataServicedataPnfs pnfs) { + this.pnfs = pnfs; + return this; + } + + /** + * Get pnfs + * @return pnfs + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiServicedataServicedataPnfs getPnfs() { + return pnfs; + } + + public void setPnfs(GenericResourceApiServicedataServicedataPnfs pnfs) { + this.pnfs = pnfs; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiServicedataServiceData genericResourceApiServicedataServiceData = (GenericResourceApiServicedataServiceData) o; + return Objects.equals(this.serviceLevelOperStatus, genericResourceApiServicedataServiceData.serviceLevelOperStatus) && + Objects.equals(this.requestInformation, genericResourceApiServicedataServiceData.requestInformation) && + Objects.equals(this.sdncRequestHeader, genericResourceApiServicedataServiceData.sdncRequestHeader) && + Objects.equals(this.serviceInformation, genericResourceApiServicedataServiceData.serviceInformation) && + Objects.equals(this.serviceRequestInput, genericResourceApiServicedataServiceData.serviceRequestInput) && + Objects.equals(this.serviceTopology, genericResourceApiServicedataServiceData.serviceTopology) && + Objects.equals(this.vnfcInstanceGroups, genericResourceApiServicedataServiceData.vnfcInstanceGroups) && + Objects.equals(this.providedConfigurations, genericResourceApiServicedataServiceData.providedConfigurations) && + Objects.equals(this.providedAllottedResources, genericResourceApiServicedataServiceData.providedAllottedResources) && + Objects.equals(this.vnfs, genericResourceApiServicedataServiceData.vnfs) && + Objects.equals(this.forwardingPaths, genericResourceApiServicedataServiceData.forwardingPaths) && + Objects.equals(this.networkInstanceGroups, genericResourceApiServicedataServiceData.networkInstanceGroups) && + Objects.equals(this.networks, genericResourceApiServicedataServiceData.networks) && + Objects.equals(this.consumedAllottedResources, genericResourceApiServicedataServiceData.consumedAllottedResources) && + Objects.equals(this.pnfs, genericResourceApiServicedataServiceData.pnfs); + } + + @Override + public int hashCode() { + return Objects.hash(serviceLevelOperStatus, requestInformation, sdncRequestHeader, serviceInformation, serviceRequestInput, serviceTopology, vnfcInstanceGroups, providedConfigurations, providedAllottedResources, vnfs, forwardingPaths, networkInstanceGroups, networks, consumedAllottedResources, pnfs); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiServicedataServiceData {\n"); + + sb.append(" serviceLevelOperStatus: ").append(toIndentedString(serviceLevelOperStatus)).append("\n"); + sb.append(" requestInformation: ").append(toIndentedString(requestInformation)).append("\n"); + sb.append(" sdncRequestHeader: ").append(toIndentedString(sdncRequestHeader)).append("\n"); + sb.append(" serviceInformation: ").append(toIndentedString(serviceInformation)).append("\n"); + sb.append(" serviceRequestInput: ").append(toIndentedString(serviceRequestInput)).append("\n"); + sb.append(" serviceTopology: ").append(toIndentedString(serviceTopology)).append("\n"); + sb.append(" vnfcInstanceGroups: ").append(toIndentedString(vnfcInstanceGroups)).append("\n"); + sb.append(" providedConfigurations: ").append(toIndentedString(providedConfigurations)).append("\n"); + sb.append(" providedAllottedResources: ").append(toIndentedString(providedAllottedResources)).append("\n"); + sb.append(" vnfs: ").append(toIndentedString(vnfs)).append("\n"); + sb.append(" forwardingPaths: ").append(toIndentedString(forwardingPaths)).append("\n"); + sb.append(" networkInstanceGroups: ").append(toIndentedString(networkInstanceGroups)).append("\n"); + sb.append(" networks: ").append(toIndentedString(networks)).append("\n"); + sb.append(" consumedAllottedResources: ").append(toIndentedString(consumedAllottedResources)).append("\n"); + sb.append(" pnfs: ").append(toIndentedString(pnfs)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicedataServicedataNetworks.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicedataServicedataNetworks.java new file mode 100644 index 0000000..1c85947 --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicedataServicedataNetworks.java @@ -0,0 +1,95 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServicedataServicedataNetworksNetwork; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiServicedataServicedataNetworks + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-23T12:02:01.518-04:00") +@JsonRootName("networks") +public class GenericResourceApiServicedataServicedataNetworks { + @JsonProperty("network") + @Valid + private List<GenericResourceApiServicedataServicedataNetworksNetwork> network = null; + + public GenericResourceApiServicedataServicedataNetworks network(List<GenericResourceApiServicedataServicedataNetworksNetwork> network) { + this.network = network; + return this; + } + + public GenericResourceApiServicedataServicedataNetworks addNetworkItem(GenericResourceApiServicedataServicedataNetworksNetwork networkItem) { + if (this.network == null) { + this.network = new ArrayList<>(); + } + this.network.add(networkItem); + return this; + } + + /** + * Get network + * @return network + **/ + @ApiModelProperty(value = "") + + @Valid + + public List<GenericResourceApiServicedataServicedataNetworksNetwork> getNetwork() { + return network; + } + + public void setNetwork(List<GenericResourceApiServicedataServicedataNetworksNetwork> network) { + this.network = network; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiServicedataServicedataNetworks genericResourceApiServicedataServicedataNetworks = (GenericResourceApiServicedataServicedataNetworks) o; + return Objects.equals(this.network, genericResourceApiServicedataServicedataNetworks.network); + } + + @Override + public int hashCode() { + return Objects.hash(network); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiServicedataServicedataNetworks {\n"); + + sb.append(" network: ").append(toIndentedString(network)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicedataServicedataNetworksNetwork.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicedataServicedataNetworksNetwork.java new file mode 100644 index 0000000..2d8edfe --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicedataServicedataNetworksNetwork.java @@ -0,0 +1,109 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServicedataServicedataNetworksNetworkNetworkData; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiServicedataServicedataNetworksNetwork + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-23T12:02:01.518-04:00") +@JsonRootName("network") +public class GenericResourceApiServicedataServicedataNetworksNetwork { + @JsonProperty("network-id") + private String networkId = null; + + @JsonProperty("network-data") + private GenericResourceApiServicedataServicedataNetworksNetworkNetworkData networkData = null; + + public GenericResourceApiServicedataServicedataNetworksNetwork networkId(String networkId) { + this.networkId = networkId; + return this; + } + + /** + * Get networkId + * @return networkId + **/ + @ApiModelProperty(value = "") + + + public String getNetworkId() { + return networkId; + } + + public void setNetworkId(String networkId) { + this.networkId = networkId; + } + + public GenericResourceApiServicedataServicedataNetworksNetwork networkData(GenericResourceApiServicedataServicedataNetworksNetworkNetworkData networkData) { + this.networkData = networkData; + return this; + } + + /** + * Get networkData + * @return networkData + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiServicedataServicedataNetworksNetworkNetworkData getNetworkData() { + return networkData; + } + + public void setNetworkData(GenericResourceApiServicedataServicedataNetworksNetworkNetworkData networkData) { + this.networkData = networkData; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiServicedataServicedataNetworksNetwork genericResourceApiServicedataServicedataNetworksNetwork = (GenericResourceApiServicedataServicedataNetworksNetwork) o; + return Objects.equals(this.networkId, genericResourceApiServicedataServicedataNetworksNetwork.networkId) && + Objects.equals(this.networkData, genericResourceApiServicedataServicedataNetworksNetwork.networkData); + } + + @Override + public int hashCode() { + return Objects.hash(networkId, networkData); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiServicedataServicedataNetworksNetwork {\n"); + + sb.append(" networkId: ").append(toIndentedString(networkId)).append("\n"); + sb.append(" networkData: ").append(toIndentedString(networkData)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicedataServicedataNetworksNetworkNetworkdataNetworkProvidedAllottedResources.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicedataServicedataNetworksNetworkNetworkdataNetworkProvidedAllottedResources.java new file mode 100644 index 0000000..da767f1 --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicedataServicedataNetworksNetworkNetworkdataNetworkProvidedAllottedResources.java @@ -0,0 +1,93 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiServicedataServicedataNetworksNetworkNetworkdataNetworkProvidedAllottedResources + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-23T12:02:01.518-04:00") +@JsonRootName("network-provided-allotted-resources") +public class GenericResourceApiServicedataServicedataNetworksNetworkNetworkdataNetworkProvidedAllottedResources { + @JsonProperty("network-provided-ar-id") + @Valid + private List<String> networkProvidedArId = null; + + public GenericResourceApiServicedataServicedataNetworksNetworkNetworkdataNetworkProvidedAllottedResources networkProvidedArId(List<String> networkProvidedArId) { + this.networkProvidedArId = networkProvidedArId; + return this; + } + + public GenericResourceApiServicedataServicedataNetworksNetworkNetworkdataNetworkProvidedAllottedResources addNetworkProvidedArIdItem(String networkProvidedArIdItem) { + if (this.networkProvidedArId == null) { + this.networkProvidedArId = new ArrayList<>(); + } + this.networkProvidedArId.add(networkProvidedArIdItem); + return this; + } + + /** + * List of allotted resources using capacity from this network + * @return networkProvidedArId + **/ + @ApiModelProperty(value = "List of allotted resources using capacity from this network") + + + public List<String> getNetworkProvidedArId() { + return networkProvidedArId; + } + + public void setNetworkProvidedArId(List<String> networkProvidedArId) { + this.networkProvidedArId = networkProvidedArId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiServicedataServicedataNetworksNetworkNetworkdataNetworkProvidedAllottedResources genericResourceApiServicedataServicedataNetworksNetworkNetworkdataNetworkProvidedAllottedResources = (GenericResourceApiServicedataServicedataNetworksNetworkNetworkdataNetworkProvidedAllottedResources) o; + return Objects.equals(this.networkProvidedArId, genericResourceApiServicedataServicedataNetworksNetworkNetworkdataNetworkProvidedAllottedResources.networkProvidedArId); + } + + @Override + public int hashCode() { + return Objects.hash(networkProvidedArId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiServicedataServicedataNetworksNetworkNetworkdataNetworkProvidedAllottedResources {\n"); + + sb.append(" networkProvidedArId: ").append(toIndentedString(networkProvidedArId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicedataServicedataVnfsVnf.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicedataServicedataVnfsVnf.java new file mode 100644 index 0000000..c4823d9 --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicedataServicedataVnfsVnf.java @@ -0,0 +1,109 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServicedataServicedataVnfsVnfVnfData; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiServicedataServicedataVnfsVnf + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-13T13:26:44.236-04:00") +@JsonRootName("vnf") +public class GenericResourceApiServicedataServicedataVnfsVnf { + @JsonProperty("vnf-data") + private GenericResourceApiServicedataServicedataVnfsVnfVnfData vnfData = null; + + @JsonProperty("vnf-id") + private String vnfId = null; + + public GenericResourceApiServicedataServicedataVnfsVnf vnfData(GenericResourceApiServicedataServicedataVnfsVnfVnfData vnfData) { + this.vnfData = vnfData; + return this; + } + + /** + * Get vnfData + * @return vnfData + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiServicedataServicedataVnfsVnfVnfData getVnfData() { + return vnfData; + } + + public void setVnfData(GenericResourceApiServicedataServicedataVnfsVnfVnfData vnfData) { + this.vnfData = vnfData; + } + + public GenericResourceApiServicedataServicedataVnfsVnf vnfId(String vnfId) { + this.vnfId = vnfId; + return this; + } + + /** + * Get vnfId + * @return vnfId + **/ + @ApiModelProperty(value = "") + + + public String getVnfId() { + return vnfId; + } + + public void setVnfId(String vnfId) { + this.vnfId = vnfId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiServicedataServicedataVnfsVnf genericResourceApiServicedataServicedataVnfsVnf = (GenericResourceApiServicedataServicedataVnfsVnf) o; + return Objects.equals(this.vnfData, genericResourceApiServicedataServicedataVnfsVnf.vnfData) && + Objects.equals(this.vnfId, genericResourceApiServicedataServicedataVnfsVnf.vnfId); + } + + @Override + public int hashCode() { + return Objects.hash(vnfData, vnfId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiServicedataServicedataVnfsVnf {\n"); + + sb.append(" vnfData: ").append(toIndentedString(vnfData)).append("\n"); + sb.append(" vnfId: ").append(toIndentedString(vnfId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicedataServicedataVnfsVnfVnfData.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicedataServicedataVnfsVnfVnfData.java new file mode 100644 index 0000000..ebc5ad6 --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicedataServicedataVnfsVnfVnfData.java @@ -0,0 +1,384 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiLicenseinformationLicenseInformation; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiOperStatusData; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiRequestinformationRequestInformation; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiSdncrequestheaderSdncRequestHeader; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServicedataServicedataVnfsVnfVnfdataVfModules; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServicedataServicedataVnfsVnfVnfdataVnfProvidedAllottedResources; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServiceinformationServiceInformation; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVnfLevelOperStatus; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVnfNetworkCollection; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVnfOperationInformation; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVnfSubInterfaceGroup; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVnfTopology; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVnfinformationVnfInformation; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVnfrequestinputVnfRequestInput; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVnftopologyVnfTopology; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiServicedataServicedataVnfsVnfVnfData + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-12T18:08:46.019-04:00") +@JsonRootName("vnf-data") +public class GenericResourceApiServicedataServicedataVnfsVnfVnfData { + @JsonProperty("vnf-level-oper-status") + private GenericResourceApiOperStatusData vnfLevelOperStatus = null; + + @JsonProperty("license-information") + private GenericResourceApiLicenseinformationLicenseInformation licenseInformation = null; + + @JsonProperty("request-information") + private GenericResourceApiRequestinformationRequestInformation requestInformation = null; + + @JsonProperty("sdnc-request-header") + private GenericResourceApiSdncrequestheaderSdncRequestHeader sdncRequestHeader = null; + + @JsonProperty("service-information") + private GenericResourceApiServiceinformationServiceInformation serviceInformation = null; + + @JsonProperty("vnf-information") + private GenericResourceApiVnfinformationVnfInformation vnfInformation = null; + + @JsonProperty("vnf-request-input") + private GenericResourceApiVnfrequestinputVnfRequestInput vnfRequestInput = null; + + @JsonProperty("vnf-topology") + private GenericResourceApiVnftopologyVnfTopology vnfTopology = null; + + @JsonProperty("vnf-network-collections") + private GenericResourceApiVnfNetworkCollection vnfNetworkCollections = null; + + @JsonProperty("vnf-sub-interface-groups") + private GenericResourceApiVnfSubInterfaceGroup vnfSubInterfaceGroups = null; + + @JsonProperty("vf-modules") + private GenericResourceApiServicedataServicedataVnfsVnfVnfdataVfModules vfModules = null; + + @JsonProperty("vnf-provided-allotted-resources") + private GenericResourceApiServicedataServicedataVnfsVnfVnfdataVnfProvidedAllottedResources vnfProvidedAllottedResources = null; + + public GenericResourceApiServicedataServicedataVnfsVnfVnfData vnfLevelOperStatus(GenericResourceApiOperStatusData vnfLevelOperStatus) { + this.vnfLevelOperStatus = vnfLevelOperStatus; + return this; + } + + /** + * Get vnfLevelOperStatus + * @return vnfLevelOperStatus + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiOperStatusData getVnfLevelOperStatus() { + return vnfLevelOperStatus; + } + + public void setVnfLevelOperStatus(GenericResourceApiOperStatusData vnfLevelOperStatus) { + this.vnfLevelOperStatus = vnfLevelOperStatus; + } + + public GenericResourceApiServicedataServicedataVnfsVnfVnfData licenseInformation(GenericResourceApiLicenseinformationLicenseInformation licenseInformation) { + this.licenseInformation = licenseInformation; + return this; + } + + /** + * Get licenseInformation + * @return licenseInformation + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiLicenseinformationLicenseInformation getLicenseInformation() { + return licenseInformation; + } + + public void setLicenseInformation(GenericResourceApiLicenseinformationLicenseInformation licenseInformation) { + this.licenseInformation = licenseInformation; + } + + public GenericResourceApiServicedataServicedataVnfsVnfVnfData requestInformation(GenericResourceApiRequestinformationRequestInformation requestInformation) { + this.requestInformation = requestInformation; + return this; + } + + /** + * Get requestInformation + * @return requestInformation + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiRequestinformationRequestInformation getRequestInformation() { + return requestInformation; + } + + public void setRequestInformation(GenericResourceApiRequestinformationRequestInformation requestInformation) { + this.requestInformation = requestInformation; + } + + public GenericResourceApiServicedataServicedataVnfsVnfVnfData sdncRequestHeader(GenericResourceApiSdncrequestheaderSdncRequestHeader sdncRequestHeader) { + this.sdncRequestHeader = sdncRequestHeader; + return this; + } + + /** + * Get sdncRequestHeader + * @return sdncRequestHeader + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiSdncrequestheaderSdncRequestHeader getSdncRequestHeader() { + return sdncRequestHeader; + } + + public void setSdncRequestHeader(GenericResourceApiSdncrequestheaderSdncRequestHeader sdncRequestHeader) { + this.sdncRequestHeader = sdncRequestHeader; + } + + public GenericResourceApiServicedataServicedataVnfsVnfVnfData serviceInformation(GenericResourceApiServiceinformationServiceInformation serviceInformation) { + this.serviceInformation = serviceInformation; + return this; + } + + /** + * Get serviceInformation + * @return serviceInformation + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiServiceinformationServiceInformation getServiceInformation() { + return serviceInformation; + } + + public void setServiceInformation(GenericResourceApiServiceinformationServiceInformation serviceInformation) { + this.serviceInformation = serviceInformation; + } + + public GenericResourceApiServicedataServicedataVnfsVnfVnfData vnfInformation(GenericResourceApiVnfinformationVnfInformation vnfInformation) { + this.vnfInformation = vnfInformation; + return this; + } + + /** + * Get vnfInformation + * @return vnfInformation + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiVnfinformationVnfInformation getVnfInformation() { + return vnfInformation; + } + + public void setVnfInformation(GenericResourceApiVnfinformationVnfInformation vnfInformation) { + this.vnfInformation = vnfInformation; + } + + public GenericResourceApiServicedataServicedataVnfsVnfVnfData vnfRequestInput(GenericResourceApiVnfrequestinputVnfRequestInput vnfRequestInput) { + this.vnfRequestInput = vnfRequestInput; + return this; + } + + /** + * Get vnfRequestInput + * @return vnfRequestInput + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiVnfrequestinputVnfRequestInput getVnfRequestInput() { + return vnfRequestInput; + } + + public void setVnfRequestInput(GenericResourceApiVnfrequestinputVnfRequestInput vnfRequestInput) { + this.vnfRequestInput = vnfRequestInput; + } + + public GenericResourceApiServicedataServicedataVnfsVnfVnfData vnfTopology(GenericResourceApiVnftopologyVnfTopology vnfTopology) { + this.vnfTopology = vnfTopology; + return this; + } + + /** + * Get vnfTopology + * @return vnfTopology + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiVnftopologyVnfTopology getVnfTopology() { + return vnfTopology; + } + + public void setVnfTopology(GenericResourceApiVnftopologyVnfTopology vnfTopology) { + this.vnfTopology = vnfTopology; + } + + public GenericResourceApiServicedataServicedataVnfsVnfVnfData vnfNetworkCollections(GenericResourceApiVnfNetworkCollection vnfNetworkCollections) { + this.vnfNetworkCollections = vnfNetworkCollections; + return this; + } + + /** + * Get vnfNetworkCollections + * @return vnfNetworkCollections + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiVnfNetworkCollection getVnfNetworkCollections() { + return vnfNetworkCollections; + } + + public void setVnfNetworkCollections(GenericResourceApiVnfNetworkCollection vnfNetworkCollections) { + this.vnfNetworkCollections = vnfNetworkCollections; + } + + public GenericResourceApiServicedataServicedataVnfsVnfVnfData vnfSubInterfaceGroups(GenericResourceApiVnfSubInterfaceGroup vnfSubInterfaceGroups) { + this.vnfSubInterfaceGroups = vnfSubInterfaceGroups; + return this; + } + + /** + * Get vnfSubInterfaceGroups + * @return vnfSubInterfaceGroups + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiVnfSubInterfaceGroup getVnfSubInterfaceGroups() { + return vnfSubInterfaceGroups; + } + + public void setVnfSubInterfaceGroups(GenericResourceApiVnfSubInterfaceGroup vnfSubInterfaceGroups) { + this.vnfSubInterfaceGroups = vnfSubInterfaceGroups; + } + + public GenericResourceApiServicedataServicedataVnfsVnfVnfData vfModules(GenericResourceApiServicedataServicedataVnfsVnfVnfdataVfModules vfModules) { + this.vfModules = vfModules; + return this; + } + + /** + * Get vfModules + * @return vfModules + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiServicedataServicedataVnfsVnfVnfdataVfModules getVfModules() { + return vfModules; + } + + public void setVfModules(GenericResourceApiServicedataServicedataVnfsVnfVnfdataVfModules vfModules) { + this.vfModules = vfModules; + } + + public GenericResourceApiServicedataServicedataVnfsVnfVnfData vnfProvidedAllottedResources(GenericResourceApiServicedataServicedataVnfsVnfVnfdataVnfProvidedAllottedResources vnfProvidedAllottedResources) { + this.vnfProvidedAllottedResources = vnfProvidedAllottedResources; + return this; + } + + /** + * Get vnfProvidedAllottedResources + * @return vnfProvidedAllottedResources + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiServicedataServicedataVnfsVnfVnfdataVnfProvidedAllottedResources getVnfProvidedAllottedResources() { + return vnfProvidedAllottedResources; + } + + public void setVnfProvidedAllottedResources(GenericResourceApiServicedataServicedataVnfsVnfVnfdataVnfProvidedAllottedResources vnfProvidedAllottedResources) { + this.vnfProvidedAllottedResources = vnfProvidedAllottedResources; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiServicedataServicedataVnfsVnfVnfData genericResourceApiServicedataServicedataVnfsVnfVnfData = (GenericResourceApiServicedataServicedataVnfsVnfVnfData) o; + return Objects.equals(this.vnfLevelOperStatus, genericResourceApiServicedataServicedataVnfsVnfVnfData.vnfLevelOperStatus) && + Objects.equals(this.licenseInformation, genericResourceApiServicedataServicedataVnfsVnfVnfData.licenseInformation) && + Objects.equals(this.requestInformation, genericResourceApiServicedataServicedataVnfsVnfVnfData.requestInformation) && + Objects.equals(this.sdncRequestHeader, genericResourceApiServicedataServicedataVnfsVnfVnfData.sdncRequestHeader) && + Objects.equals(this.serviceInformation, genericResourceApiServicedataServicedataVnfsVnfVnfData.serviceInformation) && + Objects.equals(this.vnfInformation, genericResourceApiServicedataServicedataVnfsVnfVnfData.vnfInformation) && + Objects.equals(this.vnfRequestInput, genericResourceApiServicedataServicedataVnfsVnfVnfData.vnfRequestInput) && + Objects.equals(this.vnfTopology, genericResourceApiServicedataServicedataVnfsVnfVnfData.vnfTopology) && + Objects.equals(this.vnfNetworkCollections, genericResourceApiServicedataServicedataVnfsVnfVnfData.vnfNetworkCollections) && + Objects.equals(this.vnfSubInterfaceGroups, genericResourceApiServicedataServicedataVnfsVnfVnfData.vnfSubInterfaceGroups) && + Objects.equals(this.vfModules, genericResourceApiServicedataServicedataVnfsVnfVnfData.vfModules) && + Objects.equals(this.vnfProvidedAllottedResources, genericResourceApiServicedataServicedataVnfsVnfVnfData.vnfProvidedAllottedResources); + } + + @Override + public int hashCode() { + return Objects.hash(vnfLevelOperStatus, licenseInformation, requestInformation, sdncRequestHeader, serviceInformation, vnfInformation, vnfRequestInput, vnfTopology, vnfNetworkCollections, vnfSubInterfaceGroups, vfModules, vnfProvidedAllottedResources); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiServicedataServicedataVnfsVnfVnfData {\n"); + + sb.append(" vnfLevelOperStatus: ").append(toIndentedString(vnfLevelOperStatus)).append("\n"); + sb.append(" licenseInformation: ").append(toIndentedString(licenseInformation)).append("\n"); + sb.append(" requestInformation: ").append(toIndentedString(requestInformation)).append("\n"); + sb.append(" sdncRequestHeader: ").append(toIndentedString(sdncRequestHeader)).append("\n"); + sb.append(" serviceInformation: ").append(toIndentedString(serviceInformation)).append("\n"); + sb.append(" vnfInformation: ").append(toIndentedString(vnfInformation)).append("\n"); + sb.append(" vnfRequestInput: ").append(toIndentedString(vnfRequestInput)).append("\n"); + sb.append(" vnfTopology: ").append(toIndentedString(vnfTopology)).append("\n"); + sb.append(" vnfNetworkCollections: ").append(toIndentedString(vnfNetworkCollections)).append("\n"); + sb.append(" vnfSubInterfaceGroups: ").append(toIndentedString(vnfSubInterfaceGroups)).append("\n"); + sb.append(" vfModules: ").append(toIndentedString(vfModules)).append("\n"); + sb.append(" vnfProvidedAllottedResources: ").append(toIndentedString(vnfProvidedAllottedResources)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicedataServicedataVnfsVnfVnfdataVfmodulesVfModule.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicedataServicedataVnfsVnfVnfdataVfmodulesVfModule.java new file mode 100644 index 0000000..3620148 --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicedataServicedataVnfsVnfVnfdataVfmodulesVfModule.java @@ -0,0 +1,109 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServicedataServicedataVnfsVnfVnfdataVfmodulesVfmoduleVfModuleData; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiServicedataServicedataVnfsVnfVnfdataVfmodulesVfModule + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-13T13:26:44.236-04:00") +@JsonRootName("vf-module") +public class GenericResourceApiServicedataServicedataVnfsVnfVnfdataVfmodulesVfModule { + @JsonProperty("vf-module-data") + private GenericResourceApiServicedataServicedataVnfsVnfVnfdataVfmodulesVfmoduleVfModuleData vfModuleData = null; + + @JsonProperty("vf-module-id") + private String vfModuleId = null; + + public GenericResourceApiServicedataServicedataVnfsVnfVnfdataVfmodulesVfModule vfModuleData(GenericResourceApiServicedataServicedataVnfsVnfVnfdataVfmodulesVfmoduleVfModuleData vfModuleData) { + this.vfModuleData = vfModuleData; + return this; + } + + /** + * Get vfModuleData + * @return vfModuleData + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiServicedataServicedataVnfsVnfVnfdataVfmodulesVfmoduleVfModuleData getVfModuleData() { + return vfModuleData; + } + + public void setVfModuleData(GenericResourceApiServicedataServicedataVnfsVnfVnfdataVfmodulesVfmoduleVfModuleData vfModuleData) { + this.vfModuleData = vfModuleData; + } + + public GenericResourceApiServicedataServicedataVnfsVnfVnfdataVfmodulesVfModule vfModuleId(String vfModuleId) { + this.vfModuleId = vfModuleId; + return this; + } + + /** + * Get vfModuleId + * @return vfModuleId + **/ + @ApiModelProperty(value = "") + + + public String getVfModuleId() { + return vfModuleId; + } + + public void setVfModuleId(String vfModuleId) { + this.vfModuleId = vfModuleId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiServicedataServicedataVnfsVnfVnfdataVfmodulesVfModule genericResourceApiServicedataServicedataVnfsVnfVnfdataVfmodulesVfModule = (GenericResourceApiServicedataServicedataVnfsVnfVnfdataVfmodulesVfModule) o; + return Objects.equals(this.vfModuleData, genericResourceApiServicedataServicedataVnfsVnfVnfdataVfmodulesVfModule.vfModuleData) && + Objects.equals(this.vfModuleId, genericResourceApiServicedataServicedataVnfsVnfVnfdataVfmodulesVfModule.vfModuleId); + } + + @Override + public int hashCode() { + return Objects.hash(vfModuleData, vfModuleId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiServicedataServicedataVnfsVnfVnfdataVfmodulesVfModule {\n"); + + sb.append(" vfModuleData: ").append(toIndentedString(vfModuleData)).append("\n"); + sb.append(" vfModuleId: ").append(toIndentedString(vfModuleId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicemodelinfrastructureService.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicemodelinfrastructureService.java new file mode 100644 index 0000000..3d41494 --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicemodelinfrastructureService.java @@ -0,0 +1,139 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServiceData; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServiceStatus; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServicedataServiceData; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServicestatusServiceStatus; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiServicemodelinfrastructureService + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-12T18:08:46.019-04:00") + +@JsonRootName("service") +public class GenericResourceApiServicemodelinfrastructureService { + @JsonProperty("service-data") + private GenericResourceApiServicedataServiceData serviceData = null; + + @JsonProperty("service-status") + private GenericResourceApiServicestatusServiceStatus serviceStatus = null; + + @JsonProperty("service-instance-id") + private String serviceInstanceId = null; + + public GenericResourceApiServicemodelinfrastructureService serviceData(GenericResourceApiServicedataServiceData serviceData) { + this.serviceData = serviceData; + return this; + } + + /** + * Get serviceData + * @return serviceData + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiServicedataServiceData getServiceData() { + return serviceData; + } + + public void setServiceData(GenericResourceApiServicedataServiceData serviceData) { + this.serviceData = serviceData; + } + + public GenericResourceApiServicemodelinfrastructureService serviceStatus(GenericResourceApiServicestatusServiceStatus serviceStatus) { + this.serviceStatus = serviceStatus; + return this; + } + + /** + * Get serviceStatus + * @return serviceStatus + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiServicestatusServiceStatus getServiceStatus() { + return serviceStatus; + } + + public void setServiceStatus(GenericResourceApiServicestatusServiceStatus serviceStatus) { + this.serviceStatus = serviceStatus; + } + + public GenericResourceApiServicemodelinfrastructureService serviceInstanceId(String serviceInstanceId) { + this.serviceInstanceId = serviceInstanceId; + return this; + } + + /** + * Keep as M + * @return serviceInstanceId + **/ + @ApiModelProperty(value = "Keep as M") + + + public String getServiceInstanceId() { + return serviceInstanceId; + } + + public void setServiceInstanceId(String serviceInstanceId) { + this.serviceInstanceId = serviceInstanceId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiServicemodelinfrastructureService genericResourceApiServicemodelinfrastructureService = (GenericResourceApiServicemodelinfrastructureService) o; + return Objects.equals(this.serviceData, genericResourceApiServicemodelinfrastructureService.serviceData) && + Objects.equals(this.serviceStatus, genericResourceApiServicemodelinfrastructureService.serviceStatus) && + Objects.equals(this.serviceInstanceId, genericResourceApiServicemodelinfrastructureService.serviceInstanceId); + } + + @Override + public int hashCode() { + return Objects.hash(serviceData, serviceStatus, serviceInstanceId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiServicemodelinfrastructureService {\n"); + + sb.append(" serviceData: ").append(toIndentedString(serviceData)).append("\n"); + sb.append(" serviceStatus: ").append(toIndentedString(serviceStatus)).append("\n"); + sb.append(" serviceInstanceId: ").append(toIndentedString(serviceInstanceId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicestatusServiceStatus.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicestatusServiceStatus.java new file mode 100644 index 0000000..2904d34 --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicestatusServiceStatus.java @@ -0,0 +1,261 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiRequestStatusEnumeration; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiRpcActionEnumeration; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiServicestatusServiceStatus + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-13T13:26:44.236-04:00") +@JsonRootName("service-status") +public class GenericResourceApiServicestatusServiceStatus { + @JsonProperty("response-code") + private String responseCode = null; + + @JsonProperty("response-message") + private String responseMessage = null; + + @JsonProperty("action") + private String action = null; + + @JsonProperty("response-timestamp") + private String responseTimestamp = null; + + @JsonProperty("request-status") + private GenericResourceApiRequestStatusEnumeration requestStatus = null; + + @JsonProperty("final-indicator") + private String finalIndicator = null; + + @JsonProperty("rpc-name") + private String rpcName = null; + + @JsonProperty("rpc-action") + private GenericResourceApiRpcActionEnumeration rpcAction = null; + + public GenericResourceApiServicestatusServiceStatus responseCode(String responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * Get responseCode + * @return responseCode + **/ + @ApiModelProperty(value = "") + + + public String getResponseCode() { + return responseCode; + } + + public void setResponseCode(String responseCode) { + this.responseCode = responseCode; + } + + public GenericResourceApiServicestatusServiceStatus responseMessage(String responseMessage) { + this.responseMessage = responseMessage; + return this; + } + + /** + * Get responseMessage + * @return responseMessage + **/ + @ApiModelProperty(value = "") + + + public String getResponseMessage() { + return responseMessage; + } + + public void setResponseMessage(String responseMessage) { + this.responseMessage = responseMessage; + } + + public GenericResourceApiServicestatusServiceStatus action(String action) { + this.action = action; + return this; + } + + /** + * value would one of possible request-actions; match the list in service-data oper-status + * @return action + **/ + @ApiModelProperty(value = "value would one of possible request-actions; match the list in service-data oper-status") + + + public String getAction() { + return action; + } + + public void setAction(String action) { + this.action = action; + } + + public GenericResourceApiServicestatusServiceStatus responseTimestamp(String responseTimestamp) { + this.responseTimestamp = responseTimestamp; + return this; + } + + /** + * Get responseTimestamp + * @return responseTimestamp + **/ + @ApiModelProperty(value = "") + + + public String getResponseTimestamp() { + return responseTimestamp; + } + + public void setResponseTimestamp(String responseTimestamp) { + this.responseTimestamp = responseTimestamp; + } + + public GenericResourceApiServicestatusServiceStatus requestStatus(GenericResourceApiRequestStatusEnumeration requestStatus) { + this.requestStatus = requestStatus; + return this; + } + + /** + * Get requestStatus + * @return requestStatus + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiRequestStatusEnumeration getRequestStatus() { + return requestStatus; + } + + public void setRequestStatus(GenericResourceApiRequestStatusEnumeration requestStatus) { + this.requestStatus = requestStatus; + } + + public GenericResourceApiServicestatusServiceStatus finalIndicator(String finalIndicator) { + this.finalIndicator = finalIndicator; + return this; + } + + /** + * Get finalIndicator + * @return finalIndicator + **/ + @ApiModelProperty(value = "") + + + public String getFinalIndicator() { + return finalIndicator; + } + + public void setFinalIndicator(String finalIndicator) { + this.finalIndicator = finalIndicator; + } + + public GenericResourceApiServicestatusServiceStatus rpcName(String rpcName) { + this.rpcName = rpcName; + return this; + } + + /** + * Get rpcName + * @return rpcName + **/ + @ApiModelProperty(value = "") + + + public String getRpcName() { + return rpcName; + } + + public void setRpcName(String rpcName) { + this.rpcName = rpcName; + } + + public GenericResourceApiServicestatusServiceStatus rpcAction(GenericResourceApiRpcActionEnumeration rpcAction) { + this.rpcAction = rpcAction; + return this; + } + + /** + * this is the svc-action from the incoming request + * @return rpcAction + **/ + @ApiModelProperty(value = "this is the svc-action from the incoming request") + + @Valid + + public GenericResourceApiRpcActionEnumeration getRpcAction() { + return rpcAction; + } + + public void setRpcAction(GenericResourceApiRpcActionEnumeration rpcAction) { + this.rpcAction = rpcAction; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiServicestatusServiceStatus genericResourceApiServicestatusServiceStatus = (GenericResourceApiServicestatusServiceStatus) o; + return Objects.equals(this.responseCode, genericResourceApiServicestatusServiceStatus.responseCode) && + Objects.equals(this.responseMessage, genericResourceApiServicestatusServiceStatus.responseMessage) && + Objects.equals(this.action, genericResourceApiServicestatusServiceStatus.action) && + Objects.equals(this.responseTimestamp, genericResourceApiServicestatusServiceStatus.responseTimestamp) && + Objects.equals(this.requestStatus, genericResourceApiServicestatusServiceStatus.requestStatus) && + Objects.equals(this.finalIndicator, genericResourceApiServicestatusServiceStatus.finalIndicator) && + Objects.equals(this.rpcName, genericResourceApiServicestatusServiceStatus.rpcName) && + Objects.equals(this.rpcAction, genericResourceApiServicestatusServiceStatus.rpcAction); + } + + @Override + public int hashCode() { + return Objects.hash(responseCode, responseMessage, action, responseTimestamp, requestStatus, finalIndicator, rpcName, rpcAction); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiServicestatusServiceStatus {\n"); + + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" responseMessage: ").append(toIndentedString(responseMessage)).append("\n"); + sb.append(" action: ").append(toIndentedString(action)).append("\n"); + sb.append(" responseTimestamp: ").append(toIndentedString(responseTimestamp)).append("\n"); + sb.append(" requestStatus: ").append(toIndentedString(requestStatus)).append("\n"); + sb.append(" finalIndicator: ").append(toIndentedString(finalIndicator)).append("\n"); + sb.append(" rpcName: ").append(toIndentedString(rpcName)).append("\n"); + sb.append(" rpcAction: ").append(toIndentedString(rpcAction)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicetopologyServiceTopology.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicetopologyServiceTopology.java new file mode 100644 index 0000000..1a4a64f --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiServicetopologyServiceTopology.java @@ -0,0 +1,170 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.google.gson.annotations.JsonAdapter; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiOnapModelInformation; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiOnapmodelinformationOnapModelInformation; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServiceAssignments; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServiceParameters; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServiceTopologyIdentifier; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServiceassignmentsServiceAssignments; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServiceparametersServiceParameters; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServicetopologyidentifierServiceTopologyIdentifier; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiServicetopologyServiceTopology + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-13T13:26:44.236-04:00") +@JsonRootName("service-topology") +public class GenericResourceApiServicetopologyServiceTopology { + @JsonProperty("onap-model-information") + private GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation = null; + + @JsonProperty("service-assignments") + private GenericResourceApiServiceassignmentsServiceAssignments serviceAssignments = null; + + @JsonProperty("service-parameters") + private GenericResourceApiServiceparametersServiceParameters serviceParameters = null; + + @JsonProperty("service-topology-identifier") + private GenericResourceApiServicetopologyidentifierServiceTopologyIdentifier serviceTopologyIdentifier = null; + + public GenericResourceApiServicetopologyServiceTopology onapModelInformation(GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation) { + this.onapModelInformation = onapModelInformation; + return this; + } + + /** + * Get onapModelInformation + * @return onapModelInformation + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiOnapmodelinformationOnapModelInformation getOnapModelInformation() { + return onapModelInformation; + } + + public void setOnapModelInformation(GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation) { + this.onapModelInformation = onapModelInformation; + } + + public GenericResourceApiServicetopologyServiceTopology serviceAssignments(GenericResourceApiServiceassignmentsServiceAssignments serviceAssignments) { + this.serviceAssignments = serviceAssignments; + return this; + } + + /** + * Get serviceAssignments + * @return serviceAssignments + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiServiceassignmentsServiceAssignments getServiceAssignments() { + return serviceAssignments; + } + + public void setServiceAssignments(GenericResourceApiServiceassignmentsServiceAssignments serviceAssignments) { + this.serviceAssignments = serviceAssignments; + } + + public GenericResourceApiServicetopologyServiceTopology serviceParameters(GenericResourceApiServiceparametersServiceParameters serviceParameters) { + this.serviceParameters = serviceParameters; + return this; + } + + /** + * Get serviceParameters + * @return serviceParameters + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiServiceparametersServiceParameters getServiceParameters() { + return serviceParameters; + } + + public void setServiceParameters(GenericResourceApiServiceparametersServiceParameters serviceParameters) { + this.serviceParameters = serviceParameters; + } + + public GenericResourceApiServicetopologyServiceTopology serviceTopologyIdentifier(GenericResourceApiServicetopologyidentifierServiceTopologyIdentifier serviceTopologyIdentifier) { + this.serviceTopologyIdentifier = serviceTopologyIdentifier; + return this; + } + + /** + * Get serviceTopologyIdentifier + * @return serviceTopologyIdentifier + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiServicetopologyidentifierServiceTopologyIdentifier getServiceTopologyIdentifier() { + return serviceTopologyIdentifier; + } + + public void setServiceTopologyIdentifier(GenericResourceApiServicetopologyidentifierServiceTopologyIdentifier serviceTopologyIdentifier) { + this.serviceTopologyIdentifier = serviceTopologyIdentifier; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiServicetopologyServiceTopology genericResourceApiServicetopologyServiceTopology = (GenericResourceApiServicetopologyServiceTopology) o; + return Objects.equals(this.onapModelInformation, genericResourceApiServicetopologyServiceTopology.onapModelInformation) && + Objects.equals(this.serviceAssignments, genericResourceApiServicetopologyServiceTopology.serviceAssignments) && + Objects.equals(this.serviceParameters, genericResourceApiServicetopologyServiceTopology.serviceParameters) && + Objects.equals(this.serviceTopologyIdentifier, genericResourceApiServicetopologyServiceTopology.serviceTopologyIdentifier); + } + + @Override + public int hashCode() { + return Objects.hash(onapModelInformation, serviceAssignments, serviceParameters, serviceTopologyIdentifier); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiServicetopologyServiceTopology {\n"); + + sb.append(" onapModelInformation: ").append(toIndentedString(onapModelInformation)).append("\n"); + sb.append(" serviceAssignments: ").append(toIndentedString(serviceAssignments)).append("\n"); + sb.append(" serviceParameters: ").append(toIndentedString(serviceParameters)).append("\n"); + sb.append(" serviceTopologyIdentifier: ").append(toIndentedString(serviceTopologyIdentifier)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiVfmoduletopologyVfModuleTopology.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiVfmoduletopologyVfModuleTopology.java new file mode 100644 index 0000000..989a179 --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiVfmoduletopologyVfModuleTopology.java @@ -0,0 +1,294 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiOnapModelInformation; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiOnapmodelinformationOnapModelInformation; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiParam; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiRegionIdentifier; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVfModuleAssignments; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVfModuleTopologyIdentifier; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVfmoduleassignmentsVfModuleAssignments; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVfmoduletopologyidentifierVfModuleTopologyIdentifier; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiVfmoduletopologyVfModuleTopology + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-13T13:26:44.236-04:00") +@JsonRootName("vf-module-topology") +public class GenericResourceApiVfmoduletopologyVfModuleTopology { + @JsonProperty("onap-model-information") + private GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation = null; + + @JsonProperty("aic-clli") + private String aicClli = null; + + @JsonProperty("aic-cloud-region") + private String aicCloudRegion = null; + + @JsonProperty("cloud-owner") + private String cloudOwner = null; + + @JsonProperty("tenant") + private String tenant = null; + + @JsonProperty("vf-module-assignments") + private GenericResourceApiVfmoduleassignmentsVfModuleAssignments vfModuleAssignments = null; + + @JsonProperty("vf-module-topology-identifier") + private GenericResourceApiVfmoduletopologyidentifierVfModuleTopologyIdentifier vfModuleTopologyIdentifier = null; + + @JsonProperty("vf-module-parameters") + private GenericResourceApiParam vfModuleParameters = null; + + @JsonProperty("sdnc-generated-cloud-resources") + private Boolean sdncGeneratedCloudResources = null; + + public GenericResourceApiVfmoduletopologyVfModuleTopology onapModelInformation(GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation) { + this.onapModelInformation = onapModelInformation; + return this; + } + + /** + * Get onapModelInformation + * @return onapModelInformation + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiOnapmodelinformationOnapModelInformation getOnapModelInformation() { + return onapModelInformation; + } + + public void setOnapModelInformation(GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation) { + this.onapModelInformation = onapModelInformation; + } + + public GenericResourceApiVfmoduletopologyVfModuleTopology aicClli(String aicClli) { + this.aicClli = aicClli; + return this; + } + + /** + * Not expected to be used + * @return aicClli + **/ + @ApiModelProperty(value = "Not expected to be used") + + + public String getAicClli() { + return aicClli; + } + + public void setAicClli(String aicClli) { + this.aicClli = aicClli; + } + + public GenericResourceApiVfmoduletopologyVfModuleTopology aicCloudRegion(String aicCloudRegion) { + this.aicCloudRegion = aicCloudRegion; + return this; + } + + /** + * The AIC cloud region which maps to contrail versions + * @return aicCloudRegion + **/ + @ApiModelProperty(value = "The AIC cloud region which maps to contrail versions") + + + public String getAicCloudRegion() { + return aicCloudRegion; + } + + public void setAicCloudRegion(String aicCloudRegion) { + this.aicCloudRegion = aicCloudRegion; + } + + public GenericResourceApiVfmoduletopologyVfModuleTopology cloudOwner(String cloudOwner) { + this.cloudOwner = cloudOwner; + return this; + } + + /** + * Get cloudOwner + * @return cloudOwner + **/ + @ApiModelProperty(value = "") + + + public String getCloudOwner() { + return cloudOwner; + } + + public void setCloudOwner(String cloudOwner) { + this.cloudOwner = cloudOwner; + } + + public GenericResourceApiVfmoduletopologyVfModuleTopology tenant(String tenant) { + this.tenant = tenant; + return this; + } + + /** + * Get tenant + * @return tenant + **/ + @ApiModelProperty(value = "") + + + public String getTenant() { + return tenant; + } + + public void setTenant(String tenant) { + this.tenant = tenant; + } + + public GenericResourceApiVfmoduletopologyVfModuleTopology vfModuleAssignments(GenericResourceApiVfmoduleassignmentsVfModuleAssignments vfModuleAssignments) { + this.vfModuleAssignments = vfModuleAssignments; + return this; + } + + /** + * Get vfModuleAssignments + * @return vfModuleAssignments + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiVfmoduleassignmentsVfModuleAssignments getVfModuleAssignments() { + return vfModuleAssignments; + } + + public void setVfModuleAssignments(GenericResourceApiVfmoduleassignmentsVfModuleAssignments vfModuleAssignments) { + this.vfModuleAssignments = vfModuleAssignments; + } + + public GenericResourceApiVfmoduletopologyVfModuleTopology vfModuleTopologyIdentifier(GenericResourceApiVfmoduletopologyidentifierVfModuleTopologyIdentifier vfModuleTopologyIdentifier) { + this.vfModuleTopologyIdentifier = vfModuleTopologyIdentifier; + return this; + } + + /** + * Get vfModuleTopologyIdentifier + * @return vfModuleTopologyIdentifier + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiVfmoduletopologyidentifierVfModuleTopologyIdentifier getVfModuleTopologyIdentifier() { + return vfModuleTopologyIdentifier; + } + + public void setVfModuleTopologyIdentifier(GenericResourceApiVfmoduletopologyidentifierVfModuleTopologyIdentifier vfModuleTopologyIdentifier) { + this.vfModuleTopologyIdentifier = vfModuleTopologyIdentifier; + } + + public GenericResourceApiVfmoduletopologyVfModuleTopology vfModuleParameters(GenericResourceApiParam vfModuleParameters) { + this.vfModuleParameters = vfModuleParameters; + return this; + } + + /** + * Get vfModuleParameters + * @return vfModuleParameters + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiParam getVfModuleParameters() { + return vfModuleParameters; + } + + public void setVfModuleParameters(GenericResourceApiParam vfModuleParameters) { + this.vfModuleParameters = vfModuleParameters; + } + + public GenericResourceApiVfmoduletopologyVfModuleTopology sdncGeneratedCloudResources(Boolean sdncGeneratedCloudResources) { + this.sdncGeneratedCloudResources = sdncGeneratedCloudResources; + return this; + } + + /** + * Indicate if source is sdnc-generated-cloud-resources.When true, the parameters are literal HEAT template parameter names;When false, the parameters need to be converted to HEAT format + * @return sdncGeneratedCloudResources + **/ + @ApiModelProperty(value = "Indicate if source is sdnc-generated-cloud-resources.When true, the parameters are literal HEAT template parameter names;When false, the parameters need to be converted to HEAT format") + + + public Boolean isSdncGeneratedCloudResources() { + return sdncGeneratedCloudResources; + } + + public void setSdncGeneratedCloudResources(Boolean sdncGeneratedCloudResources) { + this.sdncGeneratedCloudResources = sdncGeneratedCloudResources; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiVfmoduletopologyVfModuleTopology genericResourceApiVfmoduletopologyVfModuleTopology = (GenericResourceApiVfmoduletopologyVfModuleTopology) o; + return Objects.equals(this.onapModelInformation, genericResourceApiVfmoduletopologyVfModuleTopology.onapModelInformation) && + Objects.equals(this.aicClli, genericResourceApiVfmoduletopologyVfModuleTopology.aicClli) && + Objects.equals(this.aicCloudRegion, genericResourceApiVfmoduletopologyVfModuleTopology.aicCloudRegion) && + Objects.equals(this.cloudOwner, genericResourceApiVfmoduletopologyVfModuleTopology.cloudOwner) && + Objects.equals(this.tenant, genericResourceApiVfmoduletopologyVfModuleTopology.tenant) && + Objects.equals(this.vfModuleAssignments, genericResourceApiVfmoduletopologyVfModuleTopology.vfModuleAssignments) && + Objects.equals(this.vfModuleTopologyIdentifier, genericResourceApiVfmoduletopologyVfModuleTopology.vfModuleTopologyIdentifier) && + Objects.equals(this.vfModuleParameters, genericResourceApiVfmoduletopologyVfModuleTopology.vfModuleParameters) && + Objects.equals(this.sdncGeneratedCloudResources, genericResourceApiVfmoduletopologyVfModuleTopology.sdncGeneratedCloudResources); + } + + @Override + public int hashCode() { + return Objects.hash(onapModelInformation, aicClli, aicCloudRegion, cloudOwner, tenant, vfModuleAssignments, vfModuleTopologyIdentifier, vfModuleParameters, sdncGeneratedCloudResources); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiVfmoduletopologyVfModuleTopology {\n"); + + sb.append(" onapModelInformation: ").append(toIndentedString(onapModelInformation)).append("\n"); + sb.append(" aicClli: ").append(toIndentedString(aicClli)).append("\n"); + sb.append(" aicCloudRegion: ").append(toIndentedString(aicCloudRegion)).append("\n"); + sb.append(" cloudOwner: ").append(toIndentedString(cloudOwner)).append("\n"); + sb.append(" tenant: ").append(toIndentedString(tenant)).append("\n"); + sb.append(" vfModuleAssignments: ").append(toIndentedString(vfModuleAssignments)).append("\n"); + sb.append(" vfModuleTopologyIdentifier: ").append(toIndentedString(vfModuleTopologyIdentifier)).append("\n"); + sb.append(" vfModuleParameters: ").append(toIndentedString(vfModuleParameters)).append("\n"); + sb.append(" sdncGeneratedCloudResources: ").append(toIndentedString(sdncGeneratedCloudResources)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiVnfNetworkData.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiVnfNetworkData.java new file mode 100644 index 0000000..c32772d --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiVnfNetworkData.java @@ -0,0 +1,286 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiRelatedNetwork; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVnfnetworkdataSubnetsData; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiVnfNetworkData + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-26T10:54:31.626-04:00") +@JsonRootName("vnf-network") +public class GenericResourceApiVnfNetworkData { + @JsonProperty("related-networks") + private GenericResourceApiRelatedNetwork relatedNetworks = null; + + @JsonProperty("network-role") + private String networkRole = null; + + @JsonProperty("is-trunked") + private Boolean isTrunked = null; + + @JsonProperty("network-id") + private String networkId = null; + + @JsonProperty("subnets-data") + private GenericResourceApiVnfnetworkdataSubnetsData subnetsData = null; + + @JsonProperty("contrail-network-fqdn") + private String contrailNetworkFqdn = null; + + @JsonProperty("network-name") + private String networkName = null; + + @JsonProperty("segmentation-id") + private String segmentationId = null; + + @JsonProperty("neutron-id") + private String neutronId = null; + + public GenericResourceApiVnfNetworkData relatedNetworks(GenericResourceApiRelatedNetwork relatedNetworks) { + this.relatedNetworks = relatedNetworks; + return this; + } + + /** + * Get relatedNetworks + * @return relatedNetworks + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiRelatedNetwork getRelatedNetworks() { + return relatedNetworks; + } + + public void setRelatedNetworks(GenericResourceApiRelatedNetwork relatedNetworks) { + this.relatedNetworks = relatedNetworks; + } + + public GenericResourceApiVnfNetworkData networkRole(String networkRole) { + this.networkRole = networkRole; + return this; + } + + /** + * A Network Role to which a VNF must connect + * @return networkRole + **/ + @ApiModelProperty(value = "A Network Role to which a VNF must connect") + + + public String getNetworkRole() { + return networkRole; + } + + public void setNetworkRole(String networkRole) { + this.networkRole = networkRole; + } + + public GenericResourceApiVnfNetworkData isTrunked(Boolean isTrunked) { + this.isTrunked = isTrunked; + return this; + } + + /** + * Get isTrunked + * @return isTrunked + **/ + @ApiModelProperty(value = "") + + + public Boolean isIsTrunked() { + return isTrunked; + } + + public void setIsTrunked(Boolean isTrunked) { + this.isTrunked = isTrunked; + } + + public GenericResourceApiVnfNetworkData networkId(String networkId) { + this.networkId = networkId; + return this; + } + + /** + * Unique Neutron UUID of an instance of the network role + * @return networkId + **/ + @ApiModelProperty(value = "Unique Neutron UUID of an instance of the network role ") + + + public String getNetworkId() { + return networkId; + } + + public void setNetworkId(String networkId) { + this.networkId = networkId; + } + + public GenericResourceApiVnfNetworkData subnetsData(GenericResourceApiVnfnetworkdataSubnetsData subnetsData) { + this.subnetsData = subnetsData; + return this; + } + + /** + * Get subnetsData + * @return subnetsData + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiVnfnetworkdataSubnetsData getSubnetsData() { + return subnetsData; + } + + public void setSubnetsData(GenericResourceApiVnfnetworkdataSubnetsData subnetsData) { + this.subnetsData = subnetsData; + } + + public GenericResourceApiVnfNetworkData contrailNetworkFqdn(String contrailNetworkFqdn) { + this.contrailNetworkFqdn = contrailNetworkFqdn; + return this; + } + + /** + * contrail network policy object + * @return contrailNetworkFqdn + **/ + @ApiModelProperty(value = "contrail network policy object") + + + public String getContrailNetworkFqdn() { + return contrailNetworkFqdn; + } + + public void setContrailNetworkFqdn(String contrailNetworkFqdn) { + this.contrailNetworkFqdn = contrailNetworkFqdn; + } + + public GenericResourceApiVnfNetworkData networkName(String networkName) { + this.networkName = networkName; + return this; + } + + /** + * Unique Neutron UUID of an instance of the network role + * @return networkName + **/ + @ApiModelProperty(value = "Unique Neutron UUID of an instance of the network role ") + + + public String getNetworkName() { + return networkName; + } + + public void setNetworkName(String networkName) { + this.networkName = networkName; + } + + public GenericResourceApiVnfNetworkData segmentationId(String segmentationId) { + this.segmentationId = segmentationId; + return this; + } + + /** + * Get segmentationId + * @return segmentationId + **/ + @ApiModelProperty(value = "") + + + public String getSegmentationId() { + return segmentationId; + } + + public void setSegmentationId(String segmentationId) { + this.segmentationId = segmentationId; + } + + public GenericResourceApiVnfNetworkData neutronId(String neutronId) { + this.neutronId = neutronId; + return this; + } + + /** + * Unique Neutron UUID of an instance of the network role + * @return neutronId + **/ + @ApiModelProperty(value = "Unique Neutron UUID of an instance of the network role ") + + + public String getNeutronId() { + return neutronId; + } + + public void setNeutronId(String neutronId) { + this.neutronId = neutronId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiVnfNetworkData genericResourceApiVnfNetworkData = (GenericResourceApiVnfNetworkData) o; + return Objects.equals(this.relatedNetworks, genericResourceApiVnfNetworkData.relatedNetworks) && + Objects.equals(this.networkRole, genericResourceApiVnfNetworkData.networkRole) && + Objects.equals(this.isTrunked, genericResourceApiVnfNetworkData.isTrunked) && + Objects.equals(this.networkId, genericResourceApiVnfNetworkData.networkId) && + Objects.equals(this.subnetsData, genericResourceApiVnfNetworkData.subnetsData) && + Objects.equals(this.contrailNetworkFqdn, genericResourceApiVnfNetworkData.contrailNetworkFqdn) && + Objects.equals(this.networkName, genericResourceApiVnfNetworkData.networkName) && + Objects.equals(this.segmentationId, genericResourceApiVnfNetworkData.segmentationId) && + Objects.equals(this.neutronId, genericResourceApiVnfNetworkData.neutronId); + } + + @Override + public int hashCode() { + return Objects.hash(relatedNetworks, networkRole, isTrunked, networkId, subnetsData, contrailNetworkFqdn, networkName, segmentationId, neutronId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiVnfNetworkData {\n"); + + sb.append(" relatedNetworks: ").append(toIndentedString(relatedNetworks)).append("\n"); + sb.append(" networkRole: ").append(toIndentedString(networkRole)).append("\n"); + sb.append(" isTrunked: ").append(toIndentedString(isTrunked)).append("\n"); + sb.append(" networkId: ").append(toIndentedString(networkId)).append("\n"); + sb.append(" subnetsData: ").append(toIndentedString(subnetsData)).append("\n"); + sb.append(" contrailNetworkFqdn: ").append(toIndentedString(contrailNetworkFqdn)).append("\n"); + sb.append(" networkName: ").append(toIndentedString(networkName)).append("\n"); + sb.append(" segmentationId: ").append(toIndentedString(segmentationId)).append("\n"); + sb.append(" neutronId: ").append(toIndentedString(neutronId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiVnfresourceassignmentsVnfresourceassignmentsVnfNetworks.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiVnfresourceassignmentsVnfresourceassignmentsVnfNetworks.java new file mode 100644 index 0000000..70fd01a --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiVnfresourceassignmentsVnfresourceassignmentsVnfNetworks.java @@ -0,0 +1,95 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVnfNetworkData; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiVnfresourceassignmentsVnfresourceassignmentsVnfNetworks + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-26T09:20:20.871-04:00") +@JsonRootName("vnf-networks") +public class GenericResourceApiVnfresourceassignmentsVnfresourceassignmentsVnfNetworks { + @JsonProperty("vnf-network") + @Valid + private List<GenericResourceApiVnfNetworkData> vnfNetwork = null; + + public GenericResourceApiVnfresourceassignmentsVnfresourceassignmentsVnfNetworks vnfNetwork(List<GenericResourceApiVnfNetworkData> vnfNetwork) { + this.vnfNetwork = vnfNetwork; + return this; + } + + public GenericResourceApiVnfresourceassignmentsVnfresourceassignmentsVnfNetworks addVnfNetworkItem(GenericResourceApiVnfNetworkData vnfNetworkItem) { + if (this.vnfNetwork == null) { + this.vnfNetwork = new ArrayList<>(); + } + this.vnfNetwork.add(vnfNetworkItem); + return this; + } + + /** + * Get vnfNetwork + * @return vnfNetwork + **/ + @ApiModelProperty(value = "") + + @Valid + + public List<GenericResourceApiVnfNetworkData> getVnfNetwork() { + return vnfNetwork; + } + + public void setVnfNetwork(List<GenericResourceApiVnfNetworkData> vnfNetwork) { + this.vnfNetwork = vnfNetwork; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiVnfresourceassignmentsVnfresourceassignmentsVnfNetworks genericResourceApiVnfresourceassignmentsVnfresourceassignmentsVnfNetworks = (GenericResourceApiVnfresourceassignmentsVnfresourceassignmentsVnfNetworks) o; + return Objects.equals(this.vnfNetwork, genericResourceApiVnfresourceassignmentsVnfresourceassignmentsVnfNetworks.vnfNetwork); + } + + @Override + public int hashCode() { + return Objects.hash(vnfNetwork); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiVnfresourceassignmentsVnfresourceassignmentsVnfNetworks {\n"); + + sb.append(" vnfNetwork: ").append(toIndentedString(vnfNetwork)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiVnftopologyVnfTopology.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiVnftopologyVnfTopology.java new file mode 100644 index 0000000..8b6d221 --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiVnftopologyVnfTopology.java @@ -0,0 +1,294 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiOnapModelInformation; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiOnapmodelinformationOnapModelInformation; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiParam; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiRegionIdentifier; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVnfResourceAssignments; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVnfTopologyIdentifierStructure; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVnfresourceassignmentsVnfResourceAssignments; +import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVnftopologyidentifierstructureVnfTopologyIdentifierStructure; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiVnftopologyVnfTopology + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-13T13:26:44.236-04:00") +@JsonRootName("vnf-topology") +public class GenericResourceApiVnftopologyVnfTopology { + @JsonProperty("onap-model-information") + private GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation = null; + + @JsonProperty("aic-clli") + private String aicClli = null; + + @JsonProperty("aic-cloud-region") + private String aicCloudRegion = null; + + @JsonProperty("cloud-owner") + private String cloudOwner = null; + + @JsonProperty("tenant") + private String tenant = null; + + @JsonProperty("vnf-resource-assignments") + private GenericResourceApiVnfresourceassignmentsVnfResourceAssignments vnfResourceAssignments = null; + + @JsonProperty("vnf-topology-identifier-structure") + private GenericResourceApiVnftopologyidentifierstructureVnfTopologyIdentifierStructure vnfTopologyIdentifierStructure = null; + + @JsonProperty("vnf-parameters-data") + private GenericResourceApiParam vnfParametersData = null; + + @JsonProperty("sdnc-generated-cloud-resources") + private Boolean sdncGeneratedCloudResources = null; + + public GenericResourceApiVnftopologyVnfTopology onapModelInformation(GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation) { + this.onapModelInformation = onapModelInformation; + return this; + } + + /** + * Get onapModelInformation + * @return onapModelInformation + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiOnapmodelinformationOnapModelInformation getOnapModelInformation() { + return onapModelInformation; + } + + public void setOnapModelInformation(GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation) { + this.onapModelInformation = onapModelInformation; + } + + public GenericResourceApiVnftopologyVnfTopology aicClli(String aicClli) { + this.aicClli = aicClli; + return this; + } + + /** + * Not expected to be used + * @return aicClli + **/ + @ApiModelProperty(value = "Not expected to be used") + + + public String getAicClli() { + return aicClli; + } + + public void setAicClli(String aicClli) { + this.aicClli = aicClli; + } + + public GenericResourceApiVnftopologyVnfTopology aicCloudRegion(String aicCloudRegion) { + this.aicCloudRegion = aicCloudRegion; + return this; + } + + /** + * The AIC cloud region which maps to contrail versions + * @return aicCloudRegion + **/ + @ApiModelProperty(value = "The AIC cloud region which maps to contrail versions") + + + public String getAicCloudRegion() { + return aicCloudRegion; + } + + public void setAicCloudRegion(String aicCloudRegion) { + this.aicCloudRegion = aicCloudRegion; + } + + public GenericResourceApiVnftopologyVnfTopology cloudOwner(String cloudOwner) { + this.cloudOwner = cloudOwner; + return this; + } + + /** + * Get cloudOwner + * @return cloudOwner + **/ + @ApiModelProperty(value = "") + + + public String getCloudOwner() { + return cloudOwner; + } + + public void setCloudOwner(String cloudOwner) { + this.cloudOwner = cloudOwner; + } + + public GenericResourceApiVnftopologyVnfTopology tenant(String tenant) { + this.tenant = tenant; + return this; + } + + /** + * Get tenant + * @return tenant + **/ + @ApiModelProperty(value = "") + + + public String getTenant() { + return tenant; + } + + public void setTenant(String tenant) { + this.tenant = tenant; + } + + public GenericResourceApiVnftopologyVnfTopology vnfResourceAssignments(GenericResourceApiVnfresourceassignmentsVnfResourceAssignments vnfResourceAssignments) { + this.vnfResourceAssignments = vnfResourceAssignments; + return this; + } + + /** + * Get vnfResourceAssignments + * @return vnfResourceAssignments + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiVnfresourceassignmentsVnfResourceAssignments getVnfResourceAssignments() { + return vnfResourceAssignments; + } + + public void setVnfResourceAssignments(GenericResourceApiVnfresourceassignmentsVnfResourceAssignments vnfResourceAssignments) { + this.vnfResourceAssignments = vnfResourceAssignments; + } + + public GenericResourceApiVnftopologyVnfTopology vnfTopologyIdentifierStructure(GenericResourceApiVnftopologyidentifierstructureVnfTopologyIdentifierStructure vnfTopologyIdentifierStructure) { + this.vnfTopologyIdentifierStructure = vnfTopologyIdentifierStructure; + return this; + } + + /** + * Get vnfTopologyIdentifierStructure + * @return vnfTopologyIdentifierStructure + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiVnftopologyidentifierstructureVnfTopologyIdentifierStructure getVnfTopologyIdentifierStructure() { + return vnfTopologyIdentifierStructure; + } + + public void setVnfTopologyIdentifierStructure(GenericResourceApiVnftopologyidentifierstructureVnfTopologyIdentifierStructure vnfTopologyIdentifierStructure) { + this.vnfTopologyIdentifierStructure = vnfTopologyIdentifierStructure; + } + + public GenericResourceApiVnftopologyVnfTopology vnfParametersData(GenericResourceApiParam vnfParametersData) { + this.vnfParametersData = vnfParametersData; + return this; + } + + /** + * Get vnfParametersData + * @return vnfParametersData + **/ + @ApiModelProperty(value = "") + + @Valid + + public GenericResourceApiParam getVnfParametersData() { + return vnfParametersData; + } + + public void setVnfParametersData(GenericResourceApiParam vnfParametersData) { + this.vnfParametersData = vnfParametersData; + } + + public GenericResourceApiVnftopologyVnfTopology sdncGeneratedCloudResources(Boolean sdncGeneratedCloudResources) { + this.sdncGeneratedCloudResources = sdncGeneratedCloudResources; + return this; + } + + /** + * Indicate if source is sdnc generated cloud param. When true, the parameters are literal HEAT template parameter names;When false, the parameters need to be converted to HEAT format + * @return sdncGeneratedCloudResources + **/ + @ApiModelProperty(value = "Indicate if source is sdnc generated cloud param. When true, the parameters are literal HEAT template parameter names;When false, the parameters need to be converted to HEAT format") + + + public Boolean isSdncGeneratedCloudResources() { + return sdncGeneratedCloudResources; + } + + public void setSdncGeneratedCloudResources(Boolean sdncGeneratedCloudResources) { + this.sdncGeneratedCloudResources = sdncGeneratedCloudResources; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiVnftopologyVnfTopology genericResourceApiVnftopologyVnfTopology = (GenericResourceApiVnftopologyVnfTopology) o; + return Objects.equals(this.onapModelInformation, genericResourceApiVnftopologyVnfTopology.onapModelInformation) && + Objects.equals(this.aicClli, genericResourceApiVnftopologyVnfTopology.aicClli) && + Objects.equals(this.aicCloudRegion, genericResourceApiVnftopologyVnfTopology.aicCloudRegion) && + Objects.equals(this.cloudOwner, genericResourceApiVnftopologyVnfTopology.cloudOwner) && + Objects.equals(this.tenant, genericResourceApiVnftopologyVnfTopology.tenant) && + Objects.equals(this.vnfResourceAssignments, genericResourceApiVnftopologyVnfTopology.vnfResourceAssignments) && + Objects.equals(this.vnfTopologyIdentifierStructure, genericResourceApiVnftopologyVnfTopology.vnfTopologyIdentifierStructure) && + Objects.equals(this.vnfParametersData, genericResourceApiVnftopologyVnfTopology.vnfParametersData) && + Objects.equals(this.sdncGeneratedCloudResources, genericResourceApiVnftopologyVnfTopology.sdncGeneratedCloudResources); + } + + @Override + public int hashCode() { + return Objects.hash(onapModelInformation, aicClli, aicCloudRegion, cloudOwner, tenant, vnfResourceAssignments, vnfTopologyIdentifierStructure, vnfParametersData, sdncGeneratedCloudResources); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiVnftopologyVnfTopology {\n"); + + sb.append(" onapModelInformation: ").append(toIndentedString(onapModelInformation)).append("\n"); + sb.append(" aicClli: ").append(toIndentedString(aicClli)).append("\n"); + sb.append(" aicCloudRegion: ").append(toIndentedString(aicCloudRegion)).append("\n"); + sb.append(" cloudOwner: ").append(toIndentedString(cloudOwner)).append("\n"); + sb.append(" tenant: ").append(toIndentedString(tenant)).append("\n"); + sb.append(" vnfResourceAssignments: ").append(toIndentedString(vnfResourceAssignments)).append("\n"); + sb.append(" vnfTopologyIdentifierStructure: ").append(toIndentedString(vnfTopologyIdentifierStructure)).append("\n"); + sb.append(" vnfParametersData: ").append(toIndentedString(vnfParametersData)).append("\n"); + sb.append(" sdncGeneratedCloudResources: ").append(toIndentedString(sdncGeneratedCloudResources)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiVpnbindingsVpnBindings.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiVpnbindingsVpnBindings.java new file mode 100644 index 0000000..72463f9 --- /dev/null +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/swagger/model/GenericResourceApiVpnbindingsVpnBindings.java @@ -0,0 +1,182 @@ +package org.onap.sdnc.apps.ms.gra.swagger.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonRootName; +import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.springframework.validation.annotation.Validated; +import javax.validation.Valid; +import javax.validation.constraints.*; + +/** + * GenericResourceApiVpnbindingsVpnBindings + */ +@Validated +@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-23T12:02:01.518-04:00") +@JsonRootName("vpn-bindings") +public class GenericResourceApiVpnbindingsVpnBindings { + @JsonProperty("vpn-name") + private String vpnName = null; + + @JsonProperty("vpn-binding-id") + private String vpnBindingId = null; + + @JsonProperty("route-target-role") + private String routeTargetRole = null; + + @JsonProperty("aic-zone") + private String aicZone = null; + + @JsonProperty("global-route-target") + private String globalRouteTarget = null; + + public GenericResourceApiVpnbindingsVpnBindings vpnName(String vpnName) { + this.vpnName = vpnName; + return this; + } + + /** + * Get vpnName + * @return vpnName + **/ + @ApiModelProperty(value = "") + + + public String getVpnName() { + return vpnName; + } + + public void setVpnName(String vpnName) { + this.vpnName = vpnName; + } + + public GenericResourceApiVpnbindingsVpnBindings vpnBindingId(String vpnBindingId) { + this.vpnBindingId = vpnBindingId; + return this; + } + + /** + * Get vpnBindingId + * @return vpnBindingId + **/ + @ApiModelProperty(value = "") + + + public String getVpnBindingId() { + return vpnBindingId; + } + + public void setVpnBindingId(String vpnBindingId) { + this.vpnBindingId = vpnBindingId; + } + + public GenericResourceApiVpnbindingsVpnBindings routeTargetRole(String routeTargetRole) { + this.routeTargetRole = routeTargetRole; + return this; + } + + /** + * Get routeTargetRole + * @return routeTargetRole + **/ + @ApiModelProperty(value = "") + + + public String getRouteTargetRole() { + return routeTargetRole; + } + + public void setRouteTargetRole(String routeTargetRole) { + this.routeTargetRole = routeTargetRole; + } + + public GenericResourceApiVpnbindingsVpnBindings aicZone(String aicZone) { + this.aicZone = aicZone; + return this; + } + + /** + * AIC Zone the route target associated with + * @return aicZone + **/ + @ApiModelProperty(value = "AIC Zone the route target associated with") + + + public String getAicZone() { + return aicZone; + } + + public void setAicZone(String aicZone) { + this.aicZone = aicZone; + } + + public GenericResourceApiVpnbindingsVpnBindings globalRouteTarget(String globalRouteTarget) { + this.globalRouteTarget = globalRouteTarget; + return this; + } + + /** + * Get globalRouteTarget + * @return globalRouteTarget + **/ + @ApiModelProperty(value = "") + + + public String getGlobalRouteTarget() { + return globalRouteTarget; + } + + public void setGlobalRouteTarget(String globalRouteTarget) { + this.globalRouteTarget = globalRouteTarget; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenericResourceApiVpnbindingsVpnBindings genericResourceApiVpnbindingsVpnBindings = (GenericResourceApiVpnbindingsVpnBindings) o; + return Objects.equals(this.vpnName, genericResourceApiVpnbindingsVpnBindings.vpnName) && + Objects.equals(this.vpnBindingId, genericResourceApiVpnbindingsVpnBindings.vpnBindingId) && + Objects.equals(this.routeTargetRole, genericResourceApiVpnbindingsVpnBindings.routeTargetRole) && + Objects.equals(this.aicZone, genericResourceApiVpnbindingsVpnBindings.aicZone) && + Objects.equals(this.globalRouteTarget, genericResourceApiVpnbindingsVpnBindings.globalRouteTarget); + } + + @Override + public int hashCode() { + return Objects.hash(vpnName, vpnBindingId, routeTargetRole, aicZone, globalRouteTarget); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenericResourceApiVpnbindingsVpnBindings {\n"); + + sb.append(" vpnName: ").append(toIndentedString(vpnName)).append("\n"); + sb.append(" vpnBindingId: ").append(toIndentedString(vpnBindingId)).append("\n"); + sb.append(" routeTargetRole: ").append(toIndentedString(routeTargetRole)).append("\n"); + sb.append(" aicZone: ").append(toIndentedString(aicZone)).append("\n"); + sb.append(" globalRouteTarget: ").append(toIndentedString(globalRouteTarget)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + |