Skip to content

Commit

Permalink
[GitHub Bot] Generated java SDK (#96)
Browse files Browse the repository at this point in the history
Co-authored-by: API Team <[email protected]>
  • Loading branch information
mpragosa-te and API Team authored Nov 20, 2024
1 parent 5da7b46 commit 9794a89
Show file tree
Hide file tree
Showing 62 changed files with 748 additions and 50 deletions.
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.26
- API version: 7.0.28

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
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
AccountGroupDetail.JSON_PROPERTY_IS_CURRENT_ACCOUNT_GROUP,
AccountGroupDetail.JSON_PROPERTY_IS_DEFAULT_ACCOUNT_GROUP,
AccountGroupDetail.JSON_PROPERTY_ORGANIZATION_NAME,
AccountGroupDetail.JSON_PROPERTY_ORG_ID,
AccountGroupDetail.JSON_PROPERTY_USERS,
AccountGroupDetail.JSON_PROPERTY_LINKS,
AccountGroupDetail.JSON_PROPERTY_AGENTS,
Expand All @@ -60,6 +61,9 @@ public class AccountGroupDetail {
public static final String JSON_PROPERTY_ORGANIZATION_NAME = "organizationName";
private String organizationName;

public static final String JSON_PROPERTY_ORG_ID = "orgId";
private String orgId;

public static final String JSON_PROPERTY_USERS = "users";
private List<UserAccountGroup> users = new ArrayList<>();

Expand Down Expand Up @@ -181,7 +185,7 @@ public AccountGroupDetail organizationName(String organizationName) {
}

/**
* (Optional) Indicates whether the aid is the default one for the requesting user.
* (Optional) The name of the organization associated with the account group.
* @return organizationName
**/
@jakarta.annotation.Nullable
Expand All @@ -200,6 +204,31 @@ public void setOrganizationName(String organizationName) {
}


public AccountGroupDetail orgId(String orgId) {
this.orgId = orgId;
return this;
}

/**
* (Optional) The ID for the organization associated with the account group.
* @return orgId
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ORG_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public String getOrgId() {
return orgId;
}


@JsonProperty(JSON_PROPERTY_ORG_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOrgId(String orgId) {
this.orgId = orgId;
}


public AccountGroupDetail users(List<UserAccountGroup> users) {
this.users = users;
return this;
Expand Down Expand Up @@ -333,6 +362,7 @@ public boolean equals(Object o) {
Objects.equals(this.isCurrentAccountGroup, accountGroupDetail.isCurrentAccountGroup) &&
Objects.equals(this.isDefaultAccountGroup, accountGroupDetail.isDefaultAccountGroup) &&
Objects.equals(this.organizationName, accountGroupDetail.organizationName) &&
Objects.equals(this.orgId, accountGroupDetail.orgId) &&
Objects.equals(this.users, accountGroupDetail.users) &&
Objects.equals(this.links, accountGroupDetail.links) &&
Objects.equals(this.agents, accountGroupDetail.agents) &&
Expand All @@ -341,7 +371,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(aid, accountGroupName, isCurrentAccountGroup, isDefaultAccountGroup, organizationName, users, links, agents, accountToken);
return Objects.hash(aid, accountGroupName, isCurrentAccountGroup, isDefaultAccountGroup, organizationName, orgId, users, links, agents, accountToken);
}

@Override
Expand All @@ -353,6 +383,7 @@ public String toString() {
sb.append(" isCurrentAccountGroup: ").append(toIndentedString(isCurrentAccountGroup)).append("\n");
sb.append(" isDefaultAccountGroup: ").append(toIndentedString(isDefaultAccountGroup)).append("\n");
sb.append(" organizationName: ").append(toIndentedString(organizationName)).append("\n");
sb.append(" orgId: ").append(toIndentedString(orgId)).append("\n");
sb.append(" users: ").append(toIndentedString(users)).append("\n");
sb.append(" links: ").append(toIndentedString(links)).append("\n");
sb.append(" agents: ").append(toIndentedString(agents)).append("\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
AccountGroupInfo.JSON_PROPERTY_ACCOUNT_GROUP_NAME,
AccountGroupInfo.JSON_PROPERTY_IS_CURRENT_ACCOUNT_GROUP,
AccountGroupInfo.JSON_PROPERTY_IS_DEFAULT_ACCOUNT_GROUP,
AccountGroupInfo.JSON_PROPERTY_ORGANIZATION_NAME
AccountGroupInfo.JSON_PROPERTY_ORGANIZATION_NAME,
AccountGroupInfo.JSON_PROPERTY_ORG_ID
})
@jakarta.annotation.Generated(value = "com.thousandeyes.api.codegen.ThousandeyesJavaGenerator")
public class AccountGroupInfo {
Expand All @@ -50,6 +51,9 @@ public class AccountGroupInfo {
public static final String JSON_PROPERTY_ORGANIZATION_NAME = "organizationName";
private String organizationName;

public static final String JSON_PROPERTY_ORG_ID = "orgId";
private String orgId;

public AccountGroupInfo() {
}

Expand Down Expand Up @@ -159,7 +163,7 @@ public AccountGroupInfo organizationName(String organizationName) {
}

/**
* (Optional) Indicates whether the aid is the default one for the requesting user.
* (Optional) The name of the organization associated with the account group.
* @return organizationName
**/
@jakarta.annotation.Nullable
Expand All @@ -178,6 +182,31 @@ public void setOrganizationName(String organizationName) {
}


public AccountGroupInfo orgId(String orgId) {
this.orgId = orgId;
return this;
}

/**
* (Optional) The ID for the organization associated with the account group.
* @return orgId
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ORG_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public String getOrgId() {
return orgId;
}


@JsonProperty(JSON_PROPERTY_ORG_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOrgId(String orgId) {
this.orgId = orgId;
}


/**
* Return true if this AccountGroupInfo object is equal to o.
*/
Expand All @@ -194,12 +223,13 @@ public boolean equals(Object o) {
Objects.equals(this.accountGroupName, accountGroupInfo.accountGroupName) &&
Objects.equals(this.isCurrentAccountGroup, accountGroupInfo.isCurrentAccountGroup) &&
Objects.equals(this.isDefaultAccountGroup, accountGroupInfo.isDefaultAccountGroup) &&
Objects.equals(this.organizationName, accountGroupInfo.organizationName);
Objects.equals(this.organizationName, accountGroupInfo.organizationName) &&
Objects.equals(this.orgId, accountGroupInfo.orgId);
}

@Override
public int hashCode() {
return Objects.hash(aid, accountGroupName, isCurrentAccountGroup, isDefaultAccountGroup, organizationName);
return Objects.hash(aid, accountGroupName, isCurrentAccountGroup, isDefaultAccountGroup, organizationName, orgId);
}

@Override
Expand All @@ -211,6 +241,7 @@ public String toString() {
sb.append(" isCurrentAccountGroup: ").append(toIndentedString(isCurrentAccountGroup)).append("\n");
sb.append(" isDefaultAccountGroup: ").append(toIndentedString(isDefaultAccountGroup)).append("\n");
sb.append(" organizationName: ").append(toIndentedString(organizationName)).append("\n");
sb.append(" orgId: ").append(toIndentedString(orgId)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
CreatedAccountGroup.JSON_PROPERTY_IS_CURRENT_ACCOUNT_GROUP,
CreatedAccountGroup.JSON_PROPERTY_IS_DEFAULT_ACCOUNT_GROUP,
CreatedAccountGroup.JSON_PROPERTY_ORGANIZATION_NAME,
CreatedAccountGroup.JSON_PROPERTY_ORG_ID,
CreatedAccountGroup.JSON_PROPERTY_USERS,
CreatedAccountGroup.JSON_PROPERTY_LINKS
})
Expand All @@ -57,6 +58,9 @@ public class CreatedAccountGroup {
public static final String JSON_PROPERTY_ORGANIZATION_NAME = "organizationName";
private String organizationName;

public static final String JSON_PROPERTY_ORG_ID = "orgId";
private String orgId;

public static final String JSON_PROPERTY_USERS = "users";
private List<UserAccountGroup> users = new ArrayList<>();

Expand Down Expand Up @@ -172,7 +176,7 @@ public CreatedAccountGroup organizationName(String organizationName) {
}

/**
* (Optional) Indicates whether the aid is the default one for the requesting user.
* (Optional) The name of the organization associated with the account group.
* @return organizationName
**/
@jakarta.annotation.Nullable
Expand All @@ -191,6 +195,31 @@ public void setOrganizationName(String organizationName) {
}


public CreatedAccountGroup orgId(String orgId) {
this.orgId = orgId;
return this;
}

/**
* (Optional) The ID for the organization associated with the account group.
* @return orgId
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ORG_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public String getOrgId() {
return orgId;
}


@JsonProperty(JSON_PROPERTY_ORG_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOrgId(String orgId) {
this.orgId = orgId;
}


public CreatedAccountGroup users(List<UserAccountGroup> users) {
this.users = users;
return this;
Expand Down Expand Up @@ -266,13 +295,14 @@ public boolean equals(Object o) {
Objects.equals(this.isCurrentAccountGroup, createdAccountGroup.isCurrentAccountGroup) &&
Objects.equals(this.isDefaultAccountGroup, createdAccountGroup.isDefaultAccountGroup) &&
Objects.equals(this.organizationName, createdAccountGroup.organizationName) &&
Objects.equals(this.orgId, createdAccountGroup.orgId) &&
Objects.equals(this.users, createdAccountGroup.users) &&
Objects.equals(this.links, createdAccountGroup.links);
}

@Override
public int hashCode() {
return Objects.hash(aid, accountGroupName, isCurrentAccountGroup, isDefaultAccountGroup, organizationName, users, links);
return Objects.hash(aid, accountGroupName, isCurrentAccountGroup, isDefaultAccountGroup, organizationName, orgId, users, links);
}

@Override
Expand All @@ -284,6 +314,7 @@ public String toString() {
sb.append(" isCurrentAccountGroup: ").append(toIndentedString(isCurrentAccountGroup)).append("\n");
sb.append(" isDefaultAccountGroup: ").append(toIndentedString(isDefaultAccountGroup)).append("\n");
sb.append(" organizationName: ").append(toIndentedString(organizationName)).append("\n");
sb.append(" orgId: ").append(toIndentedString(orgId)).append("\n");
sb.append(" users: ").append(toIndentedString(users)).append("\n");
sb.append(" links: ").append(toIndentedString(links)).append("\n");
sb.append("}");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public void createAccountGroupRequestAndResponseDeserializationTest()
"accountGroupName" : "Account A",
"isDefaultAccountGroup" : true,
"aid" : "1234",
"orgId" : "12345",
"users" : [ {
"uid" : "235",
"lastLogin" : "2022-07-17T22:00:54Z",
Expand Down Expand Up @@ -233,6 +234,7 @@ public void getAccountGroupRequestAndResponseDeserializationTest()
"isDefaultAccountGroup" : true,
"accountToken" : "6j052y4vfgyuhefghue",
"aid" : "1234",
"orgId" : "12345",
"users" : [ {
"uid" : "235",
"lastLogin" : "2022-07-17T22:00:54Z",
Expand Down Expand Up @@ -476,13 +478,15 @@ public void getAccountGroupsRequestAndResponseDeserializationTest()
"organizationName" : "organizationName",
"accountGroupName" : "Account A",
"isDefaultAccountGroup" : true,
"aid" : "1234"
"aid" : "1234",
"orgId" : "12345"
}, {
"isCurrentAccountGroup" : true,
"organizationName" : "organizationName",
"accountGroupName" : "Account A",
"isDefaultAccountGroup" : true,
"aid" : "1234"
"aid" : "1234",
"orgId" : "12345"
} ]
}
""";
Expand Down Expand Up @@ -548,6 +552,7 @@ public void updateAccountGroupRequestAndResponseDeserializationTest()
"isDefaultAccountGroup" : true,
"accountToken" : "6j052y4vfgyuhefghue",
"aid" : "1234",
"orgId" : "12345",
"users" : [ {
"uid" : "235",
"lastLogin" : "2022-07-17T22:00:54Z",
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.26
- API version: 7.0.28


## 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.26
- API version: 7.0.28

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

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

BGP Monitors API

- API version: 7.0.26
- API version: 7.0.28


Retrieve information about BGP monitors available to your ThousandEyes account. ThousandEyes ingests BGP routing data from dozens of global BGP collectors and automatically integrates that visibility as a configurable layer under service, network, and path visualization layers.
Expand Down
2 changes: 1 addition & 1 deletion credentials/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Credentials API

- API version: 7.0.26
- API version: 7.0.28

Manage credentials for transaction tests using the Credentials API.

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

Dashboards API

- API version: 7.0.26
- API version: 7.0.28

Manage ThousandEyes Dashboards.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ public enum ApiWidgetFixedYScalePrefix {

GBPS("Gbps"),

KBITPS("Kbitps"),

MBITPS("Mbitps"),

GBITPS("Gbitps"),

KPPS("Kpps"),

MPPS("Mpps"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -464,14 +464,22 @@ public enum DashboardMetric {

CLOUD_NATIVE_MONITORING_ACCEPTED_INBOUND_THROUGHPUT("CLOUD_NATIVE_MONITORING-ACCEPTED_INBOUND_THROUGHPUT"),

CLOUD_NATIVE_MONITORING_ACCEPTED_INTERNAL_THROUGHPUT("CLOUD_NATIVE_MONITORING-ACCEPTED_INTERNAL_THROUGHPUT"),

CLOUD_NATIVE_MONITORING_REJECTED_TOTAL_THROUGHPUT("CLOUD_NATIVE_MONITORING-REJECTED_TOTAL_THROUGHPUT"),

CLOUD_NATIVE_MONITORING_REJECTED_OUTBOUND_THROUGHPUT("CLOUD_NATIVE_MONITORING-REJECTED_OUTBOUND_THROUGHPUT"),

CLOUD_NATIVE_MONITORING_REJECTED_INBOUND_THROUGHPUT("CLOUD_NATIVE_MONITORING-REJECTED_INBOUND_THROUGHPUT"),

CLOUD_NATIVE_MONITORING_REJECTED_INTERNAL_THROUGHPUT("CLOUD_NATIVE_MONITORING-REJECTED_INTERNAL_THROUGHPUT"),

CLOUD_NATIVE_MONITORING_TOTAL_CONNECTION_RATE("CLOUD_NATIVE_MONITORING-TOTAL_CONNECTION_RATE"),

CLOUD_NATIVE_MONITORING_CONNECTION_RATE("CLOUD_NATIVE_MONITORING-CONNECTION_RATE"),

CLOUD_NATIVE_MONITORING_INTERNAL_CONNECTION_RATE("CLOUD_NATIVE_MONITORING-INTERNAL_CONNECTION_RATE"),

CLOUD_NATIVE_MONITORING_ALL_EVENTS("CLOUD_NATIVE_MONITORING-ALL_EVENTS"),

CLOUD_NATIVE_MONITORING_CONFIGURATION_CHANGE_EVENTS("CLOUD_NATIVE_MONITORING-CONFIGURATION_CHANGE_EVENTS"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ public enum MetricGroup {

APPDYNAMICS_SERVICE_HEALTH("APPDYNAMICS_SERVICE_HEALTH"),

CLOUD_NATIVE_MONITORING_TRAFFIC_FLOW("CLOUD_NATIVE_MONITORING-TRAFFIC_FLOW"),

CLOUD_NATIVE_MONITORING_EVENTS("CLOUD_NATIVE_MONITORING-EVENTS"),

UNKNOWN("unknown");

private String value;
Expand Down
Loading

0 comments on commit 9794a89

Please sign in to comment.