Skip to content

Commit 18b602e

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@0028a39c.
1 parent 063518f commit 18b602e

File tree

6 files changed

+74
-11
lines changed

6 files changed

+74
-11
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ All endpoints in the API follow REST conventions and use standard HTTP methods.
1010

1111
See the next sections for more information on how to use the Segment Public API Java SDK.
1212

13-
Latest API and SDK version: 53.0.0
13+
Latest API and SDK version: 53.1.0
1414

1515
## Requirements
1616

@@ -28,7 +28,7 @@ Add this dependency to your project's POM:
2828
<dependency>
2929
<groupId>com.segment.publicapi</groupId>
3030
<artifactId>segment-publicapi</artifactId>
31-
<version>53.0.0</version>
31+
<version>53.1.0</version>
3232
<scope>compile</scope>
3333
</dependency>
3434
```
@@ -44,7 +44,7 @@ Add this dependency to your project's build file:
4444
}
4545
4646
dependencies {
47-
implementation "com.segment.publicapi:segment-publicapi:53.0.0"
47+
implementation "com.segment.publicapi:segment-publicapi:53.1.0"
4848
}
4949
```
5050

@@ -58,7 +58,7 @@ mvn clean package
5858

5959
Then manually install the following JARs:
6060

61-
* `target/segment-publicapi-53.0.0.jar`
61+
* `target/segment-publicapi-53.1.0.jar`
6262
* `target/lib/*.jar`
6363

6464
You are now ready to start making calls to Public API!

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>segment-publicapi</artifactId>
66
<packaging>jar</packaging>
77
<name>segment-publicapi</name>
8-
<version>53.0.0</version>
8+
<version>53.1.0</version>
99
<url>https://segment.com/docs/api/public-api/</url>
1010
<description>Segment Public API</description>
1111
<scm>

src/main/java/com/segment/publicapi/ApiClient.java

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

125125
// Set default User-Agent.
126-
setUserAgent("Public API SDK 53.0.0 (Java)");
126+
setUserAgent("Public API SDK 53.1.0 (Java)");
127127

128128
authentications = new HashMap<String, Authentication>();
129129
}

src/main/java/com/segment/publicapi/Configuration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
package com.segment.publicapi;
1313

