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

[AutoPR cognitiveservices/resource-manager/cognitiveservices/data-plane/FormRecognizer/cognitiveservices/data-plane/QnAMaker] chore: jsonfmt cognitiveservices #3992

Closed
wants to merge 1 commit into from
Closed
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
@@ -0,0 +1,99 @@
/**
* 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.
*/

package com.microsoft.azure.cognitiveservices.knowledge.qnamaker;

import com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.AlterationsDTO;
import com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.ErrorResponseException;
import com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.WordAlterationsDTO;
import com.microsoft.rest.ServiceCallback;
import com.microsoft.rest.ServiceFuture;
import com.microsoft.rest.ServiceResponse;
import java.io.IOException;
import java.util.List;
import rx.Observable;

/**
* An instance of this class provides access to all the operations defined
* in Alterations.
*/
public interface Alterations {
/**
* Download alterations from runtime.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws ErrorResponseException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the WordAlterationsDTO object if successful.
*/
WordAlterationsDTO get();

/**
* Download alterations from runtime.
*
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
ServiceFuture<WordAlterationsDTO> getAsync(final ServiceCallback<WordAlterationsDTO> serviceCallback);

/**
* Download alterations from runtime.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the WordAlterationsDTO object
*/
Observable<WordAlterationsDTO> getAsync();

/**
* Download alterations from runtime.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the WordAlterationsDTO object
*/
Observable<ServiceResponse<WordAlterationsDTO>> getWithServiceResponseAsync();

/**
* Replace alterations data.
*
* @param wordAlterations Collection of word alterations.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws ErrorResponseException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
*/
void replace(List<AlterationsDTO> wordAlterations);

/**
* Replace alterations data.
*
* @param wordAlterations Collection of word alterations.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
ServiceFuture<Void> replaceAsync(List<AlterationsDTO> wordAlterations, final ServiceCallback<Void> serviceCallback);

/**
* Replace alterations data.
*
* @param wordAlterations Collection of word alterations.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceResponse} object if successful.
*/
Observable<Void> replaceAsync(List<AlterationsDTO> wordAlterations);

/**
* Replace alterations data.
*
* @param wordAlterations Collection of word alterations.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceResponse} object if successful.
*/
Observable<ServiceResponse<Void>> replaceWithServiceResponseAsync(List<AlterationsDTO> wordAlterations);

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
/**
* 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.
*/

package com.microsoft.azure.cognitiveservices.knowledge.qnamaker;

import com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.EndpointKeysDTO;
import com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.ErrorResponseException;
import com.microsoft.rest.ServiceCallback;
import com.microsoft.rest.ServiceFuture;
import com.microsoft.rest.ServiceResponse;
import java.io.IOException;
import rx.Observable;

/**
* An instance of this class provides access to all the operations defined
* in EndpointKeys.
*/
public interface EndpointKeys {
/**
* Gets endpoint keys for an endpoint.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws ErrorResponseException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the EndpointKeysDTO object if successful.
*/
EndpointKeysDTO getKeys();

/**
* Gets endpoint keys for an endpoint.
*
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
ServiceFuture<EndpointKeysDTO> getKeysAsync(final ServiceCallback<EndpointKeysDTO> serviceCallback);

/**
* Gets endpoint keys for an endpoint.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the EndpointKeysDTO object
*/
Observable<EndpointKeysDTO> getKeysAsync();

/**
* Gets endpoint keys for an endpoint.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the EndpointKeysDTO object
*/
Observable<ServiceResponse<EndpointKeysDTO>> getKeysWithServiceResponseAsync();

/**
* Re-generates an endpoint key.
*
* @param keyType Type of Key
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws ErrorResponseException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the EndpointKeysDTO object if successful.
*/
EndpointKeysDTO refreshKeys(String keyType);

/**
* Re-generates an endpoint key.
*
* @param keyType Type of Key
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
ServiceFuture<EndpointKeysDTO> refreshKeysAsync(String keyType, final ServiceCallback<EndpointKeysDTO> serviceCallback);

/**
* Re-generates an endpoint key.
*
* @param keyType Type of Key
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the EndpointKeysDTO object
*/
Observable<EndpointKeysDTO> refreshKeysAsync(String keyType);

/**
* Re-generates an endpoint key.
*
* @param keyType Type of Key
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the EndpointKeysDTO object
*/
Observable<ServiceResponse<EndpointKeysDTO>> refreshKeysWithServiceResponseAsync(String keyType);

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
/**
* 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.
*/

package com.microsoft.azure.cognitiveservices.knowledge.qnamaker;

import com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.EndpointSettingsDTO;
import com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.EndpointSettingsDTOActiveLearning;
import com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.ErrorResponseException;
import com.microsoft.rest.ServiceCallback;
import com.microsoft.rest.ServiceFuture;
import com.microsoft.rest.ServiceResponse;
import java.io.IOException;
import rx.Observable;

/**
* An instance of this class provides access to all the operations defined
* in EndpointSettings.
*/
public interface EndpointSettings {
/**
* Gets endpoint settings for an endpoint.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws ErrorResponseException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the EndpointSettingsDTO object if successful.
*/
EndpointSettingsDTO getSettings();

/**
* Gets endpoint settings for an endpoint.
*
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
ServiceFuture<EndpointSettingsDTO> getSettingsAsync(final ServiceCallback<EndpointSettingsDTO> serviceCallback);

/**
* Gets endpoint settings for an endpoint.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the EndpointSettingsDTO object
*/
Observable<EndpointSettingsDTO> getSettingsAsync();

/**
* Gets endpoint settings for an endpoint.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the EndpointSettingsDTO object
*/
Observable<ServiceResponse<EndpointSettingsDTO>> getSettingsWithServiceResponseAsync();

/**
* Updates endpoint settings for an endpoint.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws ErrorResponseException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the String object if successful.
*/
String updateSettings();

/**
* Updates endpoint settings for an endpoint.
*
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
ServiceFuture<String> updateSettingsAsync(final ServiceCallback<String> serviceCallback);

/**
* Updates endpoint settings for an endpoint.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the String object
*/
Observable<String> updateSettingsAsync();

/**
* Updates endpoint settings for an endpoint.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the String object
*/
Observable<ServiceResponse<String>> updateSettingsWithServiceResponseAsync();
/**
* Updates endpoint settings for an endpoint.
*
* @param activeLearning Active Learning settings of the endpoint.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws ErrorResponseException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the String object if successful.
*/
String updateSettings(EndpointSettingsDTOActiveLearning activeLearning);

/**
* Updates endpoint settings for an endpoint.
*
* @param activeLearning Active Learning settings of the endpoint.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
ServiceFuture<String> updateSettingsAsync(EndpointSettingsDTOActiveLearning activeLearning, final ServiceCallback<String> serviceCallback);

/**
* Updates endpoint settings for an endpoint.
*
* @param activeLearning Active Learning settings of the endpoint.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the String object
*/
Observable<String> updateSettingsAsync(EndpointSettingsDTOActiveLearning activeLearning);

/**
* Updates endpoint settings for an endpoint.
*
* @param activeLearning Active Learning settings of the endpoint.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the String object
*/
Observable<ServiceResponse<String>> updateSettingsWithServiceResponseAsync(EndpointSettingsDTOActiveLearning activeLearning);

}
Loading