-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(specs): add notification settings to tasks [skip-bc] (generated)
algolia/api-clients-automation#4297 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
- Loading branch information
1 parent
4c834ab
commit 9dabb5b
Showing
8 changed files
with
400 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
algoliasearch/src/main/java/com/algolia/model/ingestion/EmailNotifications.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost | ||
// - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. | ||
|
||
package com.algolia.model.ingestion; | ||
|
||
import com.fasterxml.jackson.annotation.*; | ||
import com.fasterxml.jackson.databind.annotation.*; | ||
import java.util.Objects; | ||
|
||
/** EmailNotifications */ | ||
public class EmailNotifications { | ||
|
||
@JsonProperty("enabled") | ||
private Boolean enabled; | ||
|
||
public EmailNotifications setEnabled(Boolean enabled) { | ||
this.enabled = enabled; | ||
return this; | ||
} | ||
|
||
/** | ||
* Whether to send email notifications, note that this doesn't prevent the task from being | ||
* blocked. | ||
*/ | ||
@javax.annotation.Nullable | ||
public Boolean getEnabled() { | ||
return enabled; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
EmailNotifications emailNotifications = (EmailNotifications) o; | ||
return Objects.equals(this.enabled, emailNotifications.enabled); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(enabled); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class EmailNotifications {\n"); | ||
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); | ||
sb.append("}"); | ||
return sb.toString(); | ||
} | ||
|
||
/** | ||
* Convert the given object to string with each line indented by 4 spaces (except the first line). | ||
*/ | ||
private String toIndentedString(Object o) { | ||
if (o == null) { | ||
return "null"; | ||
} | ||
return o.toString().replace("\n", "\n "); | ||
} | ||
} |
62 changes: 62 additions & 0 deletions
62
algoliasearch/src/main/java/com/algolia/model/ingestion/Notifications.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost | ||
// - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. | ||
|
||
package com.algolia.model.ingestion; | ||
|
||
import com.fasterxml.jackson.annotation.*; | ||
import com.fasterxml.jackson.databind.annotation.*; | ||
import java.util.Objects; | ||
|
||
/** Notifications settings for a task. */ | ||
public class Notifications { | ||
|
||
@JsonProperty("email") | ||
private EmailNotifications email; | ||
|
||
public Notifications setEmail(EmailNotifications email) { | ||
this.email = email; | ||
return this; | ||
} | ||
|
||
/** Get email */ | ||
@javax.annotation.Nonnull | ||
public EmailNotifications getEmail() { | ||
return email; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
Notifications notifications = (Notifications) o; | ||
return Objects.equals(this.email, notifications.email); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(email); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class Notifications {\n"); | ||
sb.append(" email: ").append(toIndentedString(email)).append("\n"); | ||
sb.append("}"); | ||
return sb.toString(); | ||
} | ||
|
||
/** | ||
* Convert the given object to string with each line indented by 4 spaces (except the first line). | ||
*/ | ||
private String toIndentedString(Object o) { | ||
if (o == null) { | ||
return "null"; | ||
} | ||
return o.toString().replace("\n", "\n "); | ||
} | ||
} |
65 changes: 65 additions & 0 deletions
65
algoliasearch/src/main/java/com/algolia/model/ingestion/Policies.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost | ||
// - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. | ||
|
||
package com.algolia.model.ingestion; | ||
|
||
import com.fasterxml.jackson.annotation.*; | ||
import com.fasterxml.jackson.databind.annotation.*; | ||
import java.util.Objects; | ||
|
||
/** Set of rules for a task. */ | ||
public class Policies { | ||
|
||
@JsonProperty("criticalThreshold") | ||
private Integer criticalThreshold; | ||
|
||
public Policies setCriticalThreshold(Integer criticalThreshold) { | ||
this.criticalThreshold = criticalThreshold; | ||
return this; | ||
} | ||
|
||
/** | ||
* The number of critical failures in a row before blocking the task and sending a notification. | ||
* minimum: 1 maximum: 10 | ||
*/ | ||
@javax.annotation.Nullable | ||
public Integer getCriticalThreshold() { | ||
return criticalThreshold; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
Policies policies = (Policies) o; | ||
return Objects.equals(this.criticalThreshold, policies.criticalThreshold); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(criticalThreshold); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class Policies {\n"); | ||
sb.append(" criticalThreshold: ").append(toIndentedString(criticalThreshold)).append("\n"); | ||
sb.append("}"); | ||
return sb.toString(); | ||
} | ||
|
||
/** | ||
* Convert the given object to string with each line indented by 4 spaces (except the first line). | ||
*/ | ||
private String toIndentedString(Object o) { | ||
if (o == null) { | ||
return "null"; | ||
} | ||
return o.toString().replace("\n", "\n "); | ||
} | ||
} |
Oops, something went wrong.