|
| 1 | +/** |
| 2 | + * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. |
| 3 | + */ |
| 4 | +package com.oracle.bmc.apigateway; |
| 5 | + |
| 6 | +import com.oracle.bmc.apigateway.requests.*; |
| 7 | +import com.oracle.bmc.apigateway.responses.*; |
| 8 | + |
| 9 | +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190501") |
| 10 | +public interface DeploymentAsync extends AutoCloseable { |
| 11 | + |
| 12 | + /** |
| 13 | + * Sets the endpoint to call (ex, https://www.example.com). |
| 14 | + * @param endpoint The endpoint of the serice. |
| 15 | + */ |
| 16 | + void setEndpoint(String endpoint); |
| 17 | + |
| 18 | + /** |
| 19 | + * Sets the region to call (ex, Region.US_PHOENIX_1). |
| 20 | + * <p> |
| 21 | + * Note, this will call {@link #setEndpoint(String) setEndpoint} after resolving the endpoint. If the service is not available in this region, however, an IllegalArgumentException will be raised. |
| 22 | + * @param region The region of the service. |
| 23 | + */ |
| 24 | + void setRegion(com.oracle.bmc.Region region); |
| 25 | + |
| 26 | + /** |
| 27 | + * Sets the region to call (ex, 'us-phoenix-1'). |
| 28 | + * <p> |
| 29 | + * Note, this will first try to map the region ID to a known Region and call |
| 30 | + * {@link #setRegion(Region) setRegion}. |
| 31 | + * <p> |
| 32 | + * If no known Region could be determined, it will create an endpoint based on the |
| 33 | + * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} |
| 34 | + * and then call {@link #setEndpoint(String) setEndpoint}. |
| 35 | + * @param regionId The public region ID. |
| 36 | + */ |
| 37 | + void setRegion(String regionId); |
| 38 | + |
| 39 | + /** |
| 40 | + * Changes the deployment compartment. |
| 41 | + * |
| 42 | + * @param request The request object containing the details to send |
| 43 | + * @param handler The request handler to invoke upon completion, may be null. |
| 44 | + * @return A Future that can be used to get the response if no AsyncHandler was |
| 45 | + * provided. Note, if you provide an AsyncHandler and use the Future, some |
| 46 | + * types of responses (like java.io.InputStream) may not be able to be read in |
| 47 | + * both places as the underlying stream may only be consumed once. |
| 48 | + */ |
| 49 | + java.util.concurrent.Future<ChangeDeploymentCompartmentResponse> changeDeploymentCompartment( |
| 50 | + ChangeDeploymentCompartmentRequest request, |
| 51 | + com.oracle.bmc.responses.AsyncHandler< |
| 52 | + ChangeDeploymentCompartmentRequest, ChangeDeploymentCompartmentResponse> |
| 53 | + handler); |
| 54 | + |
| 55 | + /** |
| 56 | + * Creates a new deployment. |
| 57 | + * |
| 58 | + * |
| 59 | + * @param request The request object containing the details to send |
| 60 | + * @param handler The request handler to invoke upon completion, may be null. |
| 61 | + * @return A Future that can be used to get the response if no AsyncHandler was |
| 62 | + * provided. Note, if you provide an AsyncHandler and use the Future, some |
| 63 | + * types of responses (like java.io.InputStream) may not be able to be read in |
| 64 | + * both places as the underlying stream may only be consumed once. |
| 65 | + */ |
| 66 | + java.util.concurrent.Future<CreateDeploymentResponse> createDeployment( |
| 67 | + CreateDeploymentRequest request, |
| 68 | + com.oracle.bmc.responses.AsyncHandler<CreateDeploymentRequest, CreateDeploymentResponse> |
| 69 | + handler); |
| 70 | + |
| 71 | + /** |
| 72 | + * Deletes the deployment with the given identifier. |
| 73 | + * |
| 74 | + * @param request The request object containing the details to send |
| 75 | + * @param handler The request handler to invoke upon completion, may be null. |
| 76 | + * @return A Future that can be used to get the response if no AsyncHandler was |
| 77 | + * provided. Note, if you provide an AsyncHandler and use the Future, some |
| 78 | + * types of responses (like java.io.InputStream) may not be able to be read in |
| 79 | + * both places as the underlying stream may only be consumed once. |
| 80 | + */ |
| 81 | + java.util.concurrent.Future<DeleteDeploymentResponse> deleteDeployment( |
| 82 | + DeleteDeploymentRequest request, |
| 83 | + com.oracle.bmc.responses.AsyncHandler<DeleteDeploymentRequest, DeleteDeploymentResponse> |
| 84 | + handler); |
| 85 | + |
| 86 | + /** |
| 87 | + * Gets a deployment by identifier. |
| 88 | + * |
| 89 | + * @param request The request object containing the details to send |
| 90 | + * @param handler The request handler to invoke upon completion, may be null. |
| 91 | + * @return A Future that can be used to get the response if no AsyncHandler was |
| 92 | + * provided. Note, if you provide an AsyncHandler and use the Future, some |
| 93 | + * types of responses (like java.io.InputStream) may not be able to be read in |
| 94 | + * both places as the underlying stream may only be consumed once. |
| 95 | + */ |
| 96 | + java.util.concurrent.Future<GetDeploymentResponse> getDeployment( |
| 97 | + GetDeploymentRequest request, |
| 98 | + com.oracle.bmc.responses.AsyncHandler<GetDeploymentRequest, GetDeploymentResponse> |
| 99 | + handler); |
| 100 | + |
| 101 | + /** |
| 102 | + * Returns a list of deployments. |
| 103 | + * |
| 104 | + * |
| 105 | + * @param request The request object containing the details to send |
| 106 | + * @param handler The request handler to invoke upon completion, may be null. |
| 107 | + * @return A Future that can be used to get the response if no AsyncHandler was |
| 108 | + * provided. Note, if you provide an AsyncHandler and use the Future, some |
| 109 | + * types of responses (like java.io.InputStream) may not be able to be read in |
| 110 | + * both places as the underlying stream may only be consumed once. |
| 111 | + */ |
| 112 | + java.util.concurrent.Future<ListDeploymentsResponse> listDeployments( |
| 113 | + ListDeploymentsRequest request, |
| 114 | + com.oracle.bmc.responses.AsyncHandler<ListDeploymentsRequest, ListDeploymentsResponse> |
| 115 | + handler); |
| 116 | + |
| 117 | + /** |
| 118 | + * Updates the deployment with the given identifier. |
| 119 | + * |
| 120 | + * @param request The request object containing the details to send |
| 121 | + * @param handler The request handler to invoke upon completion, may be null. |
| 122 | + * @return A Future that can be used to get the response if no AsyncHandler was |
| 123 | + * provided. Note, if you provide an AsyncHandler and use the Future, some |
| 124 | + * types of responses (like java.io.InputStream) may not be able to be read in |
| 125 | + * both places as the underlying stream may only be consumed once. |
| 126 | + */ |
| 127 | + java.util.concurrent.Future<UpdateDeploymentResponse> updateDeployment( |
| 128 | + UpdateDeploymentRequest request, |
| 129 | + com.oracle.bmc.responses.AsyncHandler<UpdateDeploymentRequest, UpdateDeploymentResponse> |
| 130 | + handler); |
| 131 | +} |
0 commit comments