package org.wfc.omada.api.sitesetting;

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.springframework.web.bind.annotation.RequestParam;
import org.wfc.omada.config.FeignConfig;
import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoQuerySessionLimitRuleOpenApiVo;
import org.wfc.omada.api.sitesetting.model.OperationResponseSessionLimitEntity;
import org.wfc.omada.api.sitesetting.model.OperationResponseWithoutResult;
import org.wfc.omada.api.sitesetting.model.SessionLimitEntity;
import org.wfc.omada.api.sitesetting.model.SessionLimitRuleOpenApiVo;
import org.wfc.omada.api.sitesetting.model.TransmissionDragSortIndexOpenapiVo;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:31:51.978+08:00[Asia/Shanghai]")

@Validated
@Api(value = "OmadaSessionLimit", description = "the OmadaSessionLimit API")
@FeignClient(name="OmadaSessionLimitApi", url = "${omada.omada-url}", configuration = FeignConfig.class)
public interface OmadaSessionLimitApi {

    /**
     * POST /openapi/v1/{omadacId}/sites/{siteId}/session-limit/rules : Create session limit rule
     * Create session limit rule.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Site Settings Manager Modify
     *
     * @param omadacId Omada ID (required)
     * @param siteId Site ID (required)
     * @param sessionLimitRuleOpenApiVo  (optional)
     * @return OK (status code 200)
     */
    @ApiOperation(value = "Create session limit rule", nickname = "createSessionLimitRule", notes = "Create session limit rule.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Session Limit","Session Limit", })
    @ApiResponses(value = { 
        @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) })
    @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/session-limit/rules",
        produces = "*/*", 
        consumes = "application/json",
        method = RequestMethod.POST)
    ResponseEntity<OperationResponseWithoutResult> createSessionLimitRule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = ""  )  @Valid @RequestBody(required = false) SessionLimitRuleOpenApiVo sessionLimitRuleOpenApiVo);


    /**
     * DELETE /openapi/v1/{omadacId}/sites/{siteId}/session-limit/rules/{ruleId} : Delete session limit rule
     * Delete session limit rule.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Site Settings Manager Modify
     *
     * @param omadacId Omada ID (required)
     * @param siteId Site ID (required)
     * @param ruleId Session limit rule ID (required)
     * @return OK (status code 200)
     */
    @ApiOperation(value = "Delete session limit rule", nickname = "deleteSessionLimitRule", notes = "Delete session limit rule.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Session Limit","Session Limit", })
    @ApiResponses(value = { 
        @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) })
    @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/session-limit/rules/{ruleId}",
        produces = "*/*", 
        method = RequestMethod.DELETE)
    ResponseEntity<OperationResponseWithoutResult> deleteSessionLimitRule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Session limit rule ID",required=true) @PathVariable("ruleId") String ruleId);


    /**
     * GET /openapi/v1/{omadacId}/sites/{siteId}/session-limit/rules : Get session limit rule list
     * Get session limit rule list.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Site Settings 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 1–1000. (required)
     * @return OK (status code 200)
     */
    @ApiOperation(value = "Get session limit rule list", nickname = "getGridSessionLimitRule", notes = "Get session limit rule list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only", response = OperationResponseGridVoQuerySessionLimitRuleOpenApiVo.class, tags={ "Omada/Session Limit","Session Limit", })
    @ApiResponses(value = { 
        @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoQuerySessionLimitRuleOpenApiVo.class) })
    @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/session-limit/rules",
        produces = "*/*", 
        method = RequestMethod.GET)
    ResponseEntity<OperationResponseGridVoQuerySessionLimitRuleOpenApiVo> getGridSessionLimitRule(@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 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize);


    /**
     * GET /openapi/v1/{omadacId}/sites/{siteId}/session-limit : Get session limit
     * Get session limit.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Site Settings Manager View Only
     *
     * @param omadacId Omada ID (required)
     * @param siteId Site ID (required)
     * @return OK (status code 200)
     */
    @ApiOperation(value = "Get session limit", nickname = "getSessionLimit", notes = "Get session limit.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only", response = OperationResponseSessionLimitEntity.class, tags={ "Omada/Session Limit","Session Limit", })
    @ApiResponses(value = { 
        @ApiResponse(code = 200, message = "OK", response = OperationResponseSessionLimitEntity.class) })
    @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/session-limit",
        produces = "*/*", 
        method = RequestMethod.GET)
    ResponseEntity<OperationResponseSessionLimitEntity> getSessionLimit(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId);


    /**
     * PATCH /openapi/v1/{omadacId}/sites/{siteId}/session-limit : Modify session limit
     * Modify session limit.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Site Settings Manager Modify
     *
     * @param omadacId Omada ID (required)
     * @param siteId Site ID (required)
     * @param sessionLimitEntity  (optional)
     * @return OK (status code 200)
     */
    @ApiOperation(value = "Modify session limit", nickname = "modifySessionLimit", notes = "Modify session limit.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Session Limit","Session Limit", })
    @ApiResponses(value = { 
        @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) })
    @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/session-limit",
        produces = "*/*", 
        consumes = "application/json",
        method = RequestMethod.PATCH)
    ResponseEntity<OperationResponseWithoutResult> modifySessionLimit(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = ""  )  @Valid @RequestBody(required = false) SessionLimitEntity sessionLimitEntity);


    /**
     * PATCH /openapi/v1/{omadacId}/sites/{siteId}/session-limit/rules/{ruleId} : Modify session limit rule
     * Modify session limit rule.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Site Settings Manager Modify
     *
     * @param omadacId Omada ID (required)
     * @param siteId Site ID (required)
     * @param ruleId Session limit rule ID (required)
     * @param sessionLimitRuleOpenApiVo  (optional)
     * @return OK (status code 200)
     */
    @ApiOperation(value = "Modify session limit rule", nickname = "modifySessionLimitRule", notes = "Modify session limit rule.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Session Limit","Session Limit", })
    @ApiResponses(value = { 
        @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) })
    @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/session-limit/rules/{ruleId}",
        produces = "*/*", 
        consumes = "application/json",
        method = RequestMethod.PATCH)
    ResponseEntity<OperationResponseWithoutResult> modifySessionLimitRule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Session limit rule ID",required=true) @PathVariable("ruleId") String ruleId,@ApiParam(value = ""  )  @Valid @RequestBody(required = false) SessionLimitRuleOpenApiVo sessionLimitRuleOpenApiVo);


    /**
     * PATCH /openapi/v1/{omadacId}/sites/{siteId}/session-limit/rules : Modify session limit rule index
     * Modify session limit rule index.&lt;br/&gt;&lt;br/&gt;The interface requires one of the permissions: &lt;br/&gt;Site Settings Manager Modify
     *
     * @param omadacId Omada ID (required)
     * @param siteId Site ID (required)
     * @param transmissionDragSortIndexOpenapiVo  (optional)
     * @return OK (status code 200)
     */
    @ApiOperation(value = "Modify session limit rule index", nickname = "modifySessionLimitRuleIndex", notes = "Modify session limit rule index.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Session Limit","Session Limit", })
    @ApiResponses(value = { 
        @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) })
    @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/session-limit/rules",
        produces = "*/*", 
        consumes = "application/json",
        method = RequestMethod.PATCH)
    ResponseEntity<OperationResponseWithoutResult> modifySessionLimitRuleIndex(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = ""  )  @Valid @RequestBody(required = false) TransmissionDragSortIndexOpenapiVo transmissionDragSortIndexOpenapiVo);

}