1414
public class Configuration {
15-
public static final String VERSION = "53.0.0";
15+
public static final String VERSION = "53.1.0";
1616

1717
private static ApiClient defaultApiClient = new ApiClient();
1818

src/main/java/com/segment/publicapi/models/CreateSourceV1Input.java

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ public class CreateSourceV1Input {
5050
@SerializedName(SERIALIZED_NAME_SETTINGS)
5151
private Map<String, Object> settings;
5252

53+
public static final String SERIALIZED_NAME_DISCONNECT_ALL_WAREHOUSES =
54+
"disconnectAllWarehouses";
55+
56+
@SerializedName(SERIALIZED_NAME_DISCONNECT_ALL_WAREHOUSES)
57+
private Boolean disconnectAllWarehouses;
58+
5359
public CreateSourceV1Input() {}
5460

5561
public CreateSourceV1Input slug(String slug) {
@@ -142,6 +148,26 @@ public void setSettings(Map<String, Object> settings) {
142148
this.settings = settings;
143149
}
144150

151+
public CreateSourceV1Input disconnectAllWarehouses(Boolean disconnectAllWarehouses) {
152+
153+
this.disconnectAllWarehouses = disconnectAllWarehouses;
154+
return this;
155+
}
156+
157+
/**
158+
* Whether to disconnect all Warehouses from the Source.
159+
*
160+
* @return disconnectAllWarehouses
161+
*/
162+
@javax.annotation.Nullable
163+
public Boolean getDisconnectAllWarehouses() {
164+
return disconnectAllWarehouses;
165+
}
166+
167+
public void setDisconnectAllWarehouses(Boolean disconnectAllWarehouses) {
168+
this.disconnectAllWarehouses = disconnectAllWarehouses;
169+
}
170+
145171
@Override
146172
public boolean equals(Object o) {
147173
if (this == o) {
@@ -154,12 +180,14 @@ public boolean equals(Object o) {
154180
return Objects.equals(this.slug, createSourceV1Input.slug)
155181
&& Objects.equals(this.enabled, createSourceV1Input.enabled)
156182
&& Objects.equals(this.metadataId, createSourceV1Input.metadataId)
157-
&& Objects.equals(this.settings, createSourceV1Input.settings);
183+
&& Objects.equals(this.settings, createSourceV1Input.settings)
184+
&& Objects.equals(
185+
this.disconnectAllWarehouses, createSourceV1Input.disconnectAllWarehouses);
158186
}
159187

160188
@Override
161189
public int hashCode() {
162-
return Objects.hash(slug, enabled, metadataId, settings);
190+
return Objects.hash(slug, enabled, metadataId, settings, disconnectAllWarehouses);
163191
}
164192

165193
@Override
@@ -170,6 +198,9 @@ public String toString() {
170198
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
171199
sb.append(" metadataId: ").append(toIndentedString(metadataId)).append("\n");
172200
sb.append(" settings: ").append(toIndentedString(settings)).append("\n");
201+
sb.append(" disconnectAllWarehouses: ")
202+
.append(toIndentedString(disconnectAllWarehouses))
203+
.append("\n");
173204
sb.append("}");
174205
return sb.toString();
175206
}
@@ -195,6 +226,7 @@ private String toIndentedString(Object o) {
195226
openapiFields.add("enabled");
196227
openapiFields.add("metadataId");
197228
openapiFields.add("settings");
229+
openapiFields.add("disconnectAllWarehouses");
198230

199231
// a set of required properties/fields (JSON key names)
200232
openapiRequiredFields = new HashSet<String>();

src/main/java/com/segment/publicapi/models/CreateWarehouseV1Input.java

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ public class CreateWarehouseV1Input {
5050
@SerializedName(SERIALIZED_NAME_SETTINGS)
5151
private Map<String, Object> settings;
5252

53+
public static final String SERIALIZED_NAME_DISCONNECT_ALL_SOURCES = "disconnectAllSources";
54+
55+
@SerializedName(SERIALIZED_NAME_DISCONNECT_ALL_SOURCES)
56+
private Boolean disconnectAllSources;
57+
5358
public CreateWarehouseV1Input() {}
5459

5560
public CreateWarehouseV1Input metadataId(String metadataId) {
@@ -140,6 +145,26 @@ public void setSettings(Map<String, Object> settings) {
140145
this.settings = settings;
141146
}
142147

148+
public CreateWarehouseV1Input disconnectAllSources(Boolean disconnectAllSources) {
149+
150+
this.disconnectAllSources = disconnectAllSources;
151+
return this;
152+
}
153+
154+
/**
155+
* Whether to disconnect all Sources from this Warehouse.
156+
*
157+
* @return disconnectAllSources
158+
*/
159+
@javax.annotation.Nullable
160+
public Boolean getDisconnectAllSources() {
161+
return disconnectAllSources;
162+
}
163+
164+
public void setDisconnectAllSources(Boolean disconnectAllSources) {
165+
this.disconnectAllSources = disconnectAllSources;
166+
}
167+
143168
@Override
144169
public boolean equals(Object o) {
145170
if (this == o) {
@@ -152,12 +177,14 @@ public boolean equals(Object o) {
152177
return Objects.equals(this.metadataId, createWarehouseV1Input.metadataId)
153178
&& Objects.equals(this.name, createWarehouseV1Input.name)
154179
&& Objects.equals(this.enabled, createWarehouseV1Input.enabled)
155-
&& Objects.equals(this.settings, createWarehouseV1Input.settings);
180+
&& Objects.equals(this.settings, createWarehouseV1Input.settings)
181+
&& Objects.equals(
182+
this.disconnectAllSources, createWarehouseV1Input.disconnectAllSources);
156183
}
157184

158185
@Override
159186
public int hashCode() {
160-
return Objects.hash(metadataId, name, enabled, settings);
187+
return Objects.hash(metadataId, name, enabled, settings, disconnectAllSources);
161188
}
162189

163190
@Override
@@ -168,6 +195,9 @@ public String toString() {
168195
sb.append(" name: ").append(toIndentedString(name)).append("\n");
169196
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
170197
sb.append(" settings: ").append(toIndentedString(settings)).append("\n");
198+
sb.append(" disconnectAllSources: ")
199+
.append(toIndentedString(disconnectAllSources))
200+
.append("\n");
171201
sb.append("}");
172202
return sb.toString();
173203
}
@@ -193,6 +223,7 @@ private String toIndentedString(Object o) {
193223
openapiFields.add("name");
194224
openapiFields.add("enabled");
195225
openapiFields.add("settings");
226+
openapiFields.add("disconnectAllSources");
196227

197228
// a set of required properties/fields (JSON key names)
198229
openapiRequiredFields = new HashSet<String>();

0 commit comments

Comments
 (0)