forked from wso2/carbon-apimgt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add changes for APIs export REST API
- Loading branch information
1 parent
6e1eb10
commit 7d26f5a
Showing
7 changed files
with
496 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
126 changes: 126 additions & 0 deletions
126
...src/gen/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/dto/SynapseArtifactListDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
package org.wso2.carbon.apimgt.rest.api.publisher.v1.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
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.wso2.carbon.apimgt.rest.api.publisher.v1.dto.PaginationDTO; | ||
import javax.validation.constraints.*; | ||
|
||
|
||
import io.swagger.annotations.*; | ||
import java.util.Objects; | ||
|
||
import javax.xml.bind.annotation.*; | ||
import org.wso2.carbon.apimgt.rest.api.common.annotations.Scope; | ||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
|
||
import javax.validation.Valid; | ||
|
||
|
||
|
||
public class SynapseArtifactListDTO { | ||
|
||
private Integer count = null; | ||
private List<String> list = new ArrayList<String>(); | ||
private PaginationDTO pagination = null; | ||
|
||
/** | ||
* Number of Synapse Artifacts returned. | ||
**/ | ||
public SynapseArtifactListDTO count(Integer count) { | ||
this.count = count; | ||
return this; | ||
} | ||
|
||
|
||
@ApiModelProperty(example = "1", value = "Number of Synapse Artifacts returned. ") | ||
@JsonProperty("count") | ||
public Integer getCount() { | ||
return count; | ||
} | ||
public void setCount(Integer count) { | ||
this.count = count; | ||
} | ||
|
||
/** | ||
**/ | ||
public SynapseArtifactListDTO list(List<String> list) { | ||
this.list = list; | ||
return this; | ||
} | ||
|
||
|
||
@ApiModelProperty(value = "") | ||
@JsonProperty("list") | ||
public List<String> getList() { | ||
return list; | ||
} | ||
public void setList(List<String> list) { | ||
this.list = list; | ||
} | ||
|
||
/** | ||
**/ | ||
public SynapseArtifactListDTO pagination(PaginationDTO pagination) { | ||
this.pagination = pagination; | ||
return this; | ||
} | ||
|
||
|
||
@ApiModelProperty(value = "") | ||
@Valid | ||
@JsonProperty("pagination") | ||
public PaginationDTO getPagination() { | ||
return pagination; | ||
} | ||
public void setPagination(PaginationDTO pagination) { | ||
this.pagination = pagination; | ||
} | ||
|
||
|
||
@Override | ||
public boolean equals(java.lang.Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
SynapseArtifactListDTO synapseArtifactList = (SynapseArtifactListDTO) o; | ||
return Objects.equals(count, synapseArtifactList.count) && | ||
Objects.equals(list, synapseArtifactList.list) && | ||
Objects.equals(pagination, synapseArtifactList.pagination); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(count, list, pagination); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class SynapseArtifactListDTO {\n"); | ||
|
||
sb.append(" count: ").append(toIndentedString(count)).append("\n"); | ||
sb.append(" list: ").append(toIndentedString(list)).append("\n"); | ||
sb.append(" pagination: ").append(toIndentedString(pagination)).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 "); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.