|
| 1 | +/** |
| 2 | + * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. |
| 3 | + */ |
| 4 | +package com.oracle.bmc.analytics; |
| 5 | + |
| 6 | +import com.oracle.bmc.analytics.requests.*; |
| 7 | +import com.oracle.bmc.analytics.responses.*; |
| 8 | + |
| 9 | +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190331") |
| 10 | +public interface Analytics extends AutoCloseable { |
| 11 | + |
| 12 | + /** |
| 13 | + * Sets the endpoint to call (ex, https://www.example.com). |
| 14 | + * @param endpoint The endpoint of the service. |
| 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 | + * Change the compartment of an Analytics instance. The operation is long-running |
| 41 | + * and creates a new WorkRequest. |
| 42 | + * |
| 43 | + * @param request The request object containing the details to send |
| 44 | + * @return A response object containing details about the completed operation |
| 45 | + * @throws BmcException when an error occurs. |
| 46 | + */ |
| 47 | + ChangeAnalyticsInstanceCompartmentResponse changeAnalyticsInstanceCompartment( |
| 48 | + ChangeAnalyticsInstanceCompartmentRequest request); |
| 49 | + |
| 50 | + /** |
| 51 | + * Create a new AnalyticsInstance in the specified compartment. The operation is long-running |
| 52 | + * and creates a new WorkRequest. |
| 53 | + * |
| 54 | + * @param request The request object containing the details to send |
| 55 | + * @return A response object containing details about the completed operation |
| 56 | + * @throws BmcException when an error occurs. |
| 57 | + */ |
| 58 | + CreateAnalyticsInstanceResponse createAnalyticsInstance(CreateAnalyticsInstanceRequest request); |
| 59 | + |
| 60 | + /** |
| 61 | + * Terminates the specified Analytics instance. The operation is long-running |
| 62 | + * and creates a new WorkRequest. |
| 63 | + * |
| 64 | + * @param request The request object containing the details to send |
| 65 | + * @return A response object containing details about the completed operation |
| 66 | + * @throws BmcException when an error occurs. |
| 67 | + */ |
| 68 | + DeleteAnalyticsInstanceResponse deleteAnalyticsInstance(DeleteAnalyticsInstanceRequest request); |
| 69 | + |
| 70 | + /** |
| 71 | + * Cancel a work request that has not started yet. |
| 72 | + * |
| 73 | + * @param request The request object containing the details to send |
| 74 | + * @return A response object containing details about the completed operation |
| 75 | + * @throws BmcException when an error occurs. |
| 76 | + */ |
| 77 | + DeleteWorkRequestResponse deleteWorkRequest(DeleteWorkRequestRequest request); |
| 78 | + |
| 79 | + /** |
| 80 | + * Info for a specific Analytics instance. |
| 81 | + * |
| 82 | + * @param request The request object containing the details to send |
| 83 | + * @return A response object containing details about the completed operation |
| 84 | + * @throws BmcException when an error occurs. |
| 85 | + */ |
| 86 | + GetAnalyticsInstanceResponse getAnalyticsInstance(GetAnalyticsInstanceRequest request); |
| 87 | + |
| 88 | + /** |
| 89 | + * Get the details of a work request. |
| 90 | + * |
| 91 | + * @param request The request object containing the details to send |
| 92 | + * @return A response object containing details about the completed operation |
| 93 | + * @throws BmcException when an error occurs. |
| 94 | + */ |
| 95 | + GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request); |
| 96 | + |
| 97 | + /** |
| 98 | + * List Analytics instances. |
| 99 | + * |
| 100 | + * @param request The request object containing the details to send |
| 101 | + * @return A response object containing details about the completed operation |
| 102 | + * @throws BmcException when an error occurs. |
| 103 | + */ |
| 104 | + ListAnalyticsInstancesResponse listAnalyticsInstances(ListAnalyticsInstancesRequest request); |
| 105 | + |
| 106 | + /** |
| 107 | + * Get the errors of a work request. |
| 108 | + * |
| 109 | + * @param request The request object containing the details to send |
| 110 | + * @return A response object containing details about the completed operation |
| 111 | + * @throws BmcException when an error occurs. |
| 112 | + */ |
| 113 | + ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request); |
| 114 | + |
| 115 | + /** |
| 116 | + * Get the logs of a work request. |
| 117 | + * |
| 118 | + * @param request The request object containing the details to send |
| 119 | + * @return A response object containing details about the completed operation |
| 120 | + * @throws BmcException when an error occurs. |
| 121 | + */ |
| 122 | + ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request); |
| 123 | + |
| 124 | + /** |
| 125 | + * List all work requests in a compartment. |
| 126 | + * |
| 127 | + * @param request The request object containing the details to send |
| 128 | + * @return A response object containing details about the completed operation |
| 129 | + * @throws BmcException when an error occurs. |
| 130 | + */ |
| 131 | + ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); |
| 132 | + |
| 133 | + /** |
| 134 | + * Scale an Analytics instance up or down. The operation is long-running |
| 135 | + * and creates a new WorkRequest. |
| 136 | + * |
| 137 | + * @param request The request object containing the details to send |
| 138 | + * @return A response object containing details about the completed operation |
| 139 | + * @throws BmcException when an error occurs. |
| 140 | + */ |
| 141 | + ScaleAnalyticsInstanceResponse scaleAnalyticsInstance(ScaleAnalyticsInstanceRequest request); |
| 142 | + |
| 143 | + /** |
| 144 | + * Starts the specified Analytics instance. The operation is long-running |
| 145 | + * and creates a new WorkRequest. |
| 146 | + * |
| 147 | + * @param request The request object containing the details to send |
| 148 | + * @return A response object containing details about the completed operation |
| 149 | + * @throws BmcException when an error occurs. |
| 150 | + */ |
| 151 | + StartAnalyticsInstanceResponse startAnalyticsInstance(StartAnalyticsInstanceRequest request); |
| 152 | + |
| 153 | + /** |
| 154 | + * Stop the specified Analytics instance. The operation is long-running |
| 155 | + * and creates a new WorkRequest. |
| 156 | + * |
| 157 | + * @param request The request object containing the details to send |
| 158 | + * @return A response object containing details about the completed operation |
| 159 | + * @throws BmcException when an error occurs. |
| 160 | + */ |
| 161 | + StopAnalyticsInstanceResponse stopAnalyticsInstance(StopAnalyticsInstanceRequest request); |
| 162 | + |
| 163 | + /** |
| 164 | + * Updates certain fields of an Analytics instance. Fields that are not provided in the |
| 165 | + * request will not be updated. |
| 166 | + * |
| 167 | + * @param request The request object containing the details to send |
| 168 | + * @return A response object containing details about the completed operation |
| 169 | + * @throws BmcException when an error occurs. |
| 170 | + */ |
| 171 | + UpdateAnalyticsInstanceResponse updateAnalyticsInstance(UpdateAnalyticsInstanceRequest request); |
| 172 | + |
| 173 | + /** |
| 174 | + * Gets the pre-configured waiters available for resources for this service. |
| 175 | + * |
| 176 | + * @return The service waiters. |
| 177 | + */ |
| 178 | + AnalyticsWaiters getWaiters(); |
| 179 | + |
| 180 | + /** |
| 181 | + * Gets the pre-configured paginators available for list operations in this service which may return multiple |
| 182 | + * pages of data. These paginators provide an {@link java.lang.Iterable} interface so that service responses, or |
| 183 | + * resources/records, can be iterated through without having to manually deal with pagination and page tokens. |
| 184 | + * |
| 185 | + * @return The service paginators. |
| 186 | + */ |
| 187 | + AnalyticsPaginators getPaginators(); |
| 188 | +} |
0 commit comments