2
0

feat: 更新omada api

This commit is contained in:
caiyuchao
2025-06-04 15:17:00 +08:00
parent 3798930698
commit 73a9d60d2a
38 changed files with 3273 additions and 102 deletions

View File

@@ -0,0 +1,64 @@
package org.wfc.omada.api.accesscontrol;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.wfc.omada.api.accesscontrol.model.OperationResponsePortalAccessControlOpenApiVo;
import org.wfc.omada.api.accesscontrol.model.PortalAccessControlOpenApiVo;
import org.wfc.omada.config.FeignConfig;
import javax.validation.Valid;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T18:17:10.834815900+08:00[Asia/Shanghai]")
@Validated
@Api(value = "OmadaAccessControl", description = "the OmadaAccessControl API")
@FeignClient(name="OmadaAccessControlApi", url = "${omada.omada-url}", configuration = FeignConfig.class)
public interface OmadaAccessControlApi {
/**
* GET /openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/access-control : Get access control setting
* Get access control setting of the site with the given omadacId and siteId.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33004 - Operation failed because other operations (site copying, restoring, template synchronizing, etc.) are being performed on this site. Please wait and try again later.
*
* @param omadacId Omada ID (required)
* @param siteId Site ID (required)
* @param authorization (optional, default to "Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw")
* @return OK (status code 200)
*/
@ApiOperation(value = "Get access control setting", nickname = "getAccessControl", notes = "Get access control setting of the site with the given omadacId and siteId.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33004 - Operation failed because other operations (site copying, restoring, template synchronizing, etc.) are being performed on this site. Please wait and try again later.", response = OperationResponsePortalAccessControlOpenApiVo.class, tags={ "Omada/Access Control","Access Control", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = OperationResponsePortalAccessControlOpenApiVo.class) })
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/access-control",
produces = "*/*",
method = RequestMethod.GET)
ResponseEntity<OperationResponsePortalAccessControlOpenApiVo> getAccessControl(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId);
/**
* PATCH /openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/access-control : Modify access control setting
* Modify access control setting of the site. When modifying, the full configuration parameters should be passed in&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Site Settings Manager Modify&lt;br/&gt;&lt;br/&gt;The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): &lt;br/&gt;-33004 - Operation failed because other operations (site copying, restoring, template synchronizing, etc.) are being performed on this site. Please wait and try again later.
*
* @param omadacId Omada ID (required)
* @param siteId Site ID (required)
* @param authorization (optional, default to &quot;Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw&quot;)
* @param portalAccessControlOpenApiVo (optional)
* @return OK (status code 200)
*/
@ApiOperation(value = "Modify access control setting", nickname = "modifyAccessControl", notes = "Modify access control setting of the site. When modifying, the full configuration parameters should be passed in<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33004 - Operation failed because other operations (site copying, restoring, template synchronizing, etc.) are being performed on this site. Please wait and try again later.", response = OperationResponsePortalAccessControlOpenApiVo.class, tags={ "Omada/Access Control","Access Control", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = OperationResponsePortalAccessControlOpenApiVo.class) })
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/access-control",
produces = "*/*",
consumes = "application/json",
method = RequestMethod.PATCH)
ResponseEntity<OperationResponsePortalAccessControlOpenApiVo> modifyAccessControl(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId, @Valid @RequestBody(required = false) PortalAccessControlOpenApiVo portalAccessControlOpenApiVo);
}

View File

