Skip to content

Commit a3454c7

Browse files
author
devexperience
committed
Generated version 1.11.0
This commit was automatically created by a GitHub Action to generate version 1.11.0 of this library.
1 parent cd15ca1 commit a3454c7

File tree

11 files changed

+89
-9
lines changed

11 files changed

+89
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ mvn clean package
2424
```
2525

2626
Then manually install the following JARs:
27-
- `target/mx-platform-java-1.10.1.jar`
27+
- `target/mx-platform-java-1.11.0.jar`
2828
- `target/lib/*.jar`
2929

3030
### Maven users
@@ -35,7 +35,7 @@ Add this dependency to your project's POM:
3535
<dependency>
3636
<groupId>com.mx</groupId>
3737
<artifactId>mx-platform-java</artifactId>
38-
<version>1.10.1</version>
38+
<version>1.11.0</version>
3939
<scope>compile</scope>
4040
</dependency>
4141
```

docs/ImageOptionResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
| Name | Type | Description | Notes |
99
|------------ | ------------- | ------------- | -------------|
1010
|**dataUri** | **String** | | [optional] |
11+
|**guid** | **String** | | [optional] |
1112
|**label** | **String** | | [optional] |
1213
|**value** | **String** | | [optional] |
1314

docs/OptionResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
| Name | Type | Description | Notes |
99
|------------ | ------------- | ------------- | -------------|
10+
|**guid** | **String** | | [optional] |
1011
|**label** | **String** | | [optional] |
1112
|**value** | **String** | | [optional] |
1213

openapi/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiPackage: com.mx.client.mx-platform-api
33
artifactDescription: A Java library for the MX Platform API
44
artifactId: mx-platform-java
55
artifactUrl: https://github.com/mxenabled/mx-platform-java
6-
artifactVersion: 1.10.1
6+
artifactVersion: 1.11.0
77
developerEmail: devexperience@mx.com
88
developerName: MX
99
developerOrganization: MX Technologies Inc.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>mx-platform-java</artifactId>
66
<packaging>jar</packaging>
77
<name>mx-platform-java</name>
8-
<version>1.10.1</version>
8+
<version>1.11.0</version>
99
<url>https://github.com/mxenabled/mx-platform-java</url>
1010
<description>A Java library for the MX Platform API</description>
1111
<scm>

src/main/java/com/mx/client/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ private void init() {
147147
json = new JSON();
148148

149149
// Set default User-Agent.
150-
setUserAgent("OpenAPI-Generator/1.10.1/java");
150+
setUserAgent("OpenAPI-Generator/1.11.0/java");
151151

152152
authentications = new HashMap<String, Authentication>();
153153
}

src/main/java/com/mx/client/Configuration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
1717
public class Configuration {
18-
public static final String VERSION = "1.10.1";
18+
public static final String VERSION = "1.11.0";
1919

2020
private static ApiClient defaultApiClient = new ApiClient();
2121

src/main/java/com/mx/client/model/ImageOptionResponse.java

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ public class ImageOptionResponse {
5656
@SerializedName(SERIALIZED_NAME_DATA_URI)
5757
private String dataUri;
5858

59+
public static final String SERIALIZED_NAME_GUID = "guid";
60+
@SerializedName(SERIALIZED_NAME_GUID)
61+
private String guid;
62+
5963
public static final String SERIALIZED_NAME_LABEL = "label";
6064
@SerializedName(SERIALIZED_NAME_LABEL)
6165
private String label;
@@ -88,6 +92,27 @@ public void setDataUri(String dataUri) {
8892
}
8993

9094

95+
public ImageOptionResponse guid(String guid) {
96+
97+
this.guid = guid;
98+
return this;
99+
}
100+
101+
/**
102+
* Get guid
103+
* @return guid
104+
**/
105+
@javax.annotation.Nullable
106+
public String getGuid() {
107+
return guid;
108+
}
109+
110+
111+
public void setGuid(String guid) {
112+
this.guid = guid;
113+
}
114+
115+
91116
public ImageOptionResponse label(String label) {
92117

93118
this.label = label;
@@ -141,6 +166,7 @@ public boolean equals(Object o) {
141166
}
142167
ImageOptionResponse imageOptionResponse = (ImageOptionResponse) o;
143168
return Objects.equals(this.dataUri, imageOptionResponse.dataUri) &&
169+
Objects.equals(this.guid, imageOptionResponse.guid) &&
144170
Objects.equals(this.label, imageOptionResponse.label) &&
145171
Objects.equals(this.value, imageOptionResponse.value);
146172
}
@@ -151,7 +177,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b)
151177

152178
@Override
153179
public int hashCode() {
154-
return Objects.hash(dataUri, label, value);
180+
return Objects.hash(dataUri, guid, label, value);
155181
}
156182

