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

Regenerate with v3.2 computer vision #20420

Merged
merged 1 commit into from
Apr 8, 2021
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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -36,59 +36,59 @@ public interface ComputerVisionClient {
String userAgent();

/**
* Gets Supported Cognitive Services endpoints.
* Gets Supported Cognitive Services endpoints..
*
* @return the endpoint value.
*/
String endpoint();

/**
* Sets Supported Cognitive Services endpoints.
* Sets Supported Cognitive Services endpoints..
*
* @param endpoint the endpoint value.
* @return the service client itself
*/
ComputerVisionClient withEndpoint(String endpoint);

/**
* Gets Gets or sets the preferred language for the response.
* Gets Gets or sets the preferred language for the response..
*
* @return the acceptLanguage value.
*/
String acceptLanguage();

/**
* Sets Gets or sets the preferred language for the response.
* Sets Gets or sets the preferred language for the response..
*
* @param acceptLanguage the acceptLanguage value.
* @return the service client itself
*/
ComputerVisionClient withAcceptLanguage(String acceptLanguage);

/**
* Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30..
*
* @return the longRunningOperationRetryTimeout value.
*/
int longRunningOperationRetryTimeout();

/**
* Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30..
*
* @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value.
* @return the service client itself
*/
ComputerVisionClient withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout);

/**
* Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
* Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true..
*
* @return the generateClientRequestId value.
*/
boolean generateClientRequestId();

/**
* Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
* Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true..
*
* @param generateClientRequestId the generateClientRequestId value.
* @return the service client itself
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class ComputerVisionManager {
* @return the Computer Vision API client
*/
public static ComputerVisionClient authenticate(String subscriptionKey) {
return authenticate("https://{endpoint}/vision/v3.1/", subscriptionKey);
return authenticate("https://{endpoint}/vision/v3.2/", subscriptionKey);
}

/**
Expand Down Expand Up @@ -67,7 +67,7 @@ public Response intercept(Chain chain) throws IOException {
* @return the Computer Vision API client
*/
public static ComputerVisionClient authenticate(ServiceClientCredentials credentials, String endpoint) {
return authenticate("https://{endpoint}/vision/v3.1/", credentials)
return authenticate("https://{endpoint}/vision/v3.2/", credentials)
.withEndpoint(endpoint);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
import com.microsoft.azure.AzureServiceClient;
import com.microsoft.azure.cognitiveservices.vision.computervision.ComputerVision;
import com.microsoft.azure.cognitiveservices.vision.computervision.ComputerVisionClient;
import com.microsoft.azure.cognitiveservices.vision.computervision.models.ComputerVisionErrorException;
import com.microsoft.azure.cognitiveservices.vision.computervision.models.DetectResult;
import com.microsoft.azure.cognitiveservices.vision.computervision.models.ComputerVisionErrorResponseException;
import com.microsoft.azure.cognitiveservices.vision.computervision.models.DomainModelResults;
import com.microsoft.rest.credentials.ServiceClientCredentials;
import com.microsoft.rest.RestClient;
import com.microsoft.rest.ServiceCallback;
Expand All @@ -29,7 +29,9 @@
import retrofit2.http.Body;
import retrofit2.http.Header;
import retrofit2.http.Headers;
import retrofit2.http.Path;
import retrofit2.http.POST;
import retrofit2.http.Query;
import retrofit2.Response;
import rx.functions.Func1;
import rx.Observable;
Expand Down Expand Up @@ -160,7 +162,7 @@ public ComputerVision computerVision() {
* @param credentials the management credentials for Azure
*/
public ComputerVisionClientImpl(ServiceClientCredentials credentials) {
this("https://{Endpoint}/vision/v3.1", credentials);
this("https://{Endpoint}/vision/v3.2", credentials);
}

/**
Expand Down Expand Up @@ -199,6 +201,6 @@ protected void initialize() {
*/
@Override
public String userAgent() {
return String.format("%s (%s, %s)", super.userAgent(), "ComputerVisionClient", "3.1");
return String.format("%s (%s, %s)", super.userAgent(), "ComputerVisionClient", "3.2");
}
}
Loading