-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* March Preview Regen * Regenerating swagger * Adding `stored` SearchField annotation to FieldBuilder * Include suppression files * Updating Service Version Preview and test re-recordings * Adding Support for Int16 and SByte * Updating FieldBuilderTests and re-recording tests * re-recording tests * re-recording tests * re-recording tests and fixing test failure * re-recording tests * updating code coverage requirements
- Loading branch information
Showing
43 changed files
with
1,905 additions
and
442 deletions.
There are no files selected for viewing
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
98 changes: 49 additions & 49 deletions
98
...arch-documents/src/main/java/com/azure/search/documents/implementation/DocumentsImpl.java
Large diffs are not rendered by default.
Oops, something went wrong.
88 changes: 88 additions & 0 deletions
88
...s/src/main/java/com/azure/search/documents/implementation/models/ErrorAdditionalInfo.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,88 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
// | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
// Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
|
||
package com.azure.search.documents.implementation.models; | ||
|
||
import com.azure.core.annotation.Immutable; | ||
import com.azure.json.JsonReader; | ||
import com.azure.json.JsonSerializable; | ||
import com.azure.json.JsonToken; | ||
import com.azure.json.JsonWriter; | ||
import java.io.IOException; | ||
|
||
/** | ||
* The resource management error additional info. | ||
*/ | ||
@Immutable | ||
public final class ErrorAdditionalInfo implements JsonSerializable<ErrorAdditionalInfo> { | ||
/* | ||
* The additional info type. | ||
*/ | ||
private String type; | ||
|
||
/* | ||
* The additional info. | ||
*/ | ||
private Object info; | ||
|
||
/** | ||
* Creates an instance of ErrorAdditionalInfo class. | ||
*/ | ||
public ErrorAdditionalInfo() { | ||
} | ||
|
||
/** | ||
* Get the type property: The additional info type. | ||
* | ||
* @return the type value. | ||
*/ | ||
public String getType() { | ||
return this.type; | ||
} | ||
|
||
/** | ||
* Get the info property: The additional info. | ||
* | ||
* @return the info value. | ||
*/ | ||
public Object getInfo() { | ||
return this.info; | ||
} | ||
|
||
@Override | ||
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { | ||
jsonWriter.writeStartObject(); | ||
return jsonWriter.writeEndObject(); | ||
} | ||
|
||
/** | ||
* Reads an instance of ErrorAdditionalInfo from the JsonReader. | ||
* | ||
* @param jsonReader The JsonReader being read. | ||
* @return An instance of ErrorAdditionalInfo if the JsonReader was pointing to an instance of it, or null if it was | ||
* pointing to JSON null. | ||
* @throws IOException If an error occurs while reading the ErrorAdditionalInfo. | ||
*/ | ||
public static ErrorAdditionalInfo fromJson(JsonReader jsonReader) throws IOException { | ||
return jsonReader.readObject(reader -> { | ||
ErrorAdditionalInfo deserializedErrorAdditionalInfo = new ErrorAdditionalInfo(); | ||
while (reader.nextToken() != JsonToken.END_OBJECT) { | ||
String fieldName = reader.getFieldName(); | ||
reader.nextToken(); | ||
|
||
if ("type".equals(fieldName)) { | ||
deserializedErrorAdditionalInfo.type = reader.getString(); | ||
} else if ("info".equals(fieldName)) { | ||
deserializedErrorAdditionalInfo.info = reader.readUntyped(); | ||
} else { | ||
reader.skipChildren(); | ||
} | ||
} | ||
|
||
return deserializedErrorAdditionalInfo; | ||
}); | ||
} | ||
} |
140 changes: 140 additions & 0 deletions
140
...documents/src/main/java/com/azure/search/documents/implementation/models/ErrorDetail.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,140 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
// | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
// Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
|
||
package com.azure.search.documents.implementation.models; | ||
|
||
import com.azure.core.annotation.Immutable; | ||
import com.azure.json.JsonReader; | ||
import com.azure.json.JsonSerializable; | ||
import com.azure.json.JsonToken; | ||
import com.azure.json.JsonWriter; | ||
import java.io.IOException; | ||
import java.util.List; | ||
|
||
/** | ||
* The error detail. | ||
*/ | ||
@Immutable | ||
public final class ErrorDetail implements JsonSerializable<ErrorDetail> { | ||
/* | ||
* The error code. | ||
*/ | ||
private String code; | ||
|
||
/* | ||
* The error message. | ||
*/ | ||
private String message; | ||
|
||
/* | ||
* The error target. | ||
*/ | ||
private String target; | ||
|
||
/* | ||
* The error details. | ||
*/ | ||
private List<ErrorDetail> details; | ||
|
||
/* | ||
* The error additional info. | ||
*/ | ||
private List<ErrorAdditionalInfo> additionalInfo; | ||
|
||
/** | ||
* Creates an instance of ErrorDetail class. | ||
*/ | ||
public ErrorDetail() { | ||
} | ||
|
||
/** | ||
* Get the code property: The error code. | ||
* | ||
* @return the code value. | ||
*/ | ||
public String getCode() { | ||
return this.code; | ||
} | ||
|
||
/** | ||
* Get the message property: The error message. | ||
* | ||
* @return the message value. | ||
*/ | ||
public String getMessage() { | ||
return this.message; | ||
} | ||
|
||
/** | ||
* Get the target property: The error target. | ||
* | ||
* @return the target value. | ||
*/ | ||
public String getTarget() { | ||
return this.target; | ||
} | ||
|
||
/** | ||
* Get the details property: The error details. | ||
* | ||
* @return the details value. | ||
*/ | ||
public List<ErrorDetail> getDetails() { | ||
return this.details; | ||
} | ||
|
||
/** | ||
* Get the additionalInfo property: The error additional info. | ||
* | ||
* @return the additionalInfo value. | ||
*/ | ||
public List<ErrorAdditionalInfo> getAdditionalInfo() { | ||
return this.additionalInfo; | ||
} | ||
|
||
@Override | ||
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { | ||
jsonWriter.writeStartObject(); | ||
return jsonWriter.writeEndObject(); | ||
} | ||
|
||
/** | ||
* Reads an instance of ErrorDetail from the JsonReader. | ||
* | ||
* @param jsonReader The JsonReader being read. | ||
* @return An instance of ErrorDetail if the JsonReader was pointing to an instance of it, or null if it was | ||
* pointing to JSON null. | ||
* @throws IOException If an error occurs while reading the ErrorDetail. | ||
*/ | ||
public static ErrorDetail fromJson(JsonReader jsonReader) throws IOException { | ||
return jsonReader.readObject(reader -> { | ||
ErrorDetail deserializedErrorDetail = new ErrorDetail(); | ||
while (reader.nextToken() != JsonToken.END_OBJECT) { | ||
String fieldName = reader.getFieldName(); | ||
reader.nextToken(); | ||
|
||
if ("code".equals(fieldName)) { | ||
deserializedErrorDetail.code = reader.getString(); | ||
} else if ("message".equals(fieldName)) { | ||
deserializedErrorDetail.message = reader.getString(); | ||
} else if ("target".equals(fieldName)) { | ||
deserializedErrorDetail.target = reader.getString(); | ||
} else if ("details".equals(fieldName)) { | ||
List<ErrorDetail> details = reader.readArray(reader1 -> ErrorDetail.fromJson(reader1)); | ||
deserializedErrorDetail.details = details; | ||
} else if ("additionalInfo".equals(fieldName)) { | ||
List<ErrorAdditionalInfo> additionalInfo | ||
= reader.readArray(reader1 -> ErrorAdditionalInfo.fromJson(reader1)); | ||
deserializedErrorDetail.additionalInfo = additionalInfo; | ||
} else { | ||
reader.skipChildren(); | ||
} | ||
} | ||
|
||
return deserializedErrorDetail; | ||
}); | ||
} | ||
} |
87 changes: 87 additions & 0 deletions
87
...cuments/src/main/java/com/azure/search/documents/implementation/models/ErrorResponse.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,87 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
// | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
// Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
|
||
package com.azure.search.documents.implementation.models; | ||
|
||
import com.azure.core.annotation.Fluent; | ||
import com.azure.json.JsonReader; | ||
import com.azure.json.JsonSerializable; | ||
import com.azure.json.JsonToken; | ||
import com.azure.json.JsonWriter; | ||
import java.io.IOException; | ||
|
||
/** | ||
* Error response | ||
* | ||
* Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also | ||
* follows the OData error response format.). | ||
*/ | ||
@Fluent | ||
public final class ErrorResponse implements JsonSerializable<ErrorResponse> { | ||
/* | ||
* The error object. | ||
*/ | ||
private ErrorDetail error; | ||
|
||
/** | ||
* Creates an instance of ErrorResponse class. | ||
*/ | ||
public ErrorResponse() { | ||
} | ||
|
||
/** | ||
* Get the error property: The error object. | ||
* | ||
* @return the error value. | ||
*/ | ||
public ErrorDetail getError() { | ||
return this.error; | ||
} | ||
|
||
/** | ||
* Set the error property: The error object. | ||
* | ||
* @param error the error value to set. | ||
* @return the ErrorResponse object itself. | ||
*/ | ||
public ErrorResponse setError(ErrorDetail error) { | ||
this.error = error; | ||
return this; | ||
} | ||
|
||
@Override | ||
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { | ||
jsonWriter.writeStartObject(); | ||
jsonWriter.writeJsonField("error", this.error); | ||
return jsonWriter.writeEndObject(); | ||
} | ||
|
||
/** | ||
* Reads an instance of ErrorResponse from the JsonReader. | ||
* | ||
* @param jsonReader The JsonReader being read. | ||
* @return An instance of ErrorResponse if the JsonReader was pointing to an instance of it, or null if it was | ||
* pointing to JSON null. | ||
* @throws IOException If an error occurs while reading the ErrorResponse. | ||
*/ | ||
public static ErrorResponse fromJson(JsonReader jsonReader) throws IOException { | ||
return jsonReader.readObject(reader -> { | ||
ErrorResponse deserializedErrorResponse = new ErrorResponse(); | ||
while (reader.nextToken() != JsonToken.END_OBJECT) { | ||
String fieldName = reader.getFieldName(); | ||
reader.nextToken(); | ||
|
||
if ("error".equals(fieldName)) { | ||
deserializedErrorResponse.error = ErrorDetail.fromJson(reader); | ||
} else { | ||
reader.skipChildren(); | ||
} | ||
} | ||
|
||
return deserializedErrorResponse; | ||
}); | ||
} | ||
} |
Oops, something went wrong.