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

Move models into same folders as operations in Azure.Java #962

Merged
merged 2 commits into from
Apr 20, 2016
Merged
Show file tree
Hide file tree
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 @@ -8,7 +8,7 @@
* regenerated.
*/

package fixtures.azureparametergrouping.models.implementation.api;
package fixtures.azureparametergrouping.implementation.api;


/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

package fixtures.azureparametergrouping.implementation.api;

import com.microsoft.rest.RestException;
import retrofit2.Response;

/**
* Exception thrown for an invalid response with Error information.
*/
public class ErrorException extends RestException {
/**
* Information about the associated HTTP response.
*/
private Response response;
/**
* The actual response body.
*/
private Error body;
/**
* Initializes a new instance of the ErrorException class.
*/
public ErrorException() { }
/**
* Initializes a new instance of the ErrorException class.
*
* @param message The exception message.
*/
public ErrorException(final String message) {
super(message);
}
/**
* Initializes a new instance of the ErrorException class.
*
* @param message the exception message
* @param cause exception that caused this exception to occur
*/
public ErrorException(final String message, final Throwable cause) {
super(message, cause);
}
/**
* Initializes a new instance of the ErrorException class.
*
* @param cause exception that caused this exception to occur
*/
public ErrorException(final Throwable cause) {
super(cause);
}
/**
* Gets information about the associated HTTP response.
*
* @return the HTTP response
*/
public Response getResponse() {
return response;
}
/**
* Gets the HTTP response body.
*
* @return the response body
*/
public Error getBody() {
return body;
}
/**
* Sets the HTTP response.
*
* @param response the HTTP response
*/
public void setResponse(Response response) {
this.response = response;
}
/**
* Sets the HTTP response body.
*
* @param body the response body
*/
public void setBody(Error body) {
this.body = body;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

package fixtures.azureparametergrouping.models.implementation.api;
package fixtures.azureparametergrouping.implementation.api;

import com.fasterxml.jackson.annotation.JsonProperty;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

package fixtures.azureparametergrouping.models.implementation.api;
package fixtures.azureparametergrouping.implementation.api;

import com.fasterxml.jackson.annotation.JsonProperty;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

package fixtures.azureparametergrouping.models.implementation.api;
package fixtures.azureparametergrouping.implementation.api;

import com.fasterxml.jackson.annotation.JsonProperty;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

package fixtures.azureparametergrouping.models.implementation.api;
package fixtures.azureparametergrouping.implementation.api;

import com.fasterxml.jackson.annotation.JsonProperty;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
import com.microsoft.rest.ServiceResponse;
import com.microsoft.rest.ServiceResponseCallback;
import com.microsoft.rest.Validator;
import fixtures.azureparametergrouping.models.implementation.api.ErrorException;
import fixtures.azureparametergrouping.models.implementation.api.FirstParameterGroupInner;
import fixtures.azureparametergrouping.models.implementation.api.ParameterGroupingPostMultiParamGroupsSecondParamGroupInner;
import fixtures.azureparametergrouping.models.implementation.api.ParameterGroupingPostOptionalParametersInner;
import fixtures.azureparametergrouping.models.implementation.api.ParameterGroupingPostRequiredParametersInner;
import java.io.IOException;
import okhttp3.ResponseBody;
import retrofit2.Call;
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import com.microsoft.rest.ServiceCallback;
import com.microsoft.rest.ServiceResponse;
import com.microsoft.rest.ServiceResponseCallback;
import fixtures.azurereport.models.implementation.api.ErrorException;
import java.io.IOException;
import java.util.Map;
import java.util.UUID;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

package fixtures.azurereport.models.implementation.api;
package fixtures.azurereport.implementation.api;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

package fixtures.azurereport.models.implementation.api;
package fixtures.azurereport.implementation.api;

import com.microsoft.rest.RestException;
import retrofit2.Response;
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
import com.microsoft.rest.ServiceResponse;
import com.microsoft.rest.ServiceResponseCallback;
import com.microsoft.rest.Validator;
import fixtures.azureresource.models.implementation.api.ErrorException;
import fixtures.azureresource.models.implementation.api.FlattenedProductInner;
import fixtures.azureresource.models.implementation.api.ResourceCollectionInner;
import fixtures.azureresource.models.implementation.api.ResourceInner;
import java.io.IOException;
import java.util.List;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

package fixtures.azureresource.models.implementation.api;
package fixtures.azureresource.implementation.api;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

package fixtures.azureresource.models.implementation.api;
package fixtures.azureresource.implementation.api;

import com.microsoft.rest.RestException;
import retrofit2.Response;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

package fixtures.azureresource.models.implementation.api;
package fixtures.azureresource.implementation.api;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

package fixtures.azureresource.models.implementation.api;
package fixtures.azureresource.implementation.api;

import java.util.List;
import java.util.Map;
Expand Down
Loading