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

[TA] Only regenerate classes by using new swagger #24205

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 @@ -192,7 +192,7 @@ public TextAnalyticsClientImplBuilder addPolicy(HttpPipelinePolicy customPolicy)
*/
public TextAnalyticsClientImpl buildClient() {
if (apiVersion == null) {
this.apiVersion = "v3.2-preview.1";
this.apiVersion = "v3.2-preview.2";
}
if (pipeline == null) {
this.pipeline = createHttpPipeline();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.ai.textanalytics.implementation.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The ClassificationResult model. */
@Fluent
public final class ClassificationResult {
/*
* Classification type.
*/
@JsonProperty(value = "category", required = true)
private String category;

/*
* Confidence score between 0 and 1 of the recognized classification.
*/
@JsonProperty(value = "confidenceScore", required = true)
private double confidenceScore;

/**
* Get the category property: Classification type.
*
* @return the category value.
*/
public String getCategory() {
return this.category;
}

/**
* Set the category property: Classification type.
*
* @param category the category value to set.
* @return the ClassificationResult object itself.
*/
public ClassificationResult setCategory(String category) {
this.category = category;
return this;
}

/**
* Get the confidenceScore property: Confidence score between 0 and 1 of the recognized classification.
*
* @return the confidenceScore value.
*/
public double getConfidenceScore() {
return this.confidenceScore;
}

/**
* Set the confidenceScore property: Confidence score between 0 and 1 of the recognized classification.
*
* @param confidenceScore the confidenceScore value to set.
* @return the ClassificationResult object itself.
*/
public ClassificationResult setConfidenceScore(double confidenceScore) {
this.confidenceScore = confidenceScore;
return this;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.ai.textanalytics.implementation.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** The CustomEntitiesResult model. */
@Fluent
public final class CustomEntitiesResult {
/*
* Response by document
*/
@JsonProperty(value = "documents", required = true)
private List<DocumentEntities> documents;

/*
* Errors by document id.
*/
@JsonProperty(value = "errors", required = true)
private List<DocumentError> errors;

/*
* if showStats=true was specified in the request this field will contain
* information about the request payload.
*/
@JsonProperty(value = "statistics")
private RequestStatistics statistics;

/*
* This field indicates the project name for the model.
*/
@JsonProperty(value = "projectName", required = true)
private String projectName;

/*
* This field indicates the deployment name for the model.
*/
@JsonProperty(value = "deploymentName", required = true)
private String deploymentName;

/**
* Get the documents property: Response by document.
*
* @return the documents value.
*/
public List<DocumentEntities> getDocuments() {
return this.documents;
}

/**
* Set the documents property: Response by document.
*
* @param documents the documents value to set.
* @return the CustomEntitiesResult object itself.
*/
public CustomEntitiesResult setDocuments(List<DocumentEntities> documents) {
this.documents = documents;
return this;
}

/**
* Get the errors property: Errors by document id.
*
* @return the errors value.
*/
public List<DocumentError> getErrors() {
return this.errors;
}

/**
* Set the errors property: Errors by document id.
*
* @param errors the errors value to set.
* @return the CustomEntitiesResult object itself.
*/
public CustomEntitiesResult setErrors(List<DocumentError> errors) {
this.errors = errors;
return this;
}

/**
* Get the statistics property: if showStats=true was specified in the request this field will contain information
* about the request payload.
*
* @return the statistics value.
*/
public RequestStatistics getStatistics() {
return this.statistics;
}

/**
* Set the statistics property: if showStats=true was specified in the request this field will contain information
* about the request payload.
*
* @param statistics the statistics value to set.
* @return the CustomEntitiesResult object itself.
*/
public CustomEntitiesResult setStatistics(RequestStatistics statistics) {
this.statistics = statistics;
return this;
}

/**
* Get the projectName property: This field indicates the project name for the model.
*
* @return the projectName value.
*/
public String getProjectName() {
return this.projectName;
}

/**
* Set the projectName property: This field indicates the project name for the model.
*
* @param projectName the projectName value to set.
* @return the CustomEntitiesResult object itself.
*/
public CustomEntitiesResult setProjectName(String projectName) {
this.projectName = projectName;
return this;
}

/**
* Get the deploymentName property: This field indicates the deployment name for the model.
*
* @return the deploymentName value.
*/
public String getDeploymentName() {
return this.deploymentName;
}

/**
* Set the deploymentName property: This field indicates the deployment name for the model.
*
* @param deploymentName the deploymentName value to set.
* @return the CustomEntitiesResult object itself.
*/
public CustomEntitiesResult setDeploymentName(String deploymentName) {
this.deploymentName = deploymentName;
return this;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.ai.textanalytics.implementation.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The CustomEntitiesTask model. */
@Fluent
public final class CustomEntitiesTask {
/*
* The parameters property.
*/
@JsonProperty(value = "parameters")
private CustomEntitiesTaskParameters parameters;

/*
* The taskName property.
*/
@JsonProperty(value = "taskName")
private String taskName;

/**
* Get the parameters property: The parameters property.
*
* @return the parameters value.
*/
public CustomEntitiesTaskParameters getParameters() {
return this.parameters;
}

/**
* Set the parameters property: The parameters property.
*
* @param parameters the parameters value to set.
* @return the CustomEntitiesTask object itself.
*/
public CustomEntitiesTask setParameters(CustomEntitiesTaskParameters parameters) {
this.parameters = parameters;
return this;
}

/**
* Get the taskName property: The taskName property.
*
* @return the taskName value.
*/
public String getTaskName() {
return this.taskName;
}

/**
* Set the taskName property: The taskName property.
*
* @param taskName the taskName value to set.
* @return the CustomEntitiesTask object itself.
*/
public CustomEntitiesTask setTaskName(String taskName) {
this.taskName = taskName;
return this;
}
}
Loading