Skip to content

Commit cd32f90

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

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

docs/DeletionAndSuppressionApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ public class Example {
437437
|------------- | ------------- | ------------- | -------------|
438438
| **sourceId** | **String**| | |
439439
| **status** | **String**| The status on which to filter returned regulations. This parameter exists in v1. | [optional] [enum: FAILED, FINISHED, INITIALIZED, INVALID, NOT_SUPPORTED, PARTIAL_SUCCESS, RUNNING] |
440-
| **regulationTypes** | [**List<String>**](String.md)| The regulation types on which to filter returned regulations. This parameter exists in v1. | [optional] [enum: DELETE_INTERNAL, DELETE_ONLY, SUPPRESS_ONLY, SUPPRESS_WITH_DELETE, SUPPRESS_WITH_DELETE_INTERNAL, UNSUPPRESS] |
440+
| **regulationTypes** | [**List<String>**](String.md)| The regulation types on which to filter returned regulations. This parameter exists in v1. | [optional] [enum: DELETE_ARCHIVE_ONLY, DELETE_INTERNAL, DELETE_ONLY, SUPPRESS_ONLY, SUPPRESS_WITH_DELETE, SUPPRESS_WITH_DELETE_INTERNAL, UNSUPPRESS] |
441441
| **pagination** | [**PaginationInput**](.md)| Pagination parameters. This parameter exists in v1. | [optional] |
442442

443443
### Return type
@@ -587,7 +587,7 @@ public class Example {
587587
| Name | Type | Description | Notes |
588588
|------------- | ------------- | ------------- | -------------|
589589
| **status** | **String**| The status on which to filter the returned regulations. This parameter exists in v1. | [optional] [enum: FAILED, FINISHED, INITIALIZED, INVALID, NOT_SUPPORTED, PARTIAL_SUCCESS, RUNNING] |
590-
| **regulationTypes** | [**List<String>**](String.md)| The regulation types on which to filter returned regulations. This parameter exists in v1. | [optional] [enum: DELETE_ARCHIVE_ONLY, DELETE_INTERNAL, DELETE_ONLY, SUPPRESS_ONLY, SUPPRESS_WITH_DELETE, SUPPRESS_WITH_DELETE_INTERNAL, UNSUPPRESS] |
590+
| **regulationTypes** | [**List<String>**](String.md)| The regulation types on which to filter returned regulations. This parameter exists in v1. | [optional] [enum: DELETE_INTERNAL, DELETE_ONLY, SUPPRESS_ONLY, SUPPRESS_WITH_DELETE, SUPPRESS_WITH_DELETE_INTERNAL, UNSUPPRESS] |
591591
| **pagination** | [**PaginationInput**](.md)| Pagination parameters. This parameter exists in v1. | [optional] |
592592

593593
### Return type

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

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@ public RegulationTypeEnum read(final JsonReader jsonReader) throws IOException {
9696
@SerializedName(SERIALIZED_NAME_REGULATION_TYPE)
9797
private RegulationTypeEnum regulationType;
9898

99-
/** The subject type. */
99+
/**
100+
* The subject type. Note: `ANONYMOUS_ID` is only supported for limited Workspaces for
101+
* Source-scoped regulations. `ANONYMOUS_ID` is only supported when regulationType is
102+
* `DELETE_ARCHIVE_ONLY`.
103+
*/
100104
@JsonAdapter(SubjectTypeEnum.Adapter.class)
101105
public enum SubjectTypeEnum {
102106
ANONYMOUS_ID("ANONYMOUS_ID"),
@@ -182,7 +186,9 @@ public CreateSourceRegulationV1Input subjectType(SubjectTypeEnum subjectType) {
182186
}
183187

184188
/**
185-
* The subject type.
189+
* The subject type. Note: `ANONYMOUS_ID` is only supported for limited Workspaces for
190+
* Source-scoped regulations. `ANONYMOUS_ID` is only supported when regulationType is
191+
* `DELETE_ARCHIVE_ONLY`.
186192
*
187193
* @return subjectType
188194
*/
@@ -210,8 +216,8 @@ public CreateSourceRegulationV1Input addSubjectIdsItem(String subjectIdsItem) {
210216
}
211217

212218
/**
213-
* The list of `userId` or `objectId` values of the subjects to regulate.
214-
* Config API note: equal to `parent` but allows an array.
219+
* The list of `userId` or `objectId` or `anonymousId` values of
220+
* the subjects to regulate. Config API note: equal to `parent` but allows an array.
215221
*
216222
* @return subjectIds
217223
*/

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ public class CreateWorkspaceRegulationV1Input {
3535
/** The regulation type to create. */
3636
@JsonAdapter(RegulationTypeEnum.Adapter.class)
3737
public enum RegulationTypeEnum {
38-
DELETE_ARCHIVE_ONLY("DELETE_ARCHIVE_ONLY"),
39-
4038
DELETE_INTERNAL("DELETE_INTERNAL"),
4139

4240
DELETE_ONLY("DELETE_ONLY"),
@@ -96,8 +94,6 @@ public RegulationTypeEnum read(final JsonReader jsonReader) throws IOException {
9694
/** The subject type. Use `objectId` for Cloud Source regulations. */
9795
@JsonAdapter(SubjectTypeEnum.Adapter.class)
9896
public enum SubjectTypeEnum {
99-
ANONYMOUS_ID("ANONYMOUS_ID"),
100-
10197
OBJECT_ID("OBJECT_ID"),
10298

10399
USER_ID("USER_ID");

0 commit comments

Comments
 (0)