Skip to content
Open
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
8 changes: 4 additions & 4 deletions src/main/java/com/getconvoy/api/SubscriptionsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ private HttpRequest.Builder getSubscriptionRequestBuilder(@jakarta.annotation.No

/**
* List all subscriptions
* This endpoint fetches all the subscriptions
* List subscriptions. A row includes has_event_type_filters when a per-event-type filter has body, header, query, or path rules.
* @param projectID Project ID (required)
* @param direction (optional)
* @param endpointId A list of endpointIDs to filter by (optional)
Expand All @@ -576,7 +576,7 @@ public GetSubscriptions200Response getSubscriptions(@jakarta.annotation.Nonnull

/**
* List all subscriptions
* This endpoint fetches all the subscriptions
* List subscriptions. A row includes has_event_type_filters when a per-event-type filter has body, header, query, or path rules.
* @param projectID Project ID (required)
* @param direction (optional)
* @param endpointId A list of endpointIDs to filter by (optional)
Expand All @@ -596,7 +596,7 @@ public GetSubscriptions200Response getSubscriptions(@jakarta.annotation.Nonnull

/**
* List all subscriptions
* This endpoint fetches all the subscriptions
* List subscriptions. A row includes has_event_type_filters when a per-event-type filter has body, header, query, or path rules.
* @param projectID Project ID (required)
* @param direction (optional)
* @param endpointId A list of endpointIDs to filter by (optional)
Expand All @@ -614,7 +614,7 @@ public ApiResponse<GetSubscriptions200Response> getSubscriptionsWithHttpInfo(@ja

/**
* List all subscriptions
* This endpoint fetches all the subscriptions
* List subscriptions. A row includes has_event_type_filters when a per-event-type filter has body, header, query, or path rules.
* @param projectID Project ID (required)
* @param direction (optional)
* @param endpointId A list of endpointIDs to filter by (optional)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
ModelsSubscriptionResponse.JSON_PROPERTY_ENDPOINT_METADATA,
ModelsSubscriptionResponse.JSON_PROPERTY_FILTER_CONFIG,
ModelsSubscriptionResponse.JSON_PROPERTY_FUNCTION,
ModelsSubscriptionResponse.JSON_PROPERTY_HAS_EVENT_TYPE_FILTERS,
ModelsSubscriptionResponse.JSON_PROPERTY_NAME,
ModelsSubscriptionResponse.JSON_PROPERTY_PROJECT_ID,
ModelsSubscriptionResponse.JSON_PROPERTY_RATE_LIMIT_CONFIG,
Expand Down Expand Up @@ -91,6 +92,10 @@ public class ModelsSubscriptionResponse {
public static final String JSON_PROPERTY_FUNCTION = "function";
private JsonNullable<String> function = JsonNullable.<String>undefined();

public static final String JSON_PROPERTY_HAS_EVENT_TYPE_FILTERS = "has_event_type_filters";
@jakarta.annotation.Nullable
private Boolean hasEventTypeFilters;

public static final String JSON_PROPERTY_NAME = "name";
@jakarta.annotation.Nullable
private String name;
Expand Down Expand Up @@ -363,6 +368,30 @@ public void setFunction(@jakarta.annotation.Nullable String function) {
}


public ModelsSubscriptionResponse hasEventTypeFilters(@jakarta.annotation.Nullable Boolean hasEventTypeFilters) {
this.hasEventTypeFilters = hasEventTypeFilters;
return this;
}

/**
* HasEventTypeFilters indicates whether the subscription list found a configured per-event-type rule.
* @return hasEventTypeFilters
*/
@jakarta.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_HAS_EVENT_TYPE_FILTERS, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getHasEventTypeFilters() {
return hasEventTypeFilters;
}


@JsonProperty(value = JSON_PROPERTY_HAS_EVENT_TYPE_FILTERS, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setHasEventTypeFilters(@jakarta.annotation.Nullable Boolean hasEventTypeFilters) {
this.hasEventTypeFilters = hasEventTypeFilters;
}


public ModelsSubscriptionResponse name(@jakarta.annotation.Nullable String name) {
this.name = name;
return this;
Expand Down Expand Up @@ -599,6 +628,7 @@ public boolean equals(Object o) {
equalsNullable(this.endpointMetadata, modelsSubscriptionResponse.endpointMetadata) &&
equalsNullable(this.filterConfig, modelsSubscriptionResponse.filterConfig) &&
equalsNullable(this.function, modelsSubscriptionResponse.function) &&
Objects.equals(this.hasEventTypeFilters, modelsSubscriptionResponse.hasEventTypeFilters) &&
Objects.equals(this.name, modelsSubscriptionResponse.name) &&
Objects.equals(this.projectId, modelsSubscriptionResponse.projectId) &&
equalsNullable(this.rateLimitConfig, modelsSubscriptionResponse.rateLimitConfig) &&
Expand All @@ -615,7 +645,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b)

@Override
public int hashCode() {
return Objects.hash(hashCodeNullable(alertConfig), createdAt, hashCodeNullable(deletedAt), deliveryMode, hashCodeNullable(deviceMetadata), hashCodeNullable(endpointMetadata), hashCodeNullable(filterConfig), hashCodeNullable(function), name, projectId, hashCodeNullable(rateLimitConfig), hashCodeNullable(retryConfig), hashCodeNullable(sourceMetadata), type, uid, updatedAt);
return Objects.hash(hashCodeNullable(alertConfig), createdAt, hashCodeNullable(deletedAt), deliveryMode, hashCodeNullable(deviceMetadata), hashCodeNullable(endpointMetadata), hashCodeNullable(filterConfig), hashCodeNullable(function), hasEventTypeFilters, name, projectId, hashCodeNullable(rateLimitConfig), hashCodeNullable(retryConfig), hashCodeNullable(sourceMetadata), type, uid, updatedAt);
}

private static <T> int hashCodeNullable(JsonNullable<T> a) {
Expand All @@ -637,6 +667,7 @@ public String toString() {
sb.append(" endpointMetadata: ").append(toIndentedString(endpointMetadata)).append("\n");
sb.append(" filterConfig: ").append(toIndentedString(filterConfig)).append("\n");
sb.append(" function: ").append(toIndentedString(function)).append("\n");
sb.append(" hasEventTypeFilters: ").append(toIndentedString(hasEventTypeFilters)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n");
sb.append(" rateLimitConfig: ").append(toIndentedString(rateLimitConfig)).append("\n");
Expand Down Expand Up @@ -729,6 +760,11 @@ public String toUrlQueryString(String prefix) {
joiner.add(String.format(java.util.Locale.ROOT, "%sfunction%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getFunction()))));
}

// add `has_event_type_filters` to the URL query string
if (getHasEventTypeFilters() != null) {
joiner.add(String.format(java.util.Locale.ROOT, "%shas_event_type_filters%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getHasEventTypeFilters()))));
}

// add `name` to the URL query string
if (getName() != null) {
joiner.add(String.format(java.util.Locale.ROOT, "%sname%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getName()))));
Expand Down
Loading