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@2f18f9b4.
  • Loading branch information
APIs and Common Services team committed Sep 17, 2024
1 parent 10613b6 commit 513e16e
Show file tree
Hide file tree
Showing 8 changed files with 332 additions and 317 deletions.
64 changes: 32 additions & 32 deletions docs/SpaceFiltersApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ All URIs are relative to *https://api.segmentapis.com*

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



## Operation: createFilter
## Operation: createFilterForSpace

> CreateFilter200Response createFilter(createFilterInput)
> CreateFilterForSpace200Response createFilterForSpace(createFilterForSpaceInput)
Create Filter
Create Filter for Space

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).
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).

### Example

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

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

| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **createFilterInput** | [**CreateFilterInput**](CreateFilterInput.md)| | |
| **createFilterForSpaceInput** | [**CreateFilterForSpaceInput**](CreateFilterForSpaceInput.md)| | |

### Return type

[**CreateFilter200Response**](CreateFilter200Response.md)
[**CreateFilterForSpace200Response**](CreateFilterForSpace200Response.md)

### Authorization

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

### HTTP request headers

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


### HTTP response details
Expand All @@ -91,7 +91,7 @@ public class Example {
Delete Filter By Id

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).
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).

### Example

Expand Down Expand Up @@ -146,7 +146,7 @@ public class Example {
### HTTP request headers

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


### HTTP response details
Expand All @@ -164,7 +164,7 @@ public class Example {
Get Filter By Id

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.
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.

### Example

Expand Down Expand Up @@ -219,7 +219,7 @@ public class Example {
### HTTP request headers

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


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


## Operation: listFiltersByIntegrationId
## Operation: listFiltersForSpace

> ListFiltersByIntegrationId200Response listFiltersByIntegrationId(integrationId, pagination)
> ListFiltersForSpace200Response listFiltersForSpace(integrationId, pagination)
List Filters By Integration Id
List Filters for Space

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.
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.

### Example

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

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

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

### Return type

[**ListFiltersByIntegrationId200Response**](ListFiltersByIntegrationId200Response.md)
[**ListFiltersForSpace200Response**](ListFiltersForSpace200Response.md)

### Authorization

Expand All @@ -294,7 +294,7 @@ public class Example {
### HTTP request headers

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


### HTTP response details
Expand All @@ -312,7 +312,7 @@ public class Example {
Update Filter By Id

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).
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).

### Example

Expand Down Expand Up @@ -368,8 +368,8 @@ public class Example {

### HTTP request headers

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


### HTTP response details
Expand Down
16 changes: 9 additions & 7 deletions src/main/java/com/segment/publicapi/JSON.java
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,6 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.CreateEdgeFunctionsAlphaOutput
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.CreateFilter200Response
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.CreateFilterForDestination200Response
.CustomTypeAdapterFactory());
Expand All @@ -263,9 +260,14 @@ private static Class getClassByDiscriminator(
new com.segment.publicapi.models.CreateFilterForDestinationV1Output
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.CreateFilterInput.CustomTypeAdapterFactory());
new com.segment.publicapi.models.CreateFilterForSpace200Response
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.CreateFilterForSpaceInput
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.CreateFilterOutput.CustomTypeAdapterFactory());
new com.segment.publicapi.models.CreateFilterForSpaceOutput
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.CreateFunction200Response
.CustomTypeAdapterFactory());
Expand Down Expand Up @@ -908,10 +910,10 @@ private static Class getClassByDiscriminator(
new com.segment.publicapi.models.ListDestinationsV1Output
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.ListFiltersByIntegrationId200Response
new com.segment.publicapi.models.ListFiltersForSpace200Response
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.ListFiltersByIntegrationIdOutput
new com.segment.publicapi.models.ListFiltersForSpaceOutput
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.segment.publicapi.models.ListFiltersFromDestination200Response
Expand Down
Loading

0 comments on commit 513e16e

Please sign in to comment.