org.cloudfoundry.client.v3.packages.Packages Maven / Gradle / Ivy
/*
* Copyright 2013-2021 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.client.v3.packages;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
/**
* Main entry point to the Cloud Foundry Packages Client API
*/
public interface Packages {
/**
* Makes the Copy Package request
*
* @param request the Copy Package request
* @return the response from the Copy Package request
*/
Mono copy(CopyPackageRequest request);
/**
* Makes the Create Package request
*
* @param request the Create Package request
* @return the response from the Create Package request
*/
Mono create(CreatePackageRequest request);
/**
* Makes the Delete Package request
*
* @param request the Delete Package request
* @return the response from the Delete Package request
*/
Mono delete(DeletePackageRequest request);
/**
* Makes the Download the bits for a package request
*
* @param request the Download Package request
* @return the response from the Download Package request
*/
Flux download(DownloadPackageRequest request);
/**
* Makes the Get Package request
*
* @param request the Get Package request
* @return the response from the Get Package request
*/
Mono get(GetPackageRequest request);
/**
* Makes the List Packages request
*
* @param request the List Packages request
* @return the response from the List Packages request
*/
Mono list(ListPackagesRequest request);
/**
* Makes the List Droplets request
*
* @param request the List Droplets request
* @return the response from the List Droplets request
*/
Mono listDroplets(ListPackageDropletsRequest request);
/**
* Makes the Upload Package request
*
* @param request the Upload Package request
* @return the response from the Upload Package request
*/
Mono upload(UploadPackageRequest request);
}