-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
EndpointKeys.java
63 lines (52 loc) · 2.07 KB
/
EndpointKeys.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/**
* 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 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.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the EndpointKeysDTO object
*/
Observable<EndpointKeysDTO> getKeysAsync();
/**
* 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.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the EndpointKeysDTO object
*/
Observable<EndpointKeysDTO> refreshKeysAsync(String keyType);
}