All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cloudfoundry.operations.routes.Routes Maven / Gradle / Ivy

There is a newer version: 5.12.2.RELEASE
Show newest version
/*
 * Copyright 2013-2018 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.cloudfoundry.operations.routes;

import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
 * Main entry point to the Cloud Foundry Routes Operations API
 */
public interface Routes {

    /**
     * Checks whether a route exists
     *
     * @param request the Check Route request
     * @return whether the route exists
     */
    Mono check(CheckRouteRequest request);

    /**
     * Create a new route
     *
     * @param request The Create Route request
     * @return the port number for the route, if applicable
     */
    Mono create(CreateRouteRequest request);

    /**
     * Remove a route
     *
     * @param request the Remove Route request
     * @return a completion indicator
     */
    Mono delete(DeleteRouteRequest request);

    /**
     * Delete orphaned routes.
     * 

* Warning: this operation is not atomic and may delete routes which are in the process of being associated with applications. * * @return a completion indicator */ Mono deleteOrphanedRoutes(DeleteOrphanedRoutesRequest request); /** * Lists the routes and the applications bound to those routes * * @param request the List Routes request * @return the routes and the applications bound to those routes */ Flux list(ListRoutesRequest request); /** * Add a URL route to an application * * @param request the Map Route request * @return the port number for the route, if applicable */ Mono map(MapRouteRequest request); /** * Remove a URL route from an application * * @param request the Unmap Route request * @return a completion indicator */ Mono unmap(UnmapRouteRequest request); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy