Skip to content

Commit

Permalink
Merge pull request #962 from jianghaolu/javavnext
Browse files Browse the repository at this point in the history
Move models into same folders as operations in Azure.Java
  • Loading branch information
jianghaolu committed Apr 20, 2016
2 parents 0e14ae1 + 2b0bcee commit f91e917
Show file tree
Hide file tree
Showing 155 changed files with 338 additions and 897 deletions.
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

0 comments on commit f91e917

Please sign in to comment.