Skip to content

Commit ab44377

Browse files
committed
Merge branch 'release/2021-05'
2 parents 720185b + d80dbeb commit ab44377

12 files changed

+223
-57
lines changed

api/openapi.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -1120,6 +1120,8 @@ components:
11201120
Project:
11211121
example:
11221122
'@type': Project
1123+
defaultBranch:
1124+
id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
11231125
name: name
11241126
description: description
11251127
id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
@@ -1128,6 +1130,8 @@ components:
11281130
enum:
11291131
- Project
11301132
type: string
1133+
defaultBranch:
1134+
$ref: '#/components/schemas/Project_defaultBranch'
11311135
description:
11321136
type: string
11331137
id:
@@ -1390,6 +1394,14 @@ components:
13901394
error:
13911395
type: string
13921396
type: object
1397+
Project_defaultBranch:
1398+
description: Branch
1399+
example:
1400+
id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
1401+
properties:
1402+
id:
1403+
format: uuid
1404+
type: string
13931405
Branch_head:
13941406
description: Commit
13951407
example:

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'eclipse'
33
apply plugin: 'java'
44

55
group = 'org.omg.sysml'
6-
version = '2021-04'
6+
version = '2021-05'
77

88
buildscript {
99
repositories {

build.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "org.omg.sysml",
44
name := "sysml-v2-api-client",
5-
version := "2021-04",
5+
version := "2021-05",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/Project.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
99
**atType** | [**AtTypeEnum**](#AtTypeEnum) | | [optional]
10+
**defaultBranch** | [**ProjectDefaultBranch**](ProjectDefaultBranch.md) | | [optional]
1011
**description** | **String** | | [optional]
1112
**id** | [**UUID**](UUID.md) | | [optional]
1213
**name** | **String** | | [optional]

docs/ProjectDefaultBranch.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
3+
# ProjectDefaultBranch
4+
5+
Branch
6+
## Properties
7+
8+
Name | Type | Description | Notes
9+
------------ | ------------- | ------------- | -------------
10+
**id** | [**UUID**](UUID.md) | | [optional]
11+
12+
13+

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>sysml-v2-api-client</artifactId>
66
<packaging>jar</packaging>
77
<name>sysml-v2-api-client</name>
8-
<version>2021-04</version>
8+
<version>2021-05</version>
99
<url>https://github.com/openapitools/openapi-generator</url>
1010
<description>OpenAPI Java</description>
1111
<scm>

src/main/java/org/omg/sysml/ApiClient.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ private void init() {
108108
json = new JSON();
109109

110110
// Set default User-Agent.
111-
setUserAgent("OpenAPI-Generator/2021-04/java");
111+
setUserAgent("OpenAPI-Generator/2021-05/java");
112112

113113
authentications = new HashMap<String, Authentication>();
114114
}

src/main/java/org/omg/sysml/model/Project.java

+31-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import io.swagger.annotations.ApiModelProperty;
2525
import java.io.IOException;
2626
import java.util.UUID;
27+
import org.omg.sysml.model.ProjectDefaultBranch;
2728

2829
/**
2930
* Project
@@ -79,6 +80,10 @@ public AtTypeEnum read(final JsonReader jsonReader) throws IOException {
7980
@SerializedName(SERIALIZED_NAME_AT_TYPE)
8081
private AtTypeEnum atType;
8182

83+
public static final String SERIALIZED_NAME_DEFAULT_BRANCH = "defaultBranch";
84+
@SerializedName(SERIALIZED_NAME_DEFAULT_BRANCH)
85+
private ProjectDefaultBranch defaultBranch;
86+
8287
public static final String SERIALIZED_NAME_DESCRIPTION = "description";
8388
@SerializedName(SERIALIZED_NAME_DESCRIPTION)
8489
private String description;
@@ -115,6 +120,29 @@ public void setAtType(AtTypeEnum atType) {
115120
}
116121

117122

123+
public Project defaultBranch(ProjectDefaultBranch defaultBranch) {
124+
125+
this.defaultBranch = defaultBranch;
126+
return this;
127+
}
128+
129+
/**
130+
* Get defaultBranch
131+
* @return defaultBranch
132+
**/
133+
@javax.annotation.Nullable
134+
@ApiModelProperty(value = "")
135+
136+
public ProjectDefaultBranch getDefaultBranch() {
137+
return defaultBranch;
138+
}
139+
140+
141+
public void setDefaultBranch(ProjectDefaultBranch defaultBranch) {
142+
this.defaultBranch = defaultBranch;
143+
}
144+
145+
118146
public Project description(String description) {
119147

120148
this.description = description;
@@ -194,14 +222,15 @@ public boolean equals(java.lang.Object o) {
194222
}
195223
Project project = (Project) o;
196224
return Objects.equals(this.atType, project.atType) &&
225+
Objects.equals(this.defaultBranch, project.defaultBranch) &&
197226
Objects.equals(this.description, project.description) &&
198227
Objects.equals(this.id, project.id) &&
199228
Objects.equals(this.name, project.name);
200229
}
201230

202231
@Override
203232
public int hashCode() {
204-
return Objects.hash(atType, description, id, name);
233+
return Objects.hash(atType, defaultBranch, description, id, name);
205234
}
206235

207236

@@ -210,6 +239,7 @@ public String toString() {
210239
StringBuilder sb = new StringBuilder();
211240
sb.append("class Project {\n");
212241
sb.append(" atType: ").append(toIndentedString(atType)).append("\n");
242+
sb.append(" defaultBranch: ").append(toIndentedString(defaultBranch)).append("\n");
213243
sb.append(" description: ").append(toIndentedString(description)).append("\n");
214244
sb.append(" id: ").append(toIndentedString(id)).append("\n");
215245
sb.append(" name: ").append(toIndentedString(name)).append("\n");
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
/*
2+
* SysML v2 API and Services
3+
* REST/HTTP binding (PSM) for the SysML v2 standard API.
4+
*
5+
* The version of the OpenAPI document: 1.0.0
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
14+
package org.omg.sysml.model;
15+
16+
import java.util.Objects;
17+
import java.util.Arrays;
18+
import com.google.gson.TypeAdapter;
19+
import com.google.gson.annotations.JsonAdapter;
20+
import com.google.gson.annotations.SerializedName;
21+
import com.google.gson.stream.JsonReader;
22+
import com.google.gson.stream.JsonWriter;
23+
import io.swagger.annotations.ApiModel;
24+
import io.swagger.annotations.ApiModelProperty;
25+
import java.io.IOException;
26+
import java.util.UUID;
27+
28+
/**
29+
* Branch
30+
*/
31+
@ApiModel(description = "Branch")
32+
33+
public class ProjectDefaultBranch {
34+
public static final String SERIALIZED_NAME_ID = "id";
35+
@SerializedName(SERIALIZED_NAME_ID)
36+
private UUID id;
37+
38+
39+
public ProjectDefaultBranch id(UUID id) {
40+
41+
this.id = id;
42+
return this;
43+
}
44+
45+
/**
46+
* Get id
47+
* @return id
48+
**/
49+
@javax.annotation.Nullable
50+
@ApiModelProperty(value = "")
51+
52+
public UUID getId() {
53+
return id;
54+
}
55+
56+
57+
public void setId(UUID id) {
58+
this.id = id;
59+
}
60+
61+
62+
@Override
63+
public boolean equals(java.lang.Object o) {
64+
if (this == o) {
65+
return true;
66+
}
67+
if (o == null || getClass() != o.getClass()) {
68+
return false;
69+
}
70+
ProjectDefaultBranch projectDefaultBranch = (ProjectDefaultBranch) o;
71+
return Objects.equals(this.id, projectDefaultBranch.id);
72+
}
73+
74+
@Override
75+
public int hashCode() {
76+
return Objects.hash(id);
77+
}
78+
79+
80+
@Override
81+
public String toString() {
82+
StringBuilder sb = new StringBuilder();
83+
sb.append("class ProjectDefaultBranch {\n");
84+
sb.append(" id: ").append(toIndentedString(id)).append("\n");
85+
sb.append("}");
86+
return sb.toString();
87+
}
88+
89+
/**
90+
* Convert the given object to string with each line indented by 4 spaces
91+
* (except the first line).
92+
*/
93+
private String toIndentedString(java.lang.Object o) {
94+
if (o == null) {
95+
return "null";
96+
}
97+
return o.toString().replace("\n", "\n ");
98+
}
99+
100+
}
101+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
/*
2+
* SysML v2 API and Services
3+
* REST/HTTP binding (PSM) for the SysML v2 standard API.
4+
*
5+
* The version of the OpenAPI document: 1.0.0
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
14+
package org.omg.sysml.model;
15+
16+
import com.google.gson.TypeAdapter;
17+
import com.google.gson.annotations.JsonAdapter;
18+
import com.google.gson.annotations.SerializedName;
19+
import com.google.gson.stream.JsonReader;
20+
import com.google.gson.stream.JsonWriter;
21+
import io.swagger.annotations.ApiModel;
22+
import io.swagger.annotations.ApiModelProperty;
23+
import java.io.IOException;
24+
import java.util.UUID;
25+
import org.junit.Assert;
26+
import org.junit.Ignore;
27+
import org.junit.Test;
28+
29+
30+
/**
31+
* Model tests for ProjectDefaultBranch
32+
*/
33+
public class ProjectDefaultBranchTest {
34+
private final ProjectDefaultBranch model = new ProjectDefaultBranch();
35+
36+
/**
37+
* Model tests for ProjectDefaultBranch
38+
*/
39+
@Test
40+
public void testProjectDefaultBranch() {
41+
// TODO: test ProjectDefaultBranch
42+
}
43+
44+
/**
45+
* Test the property 'id'
46+
*/
47+
@Test
48+
public void idTest() {
49+
// TODO: test id
50+
}
51+
52+
}

src/test/java/org/omg/sysml/model/ProjectTest.java

+9
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import io.swagger.annotations.ApiModelProperty;
2323
import java.io.IOException;
2424
import java.util.UUID;
25+
import org.omg.sysml.model.ProjectDefaultBranch;
2526
import org.junit.Assert;
2627
import org.junit.Ignore;
2728
import org.junit.Test;
@@ -49,6 +50,14 @@ public void atTypeTest() {
4950
// TODO: test atType
5051
}
5152

53+
/**
54+
* Test the property 'defaultBranch'
55+
*/
56+
@Test
57+
public void defaultBranchTest() {
58+
// TODO: test defaultBranch
59+
}
60+
5261
/**
5362
* Test the property 'description'
5463
*/

test-sysml-v2-api-java-client.jsh

-52
This file was deleted.

0 commit comments

Comments
 (0)