forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 32829 in Azure/azure-rest-api-specs
Merge 71f659c9cf8bd36ecf5f77d612bd3b5651929f39 into b9300c96d19b7956716b57b1129d64240b268667
- Loading branch information
SDKAuto
committed
Feb 26, 2025
1 parent
7c07a64
commit a4150e2
Showing
120 changed files
with
10,049 additions
and
1,238 deletions.
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
sdk/billingbenefits/azure-resourcemanager-billingbenefits/CHANGELOG.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
521 changes: 492 additions & 29 deletions
521
sdk/billingbenefits/azure-resourcemanager-billingbenefits/SAMPLE.md
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
107 changes: 107 additions & 0 deletions
107
.../main/java/com/azure/resourcemanager/billingbenefits/fluent/DiscountOperationsClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
|
||
package com.azure.resourcemanager.billingbenefits.fluent; | ||
|
||
import com.azure.core.annotation.ReturnType; | ||
import com.azure.core.annotation.ServiceMethod; | ||
import com.azure.core.http.rest.Response; | ||
import com.azure.core.management.polling.PollResult; | ||
import com.azure.core.util.Context; | ||
import com.azure.core.util.polling.SyncPoller; | ||
import com.azure.resourcemanager.billingbenefits.fluent.models.DiscountInner; | ||
import com.azure.resourcemanager.billingbenefits.models.DiscountPatchRequest; | ||
|
||
/** | ||
* An instance of this class provides access to all the operations defined in DiscountOperationsClient. | ||
*/ | ||
public interface DiscountOperationsClient { | ||
/** | ||
* Get discount at resource group level. | ||
* | ||
* @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
* @param discountName Name of the discount. | ||
* @param context The context to associate with this operation. | ||
* @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 discount at resource group level along with {@link Response}. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
Response<DiscountInner> getByResourceGroupWithResponse(String resourceGroupName, String discountName, | ||
Context context); | ||
|
||
/** | ||
* Get discount at resource group level. | ||
* | ||
* @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
* @param discountName Name of the discount. | ||
* @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 discount at resource group level. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
DiscountInner getByResourceGroup(String resourceGroupName, String discountName); | ||
|
||
/** | ||
* Update discounts. | ||
* | ||
* @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
* @param discountName Name of the discount. | ||
* @param body Request body for updating discounts. | ||
* @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 {@link SyncPoller} for polling of resource definition for Discounts. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) | ||
SyncPoller<PollResult<DiscountInner>, DiscountInner> beginUpdate(String resourceGroupName, String discountName, | ||
DiscountPatchRequest body); | ||
|
||
/** | ||
* Update discounts. | ||
* | ||
* @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
* @param discountName Name of the discount. | ||
* @param body Request body for updating discounts. | ||
* @param context The context to associate with this operation. | ||
* @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 {@link SyncPoller} for polling of resource definition for Discounts. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) | ||
SyncPoller<PollResult<DiscountInner>, DiscountInner> beginUpdate(String resourceGroupName, String discountName, | ||
DiscountPatchRequest body, Context context); | ||
|
||
/** | ||
* Update discounts. | ||
* | ||
* @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
* @param discountName Name of the discount. | ||
* @param body Request body for updating discounts. | ||
* @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 resource definition for Discounts. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
DiscountInner update(String resourceGroupName, String discountName, DiscountPatchRequest body); | ||
|
||
/** | ||
* Update discounts. | ||
* | ||
* @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
* @param discountName Name of the discount. | ||
* @param body Request body for updating discounts. | ||
* @param context The context to associate with this operation. | ||
* @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 resource definition for Discounts. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
DiscountInner update(String resourceGroupName, String discountName, DiscountPatchRequest body, Context context); | ||
} |
Oops, something went wrong.