157183
private static <T> int hashCodeNullable(JsonNullable<T> a) {
@@ -166,6 +192,7 @@ public String toString() {
166192
StringBuilder sb = new StringBuilder();
167193
sb.append("class ImageOptionResponse {\n");
168194
sb.append(" dataUri: ").append(toIndentedString(dataUri)).append("\n");
195+
sb.append(" guid: ").append(toIndentedString(guid)).append("\n");
169196
sb.append(" label: ").append(toIndentedString(label)).append("\n");
170197
sb.append(" value: ").append(toIndentedString(value)).append("\n");
171198
sb.append("}");
@@ -191,6 +218,7 @@ private String toIndentedString(Object o) {
191218
// a set of all properties/fields (JSON key names)
192219
openapiFields = new HashSet<String>();
193220
openapiFields.add("data_uri");
221+
openapiFields.add("guid");
194222
openapiFields.add("label");
195223
openapiFields.add("value");
196224

@@ -222,6 +250,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
222250
if ((jsonObj.get("data_uri") != null && !jsonObj.get("data_uri").isJsonNull()) && !jsonObj.get("data_uri").isJsonPrimitive()) {
223251
throw new IllegalArgumentException(String.format("Expected the field `data_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("data_uri").toString()));
224252
}
253+
if ((jsonObj.get("guid") != null && !jsonObj.get("guid").isJsonNull()) && !jsonObj.get("guid").isJsonPrimitive()) {
254+
throw new IllegalArgumentException(String.format("Expected the field `guid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("guid").toString()));
255+
}
225256
if ((jsonObj.get("label") != null && !jsonObj.get("label").isJsonNull()) && !jsonObj.get("label").isJsonPrimitive()) {
226257
throw new IllegalArgumentException(String.format("Expected the field `label` to be a primitive type in the JSON string but got `%s`", jsonObj.get("label").toString()));
227258
}

src/main/java/com/mx/client/model/OptionResponse.java

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@
5252
*/
5353
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
5454
public class OptionResponse {
55+
public static final String SERIALIZED_NAME_GUID = "guid";
56+
@SerializedName(SERIALIZED_NAME_GUID)
57+
private String guid;
58+
5559
public static final String SERIALIZED_NAME_LABEL = "label";
5660
@SerializedName(SERIALIZED_NAME_LABEL)
5761
private String label;
@@ -63,6 +67,27 @@ public class OptionResponse {
6367
public OptionResponse() {
6468
}
6569

70+
public OptionResponse guid(String guid) {
71+
72+
this.guid = guid;
73+
return this;
74+
}
75+
76+
/**
77+
* Get guid
78+
* @return guid
79+
**/
80+
@javax.annotation.Nullable
81+
public String getGuid() {
82+
return guid;
83+
}
84+
85+
86+
public void setGuid(String guid) {
87+
this.guid = guid;
88+
}
89+
90+
6691
public OptionResponse label(String label) {
6792

6893
this.label = label;
@@ -115,7 +140,8 @@ public boolean equals(Object o) {
115140
return false;
116141
}
117142
OptionResponse optionResponse = (OptionResponse) o;
118-
return Objects.equals(this.label, optionResponse.label) &&
143+
return Objects.equals(this.guid, optionResponse.guid) &&
144+
Objects.equals(this.label, optionResponse.label) &&
119145
Objects.equals(this.value, optionResponse.value);
120146
}
121147

@@ -125,7 +151,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b)
125151

126152
@Override
127153
public int hashCode() {
128-
return Objects.hash(label, value);
154+
return Objects.hash(guid, label, value);
129155
}
130156

131157
private static <T> int hashCodeNullable(JsonNullable<T> a) {
@@ -139,6 +165,7 @@ private static <T> int hashCodeNullable(JsonNullable<T> a) {
139165
public String toString() {
140166
StringBuilder sb = new StringBuilder();
141167
sb.append("class OptionResponse {\n");
168+
sb.append(" guid: ").append(toIndentedString(guid)).append("\n");
142169
sb.append(" label: ").append(toIndentedString(label)).append("\n");
143170
sb.append(" value: ").append(toIndentedString(value)).append("\n");
144171
sb.append("}");
@@ -163,6 +190,7 @@ private String toIndentedString(Object o) {
163190
static {
164191
// a set of all properties/fields (JSON key names)
165192
openapiFields = new HashSet<String>();
193+
openapiFields.add("guid");
166194
openapiFields.add("label");
167195
openapiFields.add("value");
168196

@@ -191,6 +219,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
191219
}
192220
}
193221
JsonObject jsonObj = jsonElement.getAsJsonObject();
222+
if ((jsonObj.get("guid") != null && !jsonObj.get("guid").isJsonNull()) && !jsonObj.get("guid").isJsonPrimitive()) {
223+
throw new IllegalArgumentException(String.format("Expected the field `guid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("guid").toString()));
224+
}
194225
if ((jsonObj.get("label") != null && !jsonObj.get("label").isJsonNull()) && !jsonObj.get("label").isJsonPrimitive()) {
195226
throw new IllegalArgumentException(String.format("Expected the field `label` to be a primitive type in the JSON string but got `%s`", jsonObj.get("label").toString()));
196227
}

src/test/java/com/mx/client/model/ImageOptionResponseTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ public void dataUriTest() {
4646
// TODO: test dataUri
4747
}
4848

49+
/**
50+
* Test the property 'guid'
51+
*/
52+
@Test
53+
public void guidTest() {
54+
// TODO: test guid
55+
}
56+
4957
/**
5058
* Test the property 'label'
5159
*/

0 commit comments

Comments
 (0)