Skip to content

Commit e5da43b

Browse files
committed
[Librarian] Regenerated @ 31f824e7797519ab8dc088e25d7146e5cb7cfdda
1 parent e1d063c commit e5da43b

File tree

51 files changed

+548
-298
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+548
-298
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
[2025-02-22] Version 5.0.0-rc.17
5+
--------------------------------
6+
**Account provisioning**
7+
- Update status code for all endpoints within Acorn
8+
9+
410
[2025-02-20] Version 5.0.0-rc.16
511
--------------------------------
612
**Library - Chore**

src/main/java/com/sendgrid/rest/api/v3/accountprovisioning/AuthenticateAccount.java

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,58 @@ public ApiResponse<Void> send(final ApiKeyRestClient client) {
9090
);
9191
}
9292

93+
if (Matcher.matches(Integer.toString(statusCode), "500")) {
94+
Object error = JsonUtil.fromJson(
95+
response.getStream(),
96+
Object.class
97+
);
98+
throw new ApiErrorResponse(
99+
statusCode,
100+
null,
101+
error,
102+
response.getHeaders()
103+
);
104+
}
105+
106+
if (Matcher.matches(Integer.toString(statusCode), "502")) {
107+
Object error = JsonUtil.fromJson(
108+
response.getStream(),
109+
Object.class
110+
);
111+
throw new ApiErrorResponse(
112+
statusCode,
113+
null,
114+
error,
115+
response.getHeaders()
116+
);
117+
}
118+
119+
if (Matcher.matches(Integer.toString(statusCode), "503")) {
120+
Object error = JsonUtil.fromJson(
121+
response.getStream(),
122+
Object.class
123+
);
124+
throw new ApiErrorResponse(
125+
statusCode,
126+
null,
127+
error,
128+
response.getHeaders()
129+
);
130+
}
131+
132+
if (Matcher.matches(Integer.toString(statusCode), "504")) {
133+
Object error = JsonUtil.fromJson(
134+
response.getStream(),
135+
Object.class
136+
);
137+
throw new ApiErrorResponse(
138+
statusCode,
139+
null,
140+
error,
141+
response.getHeaders()
142+
);
143+
}
144+
93145
GenericApiError error = JsonUtil.fromJson(
94146
response.getStream(),
95147
GenericApiError.class

src/main/java/com/sendgrid/rest/api/v3/accountprovisioning/CreateAccount.java

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,58 @@ public ApiResponse<AccountProvisioningAccountId> send(
100100
);
101101
}
102102

103+
if (Matcher.matches(Integer.toString(statusCode), "500")) {
104+
Object error = JsonUtil.fromJson(
105+
response.getStream(),
106+
Object.class
107+
);
108+
throw new ApiErrorResponse(
109+
statusCode,
110+
null,
111+
error,
112+
response.getHeaders()
113+
);
114+
}
115+
116+
if (Matcher.matches(Integer.toString(statusCode), "502")) {
117+
Object error = JsonUtil.fromJson(
118+
response.getStream(),
119+
Object.class
120+
);
121+
throw new ApiErrorResponse(
122+
statusCode,
123+
null,
124+
error,
125+
response.getHeaders()
126+
);
127+
}
128+
129+
if (Matcher.matches(Integer.toString(statusCode), "503")) {
130+
Object error = JsonUtil.fromJson(
131+
response.getStream(),
132+
Object.class
133+
);
134+
throw new ApiErrorResponse(
135+
statusCode,
136+
null,
137+
error,
138+
response.getHeaders()
139+
);
140+
}
141+
142+
if (Matcher.matches(Integer.toString(statusCode), "504")) {
143+
Object error = JsonUtil.fromJson(
144+
response.getStream(),
145+
Object.class
146+
);
147+
throw new ApiErrorResponse(
148+
statusCode,
149+
null,
150+
error,
151+
response.getHeaders()
152+
);
153+
}
154+
103155
GenericApiError error = JsonUtil.fromJson(
104156
response.getStream(),
105157
GenericApiError.class

src/main/java/com/sendgrid/rest/api/v3/accountprovisioning/DeleteAccount.java

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,58 @@ public ApiResponse<Void> send(final ApiKeyRestClient client) {
103103
);
104104
}
105105

106+
if (Matcher.matches(Integer.toString(statusCode), "500")) {
107+
Object error = JsonUtil.fromJson(
108+
response.getStream(),
109+
Object.class
110+
);
111+
throw new ApiErrorResponse(
112+
statusCode,
113+
null,
114+
error,
115+
response.getHeaders()
116+
);
117+
}
118+
119+
if (Matcher.matches(Integer.toString(statusCode), "502")) {
120+
Object error = JsonUtil.fromJson(
121+
response.getStream(),
122+
Object.class
123+
);
124+
throw new ApiErrorResponse(
125+
statusCode,
126+
null,
127+
error,
128+
response.getHeaders()
129+
);
130+
}
131+
132+
if (Matcher.matches(Integer.toString(statusCode), "503")) {
133+
Object error = JsonUtil.fromJson(
134+
response.getStream(),
135+
Object.class
136+
);
137+
throw new ApiErrorResponse(
138+
statusCode,
139+
null,
140+
error,
141+
response.getHeaders()
142+
);
143+
}
144+
145+
if (Matcher.matches(Integer.toString(statusCode), "504")) {
146+
Object error = JsonUtil.fromJson(
147+
response.getStream(),
148+
Object.class
149+
);
150+
throw new ApiErrorResponse(
151+
statusCode,
152+
null,
153+
error,
154+
response.getHeaders()
155+
);
156+
}
157+
106158
GenericApiError error = JsonUtil.fromJson(
107159
response.getStream(),
108160
GenericApiError.class

src/main/java/com/sendgrid/rest/api/v3/accountprovisioning/GetAccountState.java

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,58 @@ public ApiResponse<AccountProvisioningStateRead> send(
106106
);
107107
}
108108