@@ -0,0 +1,156 @@
package org.wfc.omada.api.accesscontrol.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.Objects;
/**
* List of Free-Authentication Client Policy
*/
@ApiModel(description = "List of Free-Authentication Client Policy")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T18:17:18.126730900+08:00[Asia/Shanghai]")
public class FreeAuthClientPolicyOpenApiVo {
@JsonProperty("idInt")
private Integer idInt;
@JsonProperty("type")
private Integer type;
@JsonProperty("clientIp")
private String clientIp;
@JsonProperty("clientMac")
private String clientMac;
public FreeAuthClientPolicyOpenApiVo idInt(Integer idInt) {
this.idInt = idInt;
return this;
}
/**
* Entry ID of the policy. Except for newly added policies, this parameter should be retained
* @return idInt
*/
@ApiModelProperty(value = "Entry ID of the policy. Except for newly added policies, this parameter should be retained")
public Integer getIdInt() {
return idInt;
}
public void setIdInt(Integer idInt) {
this.idInt = idInt;
}
public FreeAuthClientPolicyOpenApiVo type(Integer type) {
this.type = type;
return this;
}
/**
* Type of the policy. It should be a value as follows: 3: Free auth client IP, and parameter [clientIp] is needed. 4: Free auth client MAC, and parameter [clientMac] is needed
* @return type
*/
@ApiModelProperty(required = true, value = "Type of the policy. It should be a value as follows: 3: Free auth client IP, and parameter [clientIp] is needed. 4: Free auth client MAC, and parameter [clientMac] is needed")
@NotNull
public Integer getType() {
return type;
}
public void setType(Integer type) {
this.type = type;
}
public FreeAuthClientPolicyOpenApiVo clientIp(String clientIp) {
this.clientIp = clientIp;
return this;
}
/**
* Free auth client IP Address
* @return clientIp
*/
@ApiModelProperty(value = "Free auth client IP Address")
@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b")
public String getClientIp() {
return clientIp;
}
public void setClientIp(String clientIp) {
this.clientIp = clientIp;
}
public FreeAuthClientPolicyOpenApiVo clientMac(String clientMac) {
this.clientMac = clientMac;
return this;
}
/**
* Free auth client MAC Address, for example: AA-AA-AA-AA-AA-AA
* @return clientMac
*/
@ApiModelProperty(value = "Free auth client MAC Address, for example: AA-AA-AA-AA-AA-AA")
@Pattern(regexp="[A-Fa-f0-9]{1}[02468aceACE]{1}([-:][A-Fa-f0-9]{2}){5}")
public String getClientMac() {
return clientMac;
}
public void setClientMac(String clientMac) {
this.clientMac = clientMac;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
FreeAuthClientPolicyOpenApiVo freeAuthClientPolicyOpenApiVo = (FreeAuthClientPolicyOpenApiVo) o;
return Objects.equals(this.idInt, freeAuthClientPolicyOpenApiVo.idInt) &&
Objects.equals(this.type, freeAuthClientPolicyOpenApiVo.type) &&
Objects.equals(this.clientIp, freeAuthClientPolicyOpenApiVo.clientIp) &&
Objects.equals(this.clientMac, freeAuthClientPolicyOpenApiVo.clientMac);
}
@Override
public int hashCode() {
return Objects.hash(idInt, type, clientIp, clientMac);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class FreeAuthClientPolicyOpenApiVo {\n");
sb.append(" idInt: ").append(toIndentedString(idInt)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" clientIp: ").append(toIndentedString(clientIp)).append("\n");
sb.append(" clientMac: ").append(toIndentedString(clientMac)).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 ");
}
}

View File

@@ -0,0 +1,128 @@
package org.wfc.omada.api.accesscontrol.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.Valid;
import java.util.Objects;
/**
* OperationResponsePortalAccessControlOpenApiVo
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T18:17:18.126730900+08:00[Asia/Shanghai]")
public class OperationResponsePortalAccessControlOpenApiVo {
@JsonProperty("errorCode")
private Integer errorCode;
@JsonProperty("msg")
private String msg;
@JsonProperty("result")
private PortalAccessControlOpenApiVo result;
public OperationResponsePortalAccessControlOpenApiVo errorCode(Integer errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* Get errorCode
* @return errorCode
*/
@ApiModelProperty(value = "")
public Integer getErrorCode() {
return errorCode;
}
public void setErrorCode(Integer errorCode) {
this.errorCode = errorCode;
}
public OperationResponsePortalAccessControlOpenApiVo msg(String msg) {
this.msg = msg;
return this;
}
/**
* Get msg
* @return msg
*/
@ApiModelProperty(value = "")
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public OperationResponsePortalAccessControlOpenApiVo result(PortalAccessControlOpenApiVo result) {
this.result = result;
return this;
}
/**
* Get result
* @return result
*/
@ApiModelProperty(value = "")
@Valid
public PortalAccessControlOpenApiVo getResult() {
return result;
}
public void setResult(PortalAccessControlOpenApiVo result) {
this.result = result;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
OperationResponsePortalAccessControlOpenApiVo operationResponsePortalAccessControlOpenApiVo = (OperationResponsePortalAccessControlOpenApiVo) o;
return Objects.equals(this.errorCode, operationResponsePortalAccessControlOpenApiVo.errorCode) &&
Objects.equals(this.msg, operationResponsePortalAccessControlOpenApiVo.msg) &&
Objects.equals(this.result, operationResponsePortalAccessControlOpenApiVo.result);
}
@Override
public int hashCode() {
return Objects.hash(errorCode, msg, result);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class OperationResponsePortalAccessControlOpenApiVo {\n");
sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
sb.append(" msg: ").append(toIndentedString(msg)).append("\n");
sb.append(" result: ").append(toIndentedString(result)).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 ");
}
}

View File

@@ -0,0 +1,177 @@
package org.wfc.omada.api.accesscontrol.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* PortalAccessControlOpenApiVo
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T18:17:18.126730900+08:00[Asia/Shanghai]")
public class PortalAccessControlOpenApiVo {
@JsonProperty("preAuthAccessEnable")
private Boolean preAuthAccessEnable;
@JsonProperty("preAuthAccessPolicies")
@Valid
private List<PreAuthAccessPolicyOpenApiVo> preAuthAccessPolicies = null;
@JsonProperty("freeAuthClientEnable")
private Boolean freeAuthClientEnable;
@JsonProperty("freeAuthClientPolicies")
@Valid
private List<FreeAuthClientPolicyOpenApiVo> freeAuthClientPolicies = null;
public PortalAccessControlOpenApiVo preAuthAccessEnable(Boolean preAuthAccessEnable) {
this.preAuthAccessEnable = preAuthAccessEnable;
return this;
}
/**
* Whether to enable Pre-Authentication Access. If parameter [preAuthAccessEnable] is true, parameter [preAuthAccessPolicies] is needed
* @return preAuthAccessEnable
*/
@ApiModelProperty(required = true, value = "Whether to enable Pre-Authentication Access. If parameter [preAuthAccessEnable] is true, parameter [preAuthAccessPolicies] is needed")
@NotNull
public Boolean getPreAuthAccessEnable() {
return preAuthAccessEnable;
}
public void setPreAuthAccessEnable(Boolean preAuthAccessEnable) {
this.preAuthAccessEnable = preAuthAccessEnable;
}
public PortalAccessControlOpenApiVo preAuthAccessPolicies(List<PreAuthAccessPolicyOpenApiVo> preAuthAccessPolicies) {
this.preAuthAccessPolicies = preAuthAccessPolicies;
return this;
}
public PortalAccessControlOpenApiVo addPreAuthAccessPoliciesItem(PreAuthAccessPolicyOpenApiVo preAuthAccessPoliciesItem) {
if (this.preAuthAccessPolicies == null) {
this.preAuthAccessPolicies = new ArrayList<>();
}
this.preAuthAccessPolicies.add(preAuthAccessPoliciesItem);
return this;
}
/**
* List of Pre-Authentication Access Policy
* @return preAuthAccessPolicies
*/
@ApiModelProperty(value = "List of Pre-Authentication Access Policy")
@Valid
public List<PreAuthAccessPolicyOpenApiVo> getPreAuthAccessPolicies() {
return preAuthAccessPolicies;
}
public void setPreAuthAccessPolicies(List<PreAuthAccessPolicyOpenApiVo> preAuthAccessPolicies) {
this.preAuthAccessPolicies = preAuthAccessPolicies;
}
public PortalAccessControlOpenApiVo freeAuthClientEnable(Boolean freeAuthClientEnable) {
this.freeAuthClientEnable = freeAuthClientEnable;
return this;
}
/**
* Whether to enable Free-Authentication Client. If parameter [freeAuthClientEnable] is true, parameter [freeAuthClientPolicies] is needed
* @return freeAuthClientEnable
*/
@ApiModelProperty(required = true, value = "Whether to enable Free-Authentication Client. If parameter [freeAuthClientEnable] is true, parameter [freeAuthClientPolicies] is needed")
@NotNull
public Boolean getFreeAuthClientEnable() {
return freeAuthClientEnable;
}
public void setFreeAuthClientEnable(Boolean freeAuthClientEnable) {
this.freeAuthClientEnable = freeAuthClientEnable;
}
public PortalAccessControlOpenApiVo freeAuthClientPolicies(List<FreeAuthClientPolicyOpenApiVo> freeAuthClientPolicies) {
this.freeAuthClientPolicies = freeAuthClientPolicies;
return this;
}
public PortalAccessControlOpenApiVo addFreeAuthClientPoliciesItem(FreeAuthClientPolicyOpenApiVo freeAuthClientPoliciesItem) {
if (this.freeAuthClientPolicies == null) {
this.freeAuthClientPolicies = new ArrayList<>();
}
this.freeAuthClientPolicies.add(freeAuthClientPoliciesItem);
return this;
}
/**
* List of Free-Authentication Client Policy
* @return freeAuthClientPolicies
*/
@ApiModelProperty(value = "List of Free-Authentication Client Policy")
@Valid
public List<FreeAuthClientPolicyOpenApiVo> getFreeAuthClientPolicies() {
return freeAuthClientPolicies;
}
public void setFreeAuthClientPolicies(List<FreeAuthClientPolicyOpenApiVo> freeAuthClientPolicies) {
this.freeAuthClientPolicies = freeAuthClientPolicies;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PortalAccessControlOpenApiVo portalAccessControlOpenApiVo = (PortalAccessControlOpenApiVo) o;
return Objects.equals(this.preAuthAccessEnable, portalAccessControlOpenApiVo.preAuthAccessEnable) &&
Objects.equals(this.preAuthAccessPolicies, portalAccessControlOpenApiVo.preAuthAccessPolicies) &&
Objects.equals(this.freeAuthClientEnable, portalAccessControlOpenApiVo.freeAuthClientEnable) &&
Objects.equals(this.freeAuthClientPolicies, portalAccessControlOpenApiVo.freeAuthClientPolicies);
}
@Override
public int hashCode() {
return Objects.hash(preAuthAccessEnable, preAuthAccessPolicies, freeAuthClientEnable, freeAuthClientPolicies);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PortalAccessControlOpenApiVo {\n");
sb.append(" preAuthAccessEnable: ").append(toIndentedString(preAuthAccessEnable)).append("\n");
sb.append(" preAuthAccessPolicies: ").append(toIndentedString(preAuthAccessPolicies)).append("\n");
sb.append(" freeAuthClientEnable: ").append(toIndentedString(freeAuthClientEnable)).append("\n");
sb.append(" freeAuthClientPolicies: ").append(toIndentedString(freeAuthClientPolicies)).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 ");
}
}

View File

@@ -0,0 +1,181 @@
package org.wfc.omada.api.accesscontrol.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.Objects;
/**
* List of Pre-Authentication Access Policy
*/
@ApiModel(description = "List of Pre-Authentication Access Policy")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T18:17:18.126730900+08:00[Asia/Shanghai]")
public class PreAuthAccessPolicyOpenApiVo {
@JsonProperty("idInt")
private Integer idInt;
@JsonProperty("type")
private Integer type;
@JsonProperty("ip")
private String ip;
@JsonProperty("subnetMask")
private Integer subnetMask;
@JsonProperty("url")
private String url;
public PreAuthAccessPolicyOpenApiVo idInt(Integer idInt) {
this.idInt = idInt;
return this;
}
/**
* Entry ID of the policy. Except for newly added policies, this parameter should be retained
* @return idInt
*/
@ApiModelProperty(value = "Entry ID of the policy. Except for newly added policies, this parameter should be retained")
public Integer getIdInt() {
return idInt;
}
public void setIdInt(Integer idInt) {
this.idInt = idInt;
}
public PreAuthAccessPolicyOpenApiVo type(Integer type) {
this.type = type;
return this;
}
/**
* Type of the policy. It should be a value as follows: 1: Destination IP Range, and parameter [ip] and [subnetMask] is needed. 2: URL, and parameter [url] is needed
* @return type
*/
@ApiModelProperty(required = true, value = "Type of the policy. It should be a value as follows: 1: Destination IP Range, and parameter [ip] and [subnetMask] is needed. 2: URL, and parameter [url] is needed")
@NotNull
public Integer getType() {
return type;
}
public void setType(Integer type) {
this.type = type;
}
public PreAuthAccessPolicyOpenApiVo ip(String ip) {
this.ip = ip;
return this;
}
/**
* IP Address of Pre-Authentication Access
* @return ip
*/
@ApiModelProperty(value = "IP Address of Pre-Authentication Access")
@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b")
public String getIp() {
return ip;
}
public void setIp(String ip) {
this.ip = ip;
}
public PreAuthAccessPolicyOpenApiVo subnetMask(Integer subnetMask) {
this.subnetMask = subnetMask;
return this;
}
/**
* Subnet mask of Pre-Authentication Access. It should be within the range of 1-32
* @return subnetMask
*/
@ApiModelProperty(value = "Subnet mask of Pre-Authentication Access. It should be within the range of 1-32")
public Integer getSubnetMask() {
return subnetMask;
}
public void setSubnetMask(Integer subnetMask) {
this.subnetMask = subnetMask;
}
public PreAuthAccessPolicyOpenApiVo url(String url) {
this.url = url;
return this;
}
/**
* URL of Pre-Authentication Access
* @return url
*/
@ApiModelProperty(value = "URL of Pre-Authentication Access")
@Pattern(regexp="((\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])(\\.(\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])){3}(:([0-9]|[1-9]\\d{1,3}|[1-5]\\d{4}|6[0-4]\\d{4}|65[0-4]\\d{2}|655[0-2]\\d|6553[0-5]))?|([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,18}(:([0-9]|[1-9]\\d{1,3}|[1-5]\\d{4}|6[0-4]\\d{4}|65[0-4]\\d{2}|655[0-2]\\d|6553[0-5]))?)")
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PreAuthAccessPolicyOpenApiVo preAuthAccessPolicyOpenApiVo = (PreAuthAccessPolicyOpenApiVo) o;
return Objects.equals(this.idInt, preAuthAccessPolicyOpenApiVo.idInt) &&
Objects.equals(this.type, preAuthAccessPolicyOpenApiVo.type) &&
Objects.equals(this.ip, preAuthAccessPolicyOpenApiVo.ip) &&
Objects.equals(this.subnetMask, preAuthAccessPolicyOpenApiVo.subnetMask) &&
Objects.equals(this.url, preAuthAccessPolicyOpenApiVo.url);
}
@Override
public int hashCode() {
return Objects.hash(idInt, type, ip, subnetMask, url);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PreAuthAccessPolicyOpenApiVo {\n");
sb.append(" idInt: ").append(toIndentedString(idInt)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" ip: ").append(toIndentedString(ip)).append("\n");
sb.append(" subnetMask: ").append(toIndentedString(subnetMask)).append("\n");
sb.append(" url: ").append(toIndentedString(url)).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 ");
}
}

View File

@@ -10,21 +10,29 @@ import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.wfc.omada.config.FeignConfig;
import org.wfc.omada.api.log.model.AuditLogNotificationSettingEditOpenApiVo;
import org.wfc.omada.api.log.model.DeleteGlobalAlertLogListOpenApiVo;
import org.wfc.omada.api.log.model.DeleteGlobalEventLogListOpenApiVo;
import org.wfc.omada.api.log.model.DeleteSiteAlertLogListOpenApiVo;
import org.wfc.omada.api.log.model.DeleteSiteEventLogListOpenApiVo;
import org.wfc.omada.api.log.model.LogNotificationSettingEditOpenApiV2Vo;
import org.wfc.omada.api.log.model.LogNotificationSettingEditOpenApiVo;
import org.wfc.omada.api.log.model.OperationResponseAlertLogGridVoAlertLogOpenApiVo;
import org.wfc.omada.api.log.model.OperationResponseAuditLogNotificationSettingOpenApiVo;
import org.wfc.omada.api.log.model.OperationResponseEventLogGridVoEventLogOpenApiVo;
import org.wfc.omada.api.log.model.OperationResponseGridVoAuditLogOpenApiVo;
import org.wfc.omada.api.log.model.OperationResponseLogNotificationSettingOpenApiVo;
import org.wfc.omada.api.log.model.OperationResponseWithoutResult;
import org.wfc.omada.api.log.model.ResolveSiteLogListOpenApiVo;
import org.wfc.omada.config.FeignConfig;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:48.508+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:58:31.493597800+08:00[Asia/Shanghai]")
@Validated
@Api(value = "OmadaLog", description = "the OmadaLog API")
@@ -32,30 +40,157 @@ import javax.validation.constraints.NotNull;
public interface OmadaLogApi {
/**
* GET /openapi/v1/{omadacId}/audit-notification : Get global audit log notification
* Get global audit log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Global Log &amp; Audit Log Manager View Only
* DELETE /openapi/v1/${omada.omadac-id}/logs/alerts/delete : Delete global alert log
* Delete global alert log.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Site Log &amp; Audit Log Manager Modify
*
* @param omadacId Omada ID (required)
* @param authorization (optional, default to &quot;Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw&quot;)
* @param deleteGlobalAlertLogListOpenApiVo (optional)
* @return OK (status code 200)
*/
@ApiOperation(value = "Get global audit log notification", nickname = "getAuditLogSettingForGlobal", notes = "Get global audit log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Log & Audit Log Manager View Only", response = OperationResponseAuditLogNotificationSettingOpenApiVo.class, tags={ "Omada/Log","Log", })
@ApiOperation(value = "Delete global alert log", nickname = "deleteAlertLogsForGlobal", notes = "Delete global alert log.<br/><br/>The interface requires one of the permissions: <br/>Site Log & Audit Log Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Log","Log", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) })
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/logs/alerts/delete",
produces = "*/*",
consumes = "application/json",
method = RequestMethod.DELETE)
ResponseEntity<OperationResponseWithoutResult> deleteAlertLogsForGlobal(@ApiParam(value = "" , defaultValue="Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw") @RequestHeader(value="Authorization", required=false) String authorization,@ApiParam(value = "" ) @Valid @RequestBody(required = false) DeleteGlobalAlertLogListOpenApiVo deleteGlobalAlertLogListOpenApiVo);
/**
* DELETE /openapi/v1/${omada.omadac-id}/sites/{siteId}/logs/alerts/delete : Delete site alert log
* Delete site alert log.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Site Log &amp; Audit Log Manager Modify
*
* @param omadacId Omada ID (required)
* @param siteId Site ID (required)
* @param authorization (optional, default to &quot;Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw&quot;)
* @param deleteSiteAlertLogListOpenApiVo (optional)
* @return OK (status code 200)
*/
@ApiOperation(value = "Delete site alert log", nickname = "deleteAlertLogsForSite", notes = "Delete site alert log.<br/><br/>The interface requires one of the permissions: <br/>Site Log & Audit Log Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Log","Log", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) })
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/logs/alerts/delete",
produces = "*/*",
consumes = "application/json",
method = RequestMethod.DELETE)
ResponseEntity<OperationResponseWithoutResult> deleteAlertLogsForSite(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) DeleteSiteAlertLogListOpenApiVo deleteSiteAlertLogListOpenApiVo);
/**
* DELETE /openapi/v1/${omada.omadac-id}/logs/events/delete : Delete global event log
* Delete global event log.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Site Log &amp; Audit Log Manager Modify
*
* @param omadacId Omada ID (required)
* @param authorization (optional, default to &quot;Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw&quot;)
* @param deleteGlobalEventLogListOpenApiVo (optional)
* @return OK (status code 200)
*/
@ApiOperation(value = "Delete global event log", nickname = "deleteEventLogsForGlobal", notes = "Delete global event log.<br/><br/>The interface requires one of the permissions: <br/>Site Log & Audit Log Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Log","Log", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) })
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/logs/events/delete",
produces = "*/*",
consumes = "application/json",
method = RequestMethod.DELETE)
ResponseEntity<OperationResponseWithoutResult> deleteEventLogsForGlobal(@ApiParam(value = "" , defaultValue="Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw") @RequestHeader(value="Authorization", required=false) String authorization,@ApiParam(value = "" ) @Valid @RequestBody(required = false) DeleteGlobalEventLogListOpenApiVo deleteGlobalEventLogListOpenApiVo);
/**
* DELETE /openapi/v1/${omada.omadac-id}/sites/{siteId}/logs/events/delete : Delete site event log
* Delete site event log.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Site Log &amp; Audit Log Manager Modify
*
* @param omadacId Omada ID (required)
* @param siteId Site ID (required)
* @param authorization (optional, default to &quot;Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw&quot;)
* @param deleteSiteEventLogListOpenApiVo (optional)
* @return OK (status code 200)
*/
@ApiOperation(value = "Delete site event log", nickname = "deleteEventLogsForSite", notes = "Delete site event log.<br/><br/>The interface requires one of the permissions: <br/>Site Log & Audit Log Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Log","Log", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) })
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/logs/events/delete",
produces = "*/*",
consumes = "application/json",
method = RequestMethod.DELETE)
ResponseEntity<OperationResponseWithoutResult> deleteEventLogsForSite(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) DeleteSiteEventLogListOpenApiVo deleteSiteEventLogListOpenApiVo);
/**
* GET /openapi/v1/${omada.omadac-id}/logs/alerts : Get global alert log list
* Get logs in global alert log page.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Global Log &amp; Audit Log Manager View Only
*
* @param omadacId Omada ID (required)
* @param page Start page number. Start from 1. (required)
* @param pageSize Number of entries per page. It should be within the range of 11000.(value:10,15,20,30,50,100) (required)
* @param filtersTimeStart Filter query parameters, support field 1679297710438 (required)
* @param filtersTimeEnd Filter query parameters, support field 1681889710438 (required)
* @param filtersModule Filter query parameters, support field module, it should be a value as follows: System, Device (optional)
* @param filtersResolved Filter query parameters, support field resolved, it should be a value as follows: true, false (optional)
* @param authorization (optional, default to &quot;Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw&quot;)
* @return OK (status code 200)
*/
@ApiOperation(value = "Get global alert log list", nickname = "getAlertLogsForGlobal", notes = "Get logs in global alert log page.<br/><br/>The interface requires one of the permissions: <br/>Global Log & Audit Log Manager View Only", response = OperationResponseAlertLogGridVoAlertLogOpenApiVo.class, tags={ "Omada/Log","Log", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = OperationResponseAlertLogGridVoAlertLogOpenApiVo.class) })
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/logs/alerts",
produces = "*/*",
method = RequestMethod.GET)
ResponseEntity<OperationResponseAlertLogGridVoAlertLogOpenApiVo> getAlertLogsForGlobal(@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 11000.(value:10,15,20,30,50,100)", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@NotNull @ApiParam(value = "Filter query parameters, support field 1679297710438", required = true) @Valid @RequestParam(value = "filters.timeStart", required = true) Long filtersTimeStart,@NotNull @ApiParam(value = "Filter query parameters, support field 1681889710438", required = true) @Valid @RequestParam(value = "filters.timeEnd", required = true) Long filtersTimeEnd,@ApiParam(value = "Filter query parameters, support field module, it should be a value as follows: System, Device") @Valid @RequestParam(value = "filters.module", required = false) String filtersModule,@ApiParam(value = "Filter query parameters, support field resolved, it should be a value as follows: true, false") @Valid @RequestParam(value = "filters.resolved", required = false) Boolean filtersResolved);
/**
* GET /openapi/v1/${omada.omadac-id}/sites/{siteId}/logs/alerts : Get site alert log list
* Get logs in site alert log page.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Site Log &amp; Audit Log Manager View Only
*
* @param omadacId Omada ID (required)
* @param siteId Site ID (required)
* @param page Start page number. Start from 1. (required)
* @param pageSize Number of entries per page. It should be within the range of 11000.(value:10,15,20,30,50,100) (required)
* @param filtersTimeStart Filter query parameters, support field 1679297710438 (required)
* @param filtersTimeEnd Filter query parameters, support field 1681889710438 (required)
* @param filtersModule Filter query parameters, support field module, it should be a value as follows: System, Device, Client (optional)
* @param filtersResolved Filter query parameters, support field resolved, it should be a value as follows: true, false (optional)
* @param authorization (optional, default to &quot;Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw&quot;)
* @return OK (status code 200)
*/
@ApiOperation(value = "Get site alert log list", nickname = "getAlertLogsForSite", notes = "Get logs in site alert log page.<br/><br/>The interface requires one of the permissions: <br/>Site Log & Audit Log Manager View Only", response = OperationResponseAlertLogGridVoAlertLogOpenApiVo.class, tags={ "Omada/Log","Log", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = OperationResponseAlertLogGridVoAlertLogOpenApiVo.class) })
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/logs/alerts",
produces = "*/*",
method = RequestMethod.GET)
ResponseEntity<OperationResponseAlertLogGridVoAlertLogOpenApiVo> getAlertLogsForSite(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 11000.(value:10,15,20,30,50,100)", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@NotNull @ApiParam(value = "Filter query parameters, support field 1679297710438", required = true) @Valid @RequestParam(value = "filters.timeStart", required = true) Long filtersTimeStart,@NotNull @ApiParam(value = "Filter query parameters, support field 1681889710438", required = true) @Valid @RequestParam(value = "filters.timeEnd", required = true) Long filtersTimeEnd,@ApiParam(value = "Filter query parameters, support field module, it should be a value as follows: System, Device, Client") @Valid @RequestParam(value = "filters.module", required = false) String filtersModule,@ApiParam(value = "Filter query parameters, support field resolved, it should be a value as follows: true, false") @Valid @RequestParam(value = "filters.resolved", required = false) Boolean filtersResolved);
/**
* GET /openapi/v1/${omada.omadac-id}/audit-notification : Get global audit log notification
* Get global audit log notification.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Global Log &amp; Audit Log Manager View Only
*
* @param omadacId Omada ID (required)
* @param authorization (optional, default to &quot;Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw&quot;)
* @return OK (status code 200)
*/
@ApiOperation(value = "Get global audit log notification", nickname = "getAuditLogSettingForGlobal", notes = "Get global audit log notification.<br/><br/>The interface requires one of the permissions: <br/>Global Log & Audit Log Manager View Only", response = OperationResponseAuditLogNotificationSettingOpenApiVo.class, tags={ "Omada/Log","Log", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = OperationResponseAuditLogNotificationSettingOpenApiVo.class) })
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/audit-notification",
produces = "*/*",
method = RequestMethod.GET)
ResponseEntity<OperationResponseAuditLogNotificationSettingOpenApiVo> getAuditLogSettingForGlobal(@ApiParam(value = "Omada ID",required=true) @PathVariable("omadacId") String omadacId);
ResponseEntity<OperationResponseAuditLogNotificationSettingOpenApiVo> getAuditLogSettingForGlobal(@ApiParam(value = "" , defaultValue="Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw") @RequestHeader(value="Authorization", required=false) String authorization);
/**
* GET /openapi/v1/{omadacId}/sites/{siteId}/site/audit-notification : Get site audit log notification
* Get site audit log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Site Log &amp; Audit Log Manager View Only
* GET /openapi/v1/${omada.omadac-id}/sites/{siteId}/site/audit-notification : Get site audit log notification
* Get site audit log notification.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Site Log &amp; Audit Log Manager View Only
*
* @param omadacId Omada ID (required)
* @param siteId Site ID (required)
* @param authorization (optional, default to &quot;Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw&quot;)
* @return OK (status code 200)
*/
@ApiOperation(value = "Get site audit log notification", nickname = "getAuditLogSettingForMsp1", notes = "Get site audit log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Site Log & Audit Log Manager View Only", response = OperationResponseAuditLogNotificationSettingOpenApiVo.class, tags={ "Omada/Log","Log", })
@ApiOperation(value = "Get site audit log notification", nickname = "getAuditLogSettingForMsp1", notes = "Get site audit log notification.<br/><br/>The interface requires one of the permissions: <br/>Site Log & Audit Log Manager View Only", response = OperationResponseAuditLogNotificationSettingOpenApiVo.class, tags={ "Omada/Log","Log", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = OperationResponseAuditLogNotificationSettingOpenApiVo.class) })
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/site/audit-notification",
@@ -65,8 +200,8 @@ public interface OmadaLogApi {
/**
* GET /openapi/v1/{omadacId}/audit-logs : Get global audit log list
* Get audit logs in global audit page.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Global Log &amp; Audit Log Manager View Only
* GET /openapi/v1/${omada.omadac-id}/audit-logs : Get global audit log list
* Get audit logs in global audit page.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Global Log &amp; Audit Log Manager View Only
*
* @param omadacId Omada ID (required)
* @param page Start page number. Start from 1. (required)
@@ -77,9 +212,10 @@ public interface OmadaLogApi {
* @param filtersAuditTypes Filter query parameters, support field auditTypes, for the values of auditLog type, refer to section 5.2.2 of the Open API Access Guide, example:Log,Cloud Access,User Interface. (optional)
* @param filtersTimes Filter query parameters, support field times, example:[{\&quot;timeStart\&quot;:1678060800000,\&quot;timeEnd\&quot;:1678665599999}](UrlEncode:%5B%7B%22timeStart%22%3A1678060800000%2C%22timeEnd%22%3A1678665599999%7D%5D).If this parameter is not specified (not included or empty array), the interface will query data within the default time period: [{\&quot;timeStart\&quot;: Current timestamp minus milliseconds of 7 days,\&quot;timeEnd\&quot;: Current timestamp}]. (optional)
* @param searchKey Fuzzy query parameters, support field content (optional)
* @param authorization (optional, default to &quot;Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw&quot;)
* @return OK (status code 200)
*/
@ApiOperation(value = "Get global audit log list", nickname = "getAuditLogsForGlobal", notes = "Get audit logs in global audit page.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Log & Audit Log Manager View Only", response = OperationResponseGridVoAuditLogOpenApiVo.class, tags={ "Omada/Log","Log", })
@ApiOperation(value = "Get global audit log list", nickname = "getAuditLogsForGlobal", notes = "Get audit logs in global audit page.<br/><br/>The interface requires one of the permissions: <br/>Global Log & Audit Log Manager View Only", response = OperationResponseGridVoAuditLogOpenApiVo.class, tags={ "Omada/Log","Log", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoAuditLogOpenApiVo.class) })
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/audit-logs",
@@ -89,8 +225,8 @@ public interface OmadaLogApi {
/**
* GET /openapi/v1/{omadacId}/sites/{siteId}/audit-logs : Get site audit log list
* Get audit logs in site audit page.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Site Log &amp; Audit Log Manager View Only
* GET /openapi/v1/${omada.omadac-id}/sites/{siteId}/audit-logs : Get site audit log list
* Get audit logs in site audit page.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Site Log &amp; Audit Log Manager View Only
*
* @param omadacId Omada ID (required)
* @param siteId Site ID (required)
@@ -102,9 +238,10 @@ public interface OmadaLogApi {
* @param filtersAuditTypes Filter query parameters, support field auditTypes, for the values of auditLog type, refer to section 5.2.2 of the Open API Access Guide, example:Log,Cloud Access,User Interface. (optional)
* @param filtersTimes Filter query parameters, support field times, example:[{\&quot;timeStart\&quot;:1678060800000,\&quot;timeEnd\&quot;:1678665599999}](UrlEncode:%5B%7B%22timeStart%22%3A1678060800000%2C%22timeEnd%22%3A1678665599999%7D%5D).If this parameter is not specified (not included or empty array), the interface will query data within the default time period: [{\&quot;timeStart\&quot;: Current timestamp minus milliseconds of 7 days,\&quot;timeEnd\&quot;: Current timestamp}]. (optional)
* @param searchKey Fuzzy query parameters, support field content (optional)
* @param authorization (optional, default to &quot;Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw&quot;)
* @return OK (status code 200)
*/
@ApiOperation(value = "Get site audit log list", nickname = "getAuditLogsForSite", notes = "Get audit logs in site audit page.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Site Log & Audit Log Manager View Only", response = OperationResponseGridVoAuditLogOpenApiVo.class, tags={ "Omada/Log","Log", })
@ApiOperation(value = "Get site audit log list", nickname = "getAuditLogsForSite", notes = "Get audit logs in site audit page.<br/><br/>The interface requires one of the permissions: <br/>Site Log & Audit Log Manager View Only", response = OperationResponseGridVoAuditLogOpenApiVo.class, tags={ "Omada/Log","Log", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoAuditLogOpenApiVo.class) })
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/audit-logs",
@@ -114,10 +251,56 @@ public interface OmadaLogApi {
/**
* GET /openapi/v1/{omadacId}/log-notification : Get global log notification
* GET /openapi/v1/${omada.omadac-id}/logs/events : Get global event log list
* Get logs in global event log page.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Global Log &amp; Audit Log Manager View Only
*
* @param omadacId Omada ID (required)
* @param page Start page number. Start from 1. (required)
* @param pageSize Number of entries per page. It should be within the range of 11000.(value:10,15,20,30,50,100) (required)
* @param filtersTimeStart Filter query parameters, support field 1679297710438 (required)
* @param filtersTimeEnd Filter query parameters, support field 1681889710438 (required)
* @param filtersModule Filter query parameters, support field module, it should be a value as follows: System, Device (optional)
* @param authorization (optional, default to &quot;Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw&quot;)
* @return OK (status code 200)
*/
@ApiOperation(value = "Get global event log list", nickname = "getEventLogsForGlobal", notes = "Get logs in global event log page.<br/><br/>The interface requires one of the permissions: <br/>Global Log & Audit Log Manager View Only", response = OperationResponseEventLogGridVoEventLogOpenApiVo.class, tags={ "Omada/Log","Log", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = OperationResponseEventLogGridVoEventLogOpenApiVo.class) })
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/logs/events",
produces = "*/*",
method = RequestMethod.GET)
ResponseEntity<OperationResponseEventLogGridVoEventLogOpenApiVo> getEventLogsForGlobal(@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 11000.(value:10,15,20,30,50,100)", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@NotNull @ApiParam(value = "Filter query parameters, support field 1679297710438", required = true) @Valid @RequestParam(value = "filters.timeStart", required = true) Long filtersTimeStart,@NotNull @ApiParam(value = "Filter query parameters, support field 1681889710438", required = true) @Valid @RequestParam(value = "filters.timeEnd", required = true) Long filtersTimeEnd,@ApiParam(value = "Filter query parameters, support field module, it should be a value as follows: System, Device") @Valid @RequestParam(value = "filters.module", required = false) String filtersModule);
/**
* GET /openapi/v1/${omada.omadac-id}/sites/{siteId}/logs/events : Get site event log list
* Get logs in site event log page.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Site Log &amp; Audit Log Manager View Only
*
* @param omadacId Omada ID (required)
* @param siteId Site ID (required)
* @param page Start page number. Start from 1. (required)
* @param pageSize Number of entries per page. It should be within the range of 11000.(value:10,15,20,30,50,100) (required)
* @param filtersTimeStart Filter query parameters, support field 1679297710438 (required)
* @param filtersTimeEnd Filter query parameters, support field 1681889710438 (required)
* @param filtersModule Filter query parameters, support field module, it should be a value as follows: System, Device, Client (optional)
* @param authorization (optional, default to &quot;Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw&quot;)
* @return OK (status code 200)
*/
@ApiOperation(value = "Get site event log list", nickname = "getEventLogsForSite", notes = "Get logs in site event log page.<br/><br/>The interface requires one of the permissions: <br/>Site Log & Audit Log Manager View Only", response = OperationResponseEventLogGridVoEventLogOpenApiVo.class, tags={ "Omada/Log","Log", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = OperationResponseEventLogGridVoEventLogOpenApiVo.class) })
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/logs/events",
produces = "*/*",
method = RequestMethod.GET)
ResponseEntity<OperationResponseEventLogGridVoEventLogOpenApiVo> getEventLogsForSite(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 11000.(value:10,15,20,30,50,100)", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@NotNull @ApiParam(value = "Filter query parameters, support field 1679297710438", required = true) @Valid @RequestParam(value = "filters.timeStart", required = true) Long filtersTimeStart,@NotNull @ApiParam(value = "Filter query parameters, support field 1681889710438", required = true) @Valid @RequestParam(value = "filters.timeEnd", required = true) Long filtersTimeEnd,@ApiParam(value = "Filter query parameters, support field module, it should be a value as follows: System, Device, Client") @Valid @RequestParam(value = "filters.module", required = false) String filtersModule);
/**
* GET /openapi/v1/${omada.omadac-id}/log-notification : Get global log notification
* Get global log notification.This interface has been deprecated.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Global Log &amp; Audit Log Manager View Only
*
* @param omadacId Omada ID (required)
* @param authorization (optional, default to &quot;Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw&quot;)
* @return OK (status code 200)
* @deprecated
*/
@@ -127,31 +310,33 @@ public interface OmadaLogApi {
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/log-notification",
produces = "*/*",
method = RequestMethod.GET)
ResponseEntity<OperationResponseLogNotificationSettingOpenApiVo> getLogSettingForGlobal(@ApiParam(value = "Omada ID",required=true) @PathVariable("omadacId") String omadacId);
ResponseEntity<OperationResponseLogNotificationSettingOpenApiVo> getLogSettingForGlobal(@ApiParam(value = "" , defaultValue="Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw") @RequestHeader(value="Authorization", required=false) String authorization);
/**
* GET /openapi/v2/{omadacId}/log-notification : Get global log notification
* GET /openapi/v2/${omada.omadac-id}/log-notification : Get global log notification
* Get global log notification.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Global Log &amp; Audit Log Manager View Only
*
* @param omadacId Omada ID (required)
* @param authorization (optional, default to &quot;Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw&quot;)
* @return OK (status code 200)
*/
@ApiOperation(value = "Get global log notification", nickname = "getLogSettingForGlobalV2", notes = "Get global log notification.<br/><br/>The interface requires one of the permissions: <br/>Global Log & Audit Log Manager View Only", response = OperationResponseLogNotificationSettingOpenApiVo.class, tags={ "Omada/Log","Log", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = OperationResponseLogNotificationSettingOpenApiVo.class) })
@RequestMapping(value = "/openapi/v2/{omadacId}/log-notification",
@RequestMapping(value = "/openapi/v2/${omada.omadac-id}/log-notification",
produces = "*/*",
method = RequestMethod.GET)
ResponseEntity<OperationResponseLogNotificationSettingOpenApiVo> getLogSettingForGlobalV2(@ApiParam(value = "Omada ID",required=true) @PathVariable("omadacId") String omadacId);
ResponseEntity<OperationResponseLogNotificationSettingOpenApiVo> getLogSettingForGlobalV2(@ApiParam(value = "" , defaultValue="Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw") @RequestHeader(value="Authorization", required=false) String authorization);
/**
* GET /openapi/v1/{omadacId}/sites/{siteId}/site/log-notification : Get site log notification
* GET /openapi/v1/${omada.omadac-id}/sites/{siteId}/site/log-notification : Get site log notification
* Get site log notification.This interface has been deprecated.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Site Log &amp; Audit Log Manager View Only
*
* @param omadacId Omada ID (required)
* @param siteId Site ID (required)
* @param authorization (optional, default to &quot;Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw&quot;)
* @return OK (status code 200)
* @deprecated
*/
@@ -165,67 +350,53 @@ public interface OmadaLogApi {
/**
* GET /openapi/v1/{omadacId}/sitetemplates/{siteTemplateId}/site/log-notification : Get site template log notification
* Get site template log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Global Site Template Manager View Only
*
* @param omadacId Omada ID (required)
* @param siteTemplateId Site Template ID (required)
* @return OK (status code 200)
*/
@ApiOperation(value = "Get site template log notification", nickname = "getLogSettingForSiteTemplate", notes = "Get site template log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Site Template Manager View Only", response = OperationResponseLogNotificationSettingOpenApiVo.class, tags={ "Omada/Log","Log", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = OperationResponseLogNotificationSettingOpenApiVo.class) })
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sitetemplates/{siteTemplateId}/site/log-notification",
produces = "*/*",
method = RequestMethod.GET)
ResponseEntity<OperationResponseLogNotificationSettingOpenApiVo> getLogSettingForSiteTemplate(@ApiParam(value = "Site Template ID",required=true) @PathVariable("siteTemplateId") String siteTemplateId);
/**
* GET /openapi/v2/{omadacId}/sites/{siteId}/site/log-notification : Get site log notification
* GET /openapi/v2/${omada.omadac-id}/sites/{siteId}/site/log-notification : Get site log notification
* Get site log notification.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Site Log &amp; Audit Log Manager View Only
*
* @param omadacId Omada ID (required)
* @param siteId Site ID (required)
* @param authorization (optional, default to &quot;Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw&quot;)
* @return OK (status code 200)
*/
@ApiOperation(value = "Get site log notification", nickname = "getLogSettingForSiteV2", notes = "Get site log notification.<br/><br/>The interface requires one of the permissions: <br/>Site Log & Audit Log Manager View Only", response = OperationResponseLogNotificationSettingOpenApiVo.class, tags={ "Omada/Log","Log", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = OperationResponseLogNotificationSettingOpenApiVo.class) })
@RequestMapping(value = "/openapi/v2/{omadacId}/sites/{siteId}/site/log-notification",
@RequestMapping(value = "/openapi/v2/${omada.omadac-id}/sites/{siteId}/site/log-notification",
produces = "*/*",
method = RequestMethod.GET)
ResponseEntity<OperationResponseLogNotificationSettingOpenApiVo> getLogSettingForSiteV2(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId);
/**
* PATCH /openapi/v1/{omadacId}/audit-notification : Modify global audit log notification
* Modify global audit log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Global Log &amp; Audit Log Manager Modify
* PATCH /openapi/v1/${omada.omadac-id}/audit-notification : Modify global audit log notification
* Modify global audit log notification.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Global Log &amp; Audit Log Manager Modify
*
* @param omadacId Omada ID (required)
* @param authorization (optional, default to &quot;Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw&quot;)
* @param auditLogNotificationSettingEditOpenApiVo (optional)
* @return OK (status code 200)
*/
@ApiOperation(value = "Modify global audit log notification", nickname = "modifyAuditLogSettingGlobal", notes = "Modify global audit log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Log & Audit Log Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Log","Log", })
@ApiOperation(value = "Modify global audit log notification", nickname = "modifyAuditLogSettingGlobal", notes = "Modify global audit log notification.<br/><br/>The interface requires one of the permissions: <br/>Global Log & Audit Log Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Log","Log", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) })
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/audit-notification",
produces = "*/*",
consumes = "application/json",
method = RequestMethod.PATCH)
ResponseEntity<OperationResponseWithoutResult> modifyAuditLogSettingGlobal(@ApiParam(value = "" ) @Valid @RequestBody(required = false) AuditLogNotificationSettingEditOpenApiVo auditLogNotificationSettingEditOpenApiVo);
ResponseEntity<OperationResponseWithoutResult> modifyAuditLogSettingGlobal(@ApiParam(value = "" , defaultValue="Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw") @RequestHeader(value="Authorization", required=false) String authorization,@ApiParam(value = "" ) @Valid @RequestBody(required = false) AuditLogNotificationSettingEditOpenApiVo auditLogNotificationSettingEditOpenApiVo);
/**
* PATCH /openapi/v1/{omadacId}/sites/{siteId}/site/audit-notification : Modify site audit log notification
* Modify site audit log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Site Log &amp; Audit Log Manager Modify
* PATCH /openapi/v1/${omada.omadac-id}/sites/{siteId}/site/audit-notification : Modify site audit log notification
* Modify site audit log notification.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Site Log &amp; Audit Log Manager Modify
*
* @param omadacId Omada ID (required)
* @param siteId Site ID (required)
* @param authorization (optional, default to &quot;Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw&quot;)
* @param auditLogNotificationSettingEditOpenApiVo (optional)
* @return OK (status code 200)
*/
@ApiOperation(value = "Modify site audit log notification", nickname = "modifyAuditLogSettingSite1", notes = "Modify site audit log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Site Log & Audit Log Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Log","Log", })
@ApiOperation(value = "Modify site audit log notification", nickname = "modifyAuditLogSettingSite1", notes = "Modify site audit log notification.<br/><br/>The interface requires one of the permissions: <br/>Site Log & Audit Log Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Log","Log", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) })
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/site/audit-notification",
@@ -236,10 +407,11 @@ public interface OmadaLogApi {
/**
* PATCH /openapi/v1/{omadacId}/log-notification : Modify global log notification
* PATCH /openapi/v1/${omada.omadac-id}/log-notification : Modify global log notification
* Modify global log notification.This interface has been deprecated.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Global Log &amp; Audit Log Manager Modify
*
* @param omadacId Omada ID (required)
* @param authorization (optional, default to &quot;Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw&quot;)
* @param logNotificationSettingEditOpenApiVo (optional)
* @return OK (status code 200)
* @deprecated
@@ -251,33 +423,35 @@ public interface OmadaLogApi {
produces = "*/*",
consumes = "application/json",
method = RequestMethod.PATCH)
ResponseEntity<OperationResponseWithoutResult> modifyLogSettingGlobal(@ApiParam(value = "" ) @Valid @RequestBody(required = false) LogNotificationSettingEditOpenApiVo logNotificationSettingEditOpenApiVo);
ResponseEntity<OperationResponseWithoutResult> modifyLogSettingGlobal(@ApiParam(value = "" , defaultValue="Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw") @RequestHeader(value="Authorization", required=false) String authorization,@ApiParam(value = "" ) @Valid @RequestBody(required = false) LogNotificationSettingEditOpenApiVo logNotificationSettingEditOpenApiVo);
/**
* PATCH /openapi/v2/{omadacId}/log-notification : Modify global log notification
* PATCH /openapi/v2/${omada.omadac-id}/log-notification : Modify global log notification
* Modify global log notification.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Global Log &amp; Audit Log Manager Modify
*
* @param omadacId Omada ID (required)
* @param authorization (optional, default to &quot;Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw&quot;)
* @param logNotificationSettingEditOpenApiV2Vo (optional)
* @return OK (status code 200)
*/
@ApiOperation(value = "Modify global log notification", nickname = "modifyLogSettingGlobalV2", notes = "Modify global log notification.<br/><br/>The interface requires one of the permissions: <br/>Global Log & Audit Log Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Log","Log", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) })
@RequestMapping(value = "/openapi/v2/{omadacId}/log-notification",
@RequestMapping(value = "/openapi/v2/${omada.omadac-id}/log-notification",
produces = "*/*",
consumes = "application/json",
method = RequestMethod.PATCH)
ResponseEntity<OperationResponseWithoutResult> modifyLogSettingGlobalV2(@ApiParam(value = "" ) @Valid @RequestBody(required = false) LogNotificationSettingEditOpenApiV2Vo logNotificationSettingEditOpenApiV2Vo);
ResponseEntity<OperationResponseWithoutResult> modifyLogSettingGlobalV2(@ApiParam(value = "" , defaultValue="Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw") @RequestHeader(value="Authorization", required=false) String authorization,@ApiParam(value = "" ) @Valid @RequestBody(required = false) LogNotificationSettingEditOpenApiV2Vo logNotificationSettingEditOpenApiV2Vo);
/**
* PATCH /openapi/v1/{omadacId}/sites/{siteId}/site/log-notification : Modify site log notification
* PATCH /openapi/v1/${omada.omadac-id}/sites/{siteId}/site/log-notification : Modify site log notification
* Modify site log notification.This interface has been deprecated.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Site Log &amp; Audit Log Manager Modify
*
* @param omadacId Omada ID (required)
* @param siteId Site ID (required)
* @param authorization (optional, default to &quot;Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw&quot;)
* @param logNotificationSettingEditOpenApiVo (optional)
* @return OK (status code 200)
* @deprecated
@@ -293,37 +467,19 @@ public interface OmadaLogApi {
/**
* PATCH /openapi/v1/{omadacId}/sitetemplates/{siteTemplateId}/site/log-notification : Modify site template log notification
* Modify site template log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Global Site Template Manager Modify
*
* @param omadacId Omada ID (required)
* @param siteTemplateId Site Template ID (required)
* @param logNotificationSettingEditOpenApiVo (optional)
* @return OK (status code 200)
*/
@ApiOperation(value = "Modify site template log notification", nickname = "modifyLogSettingSiteTemplate", notes = "Modify site template log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Site Template Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Log","Log", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) })
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sitetemplates/{siteTemplateId}/site/log-notification",
produces = "*/*",
consumes = "application/json",
method = RequestMethod.PATCH)
ResponseEntity<OperationResponseWithoutResult> modifyLogSettingSiteTemplate(@ApiParam(value = "Site Template ID",required=true) @PathVariable("siteTemplateId") String siteTemplateId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) LogNotificationSettingEditOpenApiVo logNotificationSettingEditOpenApiVo);
/**
* PATCH /openapi/v2/{omadacId}/sites/{siteId}/site/log-notification : Modify site log notification
* PATCH /openapi/v2/${omada.omadac-id}/sites/{siteId}/site/log-notification : Modify site log notification
* Modify site log notification.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Site Log &amp; Audit Log Manager Modify
*
* @param omadacId Omada ID (required)
* @param siteId Site ID (required)
* @param authorization (optional, default to &quot;Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw&quot;)
* @param logNotificationSettingEditOpenApiV2Vo (optional)
* @return OK (status code 200)
*/
@ApiOperation(value = "Modify site log notification", nickname = "modifyLogSettingSiteV2", notes = "Modify site log notification.<br/><br/>The interface requires one of the permissions: <br/>Site Log & Audit Log Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Log","Log", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) })
@RequestMapping(value = "/openapi/v2/{omadacId}/sites/{siteId}/site/log-notification",
@RequestMapping(value = "/openapi/v2/${omada.omadac-id}/sites/{siteId}/site/log-notification",
produces = "*/*",
consumes = "application/json",
method = RequestMethod.PATCH)
@@ -331,10 +487,11 @@ public interface OmadaLogApi {
/**
* POST /openapi/v1/{omadacId}/reset/log-notification : Reset global log notification
* POST /openapi/v1/${omada.omadac-id}/reset/log-notification : Reset global log notification
* Reset global log notification.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Global Log &amp; Audit Log Manager Modify
*
* @param omadacId Omada ID (required)
* @param authorization (optional, default to &quot;Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw&quot;)
* @return OK (status code 200)
*/
@ApiOperation(value = "Reset global log notification", nickname = "resetLogSettingGlobal", notes = "Reset global log notification.<br/><br/>The interface requires one of the permissions: <br/>Global Log & Audit Log Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Log","Log", })
@@ -343,15 +500,16 @@ public interface OmadaLogApi {
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/reset/log-notification",
produces = "*/*",
method = RequestMethod.POST)
ResponseEntity<OperationResponseWithoutResult> resetLogSettingGlobal(@ApiParam(value = "Omada ID",required=true) @PathVariable("omadacId") String omadacId);
ResponseEntity<OperationResponseWithoutResult> resetLogSettingGlobal(@ApiParam(value = "" , defaultValue="Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw") @RequestHeader(value="Authorization", required=false) String authorization);
/**
* POST /openapi/v1/{omadacId}/sites/{siteId}/site/reset/log-notification : Reset site log notification
* POST /openapi/v1/${omada.omadac-id}/sites/{siteId}/site/reset/log-notification : Reset site log notification
* Reset site log notification.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Site Log &amp; Audit Log Manager Modify
*
* @param omadacId Omada ID (required)
* @param siteId Site ID (required)
* @param authorization (optional, default to &quot;Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw&quot;)
* @return OK (status code 200)
*/
@ApiOperation(value = "Reset site log notification", nickname = "resetLogSettingSite", notes = "Reset site log notification.<br/><br/>The interface requires one of the permissions: <br/>Site Log & Audit Log Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Log","Log", })
@@ -364,19 +522,22 @@ public interface OmadaLogApi {
/**
* POST /openapi/v1/{omadacId}/sitetemplates/{siteTemplateId}/site/reset/log-notification : Reset site template log notification
* Reset site template log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Global Site Template Manager Modify
* POST /openapi/v1/${omada.omadac-id}/sites/{siteId}/logs/alerts/resolve : Resolve site alert log
* Resolve site alert log.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Site Log &amp; Audit Log Manager Modify
*
* @param omadacId Omada ID (required)
* @param siteTemplateId Site Template ID (required)
* @param siteId Site ID (required)
* @param authorization (optional, default to &quot;Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VyX2tleSI6ImUzNjFmYzQ2LTk5YjMtNDJhZC04MjJmLTM2MjY0OGU3OWY1MyIsInBsYXRmb3JtIjoic3lzdGVtIiwidXNlcm5hbWUiOiJhZG1pbiJ9.5Aup-9z6TzIZgsqqOiILunx-U3KTKeWxkeDWty8f9rnQLsKRJ5yTMkVC4pFLORY2DQl4rANDVYYJrSW_pRnzOw&quot;)
* @param resolveSiteLogListOpenApiVo (optional)
* @return OK (status code 200)
*/
@ApiOperation(value = "Reset site template log notification", nickname = "resetLogSettingSiteTemplate", notes = "Reset site template log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Site Template Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Log","Log", })
@ApiOperation(value = "Resolve site alert log", nickname = "resolveAlertForSite", notes = "Resolve site alert log.<br/><br/>The interface requires one of the permissions: <br/>Site Log & Audit Log Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Log","Log", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) })
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sitetemplates/{siteTemplateId}/site/reset/log-notification",
@RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/logs/alerts/resolve",
produces = "*/*",
consumes = "application/json",
method = RequestMethod.POST)
ResponseEntity<OperationResponseWithoutResult> resetLogSettingSiteTemplate(@ApiParam(value = "Site Template ID",required=true) @PathVariable("siteTemplateId") String siteTemplateId);
ResponseEntity<OperationResponseWithoutResult> resolveAlertForSite(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ResolveSiteLogListOpenApiVo resolveSiteLogListOpenApiVo);
}

