();
}
@@ -209,9 +199,9 @@ public boolean isVerifyingSsl() {
}
/**
- * Configure whether to verify certificate and hostname when making https requests.
- * Default to true.
- * NOTE: Do NOT set to false in production code, otherwise you would face multiple types of cryptographic attacks.
+ * Configure whether to verify certificate and hostname when making https requests. Default to
+ * true. NOTE: Do NOT set to false in production code, otherwise you would face multiple types
+ * of cryptographic attacks.
*
* @param verifyingSsl True to verify TLS/SSL connection
* @return ApiClient
@@ -232,8 +222,8 @@ public InputStream getSslCaCert() {
}
/**
- * Configure the CA certificate to be trusted when making https requests.
- * Use null to reset to default.
+ * Configure the CA certificate to be trusted when making https requests. Use null to reset to
+ * default.
*
* @param sslCaCert input stream for SSL CA cert
* @return ApiClient
@@ -245,7 +235,7 @@ public ApiClient setSslCaCert(InputStream sslCaCert) {
}
/**
- * Getter for the field keyManagers
.
+ * Getter for the field keyManagers
.
*
* @return an array of {@link javax.net.ssl.KeyManager} objects
*/
@@ -254,8 +244,8 @@ public KeyManager[] getKeyManagers() {
}
/**
- * Configure client keys to use for authorization in an SSL session.
- * Use null to reset to default.
+ * Configure client keys to use for authorization in an SSL session. Use null to reset to
+ * default.
*
* @param managers The KeyManagers to use
* @return ApiClient
@@ -267,7 +257,7 @@ public ApiClient setKeyManagers(KeyManager[] managers) {
}
/**
- * Getter for the field dateFormat
.
+ * Getter for the field dateFormat
.
*
* @return a {@link java.text.DateFormat} object
*/
@@ -276,7 +266,7 @@ public DateFormat getDateFormat() {
}
/**
- * Setter for the field dateFormat
.
+ * Setter for the field dateFormat
.
*
* @param dateFormat a {@link java.text.DateFormat} object
* @return a {@link com.segment.publicapi.ApiClient} object
@@ -287,7 +277,7 @@ public ApiClient setDateFormat(DateFormat dateFormat) {
}
/**
- * Set SqlDateFormat.
+ * Set SqlDateFormat.
*
* @param dateFormat a {@link java.text.DateFormat} object
* @return a {@link com.segment.publicapi.ApiClient} object
@@ -298,7 +288,7 @@ public ApiClient setSqlDateFormat(DateFormat dateFormat) {
}
/**
- * Set OffsetDateTimeFormat.
+ * Set OffsetDateTimeFormat.
*
* @param dateFormat a {@link java.time.format.DateTimeFormatter} object
* @return a {@link com.segment.publicapi.ApiClient} object
@@ -309,7 +299,7 @@ public ApiClient setOffsetDateTimeFormat(DateTimeFormatter dateFormat) {
}
/**
- * Set LocalDateFormat.
+ * Set LocalDateFormat.
*
* @param dateFormat a {@link java.time.format.DateTimeFormatter} object
* @return a {@link com.segment.publicapi.ApiClient} object
@@ -320,7 +310,7 @@ public ApiClient setLocalDateFormat(DateTimeFormatter dateFormat) {
}
/**
- * Set LenientOnJson.
+ * Set LenientOnJson.
*
* @param lenientOnJson a boolean
* @return a {@link com.segment.publicapi.ApiClient} object
@@ -349,10 +339,11 @@ public Authentication getAuthentication(String authName) {
return authentications.get(authName);
}
- /**
- * Helper method to set access token for the first Bearer authentication.
- * @param bearerToken Bearer token
- */
+ /**
+ * Helper method to set access token for the first Bearer authentication.
+ *
+ * @param bearerToken Bearer token
+ */
public void setBearerToken(String bearerToken) {
for (Authentication auth : authentications.values()) {
if (auth instanceof HttpBearerAuth) {
@@ -500,11 +491,12 @@ public ApiClient setDebugging(boolean debugging) {
}
/**
- * The path of temporary folder used to store downloaded files from endpoints
- * with file response. The default value is null
, i.e. using
- * the system's default temporary folder.
+ * The path of temporary folder used to store downloaded files from endpoints with file
+ * response. The default value is null
, i.e. using the system's default temporary
+ * folder.
*
- * @see createTempFile
+ * @see createTempFile
* @return Temporary folder path
*/
public String getTempFolderPath() {
@@ -532,15 +524,18 @@ public int getConnectTimeout() {
}
/**
- * Sets the connect timeout (in milliseconds).
- * A value of 0 means no timeout, otherwise values must be between 1 and
- * {@link java.lang.Integer#MAX_VALUE}.
+ * Sets the connect timeout (in milliseconds). A value of 0 means no timeout, otherwise values
+ * must be between 1 and {@link java.lang.Integer#MAX_VALUE}.
*
* @param connectionTimeout connection timeout in milliseconds
* @return Api client
*/
public ApiClient setConnectTimeout(int connectionTimeout) {
- httpClient = httpClient.newBuilder().connectTimeout(connectionTimeout, TimeUnit.MILLISECONDS).build();
+ httpClient =
+ httpClient
+ .newBuilder()
+ .connectTimeout(connectionTimeout, TimeUnit.MILLISECONDS)
+ .build();
return this;
}
@@ -554,15 +549,15 @@ public int getReadTimeout() {
}
/**
- * Sets the read timeout (in milliseconds).
- * A value of 0 means no timeout, otherwise values must be between 1 and
- * {@link java.lang.Integer#MAX_VALUE}.
+ * Sets the read timeout (in milliseconds). A value of 0 means no timeout, otherwise values must
+ * be between 1 and {@link java.lang.Integer#MAX_VALUE}.
*
* @param readTimeout read timeout in milliseconds
* @return Api client
*/
public ApiClient setReadTimeout(int readTimeout) {
- httpClient = httpClient.newBuilder().readTimeout(readTimeout, TimeUnit.MILLISECONDS).build();
+ httpClient =
+ httpClient.newBuilder().readTimeout(readTimeout, TimeUnit.MILLISECONDS).build();
return this;
}
@@ -576,19 +571,18 @@ public int getWriteTimeout() {
}
/**
- * Sets the write timeout (in milliseconds).
- * A value of 0 means no timeout, otherwise values must be between 1 and
- * {@link java.lang.Integer#MAX_VALUE}.
+ * Sets the write timeout (in milliseconds). A value of 0 means no timeout, otherwise values
+ * must be between 1 and {@link java.lang.Integer#MAX_VALUE}.
*
* @param writeTimeout connection timeout in milliseconds
* @return Api client
*/
public ApiClient setWriteTimeout(int writeTimeout) {
- httpClient = httpClient.newBuilder().writeTimeout(writeTimeout, TimeUnit.MILLISECONDS).build();
+ httpClient =
+ httpClient.newBuilder().writeTimeout(writeTimeout, TimeUnit.MILLISECONDS).build();
return this;
}
-
/**
* Format the given parameter object into string.
*
@@ -598,8 +592,10 @@ public ApiClient setWriteTimeout(int writeTimeout) {
public String parameterToString(Object param) {
if (param == null) {
return "";
- } else if (param instanceof Date || param instanceof OffsetDateTime || param instanceof LocalDate) {
- //Serialize to json string and remove the " enclosing characters
+ } else if (param instanceof Date
+ || param instanceof OffsetDateTime
+ || param instanceof LocalDate) {
+ // Serialize to json string and remove the " enclosing characters
String jsonStr = JSON.serialize(param);
return jsonStr.substring(1, jsonStr.length() - 1);
} else if (param instanceof Collection) {
@@ -619,7 +615,7 @@ public String parameterToString(Object param) {
/**
* Formats the specified query parameter to a list containing a single {@code Pair} object.
*
- * Note that {@code value} must not be a collection.
+ * Note that {@code value} must not be a collection.
*
* @param name The name of the parameter.
* @param value The value of the parameter.
@@ -653,7 +649,7 @@ public List parameterToPair(String name, Object value) {
/**
* Formats the specified collection query parameters to a list of {@code Pair} objects.
*
- * Note that the values of each of the returned Pair objects are percent-encoded.
+ * Note that the values of each of the returned Pair objects are percent-encoded.
*
* @param collectionFormat The collection format of the parameter.
* @param name The name of the parameter.
@@ -689,13 +685,20 @@ public List parameterToPairs(String collectionFormat, String name, Collect
delimiter = escapeString("|");
}
+ boolean quotesNeeded =
+ !value.isEmpty() && value.iterator().next().getClass().equals(String.class);
+
StringBuilder sb = new StringBuilder();
for (Object item : value) {
sb.append(delimiter);
- sb.append(escapeString(parameterToString(item)));
+ if (quotesNeeded) {
+ sb.append(escapeString("\"" + parameterToString(item) + "\""));
+ } else {
+ sb.append(escapeString(parameterToString(item)));
+ }
}
- params.add(new Pair(name, sb.substring(delimiter.length())));
+ params.add(new Pair(name, "[".concat(sb.substring(delimiter.length())).concat("]")));
return params;
}
@@ -725,7 +728,7 @@ public String collectionPathParameterToString(String collectionFormat, Collectio
delimiter = "|";
}
- StringBuilder sb = new StringBuilder() ;
+ StringBuilder sb = new StringBuilder();
for (Object item : value) {
sb.append(delimiter);
sb.append(parameterToString(item));
@@ -735,8 +738,7 @@ public String collectionPathParameterToString(String collectionFormat, Collectio
}
/**
- * Sanitize filename by removing path.
- * e.g. ../../sun.gif becomes sun.gif
+ * Sanitize filename by removing path. e.g. ../../sun.gif becomes sun.gif
*
* @param filename The filename to be sanitized
* @return The sanitized filename
@@ -746,13 +748,10 @@ public String sanitizeFilename(String filename) {
}
/**
- * Check if the given MIME is a JSON MIME.
- * JSON MIME examples:
- * application/json
- * application/json; charset=UTF8
- * APPLICATION/JSON
- * application/vnd.company+json
- * "* / *" is also default to JSON
+ * Check if the given MIME is a JSON MIME. JSON MIME examples: application/json
+ * application/json; charset=UTF8 APPLICATION/JSON application/vnd.company+json "* / *" is also
+ * default to JSON
+ *
* @param mime MIME (Multipurpose Internet Mail Extensions)
* @return True if the given MIME is JSON, false otherwise.
*/
@@ -762,13 +761,12 @@ public boolean isJsonMime(String mime) {
}
/**
- * Select the Accept header's value from the given accepts array:
- * if JSON exists in the given array, use it;
- * otherwise use all of them (joining into a string)
+ * Select the Accept header's value from the given accepts array: if JSON exists in the given
+ * array, use it; otherwise use all of them (joining into a string)
*
* @param accepts The accepts array to select from
- * @return The Accept header to use. If the given array is empty,
- * null will be returned (not to set the Accept header explicitly).
+ * @return The Accept header to use. If the given array is empty, null will be returned (not to
+ * set the Accept header explicitly).
*/
public String selectHeaderAccept(String[] accepts) {
if (accepts.length == 0) {
@@ -783,13 +781,12 @@ public String selectHeaderAccept(String[] accepts) {
}
/**
- * Select the Content-Type header's value from the given array:
- * if JSON exists in the given array, use it;
- * otherwise use the first one of the array.
+ * Select the Content-Type header's value from the given array: if JSON exists in the given
+ * array, use it; otherwise use the first one of the array.
*
* @param contentTypes The Content-Type array to select from
- * @return The Content-Type header to use. If the given array is empty,
- * returns null. If it matches "any", JSON will be used.
+ * @return The Content-Type header to use. If the given array is empty, returns null. If it
+ * matches "any", JSON will be used.
*/
public String selectHeaderContentType(String[] contentTypes) {
if (contentTypes.length == 0) {
@@ -824,15 +821,15 @@ public String escapeString(String str) {
}
/**
- * Deserialize response body to Java object, according to the return type and
- * the Content-Type response header.
+ * Deserialize response body to Java object, according to the return type and the Content-Type
+ * response header.
*
* @param Type
* @param response HTTP response
* @param returnType The type of the Java object
* @return The deserialized Java object
- * @throws com.segment.publicapi.ApiException If fail to deserialize response body, i.e. cannot read response body
- * or the Content-Type of the response is not supported.
+ * @throws com.segment.publicapi.ApiException If fail to deserialize response body, i.e. cannot
+ * read response body or the Content-Type of the response is not supported.
*/
@SuppressWarnings("unchecked")
public T deserialize(Response response, Type returnType) throws ApiException {
@@ -854,10 +851,8 @@ public T deserialize(Response response, Type returnType) throws ApiException
String respBody;
try {
- if (response.body() != null)
- respBody = response.body().string();
- else
- respBody = null;
+ if (response.body() != null) respBody = response.body().string();
+ else respBody = null;
} catch (IOException e) {
throw new ApiException(e);
}
@@ -886,8 +881,8 @@ public T deserialize(Response response, Type returnType) throws ApiException
}
/**
- * Serialize the given Java object into request body according to the object's
- * class and the request Content-Type.
+ * Serialize the given Java object into request body according to the object's class and the
+ * request Content-Type.
*
* @param obj The Java object
* @param contentType The request Content-Type
@@ -922,7 +917,8 @@ public RequestBody serialize(Object obj, String contentType) throws ApiException
* Download file from the given response.
*
* @param response An instance of the Response object
- * @throws com.segment.publicapi.ApiException If fail to read file content from response and write to disk
+ * @throws com.segment.publicapi.ApiException If fail to read file content from response and
+ * write to disk
* @return Downloaded file
*/
public File downloadFileFromResponse(Response response) throws ApiException {
@@ -970,14 +966,11 @@ public File prepareDownloadFile(Response response) throws IOException {
suffix = filename.substring(pos);
}
// Files.createTempFile requires the prefix to be at least three characters long
- if (prefix.length() < 3)
- prefix = "download-";
+ if (prefix.length() < 3) prefix = "download-";
}
- if (tempFolderPath == null)
- return Files.createTempFile(prefix, suffix).toFile();
- else
- return Files.createTempFile(Paths.get(tempFolderPath), prefix, suffix).toFile();
+ if (tempFolderPath == null) return Files.createTempFile(prefix, suffix).toFile();
+ else return Files.createTempFile(Paths.get(tempFolderPath), prefix, suffix).toFile();
}
/**
@@ -998,9 +991,8 @@ public ApiResponse execute(Call call) throws ApiException {
* @param returnType The return type used to deserialize HTTP response body
* @param The return type corresponding to (same with) returnType
* @param call Call
- * @return ApiResponse object containing response status, headers and
- * data, which is a Java object deserialized from response body and would be null
- * when returnType is null.
+ * @return ApiResponse object containing response status, headers and data, which is a Java
+ * object deserialized from response body and would be null when returnType is null.
* @throws com.segment.publicapi.ApiException If fail to execute the call
*/
public ApiResponse execute(Call call, Type returnType) throws ApiException {
@@ -1035,27 +1027,32 @@ public void executeAsync(Call call, ApiCallback callback) {
*/
@SuppressWarnings("unchecked")
public void executeAsync(Call call, final Type returnType, final ApiCallback callback) {
- call.enqueue(new Callback() {
- @Override
- public void onFailure(Call call, IOException e) {
- callback.onFailure(new ApiException(e), 0, null);
- }
+ call.enqueue(
+ new Callback() {
+ @Override
+ public void onFailure(Call call, IOException e) {
+ callback.onFailure(new ApiException(e), 0, null);
+ }
- @Override
- public void onResponse(Call call, Response response) throws IOException {
- T result;
- try {
- result = (T) handleResponse(response, returnType);
- } catch (ApiException e) {
- callback.onFailure(e, response.code(), response.headers().toMultimap());
- return;
- } catch (Exception e) {
- callback.onFailure(new ApiException(e), response.code(), response.headers().toMultimap());
- return;
- }
- callback.onSuccess(result, response.code(), response.headers().toMultimap());
- }
- });
+ @Override
+ public void onResponse(Call call, Response response) throws IOException {
+ T result;
+ try {
+ result = (T) handleResponse(response, returnType);
+ } catch (ApiException e) {
+ callback.onFailure(e, response.code(), response.headers().toMultimap());
+ return;
+ } catch (Exception e) {
+ callback.onFailure(
+ new ApiException(e),
+ response.code(),
+ response.headers().toMultimap());
+ return;
+ }
+ callback.onSuccess(
+ result, response.code(), response.headers().toMultimap());
+ }
+ });
}
/**
@@ -1066,7 +1063,7 @@ public void onResponse(Call call, Response response) throws IOException {
* @param returnType Return type
* @return Type
* @throws com.segment.publicapi.ApiException If the response has an unsuccessful status code or
- * fail to deserialize the response body
+ * fail to deserialize the response body
*/
public T handleResponse(Response response, Type returnType) throws ApiException {
if (response.isSuccessful()) {
@@ -1077,7 +1074,11 @@ public T handleResponse(Response response, Type returnType) throws ApiExcept
try {
response.body().close();
} catch (Exception e) {
- throw new ApiException(response.message(), e, response.code(), response.headers().toMultimap());
+ throw new ApiException(
+ response.message(),
+ e,
+ response.code(),
+ response.headers().toMultimap());
}
}
return null;
@@ -1090,10 +1091,15 @@ public T handleResponse(Response response, Type returnType) throws ApiExcept
try {
respBody = response.body().string();
} catch (IOException e) {
- throw new ApiException(response.message(), e, response.code(), response.headers().toMultimap());
+ throw new ApiException(
+ response.message(),
+ e,
+ response.code(),
+ response.headers().toMultimap());
}
}
- throw new ApiException(response.message(), response.code(), response.headers().toMultimap(), respBody);
+ throw new ApiException(
+ response.message(), response.code(), response.headers().toMultimap(), respBody);
}
}
@@ -1102,7 +1108,8 @@ public T handleResponse(Response response, Type returnType) throws ApiExcept
*
* @param baseUrl The base URL
* @param path The sub-path of the HTTP URL
- * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE"
+ * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and
+ * "DELETE"
* @param queryParams The query parameters
* @param collectionQueryParams The collection query parameters
* @param body The request body object
@@ -1114,8 +1121,32 @@ public T handleResponse(Response response, Type returnType) throws ApiExcept
* @return The HTTP call
* @throws com.segment.publicapi.ApiException If fail to serialize the request body object
*/
- public Call buildCall(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException {
- Request request = buildRequest(baseUrl, path, method, queryParams, collectionQueryParams, body, headerParams, cookieParams, formParams, authNames, callback);
+ public Call buildCall(
+ String baseUrl,
+ String path,
+ String method,
+ List queryParams,
+ List collectionQueryParams,
+ Object body,
+ Map headerParams,
+ Map cookieParams,
+ Map formParams,
+ String[] authNames,
+ ApiCallback callback)
+ throws ApiException {
+ Request request =
+ buildRequest(
+ baseUrl,
+ path,
+ method,
+ queryParams,
+ collectionQueryParams,
+ body,
+ headerParams,
+ cookieParams,
+ formParams,
+ authNames,
+ callback);
return httpClient.newCall(request);
}
@@ -1125,7 +1156,8 @@ public Call buildCall(String baseUrl, String path, String method, List que
*
* @param baseUrl The base URL
* @param path The sub-path of the HTTP URL
- * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE"
+ * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and
+ * "DELETE"
* @param queryParams The query parameters
* @param collectionQueryParams The collection query parameters
* @param body The request body object
@@ -1137,7 +1169,19 @@ public Call buildCall(String baseUrl, String path, String method, List que
* @return The HTTP request
* @throws com.segment.publicapi.ApiException If fail to serialize the request body object
*/
- public Request buildRequest(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException {
+ public Request buildRequest(
+ String baseUrl,
+ String path,
+ String method,
+ List queryParams,
+ List collectionQueryParams,
+ Object body,
+ Map headerParams,
+ Map cookieParams,
+ Map formParams,
+ String[] authNames,
+ ApiCallback callback)
+ throws ApiException {
// aggregate queryParams (non-collection) and collectionQueryParams into allQueryParams
List allQueryParams = new ArrayList(queryParams);
allQueryParams.addAll(collectionQueryParams);
@@ -1160,14 +1204,23 @@ public Request buildRequest(String baseUrl, String path, String method, List queryParams, List collectionQueryParams) {
+ public String buildUrl(
+ String baseUrl, String path, List queryParams, List collectionQueryParams) {
final StringBuilder url = new StringBuilder();
if (baseUrl != null) {
url.append(baseUrl).append(path);
@@ -1218,7 +1272,9 @@ public String buildUrl(String baseUrl, String path, List queryParams, List
url.append("&");
}
String value = parameterToString(param.getValue());
- url.append(escapeString(param.getName())).append("=").append(escapeString(value));
+ url.append(escapeString(param.getName()))
+ .append("=")
+ .append(escapeString(value));
}
}
}
@@ -1268,11 +1324,13 @@ public void processHeaderParams(Map headerParams, Request.Builde
*/
public void processCookieParams(Map cookieParams, Request.Builder reqBuilder) {
for (Entry param : cookieParams.entrySet()) {
- reqBuilder.addHeader("Cookie", String.format("%s=%s", param.getKey(), param.getValue()));
+ reqBuilder.addHeader(
+ "Cookie", String.format("%s=%s", param.getKey(), param.getValue()));
}
for (Entry param : defaultCookieMap.entrySet()) {
if (!cookieParams.containsKey(param.getKey())) {
- reqBuilder.addHeader("Cookie", String.format("%s=%s", param.getKey(), param.getValue()));
+ reqBuilder.addHeader(
+ "Cookie", String.format("%s=%s", param.getKey(), param.getValue()));
}
}
}
@@ -1289,8 +1347,15 @@ public void processCookieParams(Map cookieParams, Request.Builde
* @param uri URI
* @throws com.segment.publicapi.ApiException If fails to update the parameters
*/
- public void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams,
- Map cookieParams, String payload, String method, URI uri) throws ApiException {
+ public void updateParamsForAuth(
+ String[] authNames,
+ List queryParams,
+ Map headerParams,
+ Map cookieParams,
+ String payload,
+ String method,
+ URI uri)
+ throws ApiException {
for (String authName : authNames) {
Authentication auth = authentications.get(authName);
if (auth == null) {
@@ -1315,8 +1380,8 @@ public RequestBody buildRequestBodyFormEncoding(Map formParams)
}
/**
- * Build a multipart (file uploading) request body with the given form parameters,
- * which could contain text fields and file fields.
+ * Build a multipart (file uploading) request body with the given form parameters, which could
+ * contain text fields and file fields.
*
* @param formParams Form parameters in the form of Map
* @return RequestBody
@@ -1329,7 +1394,7 @@ public RequestBody buildRequestBodyMultipart(Map formParams) {
addPartToMultiPartBuilder(mpBuilder, param.getKey(), file);
} else if (param.getValue() instanceof List) {
List list = (List) param.getValue();
- for (Object item: list) {
+ for (Object item : list) {
if (item instanceof File) {
addPartToMultiPartBuilder(mpBuilder, param.getKey(), (File) item);
} else {
@@ -1361,24 +1426,29 @@ public String guessContentTypeFromFile(File file) {
/**
* Add a Content-Disposition Header for the given key and file to the MultipartBody Builder.
*
- * @param mpBuilder MultipartBody.Builder
+ * @param mpBuilder MultipartBody.Builder
* @param key The key of the Header element
* @param file The file to add to the Header
- */
+ */
private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, File file) {
- Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + key + "\"; filename=\"" + file.getName() + "\"");
+ Headers partHeaders =
+ Headers.of(
+ "Content-Disposition",
+ "form-data; name=\"" + key + "\"; filename=\"" + file.getName() + "\"");
MediaType mediaType = MediaType.parse(guessContentTypeFromFile(file));
mpBuilder.addPart(partHeaders, RequestBody.create(file, mediaType));
}
/**
- * Add a Content-Disposition Header for the given key and complex object to the MultipartBody Builder.
+ * Add a Content-Disposition Header for the given key and complex object to the MultipartBody
+ * Builder.
*
* @param mpBuilder MultipartBody.Builder
* @param key The key of the Header element
* @param obj The complex object to add to the Header
*/
- private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, Object obj) {
+ private void addPartToMultiPartBuilder(
+ MultipartBody.Builder mpBuilder, String key, Object obj) {
RequestBody requestBody;
if (obj instanceof String) {
requestBody = RequestBody.create((String) obj, MediaType.parse("text/plain"));
@@ -1397,8 +1467,8 @@ private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String k
}
/**
- * Get network interceptor to add it to the httpClient to track download progress for
- * async requests.
+ * Get network interceptor to add it to the httpClient to track download progress for async
+ * requests.
*/
private Interceptor getProgressInterceptor() {
return new Interceptor() {
@@ -1408,9 +1478,10 @@ public Response intercept(Interceptor.Chain chain) throws IOException {
final Response originalResponse = chain.proceed(request);
if (request.tag() instanceof ApiCallback) {
final ApiCallback callback = (ApiCallback) request.tag();
- return originalResponse.newBuilder()
- .body(new ProgressResponseBody(originalResponse.body(), callback))
- .build();
+ return originalResponse
+ .newBuilder()
+ .body(new ProgressResponseBody(originalResponse.body(), callback))
+ .build();
}
return originalResponse;
}
@@ -1418,47 +1489,54 @@ public Response intercept(Interceptor.Chain chain) throws IOException {
}
/**
- * Apply SSL related settings to httpClient according to the current values of
- * verifyingSsl and sslCaCert.
+ * Apply SSL related settings to httpClient according to the current values of verifyingSsl and
+ * sslCaCert.
*/
private void applySslSettings() {
try {
TrustManager[] trustManagers;
HostnameVerifier hostnameVerifier;
if (!verifyingSsl) {
- trustManagers = new TrustManager[]{
- new X509TrustManager() {
- @Override
- public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException {
- }
-
- @Override
- public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException {
+ trustManagers =
+ new TrustManager[] {
+ new X509TrustManager() {
+ @Override
+ public void checkClientTrusted(
+ java.security.cert.X509Certificate[] chain, String authType)
+ throws CertificateException {}
+
+ @Override
+ public void checkServerTrusted(
+ java.security.cert.X509Certificate[] chain, String authType)
+ throws CertificateException {}
+
+ @Override
+ public java.security.cert.X509Certificate[] getAcceptedIssuers() {
+ return new java.security.cert.X509Certificate[] {};
+ }
}
-
+ };
+ hostnameVerifier =
+ new HostnameVerifier() {
@Override
- public java.security.cert.X509Certificate[] getAcceptedIssuers() {
- return new java.security.cert.X509Certificate[]{};
+ public boolean verify(String hostname, SSLSession session) {
+ return true;
}
- }
- };
- hostnameVerifier = new HostnameVerifier() {
- @Override
- public boolean verify(String hostname, SSLSession session) {
- return true;
- }
- };
+ };
} else {
- TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
+ TrustManagerFactory trustManagerFactory =
+ TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
if (sslCaCert == null) {
trustManagerFactory.init((KeyStore) null);
} else {
char[] password = null; // Any password will work.
CertificateFactory certificateFactory = CertificateFactory.getInstance("X.509");
- Collection extends Certificate> certificates = certificateFactory.generateCertificates(sslCaCert);
+ Collection extends Certificate> certificates =
+ certificateFactory.generateCertificates(sslCaCert);
if (certificates.isEmpty()) {
- throw new IllegalArgumentException("expected non-empty set of trusted certificates");
+ throw new IllegalArgumentException(
+ "expected non-empty set of trusted certificates");
}
KeyStore caKeyStore = newEmptyKeyStore(password);
int index = 0;
@@ -1474,8 +1552,12 @@ public boolean verify(String hostname, SSLSession session) {
SSLContext sslContext = SSLContext.getInstance("TLS");
sslContext.init(keyManagers, trustManagers, new SecureRandom());
- httpClient = httpClient.newBuilder()
- .sslSocketFactory(sslContext.getSocketFactory(), (X509TrustManager) trustManagers[0])
+ httpClient =
+ httpClient
+ .newBuilder()
+ .sslSocketFactory(
+ sslContext.getSocketFactory(),
+ (X509TrustManager) trustManagers[0])
.hostnameVerifier(hostnameVerifier)
.build();
} catch (GeneralSecurityException e) {
@@ -1498,7 +1580,8 @@ private KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityExcepti
*
* @param requestBody The HTTP request object
* @return The string representation of the HTTP request body
- * @throws com.segment.publicapi.ApiException If fail to serialize the request body object into a string
+ * @throws com.segment.publicapi.ApiException If fail to serialize the request body object into
+ * a string
*/
private String requestBodyToString(RequestBody requestBody) throws ApiException {
if (requestBody != null) {
diff --git a/src/main/java/com/segment/publicapi/ApiException.java b/src/main/java/com/segment/publicapi/ApiException.java
index 15b7c7fa..eeacf735 100644
--- a/src/main/java/com/segment/publicapi/ApiException.java
+++ b/src/main/java/com/segment/publicapi/ApiException.java
@@ -1,8 +1,7 @@
/*
* Segment Public API
- * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
+ * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
*
- * The version of the OpenAPI document: 32.0.2
* Contact: friends@segment.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,31 +9,23 @@
* Do not edit the class manually.
*/
-
package com.segment.publicapi;
-import java.util.Map;
import java.util.List;
+import java.util.Map;
-import javax.ws.rs.core.GenericType;
-
-/**
- * ApiException class.
- */
+/** ApiException class. */
@SuppressWarnings("serial")
-
public class ApiException extends Exception {
private int code = 0;
private Map> responseHeaders = null;
private String responseBody = null;
-
- /**
- * Constructor for ApiException.
- */
+
+ /** Constructor for ApiException. */
public ApiException() {}
/**
- * Constructor for ApiException.
+ * Constructor for ApiException.
*
* @param throwable a {@link java.lang.Throwable} object
*/
@@ -43,7 +34,7 @@ public ApiException(Throwable throwable) {
}
/**
- * Constructor for ApiException.
+ * Constructor for ApiException.
*
* @param message the error message
*/
@@ -52,7 +43,7 @@ public ApiException(String message) {
}
/**
- * Constructor for ApiException.
+ * Constructor for ApiException.
*
* @param message the error message
* @param throwable a {@link java.lang.Throwable} object
@@ -60,7 +51,12 @@ public ApiException(String message) {
* @param responseHeaders a {@link java.util.Map} of HTTP response headers
* @param responseBody the response body
*/
- public ApiException(String message, Throwable throwable, int code, Map> responseHeaders, String responseBody) {
+ public ApiException(
+ String message,
+ Throwable throwable,
+ int code,
+ Map> responseHeaders,
+ String responseBody) {
super(message, throwable);
this.code = code;
this.responseHeaders = responseHeaders;
@@ -68,42 +64,55 @@ public ApiException(String message, Throwable throwable, int code, MapConstructor for ApiException.
+ * Constructor for ApiException.
*
* @param message the error message
* @param code HTTP status code
* @param responseHeaders a {@link java.util.Map} of HTTP response headers
* @param responseBody the response body
*/
- public ApiException(String message, int code, Map> responseHeaders, String responseBody) {
+ public ApiException(
+ String message,
+ int code,
+ Map> responseHeaders,
+ String responseBody) {
this(message, (Throwable) null, code, responseHeaders, responseBody);
}
/**
- * Constructor for ApiException.
+ * Constructor for ApiException.
*
* @param message the error message
* @param throwable a {@link java.lang.Throwable} object
* @param code HTTP status code
* @param responseHeaders a {@link java.util.Map} of HTTP response headers
*/
- public ApiException(String message, Throwable throwable, int code, Map> responseHeaders) {
+ public ApiException(
+ String message,
+ Throwable throwable,
+ int code,
+ Map> responseHeaders) {
this(message, throwable, code, responseHeaders, null);
}
/**
- * Constructor for ApiException.
+ * Constructor for ApiException.
*
* @param code HTTP status code
* @param responseHeaders a {@link java.util.Map} of HTTP response headers
* @param responseBody the response body
*/
public ApiException(int code, Map> responseHeaders, String responseBody) {
- this((String) null, (Throwable) null, code, responseHeaders, responseBody);
+ this(
+ "Response Code: " + code + " Response Body: " + responseBody,
+ (Throwable) null,
+ code,
+ responseHeaders,
+ responseBody);
}
/**
- * Constructor for ApiException.
+ * Constructor for ApiException.
*
* @param code HTTP status code
* @param message a {@link java.lang.String} object
@@ -114,14 +123,18 @@ public ApiException(int code, String message) {
}
/**
- * Constructor for ApiException.
+ * Constructor for ApiException.
*
* @param code HTTP status code
* @param message the error message
* @param responseHeaders a {@link java.util.Map} of HTTP response headers
* @param responseBody the response body
*/
- public ApiException(int code, String message, Map> responseHeaders, String responseBody) {
+ public ApiException(
+ int code,
+ String message,
+ Map> responseHeaders,
+ String responseBody) {
this(code, message);
this.responseHeaders = responseHeaders;
this.responseBody = responseBody;
@@ -160,7 +173,12 @@ public String getResponseBody() {
* @return The exception message
*/
public String getMessage() {
- return String.format("Message: %s%nHTTP response code: %s%nHTTP response body: %s%nHTTP response headers: %s",
- super.getMessage(), this.getCode(), this.getResponseBody(), this.getResponseHeaders());
+ return String.format(
+ "Message: %s%nHTTP response code: %s%nHTTP response body: %s%nHTTP response"
+ + " headers: %s",
+ super.getMessage(),
+ this.getCode(),
+ this.getResponseBody(),
+ this.getResponseHeaders());
}
}
diff --git a/src/main/java/com/segment/publicapi/ApiResponse.java b/src/main/java/com/segment/publicapi/ApiResponse.java
index 34468098..f2da2ac8 100644
--- a/src/main/java/com/segment/publicapi/ApiResponse.java
+++ b/src/main/java/com/segment/publicapi/ApiResponse.java
@@ -1,8 +1,7 @@
/*
* Segment Public API
- * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
+ * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
*
- * The version of the OpenAPI document: 32.0.2
* Contact: friends@segment.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,22 +9,19 @@
* Do not edit the class manually.
*/
-
package com.segment.publicapi;
import java.util.List;
import java.util.Map;
-/**
- * API response returned by API call.
- */
+/** API response returned by API call. */
public class ApiResponse {
- final private int statusCode;
- final private Map> headers;
- final private T data;
+ private final int statusCode;
+ private final Map> headers;
+ private final T data;
/**
- * Constructor for ApiResponse.
+ * Constructor for ApiResponse.
*
* @param statusCode The status code of HTTP response
* @param headers The headers of HTTP response
@@ -35,7 +31,7 @@ public ApiResponse(int statusCode, Map> headers) {
}
/**
- * Constructor for ApiResponse.
+ * Constructor for ApiResponse.
*
* @param statusCode The status code of HTTP response
* @param headers The headers of HTTP response
@@ -48,7 +44,7 @@ public ApiResponse(int statusCode, Map> headers, T data) {
}
/**
- * Get the status code
.
+ * Get the status code
.
*
* @return the status code
*/
@@ -57,16 +53,16 @@ public int getStatusCode() {
}
/**
- * Get the headers
.
+ * Get the headers
.
*
- * @return a {@link java.util.Map} of headers
+ * @return a {@link java.util.Map} of headers
*/
public Map> getHeaders() {
return headers;
}
/**
- * Get the data
.
+ * Get the data
.
*
* @return the data
*/
diff --git a/src/main/java/com/segment/publicapi/Configuration.java b/src/main/java/com/segment/publicapi/Configuration.java
index bfc4e3d5..1b49b628 100644
--- a/src/main/java/com/segment/publicapi/Configuration.java
+++ b/src/main/java/com/segment/publicapi/Configuration.java
@@ -1,8 +1,7 @@
/*
* Segment Public API
- * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
+ * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
*
- * The version of the OpenAPI document: 32.0.2
* Contact: friends@segment.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,16 +9,16 @@
* Do not edit the class manually.
*/
-
package com.segment.publicapi;
-
public class Configuration {
+ public static final String VERSION = "58.13.0";
+
private static ApiClient defaultApiClient = new ApiClient();
/**
- * Get the default API client, which would be used when creating API
- * instances without providing an API client.
+ * Get the default API client, which would be used when creating API instances without providing
+ * an API client.
*
* @return Default API client
*/
@@ -28,8 +27,8 @@ public static ApiClient getDefaultApiClient() {
}
/**
- * Set the default API client, which would be used when creating API
- * instances without providing an API client.
+ * Set the default API client, which would be used when creating API instances without providing
+ * an API client.
*
* @param apiClient API client
*/
diff --git a/src/main/java/com/segment/publicapi/GzipRequestInterceptor.java b/src/main/java/com/segment/publicapi/GzipRequestInterceptor.java
index a411ce50..657dfa59 100644
--- a/src/main/java/com/segment/publicapi/GzipRequestInterceptor.java
+++ b/src/main/java/com/segment/publicapi/GzipRequestInterceptor.java
@@ -1,8 +1,7 @@
/*
* Segment Public API
- * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
+ * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
*
- * The version of the OpenAPI document: 32.0.2
* Contact: friends@segment.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,21 +9,19 @@
* Do not edit the class manually.
*/
-
package com.segment.publicapi;
+import java.io.IOException;
import okhttp3.*;
import okio.Buffer;
import okio.BufferedSink;
import okio.GzipSink;
import okio.Okio;
-import java.io.IOException;
-
/**
* Encodes request bodies using gzip.
*
- * Taken from https://github.com/square/okhttp/issues/350
+ * Taken from https://github.com/square/okhttp/issues/350
*/
class GzipRequestInterceptor implements Interceptor {
@Override
@@ -34,10 +31,14 @@ public Response intercept(Chain chain) throws IOException {
return chain.proceed(originalRequest);
}
- Request compressedRequest = originalRequest.newBuilder()
- .header("Content-Encoding", "gzip")
- .method(originalRequest.method(), forceContentLength(gzip(originalRequest.body())))
- .build();
+ Request compressedRequest =
+ originalRequest
+ .newBuilder()
+ .header("Content-Encoding", "gzip")
+ .method(
+ originalRequest.method(),
+ forceContentLength(gzip(originalRequest.body())))
+ .build();
return chain.proceed(compressedRequest);
}
diff --git a/src/main/java/com/segment/publicapi/JSON.java b/src/main/java/com/segment/publicapi/JSON.java
index 6471fcc6..4db4fb1c 100644
--- a/src/main/java/com/segment/publicapi/JSON.java
+++ b/src/main/java/com/segment/publicapi/JSON.java
@@ -1,8 +1,7 @@
/*
* Segment Public API
- * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
+ * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
*
- * The version of the OpenAPI document: 32.0.2
* Contact: friends@segment.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,22 +9,17 @@
* Do not edit the class manually.
*/
-
package com.segment.publicapi;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
+import com.google.gson.JsonElement;
import com.google.gson.JsonParseException;
import com.google.gson.TypeAdapter;
import com.google.gson.internal.bind.util.ISO8601Utils;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
-import com.google.gson.JsonElement;
import io.gsonfire.GsonFireBuilder;
-import io.gsonfire.TypeSelector;
-
-import okio.ByteString;
-
import java.io.IOException;
import java.io.StringReader;
import java.lang.reflect.Type;
@@ -36,9 +30,8 @@
import java.time.OffsetDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Date;
-import java.util.Locale;
import java.util.Map;
-import java.util.HashMap;
+import okio.ByteString;
/*
* A JSON utility class
@@ -51,37 +44,42 @@ public class JSON {
private static boolean isLenientOnJson = false;
private static DateTypeAdapter dateTypeAdapter = new DateTypeAdapter();
private static SqlDateTypeAdapter sqlDateTypeAdapter = new SqlDateTypeAdapter();
- private static OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = new OffsetDateTimeTypeAdapter();
+ private static OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter =
+ new OffsetDateTimeTypeAdapter();
private static LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter();
private static ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter();
@SuppressWarnings("unchecked")
public static GsonBuilder createGson() {
- GsonFireBuilder fireBuilder = new GsonFireBuilder()
- ;
+ GsonFireBuilder fireBuilder = new GsonFireBuilder();
GsonBuilder builder = fireBuilder.createGsonBuilder();
return builder;
}
- private static String getDiscriminatorValue(JsonElement readElement, String discriminatorField) {
+ private static String getDiscriminatorValue(
+ JsonElement readElement, String discriminatorField) {
JsonElement element = readElement.getAsJsonObject().get(discriminatorField);
if (null == element) {
- throw new IllegalArgumentException("missing discriminator field: <" + discriminatorField + ">");
+ throw new IllegalArgumentException(
+ "missing discriminator field: <" + discriminatorField + ">");
}
return element.getAsString();
}
/**
- * Returns the Java class that implements the OpenAPI schema for the specified discriminator value.
+ * Returns the Java class that implements the OpenAPI schema for the specified discriminator
+ * value.
*
* @param classByDiscriminatorValue The map of discriminator values to Java classes.
* @param discriminatorValue The value of the OpenAPI discriminator in the input data.
* @return The Java class that implements the OpenAPI schema
*/
- private static Class getClassByDiscriminator(Map classByDiscriminatorValue, String discriminatorValue) {
+ private static Class getClassByDiscriminator(
+ Map classByDiscriminatorValue, String discriminatorValue) {
Class clazz = (Class) classByDiscriminatorValue.get(discriminatorValue);
if (null == clazz) {
- throw new IllegalArgumentException("cannot determine model class of name: <" + discriminatorValue + ">");
+ throw new IllegalArgumentException(
+ "cannot determine model class of name: <" + discriminatorValue + ">");
}
return clazz;
}
@@ -93,469 +91,1702 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapter(OffsetDateTime.class, offsetDateTimeTypeAdapter);
gsonBuilder.registerTypeAdapter(LocalDate.class, localDateTypeAdapter);
gsonBuilder.registerTypeAdapter(byte[].class, byteArrayAdapter);
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.APICallSnapshotV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.AccessPermissionV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.AddConnectionFromSourceToWarehouse200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.AddConnectionFromSourceToWarehouseV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.AddLabelsToSource200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.AddLabelsToSource200Response1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.AddLabelsToSourceAlphaInput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.AddLabelsToSourceAlphaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.AddLabelsToSourceV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.AddLabelsToSourceV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.AddPermissionsToUser200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.AddPermissionsToUserGroup200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.AddPermissionsToUserGroupV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.AddPermissionsToUserGroupV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.AddPermissionsToUserV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.AddPermissionsToUserV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.AddSourceToTrackingPlan200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.AddSourceToTrackingPlanV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.AddSourceToTrackingPlanV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.AddUsersToUserGroup200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.AddUsersToUserGroupV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.AddUsersToUserGroupV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.AdvancedWarehouseSyncScheduleV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.AdvancedWarehouseSyncScheduleV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.AllowedLabelBeta.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.AuditEventV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.BatchQueryMessagingSubscriptionsForSpace200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.BatchQueryMessagingSubscriptionsForSpaceAlphaInput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.BatchQueryMessagingSubscriptionsForSpaceAlphaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.BreakdownBeta.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CommonSourceSettingsV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Contact.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateCloudSourceRegulation200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateCloudSourceRegulationV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateCloudSourceRegulationV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateDestination200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateDestinationSubscription200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateDestinationSubscriptionAlphaInput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateDestinationSubscriptionAlphaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateDestinationV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateDestinationV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateEdgeFunctions200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateEdgeFunctionsAlphaInput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateEdgeFunctionsAlphaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateFilterForDestination200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateFilterForDestinationV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateFilterForDestinationV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateFunction200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateFunctionDeployment200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateFunctionDeploymentV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateFunctionV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateFunctionV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateInvites200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateInvitesV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateInvitesV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateLabel200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateLabel200Response1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateLabelAlphaInput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateLabelAlphaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateLabelV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateLabelV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateSource200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateSource200Response1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateSourceAlphaInput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateSourceAlphaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateSourceRegulation200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateSourceRegulationV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateSourceRegulationV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateSourceV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateSourceV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateTrackingPlan200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateTrackingPlanV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateTrackingPlanV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateTransformation200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateTransformationBetaInput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateTransformationBetaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateUserGroup200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateUserGroupV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateUserGroupV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateValidationInWarehouse200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateValidationInWarehouseV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateValidationInWarehouseV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateWarehouse200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateWarehouseV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateWarehouseV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateWorkspaceRegulation200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateWorkspaceRegulationV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.CreateWorkspaceRegulationV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DeleteDestination200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DeleteDestinationV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DeleteFunction200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DeleteFunctionV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DeleteInvites200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DeleteInvitesV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DeleteLabel200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DeleteLabel200Response1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DeleteLabelAlphaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DeleteLabelV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DeleteRegulation200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DeleteRegulationV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DeleteSource200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DeleteSource200Response1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DeleteSourceAlphaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DeleteSourceV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DeleteTrackingPlan200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DeleteTrackingPlanV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DeleteTransformation200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DeleteTransformationBetaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DeleteUserGroup200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DeleteUserGroupV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DeleteUsers200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DeleteUsersV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DeleteWarehouse200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DeleteWarehouseV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DeliveryMetricsSummary.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DeliveryMetricsSummaryBeta.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Destination.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Destination1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Destination2.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DestinationFilterActionV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DestinationFilterV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DestinationMetadata.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DestinationMetadataActionFieldV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DestinationMetadataActionV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DestinationMetadataComponentV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DestinationMetadataFeaturesV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DestinationMetadataMethodsV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DestinationMetadataPlatformsV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DestinationMetadataSubscriptionPresetV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DestinationMetadataV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DestinationStatusV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DestinationSubscription.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DestinationSubscriptionUpdateInput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DestinationV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DisableEdgeFunctions200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.DisableEdgeFunctionsAlphaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Echo200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Echo200Response1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.EchoAlphaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.EchoV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.EdgeFunctions.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.EdgeFunctions1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.EdgeFunctionsAlpha.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.EventSourceV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Filter.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Filter1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Filter2.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Filter3.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Function.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Function1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Function2.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.FunctionDeployment.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.FunctionSettingV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.FunctionV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GenerateUploadURLForEdgeFunctions200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GenerateUploadURLForEdgeFunctionsAlphaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetAdvancedSyncScheduleFromWarehouse200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetAdvancedSyncScheduleFromWarehouseV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetConnectionStateFromWarehouse200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetConnectionStateFromWarehouseV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetDailyPerSourceAPICallsUsage200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetDailyPerSourceAPICallsUsageV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetDailyPerSourceMTUUsage200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetDailyPerSourceMTUUsageV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetDailyWorkspaceAPICallsUsage200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetDailyWorkspaceAPICallsUsageV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetDailyWorkspaceMTUUsage200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetDailyWorkspaceMTUUsageV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetDestination200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetDestinationMetadata200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetDestinationMetadataV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetDestinationV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetDestinationsCatalog200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetDestinationsCatalogV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetEventsVolumeFromWorkspace200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetEventsVolumeFromWorkspaceV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetFilterInDestination200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetFilterInDestinationV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetFunction200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetFunctionV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetLatestFromEdgeFunctions200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetLatestFromEdgeFunctionsAlphaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetMessagingSubscriptionFailureResponse.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetMessagingSubscriptionSuccessResponse.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetRegulation200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetRegulationV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetSource200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetSource200Response1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetSourceAlphaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetSourceMetadata200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetSourceMetadataV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetSourceV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetSourcesCatalog200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetSourcesCatalogV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetSpace200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetSpaceAlphaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetSubscriptionFromDestination200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetSubscriptionFromDestinationAlphaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetSubscriptionRequest.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetTrackingPlan200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetTrackingPlanV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetTransformation200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetTransformationBetaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetUser200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetUserGroup200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetUserGroupV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetUserV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetWarehouse200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetWarehouseMetadata200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetWarehouseMetadataV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetWarehouseV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetWarehousesCatalog200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetWarehousesCatalogV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetWorkspace200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GetWorkspaceV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Group.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.GroupSourceSettingsV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Identify.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.IdentifySourceSettingsV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.IntegrationOptionBeta.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.InvitePermissionV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.InviteV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Label.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Label1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Label2.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.LabelAlpha.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.LabelV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListAuditEvents200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListAuditEventsV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListConnectedDestinationsFromSource200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListConnectedDestinationsFromSource200Response1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListConnectedDestinationsFromSourceAlphaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListConnectedDestinationsFromSourceV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListConnectedSourcesFromWarehouse200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListConnectedSourcesFromWarehouseV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListConnectedWarehousesFromSource200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListConnectedWarehousesFromSource200Response1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListConnectedWarehousesFromSourceAlphaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListConnectedWarehousesFromSourceV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListDeliveryMetricsSummaryFromDestination200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListDeliveryMetricsSummaryFromDestinationBetaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListDestinations200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListDestinationsV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListFiltersFromDestination200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListFiltersFromDestinationV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListFunctionItemV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListFunctions200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListFunctionsV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListInvites200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListInvitesFromUserGroup200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListInvitesFromUserGroupV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListInvitesV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListLabels200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListLabels200Response1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListLabelsAlphaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListLabelsV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListRegulationsFromSource200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListRegulationsFromSourceV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListRoles200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListRolesV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListRulesFromTrackingPlan200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListRulesFromTrackingPlanV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListSchemaSettingsInSource200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListSchemaSettingsInSourceV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListSelectiveSyncsFromWarehouseAndSource200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListSelectiveSyncsFromWarehouseAndSourceV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListSources200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListSources200Response1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListSourcesAlphaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListSourcesFromTrackingPlan200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListSourcesFromTrackingPlanV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListSourcesV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListSubscriptionsFromDestination200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListSubscriptionsFromDestinationAlphaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListSuppressions200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListSuppressionsV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListSyncsFromWarehouse200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListSyncsFromWarehouseAndSource200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListSyncsFromWarehouseAndSourceV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListSyncsFromWarehouseV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListTrackingPlans200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListTrackingPlansV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListTransformations200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListTransformationsBetaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListUserGroups200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListUserGroupsFromUser200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListUserGroupsFromUserV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListUserGroupsV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListUsers200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListUsersFromUserGroup200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListUsersFromUserGroupV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListUsersV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListWarehouses200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListWarehousesV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListWorkspaceRegulations200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ListWorkspaceRegulationsV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Logos.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Logos1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Logos2.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.LogosBeta.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.MessageSubscriptionResponse.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.MessageSubscriptionResponseError.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.MessagesSubscriptionRequest.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Metadata.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Metadata1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Metadata2.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.MetricBeta.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.MinimalUserGroupV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.MinimalUserV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.MtuSnapshotV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Pagination.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.PaginationInput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.PaginationOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.PermissionInputV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.PermissionResourceV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.PermissionV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.PreviewDestinationFilter200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.PreviewDestinationFilterV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.PreviewDestinationFilterV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.PreviewDestinationFilterV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.PropertyRenameBeta.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Regulation.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.RegulationListEntryV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.RemoveFilterFromDestination200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.RemoveFilterFromDestinationV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.RemoveRuleV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.RemoveRulesFromTrackingPlan200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.RemoveRulesFromTrackingPlanV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.RemoveSourceConnectionFromWarehouse200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.RemoveSourceConnectionFromWarehouseV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.RemoveSourceFromTrackingPlan200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.RemoveSourceFromTrackingPlanV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.RemoveSubscriptionFromDestination200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.RemoveSubscriptionFromDestinationAlphaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.RemoveUsersFromUserGroup200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.RemoveUsersFromUserGroupV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ReplaceAdvancedSyncScheduleForWarehouse200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ReplaceAdvancedSyncScheduleForWarehouseV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ReplaceAdvancedSyncScheduleForWarehouseV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ReplaceLabelsInSource200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ReplaceLabelsInSource200Response1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ReplaceLabelsInSourceAlphaInput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ReplaceLabelsInSourceAlphaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ReplaceLabelsInSourceV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ReplaceLabelsInSourceV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ReplaceMessagingSubscriptionsInSpaces200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ReplaceMessagingSubscriptionsInSpacesAlphaInput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ReplaceMessagingSubscriptionsInSpacesAlphaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ReplacePermissionsForUser200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ReplacePermissionsForUserGroup200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ReplacePermissionsForUserGroupV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ReplacePermissionsForUserGroupV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ReplacePermissionsForUserV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ReplacePermissionsForUserV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ReplaceRulesInTrackingPlan200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ReplaceRulesInTrackingPlanV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ReplaceRulesInTrackingPlanV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ReplaceUsersInUserGroup200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ReplaceUsersInUserGroupV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ReplaceUsersInUserGroupV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.RequestError.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.RequestErrorEnvelope.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.ResourceV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.RoleV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.RuleV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Schedule.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Schedule1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Schedule2.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Settings.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Settings1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Source.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Source1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Source2.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Source3.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Source4.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Source5.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Source6.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.SourceAPICallSnapshotV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.SourceAlpha.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.SourceEventVolumeDatapointV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.SourceEventVolumeV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.SourceMetadata.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.SourceMetadataV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.SourceSettingsOutputV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.SourceV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Space.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.StreamStatusV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Subscription.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.SupportedFeatures.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.SupportedMethods.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.SupportedPlatforms.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.SuppressedInner.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.SyncNoticeV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.SyncV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Track.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.TrackSourceSettingsV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.TrackingPlan.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.TrackingPlan1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.TrackingPlanV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Transformation.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Transformation1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Transformation2.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.TransformationBeta.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateDestination200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateDestinationV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateDestinationV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateFilterForDestination200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateFilterForDestinationV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateFilterForDestinationV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateFunction200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateFunctionV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateFunctionV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateRulesInTrackingPlan200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateRulesInTrackingPlanV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateRulesInTrackingPlanV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateSchemaSettingsInSource200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateSchemaSettingsInSourceV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateSchemaSettingsInSourceV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateSelectiveSyncForWarehouse200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateSelectiveSyncForWarehouseV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateSelectiveSyncForWarehouseV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateSource200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateSource200Response1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateSourceAlphaInput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateSourceAlphaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateSourceV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateSourceV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateSubscriptionForDestination200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateSubscriptionForDestinationAlphaInput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateSubscriptionForDestinationAlphaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateTrackingPlan200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateTrackingPlanV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateTrackingPlanV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateTransformation200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateTransformationBetaInput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateTransformationBetaOutput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateUserGroup200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateUserGroupV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateUserGroupV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateWarehouse200Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateWarehouseV1Input.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpdateWarehouseV1Output.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UpsertRuleV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.User.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UserGroup.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UserGroup1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UserGroup2.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UserGroup3.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UserGroupV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UserV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.UsersPerSourceSnapshotV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Warehouse.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Warehouse1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Warehouse2.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.WarehouseAdvancedSyncV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.WarehouseMetadata.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.WarehouseMetadataV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.WarehouseSelectiveSyncItemV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.WarehouseSyncOverrideV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.WarehouseV1.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.Workspace.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new com.segment.publicapi.models.WorkspaceV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.APICallSnapshotV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AccessPermissionV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ActivationSummaryOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AddActivationToAudience200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AddActivationToAudienceAlphaInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AddActivationToAudienceAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AddConnectionFromSourceToWarehouse201Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AddConnectionFromSourceToWarehouseV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AddDestinationToAudience200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AddDestinationToAudienceAlphaInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AddDestinationToAudienceAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AddLabelsToSource200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AddLabelsToSource200Response1
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AddLabelsToSourceAlphaInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AddLabelsToSourceAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AddLabelsToSourceV1Input
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AddLabelsToSourceV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AddPermissionsToUser200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AddPermissionsToUserGroup200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AddPermissionsToUserGroupV1Input
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AddPermissionsToUserGroupV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AddPermissionsToUserV1Input
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AddPermissionsToUserV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AddSourceToTrackingPlan200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AddSourceToTrackingPlanV1Input
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AddSourceToTrackingPlanV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AddUsersToUserGroup200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AddUsersToUserGroupV1Input
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AddUsersToUserGroupV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AdvancedWarehouseSyncScheduleV1Input
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AdvancedWarehouseSyncScheduleV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AllowedLabelBeta.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AudienceComputeCadence.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AudienceDefinition.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AudienceDefinitionWithoutType
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AudienceOptions.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AudienceOptionsWithLookback
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AudiencePreview.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AudiencePreviewAccountResult
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AudiencePreviewIdentifier
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AudiencePreviewProfileResult
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AudiencePreviewResult.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AudienceSchedule.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AudienceSize.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AudienceSummary.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AudienceSummaryWithAudienceTypeAndLookback
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.AuditEventV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.BatchQueryMessagingSubscriptionsForSpace200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.BatchQueryMessagingSubscriptionsForSpaceAlphaInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.BatchQueryMessagingSubscriptionsForSpaceAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.BreakdownBeta.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CancelReverseETLSyncForModel200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CancelReverseETLSyncForModelInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CancelReverseETLSyncForModelOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CommonSourceSettingsV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ComputedTraitSummary.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ComputedTraitsDefinition
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.Config.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.Config1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.Connection.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.Contact.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateAudience200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateAudienceAlphaInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateAudienceAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateAudiencePreview200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateAudiencePreviewAlphaInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateAudiencePreviewAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateAudiencePreviewOptions
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateCloudSourceRegulation200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateCloudSourceRegulationV1Input
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateCloudSourceRegulationV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateComputedTrait200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateComputedTraitAlphaInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateComputedTraitAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateDbtModelSyncTrigger200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateDbtModelSyncTriggerInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateDbtModelSyncTriggerOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateDestination200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateDestinationSubscription200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateDestinationSubscriptionAlphaInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateDestinationSubscriptionAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateDestinationV1Input
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateDestinationV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateDownload200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateDownloadAlphaInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateDownloadAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateEdgeFunctions200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateEdgeFunctionsAlphaInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateEdgeFunctionsAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateFilterForDestination200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateFilterForDestinationV1Input
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateFilterForDestinationV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateFilterForSpace200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateFilterForSpaceInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateFilterForSpaceOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateFunction200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateFunctionDeployment200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateFunctionDeploymentV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateFunctionV1Input.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateFunctionV1Output.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateInsertFunctionInstance200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateInsertFunctionInstanceAlphaInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateInsertFunctionInstanceAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateInvites201Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateInvitesV1Input.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateInvitesV1Output.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateLabel201Response.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateLabelV1Input.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateLabelV1Output.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateProfilesWarehouse201Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateProfilesWarehouseAlphaInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateProfilesWarehouseAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateReverseETLManualSync200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateReverseETLManualSyncInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateReverseETLManualSyncOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateReverseEtlModel201Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateReverseEtlModelInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateReverseEtlModelOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateSource201Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateSource201Response1
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateSourceAlphaInput.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateSourceAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateSourceRegulation200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateSourceRegulationV1Input
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateSourceRegulationV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateSourceV1Input.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateSourceV1Output.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateTrackingPlan200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateTrackingPlanV1Input
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateTrackingPlanV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateTransformation200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateTransformationBetaInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateTransformationBetaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateTransformationV1Input
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateTransformationV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateUserGroup200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateUserGroupV1Input.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateUserGroupV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateValidationInWarehouse200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateValidationInWarehouseV1Input
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateValidationInWarehouseV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateWarehouse201Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateWarehouseV1Input.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateWarehouseV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateWorkspaceRegulation200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateWorkspaceRegulationV1Input
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateWorkspaceRegulationV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateWriteKeyForSource200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.CreateWriteKeyForSourceAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DbtModelSyncTrigger.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteActivationAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteDestination200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteDestinationV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteFilterById200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteFilterByIdOutput.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteFunction200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteFunctionV1Output.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteInsertFunctionInstance200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteInsertFunctionInstanceAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteInvites200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteInvitesV1Output.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteLabel200Response.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteLabel200Response1
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteLabelAlphaOutput.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteLabelV1Output.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteRegulation200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteRegulationV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteReverseEtlModel200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteReverseEtlModelOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteSource200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteSource200Response1
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteSourceAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteSourceV1Output.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteTrackingPlan200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteTrackingPlanV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteTransformation200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteTransformationBetaInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteTransformationBetaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteTransformationV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteUserGroup200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteUserGroupV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteUsers200Response.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteUsersV1Output.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteWarehouse200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeleteWarehouseV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeliveryMetricsSummaryBeta
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeliveryOverviewDestinationFilterBy
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeliveryOverviewMetricsDatapoint
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeliveryOverviewMetricsDataset
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeliveryOverviewSourceFilterBy
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DeliveryOverviewSuccessfullyReceivedFilterBy
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DestinationFilterActionV1
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DestinationFilterV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DestinationInput.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DestinationMetadataActionFieldV1
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DestinationMetadataActionV1
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DestinationMetadataComponentV1
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DestinationMetadataFeaturesV1
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DestinationMetadataMethodsV1
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DestinationMetadataPlatformsV1
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DestinationMetadataSubscriptionPresetV1
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DestinationMetadataV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DestinationStatusV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DestinationSubscription
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DestinationSubscriptionUpdateInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DestinationV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DisableEdgeFunctions200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.DisableEdgeFunctionsAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.Download.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.Echo200Response.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.Echo200Response1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.EchoAlphaOutput.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.EchoV1Output.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.EdgeFunctionsAlpha.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.EntityDetails.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.EventSourceV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.FQLDefinedPropertyV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.Filter.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.FunctionDeployment.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.FunctionSettingV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.FunctionV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GenerateUploadURLForEdgeFunctions200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GenerateUploadURLForEdgeFunctionsAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetActivationFromAudience200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetActivationFromAudienceOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetAdvancedSyncScheduleFromWarehouse200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetAdvancedSyncScheduleFromWarehouseV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetAudience200Response.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetAudience200Response1
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetAudienceAlphaOutput.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetAudienceBetaOutput.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetAudiencePreview200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetAudiencePreviewAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetAudienceScheduleFromSpaceAndAudience200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetAudienceScheduleFromSpaceAndAudienceAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetComputedTrait200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetComputedTraitAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetConnectionStateFromWarehouse200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetConnectionStateFromWarehouseV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetDailyPerSourceAPICallsUsage200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetDailyPerSourceAPICallsUsageV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetDailyPerSourceMTUUsage200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetDailyPerSourceMTUUsageV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetDailyWorkspaceAPICallsUsage200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetDailyWorkspaceAPICallsUsageV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetDailyWorkspaceMTUUsage200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetDailyWorkspaceMTUUsageV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetDeliveryOverviewMetricsBetaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetDestination200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetDestinationMetadata200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetDestinationMetadataV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetDestinationV1Output.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetDestinationsCatalog200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetDestinationsCatalogV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models
+ .GetEgressFailedMetricsFromDeliveryOverview200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetEventsVolumeFromWorkspace200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetEventsVolumeFromWorkspaceV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetEventsVolumeFromWorkspaceV1Query
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetFilterById200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetFilterByIdOutput.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetFilterInDestination200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetFilterInDestinationV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetFunction200Response.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetFunctionV1Output.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetFunctionVersion200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetFunctionVersionAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetInsertFunctionInstance200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetInsertFunctionInstanceAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetLatestFromEdgeFunctions200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetLatestFromEdgeFunctionsAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetMessagingSubscriptionFailureResponse
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetMessagingSubscriptionSuccessResponse
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetRegulation200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetRegulationV1Output.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetReverseETLSyncStatus200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetReverseETLSyncStatusOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetReverseEtlModel200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetReverseEtlModelOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetSource200Response.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetSource200Response1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetSourceAlphaOutput.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetSourceMetadata200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetSourceMetadataV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetSourceV1Output.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetSourcesCatalog200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetSourcesCatalogV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetSpace200Response.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetSpaceAlphaOutput.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetSubscriptionFromDestination200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetSubscriptionFromDestinationAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetSubscriptionRequest.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetTrackingPlan200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetTrackingPlanV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetTransformation200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetTransformationBetaInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetTransformationBetaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetTransformationV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetUser200Response.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetUserGroup200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetUserGroupV1Output.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetUserV1Output.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetWarehouse200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetWarehouseMetadata200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetWarehouseMetadataV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetWarehouseV1Output.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetWarehousesCatalog200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetWarehousesCatalogV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetWorkspace200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GetWorkspaceV1Output.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GroupSourceSettingsV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GroupSubscriptionStatus
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.GroupSubscriptionStatusResponse
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.HandleWebhookInput.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.HandleWebhookOutput.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.HashPropertiesConfiguration
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.IdentifySourceSettingsV1
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.InsertFunctionInstanceAlpha
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.IntegrationOptionBeta.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.InvitePermissionV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.InviteV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.LabelAlpha.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.LabelV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListActivationsAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListActivationsFromAudience200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListActivationsFromAudienceOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models
+ .ListAudienceConsumersFromSpaceAndAudience200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models
+ .ListAudienceConsumersFromSpaceAndAudienceAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListAudienceConsumersSortInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models
+ .ListAudienceSchedulesFromSpaceAndAudience200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models
+ .ListAudienceSchedulesFromSpaceAndAudienceAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListAudienceSearchInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListAudiences200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListAudiences200Response1
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListAudiencesAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListAudiencesBetaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListAudiencesPaginationInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListAuditEvents200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListAuditEventsV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListComputedTraits200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListComputedTraitsAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListConnectedDestinationsFromSource200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListConnectedDestinationsFromSource200Response1
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListConnectedDestinationsFromSourceAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListConnectedDestinationsFromSourceV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListConnectedSourcesFromWarehouse200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListConnectedSourcesFromWarehouseV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListConnectedWarehousesFromSource200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListConnectedWarehousesFromSource200Response1
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListConnectedWarehousesFromSourceAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListConnectedWarehousesFromSourceV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models
+ .ListDeliveryMetricsSummaryFromDestination200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListDeliveryMetricsSummaryFromDestinationBetaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListDestinations200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListDestinationsV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListFiltersForSpace200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListFiltersForSpaceOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListFiltersFromDestination200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListFiltersFromDestinationV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListFiltersPaginationInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListFiltersPaginationOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListFunctionItemV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListFunctionVersions200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListFunctionVersionsAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListFunctions200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListFunctionsV1Output.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListInsertFunctionInstances200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListInsertFunctionInstancesAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListInvites200Response.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListInvitesFromUserGroup200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListInvitesFromUserGroupV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListInvitesV1Output.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListLabels200Response.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListLabels200Response1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListLabelsAlphaOutput.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListLabelsV1Output.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListProfilesWarehouseInSpace200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListProfilesWarehouseInSpaceAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListRegulationsFromSource200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListRegulationsFromSourceV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models
+ .ListReverseETLSyncStatusesFromModelAndSubscriptionId200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models
+ .ListReverseETLSyncStatusesFromModelAndSubscriptionIdOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListReverseEtlModels200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListReverseEtlModelsOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListRoles200Response.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListRolesV1Output.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListRulesFromTrackingPlan200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListRulesFromTrackingPlanV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListSchemaSettingsInSource200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListSchemaSettingsInSourceV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListSelectiveSyncsFromWarehouseAndSource200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListSelectiveSyncsFromWarehouseAndSourceV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListSelectiveSyncsFromWarehouseAndSpace200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListSelectiveSyncsFromWarehouseAndSpaceAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListSources200Response.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListSources200Response1
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListSourcesAlphaOutput.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListSourcesFromTrackingPlan200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListSourcesFromTrackingPlanV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListSourcesV1Output.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListSpaces200Response.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListSpacesAlphaOutput.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListSubscriptionsFromDestination200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListSubscriptionsFromDestinationAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListSuppressions200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListSuppressionsV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListSyncsFromWarehouse200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListSyncsFromWarehouseAndSource200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListSyncsFromWarehouseAndSourceV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListSyncsFromWarehouseV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListTrackingPlans200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListTrackingPlansV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListTransformations200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListTransformationsBetaInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListTransformationsBetaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListTransformationsV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListUserGroups200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListUserGroupsFromUser200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListUserGroupsFromUserV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListUserGroupsV1Output.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListUsers200Response.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListUsersFromUserGroup200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListUsersFromUserGroupV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListUsersV1Output.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListWarehouses200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListWarehousesV1Output.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListWorkspaceRegulations200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ListWorkspaceRegulationsV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.LogosBeta.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.MessageSubscriptionResponse
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.MessageSubscriptionResponseError
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.MessagesSubscriptionRequest
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.MetricBeta.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.MinimalUserGroupV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.MinimalUserV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.MtuSnapshotV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.PaginationInput.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.PaginationOutput.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.PeriodicConfig.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.PermissionInputV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.PermissionResourceV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.PermissionV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.PreviewDestinationFilter200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.PreviewDestinationFilterV1
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.PreviewDestinationFilterV1Input
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.PreviewDestinationFilterV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ProfilesWarehouseAlpha.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.PropertyRenameBeta.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.PropertyRenameV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.PropertyValueTransformationBeta
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.PropertyValueTransformationV1
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReadAudiencePreviewOptions
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.Regulation.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RegulationListEntryV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RemoveActivationFromAudience200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RemoveActivationFromAudienceOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RemoveAudienceFromSpace200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RemoveAudienceFromSpaceAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RemoveComputedTraitFromSpace200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RemoveComputedTraitFromSpaceAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RemoveFilterFromDestination200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RemoveFilterFromDestinationV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RemoveProfilesWarehouseFromSpace200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RemoveProfilesWarehouseFromSpaceAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RemoveRuleV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RemoveRulesFromTrackingPlan200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RemoveRulesFromTrackingPlanV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RemoveSourceConnectionFromWarehouse200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RemoveSourceConnectionFromWarehouseV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RemoveSourceFromTrackingPlan200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RemoveSourceFromTrackingPlanV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RemoveSubscriptionFromDestination200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RemoveSubscriptionFromDestinationAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RemoveUsersFromUserGroup200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RemoveUsersFromUserGroupV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RemoveWriteKeyFromSource200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RemoveWriteKeyFromSourceAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReplaceAdvancedSyncScheduleForWarehouse200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReplaceAdvancedSyncScheduleForWarehouseV1Input
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReplaceAdvancedSyncScheduleForWarehouseV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReplaceLabelsInSource200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReplaceLabelsInSource200Response1
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReplaceLabelsInSourceAlphaInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReplaceLabelsInSourceAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReplaceLabelsInSourceV1Input
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReplaceLabelsInSourceV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReplaceMessagingSubscriptionsInSpaces200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReplaceMessagingSubscriptionsInSpacesAlphaInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReplaceMessagingSubscriptionsInSpacesAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReplacePermissionsForUser200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReplacePermissionsForUserGroup200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReplacePermissionsForUserGroupV1Input
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReplacePermissionsForUserGroupV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReplacePermissionsForUserV1Input
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReplacePermissionsForUserV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReplaceRulesInTrackingPlan200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReplaceRulesInTrackingPlanV1Input
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReplaceRulesInTrackingPlanV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReplaceUsersInUserGroup200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReplaceUsersInUserGroupV1Input
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReplaceUsersInUserGroupV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RequestError.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RequestErrorEnvelope.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ResourceV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RestoreFunctionVersion200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RestoreFunctionVersionAlphaInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RestoreFunctionVersionAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReverseETLManualSyncJobOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReverseETLSyncStatus.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReverseEtlCronScheduleConfig
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReverseEtlDbtCloudScheduleConfig
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReverseEtlModel.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReverseEtlPeriodicScheduleConfig
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReverseEtlScheduleConfig
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReverseEtlScheduleDefinition
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.ReverseEtlSpecificTimeScheduleConfig
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RoleV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RuleInputV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.RuleV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.SourceAPICallSnapshotV1
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.SourceAlpha.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.SourceEventVolumeDatapointV1
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.SourceEventVolumeV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.SourceMetadataV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.SourceSettingsOutputV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.SourceV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.Space.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.SpaceWarehouseSchemaOverride
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.SpaceWarehouseSelectiveSyncItemAlpha
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.SpecificDaysConfig.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.StreamStatusV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.SuppressedInner.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.SyncExtractPhase.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.SyncLoadPhase.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.SyncNoticeV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.SyncV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.TrackSourceSettingsV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.TrackingPlanV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.TraitDefinition.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.TraitOptions.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.TransformationBeta.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.TransformationV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateActivationForAudience200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateActivationForAudienceAlphaInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateActivationForAudienceOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateAudienceForSpace200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateAudienceForSpaceAlphaInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateAudienceForSpaceAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateComputedTraitForSpace200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateComputedTraitForSpaceAlphaInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateComputedTraitForSpaceAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateDestination200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateDestinationV1Input
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateDestinationV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateFilterById200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateFilterByIdInput.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateFilterByIdOutput.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateFilterForDestination200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateFilterForDestinationV1Input
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateFilterForDestinationV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateFunction200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateFunctionV1Input.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateFunctionV1Output.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateGroupSubscriptionStatusResponse
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateInsertFunctionInstance200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateInsertFunctionInstanceAlphaInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateInsertFunctionInstanceAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateProfilesWarehouseForSpaceWarehouse200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateProfilesWarehouseForSpaceWarehouseAlphaInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateProfilesWarehouseForSpaceWarehouseAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateReverseEtlModel200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateReverseEtlModelInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateReverseEtlModelOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateRulesInTrackingPlan200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateRulesInTrackingPlanV1Input
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateRulesInTrackingPlanV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateSchemaSettingsInSource200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateSchemaSettingsInSourceV1Input
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateSchemaSettingsInSourceV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateSelectiveSyncForWarehouse200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateSelectiveSyncForWarehouseAndSpace200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateSelectiveSyncForWarehouseAndSpaceAlphaInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateSelectiveSyncForWarehouseAndSpaceAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateSelectiveSyncForWarehouseV1Input
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateSelectiveSyncForWarehouseV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateSource200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateSource200Response1
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateSourceAlphaInput.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateSourceAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateSourceV1Input.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateSourceV1Output.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateSubscriptionForDestination200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateSubscriptionForDestinationAlphaInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateSubscriptionForDestinationAlphaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateTrackingPlan200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateTrackingPlanV1Input
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateTrackingPlanV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateTransformation200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateTransformationBetaInput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateTransformationBetaOutput
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateTransformationV1Input
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateTransformationV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateUserGroup200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateUserGroupV1Input.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateUserGroupV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateWarehouse200Response
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateWarehouseV1Input.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpdateWarehouseV1Output
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UpsertRuleV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UserGroupV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UserV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.UsersPerSourceSnapshotV1
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.Version.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.WarehouseAdvancedSyncV1
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.WarehouseMetadataV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.WarehouseSelectiveSyncItemV1
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.WarehouseSyncOverrideV1
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.WarehouseV1.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.segment.publicapi.models.WorkspaceV1.CustomTypeAdapterFactory());
gson = gsonBuilder.create();
}
@@ -594,8 +1825,8 @@ public static String serialize(Object obj) {
/**
* Deserialize the given JSON string to Java object.
*
- * @param Type
- * @param body The JSON string
+ * @param Type
+ * @param body The JSON string
* @param returnType The type to deserialize into
* @return The deserialized Java object
*/
@@ -604,7 +1835,8 @@ public static T deserialize(String body, Type returnType) {
try {
if (isLenientOnJson) {
JsonReader jsonReader = new JsonReader(new StringReader(body));
- // see https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/stream/JsonReader.html#setLenient(boolean)
+ // see
+ // https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/stream/JsonReader.html#setLenient(boolean)
jsonReader.setLenient(true);
return gson.fromJson(jsonReader, returnType);
} else {
@@ -621,9 +1853,7 @@ public static T deserialize(String body, Type returnType) {
}
}
- /**
- * Gson TypeAdapter for Byte Array type
- */
+ /** Gson TypeAdapter for Byte Array type */
public static class ByteArrayAdapter extends TypeAdapter {
@Override
@@ -649,9 +1879,7 @@ public byte[] read(JsonReader in) throws IOException {
}
}
- /**
- * Gson TypeAdapter for JSR310 OffsetDateTime type
- */
+ /** Gson TypeAdapter for JSR310 OffsetDateTime type */
public static class OffsetDateTimeTypeAdapter extends TypeAdapter {
private DateTimeFormatter formatter;
@@ -686,16 +1914,14 @@ public OffsetDateTime read(JsonReader in) throws IOException {
default:
String date = in.nextString();
if (date.endsWith("+0000")) {
- date = date.substring(0, date.length()-5) + "Z";
+ date = date.substring(0, date.length() - 5) + "Z";
}
return OffsetDateTime.parse(date, formatter);
}
}
}
- /**
- * Gson TypeAdapter for JSR310 LocalDate type
- */
+ /** Gson TypeAdapter for JSR310 LocalDate type */
public static class LocalDateTypeAdapter extends TypeAdapter {
private DateTimeFormatter formatter;
@@ -743,9 +1969,8 @@ public static void setLocalDateFormat(DateTimeFormatter dateFormat) {
}
/**
- * Gson TypeAdapter for java.sql.Date type
- * If the dateFormat is null, a simple "yyyy-MM-dd" format will be used
- * (more efficient than SimpleDateFormat).
+ * Gson TypeAdapter for java.sql.Date type If the dateFormat is null, a simple "yyyy-MM-dd"
+ * format will be used (more efficient than SimpleDateFormat).
*/
public static class SqlDateTypeAdapter extends TypeAdapter {
@@ -788,7 +2013,8 @@ public java.sql.Date read(JsonReader in) throws IOException {
if (dateFormat != null) {
return new java.sql.Date(dateFormat.parse(date).getTime());
}
- return new java.sql.Date(ISO8601Utils.parse(date, new ParsePosition(0)).getTime());
+ return new java.sql.Date(
+ ISO8601Utils.parse(date, new ParsePosition(0)).getTime());
} catch (ParseException e) {
throw new JsonParseException(e);
}
@@ -797,8 +2023,8 @@ public java.sql.Date read(JsonReader in) throws IOException {
}
/**
- * Gson TypeAdapter for java.util.Date type
- * If the dateFormat is null, ISO8601Utils will be used.
+ * Gson TypeAdapter for java.util.Date type If the dateFormat is null, ISO8601Utils will be
+ * used.
*/
public static class DateTypeAdapter extends TypeAdapter {
diff --git a/src/main/java/com/segment/publicapi/Pair.java b/src/main/java/com/segment/publicapi/Pair.java
index db9bcb16..22993e8a 100644
--- a/src/main/java/com/segment/publicapi/Pair.java
+++ b/src/main/java/com/segment/publicapi/Pair.java
@@ -1,8 +1,7 @@
/*
* Segment Public API
- * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
+ * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
*
- * The version of the OpenAPI document: 32.0.2
* Contact: friends@segment.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,15 +9,13 @@
* Do not edit the class manually.
*/
-
package com.segment.publicapi;
-
public class Pair {
private String name = "";
private String value = "";
- public Pair (String name, String value) {
+ public Pair(String name, String value) {
setName(name);
setValue(value);
}
diff --git a/src/main/java/com/segment/publicapi/ProgressRequestBody.java b/src/main/java/com/segment/publicapi/ProgressRequestBody.java
index 88cb6fd7..b8d01658 100644
--- a/src/main/java/com/segment/publicapi/ProgressRequestBody.java
+++ b/src/main/java/com/segment/publicapi/ProgressRequestBody.java
@@ -1,8 +1,7 @@
/*
* Segment Public API
- * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
+ * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
*
- * The version of the OpenAPI document: 32.0.2
* Contact: friends@segment.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,14 +9,11 @@
* Do not edit the class manually.
*/
-
package com.segment.publicapi;
+import java.io.IOException;
import okhttp3.MediaType;
import okhttp3.RequestBody;
-
-import java.io.IOException;
-
import okio.Buffer;
import okio.BufferedSink;
import okio.ForwardingSink;
@@ -66,7 +62,8 @@ public void write(Buffer source, long byteCount) throws IOException {
}
bytesWritten += byteCount;
- callback.onUploadProgress(bytesWritten, contentLength, bytesWritten == contentLength);
+ callback.onUploadProgress(
+ bytesWritten, contentLength, bytesWritten == contentLength);
}
};
}
diff --git a/src/main/java/com/segment/publicapi/ProgressResponseBody.java b/src/main/java/com/segment/publicapi/ProgressResponseBody.java
index 8b88d2e0..74a488e6 100644
--- a/src/main/java/com/segment/publicapi/ProgressResponseBody.java
+++ b/src/main/java/com/segment/publicapi/ProgressResponseBody.java
@@ -1,8 +1,7 @@
/*
* Segment Public API
- * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
+ * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
*
- * The version of the OpenAPI document: 32.0.2
* Contact: friends@segment.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,14 +9,11 @@
* Do not edit the class manually.
*/
-
package com.segment.publicapi;
+import java.io.IOException;
import okhttp3.MediaType;
import okhttp3.ResponseBody;
-
-import java.io.IOException;
-
import okio.Buffer;
import okio.BufferedSource;
import okio.ForwardingSource;
@@ -62,7 +58,8 @@ public long read(Buffer sink, long byteCount) throws IOException {
long bytesRead = super.read(sink, byteCount);
// read() returns the number of bytes read, or -1 if this source is exhausted.
totalBytesRead += bytesRead != -1 ? bytesRead : 0;
- callback.onDownloadProgress(totalBytesRead, responseBody.contentLength(), bytesRead == -1);
+ callback.onDownloadProgress(
+ totalBytesRead, responseBody.contentLength(), bytesRead == -1);
return bytesRead;
}
};
diff --git a/src/main/java/com/segment/publicapi/ServerConfiguration.java b/src/main/java/com/segment/publicapi/ServerConfiguration.java
index c956ba6b..33dcb234 100644
--- a/src/main/java/com/segment/publicapi/ServerConfiguration.java
+++ b/src/main/java/com/segment/publicapi/ServerConfiguration.java
@@ -2,9 +2,7 @@
import java.util.Map;
-/**
- * Representing a Server configuration.
- */
+/** Representing a Server configuration. */
public class ServerConfiguration {
public String URL;
public String description;
@@ -13,9 +11,11 @@ public class ServerConfiguration {
/**
* @param URL A URL to the target host.
* @param description A description of the host designated by the URL.
- * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template.
+ * @param variables A map between a variable name and its value. The value is used for
+ * substitution in the server's URL template.
*/
- public ServerConfiguration(String URL, String description, Map variables) {
+ public ServerConfiguration(
+ String URL, String description, Map variables) {
this.URL = URL;
this.description = description;
this.variables = variables;
@@ -31,18 +31,24 @@ public String URL(Map variables) {
String url = this.URL;
// go through variables and replace placeholders
- for (Map.Entry variable: this.variables.entrySet()) {
+ for (Map.Entry variable : this.variables.entrySet()) {
String name = variable.getKey();
ServerVariable serverVariable = variable.getValue();
String value = serverVariable.defaultValue;
if (variables != null && variables.containsKey(name)) {
value = variables.get(name);
- if (serverVariable.enumValues.size() > 0 && !serverVariable.enumValues.contains(value)) {
- throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + ".");
+ if (serverVariable.enumValues.size() > 0
+ && !serverVariable.enumValues.contains(value)) {
+ throw new IllegalArgumentException(
+ "The variable "
+ + name
+ + " in the server URL has invalid value "
+ + value
+ + ".");
}
}
- url = url.replaceAll("\\{" + name + "\\}", value);
+ url = url.replace("{" + name + "}", value);
}
return url;
}
diff --git a/src/main/java/com/segment/publicapi/ServerVariable.java b/src/main/java/com/segment/publicapi/ServerVariable.java
index b2f416f1..4335b8b0 100644
--- a/src/main/java/com/segment/publicapi/ServerVariable.java
+++ b/src/main/java/com/segment/publicapi/ServerVariable.java
@@ -2,9 +2,7 @@
import java.util.HashSet;
-/**
- * Representing a Server Variable for server URL template substitution.
- */
+/** Representing a Server Variable for server URL template substitution. */
public class ServerVariable {
public String description;
public String defaultValue;
@@ -13,7 +11,8 @@ public class ServerVariable {
/**
* @param description A description for the server variable.
* @param defaultValue The default value to use for substitution.
- * @param enumValues An enumeration of string values to be used if the substitution options are from a limited set.
+ * @param enumValues An enumeration of string values to be used if the substitution options are
+ * from a limited set.
*/
public ServerVariable(String description, String defaultValue, HashSet enumValues) {
this.description = description;
diff --git a/src/main/java/com/segment/publicapi/StringUtil.java b/src/main/java/com/segment/publicapi/StringUtil.java
index d4b08fb0..d9ecccc2 100644
--- a/src/main/java/com/segment/publicapi/StringUtil.java
+++ b/src/main/java/com/segment/publicapi/StringUtil.java
@@ -1,8 +1,7 @@
/*
* Segment Public API
- * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
+ * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
*
- * The version of the OpenAPI document: 32.0.2
* Contact: friends@segment.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,74 +9,71 @@
* Do not edit the class manually.
*/
-
package com.segment.publicapi;
import java.util.Collection;
import java.util.Iterator;
-
public class StringUtil {
- /**
- * Check if the given array contains the given value (with case-insensitive comparison).
- *
- * @param array The array
- * @param value The value to search
- * @return true if the array contains the value
- */
- public static boolean containsIgnoreCase(String[] array, String value) {
- for (String str : array) {
- if (value == null && str == null) {
- return true;
- }
- if (value != null && value.equalsIgnoreCase(str)) {
- return true;
- }
+ /**
+ * Check if the given array contains the given value (with case-insensitive comparison).
+ *
+ * @param array The array
+ * @param value The value to search
+ * @return true if the array contains the value
+ */
+ public static boolean containsIgnoreCase(String[] array, String value) {
+ for (String str : array) {
+ if (value == null && str == null) {
+ return true;
+ }
+ if (value != null && value.equalsIgnoreCase(str)) {
+ return true;
+ }
+ }
+ return false;
}
- return false;
- }
- /**
- * Join an array of strings with the given separator.
- *
- * Note: This might be replaced by utility method from commons-lang or guava someday
- * if one of those libraries is added as dependency.
- *
- *
- * @param array The array of strings
- * @param separator The separator
- * @return the resulting string
- */
- public static String join(String[] array, String separator) {
- int len = array.length;
- if (len == 0) {
- return "";
- }
+ /**
+ * Join an array of strings with the given separator.
+ *
+ * Note: This might be replaced by utility method from commons-lang or guava someday if one
+ * of those libraries is added as dependency.
+ *
+ * @param array The array of strings
+ * @param separator The separator
+ * @return the resulting string
+ */
+ public static String join(String[] array, String separator) {
+ int len = array.length;
+ if (len == 0) {
+ return "";
+ }
- StringBuilder out = new StringBuilder();
- out.append(array[0]);
- for (int i = 1; i < len; i++) {
- out.append(separator).append(array[i]);
+ StringBuilder out = new StringBuilder();
+ out.append(array[0]);
+ for (int i = 1; i < len; i++) {
+ out.append(separator).append(array[i]);
+ }
+ return out.toString();
}
- return out.toString();
- }
- /**
- * Join a list of strings with the given separator.
- *
- * @param list The list of strings
- * @param separator The separator
- * @return the resulting string
- */
- public static String join(Collection list, String separator) {
- Iterator iterator = list.iterator();
- StringBuilder out = new StringBuilder();
- if (iterator.hasNext()) {
- out.append(iterator.next());
- }
- while (iterator.hasNext()) {
- out.append(separator).append(iterator.next());
+ /**
+ * Join a list of strings with the given separator.
+ *
+ * @param list The list of strings
+ * @param separator The separator
+ * @return the resulting string
+ */
+ public static String join(Collection list, String separator) {
+ Iterator iterator = list.iterator();
+ StringBuilder out = new StringBuilder();
+ if (iterator.hasNext()) {
+ out.append(iterator.next());
+ }
+ while (iterator.hasNext()) {
+ out.append(separator).append(iterator.next());
+ }
+ return out.toString();
}
- return out.toString();
- }
}
diff --git a/src/main/java/com/segment/publicapi/api/ActivationsApi.java b/src/main/java/com/segment/publicapi/api/ActivationsApi.java
new file mode 100644
index 00000000..e5290091
--- /dev/null
+++ b/src/main/java/com/segment/publicapi/api/ActivationsApi.java
@@ -0,0 +1,1505 @@
+/*
+ * Segment Public API
+ * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
+ *
+ * Contact: friends@segment.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+package com.segment.publicapi.api;
+
+import com.google.gson.reflect.TypeToken;
+import com.segment.publicapi.ApiCallback;
+import com.segment.publicapi.ApiClient;
+import com.segment.publicapi.ApiException;
+import com.segment.publicapi.ApiResponse;
+import com.segment.publicapi.Configuration;
+import com.segment.publicapi.Pair;
+import com.segment.publicapi.models.AddActivationToAudience200Response;
+import com.segment.publicapi.models.AddActivationToAudienceAlphaInput;
+import com.segment.publicapi.models.AddDestinationToAudience200Response;
+import com.segment.publicapi.models.AddDestinationToAudienceAlphaInput;
+import com.segment.publicapi.models.GetActivationFromAudience200Response;
+import com.segment.publicapi.models.ListActivationsFromAudience200Response;
+import com.segment.publicapi.models.PaginationInput;
+import com.segment.publicapi.models.RemoveActivationFromAudience200Response;
+import com.segment.publicapi.models.UpdateActivationForAudience200Response;
+import com.segment.publicapi.models.UpdateActivationForAudienceAlphaInput;
+import java.lang.reflect.Type;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+public class ActivationsApi {
+ private ApiClient localVarApiClient;
+ private int localHostIndex;
+ private String localCustomBaseUrl;
+
+ public ActivationsApi() {
+ this(Configuration.getDefaultApiClient());
+ }
+
+ public ActivationsApi(ApiClient apiClient) {
+ this.localVarApiClient = apiClient;
+ }
+
+ public ApiClient getApiClient() {
+ return localVarApiClient;
+ }
+
+ public void setApiClient(ApiClient apiClient) {
+ this.localVarApiClient = apiClient;
+ }
+
+ public int getHostIndex() {
+ return localHostIndex;
+ }
+
+ public void setHostIndex(int hostIndex) {
+ this.localHostIndex = hostIndex;
+ }
+
+ public String getCustomBaseUrl() {
+ return localCustomBaseUrl;
+ }
+
+ public void setCustomBaseUrl(String customBaseUrl) {
+ this.localCustomBaseUrl = customBaseUrl;
+ }
+
+ /**
+ * Build call for addActivationToAudience
+ *
+ * @param spaceId (required)
+ * @param audienceId (required)
+ * @param connectionId (required)
+ * @param addActivationToAudienceAlphaInput (required)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public okhttp3.Call addActivationToAudienceCall(
+ String spaceId,
+ String audienceId,
+ String connectionId,
+ AddActivationToAudienceAlphaInput addActivationToAudienceAlphaInput,
+ final ApiCallback _callback)
+ throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] {};
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null) {
+ basePath = localCustomBaseUrl;
+ } else if (localBasePaths.length > 0) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
+ Object localVarPostBody = addActivationToAudienceAlphaInput;
+
+ // create path and map variables
+ String localVarPath =
+ "/spaces/{spaceId}/audiences/{audienceId}/{connectionId}/activations"
+ .replace(
+ "{" + "spaceId" + "}",
+ localVarApiClient.escapeString(spaceId.toString()))
+ .replace(
+ "{" + "audienceId" + "}",
+ localVarApiClient.escapeString(audienceId.toString()))
+ .replace(
+ "{" + "connectionId" + "}",
+ localVarApiClient.escapeString(connectionId.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "application/vnd.segment.v1alpha+json", "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {"application/vnd.segment.v1alpha+json"};
+ final String localVarContentType =
+ localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ String[] localVarAuthNames = new String[] {"token"};
+ return localVarApiClient.buildCall(
+ basePath,
+ localVarPath,
+ "POST",
+ localVarQueryParams,
+ localVarCollectionQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarCookieParams,
+ localVarFormParams,
+ localVarAuthNames,
+ _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call addActivationToAudienceValidateBeforeCall(
+ String spaceId,
+ String audienceId,
+ String connectionId,
+ AddActivationToAudienceAlphaInput addActivationToAudienceAlphaInput,
+ final ApiCallback _callback)
+ throws ApiException {
+ // verify the required parameter 'spaceId' is set
+ if (spaceId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'spaceId' when calling"
+ + " addActivationToAudience(Async)");
+ }
+
+ // verify the required parameter 'audienceId' is set
+ if (audienceId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'audienceId' when calling"
+ + " addActivationToAudience(Async)");
+ }
+
+ // verify the required parameter 'connectionId' is set
+ if (connectionId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'connectionId' when calling"
+ + " addActivationToAudience(Async)");
+ }
+
+ // verify the required parameter 'addActivationToAudienceAlphaInput' is set
+ if (addActivationToAudienceAlphaInput == null) {
+ throw new ApiException(
+ "Missing the required parameter 'addActivationToAudienceAlphaInput' when"
+ + " calling addActivationToAudience(Async)");
+ }
+
+ return addActivationToAudienceCall(
+ spaceId, audienceId, connectionId, addActivationToAudienceAlphaInput, _callback);
+ }
+
+ /**
+ * Add Activation to Audience Creates Activation. • This endpoint is in **Alpha** testing.
+ * Please submit any feedback by sending an email to friends@segment.com. • In order to
+ * successfully call this endpoint, the specified Workspace needs to have the Audience feature
+ * enabled. Please reach out to your customer success manager for more information. • When
+ * called, this endpoint may generate the `Activation Created` event in the [audit
+ * trail](/tag/Audit-Trail). The rate limit for this endpoint is 10 requests per minute, which
+ * is lower than the default due to access pattern restrictions. Once reached, this endpoint
+ * will respond with the 429 HTTP status code with headers indicating the limit parameters. See
+ * [Rate Limiting](/#tag/Rate-Limits) for more information.
+ *
+ * @param spaceId (required)
+ * @param audienceId (required)
+ * @param connectionId (required)
+ * @param addActivationToAudienceAlphaInput (required)
+ * @return AddActivationToAudience200Response
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public AddActivationToAudience200Response addActivationToAudience(
+ String spaceId,
+ String audienceId,
+ String connectionId,
+ AddActivationToAudienceAlphaInput addActivationToAudienceAlphaInput)
+ throws ApiException {
+ ApiResponse localVarResp =
+ addActivationToAudienceWithHttpInfo(
+ spaceId, audienceId, connectionId, addActivationToAudienceAlphaInput);
+ return localVarResp.getData();
+ }
+
+ /**
+ * Add Activation to Audience Creates Activation. • This endpoint is in **Alpha** testing.
+ * Please submit any feedback by sending an email to friends@segment.com. • In order to
+ * successfully call this endpoint, the specified Workspace needs to have the Audience feature
+ * enabled. Please reach out to your customer success manager for more information. • When
+ * called, this endpoint may generate the `Activation Created` event in the [audit
+ * trail](/tag/Audit-Trail). The rate limit for this endpoint is 10 requests per minute, which
+ * is lower than the default due to access pattern restrictions. Once reached, this endpoint
+ * will respond with the 429 HTTP status code with headers indicating the limit parameters. See
+ * [Rate Limiting](/#tag/Rate-Limits) for more information.
+ *
+ * @param spaceId (required)
+ * @param audienceId (required)
+ * @param connectionId (required)
+ * @param addActivationToAudienceAlphaInput (required)
+ * @return ApiResponse<AddActivationToAudience200Response>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public ApiResponse addActivationToAudienceWithHttpInfo(
+ String spaceId,
+ String audienceId,
+ String connectionId,
+ AddActivationToAudienceAlphaInput addActivationToAudienceAlphaInput)
+ throws ApiException {
+ okhttp3.Call localVarCall =
+ addActivationToAudienceValidateBeforeCall(
+ spaceId, audienceId, connectionId, addActivationToAudienceAlphaInput, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * Add Activation to Audience (asynchronously) Creates Activation. • This endpoint is in
+ * **Alpha** testing. Please submit any feedback by sending an email to friends@segment.com. •
+ * In order to successfully call this endpoint, the specified Workspace needs to have the
+ * Audience feature enabled. Please reach out to your customer success manager for more
+ * information. • When called, this endpoint may generate the `Activation Created`
+ * event in the [audit trail](/tag/Audit-Trail). The rate limit for this endpoint is 10 requests
+ * per minute, which is lower than the default due to access pattern restrictions. Once reached,
+ * this endpoint will respond with the 429 HTTP status code with headers indicating the limit
+ * parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
+ *
+ * @param spaceId (required)
+ * @param audienceId (required)
+ * @param connectionId (required)
+ * @param addActivationToAudienceAlphaInput (required)
+ * @param _callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body
+ * object
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public okhttp3.Call addActivationToAudienceAsync(
+ String spaceId,
+ String audienceId,
+ String connectionId,
+ AddActivationToAudienceAlphaInput addActivationToAudienceAlphaInput,
+ final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall =
+ addActivationToAudienceValidateBeforeCall(
+ spaceId,
+ audienceId,
+ connectionId,
+ addActivationToAudienceAlphaInput,
+ _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+
+ /**
+ * Build call for addDestinationToAudience
+ *
+ * @param spaceId (required)
+ * @param audienceId (required)
+ * @param addDestinationToAudienceAlphaInput (required)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public okhttp3.Call addDestinationToAudienceCall(
+ String spaceId,
+ String audienceId,
+ AddDestinationToAudienceAlphaInput addDestinationToAudienceAlphaInput,
+ final ApiCallback _callback)
+ throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] {};
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null) {
+ basePath = localCustomBaseUrl;
+ } else if (localBasePaths.length > 0) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
+ Object localVarPostBody = addDestinationToAudienceAlphaInput;
+
+ // create path and map variables
+ String localVarPath =
+ "/spaces/{spaceId}/audiences/{audienceId}/destinations"
+ .replace(
+ "{" + "spaceId" + "}",
+ localVarApiClient.escapeString(spaceId.toString()))
+ .replace(
+ "{" + "audienceId" + "}",
+ localVarApiClient.escapeString(audienceId.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "application/vnd.segment.v1alpha+json", "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {"application/vnd.segment.v1alpha+json"};
+ final String localVarContentType =
+ localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ String[] localVarAuthNames = new String[] {"token"};
+ return localVarApiClient.buildCall(
+ basePath,
+ localVarPath,
+ "POST",
+ localVarQueryParams,
+ localVarCollectionQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarCookieParams,
+ localVarFormParams,
+ localVarAuthNames,
+ _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call addDestinationToAudienceValidateBeforeCall(
+ String spaceId,
+ String audienceId,
+ AddDestinationToAudienceAlphaInput addDestinationToAudienceAlphaInput,
+ final ApiCallback _callback)
+ throws ApiException {
+ // verify the required parameter 'spaceId' is set
+ if (spaceId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'spaceId' when calling"
+ + " addDestinationToAudience(Async)");
+ }
+
+ // verify the required parameter 'audienceId' is set
+ if (audienceId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'audienceId' when calling"
+ + " addDestinationToAudience(Async)");
+ }
+
+ // verify the required parameter 'addDestinationToAudienceAlphaInput' is set
+ if (addDestinationToAudienceAlphaInput == null) {
+ throw new ApiException(
+ "Missing the required parameter 'addDestinationToAudienceAlphaInput' when"
+ + " calling addDestinationToAudience(Async)");
+ }
+
+ return addDestinationToAudienceCall(
+ spaceId, audienceId, addDestinationToAudienceAlphaInput, _callback);
+ }
+
+ /**
+ * Add Destination to Audience Adds a Destination to an Audience. • This endpoint is in
+ * **Alpha** testing. Please submit any feedback by sending an email to friends@segment.com. •
+ * In order to successfully call this endpoint, the specified Workspace needs to have the
+ * Audience feature enabled. Please reach out to your customer success manager for more
+ * information. • When called, this endpoint may generate the `Destination Added into
+ * Audience` event in the [audit trail](/tag/Audit-Trail).
+ *
+ * @param spaceId (required)
+ * @param audienceId (required)
+ * @param addDestinationToAudienceAlphaInput (required)
+ * @return AddDestinationToAudience200Response
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public AddDestinationToAudience200Response addDestinationToAudience(
+ String spaceId,
+ String audienceId,
+ AddDestinationToAudienceAlphaInput addDestinationToAudienceAlphaInput)
+ throws ApiException {
+ ApiResponse localVarResp =
+ addDestinationToAudienceWithHttpInfo(
+ spaceId, audienceId, addDestinationToAudienceAlphaInput);
+ return localVarResp.getData();
+ }
+
+ /**
+ * Add Destination to Audience Adds a Destination to an Audience. • This endpoint is in
+ * **Alpha** testing. Please submit any feedback by sending an email to friends@segment.com. •
+ * In order to successfully call this endpoint, the specified Workspace needs to have the
+ * Audience feature enabled. Please reach out to your customer success manager for more
+ * information. • When called, this endpoint may generate the `Destination Added into
+ * Audience` event in the [audit trail](/tag/Audit-Trail).
+ *
+ * @param spaceId (required)
+ * @param audienceId (required)
+ * @param addDestinationToAudienceAlphaInput (required)
+ * @return ApiResponse<AddDestinationToAudience200Response>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public ApiResponse addDestinationToAudienceWithHttpInfo(
+ String spaceId,
+ String audienceId,
+ AddDestinationToAudienceAlphaInput addDestinationToAudienceAlphaInput)
+ throws ApiException {
+ okhttp3.Call localVarCall =
+ addDestinationToAudienceValidateBeforeCall(
+ spaceId, audienceId, addDestinationToAudienceAlphaInput, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * Add Destination to Audience (asynchronously) Adds a Destination to an Audience. • This
+ * endpoint is in **Alpha** testing. Please submit any feedback by sending an email to
+ * friends@segment.com. • In order to successfully call this endpoint, the specified Workspace
+ * needs to have the Audience feature enabled. Please reach out to your customer success manager
+ * for more information. • When called, this endpoint may generate the `Destination Added
+ * into Audience` event in the [audit trail](/tag/Audit-Trail).
+ *
+ * @param spaceId (required)
+ * @param audienceId (required)
+ * @param addDestinationToAudienceAlphaInput (required)
+ * @param _callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body
+ * object
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public okhttp3.Call addDestinationToAudienceAsync(
+ String spaceId,
+ String audienceId,
+ AddDestinationToAudienceAlphaInput addDestinationToAudienceAlphaInput,
+ final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall =
+ addDestinationToAudienceValidateBeforeCall(
+ spaceId, audienceId, addDestinationToAudienceAlphaInput, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+
+ /**
+ * Build call for getActivationFromAudience
+ *
+ * @param spaceId (required)
+ * @param audienceId (required)
+ * @param id (required)
+ * @param workspaceId The workspace id This parameter exists in alpha. (required)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public okhttp3.Call getActivationFromAudienceCall(
+ String spaceId,
+ String audienceId,
+ String id,
+ String workspaceId,
+ final ApiCallback _callback)
+ throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] {};
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null) {
+ basePath = localCustomBaseUrl;
+ } else if (localBasePaths.length > 0) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath =
+ "/spaces/{spaceId}/audiences/{audienceId}/activations/{id}"
+ .replace(
+ "{" + "spaceId" + "}",
+ localVarApiClient.escapeString(spaceId.toString()))
+ .replace(
+ "{" + "audienceId" + "}",
+ localVarApiClient.escapeString(audienceId.toString()))
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (workspaceId != null) {
+ localVarQueryParams.addAll(
+ localVarApiClient.parameterToPair("workspaceId", workspaceId));
+ }
+
+ final String[] localVarAccepts = {
+ "application/vnd.segment.v1alpha+json", "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {};
+ final String localVarContentType =
+ localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ String[] localVarAuthNames = new String[] {"token"};
+ return localVarApiClient.buildCall(
+ basePath,
+ localVarPath,
+ "GET",
+ localVarQueryParams,
+ localVarCollectionQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarCookieParams,
+ localVarFormParams,
+ localVarAuthNames,
+ _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call getActivationFromAudienceValidateBeforeCall(
+ String spaceId,
+ String audienceId,
+ String id,
+ String workspaceId,
+ final ApiCallback _callback)
+ throws ApiException {
+ // verify the required parameter 'spaceId' is set
+ if (spaceId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'spaceId' when calling"
+ + " getActivationFromAudience(Async)");
+ }
+
+ // verify the required parameter 'audienceId' is set
+ if (audienceId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'audienceId' when calling"
+ + " getActivationFromAudience(Async)");
+ }
+
+ // verify the required parameter 'id' is set
+ if (id == null) {
+ throw new ApiException(
+ "Missing the required parameter 'id' when calling"
+ + " getActivationFromAudience(Async)");
+ }
+
+ // verify the required parameter 'workspaceId' is set
+ if (workspaceId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'workspaceId' when calling"
+ + " getActivationFromAudience(Async)");
+ }
+
+ return getActivationFromAudienceCall(spaceId, audienceId, id, workspaceId, _callback);
+ }
+
+ /**
+ * Get Activation from Audience Gets a single Activation by id. The rate limit for this endpoint
+ * is 60 requests per minute, which is lower than the default due to access pattern
+ * restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with
+ * headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more
+ * information.
+ *
+ * @param spaceId (required)
+ * @param audienceId (required)
+ * @param id (required)
+ * @param workspaceId The workspace id This parameter exists in alpha. (required)
+ * @return GetActivationFromAudience200Response
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public GetActivationFromAudience200Response getActivationFromAudience(
+ String spaceId, String audienceId, String id, String workspaceId) throws ApiException {
+ ApiResponse localVarResp =
+ getActivationFromAudienceWithHttpInfo(spaceId, audienceId, id, workspaceId);
+ return localVarResp.getData();
+ }
+
+ /**
+ * Get Activation from Audience Gets a single Activation by id. The rate limit for this endpoint
+ * is 60 requests per minute, which is lower than the default due to access pattern
+ * restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with
+ * headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more
+ * information.
+ *
+ * @param spaceId (required)
+ * @param audienceId (required)
+ * @param id (required)
+ * @param workspaceId The workspace id This parameter exists in alpha. (required)
+ * @return ApiResponse<GetActivationFromAudience200Response>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public ApiResponse getActivationFromAudienceWithHttpInfo(
+ String spaceId, String audienceId, String id, String workspaceId) throws ApiException {
+ okhttp3.Call localVarCall =
+ getActivationFromAudienceValidateBeforeCall(
+ spaceId, audienceId, id, workspaceId, null);
+ Type localVarReturnType =
+ new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * Get Activation from Audience (asynchronously) Gets a single Activation by id. The rate limit
+ * for this endpoint is 60 requests per minute, which is lower than the default due to access
+ * pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code
+ * with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more
+ * information.
+ *
+ * @param spaceId (required)
+ * @param audienceId (required)
+ * @param id (required)
+ * @param workspaceId The workspace id This parameter exists in alpha. (required)
+ * @param _callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body
+ * object
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public okhttp3.Call getActivationFromAudienceAsync(
+ String spaceId,
+ String audienceId,
+ String id,
+ String workspaceId,
+ final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall =
+ getActivationFromAudienceValidateBeforeCall(
+ spaceId, audienceId, id, workspaceId, _callback);
+ Type localVarReturnType =
+ new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+
+ /**
+ * Build call for listActivationsFromAudience
+ *
+ * @param spaceId (required)
+ * @param audienceId (required)
+ * @param workspaceId The workspace id This parameter exists in alpha. (required)
+ * @param pagination Optional pagination. This parameter exists in alpha. (optional)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public okhttp3.Call listActivationsFromAudienceCall(
+ String spaceId,
+ String audienceId,
+ String workspaceId,
+ PaginationInput pagination,
+ final ApiCallback _callback)
+ throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] {};
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null) {
+ basePath = localCustomBaseUrl;
+ } else if (localBasePaths.length > 0) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath =
+ "/spaces/{spaceId}/audiences/{audienceId}/activations"
+ .replace(
+ "{" + "spaceId" + "}",
+ localVarApiClient.escapeString(spaceId.toString()))
+ .replace(
+ "{" + "audienceId" + "}",
+ localVarApiClient.escapeString(audienceId.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (workspaceId != null) {
+ localVarQueryParams.addAll(
+ localVarApiClient.parameterToPair("workspaceId", workspaceId));
+ }
+
+ if (pagination != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("pagination", pagination));
+ }
+
+ final String[] localVarAccepts = {
+ "application/vnd.segment.v1alpha+json", "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {};
+ final String localVarContentType =
+ localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ String[] localVarAuthNames = new String[] {"token"};
+ return localVarApiClient.buildCall(
+ basePath,
+ localVarPath,
+ "GET",
+ localVarQueryParams,
+ localVarCollectionQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarCookieParams,
+ localVarFormParams,
+ localVarAuthNames,
+ _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call listActivationsFromAudienceValidateBeforeCall(
+ String spaceId,
+ String audienceId,
+ String workspaceId,
+ PaginationInput pagination,
+ final ApiCallback _callback)
+ throws ApiException {
+ // verify the required parameter 'spaceId' is set
+ if (spaceId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'spaceId' when calling"
+ + " listActivationsFromAudience(Async)");
+ }
+
+ // verify the required parameter 'audienceId' is set
+ if (audienceId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'audienceId' when calling"
+ + " listActivationsFromAudience(Async)");
+ }
+
+ // verify the required parameter 'workspaceId' is set
+ if (workspaceId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'workspaceId' when calling"
+ + " listActivationsFromAudience(Async)");
+ }
+
+ return listActivationsFromAudienceCall(
+ spaceId, audienceId, workspaceId, pagination, _callback);
+ }
+
+ /**
+ * List Activations from Audience Lists all Activations. The rate limit for this endpoint is 60
+ * requests per minute, which is lower than the default due to access pattern restrictions. Once
+ * reached, this endpoint will respond with the 429 HTTP status code with headers indicating the
+ * limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
+ *
+ * @param spaceId (required)
+ * @param audienceId (required)
+ * @param workspaceId The workspace id This parameter exists in alpha. (required)
+ * @param pagination Optional pagination. This parameter exists in alpha. (optional)
+ * @return ListActivationsFromAudience200Response
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public ListActivationsFromAudience200Response listActivationsFromAudience(
+ String spaceId, String audienceId, String workspaceId, PaginationInput pagination)
+ throws ApiException {
+ ApiResponse localVarResp =
+ listActivationsFromAudienceWithHttpInfo(
+ spaceId, audienceId, workspaceId, pagination);
+ return localVarResp.getData();
+ }
+
+ /**
+ * List Activations from Audience Lists all Activations. The rate limit for this endpoint is 60
+ * requests per minute, which is lower than the default due to access pattern restrictions. Once
+ * reached, this endpoint will respond with the 429 HTTP status code with headers indicating the
+ * limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
+ *
+ * @param spaceId (required)
+ * @param audienceId (required)
+ * @param workspaceId The workspace id This parameter exists in alpha. (required)
+ * @param pagination Optional pagination. This parameter exists in alpha. (optional)
+ * @return ApiResponse<ListActivationsFromAudience200Response>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public ApiResponse
+ listActivationsFromAudienceWithHttpInfo(
+ String spaceId,
+ String audienceId,
+ String workspaceId,
+ PaginationInput pagination)
+ throws ApiException {
+ okhttp3.Call localVarCall =
+ listActivationsFromAudienceValidateBeforeCall(
+ spaceId, audienceId, workspaceId, pagination, null);
+ Type localVarReturnType =
+ new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * List Activations from Audience (asynchronously) Lists all Activations. The rate limit for
+ * this endpoint is 60 requests per minute, which is lower than the default due to access
+ * pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code
+ * with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more
+ * information.
+ *
+ * @param spaceId (required)
+ * @param audienceId (required)
+ * @param workspaceId The workspace id This parameter exists in alpha. (required)
+ * @param pagination Optional pagination. This parameter exists in alpha. (optional)
+ * @param _callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body
+ * object
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public okhttp3.Call listActivationsFromAudienceAsync(
+ String spaceId,
+ String audienceId,
+ String workspaceId,
+ PaginationInput pagination,
+ final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall =
+ listActivationsFromAudienceValidateBeforeCall(
+ spaceId, audienceId, workspaceId, pagination, _callback);
+ Type localVarReturnType =
+ new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+
+ /**
+ * Build call for removeActivationFromAudience
+ *
+ * @param spaceId (required)
+ * @param audienceId (required)
+ * @param id (required)
+ * @param workspaceId The workspace id This parameter exists in alpha. (required)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public okhttp3.Call removeActivationFromAudienceCall(
+ String spaceId,
+ String audienceId,
+ String id,
+ String workspaceId,
+ final ApiCallback _callback)
+ throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] {};
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null) {
+ basePath = localCustomBaseUrl;
+ } else if (localBasePaths.length > 0) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath =
+ "/spaces/{spaceId}/audiences/{audienceId}/activations/{id}"
+ .replace(
+ "{" + "spaceId" + "}",
+ localVarApiClient.escapeString(spaceId.toString()))
+ .replace(
+ "{" + "audienceId" + "}",
+ localVarApiClient.escapeString(audienceId.toString()))
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (workspaceId != null) {
+ localVarQueryParams.addAll(
+ localVarApiClient.parameterToPair("workspaceId", workspaceId));
+ }
+
+ final String[] localVarAccepts = {
+ "application/vnd.segment.v1alpha+json", "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {};
+ final String localVarContentType =
+ localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ String[] localVarAuthNames = new String[] {"token"};
+ return localVarApiClient.buildCall(
+ basePath,
+ localVarPath,
+ "DELETE",
+ localVarQueryParams,
+ localVarCollectionQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarCookieParams,
+ localVarFormParams,
+ localVarAuthNames,
+ _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call removeActivationFromAudienceValidateBeforeCall(
+ String spaceId,
+ String audienceId,
+ String id,
+ String workspaceId,
+ final ApiCallback _callback)
+ throws ApiException {
+ // verify the required parameter 'spaceId' is set
+ if (spaceId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'spaceId' when calling"
+ + " removeActivationFromAudience(Async)");
+ }
+
+ // verify the required parameter 'audienceId' is set
+ if (audienceId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'audienceId' when calling"
+ + " removeActivationFromAudience(Async)");
+ }
+
+ // verify the required parameter 'id' is set
+ if (id == null) {
+ throw new ApiException(
+ "Missing the required parameter 'id' when calling"
+ + " removeActivationFromAudience(Async)");
+ }
+
+ // verify the required parameter 'workspaceId' is set
+ if (workspaceId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'workspaceId' when calling"
+ + " removeActivationFromAudience(Async)");
+ }
+
+ return removeActivationFromAudienceCall(spaceId, audienceId, id, workspaceId, _callback);
+ }
+
+ /**
+ * Remove Activation from Audience Deletes an Activation. The rate limit for this endpoint is 10
+ * requests per minute, which is lower than the default due to access pattern restrictions. Once
+ * reached, this endpoint will respond with the 429 HTTP status code with headers indicating the
+ * limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
+ *
+ * @param spaceId (required)
+ * @param audienceId (required)
+ * @param id (required)
+ * @param workspaceId The workspace id This parameter exists in alpha. (required)
+ * @return RemoveActivationFromAudience200Response
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public RemoveActivationFromAudience200Response removeActivationFromAudience(
+ String spaceId, String audienceId, String id, String workspaceId) throws ApiException {
+ ApiResponse localVarResp =
+ removeActivationFromAudienceWithHttpInfo(spaceId, audienceId, id, workspaceId);
+ return localVarResp.getData();
+ }
+
+ /**
+ * Remove Activation from Audience Deletes an Activation. The rate limit for this endpoint is 10
+ * requests per minute, which is lower than the default due to access pattern restrictions. Once
+ * reached, this endpoint will respond with the 429 HTTP status code with headers indicating the
+ * limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
+ *
+ * @param spaceId (required)
+ * @param audienceId (required)
+ * @param id (required)
+ * @param workspaceId The workspace id This parameter exists in alpha. (required)
+ * @return ApiResponse<RemoveActivationFromAudience200Response>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public ApiResponse
+ removeActivationFromAudienceWithHttpInfo(
+ String spaceId, String audienceId, String id, String workspaceId)
+ throws ApiException {
+ okhttp3.Call localVarCall =
+ removeActivationFromAudienceValidateBeforeCall(
+ spaceId, audienceId, id, workspaceId, null);
+ Type localVarReturnType =
+ new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * Remove Activation from Audience (asynchronously) Deletes an Activation. The rate limit for
+ * this endpoint is 10 requests per minute, which is lower than the default due to access
+ * pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code
+ * with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more
+ * information.
+ *
+ * @param spaceId (required)
+ * @param audienceId (required)
+ * @param id (required)
+ * @param workspaceId The workspace id This parameter exists in alpha. (required)
+ * @param _callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body
+ * object
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public okhttp3.Call removeActivationFromAudienceAsync(
+ String spaceId,
+ String audienceId,
+ String id,
+ String workspaceId,
+ final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall =
+ removeActivationFromAudienceValidateBeforeCall(
+ spaceId, audienceId, id, workspaceId, _callback);
+ Type localVarReturnType =
+ new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+
+ /**
+ * Build call for updateActivationForAudience
+ *
+ * @param spaceId (required)
+ * @param audienceId (required)
+ * @param id (required)
+ * @param updateActivationForAudienceAlphaInput (required)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public okhttp3.Call updateActivationForAudienceCall(
+ String spaceId,
+ String audienceId,
+ String id,
+ UpdateActivationForAudienceAlphaInput updateActivationForAudienceAlphaInput,
+ final ApiCallback _callback)
+ throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] {};
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null) {
+ basePath = localCustomBaseUrl;
+ } else if (localBasePaths.length > 0) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
+ Object localVarPostBody = updateActivationForAudienceAlphaInput;
+
+ // create path and map variables
+ String localVarPath =
+ "/spaces/{spaceId}/audiences/{audienceId}/activations/{id}"
+ .replace(
+ "{" + "spaceId" + "}",
+ localVarApiClient.escapeString(spaceId.toString()))
+ .replace(
+ "{" + "audienceId" + "}",
+ localVarApiClient.escapeString(audienceId.toString()))
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "application/vnd.segment.v1alpha+json", "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {"application/vnd.segment.v1alpha+json"};
+ final String localVarContentType =
+ localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ String[] localVarAuthNames = new String[] {"token"};
+ return localVarApiClient.buildCall(
+ basePath,
+ localVarPath,
+ "PATCH",
+ localVarQueryParams,
+ localVarCollectionQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarCookieParams,
+ localVarFormParams,
+ localVarAuthNames,
+ _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call updateActivationForAudienceValidateBeforeCall(
+ String spaceId,
+ String audienceId,
+ String id,
+ UpdateActivationForAudienceAlphaInput updateActivationForAudienceAlphaInput,
+ final ApiCallback _callback)
+ throws ApiException {
+ // verify the required parameter 'spaceId' is set
+ if (spaceId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'spaceId' when calling"
+ + " updateActivationForAudience(Async)");
+ }
+
+ // verify the required parameter 'audienceId' is set
+ if (audienceId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'audienceId' when calling"
+ + " updateActivationForAudience(Async)");
+ }
+
+ // verify the required parameter 'id' is set
+ if (id == null) {
+ throw new ApiException(
+ "Missing the required parameter 'id' when calling"
+ + " updateActivationForAudience(Async)");
+ }
+
+ // verify the required parameter 'updateActivationForAudienceAlphaInput' is set
+ if (updateActivationForAudienceAlphaInput == null) {
+ throw new ApiException(
+ "Missing the required parameter 'updateActivationForAudienceAlphaInput' when"
+ + " calling updateActivationForAudience(Async)");
+ }
+
+ return updateActivationForAudienceCall(
+ spaceId, audienceId, id, updateActivationForAudienceAlphaInput, _callback);
+ }
+
+ /**
+ * Update Activation for Audience Updates an Activation. The rate limit for this endpoint is 10
+ * requests per minute, which is lower than the default due to access pattern restrictions. Once
+ * reached, this endpoint will respond with the 429 HTTP status code with headers indicating the
+ * limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
+ *
+ * @param spaceId (required)
+ * @param audienceId (required)
+ * @param id (required)
+ * @param updateActivationForAudienceAlphaInput (required)
+ * @return UpdateActivationForAudience200Response
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public UpdateActivationForAudience200Response updateActivationForAudience(
+ String spaceId,
+ String audienceId,
+ String id,
+ UpdateActivationForAudienceAlphaInput updateActivationForAudienceAlphaInput)
+ throws ApiException {
+ ApiResponse localVarResp =
+ updateActivationForAudienceWithHttpInfo(
+ spaceId, audienceId, id, updateActivationForAudienceAlphaInput);
+ return localVarResp.getData();
+ }
+
+ /**
+ * Update Activation for Audience Updates an Activation. The rate limit for this endpoint is 10
+ * requests per minute, which is lower than the default due to access pattern restrictions. Once
+ * reached, this endpoint will respond with the 429 HTTP status code with headers indicating the
+ * limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
+ *
+ * @param spaceId (required)
+ * @param audienceId (required)
+ * @param id (required)
+ * @param updateActivationForAudienceAlphaInput (required)
+ * @return ApiResponse<UpdateActivationForAudience200Response>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public ApiResponse
+ updateActivationForAudienceWithHttpInfo(
+ String spaceId,
+ String audienceId,
+ String id,
+ UpdateActivationForAudienceAlphaInput updateActivationForAudienceAlphaInput)
+ throws ApiException {
+ okhttp3.Call localVarCall =
+ updateActivationForAudienceValidateBeforeCall(
+ spaceId, audienceId, id, updateActivationForAudienceAlphaInput, null);
+ Type localVarReturnType =
+ new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * Update Activation for Audience (asynchronously) Updates an Activation. The rate limit for
+ * this endpoint is 10 requests per minute, which is lower than the default due to access
+ * pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code
+ * with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more
+ * information.
+ *
+ * @param spaceId (required)
+ * @param audienceId (required)
+ * @param id (required)
+ * @param updateActivationForAudienceAlphaInput (required)
+ * @param _callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body
+ * object
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public okhttp3.Call updateActivationForAudienceAsync(
+ String spaceId,
+ String audienceId,
+ String id,
+ UpdateActivationForAudienceAlphaInput updateActivationForAudienceAlphaInput,
+ final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall =
+ updateActivationForAudienceValidateBeforeCall(
+ spaceId, audienceId, id, updateActivationForAudienceAlphaInput, _callback);
+ Type localVarReturnType =
+ new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+}
diff --git a/src/main/java/com/segment/publicapi/api/ApiCallsApi.java b/src/main/java/com/segment/publicapi/api/ApiCallsApi.java
index 236a1ad0..1f8ffd0f 100644
--- a/src/main/java/com/segment/publicapi/api/ApiCallsApi.java
+++ b/src/main/java/com/segment/publicapi/api/ApiCallsApi.java
@@ -1,8 +1,7 @@
/*
* Segment Public API
- * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
+ * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
*
- * The version of the OpenAPI document: 32.0.2
* Contact: friends@segment.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,34 +9,23 @@
* Do not edit the class manually.
*/
-
package com.segment.publicapi.api;
+import com.google.gson.reflect.TypeToken;
import com.segment.publicapi.ApiCallback;
import com.segment.publicapi.ApiClient;
import com.segment.publicapi.ApiException;
import com.segment.publicapi.ApiResponse;
import com.segment.publicapi.Configuration;
import com.segment.publicapi.Pair;
-import com.segment.publicapi.ProgressRequestBody;
-import com.segment.publicapi.ProgressResponseBody;
-
-import com.google.gson.reflect.TypeToken;
-
-import java.io.IOException;
-
-
import com.segment.publicapi.models.GetDailyPerSourceAPICallsUsage200Response;
import com.segment.publicapi.models.GetDailyWorkspaceAPICallsUsage200Response;
import com.segment.publicapi.models.PaginationInput;
-import com.segment.publicapi.models.RequestErrorEnvelope;
-
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import javax.ws.rs.core.GenericType;
public class ApiCallsApi {
private ApiClient localVarApiClient;
@@ -78,29 +66,34 @@ public void setCustomBaseUrl(String customBaseUrl) {
/**
* Build call for getDailyPerSourceAPICallsUsage
- * @param period The start of the usage month in the ISO-8601 format. This parameter exists in alpha. (required)
- * @param pagination Pagination input for per Source API calls counts. This parameter exists in alpha. (required)
+ *
+ * @param period The start of the usage month in the ISO-8601 format. This parameter exists in
+ * v1. (required)
+ * @param pagination Pagination input for per Source API calls counts. This parameter exists in
+ * v1. (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | OK | - |
- 404 | Resource not found | - |
- 422 | Validation failure | - |
- 429 | Too many requests | - |
-
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
*/
- public okhttp3.Call getDailyPerSourceAPICallsUsageCall(String period, PaginationInput pagination, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call getDailyPerSourceAPICallsUsageCall(
+ String period, PaginationInput pagination, final ApiCallback _callback)
+ throws ApiException {
String basePath = null;
// Operation Servers
- String[] localBasePaths = new String[] { };
+ String[] localBasePaths = new String[] {};
// Determine Base Path to Use
- if (localCustomBaseUrl != null){
+ if (localCustomBaseUrl != null) {
basePath = localCustomBaseUrl;
- } else if ( localBasePaths.length > 0 ) {
+ } else if (localBasePaths.length > 0) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
@@ -126,136 +119,174 @@ public okhttp3.Call getDailyPerSourceAPICallsUsageCall(String period, Pagination
}
final String[] localVarAccepts = {
- "application/vnd.segment.v1alpha+json", "application/vnd.segment.v1beta+json", "application/vnd.segment.v1+json", "application/json"
+ "application/vnd.segment.v1+json",
+ "application/json",
+ "application/vnd.segment.v1beta+json",
+ "application/vnd.segment.v1alpha+json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
- final String[] localVarContentTypes = {
-
- };
- final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ final String[] localVarContentTypes = {};
+ final String localVarContentType =
+ localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
- String[] localVarAuthNames = new String[] { "token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] {"token"};
+ return localVarApiClient.buildCall(
+ basePath,
+ localVarPath,
+ "GET",
+ localVarQueryParams,
+ localVarCollectionQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarCookieParams,
+ localVarFormParams,
+ localVarAuthNames,
+ _callback);
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getDailyPerSourceAPICallsUsageValidateBeforeCall(String period, PaginationInput pagination, final ApiCallback _callback) throws ApiException {
-
+ private okhttp3.Call getDailyPerSourceAPICallsUsageValidateBeforeCall(
+ String period, PaginationInput pagination, final ApiCallback _callback)
+ throws ApiException {
// verify the required parameter 'period' is set
if (period == null) {
- throw new ApiException("Missing the required parameter 'period' when calling getDailyPerSourceAPICallsUsage(Async)");
- }
-
- // verify the required parameter 'pagination' is set
- if (pagination == null) {
- throw new ApiException("Missing the required parameter 'pagination' when calling getDailyPerSourceAPICallsUsage(Async)");
+ throw new ApiException(
+ "Missing the required parameter 'period' when calling"
+ + " getDailyPerSourceAPICallsUsage(Async)");
}
-
-
- okhttp3.Call localVarCall = getDailyPerSourceAPICallsUsageCall(period, pagination, _callback);
- return localVarCall;
+ return getDailyPerSourceAPICallsUsageCall(period, pagination, _callback);
}
/**
- * Get Daily Per Source API Calls Usage
- * Provides daily cumulative per-source API call counts for a usage period.
- * @param period The start of the usage month in the ISO-8601 format. This parameter exists in alpha. (required)
- * @param pagination Pagination input for per Source API calls counts. This parameter exists in alpha. (required)
+ * Get Daily Per Source API Calls Usage Provides daily cumulative per-source API call counts for
+ * a usage period.
+ *
+ * @param period The start of the usage month in the ISO-8601 format. This parameter exists in
+ * v1. (required)
+ * @param pagination Pagination input for per Source API calls counts. This parameter exists in
+ * v1. (optional)
* @return GetDailyPerSourceAPICallsUsage200Response
- * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
* @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | OK | - |
- 404 | Resource not found | - |
- 422 | Validation failure | - |
- 429 | Too many requests | - |
-
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
*/
- public GetDailyPerSourceAPICallsUsage200Response getDailyPerSourceAPICallsUsage(String period, PaginationInput pagination) throws ApiException {
- ApiResponse localVarResp = getDailyPerSourceAPICallsUsageWithHttpInfo(period, pagination);
+ public GetDailyPerSourceAPICallsUsage200Response getDailyPerSourceAPICallsUsage(
+ String period, PaginationInput pagination) throws ApiException {
+ ApiResponse localVarResp =
+ getDailyPerSourceAPICallsUsageWithHttpInfo(period, pagination);
return localVarResp.getData();
}
/**
- * Get Daily Per Source API Calls Usage
- * Provides daily cumulative per-source API call counts for a usage period.
- * @param period The start of the usage month in the ISO-8601 format. This parameter exists in alpha. (required)
- * @param pagination Pagination input for per Source API calls counts. This parameter exists in alpha. (required)
+ * Get Daily Per Source API Calls Usage Provides daily cumulative per-source API call counts for
+ * a usage period.
+ *
+ * @param period The start of the usage month in the ISO-8601 format. This parameter exists in
+ * v1. (required)
+ * @param pagination Pagination input for per Source API calls counts. This parameter exists in
+ * v1. (optional)
* @return ApiResponse<GetDailyPerSourceAPICallsUsage200Response>
- * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
* @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | OK | - |
- 404 | Resource not found | - |
- 422 | Validation failure | - |
- 429 | Too many requests | - |
-
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
*/
- public ApiResponse getDailyPerSourceAPICallsUsageWithHttpInfo(String period, PaginationInput pagination) throws ApiException {
- okhttp3.Call localVarCall = getDailyPerSourceAPICallsUsageValidateBeforeCall(period, pagination, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ public ApiResponse
+ getDailyPerSourceAPICallsUsageWithHttpInfo(String period, PaginationInput pagination)
+ throws ApiException {
+ okhttp3.Call localVarCall =
+ getDailyPerSourceAPICallsUsageValidateBeforeCall(period, pagination, null);
+ Type localVarReturnType =
+ new TypeToken() {}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
- * Get Daily Per Source API Calls Usage (asynchronously)
- * Provides daily cumulative per-source API call counts for a usage period.
- * @param period The start of the usage month in the ISO-8601 format. This parameter exists in alpha. (required)
- * @param pagination Pagination input for per Source API calls counts. This parameter exists in alpha. (required)
+ * Get Daily Per Source API Calls Usage (asynchronously) Provides daily cumulative per-source
+ * API call counts for a usage period.
+ *
+ * @param period The start of the usage month in the ISO-8601 format. This parameter exists in
+ * v1. (required)
+ * @param pagination Pagination input for per Source API calls counts. This parameter exists in
+ * v1. (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
- * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body
+ * object
* @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | OK | - |
- 404 | Resource not found | - |
- 422 | Validation failure | - |
- 429 | Too many requests | - |
-
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
*/
- public okhttp3.Call getDailyPerSourceAPICallsUsageAsync(String period, PaginationInput pagination, final ApiCallback _callback) throws ApiException {
-
- okhttp3.Call localVarCall = getDailyPerSourceAPICallsUsageValidateBeforeCall(period, pagination, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
+ public okhttp3.Call getDailyPerSourceAPICallsUsageAsync(
+ String period,
+ PaginationInput pagination,
+ final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall =
+ getDailyPerSourceAPICallsUsageValidateBeforeCall(period, pagination, _callback);
+ Type localVarReturnType =
+ new TypeToken() {}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
+
/**
* Build call for getDailyWorkspaceAPICallsUsage
- * @param period The start of the usage month in the ISO-8601 format. This parameter exists in alpha. (required)
- * @param pagination Pagination input for Workspace API call counts. This parameter exists in alpha. (required)
+ *
+ * @param period The start of the usage month in the ISO-8601 format. This parameter exists in
+ * v1. (required)
+ * @param pagination Pagination input for Workspace API call counts. This parameter exists in
+ * v1. (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | OK | - |
- 404 | Resource not found | - |
- 422 | Validation failure | - |
- 429 | Too many requests | - |
-
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
*/
- public okhttp3.Call getDailyWorkspaceAPICallsUsageCall(String period, PaginationInput pagination, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call getDailyWorkspaceAPICallsUsageCall(
+ String period, PaginationInput pagination, final ApiCallback _callback)
+ throws ApiException {
String basePath = null;
// Operation Servers
- String[] localBasePaths = new String[] { };
+ String[] localBasePaths = new String[] {};
// Determine Base Path to Use
- if (localCustomBaseUrl != null){
+ if (localCustomBaseUrl != null) {
basePath = localCustomBaseUrl;
- } else if ( localBasePaths.length > 0 ) {
+ } else if (localBasePaths.length > 0) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
@@ -281,108 +312,140 @@ public okhttp3.Call getDailyWorkspaceAPICallsUsageCall(String period, Pagination
}
final String[] localVarAccepts = {
- "application/vnd.segment.v1alpha+json", "application/vnd.segment.v1beta+json", "application/vnd.segment.v1+json", "application/json"
+ "application/vnd.segment.v1+json",
+ "application/json",
+ "application/vnd.segment.v1beta+json",
+ "application/vnd.segment.v1alpha+json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
- final String[] localVarContentTypes = {
-
- };
- final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ final String[] localVarContentTypes = {};
+ final String localVarContentType =
+ localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
- String[] localVarAuthNames = new String[] { "token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] {"token"};
+ return localVarApiClient.buildCall(
+ basePath,
+ localVarPath,
+ "GET",
+ localVarQueryParams,
+ localVarCollectionQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarCookieParams,
+ localVarFormParams,
+ localVarAuthNames,
+ _callback);
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getDailyWorkspaceAPICallsUsageValidateBeforeCall(String period, PaginationInput pagination, final ApiCallback _callback) throws ApiException {
-
+ private okhttp3.Call getDailyWorkspaceAPICallsUsageValidateBeforeCall(
+ String period, PaginationInput pagination, final ApiCallback _callback)
+ throws ApiException {
// verify the required parameter 'period' is set
if (period == null) {
- throw new ApiException("Missing the required parameter 'period' when calling getDailyWorkspaceAPICallsUsage(Async)");
+ throw new ApiException(
+ "Missing the required parameter 'period' when calling"
+ + " getDailyWorkspaceAPICallsUsage(Async)");
}
-
- // verify the required parameter 'pagination' is set
- if (pagination == null) {
- throw new ApiException("Missing the required parameter 'pagination' when calling getDailyWorkspaceAPICallsUsage(Async)");
- }
-
-
- okhttp3.Call localVarCall = getDailyWorkspaceAPICallsUsageCall(period, pagination, _callback);
- return localVarCall;
+ return getDailyWorkspaceAPICallsUsageCall(period, pagination, _callback);
}
/**
- * Get Daily Workspace API Calls Usage
- * Provides daily cumulative API call counts for a usage period.
- * @param period The start of the usage month in the ISO-8601 format. This parameter exists in alpha. (required)
- * @param pagination Pagination input for Workspace API call counts. This parameter exists in alpha. (required)
+ * Get Daily Workspace API Calls Usage Provides daily cumulative API call counts for a usage
+ * period.
+ *
+ * @param period The start of the usage month in the ISO-8601 format. This parameter exists in
+ * v1. (required)
+ * @param pagination Pagination input for Workspace API call counts. This parameter exists in
+ * v1. (optional)
* @return GetDailyWorkspaceAPICallsUsage200Response
- * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
* @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | OK | - |
- 404 | Resource not found | - |
- 422 | Validation failure | - |
- 429 | Too many requests | - |
-
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
*/
- public GetDailyWorkspaceAPICallsUsage200Response getDailyWorkspaceAPICallsUsage(String period, PaginationInput pagination) throws ApiException {
- ApiResponse localVarResp = getDailyWorkspaceAPICallsUsageWithHttpInfo(period, pagination);
+ public GetDailyWorkspaceAPICallsUsage200Response getDailyWorkspaceAPICallsUsage(
+ String period, PaginationInput pagination) throws ApiException {
+ ApiResponse localVarResp =
+ getDailyWorkspaceAPICallsUsageWithHttpInfo(period, pagination);
return localVarResp.getData();
}
/**
- * Get Daily Workspace API Calls Usage
- * Provides daily cumulative API call counts for a usage period.
- * @param period The start of the usage month in the ISO-8601 format. This parameter exists in alpha. (required)
- * @param pagination Pagination input for Workspace API call counts. This parameter exists in alpha. (required)
+ * Get Daily Workspace API Calls Usage Provides daily cumulative API call counts for a usage
+ * period.
+ *
+ * @param period The start of the usage month in the ISO-8601 format. This parameter exists in
+ * v1. (required)
+ * @param pagination Pagination input for Workspace API call counts. This parameter exists in
+ * v1. (optional)
* @return ApiResponse<GetDailyWorkspaceAPICallsUsage200Response>
- * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
* @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | OK | - |
- 404 | Resource not found | - |
- 422 | Validation failure | - |
- 429 | Too many requests | - |
-
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
*/
- public ApiResponse getDailyWorkspaceAPICallsUsageWithHttpInfo(String period, PaginationInput pagination) throws ApiException {
- okhttp3.Call localVarCall = getDailyWorkspaceAPICallsUsageValidateBeforeCall(period, pagination, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ public ApiResponse
+ getDailyWorkspaceAPICallsUsageWithHttpInfo(String period, PaginationInput pagination)
+ throws ApiException {
+ okhttp3.Call localVarCall =
+ getDailyWorkspaceAPICallsUsageValidateBeforeCall(period, pagination, null);
+ Type localVarReturnType =
+ new TypeToken() {}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
- * Get Daily Workspace API Calls Usage (asynchronously)
- * Provides daily cumulative API call counts for a usage period.
- * @param period The start of the usage month in the ISO-8601 format. This parameter exists in alpha. (required)
- * @param pagination Pagination input for Workspace API call counts. This parameter exists in alpha. (required)
+ * Get Daily Workspace API Calls Usage (asynchronously) Provides daily cumulative API call
+ * counts for a usage period.
+ *
+ * @param period The start of the usage month in the ISO-8601 format. This parameter exists in
+ * v1. (required)
+ * @param pagination Pagination input for Workspace API call counts. This parameter exists in
+ * v1. (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
- * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body
+ * object
* @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | OK | - |
- 404 | Resource not found | - |
- 422 | Validation failure | - |
- 429 | Too many requests | - |
-
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
*/
- public okhttp3.Call getDailyWorkspaceAPICallsUsageAsync(String period, PaginationInput pagination, final ApiCallback _callback) throws ApiException {
-
- okhttp3.Call localVarCall = getDailyWorkspaceAPICallsUsageValidateBeforeCall(period, pagination, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
+ public okhttp3.Call getDailyWorkspaceAPICallsUsageAsync(
+ String period,
+ PaginationInput pagination,
+ final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall =
+ getDailyWorkspaceAPICallsUsageValidateBeforeCall(period, pagination, _callback);
+ Type localVarReturnType =
+ new TypeToken() {}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
diff --git a/src/main/java/com/segment/publicapi/api/AudiencesApi.java b/src/main/java/com/segment/publicapi/api/AudiencesApi.java
new file mode 100644
index 00000000..b7b34f88
--- /dev/null
+++ b/src/main/java/com/segment/publicapi/api/AudiencesApi.java
@@ -0,0 +1,2281 @@
+/*
+ * Segment Public API
+ * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
+ *
+ * Contact: friends@segment.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+package com.segment.publicapi.api;
+
+import com.google.gson.reflect.TypeToken;
+import com.segment.publicapi.ApiCallback;
+import com.segment.publicapi.ApiClient;
+import com.segment.publicapi.ApiException;
+import com.segment.publicapi.ApiResponse;
+import com.segment.publicapi.Configuration;
+import com.segment.publicapi.Pair;
+import com.segment.publicapi.models.CreateAudience200Response;
+import com.segment.publicapi.models.CreateAudienceAlphaInput;
+import com.segment.publicapi.models.CreateAudiencePreview200Response;
+import com.segment.publicapi.models.CreateAudiencePreviewAlphaInput;
+import com.segment.publicapi.models.GetAudience200Response;
+import com.segment.publicapi.models.GetAudiencePreview200Response;
+import com.segment.publicapi.models.GetAudienceScheduleFromSpaceAndAudience200Response;
+import com.segment.publicapi.models.ListAudienceConsumersFromSpaceAndAudience200Response;
+import com.segment.publicapi.models.ListAudienceConsumersSortInput;
+import com.segment.publicapi.models.ListAudienceSchedulesFromSpaceAndAudience200Response;
+import com.segment.publicapi.models.ListAudienceSearchInput;
+import com.segment.publicapi.models.ListAudiences200Response;
+import com.segment.publicapi.models.ListAudiencesPaginationInput;
+import com.segment.publicapi.models.PaginationInput;
+import com.segment.publicapi.models.RemoveAudienceFromSpace200Response;
+import com.segment.publicapi.models.UpdateAudienceForSpace200Response;
+import com.segment.publicapi.models.UpdateAudienceForSpaceAlphaInput;
+import java.lang.reflect.Type;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+public class AudiencesApi {
+ private ApiClient localVarApiClient;
+ private int localHostIndex;
+ private String localCustomBaseUrl;
+
+ public AudiencesApi() {
+ this(Configuration.getDefaultApiClient());
+ }
+
+ public AudiencesApi(ApiClient apiClient) {
+ this.localVarApiClient = apiClient;
+ }
+
+ public ApiClient getApiClient() {
+ return localVarApiClient;
+ }
+
+ public void setApiClient(ApiClient apiClient) {
+ this.localVarApiClient = apiClient;
+ }
+
+ public int getHostIndex() {
+ return localHostIndex;
+ }
+
+ public void setHostIndex(int hostIndex) {
+ this.localHostIndex = hostIndex;
+ }
+
+ public String getCustomBaseUrl() {
+ return localCustomBaseUrl;
+ }
+
+ public void setCustomBaseUrl(String customBaseUrl) {
+ this.localCustomBaseUrl = customBaseUrl;
+ }
+
+ /**
+ * Build call for createAudience
+ *
+ * @param spaceId (required)
+ * @param createAudienceAlphaInput (required)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public okhttp3.Call createAudienceCall(
+ String spaceId,
+ CreateAudienceAlphaInput createAudienceAlphaInput,
+ final ApiCallback _callback)
+ throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] {};
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null) {
+ basePath = localCustomBaseUrl;
+ } else if (localBasePaths.length > 0) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
+ Object localVarPostBody = createAudienceAlphaInput;
+
+ // create path and map variables
+ String localVarPath =
+ "/spaces/{spaceId}/audiences"
+ .replace(
+ "{" + "spaceId" + "}",
+ localVarApiClient.escapeString(spaceId.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "application/vnd.segment.v1alpha+json", "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {"application/vnd.segment.v1alpha+json"};
+ final String localVarContentType =
+ localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ String[] localVarAuthNames = new String[] {"token"};
+ return localVarApiClient.buildCall(
+ basePath,
+ localVarPath,
+ "POST",
+ localVarQueryParams,
+ localVarCollectionQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarCookieParams,
+ localVarFormParams,
+ localVarAuthNames,
+ _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call createAudienceValidateBeforeCall(
+ String spaceId,
+ CreateAudienceAlphaInput createAudienceAlphaInput,
+ final ApiCallback _callback)
+ throws ApiException {
+ // verify the required parameter 'spaceId' is set
+ if (spaceId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'spaceId' when calling createAudience(Async)");
+ }
+
+ // verify the required parameter 'createAudienceAlphaInput' is set
+ if (createAudienceAlphaInput == null) {
+ throw new ApiException(
+ "Missing the required parameter 'createAudienceAlphaInput' when calling"
+ + " createAudience(Async)");
+ }
+
+ return createAudienceCall(spaceId, createAudienceAlphaInput, _callback);
+ }
+
+ /**
+ * Create Audience Creates Audience. • This endpoint is in **Alpha** testing. Please submit any
+ * feedback by sending an email to friends@segment.com. • In order to successfully call this
+ * endpoint, the specified Workspace needs to have the Audience feature enabled. Please reach
+ * out to your customer success manager for more information. • When called, this endpoint may
+ * generate the `Audience Created` event in the [audit trail](/tag/Audit-Trail). Note:
+ * The definition for an Audience created using the API is not editable through the Segment App.
+ * The rate limit for this endpoint is 10 requests per minute, which is lower than the default
+ * due to access pattern restrictions. Once reached, this endpoint will respond with the 429
+ * HTTP status code with headers indicating the limit parameters. See [Rate
+ * Limiting](/#tag/Rate-Limits) for more information.
+ *
+ * @param spaceId (required)
+ * @param createAudienceAlphaInput (required)
+ * @return CreateAudience200Response
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public CreateAudience200Response createAudience(
+ String spaceId, CreateAudienceAlphaInput createAudienceAlphaInput) throws ApiException {
+ ApiResponse localVarResp =
+ createAudienceWithHttpInfo(spaceId, createAudienceAlphaInput);
+ return localVarResp.getData();
+ }
+
+ /**
+ * Create Audience Creates Audience. • This endpoint is in **Alpha** testing. Please submit any
+ * feedback by sending an email to friends@segment.com. • In order to successfully call this
+ * endpoint, the specified Workspace needs to have the Audience feature enabled. Please reach
+ * out to your customer success manager for more information. • When called, this endpoint may
+ * generate the `Audience Created` event in the [audit trail](/tag/Audit-Trail). Note:
+ * The definition for an Audience created using the API is not editable through the Segment App.
+ * The rate limit for this endpoint is 10 requests per minute, which is lower than the default
+ * due to access pattern restrictions. Once reached, this endpoint will respond with the 429
+ * HTTP status code with headers indicating the limit parameters. See [Rate
+ * Limiting](/#tag/Rate-Limits) for more information.
+ *
+ * @param spaceId (required)
+ * @param createAudienceAlphaInput (required)
+ * @return ApiResponse<CreateAudience200Response>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public ApiResponse createAudienceWithHttpInfo(
+ String spaceId, CreateAudienceAlphaInput createAudienceAlphaInput) throws ApiException {
+ okhttp3.Call localVarCall =
+ createAudienceValidateBeforeCall(spaceId, createAudienceAlphaInput, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * Create Audience (asynchronously) Creates Audience. • This endpoint is in **Alpha** testing.
+ * Please submit any feedback by sending an email to friends@segment.com. • In order to
+ * successfully call this endpoint, the specified Workspace needs to have the Audience feature
+ * enabled. Please reach out to your customer success manager for more information. • When
+ * called, this endpoint may generate the `Audience Created` event in the [audit
+ * trail](/tag/Audit-Trail). Note: The definition for an Audience created using the API is not
+ * editable through the Segment App. The rate limit for this endpoint is 10 requests per minute,
+ * which is lower than the default due to access pattern restrictions. Once reached, this
+ * endpoint will respond with the 429 HTTP status code with headers indicating the limit
+ * parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
+ *
+ * @param spaceId (required)
+ * @param createAudienceAlphaInput (required)
+ * @param _callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body
+ * object
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public okhttp3.Call createAudienceAsync(
+ String spaceId,
+ CreateAudienceAlphaInput createAudienceAlphaInput,
+ final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall =
+ createAudienceValidateBeforeCall(spaceId, createAudienceAlphaInput, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+
+ /**
+ * Build call for createAudiencePreview
+ *
+ * @param spaceId (required)
+ * @param createAudiencePreviewAlphaInput (required)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public okhttp3.Call createAudiencePreviewCall(
+ String spaceId,
+ CreateAudiencePreviewAlphaInput createAudiencePreviewAlphaInput,
+ final ApiCallback _callback)
+ throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] {};
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null) {
+ basePath = localCustomBaseUrl;
+ } else if (localBasePaths.length > 0) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
+ Object localVarPostBody = createAudiencePreviewAlphaInput;
+
+ // create path and map variables
+ String localVarPath =
+ "/spaces/{spaceId}/audiences/previews"
+ .replace(
+ "{" + "spaceId" + "}",
+ localVarApiClient.escapeString(spaceId.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "application/vnd.segment.v1alpha+json", "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {"application/vnd.segment.v1alpha+json"};
+ final String localVarContentType =
+ localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ String[] localVarAuthNames = new String[] {"token"};
+ return localVarApiClient.buildCall(
+ basePath,
+ localVarPath,
+ "POST",
+ localVarQueryParams,
+ localVarCollectionQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarCookieParams,
+ localVarFormParams,
+ localVarAuthNames,
+ _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call createAudiencePreviewValidateBeforeCall(
+ String spaceId,
+ CreateAudiencePreviewAlphaInput createAudiencePreviewAlphaInput,
+ final ApiCallback _callback)
+ throws ApiException {
+ // verify the required parameter 'spaceId' is set
+ if (spaceId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'spaceId' when calling"
+ + " createAudiencePreview(Async)");
+ }
+
+ // verify the required parameter 'createAudiencePreviewAlphaInput' is set
+ if (createAudiencePreviewAlphaInput == null) {
+ throw new ApiException(
+ "Missing the required parameter 'createAudiencePreviewAlphaInput' when calling"
+ + " createAudiencePreview(Async)");
+ }
+
+ return createAudiencePreviewCall(spaceId, createAudiencePreviewAlphaInput, _callback);
+ }
+
+ /**
+ * Create Audience Preview Previews Audience. • This endpoint is in **Alpha** testing. Please
+ * submit any feedback by sending an email to friends@segment.com. • In order to successfully
+ * call this endpoint, the specified Workspace needs to have the Audience feature enabled.
+ * Please reach out to your customer success manager for more information. • When called, this
+ * endpoint may generate the `Audience Preview Created` event in the [audit
+ * trail](/tag/Audit-Trail). The rate limit for this endpoint is 5 requests per minute, which is
+ * lower than the default due to access pattern restrictions. Once reached, this endpoint will
+ * respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate
+ * Limiting](/#tag/Rate-Limits) for more information. This endpoint also has a rate limit of 700
+ * requests per month per spaceId, which is lower than the default due to access pattern
+ * restrictions.
+ *
+ * @param spaceId (required)
+ * @param createAudiencePreviewAlphaInput (required)
+ * @return CreateAudiencePreview200Response
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public CreateAudiencePreview200Response createAudiencePreview(
+ String spaceId, CreateAudiencePreviewAlphaInput createAudiencePreviewAlphaInput)
+ throws ApiException {
+ ApiResponse localVarResp =
+ createAudiencePreviewWithHttpInfo(spaceId, createAudiencePreviewAlphaInput);
+ return localVarResp.getData();
+ }
+
+ /**
+ * Create Audience Preview Previews Audience. • This endpoint is in **Alpha** testing. Please
+ * submit any feedback by sending an email to friends@segment.com. • In order to successfully
+ * call this endpoint, the specified Workspace needs to have the Audience feature enabled.
+ * Please reach out to your customer success manager for more information. • When called, this
+ * endpoint may generate the `Audience Preview Created` event in the [audit
+ * trail](/tag/Audit-Trail). The rate limit for this endpoint is 5 requests per minute, which is
+ * lower than the default due to access pattern restrictions. Once reached, this endpoint will
+ * respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate
+ * Limiting](/#tag/Rate-Limits) for more information. This endpoint also has a rate limit of 700
+ * requests per month per spaceId, which is lower than the default due to access pattern
+ * restrictions.
+ *
+ * @param spaceId (required)
+ * @param createAudiencePreviewAlphaInput (required)
+ * @return ApiResponse<CreateAudiencePreview200Response>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public ApiResponse createAudiencePreviewWithHttpInfo(
+ String spaceId, CreateAudiencePreviewAlphaInput createAudiencePreviewAlphaInput)
+ throws ApiException {
+ okhttp3.Call localVarCall =
+ createAudiencePreviewValidateBeforeCall(
+ spaceId, createAudiencePreviewAlphaInput, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * Create Audience Preview (asynchronously) Previews Audience. • This endpoint is in **Alpha**
+ * testing. Please submit any feedback by sending an email to friends@segment.com. • In order to
+ * successfully call this endpoint, the specified Workspace needs to have the Audience feature
+ * enabled. Please reach out to your customer success manager for more information. • When
+ * called, this endpoint may generate the `Audience Preview Created` event in the
+ * [audit trail](/tag/Audit-Trail). The rate limit for this endpoint is 5 requests per minute,
+ * which is lower than the default due to access pattern restrictions. Once reached, this
+ * endpoint will respond with the 429 HTTP status code with headers indicating the limit
+ * parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information. This endpoint also
+ * has a rate limit of 700 requests per month per spaceId, which is lower than the default due
+ * to access pattern restrictions.
+ *
+ * @param spaceId (required)
+ * @param createAudiencePreviewAlphaInput (required)
+ * @param _callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body
+ * object
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public okhttp3.Call createAudiencePreviewAsync(
+ String spaceId,
+ CreateAudiencePreviewAlphaInput createAudiencePreviewAlphaInput,
+ final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall =
+ createAudiencePreviewValidateBeforeCall(
+ spaceId, createAudiencePreviewAlphaInput, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+
+ /**
+ * Build call for getAudience
+ *
+ * @param spaceId (required)
+ * @param id (required)
+ * @param include Additional resource to include, support schedules only. This parameter exists
+ * in alpha. (optional)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public okhttp3.Call getAudienceCall(
+ String spaceId, String id, String include, final ApiCallback _callback)
+ throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] {};
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null) {
+ basePath = localCustomBaseUrl;
+ } else if (localBasePaths.length > 0) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath =
+ "/spaces/{spaceId}/audiences/{id}"
+ .replace(
+ "{" + "spaceId" + "}",
+ localVarApiClient.escapeString(spaceId.toString()))
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (include != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("include", include));
+ }
+
+ final String[] localVarAccepts = {
+ "application/vnd.segment.v1beta+json",
+ "application/vnd.segment.v1alpha+json",
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {};
+ final String localVarContentType =
+ localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ String[] localVarAuthNames = new String[] {"token"};
+ return localVarApiClient.buildCall(
+ basePath,
+ localVarPath,
+ "GET",
+ localVarQueryParams,
+ localVarCollectionQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarCookieParams,
+ localVarFormParams,
+ localVarAuthNames,
+ _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call getAudienceValidateBeforeCall(
+ String spaceId, String id, String include, final ApiCallback _callback)
+ throws ApiException {
+ // verify the required parameter 'spaceId' is set
+ if (spaceId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'spaceId' when calling getAudience(Async)");
+ }
+
+ // verify the required parameter 'id' is set
+ if (id == null) {
+ throw new ApiException(
+ "Missing the required parameter 'id' when calling getAudience(Async)");
+ }
+
+ return getAudienceCall(spaceId, id, include, _callback);
+ }
+
+ /**
+ * Get Audience Returns the Audience by id and spaceId. Supports including audience schedules
+ * via `?include=schedules`. • This endpoint is in **Beta** testing. Please
+ * submit any feedback by sending an email to friends@segment.com. • In order to successfully
+ * call this endpoint, the specified Workspace needs to have the Audience feature enabled.
+ * Please reach out to your customer success manager for more information. The rate limit for
+ * this endpoint is 100 requests per minute, which is lower than the default due to access
+ * pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code
+ * with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more
+ * information.
+ *
+ * @param spaceId (required)
+ * @param id (required)
+ * @param include Additional resource to include, support schedules only. This parameter exists
+ * in alpha. (optional)
+ * @return GetAudience200Response
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public GetAudience200Response getAudience(String spaceId, String id, String include)
+ throws ApiException {
+ ApiResponse localVarResp =
+ getAudienceWithHttpInfo(spaceId, id, include);
+ return localVarResp.getData();
+ }
+
+ /**
+ * Get Audience Returns the Audience by id and spaceId. Supports including audience schedules
+ * via `?include=schedules`. • This endpoint is in **Beta** testing. Please
+ * submit any feedback by sending an email to friends@segment.com. • In order to successfully
+ * call this endpoint, the specified Workspace needs to have the Audience feature enabled.
+ * Please reach out to your customer success manager for more information. The rate limit for
+ * this endpoint is 100 requests per minute, which is lower than the default due to access
+ * pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code
+ * with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more
+ * information.
+ *
+ * @param spaceId (required)
+ * @param id (required)
+ * @param include Additional resource to include, support schedules only. This parameter exists
+ * in alpha. (optional)
+ * @return ApiResponse<GetAudience200Response>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public ApiResponse getAudienceWithHttpInfo(
+ String spaceId, String id, String include) throws ApiException {
+ okhttp3.Call localVarCall = getAudienceValidateBeforeCall(spaceId, id, include, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * Get Audience (asynchronously) Returns the Audience by id and spaceId. Supports including
+ * audience schedules via `?include=schedules`. • This endpoint is in **Beta**
+ * testing. Please submit any feedback by sending an email to friends@segment.com. • In order to
+ * successfully call this endpoint, the specified Workspace needs to have the Audience feature
+ * enabled. Please reach out to your customer success manager for more information. The rate
+ * limit for this endpoint is 100 requests per minute, which is lower than the default due to
+ * access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP
+ * status code with headers indicating the limit parameters. See [Rate
+ * Limiting](/#tag/Rate-Limits) for more information.
+ *
+ * @param spaceId (required)
+ * @param id (required)
+ * @param include Additional resource to include, support schedules only. This parameter exists
+ * in alpha. (optional)
+ * @param _callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body
+ * object
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public okhttp3.Call getAudienceAsync(
+ String spaceId,
+ String id,
+ String include,
+ final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall = getAudienceValidateBeforeCall(spaceId, id, include, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+
+ /**
+ * Build call for getAudiencePreview
+ *
+ * @param spaceId (required)
+ * @param id (required)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+ *
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 404 | Resource not found | - |
+ * 422 | Validation failure | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public okhttp3.Call getAudiencePreviewCall(
+ String spaceId, String id, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] {};
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null) {
+ basePath = localCustomBaseUrl;
+ } else if (localBasePaths.length > 0) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath =
+ "/spaces/{spaceId}/audiences/previews/{id}"
+ .replace(
+ "{" + "spaceId" + "}",
+ localVarApiClient.escapeString(spaceId.toString()))
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "application/vnd.segment.v1alpha+json", "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {};
+ final String localVarContentType =
+ localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ String[] localVarAuthNames = new String[] {"token"};
+ return localVarApiClient.buildCall(
+ basePath,
+ localVarPath,
+ "GET",
+ localVarQueryParams,
+ localVarCollectionQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarCookieParams,
+ localVarFormParams,
+ localVarAuthNames,
+ _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call getAudiencePreviewValidateBeforeCall(
+ String spaceId, String id, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'spaceId' is set
+ if (spaceId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'spaceId' when calling"
+ + " getAudiencePreview(Async)");
+ }
+
+ // verify the required parameter 'id' is set
+ if (id == null) {
+ throw new ApiException(
+ "Missing the required parameter 'id' when calling getAudiencePreview(Async)");
+ }
+
+ return getAudiencePreviewCall(spaceId, id, _callback);
+ }
+
+ /**
+ * Get Audience Preview Reads the results of an audience preview. • This endpoint is in
+ * **Alpha** testing. Please submit any feedback by sending an email to friends@segment.com. •
+ * In order to successfully call this endpoint, the specified Workspace needs to have the
+ * Audience feature enabled. Please reach out to your customer success manager for more
+ * information. The rate limit for this endpoint is 100 requests per minute, which is lower than
+ * the default due to access pattern restrictions. Once reached, this endpoint will respond with
+ * the 429 HTTP status code with headers indicating the limit parameters. See [Rate
+ * Limiting](/#tag/Rate-Limits) for more information.
+ *
+ * @param spaceId (required)
+ * @param id (required)
+ * @return GetAudiencePreview200Response
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *