Skip to content

Commit

Permalink
[Librarian] Regenerated @ c3db20dd5f24647ef2bd3fb8b955496c59bb22bd
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Feb 9, 2024
1 parent cd9be08 commit 120c877
Show file tree
Hide file tree
Showing 1,682 changed files with 17,340 additions and 25,311 deletions.
68 changes: 68 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,74 @@
twilio-java changelog
=====================

[2024-02-09] Version 10.0.0
---------------------------
**Note:** This release contains breaking changes, check our [upgrade guide](./UPGRADE.md#2024-02-08-9xx-to-10xx) for detailed migration notes.

**Library - Chore**
- [PR #780](https://github.com/twilio/twilio-java/pull/780): changed java version. Thanks to [@sbansla](https://github.com/sbansla)!

**Library - Feature**
- [PR #779](https://github.com/twilio/twilio-java/pull/779): MVR Release Preparation. Thanks to [@sbansla](https://github.com/sbansla)! **(breaking change)**

**Api**
- Updated service base url for connect apps and authorized connect apps APIs **(breaking change)**
- Update documentation to reflect RiskCheck GA
- Added optional parameter `CallToken` for create participant api

**Events**
- Marked as GA

**Flex**
- Adding `flex_instance_sid` to Flex Configuration
- Adding `provisioning_status` for Email Manager
- Adding `offline_config` to Flex Configuration

**Insights**
- add flag to restrict access to unapid customers
- decommission voice-qualitystats-endpoint role

**Intelligence**
- Add text-generation operator (for example conversation summary) results to existing OperatorResults collection.

**Lookups**
- Remove `carrier` field from `sms_pumping_risk` and leave `carrier_risk_category` **(breaking change)**
- Remove carrier information from call forwarding package **(breaking change)**

**Messaging**
- Add update instance endpoints to us_app_to_person api
- Add tollfree edit_allowed and edit_reason fields
- Update Phone Number, Short Code, Alpha Sender, US A2P and Channel Sender documentation
- Add DELETE support to Tollfree Verification resource

**Numbers**
- Add Get Port In request api

**Push**
- Migrated to new Push API V4 with Resilient Notification Delivery.

**Serverless**
- Add node18 as a valid Build runtime

**Taskrouter**
- Add `jitter_buffer_size` param in update reservation
- Add container attribute to task_queue_bulk_real_time_statistics endpoint
- Remove beta_feature check on task_queue_bulk_real_time_statistics endpoint

**Trusthub**
- Add optional field NotificationEmail to the POST /v1/ComplianceInquiries/Customers/Initialize API
- Add additional optional fields in compliance_tollfree_inquiry.json
- Rename did to tollfree_phone_number in compliance_tollfree_inquiry.json
- Add new optional field notification_email to compliance_tollfree_inquiry.json

**Verify**
- `Tags` property added again to Public Docs **(breaking change)**
- Remove `Tags` from Public Docs **(breaking change)**
- Add `VerifyEventSubscriptionEnabled` parameter to service create and update endpoints.
- Add `Tags` optional parameter on Verification creation.
- Update Verify TOTP maturity to GA.


[2024-01-25] Version 9.16.0
---------------------------
**Oauth**
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/com/twilio/Domains.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
public enum Domains {
ACCOUNTS("accounts"),
API("api"),
AUTOPILOT("autopilot"),
BULKEXPORTS("bulkexports"),
CHAT("chat"),
CONTENT("content"),
Expand All @@ -32,7 +31,6 @@ public enum Domains {
MONITOR("monitor"),
NOTIFY("notify"),
NUMBERS("numbers"),
OAUTH("oauth"),
PREVIEW("preview"),
PRICING("pricing"),
PROXY("proxy"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ public AuthTokenPromotion update(final TwilioRestClient client) {
client.getObjectMapper()
);
if (restException == null) {
throw new ApiException("Server Error, no content");
throw new ApiException(
"Server Error, no content",
response.getStatusCode()
);
}
throw new ApiException(restException);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ public Safelist create(final TwilioRestClient client) {
client.getObjectMapper()
);
if (restException == null) {
throw new ApiException("Server Error, no content");
throw new ApiException(
"Server Error, no content",
response.getStatusCode()
);
}
throw new ApiException(restException);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ public boolean delete(final TwilioRestClient client) {
client.getObjectMapper()
);
if (restException == null) {
throw new ApiException("Server Error, no content");
throw new ApiException(
"Server Error, no content",
response.getStatusCode()
);
}
throw new ApiException(restException);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ public Safelist fetch(final TwilioRestClient client) {
client.getObjectMapper()
);
if (restException == null) {
throw new ApiException("Server Error, no content");
throw new ApiException(
"Server Error, no content",
response.getStatusCode()
);
}
throw new ApiException(restException);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ public SecondaryAuthToken create(final TwilioRestClient client) {
client.getObjectMapper()
);
if (restException == null) {
throw new ApiException("Server Error, no content");
throw new ApiException(
"Server Error, no content",
response.getStatusCode()
);
}
throw new ApiException(restException);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ public boolean delete(final TwilioRestClient client) {
client.getObjectMapper()
);
if (restException == null) {
throw new ApiException("Server Error, no content");
throw new ApiException(
"Server Error, no content",
response.getStatusCode()
);
}
throw new ApiException(restException);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ public Aws create(final TwilioRestClient client) {
client.getObjectMapper()
);
if (restException == null) {
throw new ApiException("Server Error, no content");
throw new ApiException(
"Server Error, no content",
response.getStatusCode()
);
}
throw new ApiException(restException);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ public boolean delete(final TwilioRestClient client) {
client.getObjectMapper()
);
if (restException == null) {
throw new ApiException("Server Error, no content");
throw new ApiException(
"Server Error, no content",
response.getStatusCode()
);
}
throw new ApiException(restException);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ public Aws fetch(final TwilioRestClient client) {
client.getObjectMapper()
);
if (restException == null) {
throw new ApiException("Server Error, no content");
throw new ApiException(
"Server Error, no content",
response.getStatusCode()
);
}
throw new ApiException(restException);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ private Page<Aws> pageForRequest(
client.getObjectMapper()
);
if (restException == null) {
throw new ApiException("Server Error, no content");
throw new ApiException(
"Server Error, no content",
response.getStatusCode()
);
}
throw new ApiException(restException);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ public Aws update(final TwilioRestClient client) {
client.getObjectMapper()
);
if (restException == null) {
throw new ApiException("Server Error, no content");
throw new ApiException(
"Server Error, no content",
response.getStatusCode()
);
}
throw new ApiException(restException);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ public PublicKey create(final TwilioRestClient client) {
client.getObjectMapper()
);
if (restException == null) {
throw new ApiException("Server Error, no content");
throw new ApiException(
"Server Error, no content",
response.getStatusCode()
);
}
throw new ApiException(restException);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ public boolean delete(final TwilioRestClient client) {
client.getObjectMapper()
);
if (restException == null) {
throw new ApiException("Server Error, no content");
throw new ApiException(
"Server Error, no content",
response.getStatusCode()
);
}
throw new ApiException(restException);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ public PublicKey fetch(final TwilioRestClient client) {
client.getObjectMapper()
);
if (restException == null) {
throw new ApiException("Server Error, no content");
throw new ApiException(
"Server Error, no content",
response.getStatusCode()
);
}
throw new ApiException(restException);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ private Page<PublicKey> pageForRequest(
client.getObjectMapper()
);
if (restException == null) {
throw new ApiException("Server Error, no content");
throw new ApiException(
"Server Error, no content",
response.getStatusCode()
);
}
throw new ApiException(restException);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ public PublicKey update(final TwilioRestClient client) {
client.getObjectMapper()
);
if (restException == null) {
throw new ApiException("Server Error, no content");
throw new ApiException(
"Server Error, no content",
response.getStatusCode()
);
}
throw new ApiException(restException);
}
Expand Down
82 changes: 41 additions & 41 deletions src/main/java/com/twilio/rest/api/v2010/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,47 +107,6 @@ public static Account fromJson(
}
}

public enum Status {
ACTIVE("active"),
SUSPENDED("suspended"),
CLOSED("closed");

private final String value;

private Status(final String value) {
this.value = value;
}

public String toString() {
return value;
}

@JsonCreator
public static Status forValue(final String value) {
return Promoter.enumFromString(value, Status.values());
}
}

public enum Type {
TRIAL("Trial"),
FULL("Full");

private final String value;

private Type(final String value) {
this.value = value;
}

public String toString() {
return value;
}

@JsonCreator
public static Type forValue(final String value) {
return Promoter.enumFromString(value, Type.values());
}
}

private final String authToken;
private final ZonedDateTime dateCreated;
private final ZonedDateTime dateUpdated;
Expand Down Expand Up @@ -268,4 +227,45 @@ public int hashCode() {
uri
);
}

public enum Status {
ACTIVE("active"),
SUSPENDED("suspended"),
CLOSED("closed");

private final String value;

private Status(final String value) {
this.value = value;
}

public String toString() {
return value;
}

@JsonCreator
public static Status forValue(final String value) {
return Promoter.enumFromString(value, Status.values());
}
}

public enum Type {
TRIAL("Trial"),
FULL("Full");

private final String value;

private Type(final String value) {
this.value = value;
}

public String toString() {
return value;
}

@JsonCreator
public static Type forValue(final String value) {
return Promoter.enumFromString(value, Type.values());
}
}
}
5 changes: 4 additions & 1 deletion src/main/java/com/twilio/rest/api/v2010/AccountCreator.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ public Account create(final TwilioRestClient client) {
client.getObjectMapper()
);
if (restException == null) {
throw new ApiException("Server Error, no content");
throw new ApiException(
"Server Error, no content",
response.getStatusCode()
);
}
throw new ApiException(restException);
}
Expand Down
Loading

0 comments on commit 120c877

Please sign in to comment.