Skip to content

Commit

Permalink
CodeGen from PR 17627 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Adding xms-ids to CognitiveServices (Azure#17627)

* Adding xms-ids to CognitiveServices

* corrections after rebase

* Update PR per feedback

Co-authored-by: Yanming Tang <yantang@microsoft.com>
  • Loading branch information
SDKAuto and yantang-msft committed Feb 23, 2022
1 parent 21f4ee2 commit 3401df6
Show file tree
Hide file tree
Showing 34 changed files with 443 additions and 304 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.4 (Unreleased)
## 1.0.0-beta.1 (2022-02-23)

- Azure Resource Manager CognitiveServices client library for Java. This package contains Microsoft Azure SDK for CognitiveServices Management SDK. Cognitive Services Management Client. Package tag package-2021-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-cognitiveservices</artifactId>
<version>1.0.0-beta.3</version>
<version>1.0.0-beta.4</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public CognitiveServicesManager authenticate(TokenCredential credential, AzurePr
.append("-")
.append("com.azure.resourcemanager.cognitiveservices")
.append("/")
.append("1.0.0-beta.3");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public interface AccountsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return cognitive Services account is an Azure resource representing the provisioned account, it's type, location
* and SKU.
* @return the {@link SyncPoller} for polling of cognitive Services account is an Azure resource representing the
* provisioned account, it's type, location and SKU.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<AccountInner>, AccountInner> beginCreate(
Expand All @@ -47,8 +47,8 @@ SyncPoller<PollResult<AccountInner>, AccountInner> beginCreate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return cognitive Services account is an Azure resource representing the provisioned account, it's type, location
* and SKU.
* @return the {@link SyncPoller} for polling of cognitive Services account is an Azure resource representing the
* provisioned account, it's type, location and SKU.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<AccountInner>, AccountInner> beginCreate(
Expand Down Expand Up @@ -96,8 +96,8 @@ SyncPoller<PollResult<AccountInner>, AccountInner> beginCreate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return cognitive Services account is an Azure resource representing the provisioned account, it's type, location
* and SKU.
* @return the {@link SyncPoller} for polling of cognitive Services account is an Azure resource representing the
* provisioned account, it's type, location and SKU.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<AccountInner>, AccountInner> beginUpdate(
Expand All @@ -113,8 +113,8 @@ SyncPoller<PollResult<AccountInner>, AccountInner> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return cognitive Services account is an Azure resource representing the provisioned account, it's type, location
* and SKU.
* @return the {@link SyncPoller} for polling of cognitive Services account is an Azure resource representing the
* provisioned account, it's type, location and SKU.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<AccountInner>, AccountInner> beginUpdate(
Expand Down Expand Up @@ -159,7 +159,7 @@ SyncPoller<PollResult<AccountInner>, AccountInner> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String accountName);
Expand All @@ -173,7 +173,7 @@ SyncPoller<PollResult<AccountInner>, AccountInner> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String accountName, Context context);
Expand Down Expand Up @@ -227,7 +227,7 @@ SyncPoller<PollResult<AccountInner>, AccountInner> beginUpdate(
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return cognitive Services account is an Azure resource representing the provisioned account, it's type, location
* and SKU.
* and SKU along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<AccountInner> getByResourceGroupWithResponse(
Expand All @@ -240,7 +240,8 @@ Response<AccountInner> getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the list of cognitive services accounts operation response.
* @return the list of cognitive services accounts operation response as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<AccountInner> listByResourceGroup(String resourceGroupName);
Expand All @@ -253,7 +254,8 @@ Response<AccountInner> getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the list of cognitive services accounts operation response.
* @return the list of cognitive services accounts operation response as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<AccountInner> listByResourceGroup(String resourceGroupName, Context context);
Expand All @@ -263,7 +265,8 @@ Response<AccountInner> getByResourceGroupWithResponse(
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the list of cognitive services accounts operation response.
* @return the list of cognitive services accounts operation response as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<AccountInner> list();
Expand All @@ -275,7 +278,8 @@ Response<AccountInner> getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the list of cognitive services accounts operation response.
* @return the list of cognitive services accounts operation response as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<AccountInner> list(Context context);
Expand All @@ -302,7 +306,7 @@ Response<AccountInner> getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the access keys for the cognitive services account.
* @return the access keys for the cognitive services account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ApiKeysInner> listKeysWithResponse(String resourceGroupName, String accountName, Context context);
Expand Down Expand Up @@ -331,7 +335,7 @@ Response<AccountInner> getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the access keys for the cognitive services account.
* @return the access keys for the cognitive services account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ApiKeysInner> regenerateKeyWithResponse(
Expand Down Expand Up @@ -359,7 +363,7 @@ Response<ApiKeysInner> regenerateKeyWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the list of cognitive services accounts operation response.
* @return the list of cognitive services accounts operation response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<AccountSkuListResultInner> listSkusWithResponse(
Expand Down Expand Up @@ -389,7 +393,7 @@ Response<AccountSkuListResultInner> listSkusWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return usages for the requested Cognitive Services account.
* @return usages for the requested Cognitive Services account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<UsageListResultInner> listUsagesWithResponse(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public interface CommitmentPlansClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the commitmentPlans associated with the Cognitive Services account.
* @return the commitmentPlans associated with the Cognitive Services account as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<CommitmentPlanInner> list(String resourceGroupName, String accountName);
Expand All @@ -37,7 +38,8 @@ public interface CommitmentPlansClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the commitmentPlans associated with the Cognitive Services account.
* @return the commitmentPlans associated with the Cognitive Services account as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<CommitmentPlanInner> list(String resourceGroupName, String accountName, Context context);
Expand Down Expand Up @@ -66,7 +68,7 @@ public interface CommitmentPlansClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the specified commitmentPlans associated with the Cognitive Services account.
* @return the specified commitmentPlans associated with the Cognitive Services account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<CommitmentPlanInner> getWithResponse(
Expand Down Expand Up @@ -99,7 +101,7 @@ CommitmentPlanInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return cognitive Services account commitment plan.
* @return cognitive Services account commitment plan along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<CommitmentPlanInner> createOrUpdateWithResponse(
Expand All @@ -118,7 +120,7 @@ Response<CommitmentPlanInner> createOrUpdateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(
Expand All @@ -134,7 +136,7 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ public interface CommitmentTiersClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the list of cognitive services accounts operation response.
* @return the list of cognitive services accounts operation response as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<CommitmentTierInner> list(String location);
Expand All @@ -32,7 +33,8 @@ public interface CommitmentTiersClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the list of cognitive services accounts operation response.
* @return the list of cognitive services accounts operation response as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<CommitmentTierInner> list(String location, Context context);
Expand Down
Loading

0 comments on commit 3401df6

Please sign in to comment.