Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/main/java/com/twilio/rest/assistants/v1/Assistant.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public static AssistantUpdater updater(final String pathId) {
}

@JsonDeserialize(builder = AssistantsV1ServiceTool.Builder.class)
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@ToString
public static class AssistantsV1ServiceTool {
Expand Down Expand Up @@ -176,6 +177,7 @@ public static AssistantsV1ServiceTool fromJson(
return mapper.readValue(jsonString, AssistantsV1ServiceTool.class);
}

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonPOJOBuilder(withPrefix = "")
public static class Builder {

Expand Down Expand Up @@ -307,6 +309,7 @@ public int hashCode() {
}

@JsonDeserialize(builder = AssistantsV1ServiceCustomerAi.Builder.class)
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@ToString
public static class AssistantsV1ServiceCustomerAi {
Expand Down Expand Up @@ -347,6 +350,7 @@ public static AssistantsV1ServiceCustomerAi fromJson(
);
}

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonPOJOBuilder(withPrefix = "")
public static class Builder {

Expand Down Expand Up @@ -411,6 +415,7 @@ public int hashCode() {
@JsonDeserialize(
builder = AssistantsV1ServiceUpdateAssistantRequest.Builder.class
)
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@ToString
public static class AssistantsV1ServiceUpdateAssistantRequest {
Expand Down Expand Up @@ -462,6 +467,7 @@ public static AssistantsV1ServiceUpdateAssistantRequest fromJson(
);
}

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonPOJOBuilder(withPrefix = "")
public static class Builder {

Expand Down Expand Up @@ -560,6 +566,7 @@ public int hashCode() {
@JsonDeserialize(
builder = AssistantsV1ServiceCreateAssistantRequest.Builder.class
)
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@ToString
public static class AssistantsV1ServiceCreateAssistantRequest {
Expand Down Expand Up @@ -611,6 +618,7 @@ public static AssistantsV1ServiceCreateAssistantRequest fromJson(
);
}

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonPOJOBuilder(withPrefix = "")
public static class Builder {

Expand Down Expand Up @@ -707,6 +715,7 @@ public int hashCode() {
@JsonDeserialize(
builder = AssistantsV1ServiceSegmentCredential.Builder.class
)
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@ToString
public static class AssistantsV1ServiceSegmentCredential {
Expand Down Expand Up @@ -746,6 +755,7 @@ public static AssistantsV1ServiceSegmentCredential fromJson(
);
}

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonPOJOBuilder(withPrefix = "")
public static class Builder {

Expand Down Expand Up @@ -810,6 +820,7 @@ public int hashCode() {
}

@JsonDeserialize(builder = AssistantsV1ServiceKnowledge.Builder.class)
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@ToString
public static class AssistantsV1ServiceKnowledge {
Expand Down Expand Up @@ -907,6 +918,7 @@ public static AssistantsV1ServiceKnowledge fromJson(
);
}

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonPOJOBuilder(withPrefix = "")
public static class Builder {

Expand Down
6 changes: 6 additions & 0 deletions src/main/java/com/twilio/rest/assistants/v1/Knowledge.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public static KnowledgeUpdater updater(final String pathId) {
@JsonDeserialize(
builder = AssistantsV1ServiceUpdateKnowledgeRequest.Builder.class
)
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@ToString
public static class AssistantsV1ServiceUpdateKnowledgeRequest {
Expand Down Expand Up @@ -126,6 +127,7 @@ public static AssistantsV1ServiceUpdateKnowledgeRequest fromJson(
);
}

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonPOJOBuilder(withPrefix = "")
public static class Builder {

Expand Down Expand Up @@ -239,6 +241,7 @@ public int hashCode() {
@JsonDeserialize(
builder = AssistantsV1ServiceCreatePolicyRequest.Builder.class
)
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@ToString
public static class AssistantsV1ServiceCreatePolicyRequest {
Expand Down Expand Up @@ -290,6 +293,7 @@ public static AssistantsV1ServiceCreatePolicyRequest fromJson(
);
}

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonPOJOBuilder(withPrefix = "")
public static class Builder {

Expand Down Expand Up @@ -378,6 +382,7 @@ public int hashCode() {
@JsonDeserialize(
builder = AssistantsV1ServiceCreateKnowledgeRequest.Builder.class
)
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@ToString
public static class AssistantsV1ServiceCreateKnowledgeRequest {
Expand Down Expand Up @@ -441,6 +446,7 @@ public static AssistantsV1ServiceCreateKnowledgeRequest fromJson(
);
}

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonPOJOBuilder(withPrefix = "")
public static class Builder {

Expand Down
8 changes: 8 additions & 0 deletions src/main/java/com/twilio/rest/assistants/v1/Tool.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public static ToolUpdater updater(final String pathId) {
@JsonDeserialize(
builder = AssistantsV1ServiceCreatePolicyRequest.Builder.class
)
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@ToString
public static class AssistantsV1ServiceCreatePolicyRequest {
Expand Down Expand Up @@ -121,6 +122,7 @@ public static AssistantsV1ServiceCreatePolicyRequest fromJson(
);
}

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonPOJOBuilder(withPrefix = "")
public static class Builder {

Expand Down Expand Up @@ -209,6 +211,7 @@ public int hashCode() {
@JsonDeserialize(
builder = AssistantsV1ServiceUpdateToolRequest.Builder.class
)
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@ToString
public static class AssistantsV1ServiceUpdateToolRequest {
Expand Down Expand Up @@ -272,6 +275,7 @@ public static AssistantsV1ServiceUpdateToolRequest fromJson(
);
}

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonPOJOBuilder(withPrefix = "")
public static class Builder {

Expand Down Expand Up @@ -392,6 +396,7 @@ public int hashCode() {
@JsonDeserialize(
builder = AssistantsV1ServiceCreateToolRequest.Builder.class
)
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@ToString
public static class AssistantsV1ServiceCreateToolRequest {
Expand Down Expand Up @@ -459,6 +464,7 @@ public static AssistantsV1ServiceCreateToolRequest fromJson(
);
}

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonPOJOBuilder(withPrefix = "")
public static class Builder {

Expand Down Expand Up @@ -567,6 +573,7 @@ public int hashCode() {
}

@JsonDeserialize(builder = AssistantsV1ServicePolicy.Builder.class)
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@ToString
public static class AssistantsV1ServicePolicy {
Expand Down Expand Up @@ -649,6 +656,7 @@ public static AssistantsV1ServicePolicy fromJson(
);
}

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonPOJOBuilder(withPrefix = "")
public static class Builder {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public static FeedbackReader reader(final String pathId) {
@JsonDeserialize(
builder = AssistantsV1ServiceCreateFeedbackRequest.Builder.class
)
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@ToString
public static class AssistantsV1ServiceCreateFeedbackRequest {
Expand Down Expand Up @@ -106,6 +107,7 @@ public static AssistantsV1ServiceCreateFeedbackRequest fromJson(
);
}

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonPOJOBuilder(withPrefix = "")
public static class Builder {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public static MessageCreator creator(
@JsonDeserialize(
builder = AssistantsV1ServiceAssistantSendMessageRequest.Builder.class
)
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@ToString
public static class AssistantsV1ServiceAssistantSendMessageRequest {
Expand Down Expand Up @@ -111,6 +112,7 @@ public static AssistantsV1ServiceAssistantSendMessageRequest fromJson(
);
}

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonPOJOBuilder(withPrefix = "")
public static class Builder {

Expand Down
Loading