@@ -25,7 +25,8 @@ public interface EndpointsClient {
2525 * @throws IllegalArgumentException thrown if parameters fail the validation.
2626 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2727 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
28- * @return class representing a Traffic Manager endpoint.
28+ * @return class representing a Traffic Manager endpoint along with {@link Response} on successful completion of
29+ * {@link Mono}.
2930 */
3031 @ ServiceMethod (returns = ReturnType .SINGLE )
3132 Mono <Response <EndpointInner >> updateWithResponseAsync (
@@ -46,7 +47,7 @@ Mono<Response<EndpointInner>> updateWithResponseAsync(
4647 * @throws IllegalArgumentException thrown if parameters fail the validation.
4748 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
4849 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
49- * @return class representing a Traffic Manager endpoint.
50+ * @return class representing a Traffic Manager endpoint on successful completion of {@link Mono} .
5051 */
5152 @ ServiceMethod (returns = ReturnType .SINGLE )
5253 Mono <EndpointInner > updateAsync (
@@ -64,18 +65,20 @@ Mono<EndpointInner> updateAsync(
6465 * @param endpointType The type of the Traffic Manager endpoint to be updated.
6566 * @param endpointName The name of the Traffic Manager endpoint to be updated.
6667 * @param parameters The Traffic Manager endpoint parameters supplied to the Update operation.
68+ * @param context The context to associate with this operation.
6769 * @throws IllegalArgumentException thrown if parameters fail the validation.
6870 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
6971 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
70- * @return class representing a Traffic Manager endpoint.
72+ * @return class representing a Traffic Manager endpoint along with {@link Response} .
7173 */
7274 @ ServiceMethod (returns = ReturnType .SINGLE )
73- EndpointInner update (
75+ Response < EndpointInner > updateWithResponse (
7476 String resourceGroupName ,
7577 String profileName ,
7678 String endpointType ,
7779 String endpointName ,
78- EndpointInner parameters );
80+ EndpointInner parameters ,
81+ Context context );
7982
8083 /**
8184 * Update a Traffic Manager endpoint.
@@ -85,20 +88,18 @@ EndpointInner update(
8588 * @param endpointType The type of the Traffic Manager endpoint to be updated.
8689 * @param endpointName The name of the Traffic Manager endpoint to be updated.
8790 * @param parameters The Traffic Manager endpoint parameters supplied to the Update operation.
88- * @param context The context to associate with this operation.
8991 * @throws IllegalArgumentException thrown if parameters fail the validation.
9092 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
9193 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
9294 * @return class representing a Traffic Manager endpoint.
9395 */
9496 @ ServiceMethod (returns = ReturnType .SINGLE )
95- Response < EndpointInner > updateWithResponse (
97+ EndpointInner update (
9698 String resourceGroupName ,
9799 String profileName ,
98100 String endpointType ,
99101 String endpointName ,
100- EndpointInner parameters ,
101- Context context );
102+ EndpointInner parameters );
102103
103104 /**
104105 * Gets a Traffic Manager endpoint.
@@ -110,7 +111,7 @@ Response<EndpointInner> updateWithResponse(
110111 * @throws IllegalArgumentException thrown if parameters fail the validation.
111112 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
112113 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
113- * @return a Traffic Manager endpoint.
114+ * @return a Traffic Manager endpoint along with {@link Response} on successful completion of {@link Mono} .
114115 */
115116 @ ServiceMethod (returns = ReturnType .SINGLE )
116117 Mono <Response <EndpointInner >> getWithResponseAsync (
@@ -126,7 +127,7 @@ Mono<Response<EndpointInner>> getWithResponseAsync(
126127 * @throws IllegalArgumentException thrown if parameters fail the validation.
127128 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
128129 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
129- * @return a Traffic Manager endpoint.
130+ * @return a Traffic Manager endpoint on successful completion of {@link Mono} .
130131 */
131132 @ ServiceMethod (returns = ReturnType .SINGLE )
132133 Mono <EndpointInner > getAsync (
@@ -139,13 +140,15 @@ Mono<EndpointInner> getAsync(
139140 * @param profileName The name of the Traffic Manager profile.
140141 * @param endpointType The type of the Traffic Manager endpoint.
141142 * @param endpointName The name of the Traffic Manager endpoint.
143+ * @param context The context to associate with this operation.
142144 * @throws IllegalArgumentException thrown if parameters fail the validation.
143145 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
144146 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
145- * @return a Traffic Manager endpoint.
147+ * @return a Traffic Manager endpoint along with {@link Response} .
146148 */
147149 @ ServiceMethod (returns = ReturnType .SINGLE )
148- EndpointInner get (String resourceGroupName , String profileName , String endpointType , String endpointName );
150+ Response <EndpointInner > getWithResponse (
151+ String resourceGroupName , String profileName , String endpointType , String endpointName , Context context );
149152
150153 /**
151154 * Gets a Traffic Manager endpoint.
@@ -154,15 +157,13 @@ Mono<EndpointInner> getAsync(
154157 * @param profileName The name of the Traffic Manager profile.
155158 * @param endpointType The type of the Traffic Manager endpoint.
156159 * @param endpointName The name of the Traffic Manager endpoint.
157- * @param context The context to associate with this operation.
158160 * @throws IllegalArgumentException thrown if parameters fail the validation.
159161 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
160162 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
161163 * @return a Traffic Manager endpoint.
162164 */
163165 @ ServiceMethod (returns = ReturnType .SINGLE )
164- Response <EndpointInner > getWithResponse (
165- String resourceGroupName , String profileName , String endpointType , String endpointName , Context context );
166+ EndpointInner get (String resourceGroupName , String profileName , String endpointType , String endpointName );
166167
167168 /**
168169 * Create or update a Traffic Manager endpoint.
@@ -176,7 +177,8 @@ Response<EndpointInner> getWithResponse(
176177 * @throws IllegalArgumentException thrown if parameters fail the validation.
177178 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
178179 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
179- * @return class representing a Traffic Manager endpoint.
180+ * @return class representing a Traffic Manager endpoint along with {@link Response} on successful completion of
181+ * {@link Mono}.
180182 */
181183 @ ServiceMethod (returns = ReturnType .SINGLE )
182184 Mono <Response <EndpointInner >> createOrUpdateWithResponseAsync (
@@ -198,7 +200,7 @@ Mono<Response<EndpointInner>> createOrUpdateWithResponseAsync(
198200 * @throws IllegalArgumentException thrown if parameters fail the validation.
199201 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
200202 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
201- * @return class representing a Traffic Manager endpoint.
203+ * @return class representing a Traffic Manager endpoint on successful completion of {@link Mono} .
202204 */
203205 @ ServiceMethod (returns = ReturnType .SINGLE )
204206 Mono <EndpointInner > createOrUpdateAsync (
@@ -217,18 +219,20 @@ Mono<EndpointInner> createOrUpdateAsync(
217219 * @param endpointType The type of the Traffic Manager endpoint to be created or updated.
218220 * @param endpointName The name of the Traffic Manager endpoint to be created or updated.
219221 * @param parameters The Traffic Manager endpoint parameters supplied to the CreateOrUpdate operation.
222+ * @param context The context to associate with this operation.
220223 * @throws IllegalArgumentException thrown if parameters fail the validation.
221224 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
222225 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
223- * @return class representing a Traffic Manager endpoint.
226+ * @return class representing a Traffic Manager endpoint along with {@link Response} .
224227 */
225228 @ ServiceMethod (returns = ReturnType .SINGLE )
226- EndpointInner createOrUpdate (
229+ Response < EndpointInner > createOrUpdateWithResponse (
227230 String resourceGroupName ,
228231 String profileName ,
229232 String endpointType ,
230233 String endpointName ,
231- EndpointInner parameters );
234+ EndpointInner parameters ,
235+ Context context );
232236
233237 /**
234238 * Create or update a Traffic Manager endpoint.
@@ -239,20 +243,18 @@ EndpointInner createOrUpdate(
239243 * @param endpointType The type of the Traffic Manager endpoint to be created or updated.
240244 * @param endpointName The name of the Traffic Manager endpoint to be created or updated.
241245 * @param parameters The Traffic Manager endpoint parameters supplied to the CreateOrUpdate operation.
242- * @param context The context to associate with this operation.
243246 * @throws IllegalArgumentException thrown if parameters fail the validation.
244247 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
245248 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
246249 * @return class representing a Traffic Manager endpoint.
247250 */
248251 @ ServiceMethod (returns = ReturnType .SINGLE )
249- Response < EndpointInner > createOrUpdateWithResponse (
252+ EndpointInner createOrUpdate (
250253 String resourceGroupName ,
251254 String profileName ,
252255 String endpointType ,
253256 String endpointName ,
254- EndpointInner parameters ,
255- Context context );
257+ EndpointInner parameters );
256258
257259 /**
258260 * Deletes a Traffic Manager endpoint.
@@ -264,7 +266,8 @@ Response<EndpointInner> createOrUpdateWithResponse(
264266 * @throws IllegalArgumentException thrown if parameters fail the validation.
265267 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
266268 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
267- * @return the result of the request or operation.
269+ * @return the result of the request or operation along with {@link Response} on successful completion of {@link
270+ * Mono}.
268271 */
269272 @ ServiceMethod (returns = ReturnType .SINGLE )
270273 Mono <Response <DeleteOperationResultInner >> deleteWithResponseAsync (
@@ -280,7 +283,7 @@ Mono<Response<DeleteOperationResultInner>> deleteWithResponseAsync(
280283 * @throws IllegalArgumentException thrown if parameters fail the validation.
281284 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
282285 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
283- * @return the result of the request or operation.
286+ * @return the result of the request or operation on successful completion of {@link Mono} .
284287 */
285288 @ ServiceMethod (returns = ReturnType .SINGLE )
286289 Mono <DeleteOperationResultInner > deleteAsync (
@@ -293,14 +296,15 @@ Mono<DeleteOperationResultInner> deleteAsync(
293296 * @param profileName The name of the Traffic Manager profile.
294297 * @param endpointType The type of the Traffic Manager endpoint to be deleted.
295298 * @param endpointName The name of the Traffic Manager endpoint to be deleted.
299+ * @param context The context to associate with this operation.
296300 * @throws IllegalArgumentException thrown if parameters fail the validation.
297301 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
298302 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
299- * @return the result of the request or operation.
303+ * @return the result of the request or operation along with {@link Response} .
300304 */
301305 @ ServiceMethod (returns = ReturnType .SINGLE )
302- DeleteOperationResultInner delete (
303- String resourceGroupName , String profileName , String endpointType , String endpointName );
306+ Response < DeleteOperationResultInner > deleteWithResponse (
307+ String resourceGroupName , String profileName , String endpointType , String endpointName , Context context );
304308
305309 /**
306310 * Deletes a Traffic Manager endpoint.
@@ -309,13 +313,12 @@ DeleteOperationResultInner delete(
309313 * @param profileName The name of the Traffic Manager profile.
310314 * @param endpointType The type of the Traffic Manager endpoint to be deleted.
311315 * @param endpointName The name of the Traffic Manager endpoint to be deleted.
312- * @param context The context to associate with this operation.
313316 * @throws IllegalArgumentException thrown if parameters fail the validation.
314317 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
315318 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
316319 * @return the result of the request or operation.
317320 */
318321 @ ServiceMethod (returns = ReturnType .SINGLE )
319- Response < DeleteOperationResultInner > deleteWithResponse (
320- String resourceGroupName , String profileName , String endpointType , String endpointName , Context context );
322+ DeleteOperationResultInner delete (
323+ String resourceGroupName , String profileName , String endpointType , String endpointName );
321324}
0 commit comments