Skip to content

Commit 04b8700

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@24aa5de8.
1 parent 022c32e commit 04b8700

File tree

10 files changed

+8
-726
lines changed

10 files changed

+8
-726
lines changed

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

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

5959
Then manually install the following JARs:
6060

61-
* `target/segment-publicapi-72.1.0.jar`
61+
* `target/segment-publicapi-73.0.0.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-
72.1.0
1+
73.0.0

docs/DeletionAndSuppressionApi.md

Lines changed: 0 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ All URIs are relative to *https://api.segmentapis.com*
77
| [**createCloudSourceRegulation**](DeletionAndSuppressionApi.md#createCloudSourceRegulation) | **POST** /regulations/cloudsources/{sourceId} | Create Cloud Source Regulation |
88
| [**createSourceRegulation**](DeletionAndSuppressionApi.md#createSourceRegulation) | **POST** /regulations/sources/{sourceId} | Create Source Regulation |
99
| [**createWorkspaceRegulation**](DeletionAndSuppressionApi.md#createWorkspaceRegulation) | **POST** /regulations | Create Workspace Regulation |
10-
| [**deleteRegulation**](DeletionAndSuppressionApi.md#deleteRegulation) | **DELETE** /regulations/{regulateId} | Delete Regulation |
1110
| [**getRegulation**](DeletionAndSuppressionApi.md#getRegulation) | **GET** /regulations/{regulateId} | Get Regulation |
1211
| [**listRegulationsFromSource**](DeletionAndSuppressionApi.md#listRegulationsFromSource) | **GET** /regulations/sources/{sourceId} | List Regulations from Source |
1312
| [**listSuppressions**](DeletionAndSuppressionApi.md#listSuppressions) | **GET** /suppressions | List Suppressions |
@@ -238,79 +237,6 @@ public class Example {
238237
| **429** | Too many requests | - |
239238

240239

241-
## Operation: deleteRegulation
242-
243-
> DeleteRegulation200Response deleteRegulation(regulateId)
244-
245-
Delete Regulation
246-
247-
Deletes a regulation from the Workspace. The regulation must be in the initialized state to be deleted. • When called, this endpoint may generate the &#x60;Regulation Deleted&#x60; event in the [audit trail](/tag/Audit-Trail). **DEPRECATED**: this endpoint has been deprecated according to the guidelines, and may experience reduced SLA guarantees.
248-
249-
### Example
250-
251-
```java
252-
// Import classes:
253-
import com.segment.publicapi.ApiClient;
254-
import com.segment.publicapi.ApiException;
255-
import com.segment.publicapi.Configuration;
256-
import com.segment.publicapi.auth.*;
257-
import com.segment.publicapi.models.*;
258-
import com.segment.publicapi.api.DeletionAndSuppressionApi;
259-
260-
public class Example {
261-
public static void main(String[] args) {
262-
ApiClient defaultClient = Configuration.getDefaultApiClient();
263-
264-
// Configure HTTP bearer authorization: token
265-
HttpBearerAuth token = (HttpBearerAuth) defaultClient.getAuthentication("token");
266-
token.setBearerToken("BEARER TOKEN");
267-
268-
DeletionAndSuppressionApi apiInstance = new DeletionAndSuppressionApi(defaultClient);
269-
String regulateId = "1qJkfE1tpwvQcklImGksLN629wn"; // String |
270-
try {
271-
DeleteRegulation200Response result = apiInstance.deleteRegulation(regulateId);
272-
System.out.println(result);
273-
} catch (ApiException e) {
274-
System.err.println("Exception when calling DeletionAndSuppressionApi#deleteRegulation");
275-
System.err.println("Status code: " + e.getCode());
276-
System.err.println("Reason: " + e.getResponseBody());
277-
System.err.println("Response headers: " + e.getResponseHeaders());
278-
e.printStackTrace();
279-
}
280-
}
281-
}
282-
```
283-
284-
### Parameters
285-
286-
287-
| Name | Type | Description | Notes |
288-
|------------- | ------------- | ------------- | -------------|
289-
| **regulateId** | **String**| | |
290-
291-
### Return type
292-
293-
[**DeleteRegulation200Response**](DeleteRegulation200Response.md)
294-
295-
### Authorization
296-
297-
[token](../README.md#token)
298-
299-
### HTTP request headers
300-
301-
- **Content-Type**: Not defined
302-
- **Accept**: application/vnd.segment.v1+json, application/json, application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
303-
304-
305-
### HTTP response details
306-
| Status code | Description | Response headers |
307-
|-------------|-------------|------------------|
308-
| **200** | OK | - |
309-
| **404** | Resource not found | - |
310-
| **422** | Validation failure | - |
311-
| **429** | Too many requests | - |
312-
313-
314240
## Operation: getRegulation
315241

316242
> GetRegulation200Response getRegulation(regulateId)

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

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

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -610,12 +610,6 @@ private static Class getClassByDiscriminator(
610610
gsonBuilder.registerTypeAdapterFactory(
611611
new com.segment.publicapi.models.DeleteLivePluginCodeAlphaOutput
612612
.CustomTypeAdapterFactory());
613-
gsonBuilder.registerTypeAdapterFactory(
614-
new com.segment.publicapi.models.DeleteRegulation200Response
615-
.CustomTypeAdapterFactory());
616-
gsonBuilder.registerTypeAdapterFactory(
617-
new com.segment.publicapi.models.DeleteRegulationV1Output
618-
.CustomTypeAdapterFactory());
619613
gsonBuilder.registerTypeAdapterFactory(
620614
new com.segment.publicapi.models.DeleteReverseEtlModel200Response
621615
.CustomTypeAdapterFactory());

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

Lines changed: 0 additions & 190 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import com.segment.publicapi.models.CreateSourceRegulationV1Input;
2525
import com.segment.publicapi.models.CreateWorkspaceRegulation200Response;
2626
import com.segment.publicapi.models.CreateWorkspaceRegulationV1Input;
27-
import com.segment.publicapi.models.DeleteRegulation200Response;
2827
import com.segment.publicapi.models.GetRegulation200Response;
2928
import com.segment.publicapi.models.ListRegulationsFromSource200Response;
3029
import com.segment.publicapi.models.ListSuppressions200Response;
@@ -739,195 +738,6 @@ public okhttp3.Call createWorkspaceRegulationAsync(
739738
return localVarCall;
740739
}
741740

742-
/**
743-
* Build call for deleteRegulation
744-
*
745-
* @param regulateId (required)
746-
* @param _callback Callback for upload/download progress
747-
* @return Call to execute
748-
* @throws ApiException If fail to serialize the request body object
749-
* @http.response.details
750-
* <table summary="Response Details" border="1">
751-
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
752-
* <tr><td> 200 </td><td> OK </td><td> - </td></tr>
753-
* <tr><td> 404 </td><td> Resource not found </td><td> - </td></tr>
754-
* <tr><td> 422 </td><td> Validation failure </td><td> - </td></tr>
755-
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
756-
* </table>
757-
*
758-
* @deprecated
759-
*/
760-
@Deprecated
761-
public okhttp3.Call deleteRegulationCall(String regulateId, final ApiCallback _callback)
762-
throws ApiException {
763-
String basePath = null;
764-
// Operation Servers
765-
String[] localBasePaths = new String[] {};
766-
767-
// Determine Base Path to Use
768-
if (localCustomBaseUrl != null) {
769-
basePath = localCustomBaseUrl;
770-
} else if (localBasePaths.length > 0) {
771-
basePath = localBasePaths[localHostIndex];
772-
} else {
773-
basePath = null;
774-
}
775-
776-
Object localVarPostBody = null;
777-
778-
// create path and map variables
779-
String localVarPath =
780-
"/regulations/{regulateId}"
781-
.replace(
782-
"{" + "regulateId" + "}",
783-
localVarApiClient.escapeString(regulateId.toString()));
784-
785-
List<Pair> localVarQueryParams = new ArrayList<Pair>();
786-
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
787-
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
788-
Map<String, String> localVarCookieParams = new HashMap<String, String>();
789-
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
790-
791-
final String[] localVarAccepts = {
792-
"application/vnd.segment.v1+json",
793-
"application/json",
794-
"application/vnd.segment.v1beta+json",
795-
"application/vnd.segment.v1alpha+json"
796-
};
797-
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
798-
if (localVarAccept != null) {
799-
localVarHeaderParams.put("Accept", localVarAccept);
800-
}
801-
802-
final String[] localVarContentTypes = {};
803-
final String localVarContentType =
804-
localVarApiClient.selectHeaderContentType(localVarContentTypes);
805-
if (localVarContentType != null) {
806-
localVarHeaderParams.put("Content-Type", localVarContentType);
807-
}
808-
809-
String[] localVarAuthNames = new String[] {"token"};
810-
return localVarApiClient.buildCall(
811-
basePath,
812-
localVarPath,
813-
"DELETE",
814-
localVarQueryParams,
815-
localVarCollectionQueryParams,
816-
localVarPostBody,
817-
localVarHeaderParams,
818-
localVarCookieParams,
819-
localVarFormParams,
820-
localVarAuthNames,
821-
_callback);
822-
}
823-
824-
@Deprecated
825-
@SuppressWarnings("rawtypes")
826-
private okhttp3.Call deleteRegulationValidateBeforeCall(
827-
String regulateId, final ApiCallback _callback) throws ApiException {
828-
// verify the required parameter 'regulateId' is set
829-
if (regulateId == null) {
830-
throw new ApiException(
831-
"Missing the required parameter 'regulateId' when calling"
832-
+ " deleteRegulation(Async)");
833-
}
834-
835-
return deleteRegulationCall(regulateId, _callback);
836-
}
837-
838-
/**
839-
* Delete Regulation Deletes a regulation from the Workspace. The regulation must be in the
840-
* initialized state to be deleted. • When called, this endpoint may generate the
841-
* &#x60;Regulation Deleted&#x60; event in the [audit trail](/tag/Audit-Trail). **DEPRECATED**:
842-
* this endpoint has been deprecated according to the guidelines, and may experience reduced SLA
843-
* guarantees.
844-
*
845-
* @param regulateId (required)
846-
* @return DeleteRegulation200Response
847-
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
848-
* response body
849-
* @http.response.details
850-
* <table summary="Response Details" border="1">
851-
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
852-
* <tr><td> 200 </td><td> OK </td><td> - </td></tr>
853-
* <tr><td> 404 </td><td> Resource not found </td><td> - </td></tr>
854-
* <tr><td> 422 </td><td> Validation failure </td><td> - </td></tr>
855-
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
856-
* </table>
857-
*
858-
* @deprecated
859-
*/
860-
@Deprecated
861-
public DeleteRegulation200Response deleteRegulation(String regulateId) throws ApiException {
862-
ApiResponse<DeleteRegulation200Response> localVarResp =
863-
deleteRegulationWithHttpInfo(regulateId);
864-
return localVarResp.getData();
865-
}
866-
867-
/**
868-
* Delete Regulation Deletes a regulation from the Workspace. The regulation must be in the
869-
* initialized state to be deleted. • When called, this endpoint may generate the
870-
* &#x60;Regulation Deleted&#x60; event in the [audit trail](/tag/Audit-Trail). **DEPRECATED**:
871-
* this endpoint has been deprecated according to the guidelines, and may experience reduced SLA
872-
* guarantees.
873-
*
874-
* @param regulateId (required)
875-
* @return ApiResponse&lt;DeleteRegulation200Response&gt;
876-
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
877-
* response body
878-
* @http.response.details
879-
* <table summary="Response Details" border="1">
880-
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
881-
* <tr><td> 200 </td><td> OK </td><td> - </td></tr>
882-
* <tr><td> 404 </td><td> Resource not found </td><td> - </td></tr>
883-
* <tr><td> 422 </td><td> Validation failure </td><td> - </td></tr>
884-
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
885-
* </table>
886-
*
887-
* @deprecated
888-
*/
889-
@Deprecated
890-
public ApiResponse<DeleteRegulation200Response> deleteRegulationWithHttpInfo(String regulateId)
891-
throws ApiException {
892-
okhttp3.Call localVarCall = deleteRegulationValidateBeforeCall(regulateId, null);
893-
Type localVarReturnType = new TypeToken<DeleteRegulation200Response>() {}.getType();
894-
return localVarApiClient.execute(localVarCall, localVarReturnType);
895-
}
896-
897-
/**
898-
* Delete Regulation (asynchronously) Deletes a regulation from the Workspace. The regulation
899-
* must be in the initialized state to be deleted. • When called, this endpoint may generate the
900-
* &#x60;Regulation Deleted&#x60; event in the [audit trail](/tag/Audit-Trail). **DEPRECATED**:
901-
* this endpoint has been deprecated according to the guidelines, and may experience reduced SLA
902-
* guarantees.
903-
*
904-
* @param regulateId (required)
905-
* @param _callback The callback to be executed when the API call finishes
906-
* @return The request call
907-
* @throws ApiException If fail to process the API call, e.g. serializing the request body
908-
* object
909-
* @http.response.details
910-
* <table summary="Response Details" border="1">
911-
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
912-
* <tr><td> 200 </td><td> OK </td><td> - </td></tr>
913-
* <tr><td> 404 </td><td> Resource not found </td><td> - </td></tr>
914-
* <tr><td> 422 </td><td> Validation failure </td><td> - </td></tr>
915-
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
916-
* </table>
917-
*
918-
* @deprecated
919-
*/
920-
@Deprecated
921-
public okhttp3.Call deleteRegulationAsync(
922-
String regulateId, final ApiCallback<DeleteRegulation200Response> _callback)
923-
throws ApiException {
924-
925-
okhttp3.Call localVarCall = deleteRegulationValidateBeforeCall(regulateId, _callback);
926-
Type localVarReturnType = new TypeToken<DeleteRegulation200Response>() {}.getType();
927-
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
928-
return localVarCall;
929-
}
930-
931741
/**
932742
* Build call for getRegulation
933743
*

0 commit comments

Comments
 (0)