Skip to content

Commit 513e16e

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@2f18f9b4.
1 parent 10613b6 commit 513e16e

File tree

8 files changed

+332
-317
lines changed

8 files changed

+332
-317
lines changed

docs/SpaceFiltersApi.md

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@ All URIs are relative to *https://api.segmentapis.com*
44

55
| Method | HTTP request | Description |
66
|------------- | ------------- | -------------|
7-
| [**createFilter**](SpaceFiltersApi.md#createFilter) | **POST** /filters | Create Filter |
7+
| [**createFilterForSpace**](SpaceFiltersApi.md#createFilterForSpace) | **POST** /filters | Create Filter for Space |
88
| [**deleteFilterById**](SpaceFiltersApi.md#deleteFilterById) | **DELETE** /filters/{id} | Delete Filter By Id |
99
| [**getFilterById**](SpaceFiltersApi.md#getFilterById) | **GET** /filters/{id} | Get Filter By Id |
10-
| [**listFiltersByIntegrationId**](SpaceFiltersApi.md#listFiltersByIntegrationId) | **GET** /filters | List Filters By Integration Id |
10+
| [**listFiltersForSpace**](SpaceFiltersApi.md#listFiltersForSpace) | **GET** /filters | List Filters for Space |
1111
| [**updateFilterById**](SpaceFiltersApi.md#updateFilterById) | **PATCH** /filters/{id} | Update Filter By Id |
1212

1313

1414

15-
## Operation: createFilter
15+
## Operation: createFilterForSpace
1616

17-
> CreateFilter200Response createFilter(createFilterInput)
17+
> CreateFilterForSpace200Response createFilterForSpace(createFilterForSpaceInput)
1818
19-
Create Filter
19+
Create Filter for Space
2020

21-
Creates a filter. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an email to [email protected]. • In order to successfully call this endpoint, the specified Workspace needs to have the Space Filters feature enabled. Please reach out to your customer success manager for more information. • When called, this endpoint may generate the `Filter Created` event in the [audit trail](/tag/Audit-Trail).
21+
Creates a filter for a space. A space filter applies to events coming from all Sources connected to a space. • This endpoint is in **Beta** testing. Please submit any feedback by sending an email to [email protected]. • In order to successfully call this endpoint, the specified Workspace needs to have the Space Filters feature enabled. Please reach out to your customer success manager for more information. • When called, this endpoint may generate the `Filter Created` event in the [audit trail](/tag/Audit-Trail).
2222

2323
### Example
2424

@@ -40,12 +40,12 @@ public class Example {
4040
token.setBearerToken("BEARER TOKEN");
4141

4242
SpaceFiltersApi apiInstance = new SpaceFiltersApi(defaultClient);
43-
CreateFilterInput createFilterInput = new CreateFilterInput(); // CreateFilterInput |
43+
CreateFilterForSpaceInput createFilterForSpaceInput = new CreateFilterForSpaceInput(); // CreateFilterForSpaceInput |
4444
try {
45-
CreateFilter200Response result = apiInstance.createFilter(createFilterInput);
45+
CreateFilterForSpace200Response result = apiInstance.createFilterForSpace(createFilterForSpaceInput);
4646
System.out.println(result);
4747
} catch (ApiException e) {
48-
System.err.println("Exception when calling SpaceFiltersApi#createFilter");
48+
System.err.println("Exception when calling SpaceFiltersApi#createFilterForSpace");
4949
System.err.println("Status code: " + e.getCode());
5050
System.err.println("Reason: " + e.getResponseBody());
5151
System.err.println("Response headers: " + e.getResponseHeaders());
@@ -60,20 +60,20 @@ public class Example {
6060

6161
| Name | Type | Description | Notes |
6262
|------------- | ------------- | ------------- | -------------|
63-
| **createFilterInput** | [**CreateFilterInput**](CreateFilterInput.md)| | |
63+
| **createFilterForSpaceInput** | [**CreateFilterForSpaceInput**](CreateFilterForSpaceInput.md)| | |
6464

6565
### Return type
6666

67-
[**CreateFilter200Response**](CreateFilter200Response.md)
67+
[**CreateFilterForSpace200Response**](CreateFilterForSpace200Response.md)
6868

6969
### Authorization
7070

7171
[token](../README.md#token)
7272

7373
### HTTP request headers
7474

75-
- **Content-Type**: application/vnd.segment.v1alpha+json
76-
- **Accept**: application/vnd.segment.v1alpha+json, application/json
75+
- **Content-Type**: application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
76+
- **Accept**: application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json, application/json
7777

7878

7979
### HTTP response details
@@ -91,7 +91,7 @@ public class Example {
9191
9292
Delete Filter By Id
9393

94-
Deletes a filter by id. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an email to [email protected]. • In order to successfully call this endpoint, the specified Workspace needs to have the Space Filters feature enabled. Please reach out to your customer success manager for more information. • When called, this endpoint may generate the `Filter Deleted` event in the [audit trail](/tag/Audit-Trail).
94+
Deletes a filter by id. • This endpoint is in **Beta** testing. Please submit any feedback by sending an email to [email protected]. • In order to successfully call this endpoint, the specified Workspace needs to have the Space Filters feature enabled. Please reach out to your customer success manager for more information. • When called, this endpoint may generate the `Filter Deleted` event in the [audit trail](/tag/Audit-Trail).
9595

9696
### Example
9797

@@ -146,7 +146,7 @@ public class Example {
146146
### HTTP request headers
147147

148148
- **Content-Type**: Not defined
149-
- **Accept**: application/vnd.segment.v1alpha+json, application/json
149+
- **Accept**: application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json, application/json
150150

151151

152152
### HTTP response details
@@ -164,7 +164,7 @@ public class Example {
164164
165165
Get Filter By Id
166166

167-
Gets a filter by id. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an email to [email protected]. • In order to successfully call this endpoint, the specified Workspace needs to have the Space Filters feature enabled. Please reach out to your customer success manager for more information.
167+
Gets a filter by id. • This endpoint is in **Beta** testing. Please submit any feedback by sending an email to [email protected]. • In order to successfully call this endpoint, the specified Workspace needs to have the Space Filters feature enabled. Please reach out to your customer success manager for more information.
168168

169169
### Example
170170

@@ -219,7 +219,7 @@ public class Example {
219219
### HTTP request headers
220220

221221
- **Content-Type**: Not defined
222-
- **Accept**: application/vnd.segment.v1alpha+json, application/json
222+
- **Accept**: application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json, application/json
223223

224224

225225
### HTTP response details
@@ -231,13 +231,13 @@ public class Example {
231231
| **429** | Too many requests | - |
232232

233233

234-
## Operation: listFiltersByIntegrationId
234+
## Operation: listFiltersForSpace
235235

236-
> ListFiltersByIntegrationId200Response listFiltersByIntegrationId(integrationId, pagination)
236+
> ListFiltersForSpace200Response listFiltersForSpace(integrationId, pagination)
237237
238-
List Filters By Integration Id
238+
List Filters for Space
239239

240-
Lists filters by Integration id. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an email to [email protected]. • In order to successfully call this endpoint, the specified Workspace needs to have the Space Filters feature enabled. Please reach out to your customer success manager for more information.
240+
Lists filters for a space. • This endpoint is in **Beta** testing. Please submit any feedback by sending an email to [email protected]. • In order to successfully call this endpoint, the specified Workspace needs to have the Space Filters feature enabled. Please reach out to your customer success manager for more information.
241241

242242
### Example
243243

@@ -259,13 +259,13 @@ public class Example {
259259
token.setBearerToken("BEARER TOKEN");
260260

261261
SpaceFiltersApi apiInstance = new SpaceFiltersApi(defaultClient);
262-
String integrationId = "<id>"; // String | The integration id used to fetch filters. This parameter exists in alpha.
263-
ListFiltersPaginationInput pagination = new ListFiltersPaginationInput(); // ListFiltersPaginationInput | Pagination parameters. This parameter exists in alpha.
262+
String integrationId = "<id>"; // String | The Space Id for which to fetch filters This parameter exists in beta.
263+
ListFiltersPaginationInput pagination = new ListFiltersPaginationInput(); // ListFiltersPaginationInput | Pagination parameters. This parameter exists in beta.
264264
try {
265-
ListFiltersByIntegrationId200Response result = apiInstance.listFiltersByIntegrationId(integrationId, pagination);
265+
ListFiltersForSpace200Response result = apiInstance.listFiltersForSpace(integrationId, pagination);
266266
System.out.println(result);
267267
} catch (ApiException e) {
268-
System.err.println("Exception when calling SpaceFiltersApi#listFiltersByIntegrationId");
268+
System.err.println("Exception when calling SpaceFiltersApi#listFiltersForSpace");
269269
System.err.println("Status code: " + e.getCode());
270270
System.err.println("Reason: " + e.getResponseBody());
271271
System.err.println("Response headers: " + e.getResponseHeaders());
@@ -280,12 +280,12 @@ public class Example {
280280

281281
| Name | Type | Description | Notes |
282282
|------------- | ------------- | ------------- | -------------|
283-
| **integrationId** | **String**| The integration id used to fetch filters. This parameter exists in alpha. | |
284-
| **pagination** | [**ListFiltersPaginationInput**](.md)| Pagination parameters. This parameter exists in alpha. | [optional] |
283+
| **integrationId** | **String**| The Space Id for which to fetch filters This parameter exists in beta. | |
284+
| **pagination** | [**ListFiltersPaginationInput**](.md)| Pagination parameters. This parameter exists in beta. | [optional] |
285285

286286
### Return type
287287

288-
[**ListFiltersByIntegrationId200Response**](ListFiltersByIntegrationId200Response.md)
288+
[**ListFiltersForSpace200Response**](ListFiltersForSpace200Response.md)
289289

290290
### Authorization
291291

@@ -294,7 +294,7 @@ public class Example {
294294
### HTTP request headers
295295

296296
- **Content-Type**: Not defined
297-
- **Accept**: application/vnd.segment.v1alpha+json, application/json
297+
- **Accept**: application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json, application/json
298298

299299

300300
### HTTP response details
@@ -312,7 +312,7 @@ public class Example {
312312
313313
Update Filter By Id
314314

315-
Updates a filter by id and replaces the existing filter. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an email to [email protected]. • In order to successfully call this endpoint, the specified Workspace needs to have the Space Filters feature enabled. Please reach out to your customer success manager for more information. • When called, this endpoint may generate the &#x60;Filter Updated&#x60; event in the [audit trail](/tag/Audit-Trail).
315+
Updates a filter by id and replaces the existing filter. • This endpoint is in **Beta** testing. Please submit any feedback by sending an email to [email protected]. • In order to successfully call this endpoint, the specified Workspace needs to have the Space Filters feature enabled. Please reach out to your customer success manager for more information. • When called, this endpoint may generate the &#x60;Filter Updated&#x60; event in the [audit trail](/tag/Audit-Trail).
316316

317317
### Example
318318

@@ -368,8 +368,8 @@ public class Example {
368368

369369
### HTTP request headers
370370

371-
- **Content-Type**: application/vnd.segment.v1alpha+json
372-
- **Accept**: application/vnd.segment.v1alpha+json, application/json
371+
- **Content-Type**: application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
372+
- **Accept**: application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json, application/json
373373

374374

375375
### HTTP response details

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,6 @@ private static Class getClassByDiscriminator(
250250
gsonBuilder.registerTypeAdapterFactory(
251251
new com.segment.publicapi.models.CreateEdgeFunctionsAlphaOutput
252252
.CustomTypeAdapterFactory());
253-
gsonBuilder.registerTypeAdapterFactory(
254-
new com.segment.publicapi.models.CreateFilter200Response
255-
.CustomTypeAdapterFactory());
256253
gsonBuilder.registerTypeAdapterFactory(
257254
new com.segment.publicapi.models.CreateFilterForDestination200Response
258255
.CustomTypeAdapterFactory());
@@ -263,9 +260,14 @@ private static Class getClassByDiscriminator(
263260
new com.segment.publicapi.models.CreateFilterForDestinationV1Output
264261
.CustomTypeAdapterFactory());
265262
gsonBuilder.registerTypeAdapterFactory(
266-
new com.segment.publicapi.models.CreateFilterInput.CustomTypeAdapterFactory());
263+
new com.segment.publicapi.models.CreateFilterForSpace200Response
264+
.CustomTypeAdapterFactory());
265+
gsonBuilder.registerTypeAdapterFactory(
266+
new com.segment.publicapi.models.CreateFilterForSpaceInput
267+
.CustomTypeAdapterFactory());
267268
gsonBuilder.registerTypeAdapterFactory(
268-
new com.segment.publicapi.models.CreateFilterOutput.CustomTypeAdapterFactory());
269+
new com.segment.publicapi.models.CreateFilterForSpaceOutput
270+
.CustomTypeAdapterFactory());
269271
gsonBuilder.registerTypeAdapterFactory(
270272
new com.segment.publicapi.models.CreateFunction200Response
271273
.CustomTypeAdapterFactory());
@@ -908,10 +910,10 @@ private static Class getClassByDiscriminator(
908910
new com.segment.publicapi.models.ListDestinationsV1Output
909911
.CustomTypeAdapterFactory());
910912
gsonBuilder.registerTypeAdapterFactory(
911-
new com.segment.publicapi.models.ListFiltersByIntegrationId200Response
913+
new com.segment.publicapi.models.ListFiltersForSpace200Response
912914
.CustomTypeAdapterFactory());
913915
gsonBuilder.registerTypeAdapterFactory(
914-
new com.segment.publicapi.models.ListFiltersByIntegrationIdOutput
916+
new com.segment.publicapi.models.ListFiltersForSpaceOutput
915917
.CustomTypeAdapterFactory());
916918
gsonBuilder.registerTypeAdapterFactory(
917919
new com.segment.publicapi.models.ListFiltersFromDestination200Response

0 commit comments

Comments
 (0)