|
| 1 | +/** |
| 2 | + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. |
| 3 | + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. |
| 4 | + */ |
| 5 | +package com.oracle.bmc.apigateway; |
| 6 | + |
| 7 | +import com.oracle.bmc.apigateway.requests.*; |
| 8 | +import com.oracle.bmc.apigateway.responses.*; |
| 9 | + |
| 10 | +/** |
| 11 | + * API for the API Gateway service. Use this API to manage gateways, deployments, and related items. |
| 12 | + * For more information, see |
| 13 | + * [Overview of API Gateway](https://docs.cloud.oracle.com/iaas/Content/APIGateway/Concepts/apigatewayoverview.htm). |
| 14 | + * |
| 15 | + */ |
| 16 | +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190501") |
| 17 | +public interface ApiGatewayAsync extends AutoCloseable { |
| 18 | + |
| 19 | + /** |
| 20 | + * Sets the endpoint to call (ex, https://www.example.com). |
| 21 | + * @param endpoint The endpoint of the serice. |
| 22 | + */ |
| 23 | + void setEndpoint(String endpoint); |
| 24 | + |
| 25 | + /** |
| 26 | + * Gets the set endpoint for REST call (ex, https://www.example.com) |
| 27 | + */ |
| 28 | + String getEndpoint(); |
| 29 | + |
| 30 | + /** |
| 31 | + * Sets the region to call (ex, Region.US_PHOENIX_1). |
| 32 | + * <p> |
| 33 | + * 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. |
| 34 | + * @param region The region of the service. |
| 35 | + */ |
| 36 | + void setRegion(com.oracle.bmc.Region region); |
| 37 | + |
| 38 | + /** |
| 39 | + * Sets the region to call (ex, 'us-phoenix-1'). |
| 40 | + * <p> |
| 41 | + * Note, this will first try to map the region ID to a known Region and call |
| 42 | + * {@link #setRegion(Region) setRegion}. |
| 43 | + * <p> |
| 44 | + * If no known Region could be determined, it will create an endpoint based on the |
| 45 | + * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} |
| 46 | + * and then call {@link #setEndpoint(String) setEndpoint}. |
| 47 | + * @param regionId The public region ID. |
| 48 | + */ |
| 49 | + void setRegion(String regionId); |
| 50 | + |
| 51 | + /** |
| 52 | + * Changes the certificate compartment. |
| 53 | + * |
| 54 | + * @param request The request object containing the details to send |
| 55 | + * @param handler The request handler to invoke upon completion, may be null. |
| 56 | + * @return A Future that can be used to get the response if no AsyncHandler was |
| 57 | + * provided. Note, if you provide an AsyncHandler and use the Future, some |
| 58 | + * types of responses (like java.io.InputStream) may not be able to be read in |
| 59 | + * both places as the underlying stream may only be consumed once. |
| 60 | + */ |
| 61 | + java.util.concurrent.Future<ChangeCertificateCompartmentResponse> changeCertificateCompartment( |
| 62 | + ChangeCertificateCompartmentRequest request, |
| 63 | + com.oracle.bmc.responses.AsyncHandler< |
| 64 | + ChangeCertificateCompartmentRequest, |
| 65 | + ChangeCertificateCompartmentResponse> |
| 66 | + handler); |
| 67 | + |
| 68 | + /** |
| 69 | + * Creates a new Certificate. |
| 70 | + * |
| 71 | + * |
| 72 | + * @param request The request object containing the details to send |
| 73 | + * @param handler The request handler to invoke upon completion, may be null. |
| 74 | + * @return A Future that can be used to get the response if no AsyncHandler was |
| 75 | + * provided. Note, if you provide an AsyncHandler and use the Future, some |
| 76 | + * types of responses (like java.io.InputStream) may not be able to be read in |
| 77 | + * both places as the underlying stream may only be consumed once. |
| 78 | + */ |
| 79 | + java.util.concurrent.Future<CreateCertificateResponse> createCertificate( |
| 80 | + CreateCertificateRequest request, |
| 81 | + com.oracle.bmc.responses.AsyncHandler< |
| 82 | + CreateCertificateRequest, CreateCertificateResponse> |
| 83 | + handler); |
| 84 | + |
| 85 | + /** |
| 86 | + * Deletes the certificate with the given identifier. |
| 87 | + * |
| 88 | + * @param request The request object containing the details to send |
| 89 | + * @param handler The request handler to invoke upon completion, may be null. |
| 90 | + * @return A Future that can be used to get the response if no AsyncHandler was |
| 91 | + * provided. Note, if you provide an AsyncHandler and use the Future, some |
| 92 | + * types of responses (like java.io.InputStream) may not be able to be read in |
| 93 | + * both places as the underlying stream may only be consumed once. |
| 94 | + */ |
| 95 | + java.util.concurrent.Future<DeleteCertificateResponse> deleteCertificate( |
| 96 | + DeleteCertificateRequest request, |
| 97 | + com.oracle.bmc.responses.AsyncHandler< |
| 98 | + DeleteCertificateRequest, DeleteCertificateResponse> |
| 99 | + handler); |
| 100 | + |
| 101 | + /** |
| 102 | + * Gets a certificate by identifier. |
| 103 | + * |
| 104 | + * @param request The request object containing the details to send |
| 105 | + * @param handler The request handler to invoke upon completion, may be null. |
| 106 | + * @return A Future that can be used to get the response if no AsyncHandler was |
| 107 | + * provided. Note, if you provide an AsyncHandler and use the Future, some |
| 108 | + * types of responses (like java.io.InputStream) may not be able to be read in |
| 109 | + * both places as the underlying stream may only be consumed once. |
| 110 | + */ |
| 111 | + java.util.concurrent.Future<GetCertificateResponse> getCertificate( |
| 112 | + GetCertificateRequest request, |
| 113 | + com.oracle.bmc.responses.AsyncHandler<GetCertificateRequest, GetCertificateResponse> |
| 114 | + handler); |
| 115 | + |
| 116 | + /** |
| 117 | + * Returns a list of certificates. |
| 118 | + * |
| 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<ListCertificatesResponse> listCertificates( |
| 128 | + ListCertificatesRequest request, |
| 129 | + com.oracle.bmc.responses.AsyncHandler<ListCertificatesRequest, ListCertificatesResponse> |
| 130 | + handler); |
| 131 | + |
| 132 | + /** |
| 133 | + * Updates a certificate with the given identifier |
| 134 | + * |
| 135 | + * @param request The request object containing the details to send |
| 136 | + * @param handler The request handler to invoke upon completion, may be null. |
| 137 | + * @return A Future that can be used to get the response if no AsyncHandler was |
| 138 | + * provided. Note, if you provide an AsyncHandler and use the Future, some |
| 139 | + * types of responses (like java.io.InputStream) may not be able to be read in |
| 140 | + * both places as the underlying stream may only be consumed once. |
| 141 | + */ |
| 142 | + java.util.concurrent.Future<UpdateCertificateResponse> updateCertificate( |
| 143 | + UpdateCertificateRequest request, |
| 144 | + com.oracle.bmc.responses.AsyncHandler< |
| 145 | + UpdateCertificateRequest, UpdateCertificateResponse> |
| 146 | + handler); |
| 147 | +} |
0 commit comments