@POST @Path("/update-permission") @Consumes({"application/json"}) @Produces({"application/json"}) @io.swagger.annotations.ApiOperation( value = "Update Tier Permission", notes = "Update tier permission\n", response = TierDTO.class, responseContainer = "List") @io.swagger.annotations.ApiResponses( value = { @io.swagger.annotations.ApiResponse( code = 200, message = "OK.\nSuccessfully updated tier permissions\n"), @io.swagger.annotations.ApiResponse( code = 400, message = "Bad Request.\nInvalid request or validation error.\n"), @io.swagger.annotations.ApiResponse( code = 403, message = "Forbidden.\nThe request must be conditional but no condition has been specified.\n"), @io.swagger.annotations.ApiResponse( code = 404, message = "Not Found.\nRequested tier does not exist.\n"), @io.swagger.annotations.ApiResponse( code = 412, message = "Precondition Failed.\nThe request has not been performed because one of the preconditions is not met.\n") }) public Response tiersUpdatePermissionPost( @ApiParam(value = "Name of the tier\n", required = true) @QueryParam("tierName") String tierName, @ApiParam( value = "List API or Application or Resource type tiers.\n", required = true, allowableValues = "{values=[api, application, resource]}") @QueryParam("tierLevel") String tierLevel, @ApiParam(value = "Validator for conditional requests; based on ETag.\n") @HeaderParam("If-Match") String ifMatch, @ApiParam(value = "Validator for conditional requests; based on Last Modified header.\n") @HeaderParam("If-Unmodified-Since") String ifUnmodifiedSince, @ApiParam(value = "") TierPermissionDTO permissions) { return delegate.tiersUpdatePermissionPost( tierName, tierLevel, ifMatch, ifUnmodifiedSince, permissions); }
@GET @Path("/{tierLevel}/{tierName}") @Consumes({"application/json"}) @Produces({"application/json"}) @io.swagger.annotations.ApiOperation( value = "Get a Tier", notes = "Get tier details\n", response = TierDTO.class) @io.swagger.annotations.ApiResponses( value = { @io.swagger.annotations.ApiResponse(code = 200, message = "OK.\nTier returned\n"), @io.swagger.annotations.ApiResponse( code = 304, message = "Not Modified.\nEmpty body because the client has already the latest version of the requested resource.\n"), @io.swagger.annotations.ApiResponse( code = 404, message = "Not Found.\nRequested Tier does not exist.\n"), @io.swagger.annotations.ApiResponse( code = 406, message = "Not Acceptable.\nThe requested media type is not supported.\n") }) public Response tiersTierLevelTierNameGet( @ApiParam(value = "Tier name\n", required = true) @PathParam("tierName") String tierName, @ApiParam( value = "List API or Application or Resource type tiers.\n", required = true, allowableValues = "{values=[api, application, resource]}") @PathParam("tierLevel") String tierLevel, @ApiParam( value = "Media types acceptable for the response. Default is JSON.\n", defaultValue = "JSON") @HeaderParam("Accept") String accept, @ApiParam( value = "Validator for conditional requests; based on the ETag of the formerly retrieved\nvariant of the resourec.\n") @HeaderParam("If-None-Match") String ifNoneMatch, @ApiParam( value = "Validator for conditional requests; based on Last Modified header of the\nformerly retrieved variant of the resource.\n") @HeaderParam("If-Modified-Since") String ifModifiedSince) { return delegate.tiersTierLevelTierNameGet( tierName, tierLevel, accept, ifNoneMatch, ifModifiedSince); }
@GET @Path("/{tierLevel}") @Consumes({"application/json"}) @Produces({"application/json"}) @io.swagger.annotations.ApiOperation( value = "List Tiers", notes = "Get available tiers\n", response = TierListDTO.class) @io.swagger.annotations.ApiResponses( value = { @io.swagger.annotations.ApiResponse(code = 200, message = "OK.\nList of tiers returned.\n"), @io.swagger.annotations.ApiResponse( code = 304, message = "Not Modified.\nEmpty body because the client has already the latest version of the requested resource.\n"), @io.swagger.annotations.ApiResponse( code = 406, message = "Not Acceptable.\nThe requested media type is not supported\n") }) public Response tiersTierLevelGet( @ApiParam( value = "List API or Application or Resource type tiers.\n", required = true, allowableValues = "{values=[api, application, resource]}") @PathParam("tierLevel") String tierLevel, @ApiParam(value = "Maximum size of resource array to return.\n", defaultValue = "25") @QueryParam("limit") Integer limit, @ApiParam( value = "Starting point within the complete list of items qualified.\n", defaultValue = "0") @QueryParam("offset") Integer offset, @ApiParam( value = "Media types acceptable for the response. Default is JSON.\n", defaultValue = "JSON") @HeaderParam("Accept") String accept, @ApiParam( value = "Validator for conditional requests; based on the ETag of the formerly retrieved\nvariant of the resourec.\n") @HeaderParam("If-None-Match") String ifNoneMatch) { return delegate.tiersTierLevelGet(tierLevel, limit, offset, accept, ifNoneMatch); }
@PUT @Path("/{tierLevel}/{tierName}") @Consumes({"application/json"}) @Produces({"application/json"}) @io.swagger.annotations.ApiOperation( value = "Update a Tier", notes = "Update tier details\n", response = TierDTO.class) @io.swagger.annotations.ApiResponses( value = { @io.swagger.annotations.ApiResponse(code = 200, message = "OK.\nSubscription updated.\n"), @io.swagger.annotations.ApiResponse( code = 400, message = "Bad Request.\nInvalid request or validation error.\n"), @io.swagger.annotations.ApiResponse( code = 404, message = "Not Found.\nThe resource to be updated does not exist.\n"), @io.swagger.annotations.ApiResponse( code = 412, message = "Precondition Failed.\nThe request has not been performed because one of the preconditions is not met.\n") }) public Response tiersTierLevelTierNamePut( @ApiParam(value = "Tier name\n", required = true) @PathParam("tierName") String tierName, @ApiParam(value = "Tier object that needs to be modified\n", required = true) TierDTO body, @ApiParam( value = "List API or Application or Resource type tiers.\n", required = true, allowableValues = "{values=[api, application, resource]}") @PathParam("tierLevel") String tierLevel, @ApiParam( value = "Media type of the entity in the body. Default is JSON.\n", required = true, defaultValue = "JSON") @HeaderParam("Content-Type") String contentType, @ApiParam(value = "Validator for conditional requests; based on ETag.\n") @HeaderParam("If-Match") String ifMatch, @ApiParam(value = "Validator for conditional requests; based on Last Modified header.\n") @HeaderParam("If-Unmodified-Since") String ifUnmodifiedSince) { return delegate.tiersTierLevelTierNamePut( tierName, body, tierLevel, contentType, ifMatch, ifUnmodifiedSince); }
@POST @Path("/{tierLevel}") @Consumes({"application/json"}) @Produces({"application/json"}) @io.swagger.annotations.ApiOperation( value = "Add a new Tier", notes = "Add a new tier\n", response = TierDTO.class) @io.swagger.annotations.ApiResponses( value = { @io.swagger.annotations.ApiResponse( code = 201, message = "Created.\nSuccessful response with the newly created object as entity in the body.\nLocation header contains URL of newly created entity.\n"), @io.swagger.annotations.ApiResponse( code = 400, message = "Bad Request.\nInvalid request or validation error\n"), @io.swagger.annotations.ApiResponse( code = 415, message = "Unsupported media type.\nThe entity of the request was in a not supported format.\n") }) public Response tiersTierLevelPost( @ApiParam(value = "Tier object that should to be added\n", required = true) TierDTO body, @ApiParam( value = "List API or Application or Resource type tiers.\n", required = true, allowableValues = "{values=[api, application, resource]}") @PathParam("tierLevel") String tierLevel, @ApiParam( value = "Media type of the entity in the body. Default is JSON.\n", required = true, defaultValue = "JSON") @HeaderParam("Content-Type") String contentType) { return delegate.tiersTierLevelPost(body, tierLevel, contentType); }
@DELETE @Path("/{tierLevel}/{tierName}") @Consumes({"application/json"}) @Produces({"application/json"}) @io.swagger.annotations.ApiOperation( value = "Delete a Tier", notes = "Remove a tier\n", response = void.class) @io.swagger.annotations.ApiResponses( value = { @io.swagger.annotations.ApiResponse( code = 200, message = "OK.\nResource successfully deleted.\n"), @io.swagger.annotations.ApiResponse( code = 404, message = "Not Found.\nResource to be deleted does not exist.\n"), @io.swagger.annotations.ApiResponse( code = 412, message = "Precondition Failed.\nThe request has not been performed because one of the preconditions is not met.\n") }) public Response tiersTierLevelTierNameDelete( @ApiParam(value = "Tier name\n", required = true) @PathParam("tierName") String tierName, @ApiParam( value = "List API or Application or Resource type tiers.\n", required = true, allowableValues = "{values=[api, application, resource]}") @PathParam("tierLevel") String tierLevel, @ApiParam(value = "Validator for conditional requests; based on ETag.\n") @HeaderParam("If-Match") String ifMatch, @ApiParam(value = "Validator for conditional requests; based on Last Modified header.\n") @HeaderParam("If-Unmodified-Since") String ifUnmodifiedSince) { return delegate.tiersTierLevelTierNameDelete(tierName, tierLevel, ifMatch, ifUnmodifiedSince); }