@@ -23,7 +23,7 @@ public interface CustomLocationsClient {
2323 *
2424 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2525 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
26- * @return lists of Custom Locations operations.
26+ * @return lists of Custom Locations operations as paginated response with {@link PagedIterable} .
2727 */
2828 @ ServiceMethod (returns = ReturnType .COLLECTION )
2929 PagedIterable <CustomLocationOperationInner > listOperations ();
@@ -35,7 +35,7 @@ public interface CustomLocationsClient {
3535 * @throws IllegalArgumentException thrown if parameters fail the validation.
3636 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
3737 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
38- * @return lists of Custom Locations operations.
38+ * @return lists of Custom Locations operations as paginated response with {@link PagedIterable} .
3939 */
4040 @ ServiceMethod (returns = ReturnType .COLLECTION )
4141 PagedIterable <CustomLocationOperationInner > listOperations (Context context );
@@ -46,7 +46,8 @@ public interface CustomLocationsClient {
4646 *
4747 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
4848 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
49- * @return a list of Custom Locations in the specified subscription.
49+ * @return a list of Custom Locations in the specified subscription as paginated response with {@link
50+ * PagedIterable}.
5051 */
5152 @ ServiceMethod (returns = ReturnType .COLLECTION )
5253 PagedIterable <CustomLocationInner > list ();
@@ -59,7 +60,8 @@ public interface CustomLocationsClient {
5960 * @throws IllegalArgumentException thrown if parameters fail the validation.
6061 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
6162 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
62- * @return a list of Custom Locations in the specified subscription.
63+ * @return a list of Custom Locations in the specified subscription as paginated response with {@link
64+ * PagedIterable}.
6365 */
6466 @ ServiceMethod (returns = ReturnType .COLLECTION )
6567 PagedIterable <CustomLocationInner > list (Context context );
@@ -72,7 +74,8 @@ public interface CustomLocationsClient {
7274 * @throws IllegalArgumentException thrown if parameters fail the validation.
7375 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
7476 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
75- * @return a list of Custom Locations in the specified subscription and resource group.
77+ * @return a list of Custom Locations in the specified subscription and resource group as paginated response with
78+ * {@link PagedIterable}.
7679 */
7780 @ ServiceMethod (returns = ReturnType .COLLECTION )
7881 PagedIterable <CustomLocationInner > listByResourceGroup (String resourceGroupName );
@@ -86,7 +89,8 @@ public interface CustomLocationsClient {
8689 * @throws IllegalArgumentException thrown if parameters fail the validation.
8790 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
8891 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
89- * @return a list of Custom Locations in the specified subscription and resource group.
92+ * @return a list of Custom Locations in the specified subscription and resource group as paginated response with
93+ * {@link PagedIterable}.
9094 */
9195 @ ServiceMethod (returns = ReturnType .COLLECTION )
9296 PagedIterable <CustomLocationInner > listByResourceGroup (String resourceGroupName , Context context );
@@ -113,7 +117,7 @@ public interface CustomLocationsClient {
113117 * @throws IllegalArgumentException thrown if parameters fail the validation.
114118 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
115119 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
116- * @return the details of the customLocation with a specified resource group and name.
120+ * @return the details of the customLocation with a specified resource group and name along with {@link Response} .
117121 */
118122 @ ServiceMethod (returns = ReturnType .SINGLE )
119123 Response <CustomLocationInner > getByResourceGroupWithResponse (
@@ -128,9 +132,9 @@ Response<CustomLocationInner> getByResourceGroupWithResponse(
128132 * @throws IllegalArgumentException thrown if parameters fail the validation.
129133 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
130134 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
131- * @return custom Locations definition.
135+ * @return the {@link SyncPoller} for polling of custom Locations definition.
132136 */
133- @ ServiceMethod (returns = ReturnType .SINGLE )
137+ @ ServiceMethod (returns = ReturnType .LONG_RUNNING_OPERATION )
134138 SyncPoller <PollResult <CustomLocationInner >, CustomLocationInner > beginCreateOrUpdate (
135139 String resourceGroupName , String resourceName , CustomLocationInner parameters );
136140
@@ -144,9 +148,9 @@ SyncPoller<PollResult<CustomLocationInner>, CustomLocationInner> beginCreateOrUp
144148 * @throws IllegalArgumentException thrown if parameters fail the validation.
145149 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
146150 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
147- * @return custom Locations definition.
151+ * @return the {@link SyncPoller} for polling of custom Locations definition.
148152 */
149- @ ServiceMethod (returns = ReturnType .SINGLE )
153+ @ ServiceMethod (returns = ReturnType .LONG_RUNNING_OPERATION )
150154 SyncPoller <PollResult <CustomLocationInner >, CustomLocationInner > beginCreateOrUpdate (
151155 String resourceGroupName , String resourceName , CustomLocationInner parameters , Context context );
152156
@@ -188,9 +192,9 @@ CustomLocationInner createOrUpdate(
188192 * @throws IllegalArgumentException thrown if parameters fail the validation.
189193 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
190194 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
191- * @return the completion .
195+ * @return the {@link SyncPoller} for polling of long-running operation .
192196 */
193- @ ServiceMethod (returns = ReturnType .SINGLE )
197+ @ ServiceMethod (returns = ReturnType .LONG_RUNNING_OPERATION )
194198 SyncPoller <PollResult <Void >, Void > beginDelete (String resourceGroupName , String resourceName );
195199
196200 /**
@@ -202,9 +206,9 @@ CustomLocationInner createOrUpdate(
202206 * @throws IllegalArgumentException thrown if parameters fail the validation.
203207 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
204208 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
205- * @return the completion .
209+ * @return the {@link SyncPoller} for polling of long-running operation .
206210 */
207- @ ServiceMethod (returns = ReturnType .SINGLE )
211+ @ ServiceMethod (returns = ReturnType .LONG_RUNNING_OPERATION )
208212 SyncPoller <PollResult <Void >, Void > beginDelete (String resourceGroupName , String resourceName , Context context );
209213
210214 /**
@@ -256,7 +260,7 @@ CustomLocationInner createOrUpdate(
256260 * @throws IllegalArgumentException thrown if parameters fail the validation.
257261 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
258262 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
259- * @return custom Locations definition.
263+ * @return custom Locations definition along with {@link Response} .
260264 */
261265 @ ServiceMethod (returns = ReturnType .SINGLE )
262266 Response <CustomLocationInner > updateWithResponse (
@@ -270,7 +274,7 @@ Response<CustomLocationInner> updateWithResponse(
270274 * @throws IllegalArgumentException thrown if parameters fail the validation.
271275 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
272276 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
273- * @return the list of the Enabled Resource Types.
277+ * @return the list of the Enabled Resource Types as paginated response with {@link PagedIterable} .
274278 */
275279 @ ServiceMethod (returns = ReturnType .COLLECTION )
276280 PagedIterable <EnabledResourceTypeInner > listEnabledResourceTypes (String resourceGroupName , String resourceName );
@@ -284,7 +288,7 @@ Response<CustomLocationInner> updateWithResponse(
284288 * @throws IllegalArgumentException thrown if parameters fail the validation.
285289 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
286290 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
287- * @return the list of the Enabled Resource Types.
291+ * @return the list of the Enabled Resource Types as paginated response with {@link PagedIterable} .
288292 */
289293 @ ServiceMethod (returns = ReturnType .COLLECTION )
290294 PagedIterable <EnabledResourceTypeInner > listEnabledResourceTypes (
0 commit comments