|
| 1 | +// Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | +// Licensed under the MIT License. |
| 3 | +// Code generated by Microsoft (R) AutoRest Code Generator. |
| 4 | + |
| 5 | +package com.azure.resourcemanager.datafactory.fluent; |
| 6 | + |
| 7 | +import com.azure.core.annotation.ReturnType; |
| 8 | +import com.azure.core.annotation.ServiceMethod; |
| 9 | +import com.azure.core.http.rest.PagedIterable; |
| 10 | +import com.azure.core.http.rest.Response; |
| 11 | +import com.azure.core.util.Context; |
| 12 | +import com.azure.resourcemanager.datafactory.fluent.models.ChangeDataCaptureResourceInner; |
| 13 | + |
| 14 | +/** An instance of this class provides access to all the operations defined in ChangeDataCapturesClient. */ |
| 15 | +public interface ChangeDataCapturesClient { |
| 16 | + /** |
| 17 | + * Lists all resources of type change data capture. |
| 18 | + * |
| 19 | + * @param resourceGroupName The resource group name. |
| 20 | + * @param factoryName The factory name. |
| 21 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 22 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 23 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 24 | + * @return a list of change data capture resources as paginated response with {@link PagedIterable}. |
| 25 | + */ |
| 26 | + @ServiceMethod(returns = ReturnType.COLLECTION) |
| 27 | + PagedIterable<ChangeDataCaptureResourceInner> listByFactory(String resourceGroupName, String factoryName); |
| 28 | + |
| 29 | + /** |
| 30 | + * Lists all resources of type change data capture. |
| 31 | + * |
| 32 | + * @param resourceGroupName The resource group name. |
| 33 | + * @param factoryName The factory name. |
| 34 | + * @param context The context to associate with this operation. |
| 35 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 36 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 37 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 38 | + * @return a list of change data capture resources as paginated response with {@link PagedIterable}. |
| 39 | + */ |
| 40 | + @ServiceMethod(returns = ReturnType.COLLECTION) |
| 41 | + PagedIterable<ChangeDataCaptureResourceInner> listByFactory( |
| 42 | + String resourceGroupName, String factoryName, Context context); |
| 43 | + |
| 44 | + /** |
| 45 | + * Creates or updates a change data capture resource. |
| 46 | + * |
| 47 | + * @param resourceGroupName The resource group name. |
| 48 | + * @param factoryName The factory name. |
| 49 | + * @param changeDataCaptureName The change data capture name. |
| 50 | + * @param changeDataCapture Change data capture resource definition. |
| 51 | + * @param ifMatch ETag of the change data capture entity. Should only be specified for update, for which it should |
| 52 | + * match existing entity or can be * for unconditional update. |
| 53 | + * @param context The context to associate with this operation. |
| 54 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 55 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 56 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 57 | + * @return change data capture resource type along with {@link Response}. |
| 58 | + */ |
| 59 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 60 | + Response<ChangeDataCaptureResourceInner> createOrUpdateWithResponse( |
| 61 | + String resourceGroupName, |
| 62 | + String factoryName, |
| 63 | + String changeDataCaptureName, |
| 64 | + ChangeDataCaptureResourceInner changeDataCapture, |
| 65 | + String ifMatch, |
| 66 | + Context context); |
| 67 | + |
| 68 | + /** |
| 69 | + * Creates or updates a change data capture resource. |
| 70 | + * |
| 71 | + * @param resourceGroupName The resource group name. |
| 72 | + * @param factoryName The factory name. |
| 73 | + * @param changeDataCaptureName The change data capture name. |
| 74 | + * @param changeDataCapture Change data capture resource definition. |
| 75 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 76 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 77 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 78 | + * @return change data capture resource type. |
| 79 | + */ |
| 80 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 81 | + ChangeDataCaptureResourceInner createOrUpdate( |
| 82 | + String resourceGroupName, |
| 83 | + String factoryName, |
| 84 | + String changeDataCaptureName, |
| 85 | + ChangeDataCaptureResourceInner changeDataCapture); |
| 86 | + |
| 87 | + /** |
| 88 | + * Gets a change data capture. |
| 89 | + * |
| 90 | + * @param resourceGroupName The resource group name. |
| 91 | + * @param factoryName The factory name. |
| 92 | + * @param changeDataCaptureName The change data capture name. |
| 93 | + * @param ifNoneMatch ETag of the change data capture entity. Should only be specified for get. If the ETag matches |
| 94 | + * the existing entity tag, or if * was provided, then no content will be returned. |
| 95 | + * @param context The context to associate with this operation. |
| 96 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 97 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 98 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 99 | + * @return a change data capture along with {@link Response}. |
| 100 | + */ |
| 101 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 102 | + Response<ChangeDataCaptureResourceInner> getWithResponse( |
| 103 | + String resourceGroupName, |
| 104 | + String factoryName, |
| 105 | + String changeDataCaptureName, |
| 106 | + String ifNoneMatch, |
| 107 | + Context context); |
| 108 | + |
| 109 | + /** |
| 110 | + * Gets a change data capture. |
| 111 | + * |
| 112 | + * @param resourceGroupName The resource group name. |
| 113 | + * @param factoryName The factory name. |
| 114 | + * @param changeDataCaptureName The change data capture name. |
| 115 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 116 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 117 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 118 | + * @return a change data capture. |
| 119 | + */ |
| 120 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 121 | + ChangeDataCaptureResourceInner get(String resourceGroupName, String factoryName, String changeDataCaptureName); |
| 122 | + |
| 123 | + /** |
| 124 | + * Deletes a change data capture. |
| 125 | + * |
| 126 | + * @param resourceGroupName The resource group name. |
| 127 | + * @param factoryName The factory name. |
| 128 | + * @param changeDataCaptureName The change data capture name. |
| 129 | + * @param context The context to associate with this operation. |
| 130 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 131 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 132 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 133 | + * @return the {@link Response}. |
| 134 | + */ |
| 135 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 136 | + Response<Void> deleteWithResponse( |
| 137 | + String resourceGroupName, String factoryName, String changeDataCaptureName, Context context); |
| 138 | + |
| 139 | + /** |
| 140 | + * Deletes a change data capture. |
| 141 | + * |
| 142 | + * @param resourceGroupName The resource group name. |
| 143 | + * @param factoryName The factory name. |
| 144 | + * @param changeDataCaptureName The change data capture name. |
| 145 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 146 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 147 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 148 | + */ |
| 149 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 150 | + void delete(String resourceGroupName, String factoryName, String changeDataCaptureName); |
| 151 | + |
| 152 | + /** |
| 153 | + * Starts a change data capture. |
| 154 | + * |
| 155 | + * @param resourceGroupName The resource group name. |
| 156 | + * @param factoryName The factory name. |
| 157 | + * @param changeDataCaptureName The change data capture name. |
| 158 | + * @param context The context to associate with this operation. |
| 159 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 160 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 161 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 162 | + * @return the {@link Response}. |
| 163 | + */ |
| 164 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 165 | + Response<Void> startWithResponse( |
| 166 | + String resourceGroupName, String factoryName, String changeDataCaptureName, Context context); |
| 167 | + |
| 168 | + /** |
| 169 | + * Starts a change data capture. |
| 170 | + * |
| 171 | + * @param resourceGroupName The resource group name. |
| 172 | + * @param factoryName The factory name. |
| 173 | + * @param changeDataCaptureName The change data capture name. |
| 174 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 175 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 176 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 177 | + */ |
| 178 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 179 | + void start(String resourceGroupName, String factoryName, String changeDataCaptureName); |
| 180 | + |
| 181 | + /** |
| 182 | + * Stops a change data capture. |
| 183 | + * |
| 184 | + * @param resourceGroupName The resource group name. |
| 185 | + * @param factoryName The factory name. |
| 186 | + * @param changeDataCaptureName The change data capture name. |
| 187 | + * @param context The context to associate with this operation. |
| 188 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 189 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 190 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 191 | + * @return the {@link Response}. |
| 192 | + */ |
| 193 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 194 | + Response<Void> stopWithResponse( |
| 195 | + String resourceGroupName, String factoryName, String changeDataCaptureName, Context context); |
| 196 | + |
| 197 | + /** |
| 198 | + * Stops a change data capture. |
| 199 | + * |
| 200 | + * @param resourceGroupName The resource group name. |
| 201 | + * @param factoryName The factory name. |
| 202 | + * @param changeDataCaptureName The change data capture name. |
| 203 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 204 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 205 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 206 | + */ |
| 207 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 208 | + void stop(String resourceGroupName, String factoryName, String changeDataCaptureName); |
| 209 | + |
| 210 | + /** |
| 211 | + * Gets the current status for the change data capture resource. |
| 212 | + * |
| 213 | + * @param resourceGroupName The resource group name. |
| 214 | + * @param factoryName The factory name. |
| 215 | + * @param changeDataCaptureName The change data capture name. |
| 216 | + * @param context The context to associate with this operation. |
| 217 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 218 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 219 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 220 | + * @return the current status for the change data capture resource along with {@link Response}. |
| 221 | + */ |
| 222 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 223 | + Response<String> statusWithResponse( |
| 224 | + String resourceGroupName, String factoryName, String changeDataCaptureName, Context context); |
| 225 | + |
| 226 | + /** |
| 227 | + * Gets the current status for the change data capture resource. |
| 228 | + * |
| 229 | + * @param resourceGroupName The resource group name. |
| 230 | + * @param factoryName The factory name. |
| 231 | + * @param changeDataCaptureName The change data capture name. |
| 232 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 233 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 234 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 235 | + * @return the current status for the change data capture resource. |
| 236 | + */ |
| 237 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 238 | + String status(String resourceGroupName, String factoryName, String changeDataCaptureName); |
| 239 | +} |
0 commit comments