Skip to content

Commit b3df139

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@0d8ae975.
1 parent dae9caf commit b3df139

7 files changed

Lines changed: 58 additions & 70 deletions

File tree

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: 73.0.3
13+
Latest API and SDK version: 73.0.4
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>73.0.3</version>
31+
<version>73.0.4</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:73.0.3"
47+
implementation "com.segment.publicapi:segment-publicapi:73.0.4"
4848
}
4949
```
5050

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

5959
Then manually install the following JARs:
6060

61-
* `target/segment-publicapi-73.0.3.jar`
61+
* `target/segment-publicapi-73.0.4.jar`
6262
* `target/lib/*.jar`
6363

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

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
73.0.3
1+
73.0.4

docs/DeletionAndSuppressionApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public class Example {
9595
9696
Create Source Regulation
9797

98-
Creates a Source-scoped regulation. Please Note: Suppression rules at the Workspace level take precedence over those at the Source level. If a user has been suppressed at the Workspace level, any attempt to un-suppress at the Source level is not supported and the processing of the request will fail in Segment • When called, this endpoint may generate the &#x60;Source Regulation Created&#x60; event in the [audit trail](/tag/Audit-Trail). Config API omitted fields: - &#x60;attributes&#x60;, - &#x60;userAgent&#x60; Rate limit headers will be updated to reflect regulation-specific limits (tracked separately for Segment-only vs Segment &amp; Destination regulation types): - X-RateLimit-Remaining: Remaining requests for the regulation type category - Segment-only Regulations: DELETE_INTERNAL, SUPPRESS_WITH_DELETE_INTERNAL, SUPPRESS_ONLY, UNSUPPRESS, DELETE_ARCHIVE_ONLY - Segment &amp; Destination Regulations: DELETE_ONLY, SUPPRESS_WITH_DELETE - X-RateLimit-Reset: RFC 5322 timestamp for when the quota resets (for example, Tue, 31 Dec 2024 23:59:59 GMT)
98+
Creates a Source-scoped regulation. Please Note: Suppression rules at the Workspace level take precedence over those at the Source level. If a user has been suppressed at the Workspace level, any attempt to un-suppress at the Source level is not supported and the processing of the request will fail in Segment Config API omitted fields: - &#x60;attributes&#x60;, - &#x60;userAgent&#x60; Rate limit headers will be updated to reflect regulation-specific limits (tracked separately for Segment-only vs Segment &amp; Destination regulation types): - X-RateLimit-Remaining: Remaining requests for the regulation type category - Segment-only Regulations: DELETE_INTERNAL, SUPPRESS_WITH_DELETE_INTERNAL, SUPPRESS_ONLY, UNSUPPRESS, DELETE_ARCHIVE_ONLY - Segment &amp; Destination Regulations: DELETE_ONLY, SUPPRESS_WITH_DELETE - X-RateLimit-Reset: RFC 5322 timestamp for when the quota resets (for example, Tue, 31 Dec 2024 23:59:59 GMT)
9999

100100
### Example
101101

@@ -170,7 +170,7 @@ public class Example {
170170
171171
Create Workspace Regulation
172172

173-
Creates a Workspace-scoped regulation. • When called, this endpoint may generate the &#x60;Workspace Regulation Created&#x60; event in the [audit trail](/tag/Audit-Trail). Config API omitted fields: - &#x60;attributes&#x60;, - &#x60;userAgent&#x60; Rate limit headers will be updated to reflect regulation-specific limits (tracked separately for Segment-only vs Segment &amp; Destination regulation types): - X-RateLimit-Remaining: Remaining requests for the regulation type category - Segment-only Regulations: DELETE_INTERNAL, SUPPRESS_WITH_DELETE_INTERNAL, SUPPRESS_ONLY, UNSUPPRESS, DELETE_ARCHIVE_ONLY - Segment &amp; Destination Regulations: DELETE_ONLY, SUPPRESS_WITH_DELETE - X-RateLimit-Reset: RFC 5322 timestamp for when the quota resets (for example, Tue, 31 Dec 2024 23:59:59 GMT)
173+
Creates a Workspace-scoped regulation. Config API omitted fields: - &#x60;attributes&#x60;, - &#x60;userAgent&#x60; Rate limit headers will be updated to reflect regulation-specific limits (tracked separately for Segment-only vs Segment &amp; Destination regulation types): - X-RateLimit-Remaining: Remaining requests for the regulation type category - Segment-only Regulations: DELETE_INTERNAL, SUPPRESS_WITH_DELETE_INTERNAL, SUPPRESS_ONLY, UNSUPPRESS, DELETE_ARCHIVE_ONLY - Segment &amp; Destination Regulations: DELETE_ONLY, SUPPRESS_WITH_DELETE - X-RateLimit-Reset: RFC 5322 timestamp for when the quota resets (for example, Tue, 31 Dec 2024 23:59:59 GMT)
174174

175175
### Example
176176

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>73.0.3</version>
8+
<version>73.0.4</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 73.0.3 (Java)");
126+
setUserAgent("Public API SDK 73.0.4 (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 = "73.0.3";
15+
public static final String VERSION = "73.0.4";
1616

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

src/main/java/com/segment/publicapi/api/DeletionAndSuppressionApi.java

Lines changed: 48 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -419,16 +419,14 @@ private okhttp3.Call createSourceRegulationValidateBeforeCall(
419419
* Create Source Regulation Creates a Source-scoped regulation. Please Note: Suppression rules
420420
* at the Workspace level take precedence over those at the Source level. If a user has been
421421
* suppressed at the Workspace level, any attempt to un-suppress at the Source level is not
422-
* supported and the processing of the request will fail in Segment • When called, this endpoint
423-
* may generate the &#x60;Source Regulation Created&#x60; event in the [audit
424-
* trail](/tag/Audit-Trail). Config API omitted fields: - &#x60;attributes&#x60;, -
425-
* &#x60;userAgent&#x60; Rate limit headers will be updated to reflect regulation-specific
426-
* limits (tracked separately for Segment-only vs Segment &amp; Destination regulation types): -
427-
* X-RateLimit-Remaining: Remaining requests for the regulation type category - Segment-only
428-
* Regulations: DELETE_INTERNAL, SUPPRESS_WITH_DELETE_INTERNAL, SUPPRESS_ONLY, UNSUPPRESS,
429-
* DELETE_ARCHIVE_ONLY - Segment &amp; Destination Regulations: DELETE_ONLY,
430-
* SUPPRESS_WITH_DELETE - X-RateLimit-Reset: RFC 5322 timestamp for when the quota resets (for
431-
* example, Tue, 31 Dec 2024 23:59:59 GMT)
422+
* supported and the processing of the request will fail in Segment Config API omitted fields: -
423+
* &#x60;attributes&#x60;, - &#x60;userAgent&#x60; Rate limit headers will be updated to reflect
424+
* regulation-specific limits (tracked separately for Segment-only vs Segment &amp; Destination
425+
* regulation types): - X-RateLimit-Remaining: Remaining requests for the regulation type
426+
* category - Segment-only Regulations: DELETE_INTERNAL, SUPPRESS_WITH_DELETE_INTERNAL,
427+
* SUPPRESS_ONLY, UNSUPPRESS, DELETE_ARCHIVE_ONLY - Segment &amp; Destination Regulations:
428+
* DELETE_ONLY, SUPPRESS_WITH_DELETE - X-RateLimit-Reset: RFC 5322 timestamp for when the quota
429+
* resets (for example, Tue, 31 Dec 2024 23:59:59 GMT)
432430
*
433431
* @param sourceId (required)
434432
* @param createSourceRegulationV1Input (required)
@@ -456,16 +454,14 @@ public CreateSourceRegulation200Response createSourceRegulation(
456454
* Create Source Regulation Creates a Source-scoped regulation. Please Note: Suppression rules
457455
* at the Workspace level take precedence over those at the Source level. If a user has been
458456
* suppressed at the Workspace level, any attempt to un-suppress at the Source level is not
459-
* supported and the processing of the request will fail in Segment • When called, this endpoint
460-
* may generate the &#x60;Source Regulation Created&#x60; event in the [audit
461-
* trail](/tag/Audit-Trail). Config API omitted fields: - &#x60;attributes&#x60;, -
462-
* &#x60;userAgent&#x60; Rate limit headers will be updated to reflect regulation-specific
463-
* limits (tracked separately for Segment-only vs Segment &amp; Destination regulation types): -
464-
* X-RateLimit-Remaining: Remaining requests for the regulation type category - Segment-only
465-
* Regulations: DELETE_INTERNAL, SUPPRESS_WITH_DELETE_INTERNAL, SUPPRESS_ONLY, UNSUPPRESS,
466-
* DELETE_ARCHIVE_ONLY - Segment &amp; Destination Regulations: DELETE_ONLY,
467-
* SUPPRESS_WITH_DELETE - X-RateLimit-Reset: RFC 5322 timestamp for when the quota resets (for
468-
* example, Tue, 31 Dec 2024 23:59:59 GMT)
457+
* supported and the processing of the request will fail in Segment Config API omitted fields: -
458+
* &#x60;attributes&#x60;, - &#x60;userAgent&#x60; Rate limit headers will be updated to reflect
459+
* regulation-specific limits (tracked separately for Segment-only vs Segment &amp; Destination
460+
* regulation types): - X-RateLimit-Remaining: Remaining requests for the regulation type
461+
* category - Segment-only Regulations: DELETE_INTERNAL, SUPPRESS_WITH_DELETE_INTERNAL,
462+
* SUPPRESS_ONLY, UNSUPPRESS, DELETE_ARCHIVE_ONLY - Segment &amp; Destination Regulations:
463+
* DELETE_ONLY, SUPPRESS_WITH_DELETE - X-RateLimit-Reset: RFC 5322 timestamp for when the quota
464+
* resets (for example, Tue, 31 Dec 2024 23:59:59 GMT)
469465
*
470466
* @param sourceId (required)
471467
* @param createSourceRegulationV1Input (required)
@@ -495,16 +491,14 @@ public ApiResponse<CreateSourceRegulation200Response> createSourceRegulationWith
495491
* Create Source Regulation (asynchronously) Creates a Source-scoped regulation. Please Note:
496492
* Suppression rules at the Workspace level take precedence over those at the Source level. If a
497493
* user has been suppressed at the Workspace level, any attempt to un-suppress at the Source
498-
* level is not supported and the processing of the request will fail in Segment • When called,
499-
* this endpoint may generate the &#x60;Source Regulation Created&#x60; event in the [audit
500-
* trail](/tag/Audit-Trail). Config API omitted fields: - &#x60;attributes&#x60;, -
501-
* &#x60;userAgent&#x60; Rate limit headers will be updated to reflect regulation-specific
502-
* limits (tracked separately for Segment-only vs Segment &amp; Destination regulation types): -
503-
* X-RateLimit-Remaining: Remaining requests for the regulation type category - Segment-only
504-
* Regulations: DELETE_INTERNAL, SUPPRESS_WITH_DELETE_INTERNAL, SUPPRESS_ONLY, UNSUPPRESS,
505-
* DELETE_ARCHIVE_ONLY - Segment &amp; Destination Regulations: DELETE_ONLY,
506-
* SUPPRESS_WITH_DELETE - X-RateLimit-Reset: RFC 5322 timestamp for when the quota resets (for
507-
* example, Tue, 31 Dec 2024 23:59:59 GMT)
494+
* level is not supported and the processing of the request will fail in Segment Config API
495+
* omitted fields: - &#x60;attributes&#x60;, - &#x60;userAgent&#x60; Rate limit headers will be
496+
* updated to reflect regulation-specific limits (tracked separately for Segment-only vs Segment
497+
* &amp; Destination regulation types): - X-RateLimit-Remaining: Remaining requests for the
498+
* regulation type category - Segment-only Regulations: DELETE_INTERNAL,
499+
* SUPPRESS_WITH_DELETE_INTERNAL, SUPPRESS_ONLY, UNSUPPRESS, DELETE_ARCHIVE_ONLY - Segment &amp;
500+
* Destination Regulations: DELETE_ONLY, SUPPRESS_WITH_DELETE - X-RateLimit-Reset: RFC 5322
501+
* timestamp for when the quota resets (for example, Tue, 31 Dec 2024 23:59:59 GMT)
508502
*
509503
* @param sourceId (required)
510504
* @param createSourceRegulationV1Input (required)
@@ -633,16 +627,14 @@ private okhttp3.Call createWorkspaceRegulationValidateBeforeCall(
633627
}
634628

635629
/**
636-
* Create Workspace Regulation Creates a Workspace-scoped regulation. • When called, this
637-
* endpoint may generate the &#x60;Workspace Regulation Created&#x60; event in the [audit
638-
* trail](/tag/Audit-Trail). Config API omitted fields: - &#x60;attributes&#x60;, -
639-
* &#x60;userAgent&#x60; Rate limit headers will be updated to reflect regulation-specific
640-
* limits (tracked separately for Segment-only vs Segment &amp; Destination regulation types): -
641-
* X-RateLimit-Remaining: Remaining requests for the regulation type category - Segment-only
642-
* Regulations: DELETE_INTERNAL, SUPPRESS_WITH_DELETE_INTERNAL, SUPPRESS_ONLY, UNSUPPRESS,
643-
* DELETE_ARCHIVE_ONLY - Segment &amp; Destination Regulations: DELETE_ONLY,
644-
* SUPPRESS_WITH_DELETE - X-RateLimit-Reset: RFC 5322 timestamp for when the quota resets (for
645-
* example, Tue, 31 Dec 2024 23:59:59 GMT)
630+
* Create Workspace Regulation Creates a Workspace-scoped regulation. Config API omitted fields:
631+
* - &#x60;attributes&#x60;, - &#x60;userAgent&#x60; Rate limit headers will be updated to
632+
* reflect regulation-specific limits (tracked separately for Segment-only vs Segment &amp;
633+
* Destination regulation types): - X-RateLimit-Remaining: Remaining requests for the regulation
634+
* type category - Segment-only Regulations: DELETE_INTERNAL, SUPPRESS_WITH_DELETE_INTERNAL,
635+
* SUPPRESS_ONLY, UNSUPPRESS, DELETE_ARCHIVE_ONLY - Segment &amp; Destination Regulations:
636+
* DELETE_ONLY, SUPPRESS_WITH_DELETE - X-RateLimit-Reset: RFC 5322 timestamp for when the quota
637+
* resets (for example, Tue, 31 Dec 2024 23:59:59 GMT)
646638
*
647639
* @param createWorkspaceRegulationV1Input (required)
648640
* @return CreateWorkspaceRegulation200Response
@@ -665,16 +657,14 @@ public CreateWorkspaceRegulation200Response createWorkspaceRegulation(
665657
}
666658

667659
/**
668-
* Create Workspace Regulation Creates a Workspace-scoped regulation. • When called, this
669-
* endpoint may generate the &#x60;Workspace Regulation Created&#x60; event in the [audit
670-
* trail](/tag/Audit-Trail). Config API omitted fields: - &#x60;attributes&#x60;, -
671-
* &#x60;userAgent&#x60; Rate limit headers will be updated to reflect regulation-specific
672-
* limits (tracked separately for Segment-only vs Segment &amp; Destination regulation types): -
673-
* X-RateLimit-Remaining: Remaining requests for the regulation type category - Segment-only
674-
* Regulations: DELETE_INTERNAL, SUPPRESS_WITH_DELETE_INTERNAL, SUPPRESS_ONLY, UNSUPPRESS,
675-
* DELETE_ARCHIVE_ONLY - Segment &amp; Destination Regulations: DELETE_ONLY,
676-
* SUPPRESS_WITH_DELETE - X-RateLimit-Reset: RFC 5322 timestamp for when the quota resets (for
677-
* example, Tue, 31 Dec 2024 23:59:59 GMT)
660+
* Create Workspace Regulation Creates a Workspace-scoped regulation. Config API omitted fields:
661+
* - &#x60;attributes&#x60;, - &#x60;userAgent&#x60; Rate limit headers will be updated to
662+
* reflect regulation-specific limits (tracked separately for Segment-only vs Segment &amp;
663+
* Destination regulation types): - X-RateLimit-Remaining: Remaining requests for the regulation
664+
* type category - Segment-only Regulations: DELETE_INTERNAL, SUPPRESS_WITH_DELETE_INTERNAL,
665+
* SUPPRESS_ONLY, UNSUPPRESS, DELETE_ARCHIVE_ONLY - Segment &amp; Destination Regulations:
666+
* DELETE_ONLY, SUPPRESS_WITH_DELETE - X-RateLimit-Reset: RFC 5322 timestamp for when the quota
667+
* resets (for example, Tue, 31 Dec 2024 23:59:59 GMT)
678668
*
679669
* @param createWorkspaceRegulationV1Input (required)
680670
* @return ApiResponse&lt;CreateWorkspaceRegulation200Response&gt;
@@ -699,16 +689,14 @@ public ApiResponse<CreateWorkspaceRegulation200Response> createWorkspaceRegulati
699689
}
700690

701691
/**
702-
* Create Workspace Regulation (asynchronously) Creates a Workspace-scoped regulation. • When
703-
* called, this endpoint may generate the &#x60;Workspace Regulation Created&#x60; event in the
704-
* [audit trail](/tag/Audit-Trail). Config API omitted fields: - &#x60;attributes&#x60;, -
705-
* &#x60;userAgent&#x60; Rate limit headers will be updated to reflect regulation-specific
706-
* limits (tracked separately for Segment-only vs Segment &amp; Destination regulation types): -
707-
* X-RateLimit-Remaining: Remaining requests for the regulation type category - Segment-only
708-
* Regulations: DELETE_INTERNAL, SUPPRESS_WITH_DELETE_INTERNAL, SUPPRESS_ONLY, UNSUPPRESS,
709-
* DELETE_ARCHIVE_ONLY - Segment &amp; Destination Regulations: DELETE_ONLY,
710-
* SUPPRESS_WITH_DELETE - X-RateLimit-Reset: RFC 5322 timestamp for when the quota resets (for
711-
* example, Tue, 31 Dec 2024 23:59:59 GMT)
692+
* Create Workspace Regulation (asynchronously) Creates a Workspace-scoped regulation. Config
693+
* API omitted fields: - &#x60;attributes&#x60;, - &#x60;userAgent&#x60; Rate limit headers will
694+
* be updated to reflect regulation-specific limits (tracked separately for Segment-only vs
695+
* Segment &amp; Destination regulation types): - X-RateLimit-Remaining: Remaining requests for
696+
* the regulation type category - Segment-only Regulations: DELETE_INTERNAL,
697+
* SUPPRESS_WITH_DELETE_INTERNAL, SUPPRESS_ONLY, UNSUPPRESS, DELETE_ARCHIVE_ONLY - Segment &amp;
698+
* Destination Regulations: DELETE_ONLY, SUPPRESS_WITH_DELETE - X-RateLimit-Reset: RFC 5322
699+
* timestamp for when the quota resets (for example, Tue, 31 Dec 2024 23:59:59 GMT)
712700
*
713701
* @param createWorkspaceRegulationV1Input (required)
714702
* @param _callback The callback to be executed when the API call finishes

0 commit comments

Comments
 (0)