Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GitHub Bot] Generated java SDK #104

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
2 changes: 1 addition & 1 deletion administrative/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Administrative API

- API version: 7.0.35
- API version: 7.0.36

Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API.
This API provides the following operations to manage your organization:
Expand Down
2 changes: 1 addition & 1 deletion agents/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Agents API

- API version: 7.0.35
- API version: 7.0.36


## Overview
Expand Down
2 changes: 1 addition & 1 deletion alerts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Alerts API

- API version: 7.0.35
- API version: 7.0.36

You can manage the following alert functionalities on the ThousandEyes platform using the Alerts API:

Expand Down
126 changes: 123 additions & 3 deletions alerts/src/main/java/com/thousandeyes/sdk/alerts/model/BaseRule.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
import com.thousandeyes.sdk.alerts.model.AlertType;
import com.thousandeyes.sdk.alerts.model.SensitivityLevel;
import com.thousandeyes.sdk.alerts.model.Severity;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


Expand All @@ -48,7 +51,10 @@
BaseRule.JSON_PROPERTY_ROUNDS_VIOLATING_REQUIRED,
BaseRule.JSON_PROPERTY_INCLUDE_COVERED_PREFIXES,
BaseRule.JSON_PROPERTY_SENSITIVITY_LEVEL,
BaseRule.JSON_PROPERTY_SEVERITY
BaseRule.JSON_PROPERTY_SEVERITY,
BaseRule.JSON_PROPERTY_ENDPOINT_AGENT_IDS,
BaseRule.JSON_PROPERTY_ENDPOINT_LABEL_IDS,
BaseRule.JSON_PROPERTY_VISITED_SITES_FILTER
})
@jakarta.annotation.Generated(value = "com.thousandeyes.api.codegen.ThousandeyesJavaGenerator")
public class BaseRule {
Expand Down Expand Up @@ -100,6 +106,15 @@ public class BaseRule {
public static final String JSON_PROPERTY_SEVERITY = "severity";
private Severity severity;

public static final String JSON_PROPERTY_ENDPOINT_AGENT_IDS = "endpointAgentIds";
private List<String> endpointAgentIds = new ArrayList<>();

public static final String JSON_PROPERTY_ENDPOINT_LABEL_IDS = "endpointLabelIds";
private List<String> endpointLabelIds = new ArrayList<>();

public static final String JSON_PROPERTY_VISITED_SITES_FILTER = "visitedSitesFilter";
private List<String> visitedSitesFilter = new ArrayList<>();

public BaseRule() {
}

Expand Down Expand Up @@ -501,6 +516,105 @@ public void setSeverity(Severity severity) {
}


public BaseRule endpointAgentIds(List<String> endpointAgentIds) {
this.endpointAgentIds = endpointAgentIds;
return this;
}

public BaseRule addEndpointAgentIdsItem(String endpointAgentIdsItem) {
if (this.endpointAgentIds == null) {
this.endpointAgentIds = new ArrayList<>();
}
this.endpointAgentIds.add(endpointAgentIdsItem);
return this;
}

/**
* An array of endpoint agent IDs associated with the rule (get &#x60;id&#x60; from &#x60;/endpoint/agents&#x60; API). This is applicable when &#x60;alertGroupType&#x60; is &#x60;browser-session&#x60;.
* @return endpointAgentIds
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ENDPOINT_AGENT_IDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public List<String> getEndpointAgentIds() {
return endpointAgentIds;
}


@JsonProperty(JSON_PROPERTY_ENDPOINT_AGENT_IDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEndpointAgentIds(List<String> endpointAgentIds) {
this.endpointAgentIds = endpointAgentIds;
}


public BaseRule endpointLabelIds(List<String> endpointLabelIds) {
this.endpointLabelIds = endpointLabelIds;
return this;
}

public BaseRule addEndpointLabelIdsItem(String endpointLabelIdsItem) {
if (this.endpointLabelIds == null) {
this.endpointLabelIds = new ArrayList<>();
}
this.endpointLabelIds.add(endpointLabelIdsItem);
return this;
}

/**
* An array of label IDs used to assign specific Endpoint Agents to the test (get &#x60;id&#x60; from &#x60;/endpoint/labels&#x60;). This is applicable when &#x60;alertGroupType&#x60; is &#x60;browser-session&#x60;.
* @return endpointLabelIds
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ENDPOINT_LABEL_IDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public List<String> getEndpointLabelIds() {
return endpointLabelIds;
}


@JsonProperty(JSON_PROPERTY_ENDPOINT_LABEL_IDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEndpointLabelIds(List<String> endpointLabelIds) {
this.endpointLabelIds = endpointLabelIds;
}


public BaseRule visitedSitesFilter(List<String> visitedSitesFilter) {
this.visitedSitesFilter = visitedSitesFilter;
return this;
}

public BaseRule addVisitedSitesFilterItem(String visitedSitesFilterItem) {
if (this.visitedSitesFilter == null) {
this.visitedSitesFilter = new ArrayList<>();
}
this.visitedSitesFilter.add(visitedSitesFilterItem);
return this;
}

/**
* A list of website domains visited during the session. This is applicable when &#x60;alertGroupType&#x60; is &#x60;browser-session&#x60;.
* @return visitedSitesFilter
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_VISITED_SITES_FILTER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public List<String> getVisitedSitesFilter() {
return visitedSitesFilter;
}


@JsonProperty(JSON_PROPERTY_VISITED_SITES_FILTER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setVisitedSitesFilter(List<String> visitedSitesFilter) {
this.visitedSitesFilter = visitedSitesFilter;
}


/**
* Return true if this BaseRule object is equal to o.
*/
Expand Down Expand Up @@ -528,12 +642,15 @@ public boolean equals(Object o) {
Objects.equals(this.roundsViolatingRequired, baseRule.roundsViolatingRequired) &&
Objects.equals(this.includeCoveredPrefixes, baseRule.includeCoveredPrefixes) &&
Objects.equals(this.sensitivityLevel, baseRule.sensitivityLevel) &&
Objects.equals(this.severity, baseRule.severity);
Objects.equals(this.severity, baseRule.severity) &&
Objects.equals(this.endpointAgentIds, baseRule.endpointAgentIds) &&
Objects.equals(this.endpointLabelIds, baseRule.endpointLabelIds) &&
Objects.equals(this.visitedSitesFilter, baseRule.visitedSitesFilter);
}

@Override
public int hashCode() {
return Objects.hash(ruleId, ruleName, expression, direction, notifyOnClear, isDefault, alertType, alertGroupType, minimumSources, minimumSourcesPct, roundsViolatingMode, roundsViolatingOutOf, roundsViolatingRequired, includeCoveredPrefixes, sensitivityLevel, severity);
return Objects.hash(ruleId, ruleName, expression, direction, notifyOnClear, isDefault, alertType, alertGroupType, minimumSources, minimumSourcesPct, roundsViolatingMode, roundsViolatingOutOf, roundsViolatingRequired, includeCoveredPrefixes, sensitivityLevel, severity, endpointAgentIds, endpointLabelIds, visitedSitesFilter);
}

@Override
Expand All @@ -556,6 +673,9 @@ public String toString() {
sb.append(" includeCoveredPrefixes: ").append(toIndentedString(includeCoveredPrefixes)).append("\n");
sb.append(" sensitivityLevel: ").append(toIndentedString(sensitivityLevel)).append("\n");
sb.append(" severity: ").append(toIndentedString(severity)).append("\n");
sb.append(" endpointAgentIds: ").append(toIndentedString(endpointAgentIds)).append("\n");
sb.append(" endpointLabelIds: ").append(toIndentedString(endpointLabelIds)).append("\n");
sb.append(" visitedSitesFilter: ").append(toIndentedString(visitedSitesFilter)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down
119 changes: 118 additions & 1 deletion alerts/src/main/java/com/thousandeyes/sdk/alerts/model/Rule.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
Rule.JSON_PROPERTY_INCLUDE_COVERED_PREFIXES,
Rule.JSON_PROPERTY_SENSITIVITY_LEVEL,
Rule.JSON_PROPERTY_SEVERITY,
Rule.JSON_PROPERTY_ENDPOINT_AGENT_IDS,
Rule.JSON_PROPERTY_ENDPOINT_LABEL_IDS,
Rule.JSON_PROPERTY_VISITED_SITES_FILTER,
Rule.JSON_PROPERTY_NOTIFICATIONS,
Rule.JSON_PROPERTY_TEST_IDS,
Rule.JSON_PROPERTY_LINKS
Expand Down Expand Up @@ -108,6 +111,15 @@ public class Rule {
public static final String JSON_PROPERTY_SEVERITY = "severity";
private Severity severity;

public static final String JSON_PROPERTY_ENDPOINT_AGENT_IDS = "endpointAgentIds";
private List<String> endpointAgentIds = new ArrayList<>();

public static final String JSON_PROPERTY_ENDPOINT_LABEL_IDS = "endpointLabelIds";
private List<String> endpointLabelIds = new ArrayList<>();

public static final String JSON_PROPERTY_VISITED_SITES_FILTER = "visitedSitesFilter";
private List<String> visitedSitesFilter = new ArrayList<>();

public static final String JSON_PROPERTY_NOTIFICATIONS = "notifications";
private AlertNotification notifications;

Expand Down Expand Up @@ -518,6 +530,105 @@ public void setSeverity(Severity severity) {
}


public Rule endpointAgentIds(List<String> endpointAgentIds) {
this.endpointAgentIds = endpointAgentIds;
return this;
}

public Rule addEndpointAgentIdsItem(String endpointAgentIdsItem) {
if (this.endpointAgentIds == null) {
this.endpointAgentIds = new ArrayList<>();
}
this.endpointAgentIds.add(endpointAgentIdsItem);
return this;
}

/**
* An array of endpoint agent IDs associated with the rule (get &#x60;id&#x60; from &#x60;/endpoint/agents&#x60; API). This is applicable when &#x60;alertGroupType&#x60; is &#x60;browser-session&#x60;.
* @return endpointAgentIds
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ENDPOINT_AGENT_IDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public List<String> getEndpointAgentIds() {
return endpointAgentIds;
}


@JsonProperty(JSON_PROPERTY_ENDPOINT_AGENT_IDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEndpointAgentIds(List<String> endpointAgentIds) {
this.endpointAgentIds = endpointAgentIds;
}


public Rule endpointLabelIds(List<String> endpointLabelIds) {
this.endpointLabelIds = endpointLabelIds;
return this;
}

public Rule addEndpointLabelIdsItem(String endpointLabelIdsItem) {
if (this.endpointLabelIds == null) {
this.endpointLabelIds = new ArrayList<>();
}
this.endpointLabelIds.add(endpointLabelIdsItem);
return this;
}

/**
* An array of label IDs used to assign specific Endpoint Agents to the test (get &#x60;id&#x60; from &#x60;/endpoint/labels&#x60;). This is applicable when &#x60;alertGroupType&#x60; is &#x60;browser-session&#x60;.
* @return endpointLabelIds
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ENDPOINT_LABEL_IDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public List<String> getEndpointLabelIds() {
return endpointLabelIds;
}


@JsonProperty(JSON_PROPERTY_ENDPOINT_LABEL_IDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEndpointLabelIds(List<String> endpointLabelIds) {
this.endpointLabelIds = endpointLabelIds;
}


public Rule visitedSitesFilter(List<String> visitedSitesFilter) {
this.visitedSitesFilter = visitedSitesFilter;
return this;
}

public Rule addVisitedSitesFilterItem(String visitedSitesFilterItem) {
if (this.visitedSitesFilter == null) {
this.visitedSitesFilter = new ArrayList<>();
}
this.visitedSitesFilter.add(visitedSitesFilterItem);
return this;
}

/**
* A list of website domains visited during the session. This is applicable when &#x60;alertGroupType&#x60; is &#x60;browser-session&#x60;.
* @return visitedSitesFilter
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_VISITED_SITES_FILTER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public List<String> getVisitedSitesFilter() {
return visitedSitesFilter;
}


@JsonProperty(JSON_PROPERTY_VISITED_SITES_FILTER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setVisitedSitesFilter(List<String> visitedSitesFilter) {
this.visitedSitesFilter = visitedSitesFilter;
}


public Rule notifications(AlertNotification notifications) {
this.notifications = notifications;
return this;
Expand Down Expand Up @@ -629,14 +740,17 @@ public boolean equals(Object o) {
Objects.equals(this.includeCoveredPrefixes, rule.includeCoveredPrefixes) &&
Objects.equals(this.sensitivityLevel, rule.sensitivityLevel) &&
Objects.equals(this.severity, rule.severity) &&
Objects.equals(this.endpointAgentIds, rule.endpointAgentIds) &&
Objects.equals(this.endpointLabelIds, rule.endpointLabelIds) &&
Objects.equals(this.visitedSitesFilter, rule.visitedSitesFilter) &&
Objects.equals(this.notifications, rule.notifications) &&
Objects.equals(this.testIds, rule.testIds) &&
Objects.equals(this.links, rule.links);
}

@Override
public int hashCode() {
return Objects.hash(ruleId, ruleName, expression, direction, notifyOnClear, isDefault, alertType, alertGroupType, minimumSources, minimumSourcesPct, roundsViolatingMode, roundsViolatingOutOf, roundsViolatingRequired, includeCoveredPrefixes, sensitivityLevel, severity, notifications, testIds, links);
return Objects.hash(ruleId, ruleName, expression, direction, notifyOnClear, isDefault, alertType, alertGroupType, minimumSources, minimumSourcesPct, roundsViolatingMode, roundsViolatingOutOf, roundsViolatingRequired, includeCoveredPrefixes, sensitivityLevel, severity, endpointAgentIds, endpointLabelIds, visitedSitesFilter, notifications, testIds, links);
}

@Override
Expand All @@ -659,6 +773,9 @@ public String toString() {
sb.append(" includeCoveredPrefixes: ").append(toIndentedString(includeCoveredPrefixes)).append("\n");
sb.append(" sensitivityLevel: ").append(toIndentedString(sensitivityLevel)).append("\n");
sb.append(" severity: ").append(toIndentedString(severity)).append("\n");
sb.append(" endpointAgentIds: ").append(toIndentedString(endpointAgentIds)).append("\n");
sb.append(" endpointLabelIds: ").append(toIndentedString(endpointLabelIds)).append("\n");
sb.append(" visitedSitesFilter: ").append(toIndentedString(visitedSitesFilter)).append("\n");
sb.append(" notifications: ").append(toIndentedString(notifications)).append("\n");
sb.append(" testIds: ").append(toIndentedString(testIds)).append("\n");
sb.append(" links: ").append(toIndentedString(links)).append("\n");
Expand Down
Loading