View File

@@ -0,0 +1,190 @@
package org.wfc.omada.api.log.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.Valid;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* AlertLogGridVoAlertLogOpenApiVo
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class AlertLogGridVoAlertLogOpenApiVo {
@JsonProperty("totalRows")
private Long totalRows;
@JsonProperty("currentPage")
private Integer currentPage;
@JsonProperty("currentSize")
private Integer currentSize;
@JsonProperty("data")
@Valid
private List<AlertLogOpenApiVo> data = null;
@JsonProperty("alertLogStat")
private AlertLogStatOpenApiVo alertLogStat;
public AlertLogGridVoAlertLogOpenApiVo totalRows(Long totalRows) {
this.totalRows = totalRows;
return this;
}
/**
* Total rows of all items.
* @return totalRows
*/
@ApiModelProperty(value = "Total rows of all items.")
public Long getTotalRows() {
return totalRows;
}
public void setTotalRows(Long totalRows) {
this.totalRows = totalRows;
}
public AlertLogGridVoAlertLogOpenApiVo currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* Current page number.
* @return currentPage
*/
@ApiModelProperty(value = "Current page number.")
public Integer getCurrentPage() {
return currentPage;
}
public void setCurrentPage(Integer currentPage) {
this.currentPage = currentPage;
}
public AlertLogGridVoAlertLogOpenApiVo currentSize(Integer currentSize) {
this.currentSize = currentSize;
return this;
}
/**
* Number of entries per page.
* @return currentSize
*/
@ApiModelProperty(value = "Number of entries per page.")
public Integer getCurrentSize() {
return currentSize;
}
public void setCurrentSize(Integer currentSize) {
this.currentSize = currentSize;
}
public AlertLogGridVoAlertLogOpenApiVo data(List<AlertLogOpenApiVo> data) {
this.data = data;
return this;
}
public AlertLogGridVoAlertLogOpenApiVo addDataItem(AlertLogOpenApiVo dataItem) {
if (this.data == null) {
this.data = new ArrayList<>();
}
this.data.add(dataItem);
return this;
}
/**
* Get data
* @return data
*/
@ApiModelProperty(value = "")
@Valid
public List<AlertLogOpenApiVo> getData() {
return data;
}
public void setData(List<AlertLogOpenApiVo> data) {
this.data = data;
}
public AlertLogGridVoAlertLogOpenApiVo alertLogStat(AlertLogStatOpenApiVo alertLogStat) {
this.alertLogStat = alertLogStat;
return this;
}
/**
* Get alertLogStat
* @return alertLogStat
*/
@ApiModelProperty(value = "")
@Valid
public AlertLogStatOpenApiVo getAlertLogStat() {
return alertLogStat;
}
public void setAlertLogStat(AlertLogStatOpenApiVo alertLogStat) {
this.alertLogStat = alertLogStat;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AlertLogGridVoAlertLogOpenApiVo alertLogGridVoAlertLogOpenApiVo = (AlertLogGridVoAlertLogOpenApiVo) o;
return Objects.equals(this.totalRows, alertLogGridVoAlertLogOpenApiVo.totalRows) &&
Objects.equals(this.currentPage, alertLogGridVoAlertLogOpenApiVo.currentPage) &&
Objects.equals(this.currentSize, alertLogGridVoAlertLogOpenApiVo.currentSize) &&
Objects.equals(this.data, alertLogGridVoAlertLogOpenApiVo.data) &&
Objects.equals(this.alertLogStat, alertLogGridVoAlertLogOpenApiVo.alertLogStat);
}
@Override
public int hashCode() {
return Objects.hash(totalRows, currentPage, currentSize, data, alertLogStat);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AlertLogGridVoAlertLogOpenApiVo {\n");
sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n");
sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n");
sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n");
sb.append(" data: ").append(toIndentedString(data)).append("\n");
sb.append(" alertLogStat: ").append(toIndentedString(alertLogStat)).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 ");
}
}

View File

@@ -0,0 +1,201 @@
package org.wfc.omada.api.log.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/**
* AlertLogOpenApiVo
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class AlertLogOpenApiVo {
@JsonProperty("id")
private String id;
@JsonProperty("key")
private String key;
@JsonProperty("module")
private String module;
@JsonProperty("content")
private String content;
@JsonProperty("time")
private Long time;
@JsonProperty("level")
private String level;
public AlertLogOpenApiVo id(String id) {
this.id = id;
return this;
}
/**
* Log ID.
* @return id
*/
@ApiModelProperty(value = "Log ID.")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public AlertLogOpenApiVo key(String key) {
this.key = key;
return this;
}
/**
* Log key.
* @return key
*/
@ApiModelProperty(value = "Log key.")
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public AlertLogOpenApiVo module(String module) {
this.module = module;
return this;
}
/**
* Log module.
* @return module
*/
@ApiModelProperty(value = "Log module.")
public String getModule() {
return module;
}
public void setModule(String module) {
this.module = module;
}
public AlertLogOpenApiVo content(String content) {
this.content = content;
return this;
}
/**
* Log content.
* @return content
*/
@ApiModelProperty(value = "Log content.")
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public AlertLogOpenApiVo time(Long time) {
this.time = time;
return this;
}
/**
* Log time.
* @return time
*/
@ApiModelProperty(value = "Log time.")
public Long getTime() {
return time;
}
public void setTime(Long time) {
this.time = time;
}
public AlertLogOpenApiVo level(String level) {
this.level = level;
return this;
}
/**
* Alert log level.
* @return level
*/
@ApiModelProperty(value = "Alert log level.")
public String getLevel() {
return level;
}
public void setLevel(String level) {
this.level = level;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AlertLogOpenApiVo alertLogOpenApiVo = (AlertLogOpenApiVo) o;
return Objects.equals(this.id, alertLogOpenApiVo.id) &&
Objects.equals(this.key, alertLogOpenApiVo.key) &&
Objects.equals(this.module, alertLogOpenApiVo.module) &&
Objects.equals(this.content, alertLogOpenApiVo.content) &&
Objects.equals(this.time, alertLogOpenApiVo.time) &&
Objects.equals(this.level, alertLogOpenApiVo.level);
}
@Override
public int hashCode() {
return Objects.hash(id, key, module, content, time, level);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AlertLogOpenApiVo {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" key: ").append(toIndentedString(key)).append("\n");
sb.append(" module: ").append(toIndentedString(module)).append("\n");
sb.append(" content: ").append(toIndentedString(content)).append("\n");
sb.append(" time: ").append(toIndentedString(time)).append("\n");
sb.append(" level: ").append(toIndentedString(level)).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 ");
}
}

