forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Azure#12 from samvaity/text-analytics
Text analytics update error model
- Loading branch information
Showing
18 changed files
with
293 additions
and
203 deletions.
There are no files selected for viewing
145 changes: 79 additions & 66 deletions
145
...e-cs-textanalytics/src/main/java/com/azure/cs/textanalytics/TextAnalyticsAsyncClient.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 0 additions & 66 deletions
66
...azure-cs-textanalytics/src/main/java/com/azure/cs/textanalytics/models/DocumentError.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
129 changes: 129 additions & 0 deletions
129
...cs/azure-cs-textanalytics/src/main/java/com/azure/cs/textanalytics/models/InnerError.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
|
||
package com.azure.cs.textanalytics.models; | ||
|
||
import com.azure.core.annotation.Fluent; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* The InnerError model. | ||
*/ | ||
@Fluent | ||
public final class InnerError { | ||
/* | ||
* Error code. Possible values include: 'invalidParameterValue', | ||
* 'invalidRequestBodyFormat', 'emptyRequest', 'missingInputRecords', | ||
* 'invalidDocument', 'modelVersionIncorrect', 'invalidDocumentBatch', | ||
* 'unsupportedLanguageCode', 'invalidCountryHint' | ||
*/ | ||
@JsonProperty(value = "code", required = true) | ||
private String code; | ||
|
||
/* | ||
* Error message. | ||
*/ | ||
@JsonProperty(value = "message", required = true) | ||
private String message; | ||
|
||
/* | ||
* Error target. | ||
*/ | ||
@JsonProperty(value = "target") | ||
private String target; | ||
|
||
/* | ||
* Inner error contains more specific information. | ||
*/ | ||
@JsonProperty(value = "innererror") | ||
private InnerError innererror; | ||
|
||
/** | ||
* Get the code property: Error code. Possible values include: | ||
* 'invalidParameterValue', 'invalidRequestBodyFormat', 'emptyRequest', | ||
* 'missingInputRecords', 'invalidDocument', 'modelVersionIncorrect', | ||
* 'invalidDocumentBatch', 'unsupportedLanguageCode', 'invalidCountryHint'. | ||
* | ||
* @return the code value. | ||
*/ | ||
public String getCode() { | ||
return this.code; | ||
} | ||
|
||
/** | ||
* Set the code property: Error code. Possible values include: | ||
* 'invalidParameterValue', 'invalidRequestBodyFormat', 'emptyRequest', | ||
* 'missingInputRecords', 'invalidDocument', 'modelVersionIncorrect', | ||
* 'invalidDocumentBatch', 'unsupportedLanguageCode', 'invalidCountryHint'. | ||
* | ||
* @param code the code value to set. | ||
* @return the InnerError object itself. | ||
*/ | ||
public InnerError setCode(String code) { | ||
this.code = code; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the message property: Error message. | ||
* | ||
* @return the message value. | ||
*/ | ||
public String getMessage() { | ||
return this.message; | ||
} | ||
|
||
/** | ||
* Set the message property: Error message. | ||
* | ||
* @param message the message value to set. | ||
* @return the InnerError object itself. | ||
*/ | ||
public InnerError setMessage(String message) { | ||
this.message = message; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the target property: Error target. | ||
* | ||
* @return the target value. | ||
*/ | ||
public String getTarget() { | ||
return this.target; | ||
} | ||
|
||
/** | ||
* Set the target property: Error target. | ||
* | ||
* @param target the target value to set. | ||
* @return the InnerError object itself. | ||
*/ | ||
public InnerError setTarget(String target) { | ||
this.target = target; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the innererror property: Inner error contains more specific | ||
* information. | ||
* | ||
* @return the innererror value. | ||
*/ | ||
public InnerError getInnererror() { | ||
return this.innererror; | ||
} | ||
|
||
/** | ||
* Set the innererror property: Inner error contains more specific | ||
* information. | ||
* | ||
* @param innererror the innererror value to set. | ||
* @return the InnerError object itself. | ||
*/ | ||
public InnerError setInnererror(InnerError innererror) { | ||
this.innererror = innererror; | ||
return this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.