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 compute/resource-manager] Publicipprefixaugust #2321

Merged
merged 7 commits into from
Aug 13, 2018
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 12 additions & 0 deletions api-specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@
"source": "specification/eventgrid/data-plane/readme.md",
"args": "--multiapi"
},
"hdinsight/resource-manager": {
"source": "specification/hdinsight/resource-manager/readme.md",
"args": "--multiapi --fluent"
},
"iotcentral/resource-manager": {
"source": "specification/iotcentral/resource-manager/readme.md",
"args": "--multiapi --fluent",
Expand All @@ -68,10 +72,18 @@
"source": "specification/keyvault/resource-manager/readme.md",
"args": "--multiapi --fluent"
},
"loganalytics/data-plane": {
"source": "specification/operationalinsights/data-plane/readme.md",
"args": "--payload-flattening-threshold=1 --override-client-name=LogAnalyticsDataClient"
},
"logic/resource-manager": {
"source": "specification/logic/resource-manager/readme.md",
"args": "--multiapi --fluent"
},
"notificationhubs/resource-manager": {
"source": "specification/notificationhubs/resource-manager/readme.md",
"args": "--multiapi --fluent"
},
"mediaservices/resource-manager": {
"source": "specification/mediaservices/resource-manager/readme.md",
"args": "--multiapi --fluent"
Expand Down
6 changes: 3 additions & 3 deletions cognitiveservices/data-plane/language/bingspellcheck/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
<parent>
<groupId>com.microsoft.azure.cognitiveservices</groupId>
<artifactId>azure-cognitiveservices-parent</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<version>1.0.1</version>
<version>1.0.2</version>
<artifactId>azure-cognitiveservices-spellcheck</artifactId>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for Cognitive Service Spell Check</name>
<description>This package contains Microsoft Cognitive Service Spell Check SDK.</description>
<url>https://github.com/Azure/azure-sdk-for-java/azure-cognitiveservices/language/bingspellcheck</url>
<url>https://github.com/Azure/azure-sdk-for-java/cognitiveservices/data-plane/language/bingspellcheck</url>
<licenses>
<license>
<name>The MIT License (MIT)</name>
Expand Down
8 changes: 4 additions & 4 deletions cognitiveservices/data-plane/language/luis/authoring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
<parent>
<groupId>com.microsoft.azure.cognitiveservices</groupId>
<artifactId>azure-cognitiveservices-parent</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>azure-cognitiveservices-languageunderstanding-authoring</artifactId>
<version>1.0.1-beta</version>
<artifactId>azure-cognitiveservices-luis-authoring</artifactId>
<version>1.0.2-beta</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for Cognitive Service Language Understanding (LUIS)</name>
<description>This package contains Microsoft Cognitive Service Language Understanding (LUIS).</description>
<url>https://github.com/Azure/azure-sdk-for-java/azure-cognitiveservices/language/luis/authoring</url>
<url>https://github.com/Azure/azure-sdk-for-java/cognitiveservices/data-plane/language/luis/authoring</url>
<licenses>
<license>
<name>The MIT License (MIT)</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public interface Apps {
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the List&lt;ApplicationInfoResponse&gt; object if successful.
*/

@Deprecated
List<ApplicationInfoResponse> list(ListAppsOptionalParameter listOptionalParameter);

/**
Expand All @@ -83,7 +83,7 @@ public interface Apps {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the List&lt;ApplicationInfoResponse&gt; object
*/

@Deprecated
Observable<List<ApplicationInfoResponse>> listAsync(ListAppsOptionalParameter listOptionalParameter);

/**
Expand Down Expand Up @@ -155,7 +155,7 @@ interface AppsListDefinition extends
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the UUID object if successful.
*/

@Deprecated
UUID importMethod(LuisApp luisApp, ImportMethodAppsOptionalParameter importMethodOptionalParameter);

/**
Expand All @@ -166,7 +166,7 @@ interface AppsListDefinition extends
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the UUID object
*/

@Deprecated
Observable<UUID> importMethodAsync(LuisApp luisApp, ImportMethodAppsOptionalParameter importMethodOptionalParameter);

/**
Expand Down Expand Up @@ -462,7 +462,7 @@ interface AppsImportMethodDefinition extends
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the OperationStatus object if successful.
*/

@Deprecated
OperationStatus updateSettings(UUID appId, UpdateSettingsOptionalParameter updateSettingsOptionalParameter);

/**
Expand All @@ -473,7 +473,7 @@ interface AppsImportMethodDefinition extends
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the OperationStatus object
*/

@Deprecated
Observable<OperationStatus> updateSettingsAsync(UUID appId, UpdateSettingsOptionalParameter updateSettingsOptionalParameter);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public interface Examples {
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the List&lt;LabeledUtterance&gt; object if successful.
*/

@Deprecated
List<LabeledUtterance> list(UUID appId, String versionId, ListExamplesOptionalParameter listOptionalParameter);

/**
Expand All @@ -99,7 +99,7 @@ public interface Examples {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the List&lt;LabeledUtterance&gt; object
*/

@Deprecated
Observable<List<LabeledUtterance>> listAsync(UUID appId, String versionId, ListExamplesOptionalParameter listOptionalParameter);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public interface Features {
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the List&lt;PhraseListFeatureInfo&gt; object if successful.
*/

@Deprecated
List<PhraseListFeatureInfo> listPhraseLists(UUID appId, String versionId, ListPhraseListsOptionalParameter listPhraseListsOptionalParameter);

/**
Expand All @@ -77,7 +77,7 @@ public interface Features {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the List&lt;PhraseListFeatureInfo&gt; object
*/

@Deprecated
Observable<List<PhraseListFeatureInfo>> listPhraseListsAsync(UUID appId, String versionId, ListPhraseListsOptionalParameter listPhraseListsOptionalParameter);

/**
Expand Down Expand Up @@ -174,7 +174,7 @@ interface FeaturesListPhraseListsDefinition extends
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the FeaturesResponseObject object if successful.
*/

@Deprecated
FeaturesResponseObject list(UUID appId, String versionId, ListFeaturesOptionalParameter listOptionalParameter);

/**
Expand All @@ -186,7 +186,7 @@ interface FeaturesListPhraseListsDefinition extends
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the FeaturesResponseObject object
*/

@Deprecated
Observable<FeaturesResponseObject> listAsync(UUID appId, String versionId, ListFeaturesOptionalParameter listOptionalParameter);

/**
Expand Down Expand Up @@ -310,7 +310,7 @@ interface FeaturesListDefinition extends
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the OperationStatus object if successful.
*/

@Deprecated
OperationStatus updatePhraseList(UUID appId, String versionId, int phraselistId, UpdatePhraseListOptionalParameter updatePhraseListOptionalParameter);

/**
Expand All @@ -323,7 +323,7 @@ interface FeaturesListDefinition extends
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the OperationStatus object
*/

@Deprecated
Observable<OperationStatus> updatePhraseListAsync(UUID appId, String versionId, int phraselistId, UpdatePhraseListOptionalParameter updatePhraseListOptionalParameter);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@
package com.microsoft.azure.cognitiveservices.language.luis.authoring;

import com.microsoft.azure.AzureClient;
import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.AzureRegions;
import com.microsoft.rest.RestClient;

/**
* The interface for LUISAuthoringAPI class.
* The interface for LUISAuthoringClient class.
*/
public interface LUISAuthoringAPI {
public interface LUISAuthoringClient {
/**
* Gets the REST client.
*
Expand All @@ -36,21 +35,6 @@ public interface LUISAuthoringAPI {
*/
String userAgent();

/**
* Gets Supported Azure regions for Cognitive Services endpoints. Possible values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth'.
*
* @return the azureRegion value.
*/
AzureRegions azureRegion();

/**
* Sets Supported Azure regions for Cognitive Services endpoints. Possible values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth'.
*
* @param azureRegion the azureRegion value.
* @return the service client itself
*/
LUISAuthoringAPI withAzureRegion(AzureRegions azureRegion);

/**
* Gets Gets or sets the preferred language for the response..
*
Expand All @@ -64,7 +48,7 @@ public interface LUISAuthoringAPI {
* @param acceptLanguage the acceptLanguage value.
* @return the service client itself
*/
LUISAuthoringAPI withAcceptLanguage(String acceptLanguage);
LUISAuthoringClient withAcceptLanguage(String acceptLanguage);

/**
* Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30..
Expand All @@ -79,7 +63,7 @@ public interface LUISAuthoringAPI {
* @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value.
* @return the service client itself
*/
LUISAuthoringAPI withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout);
LUISAuthoringClient 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..
Expand All @@ -94,7 +78,7 @@ public interface LUISAuthoringAPI {
* @param generateClientRequestId the generateClientRequestId value.
* @return the service client itself
*/
LUISAuthoringAPI withGenerateClientRequestId(boolean generateClientRequestId);
LUISAuthoringClient withGenerateClientRequestId(boolean generateClientRequestId);

/**
* Gets the Features object to access its operations.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

package com.microsoft.azure.cognitiveservices.language.luis.authoring;

import com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.LUISAuthoringAPIImpl;
import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.AzureRegions;
import com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.LUISAuthoringClientImpl;
import com.microsoft.rest.RestClient;
import com.microsoft.rest.credentials.ServiceClientCredentials;
import okhttp3.Interceptor;
Expand All @@ -24,13 +23,11 @@ public class LUISAuthoringManager {
/**
* Initializes an instance of Language Understanding (LUIS) Authoring API client.
*
* @param region Supported Azure regions for Cognitive Services endpoints.
* @param subscriptionKey the Language Understanding (LUIS) Authoring API key
* @return the Language Understanding Authoring API client
*/
public static LUISAuthoringAPI authenticate(AzureRegions region, String subscriptionKey) {
return authenticate("https://{AzureRegion}.api.cognitive.microsoft.com/luis/api/v2.0/", subscriptionKey)
.withAzureRegion(region);
public static LUISAuthoringClient authenticate(String subscriptionKey) {
return authenticate("https://api.cognitive.microsoft.com/luis/api/v2.0/", subscriptionKey);
}

/**
Expand All @@ -40,7 +37,7 @@ public static LUISAuthoringAPI authenticate(AzureRegions region, String subscrip
* @param subscriptionKey the Language Understanding (LUIS) Authoring API key
* @return the Language Understanding (LUIS) Authoring API client
*/
public static LUISAuthoringAPI authenticate(String baseUrl, final String subscriptionKey) {
public static LUISAuthoringClient authenticate(String baseUrl, final String subscriptionKey) {
ServiceClientCredentials serviceClientCredentials = new ServiceClientCredentials() {
@Override
public void applyCredentialsFilter(OkHttpClient.Builder builder) {
Expand All @@ -65,13 +62,11 @@ public Response intercept(Chain chain) throws IOException {
/**
* Initializes an instance of Language Understanding (LUIS) Authoring API client.
*
* @param region Supported Azure regions for Cognitive Services endpoints.
* @param credentials the management credentials for Azure
* @return the Language Understanding (LUIS) Authoring API client
*/
public static LUISAuthoringAPI authenticate(AzureRegions region, ServiceClientCredentials credentials) {
return authenticate("https://{AzureRegion}.api.cognitive.microsoft.com/luis/api/v2.0/", credentials)
.withAzureRegion(region);
public static LUISAuthoringClient authenticate(ServiceClientCredentials credentials) {
return authenticate("https://api.cognitive.microsoft.com/luis/api/v2.0/", credentials);
}

/**
Expand All @@ -81,8 +76,8 @@ public static LUISAuthoringAPI authenticate(AzureRegions region, ServiceClientCr
* @param credentials the management credentials for Azure
* @return the Language Understanding (LUIS) Authoring API client
*/
public static LUISAuthoringAPI authenticate(String baseUrl, ServiceClientCredentials credentials) {
return new LUISAuthoringAPIImpl(baseUrl, credentials);
public static LUISAuthoringClient authenticate(String baseUrl, ServiceClientCredentials credentials) {
return new LUISAuthoringClientImpl(baseUrl, credentials);
}

/**
Expand All @@ -91,7 +86,7 @@ public static LUISAuthoringAPI authenticate(String baseUrl, ServiceClientCredent
* @param restClient the REST client to connect to Azure.
* @return the Language Understanding (LUIS) Authoring API client
*/
public static LUISAuthoringAPI authenticate(RestClient restClient) {
return new LUISAuthoringAPIImpl(restClient);
public static LUISAuthoringClient authenticate(RestClient restClient) {
return new LUISAuthoringClientImpl(restClient);
}
}
Loading