View File

@@ -0,0 +1,178 @@
package org.wfc.omada.api.log.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/**
* Alert log statistic.
*/
@ApiModel(description = "Alert log statistic.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class AlertLogStatOpenApiVo {
@JsonProperty("totalLogNum")
private Long totalLogNum;
@JsonProperty("unResolvedLogNum")
private Long unResolvedLogNum;
@JsonProperty("resolvedLogNum")
private Long resolvedLogNum;
@JsonProperty("systemLogNum")
private Long systemLogNum;
@JsonProperty("deviceLogNum")
private Long deviceLogNum;
public AlertLogStatOpenApiVo totalLogNum(Long totalLogNum) {
this.totalLogNum = totalLogNum;
return this;
}
/**
* Total log number.
* @return totalLogNum
*/
@ApiModelProperty(value = "Total log number.")
public Long getTotalLogNum() {
return totalLogNum;
}
public void setTotalLogNum(Long totalLogNum) {
this.totalLogNum = totalLogNum;
}
public AlertLogStatOpenApiVo unResolvedLogNum(Long unResolvedLogNum) {
this.unResolvedLogNum = unResolvedLogNum;
return this;
}
/**
* Unresolved alert log number.
* @return unResolvedLogNum
*/
@ApiModelProperty(value = "Unresolved alert log number.")
public Long getUnResolvedLogNum() {
return unResolvedLogNum;
}
public void setUnResolvedLogNum(Long unResolvedLogNum) {
this.unResolvedLogNum = unResolvedLogNum;
}
public AlertLogStatOpenApiVo resolvedLogNum(Long resolvedLogNum) {
this.resolvedLogNum = resolvedLogNum;
return this;
}
/**
* Resolved alert log number.
* @return resolvedLogNum
*/
@ApiModelProperty(value = "Resolved alert log number.")
public Long getResolvedLogNum() {
return resolvedLogNum;
}
public void setResolvedLogNum(Long resolvedLogNum) {
this.resolvedLogNum = resolvedLogNum;
}
public AlertLogStatOpenApiVo systemLogNum(Long systemLogNum) {
this.systemLogNum = systemLogNum;
return this;
}
/**
* System alert log number.
* @return systemLogNum
*/
@ApiModelProperty(value = "System alert log number.")
public Long getSystemLogNum() {
return systemLogNum;
}
public void setSystemLogNum(Long systemLogNum) {
this.systemLogNum = systemLogNum;
}
public AlertLogStatOpenApiVo deviceLogNum(Long deviceLogNum) {
this.deviceLogNum = deviceLogNum;
return this;
}
/**
* Device alert log number.
* @return deviceLogNum
*/
@ApiModelProperty(value = "Device alert log number.")
public Long getDeviceLogNum() {
return deviceLogNum;
}
public void setDeviceLogNum(Long deviceLogNum) {
this.deviceLogNum = deviceLogNum;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AlertLogStatOpenApiVo alertLogStatOpenApiVo = (AlertLogStatOpenApiVo) o;
return Objects.equals(this.totalLogNum, alertLogStatOpenApiVo.totalLogNum) &&
Objects.equals(this.unResolvedLogNum, alertLogStatOpenApiVo.unResolvedLogNum) &&
Objects.equals(this.resolvedLogNum, alertLogStatOpenApiVo.resolvedLogNum) &&
Objects.equals(this.systemLogNum, alertLogStatOpenApiVo.systemLogNum) &&
Objects.equals(this.deviceLogNum, alertLogStatOpenApiVo.deviceLogNum);
}
@Override
public int hashCode() {
return Objects.hash(totalLogNum, unResolvedLogNum, resolvedLogNum, systemLogNum, deviceLogNum);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AlertLogStatOpenApiVo {\n");
sb.append(" totalLogNum: ").append(toIndentedString(totalLogNum)).append("\n");
sb.append(" unResolvedLogNum: ").append(toIndentedString(unResolvedLogNum)).append("\n");
sb.append(" resolvedLogNum: ").append(toIndentedString(resolvedLogNum)).append("\n");
sb.append(" systemLogNum: ").append(toIndentedString(systemLogNum)).append("\n");
sb.append(" deviceLogNum: ").append(toIndentedString(deviceLogNum)).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 ");
}
}

View File

@@ -11,7 +11,7 @@ import java.util.Objects;
* Audit Log Notification List
*/
@ApiModel(description = "Audit Log Notification List")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class AuditLogNotificationEditOpenApiVo {
@JsonProperty("key")

View File

@@ -10,7 +10,7 @@ import java.util.Objects;
* Audit Log Notification List
*/
@ApiModel(description = "Audit Log Notification List")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class AuditLogNotificationOpenApiVo {
@JsonProperty("key")

View File

@@ -12,7 +12,7 @@ import java.util.Objects;
/**
* AuditLogNotificationSettingEditOpenApiVo
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class AuditLogNotificationSettingEditOpenApiVo {
@JsonProperty("webhookConfig")

View File

@@ -11,7 +11,7 @@ import java.util.Objects;
/**
* AuditLogNotificationSettingOpenApiVo
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class AuditLogNotificationSettingOpenApiVo {
@JsonProperty("webhookConfig")

View File

@@ -9,7 +9,7 @@ import java.util.Objects;
/**
* AuditLogOpenApiVo
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class AuditLogOpenApiVo {
@JsonProperty("time")

View File

@@ -0,0 +1,192 @@
package org.wfc.omada.api.log.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* DeleteGlobalAlertLogListOpenApiVo
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class DeleteGlobalAlertLogListOpenApiVo {
@JsonProperty("logs")
@Valid
private List<String> logs = null;
@JsonProperty("selectType")
private String selectType;
@JsonProperty("startTime")
private Long startTime;
@JsonProperty("endTime")
private Long endTime;
@JsonProperty("filterModule")
private String filterModule;
public DeleteGlobalAlertLogListOpenApiVo logs(List<String> logs) {
this.logs = logs;
return this;
}
public DeleteGlobalAlertLogListOpenApiVo addLogsItem(String logsItem) {
if (this.logs == null) {
this.logs = new ArrayList<>();
}
this.logs.add(logsItem);
return this;
}
/**
* Select the logs to delete; Log ID list can be obtained from 'Get global alert log list' interface.
* @return logs
*/
@ApiModelProperty(value = "Select the logs to delete; Log ID list can be obtained from 'Get global alert log list' interface.")
public List<String> getLogs() {
return logs;
}
public void setLogs(List<String> logs) {
this.logs = logs;
}
public DeleteGlobalAlertLogListOpenApiVo selectType(String selectType) {
this.selectType = selectType;
return this;
}
/**
* Select type of logs. include: include selected logs, exclude: all but exclude selected logs, all: include all logs(Parameter [logs] need input '[]').
* @return selectType
*/
@ApiModelProperty(required = true, value = "Select type of logs. include: include selected logs, exclude: all but exclude selected logs, all: include all logs(Parameter [logs] need input '[]').")
@NotNull
public String getSelectType() {
return selectType;
}
public void setSelectType(String selectType) {
this.selectType = selectType;
}
public DeleteGlobalAlertLogListOpenApiVo startTime(Long startTime) {
this.startTime = startTime;
return this;
}
/**
* The start timeStamp of the delete global alert log, unit: MS.
* @return startTime
*/
@ApiModelProperty(required = true, value = "The start timeStamp of the delete global alert log, unit: MS.")
@NotNull
public Long getStartTime() {
return startTime;
}
public void setStartTime(Long startTime) {
this.startTime = startTime;
}
public DeleteGlobalAlertLogListOpenApiVo endTime(Long endTime) {
this.endTime = endTime;
return this;
}
/**
* The end timeStamp of the delete global alert log, unit: MS.
* @return endTime
*/
@ApiModelProperty(required = true, value = "The end timeStamp of the delete global alert log, unit: MS.")
@NotNull
public Long getEndTime() {
return endTime;
}
public void setEndTime(Long endTime) {
this.endTime = endTime;
}
public DeleteGlobalAlertLogListOpenApiVo filterModule(String filterModule) {
this.filterModule = filterModule;
return this;
}
/**
* The module of the delete global log; It is required when [selectType] is 'all', filterModule should be a value as follows: 'System' or 'Device'.
* @return filterModule
*/
@ApiModelProperty(value = "The module of the delete global log; It is required when [selectType] is 'all', filterModule should be a value as follows: 'System' or 'Device'.")
public String getFilterModule() {
return filterModule;
}
public void setFilterModule(String filterModule) {
this.filterModule = filterModule;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DeleteGlobalAlertLogListOpenApiVo deleteGlobalAlertLogListOpenApiVo = (DeleteGlobalAlertLogListOpenApiVo) o;
return Objects.equals(this.logs, deleteGlobalAlertLogListOpenApiVo.logs) &&
Objects.equals(this.selectType, deleteGlobalAlertLogListOpenApiVo.selectType) &&
Objects.equals(this.startTime, deleteGlobalAlertLogListOpenApiVo.startTime) &&
Objects.equals(this.endTime, deleteGlobalAlertLogListOpenApiVo.endTime) &&
Objects.equals(this.filterModule, deleteGlobalAlertLogListOpenApiVo.filterModule);
}
@Override
public int hashCode() {
return Objects.hash(logs, selectType, startTime, endTime, filterModule);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DeleteGlobalAlertLogListOpenApiVo {\n");
sb.append(" logs: ").append(toIndentedString(logs)).append("\n");
sb.append(" selectType: ").append(toIndentedString(selectType)).append("\n");
sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n");
sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n");
sb.append(" filterModule: ").append(toIndentedString(filterModule)).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 ");
}
}

View File

@@ -0,0 +1,192 @@
package org.wfc.omada.api.log.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* DeleteGlobalEventLogListOpenApiVo
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class DeleteGlobalEventLogListOpenApiVo {
@JsonProperty("logs")
@Valid
private List<String> logs = null;
@JsonProperty("selectType")
private String selectType;
@JsonProperty("startTime")
private Long startTime;
@JsonProperty("endTime")
private Long endTime;
@JsonProperty("filterModule")
private String filterModule;
public DeleteGlobalEventLogListOpenApiVo logs(List<String> logs) {
this.logs = logs;
return this;
}
public DeleteGlobalEventLogListOpenApiVo addLogsItem(String logsItem) {
if (this.logs == null) {
this.logs = new ArrayList<>();
}
this.logs.add(logsItem);
return this;
}
/**
* Select the logs to delete; Log ID list can be obtained from 'Get global event log list' interface.
* @return logs
*/
@ApiModelProperty(value = "Select the logs to delete; Log ID list can be obtained from 'Get global event log list' interface.")
public List<String> getLogs() {
return logs;
}
public void setLogs(List<String> logs) {
this.logs = logs;
}
public DeleteGlobalEventLogListOpenApiVo selectType(String selectType) {
this.selectType = selectType;
return this;
}
/**
* Select type of logs. include: include selected logs, exclude: all but exclude selected logs, all: include all logs(Parameter [logs] need input '[]').
* @return selectType
*/
@ApiModelProperty(required = true, value = "Select type of logs. include: include selected logs, exclude: all but exclude selected logs, all: include all logs(Parameter [logs] need input '[]').")
@NotNull
public String getSelectType() {
return selectType;
}
public void setSelectType(String selectType) {
this.selectType = selectType;
}
public DeleteGlobalEventLogListOpenApiVo startTime(Long startTime) {
this.startTime = startTime;
return this;
}
/**
* The start timeStamp of the delete global event log, unit: MS.
* @return startTime
*/
@ApiModelProperty(required = true, value = "The start timeStamp of the delete global event log, unit: MS.")
@NotNull
public Long getStartTime() {
return startTime;
}
public void setStartTime(Long startTime) {
this.startTime = startTime;
}
public DeleteGlobalEventLogListOpenApiVo endTime(Long endTime) {
this.endTime = endTime;
return this;
}
/**
* The end timeStamp of the delete global event log, unit: MS.
* @return endTime
*/
@ApiModelProperty(required = true, value = "The end timeStamp of the delete global event log, unit: MS.")
@NotNull
public Long getEndTime() {
return endTime;
}
public void setEndTime(Long endTime) {
this.endTime = endTime;
}
public DeleteGlobalEventLogListOpenApiVo filterModule(String filterModule) {
this.filterModule = filterModule;
return this;
}
/**
* The module of the delete global log; It is required when [selectType] is 'all', filterModule should be a value as follows: 'System' or 'Device'.
* @return filterModule
*/
@ApiModelProperty(value = "The module of the delete global log; It is required when [selectType] is 'all', filterModule should be a value as follows: 'System' or 'Device'.")
public String getFilterModule() {
return filterModule;
}
public void setFilterModule(String filterModule) {
this.filterModule = filterModule;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DeleteGlobalEventLogListOpenApiVo deleteGlobalEventLogListOpenApiVo = (DeleteGlobalEventLogListOpenApiVo) o;
return Objects.equals(this.logs, deleteGlobalEventLogListOpenApiVo.logs) &&
Objects.equals(this.selectType, deleteGlobalEventLogListOpenApiVo.selectType) &&
Objects.equals(this.startTime, deleteGlobalEventLogListOpenApiVo.startTime) &&
Objects.equals(this.endTime, deleteGlobalEventLogListOpenApiVo.endTime) &&
Objects.equals(this.filterModule, deleteGlobalEventLogListOpenApiVo.filterModule);
}
@Override
public int hashCode() {
return Objects.hash(logs, selectType, startTime, endTime, filterModule);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DeleteGlobalEventLogListOpenApiVo {\n");
sb.append(" logs: ").append(toIndentedString(logs)).append("\n");
sb.append(" selectType: ").append(toIndentedString(selectType)).append("\n");
sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n");
sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n");
sb.append(" filterModule: ").append(toIndentedString(filterModule)).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 ");
}
}

View File

@@ -0,0 +1,192 @@
package org.wfc.omada.api.log.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* DeleteSiteAlertLogListOpenApiVo
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class DeleteSiteAlertLogListOpenApiVo {
@JsonProperty("logs")
@Valid
private List<String> logs = null;
@JsonProperty("selectType")
private String selectType;
@JsonProperty("startTime")
private Long startTime;
@JsonProperty("endTime")
private Long endTime;
@JsonProperty("filterModule")
private String filterModule;
public DeleteSiteAlertLogListOpenApiVo logs(List<String> logs) {
this.logs = logs;
return this;
}
public DeleteSiteAlertLogListOpenApiVo addLogsItem(String logsItem) {
if (this.logs == null) {
this.logs = new ArrayList<>();
}
this.logs.add(logsItem);
return this;
}
/**
* Select the logs to delete; Log ID list can be obtained from 'Get site alert log list' interface.
* @return logs
*/
@ApiModelProperty(value = "Select the logs to delete; Log ID list can be obtained from 'Get site alert log list' interface.")
public List<String> getLogs() {
return logs;
}
public void setLogs(List<String> logs) {
this.logs = logs;
}
public DeleteSiteAlertLogListOpenApiVo selectType(String selectType) {
this.selectType = selectType;
return this;
}
/**
* Select type of logs. include: include selected logs, exclude: all but exclude selected logs, all: include all logs(Parameter [logs] need input '[]').
* @return selectType
*/
@ApiModelProperty(required = true, value = "Select type of logs. include: include selected logs, exclude: all but exclude selected logs, all: include all logs(Parameter [logs] need input '[]').")
@NotNull
public String getSelectType() {
return selectType;
}
public void setSelectType(String selectType) {
this.selectType = selectType;
}
public DeleteSiteAlertLogListOpenApiVo startTime(Long startTime) {
this.startTime = startTime;
return this;
}
/**
* The start timeStamp of the delete site alert log, unit: MS.
* @return startTime
*/
@ApiModelProperty(required = true, value = "The start timeStamp of the delete site alert log, unit: MS.")
@NotNull
public Long getStartTime() {
return startTime;
}
public void setStartTime(Long startTime) {
this.startTime = startTime;
}
public DeleteSiteAlertLogListOpenApiVo endTime(Long endTime) {
this.endTime = endTime;
return this;
}
/**
* The end timeStamp of the delete site alert log, unit: MS.
* @return endTime
*/
@ApiModelProperty(required = true, value = "The end timeStamp of the delete site alert log, unit: MS.")
@NotNull
public Long getEndTime() {
return endTime;
}
public void setEndTime(Long endTime) {
this.endTime = endTime;
}
public DeleteSiteAlertLogListOpenApiVo filterModule(String filterModule) {
this.filterModule = filterModule;
return this;
}
/**
* The module of the delete site alert log; It is required when [selectType] is 'all', filterModule should be a value as follows: 'System' or 'Device'.
* @return filterModule
*/
@ApiModelProperty(value = "The module of the delete site alert log; It is required when [selectType] is 'all', filterModule should be a value as follows: 'System' or 'Device'.")
public String getFilterModule() {
return filterModule;
}
public void setFilterModule(String filterModule) {
this.filterModule = filterModule;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DeleteSiteAlertLogListOpenApiVo deleteSiteAlertLogListOpenApiVo = (DeleteSiteAlertLogListOpenApiVo) o;
return Objects.equals(this.logs, deleteSiteAlertLogListOpenApiVo.logs) &&
Objects.equals(this.selectType, deleteSiteAlertLogListOpenApiVo.selectType) &&
Objects.equals(this.startTime, deleteSiteAlertLogListOpenApiVo.startTime) &&
Objects.equals(this.endTime, deleteSiteAlertLogListOpenApiVo.endTime) &&
Objects.equals(this.filterModule, deleteSiteAlertLogListOpenApiVo.filterModule);
}
@Override
public int hashCode() {
return Objects.hash(logs, selectType, startTime, endTime, filterModule);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DeleteSiteAlertLogListOpenApiVo {\n");
sb.append(" logs: ").append(toIndentedString(logs)).append("\n");
sb.append(" selectType: ").append(toIndentedString(selectType)).append("\n");
sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n");
sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n");
sb.append(" filterModule: ").append(toIndentedString(filterModule)).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 ");
}
}

View File

@@ -0,0 +1,192 @@
package org.wfc.omada.api.log.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* DeleteSiteEventLogListOpenApiVo
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class DeleteSiteEventLogListOpenApiVo {
@JsonProperty("logs")
@Valid
private List<String> logs = null;
@JsonProperty("selectType")
private String selectType;
@JsonProperty("startTime")
private Long startTime;
@JsonProperty("endTime")
private Long endTime;
@JsonProperty("filterModule")
private String filterModule;
public DeleteSiteEventLogListOpenApiVo logs(List<String> logs) {
this.logs = logs;
return this;
}
public DeleteSiteEventLogListOpenApiVo addLogsItem(String logsItem) {
if (this.logs == null) {
this.logs = new ArrayList<>();
}
this.logs.add(logsItem);
return this;
}
/**
* Select the logs to delete; Log ID list can be obtained from 'Get site event log list' interface.
* @return logs
*/
@ApiModelProperty(value = "Select the logs to delete; Log ID list can be obtained from 'Get site event log list' interface.")
public List<String> getLogs() {
return logs;
}
public void setLogs(List<String> logs) {
this.logs = logs;
}
public DeleteSiteEventLogListOpenApiVo selectType(String selectType) {
this.selectType = selectType;
return this;
}
/**
* Select type of logs. include: include selected logs, exclude: all but exclude selected logs, all: include all logs(Parameter [logs] need input '[]').
* @return selectType
*/
@ApiModelProperty(required = true, value = "Select type of logs. include: include selected logs, exclude: all but exclude selected logs, all: include all logs(Parameter [logs] need input '[]').")
@NotNull
public String getSelectType() {
return selectType;
}
public void setSelectType(String selectType) {
this.selectType = selectType;
}
public DeleteSiteEventLogListOpenApiVo startTime(Long startTime) {
this.startTime = startTime;
return this;
}
/**
* The start timeStamp of the delete site event log, unit: MS.
* @return startTime
*/
@ApiModelProperty(required = true, value = "The start timeStamp of the delete site event log, unit: MS.")
@NotNull
public Long getStartTime() {
return startTime;
}
public void setStartTime(Long startTime) {
this.startTime = startTime;
}
public DeleteSiteEventLogListOpenApiVo endTime(Long endTime) {
this.endTime = endTime;
return this;
}
/**
* The end timeStamp of the delete site event log, unit: MS.
* @return endTime
*/
@ApiModelProperty(required = true, value = "The end timeStamp of the delete site event log, unit: MS.")
@NotNull
public Long getEndTime() {
return endTime;
}
public void setEndTime(Long endTime) {
this.endTime = endTime;
}
public DeleteSiteEventLogListOpenApiVo filterModule(String filterModule) {
this.filterModule = filterModule;
return this;
}
/**
* The module of the delete site event log; It is required when [selectType] is 'all', filterModule should be a value as follows: ['System', 'Device', 'Client'].
* @return filterModule
*/
@ApiModelProperty(value = "The module of the delete site event log; It is required when [selectType] is 'all', filterModule should be a value as follows: ['System', 'Device', 'Client'].")
public String getFilterModule() {
return filterModule;
}
public void setFilterModule(String filterModule) {
this.filterModule = filterModule;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DeleteSiteEventLogListOpenApiVo deleteSiteEventLogListOpenApiVo = (DeleteSiteEventLogListOpenApiVo) o;
return Objects.equals(this.logs, deleteSiteEventLogListOpenApiVo.logs) &&
Objects.equals(this.selectType, deleteSiteEventLogListOpenApiVo.selectType) &&
Objects.equals(this.startTime, deleteSiteEventLogListOpenApiVo.startTime) &&
Objects.equals(this.endTime, deleteSiteEventLogListOpenApiVo.endTime) &&
Objects.equals(this.filterModule, deleteSiteEventLogListOpenApiVo.filterModule);
}
@Override
public int hashCode() {
return Objects.hash(logs, selectType, startTime, endTime, filterModule);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DeleteSiteEventLogListOpenApiVo {\n");
sb.append(" logs: ").append(toIndentedString(logs)).append("\n");
sb.append(" selectType: ").append(toIndentedString(selectType)).append("\n");
sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n");
sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n");
sb.append(" filterModule: ").append(toIndentedString(filterModule)).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 ");
}
}

View File

@@ -0,0 +1,190 @@
package org.wfc.omada.api.log.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.Valid;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* EventLogGridVoEventLogOpenApiVo
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class EventLogGridVoEventLogOpenApiVo {
@JsonProperty("totalRows")
private Long totalRows;
@JsonProperty("currentPage")
private Integer currentPage;
@JsonProperty("currentSize")
private Integer currentSize;
@JsonProperty("data")
@Valid
private List<EventLogOpenApiVo> data = null;
@JsonProperty("eventLogStat")
private EventLogStatOpenApiVo eventLogStat;
public EventLogGridVoEventLogOpenApiVo totalRows(Long totalRows) {
this.totalRows = totalRows;
return this;
}
/**
* Total rows of all items.
* @return totalRows
*/
@ApiModelProperty(value = "Total rows of all items.")
public Long getTotalRows() {
return totalRows;
}
public void setTotalRows(Long totalRows) {
this.totalRows = totalRows;
}
public EventLogGridVoEventLogOpenApiVo currentPage(Integer currentPage) {
this.currentPage = currentPage;
return this;
}
/**
* Current page number.
* @return currentPage
*/
@ApiModelProperty(value = "Current page number.")
public Integer getCurrentPage() {
return currentPage;
}
public void setCurrentPage(Integer currentPage) {
this.currentPage = currentPage;
}
public EventLogGridVoEventLogOpenApiVo currentSize(Integer currentSize) {
this.currentSize = currentSize;
return this;
}
/**
* Number of entries per page.
* @return currentSize
*/
@ApiModelProperty(value = "Number of entries per page.")
public Integer getCurrentSize() {
return currentSize;
}
public void setCurrentSize(Integer currentSize) {
this.currentSize = currentSize;
}
public EventLogGridVoEventLogOpenApiVo data(List<EventLogOpenApiVo> data) {
this.data = data;
return this;
}
public EventLogGridVoEventLogOpenApiVo addDataItem(EventLogOpenApiVo dataItem) {
if (this.data == null) {
this.data = new ArrayList<>();
}
this.data.add(dataItem);
return this;
}
/**
* Get data
* @return data
*/
@ApiModelProperty(value = "")
@Valid
public List<EventLogOpenApiVo> getData() {
return data;
}
public void setData(List<EventLogOpenApiVo> data) {
this.data = data;
}
public EventLogGridVoEventLogOpenApiVo eventLogStat(EventLogStatOpenApiVo eventLogStat) {
this.eventLogStat = eventLogStat;
return this;
}
/**
* Get eventLogStat
* @return eventLogStat
*/
@ApiModelProperty(value = "")
@Valid
public EventLogStatOpenApiVo getEventLogStat() {
return eventLogStat;
}
public void setEventLogStat(EventLogStatOpenApiVo eventLogStat) {
this.eventLogStat = eventLogStat;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EventLogGridVoEventLogOpenApiVo eventLogGridVoEventLogOpenApiVo = (EventLogGridVoEventLogOpenApiVo) o;
return Objects.equals(this.totalRows, eventLogGridVoEventLogOpenApiVo.totalRows) &&
Objects.equals(this.currentPage, eventLogGridVoEventLogOpenApiVo.currentPage) &&
Objects.equals(this.currentSize, eventLogGridVoEventLogOpenApiVo.currentSize) &&
Objects.equals(this.data, eventLogGridVoEventLogOpenApiVo.data) &&
Objects.equals(this.eventLogStat, eventLogGridVoEventLogOpenApiVo.eventLogStat);
}
@Override
public int hashCode() {
return Objects.hash(totalRows, currentPage, currentSize, data, eventLogStat);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EventLogGridVoEventLogOpenApiVo {\n");
sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n");
sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n");
sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n");
sb.append(" data: ").append(toIndentedString(data)).append("\n");
sb.append(" eventLogStat: ").append(toIndentedString(eventLogStat)).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 ");
}
}

View File

@@ -0,0 +1,176 @@
package org.wfc.omada.api.log.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/**
* EventLogOpenApiVo
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class EventLogOpenApiVo {
@JsonProperty("id")
private String id;
@JsonProperty("key")
private String key;
@JsonProperty("module")
private String module;
@JsonProperty("content")
private String content;
@JsonProperty("time")
private Long time;
public EventLogOpenApiVo id(String id) {
this.id = id;
return this;
}
/**
* Log ID.
* @return id
*/
@ApiModelProperty(value = "Log ID.")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public EventLogOpenApiVo key(String key) {
this.key = key;
return this;
}
/**
* Log key.
* @return key
*/
@ApiModelProperty(value = "Log key.")
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public EventLogOpenApiVo module(String module) {
this.module = module;
return this;
}
/**
* Log module.
* @return module
*/
@ApiModelProperty(value = "Log module.")
public String getModule() {
return module;
}
public void setModule(String module) {
this.module = module;
}
public EventLogOpenApiVo content(String content) {
this.content = content;
return this;
}
/**
* Log content.
* @return content
*/
@ApiModelProperty(value = "Log content.")
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public EventLogOpenApiVo time(Long time) {
this.time = time;
return this;
}
/**
* Log time.
* @return time
*/
@ApiModelProperty(value = "Log time.")
public Long getTime() {
return time;
}
public void setTime(Long time) {
this.time = time;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EventLogOpenApiVo eventLogOpenApiVo = (EventLogOpenApiVo) o;
return Objects.equals(this.id, eventLogOpenApiVo.id) &&
Objects.equals(this.key, eventLogOpenApiVo.key) &&
Objects.equals(this.module, eventLogOpenApiVo.module) &&
Objects.equals(this.content, eventLogOpenApiVo.content) &&
Objects.equals(this.time, eventLogOpenApiVo.time);
}
@Override
public int hashCode() {
return Objects.hash(id, key, module, content, time);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EventLogOpenApiVo {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" key: ").append(toIndentedString(key)).append("\n");
sb.append(" module: ").append(toIndentedString(module)).append("\n");
sb.append(" content: ").append(toIndentedString(content)).append("\n");
sb.append(" time: ").append(toIndentedString(time)).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 ");
}
}

View File

@@ -0,0 +1,153 @@
package org.wfc.omada.api.log.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/**
* Event log statistic.
*/
@ApiModel(description = "Event log statistic.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class EventLogStatOpenApiVo {
@JsonProperty("totalLogNum")
private Long totalLogNum;
@JsonProperty("systemLogNum")
private Long systemLogNum;
@JsonProperty("deviceLogNum")
private Long deviceLogNum;
@JsonProperty("clientLogNum")
private Long clientLogNum;
public EventLogStatOpenApiVo totalLogNum(Long totalLogNum) {
this.totalLogNum = totalLogNum;
return this;
}
/**
* Total log number.
* @return totalLogNum
*/
@ApiModelProperty(value = "Total log number.")
public Long getTotalLogNum() {
return totalLogNum;
}
public void setTotalLogNum(Long totalLogNum) {
this.totalLogNum = totalLogNum;
}
public EventLogStatOpenApiVo systemLogNum(Long systemLogNum) {
this.systemLogNum = systemLogNum;
return this;
}
/**
* System event log number.
* @return systemLogNum
*/
@ApiModelProperty(value = "System event log number.")
public Long getSystemLogNum() {
return systemLogNum;
}
public void setSystemLogNum(Long systemLogNum) {
this.systemLogNum = systemLogNum;
}
public EventLogStatOpenApiVo deviceLogNum(Long deviceLogNum) {
this.deviceLogNum = deviceLogNum;
return this;
}
/**
* Device event log number.
* @return deviceLogNum
*/
@ApiModelProperty(value = "Device event log number.")
public Long getDeviceLogNum() {
return deviceLogNum;
}
public void setDeviceLogNum(Long deviceLogNum) {
this.deviceLogNum = deviceLogNum;
}
public EventLogStatOpenApiVo clientLogNum(Long clientLogNum) {
this.clientLogNum = clientLogNum;
return this;
}
/**
* Client event log number.
* @return clientLogNum
*/
@ApiModelProperty(value = "Client event log number.")
public Long getClientLogNum() {
return clientLogNum;
}
public void setClientLogNum(Long clientLogNum) {
this.clientLogNum = clientLogNum;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EventLogStatOpenApiVo eventLogStatOpenApiVo = (EventLogStatOpenApiVo) o;
return Objects.equals(this.totalLogNum, eventLogStatOpenApiVo.totalLogNum) &&
Objects.equals(this.systemLogNum, eventLogStatOpenApiVo.systemLogNum) &&
Objects.equals(this.deviceLogNum, eventLogStatOpenApiVo.deviceLogNum) &&
Objects.equals(this.clientLogNum, eventLogStatOpenApiVo.clientLogNum);
}
@Override
public int hashCode() {
return Objects.hash(totalLogNum, systemLogNum, deviceLogNum, clientLogNum);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EventLogStatOpenApiVo {\n");
sb.append(" totalLogNum: ").append(toIndentedString(totalLogNum)).append("\n");
sb.append(" systemLogNum: ").append(toIndentedString(systemLogNum)).append("\n");
sb.append(" deviceLogNum: ").append(toIndentedString(deviceLogNum)).append("\n");
sb.append(" clientLogNum: ").append(toIndentedString(clientLogNum)).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 ");
}
}

View File

@@ -11,7 +11,7 @@ import java.util.Objects;
/**
* GridVoAuditLogOpenApiVo
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class GridVoAuditLogOpenApiVo {
@JsonProperty("totalRows")

View File

@@ -10,7 +10,7 @@ import java.util.Objects;
* Log Event Email (This config applies to the log site view)
*/
@ApiModel(description = "Log Event Email (This config applies to the log site view)")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class LogAlertEmailOpenApiVo {
@JsonProperty("alertEmailEnable")

View File

@@ -11,7 +11,7 @@ import java.util.Objects;
* Event Notification List
*/
@ApiModel(description = "Event Notification List")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class LogNotificationEditOpenApiV2Vo {
@JsonProperty("key")

View File

@@ -11,7 +11,7 @@ import java.util.Objects;
* Log Notification List
*/
@ApiModel(description = "Log Notification List")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class LogNotificationEditOpenApiVo {
@JsonProperty("key")

View File

@@ -10,7 +10,7 @@ import java.util.Objects;
* Log Notification List
*/
@ApiModel(description = "Log Notification List")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class LogNotificationOpenApiVo {
@JsonProperty("key")

View File

@@ -11,7 +11,7 @@ import java.util.Objects;
/**
* LogNotificationSettingEditOpenApiV2Vo
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class LogNotificationSettingEditOpenApiV2Vo {
@JsonProperty("webhookConfig")

View File

@@ -12,7 +12,7 @@ import java.util.Objects;
/**
* LogNotificationSettingEditOpenApiVo
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class LogNotificationSettingEditOpenApiVo {
@JsonProperty("webhookConfig")

View File

@@ -11,7 +11,7 @@ import java.util.Objects;
/**
* LogNotificationSettingOpenApiVo
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class LogNotificationSettingOpenApiVo {
@JsonProperty("webhookConfig")

View File

@@ -0,0 +1,128 @@
package org.wfc.omada.api.log.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.Valid;
import java.util.Objects;
/**
* OperationResponseAlertLogGridVoAlertLogOpenApiVo
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class OperationResponseAlertLogGridVoAlertLogOpenApiVo {
@JsonProperty("errorCode")
private Integer errorCode;
@JsonProperty("msg")
private String msg;
@JsonProperty("result")
private AlertLogGridVoAlertLogOpenApiVo result;
public OperationResponseAlertLogGridVoAlertLogOpenApiVo errorCode(Integer errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* Get errorCode
* @return errorCode
*/
@ApiModelProperty(value = "")
public Integer getErrorCode() {
return errorCode;
}
public void setErrorCode(Integer errorCode) {
this.errorCode = errorCode;
}
public OperationResponseAlertLogGridVoAlertLogOpenApiVo msg(String msg) {
this.msg = msg;
return this;
}
/**
* Get msg
* @return msg
*/
@ApiModelProperty(value = "")
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public OperationResponseAlertLogGridVoAlertLogOpenApiVo result(AlertLogGridVoAlertLogOpenApiVo result) {
this.result = result;
return this;
}
/**
* Get result
* @return result
*/
@ApiModelProperty(value = "")
@Valid
public AlertLogGridVoAlertLogOpenApiVo getResult() {
return result;
}
public void setResult(AlertLogGridVoAlertLogOpenApiVo result) {
this.result = result;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
OperationResponseAlertLogGridVoAlertLogOpenApiVo operationResponseAlertLogGridVoAlertLogOpenApiVo = (OperationResponseAlertLogGridVoAlertLogOpenApiVo) o;
return Objects.equals(this.errorCode, operationResponseAlertLogGridVoAlertLogOpenApiVo.errorCode) &&
Objects.equals(this.msg, operationResponseAlertLogGridVoAlertLogOpenApiVo.msg) &&
Objects.equals(this.result, operationResponseAlertLogGridVoAlertLogOpenApiVo.result);
}
@Override
public int hashCode() {
return Objects.hash(errorCode, msg, result);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class OperationResponseAlertLogGridVoAlertLogOpenApiVo {\n");
sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
sb.append(" msg: ").append(toIndentedString(msg)).append("\n");
sb.append(" result: ").append(toIndentedString(result)).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 ");
}
}

View File

@@ -9,7 +9,7 @@ import java.util.Objects;
/**
* OperationResponseAuditLogNotificationSettingOpenApiVo
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class OperationResponseAuditLogNotificationSettingOpenApiVo {
@JsonProperty("errorCode")

View File

@@ -0,0 +1,128 @@
package org.wfc.omada.api.log.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.Valid;
import java.util.Objects;
/**
* OperationResponseEventLogGridVoEventLogOpenApiVo
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class OperationResponseEventLogGridVoEventLogOpenApiVo {
@JsonProperty("errorCode")
private Integer errorCode;
@JsonProperty("msg")
private String msg;
@JsonProperty("result")
private EventLogGridVoEventLogOpenApiVo result;
public OperationResponseEventLogGridVoEventLogOpenApiVo errorCode(Integer errorCode) {
this.errorCode = errorCode;
return this;
}
/**
* Get errorCode
* @return errorCode
*/
@ApiModelProperty(value = "")
public Integer getErrorCode() {
return errorCode;
}
public void setErrorCode(Integer errorCode) {
this.errorCode = errorCode;
}
public OperationResponseEventLogGridVoEventLogOpenApiVo msg(String msg) {
this.msg = msg;
return this;
}
/**
* Get msg
* @return msg
*/
@ApiModelProperty(value = "")
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public OperationResponseEventLogGridVoEventLogOpenApiVo result(EventLogGridVoEventLogOpenApiVo result) {
this.result = result;
return this;
}
/**
* Get result
* @return result
*/
@ApiModelProperty(value = "")
@Valid
public EventLogGridVoEventLogOpenApiVo getResult() {
return result;
}
public void setResult(EventLogGridVoEventLogOpenApiVo result) {
this.result = result;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
OperationResponseEventLogGridVoEventLogOpenApiVo operationResponseEventLogGridVoEventLogOpenApiVo = (OperationResponseEventLogGridVoEventLogOpenApiVo) o;
return Objects.equals(this.errorCode, operationResponseEventLogGridVoEventLogOpenApiVo.errorCode) &&
Objects.equals(this.msg, operationResponseEventLogGridVoEventLogOpenApiVo.msg) &&
Objects.equals(this.result, operationResponseEventLogGridVoEventLogOpenApiVo.result);
}
@Override
public int hashCode() {
return Objects.hash(errorCode, msg, result);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class OperationResponseEventLogGridVoEventLogOpenApiVo {\n");
sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
sb.append(" msg: ").append(toIndentedString(msg)).append("\n");
sb.append(" result: ").append(toIndentedString(result)).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 ");
}
}

View File

@@ -9,7 +9,7 @@ import java.util.Objects;
/**
* OperationResponseGridVoAuditLogOpenApiVo
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class OperationResponseGridVoAuditLogOpenApiVo {
@JsonProperty("errorCode")

View File

@@ -9,7 +9,7 @@ import java.util.Objects;
/**
* OperationResponseLogNotificationSettingOpenApiVo
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class OperationResponseLogNotificationSettingOpenApiVo {
@JsonProperty("errorCode")

View File

@@ -8,7 +8,7 @@ import java.util.Objects;
/**
* OperationResponseWithoutResult
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class OperationResponseWithoutResult {
@JsonProperty("errorCode")

View File

@@ -0,0 +1,192 @@
package org.wfc.omada.api.log.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* ResolveSiteLogListOpenApiVo
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class ResolveSiteLogListOpenApiVo {
@JsonProperty("logs")
@Valid
private List<String> logs = null;
@JsonProperty("selectType")
private String selectType;
@JsonProperty("startTime")
private Long startTime;
@JsonProperty("endTime")
private Long endTime;
@JsonProperty("filterModule")
private String filterModule;
public ResolveSiteLogListOpenApiVo logs(List<String> logs) {
this.logs = logs;
return this;
}
public ResolveSiteLogListOpenApiVo addLogsItem(String logsItem) {
if (this.logs == null) {
this.logs = new ArrayList<>();
}
this.logs.add(logsItem);
return this;
}
/**
* Select the logs to resolve; Log ID list can be obtained from 'Get site alert log list' interface.
* @return logs
*/
@ApiModelProperty(value = "Select the logs to resolve; Log ID list can be obtained from 'Get site alert log list' interface.")
public List<String> getLogs() {
return logs;
}
public void setLogs(List<String> logs) {
this.logs = logs;
}
public ResolveSiteLogListOpenApiVo selectType(String selectType) {
this.selectType = selectType;
return this;
}
/**
* Select type of logs. include: include selected logs, exclude: all but exclude selected logs, all: include all logs(Parameter [logs] need input '[]').
* @return selectType
*/
@ApiModelProperty(required = true, value = "Select type of logs. include: include selected logs, exclude: all but exclude selected logs, all: include all logs(Parameter [logs] need input '[]').")
@NotNull
public String getSelectType() {
return selectType;
}
public void setSelectType(String selectType) {
this.selectType = selectType;
}
public ResolveSiteLogListOpenApiVo startTime(Long startTime) {
this.startTime = startTime;
return this;
}
/**
* The start timeStamp of the resolve site alert log, unit: MS.
* @return startTime
*/
@ApiModelProperty(required = true, value = "The start timeStamp of the resolve site alert log, unit: MS.")
@NotNull
public Long getStartTime() {
return startTime;
}
public void setStartTime(Long startTime) {
this.startTime = startTime;
}
public ResolveSiteLogListOpenApiVo endTime(Long endTime) {
this.endTime = endTime;
return this;
}
/**
* The end timeStamp of the resolve site alert log, unit: MS.
* @return endTime
*/
@ApiModelProperty(required = true, value = "The end timeStamp of the resolve site alert log, unit: MS.")
@NotNull
public Long getEndTime() {
return endTime;
}
public void setEndTime(Long endTime) {
this.endTime = endTime;
}
public ResolveSiteLogListOpenApiVo filterModule(String filterModule) {
this.filterModule = filterModule;
return this;
}
/**
* The module of the resolve site alert log; It is required when [selectType] is 'all', filterModule should be a value as follows: 'System' or 'Device'.
* @return filterModule
*/
@ApiModelProperty(value = "The module of the resolve site alert log; It is required when [selectType] is 'all', filterModule should be a value as follows: 'System' or 'Device'.")
public String getFilterModule() {
return filterModule;
}
public void setFilterModule(String filterModule) {
this.filterModule = filterModule;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ResolveSiteLogListOpenApiVo resolveSiteLogListOpenApiVo = (ResolveSiteLogListOpenApiVo) o;
return Objects.equals(this.logs, resolveSiteLogListOpenApiVo.logs) &&
Objects.equals(this.selectType, resolveSiteLogListOpenApiVo.selectType) &&
Objects.equals(this.startTime, resolveSiteLogListOpenApiVo.startTime) &&
Objects.equals(this.endTime, resolveSiteLogListOpenApiVo.endTime) &&
Objects.equals(this.filterModule, resolveSiteLogListOpenApiVo.filterModule);
}
@Override
public int hashCode() {
return Objects.hash(logs, selectType, startTime, endTime, filterModule);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ResolveSiteLogListOpenApiVo {\n");
sb.append(" logs: ").append(toIndentedString(logs)).append("\n");
sb.append(" selectType: ").append(toIndentedString(selectType)).append("\n");
sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n");
sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n");
sb.append(" filterModule: ").append(toIndentedString(filterModule)).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 ");
}
}

View File

@@ -11,7 +11,7 @@ import java.util.Objects;
* Log Notification Webhook Config (This config applies to the Omada Pro Controller only)
*/
@ApiModel(description = "Log Notification Webhook Config (This config applies to the Omada Pro Controller only)")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class WebhookConfigEditOpenApiVo {
@JsonProperty("webhookEnable")

View File

@@ -10,7 +10,7 @@ import java.util.Objects;
* Log Notification Webhook Config (This config applies to the Omada Pro Controller only)
*/
@ApiModel(description = "Log Notification Webhook Config (This config applies to the Omada Pro Controller only)")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2025-06-03T17:52:43.984874600+08:00[Asia/Shanghai]")
public class WebhookConfigOpenApiVo {
@JsonProperty("webhookEnable")