Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR logic/resource-manager] Remove default response from Sessions #2384

Merged
merged 1 commit into from
Sep 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import com.microsoft.azure.AzureServiceFuture;
import com.microsoft.azure.CloudException;
import com.microsoft.azure.ListOperationCallback;
import com.microsoft.azure.management.logic.v2018_07_01_preview.ErrorResponseException;
import com.microsoft.azure.Page;
import com.microsoft.azure.PagedList;
import com.microsoft.rest.ServiceCallback;
Expand Down Expand Up @@ -90,7 +89,7 @@ interface IntegrationAccountSessionsService {
* @param resourceGroupName The resource group name.
* @param integrationAccountName The integration account name.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws ErrorResponseException thrown if the request is rejected by server
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the PagedList<IntegrationAccountSessionInner> object if successful.
*/
Expand Down Expand Up @@ -210,7 +209,7 @@ public Observable<ServiceResponse<Page<IntegrationAccountSessionInner>>> call(Re
* @param top The number of items to be included in the result.
* @param filter The filter to apply on the operation. Options for filters include: ChangedTime.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws ErrorResponseException thrown if the request is rejected by server
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the PagedList&lt;IntegrationAccountSessionInner&gt; object if successful.
*/
Expand Down Expand Up @@ -328,10 +327,10 @@ public Observable<ServiceResponse<Page<IntegrationAccountSessionInner>>> call(Re
});
}

private ServiceResponse<PageImpl<IntegrationAccountSessionInner>> listDelegate(Response<ResponseBody> response) throws ErrorResponseException, IOException, IllegalArgumentException {
return this.client.restClient().responseBuilderFactory().<PageImpl<IntegrationAccountSessionInner>, ErrorResponseException>newInstance(this.client.serializerAdapter())
private ServiceResponse<PageImpl<IntegrationAccountSessionInner>> listDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException {
return this.client.restClient().responseBuilderFactory().<PageImpl<IntegrationAccountSessionInner>, CloudException>newInstance(this.client.serializerAdapter())
.register(200, new TypeToken<PageImpl<IntegrationAccountSessionInner>>() { }.getType())
.registerError(ErrorResponseException.class)
.registerError(CloudException.class)
.build(response);
}

Expand All @@ -342,7 +341,7 @@ private ServiceResponse<PageImpl<IntegrationAccountSessionInner>> listDelegate(R
* @param integrationAccountName The integration account name.
* @param sessionName The integration account session name.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws ErrorResponseException thrown if the request is rejected by server
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the IntegrationAccountSessionInner object if successful.
*/
Expand Down Expand Up @@ -421,10 +420,10 @@ public Observable<ServiceResponse<IntegrationAccountSessionInner>> call(Response
});
}

private ServiceResponse<IntegrationAccountSessionInner> getDelegate(Response<ResponseBody> response) throws ErrorResponseException, IOException, IllegalArgumentException {
return this.client.restClient().responseBuilderFactory().<IntegrationAccountSessionInner, ErrorResponseException>newInstance(this.client.serializerAdapter())
private ServiceResponse<IntegrationAccountSessionInner> getDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException {
return this.client.restClient().responseBuilderFactory().<IntegrationAccountSessionInner, CloudException>newInstance(this.client.serializerAdapter())
.register(200, new TypeToken<IntegrationAccountSessionInner>() { }.getType())
.registerError(ErrorResponseException.class)
.registerError(CloudException.class)
.build(response);
}

Expand All @@ -436,7 +435,7 @@ private ServiceResponse<IntegrationAccountSessionInner> getDelegate(Response<Res
* @param sessionName The integration account session name.
* @param session The integration account session.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws ErrorResponseException thrown if the request is rejected by server
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the IntegrationAccountSessionInner object if successful.
*/
Expand Down Expand Up @@ -522,11 +521,11 @@ public Observable<ServiceResponse<IntegrationAccountSessionInner>> call(Response
});
}

private ServiceResponse<IntegrationAccountSessionInner> createOrUpdateDelegate(Response<ResponseBody> response) throws ErrorResponseException, IOException, IllegalArgumentException {
return this.client.restClient().responseBuilderFactory().<IntegrationAccountSessionInner, ErrorResponseException>newInstance(this.client.serializerAdapter())
private ServiceResponse<IntegrationAccountSessionInner> createOrUpdateDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException {
return this.client.restClient().responseBuilderFactory().<IntegrationAccountSessionInner, CloudException>newInstance(this.client.serializerAdapter())
.register(200, new TypeToken<IntegrationAccountSessionInner>() { }.getType())
.register(201, new TypeToken<IntegrationAccountSessionInner>() { }.getType())
.registerError(ErrorResponseException.class)
.registerError(CloudException.class)
.build(response);
}

Expand Down Expand Up @@ -628,7 +627,7 @@ private ServiceResponse<Void> deleteDelegate(Response<ResponseBody> response) th
*
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws ErrorResponseException thrown if the request is rejected by server
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the PagedList&lt;IntegrationAccountSessionInner&gt; object if successful.
*/
Expand Down Expand Up @@ -727,10 +726,10 @@ public Observable<ServiceResponse<Page<IntegrationAccountSessionInner>>> call(Re
});
}

private ServiceResponse<PageImpl<IntegrationAccountSessionInner>> listNextDelegate(Response<ResponseBody> response) throws ErrorResponseException, IOException, IllegalArgumentException {
return this.client.restClient().responseBuilderFactory().<PageImpl<IntegrationAccountSessionInner>, ErrorResponseException>newInstance(this.client.serializerAdapter())
private ServiceResponse<PageImpl<IntegrationAccountSessionInner>> listNextDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException {
return this.client.restClient().responseBuilderFactory().<PageImpl<IntegrationAccountSessionInner>, CloudException>newInstance(this.client.serializerAdapter())
.register(200, new TypeToken<PageImpl<IntegrationAccountSessionInner>>() { }.getType())
.registerError(ErrorResponseException.class)
.registerError(CloudException.class)
.build(response);
}

Expand Down