Skip to content

Commit 3399e0b

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

File tree

3 files changed

+17
-51
lines changed

3 files changed

+17
-51
lines changed

docs/CustomerInsightsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ All URIs are relative to *https://api.segmentapis.com*
1414
1515
Create Download
1616

17-
Create Customer Insights Presigned URLs The rate limit for this endpoint is 1 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.
17+
Create Customer Insights Presigned URLsThe rate limit for this endpoint is 30 requests per day per workspaceId, 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.
1818

1919
### Example
2020

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

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,11 @@ private okhttp3.Call createDownloadValidateBeforeCall(
151151
}
152152

153153
/**
154-
* Create Download Create Customer Insights Presigned URLs The rate limit for this endpoint is 1
155-
* requests per minute, which is lower than the default due to access pattern restrictions. Once
156-
* reached, this endpoint will respond with the 429 HTTP status code with headers indicating the
157-
* limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
154+
* Create Download Create Customer Insights Presigned URLsThe rate limit for this endpoint is 30
155+
* requests per day per workspaceId, which is lower than the default due to access pattern
156+
* restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with
157+
* headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more
158+
* information.
158159
*
159160
* @param createDownloadAlphaInput (required)
160161
* @return CreateDownload200Response
@@ -177,10 +178,11 @@ public CreateDownload200Response createDownload(
177178
}
178179

179180
/**
180-
* Create Download Create Customer Insights Presigned URLs The rate limit for this endpoint is 1
181-
* requests per minute, which is lower than the default due to access pattern restrictions. Once
182-
* reached, this endpoint will respond with the 429 HTTP status code with headers indicating the
183-
* limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
181+
* Create Download Create Customer Insights Presigned URLsThe rate limit for this endpoint is 30
182+
* requests per day per workspaceId, which is lower than the default due to access pattern
183+
* restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with
184+
* headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more
185+
* information.
184186
*
185187
* @param createDownloadAlphaInput (required)
186188
* @return ApiResponse<CreateDownload200Response>
@@ -204,11 +206,11 @@ public ApiResponse<CreateDownload200Response> createDownloadWithHttpInfo(
204206
}
205207

206208
/**
207-
* Create Download (asynchronously) Create Customer Insights Presigned URLs The rate limit for
208-
* this endpoint is 1 requests per minute, which is lower than the default due to access pattern
209-
* restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with
210-
* headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more
211-
* information.
209+
* Create Download (asynchronously) Create Customer Insights Presigned URLsThe rate limit for
210+
* this endpoint is 30 requests per day per workspaceId, which is lower than the default due to
211+
* access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP
212+
* status code with headers indicating the limit parameters. See [Rate
213+
* Limiting](/#tag/Rate-Limits) for more information.
212214
*
213215
* @param createDownloadAlphaInput (required)
214216
* @param _callback The callback to be executed when the API call finishes

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

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ public class CreateDownloadAlphaInput {
3434
@SerializedName(SERIALIZED_NAME_COLLECTION_ID)
3535
private String collectionId;
3636

37-
public static final String SERIALIZED_NAME_WORKSPACE_ID = "workspaceId";
38-
39-
@SerializedName(SERIALIZED_NAME_WORKSPACE_ID)
40-
private String workspaceId;
41-
4237
public static final String SERIALIZED_NAME_HOUR = "hour";
4338

4439
@SerializedName(SERIALIZED_NAME_HOUR)
@@ -66,26 +61,6 @@ public void setCollectionId(String collectionId) {
6661
this.collectionId = collectionId;
6762
}
6863

69-
public CreateDownloadAlphaInput workspaceId(String workspaceId) {
70-
71-
this.workspaceId = workspaceId;
72-
return this;
73-
}
74-
75-
/**
76-
* The Workspace id for the collection.
77-
*
78-
* @return workspaceId
79-
*/
80-
@javax.annotation.Nonnull
81-
public String getWorkspaceId() {
82-
return workspaceId;
83-
}
84-
85-
public void setWorkspaceId(String workspaceId) {
86-
this.workspaceId = workspaceId;
87-
}
88-
8964
public CreateDownloadAlphaInput hour(String hour) {
9065

9166
this.hour = hour;
@@ -117,21 +92,19 @@ public boolean equals(Object o) {
11792
}
11893
CreateDownloadAlphaInput createDownloadAlphaInput = (CreateDownloadAlphaInput) o;
11994
return Objects.equals(this.collectionId, createDownloadAlphaInput.collectionId)
120-
&& Objects.equals(this.workspaceId, createDownloadAlphaInput.workspaceId)
12195
&& Objects.equals(this.hour, createDownloadAlphaInput.hour);
12296
}
12397

12498
@Override
12599
public int hashCode() {
126-
return Objects.hash(collectionId, workspaceId, hour);
100+
return Objects.hash(collectionId, hour);
127101
}
128102

129103
@Override
130104
public String toString() {
131105
StringBuilder sb = new StringBuilder();
132106
sb.append("class CreateDownloadAlphaInput {\n");
133107
sb.append(" collectionId: ").append(toIndentedString(collectionId)).append("\n");
134-
sb.append(" workspaceId: ").append(toIndentedString(workspaceId)).append("\n");
135108
sb.append(" hour: ").append(toIndentedString(hour)).append("\n");
136109
sb.append("}");
137110
return sb.toString();
@@ -155,13 +128,11 @@ private String toIndentedString(Object o) {
155128
// a set of all properties/fields (JSON key names)
156129
openapiFields = new HashSet<String>();
157130
openapiFields.add("collectionId");
158-
openapiFields.add("workspaceId");
159131
openapiFields.add("hour");
160132

161133
// a set of required properties/fields (JSON key names)
162134
openapiRequiredFields = new HashSet<String>();
163135
openapiRequiredFields.add("collectionId");
164-
openapiRequiredFields.add("workspaceId");
165136
openapiRequiredFields.add("hour");
166137
}
167138

@@ -212,13 +183,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
212183
+ " string but got `%s`",
213184
jsonObj.get("collectionId").toString()));
214185
}
215-
if (!jsonObj.get("workspaceId").isJsonPrimitive()) {
216-
throw new IllegalArgumentException(
217-
String.format(
218-
"Expected the field `workspaceId` to be a primitive type in the JSON"
219-
+ " string but got `%s`",
220-
jsonObj.get("workspaceId").toString()));
221-
}
222186
if (!jsonObj.get("hour").isJsonPrimitive()) {
223187
throw new IllegalArgumentException(
224188
String.format(

0 commit comments

Comments
 (0)