109+
if (Matcher.matches(Integer.toString(statusCode), "500")) {
110+
Object error = JsonUtil.fromJson(
111+
response.getStream(),
112+
Object.class
113+
);
114+
throw new ApiErrorResponse(
115+
statusCode,
116+
null,
117+
error,
118+
response.getHeaders()
119+
);
120+
}
121+
122+
if (Matcher.matches(Integer.toString(statusCode), "502")) {
123+
Object error = JsonUtil.fromJson(
124+
response.getStream(),
125+
Object.class
126+
);
127+
throw new ApiErrorResponse(
128+
statusCode,
129+
null,
130+
error,
131+
response.getHeaders()
132+
);
133+
}
134+
135+
if (Matcher.matches(Integer.toString(statusCode), "503")) {
136+
Object error = JsonUtil.fromJson(
137+
response.getStream(),
138+
Object.class
139+
);
140+
throw new ApiErrorResponse(
141+
statusCode,
142+
null,
143+
error,
144+
response.getHeaders()
145+
);
146+
}
147+
148+
if (Matcher.matches(Integer.toString(statusCode), "504")) {
149+
Object error = JsonUtil.fromJson(
150+
response.getStream(),
151+
Object.class
152+
);
153+
throw new ApiErrorResponse(
154+
statusCode,
155+
null,
156+
error,
157+
response.getHeaders()
158+
);
159+
}
160+
109161
GenericApiError error = JsonUtil.fromJson(
110162
response.getStream(),
111163
GenericApiError.class

src/main/java/com/sendgrid/rest/api/v3/accountprovisioning/ListAccount.java

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,58 @@ public ApiResponse<AccountList> send(final ApiKeyRestClient client) {
109109
);
110110
}
111111

112+
if (Matcher.matches(Integer.toString(statusCode), "500")) {
113+
Object error = JsonUtil.fromJson(
114+
response.getStream(),
115+
Object.class
116+
);
117+
throw new ApiErrorResponse(
118+
statusCode,
119+
null,
120+
error,
121+
response.getHeaders()
122+
);
123+
}
124+
125+
if (Matcher.matches(Integer.toString(statusCode), "502")) {
126+
Object error = JsonUtil.fromJson(
127+
response.getStream(),
128+
Object.class
129+
);
130+
throw new ApiErrorResponse(
131+
statusCode,
132+
null,
133+
error,
134+
response.getHeaders()
135+
);
136+
}
137+
138+
if (Matcher.matches(Integer.toString(statusCode), "503")) {
139+
Object error = JsonUtil.fromJson(
140+
response.getStream(),
141+
Object.class
142+
);
143+
throw new ApiErrorResponse(
144+
statusCode,
145+
null,
146+
error,
147+
response.getHeaders()
148+
);
149+
}
150+
151+
if (Matcher.matches(Integer.toString(statusCode), "504")) {
152+
Object error = JsonUtil.fromJson(
153+
response.getStream(),
154+
Object.class
155+
);
156+
throw new ApiErrorResponse(
157+
statusCode,
158+
null,
159+
error,
160+
response.getHeaders()
161+
);
162+
}
163+
112164
GenericApiError error = JsonUtil.fromJson(
113165
response.getStream(),
114166
GenericApiError.class

src/main/java/com/sendgrid/rest/api/v3/accountprovisioning/ListAccountOffering.java

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,58 @@ public ApiResponse<AccountProvisioningOfferingList> send(
106106
);
107107
}
108108

109+
if (Matcher.matches(Integer.toString(statusCode), "500")) {
110+
Object error = JsonUtil.fromJson(
111+
response.getStream(),
112+
Object.class
113+
);
114+
throw new ApiErrorResponse(
115+
statusCode,
116+
null,
117+
error,
118+
response.getHeaders()
119+
);
120+
}
121+
122+
if (Matcher.matches(Integer.toString(statusCode), "502")) {
123+
Object error = JsonUtil.fromJson(
124+
response.getStream(),
125+
Object.class
126+
);
127+
throw new ApiErrorResponse(
128+
statusCode,
129+
null,
130+
error,
131+
response.getHeaders()
132+
);
133+
}
134+
135+
if (Matcher.matches(Integer.toString(statusCode), "503")) {
136+
Object error = JsonUtil.fromJson(
137+
response.getStream(),
138+
Object.class
139+
);
140+
throw new ApiErrorResponse(
141+
statusCode,
142+
null,
143+
error,
144+
response.getHeaders()
145+
);
146+
}
147+
148+
if (Matcher.matches(Integer.toString(statusCode), "504")) {
149+
Object error = JsonUtil.fromJson(
150+
response.getStream(),
151+
Object.class
152+
);
153+
throw new ApiErrorResponse(
154+
statusCode,
155+
null,
156+
error,
157+
response.getHeaders()
158+
);
159+
}
160+
109161
GenericApiError error = JsonUtil.fromJson(
110162
response.getStream(),
111163
GenericApiError.class

0 commit comments

Comments
 (0)