Skip to content

Commit d732ed2

Browse files
mgmt, regen trafficmanager (Azure#31164)
1 parent cf040d0 commit d732ed2

File tree

61 files changed

+2583
-974
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+2583
-974
lines changed

sdk/resourcemanager/api-specs.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,7 @@
274274
"dir": "azure-resourcemanager-trafficmanager",
275275
"source": "specification/trafficmanager/resource-manager/readme.md",
276276
"package": "com.azure.resourcemanager.trafficmanager",
277-
"args": "--tag=package-2018-04",
278-
"note": "Add back `id`, `type` and `name` properties to `EndpointInner` after code generation"
277+
"args": "--tag=package-2018-04"
279278
},
280279
"msi": {
281280
"dir": "azure-resourcemanager-msi",

sdk/resourcemanager/azure-resourcemanager-trafficmanager/pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
<!-- Configures the Java 9+ run to perform the required module exports, opens, and reads that are necessary for testing but shouldn't be part of the module-info. -->
4343
<javaModulesSurefireArgLine>
4444
--add-opens com.azure.resourcemanager.trafficmanager/com.azure.resourcemanager.trafficmanager=ALL-UNNAMED
45+
46+
--add-opens com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED
4547
</javaModulesSurefireArgLine>
4648
</properties>
4749

sdk/resourcemanager/azure-resourcemanager-trafficmanager/src/main/java/com/azure/resourcemanager/trafficmanager/fluent/EndpointsClient.java

Lines changed: 36 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}

sdk/resourcemanager/azure-resourcemanager-trafficmanager/src/main/java/com/azure/resourcemanager/trafficmanager/fluent/GeographicHierarchiesClient.java

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ public interface GeographicHierarchiesClient {
1818
*
1919
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2020
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
21-
* @return the default Geographic Hierarchy used by the Geographic traffic routing method.
21+
* @return the default Geographic Hierarchy used by the Geographic traffic routing method along with {@link
22+
* Response} on successful completion of {@link Mono}.
2223
*/
2324
@ServiceMethod(returns = ReturnType.SINGLE)
2425
Mono<Response<TrafficManagerGeographicHierarchyInner>> getDefaultWithResponseAsync();
@@ -28,30 +29,32 @@ public interface GeographicHierarchiesClient {
2829
*
2930
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
3031
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
31-
* @return the default Geographic Hierarchy used by the Geographic traffic routing method.
32+
* @return the default Geographic Hierarchy used by the Geographic traffic routing method on successful completion
33+
* of {@link Mono}.
3234
*/
3335
@ServiceMethod(returns = ReturnType.SINGLE)
3436
Mono<TrafficManagerGeographicHierarchyInner> getDefaultAsync();
3537

3638
/**
3739
* Gets the default Geographic Hierarchy used by the Geographic traffic routing method.
3840
*
41+
* @param context The context to associate with this operation.
42+
* @throws IllegalArgumentException thrown if parameters fail the validation.
3943
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
4044
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
41-
* @return the default Geographic Hierarchy used by the Geographic traffic routing method.
45+
* @return the default Geographic Hierarchy used by the Geographic traffic routing method along with {@link
46+
* Response}.
4247
*/
4348
@ServiceMethod(returns = ReturnType.SINGLE)
44-
TrafficManagerGeographicHierarchyInner getDefault();
49+
Response<TrafficManagerGeographicHierarchyInner> getDefaultWithResponse(Context context);
4550

4651
/**
4752
* Gets the default Geographic Hierarchy used by the Geographic traffic routing method.
4853
*
49-
* @param context The context to associate with this operation.
50-
* @throws IllegalArgumentException thrown if parameters fail the validation.
5154
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
5255
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
5356
* @return the default Geographic Hierarchy used by the Geographic traffic routing method.
5457
*/
5558
@ServiceMethod(returns = ReturnType.SINGLE)
56-
Response<TrafficManagerGeographicHierarchyInner> getDefaultWithResponse(Context context);
59+
TrafficManagerGeographicHierarchyInner getDefault();
5760
}

0 commit comments

Comments
 (0)