Skip to content

Commit

Permalink
Automated SDK update
Browse files Browse the repository at this point in the history
This updates the SDK from internal repo commit segmentio/public-api@93180b2c.
  • Loading branch information
APIs and Common Services team committed Sep 7, 2023
1 parent 50fa61c commit af0a1fe
Show file tree
Hide file tree
Showing 30 changed files with 7,993 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ All endpoints in the API follow REST conventions and use standard HTTP methods.

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

Latest API and SDK version: 36.1.1
Latest API and SDK version: 36.2.0

## Requirements

Expand All @@ -28,7 +28,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.segment.publicapi</groupId>
<artifactId>segment-publicapi</artifactId>
<version>36.1.1</version>
<version>36.2.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -44,7 +44,7 @@ Add this dependency to your project's build file:
}
dependencies {
implementation "com.segment.publicapi:segment-publicapi:36.1.1"
implementation "com.segment.publicapi:segment-publicapi:36.2.0"
}
```

Expand All @@ -58,7 +58,7 @@ mvn clean package

Then manually install the following JARs:

* `target/segment-publicapi-36.1.1.jar`
* `target/segment-publicapi-36.2.0.jar`
* `target/lib/*.jar`

You are now ready to start making calls to Public API!
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>segment-publicapi</artifactId>
<packaging>jar</packaging>
<name>segment-publicapi</name>
<version>36.1.1</version>
<version>36.2.0</version>
<url>https://segment.com/docs/api/public-api/</url>
<description>Segment Public API</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/segment/publicapi/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ private void init() {
json = new JSON();

// Set default User-Agent.
setUserAgent("Public API SDK 36.1.1 (Java)");
setUserAgent("Public API SDK 36.2.0 (Java)");

authentications = new HashMap<String, Authentication>();
}
Expand Down
60 changes: 60 additions & 0 deletions src/main/java/com/segment/publicapi/JSON.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ private static Class getClassByDiscriminator(
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.AllowedLabelBeta.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.Audience.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.AudienceSummary.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.AuditEventV1.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
Expand All @@ -179,6 +183,10 @@ private static Class getClassByDiscriminator(
new com.segment.publicapi.models.BreakdownBeta.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.CommonSourceSettingsV1.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.ComputedTrait.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.ComputedTraitSummary.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.Contact.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
Expand Down Expand Up @@ -556,6 +564,16 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.GetAdvancedSyncScheduleFromWarehouseV1Output
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.GetAudience200Response.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.GetAudienceAlphaOutput.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.GetComputedTrait200Response
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.GetComputedTraitAlphaOutput
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.GetConnectionStateFromWarehouse200Response
.CustomTypeAdapterFactory());
Expand Down Expand Up @@ -775,12 +793,24 @@ private static Class getClassByDiscriminator(
new com.segment.publicapi.models.LabelAlpha.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.LabelV1.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.ListAudiences200Response
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.ListAudiencesAlphaOutput
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.ListAuditEvents200Response
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.ListAuditEventsV1Output
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.ListComputedTraits200Response
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.ListComputedTraitsAlphaOutput
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.ListConnectedDestinationsFromSource200Response
.CustomTypeAdapterFactory());
Expand Down Expand Up @@ -1081,6 +1111,18 @@ private static Class getClassByDiscriminator(
new com.segment.publicapi.models.Regulation.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.RegulationListEntryV1.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.RemoveAudienceFromSpace200Response
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.RemoveAudienceFromSpaceAlphaOutput
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.RemoveComputedTraitFromSpace200Response
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.RemoveComputedTraitFromSpaceAlphaOutput
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.RemoveFilterFromDestination200Response
.CustomTypeAdapterFactory());
Expand Down Expand Up @@ -1312,6 +1354,24 @@ private static Class getClassByDiscriminator(
new com.segment.publicapi.models.TransformationBeta.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.TransformationV1.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.UpdateAudienceForSpace200Response
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.UpdateAudienceForSpaceAlphaOutput
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.UpdateAudienceForSpaceInput
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.UpdateComputedTraitForSpace200Response
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.UpdateComputedTraitForSpaceAlphaInput
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.UpdateComputedTraitForSpaceAlphaOutput
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.UpdateDestination200Response
.CustomTypeAdapterFactory());
Expand Down
Loading

0 comments on commit af0a1fe

Please sign in to comment.